mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
159 lines
2.4 MiB
159 lines
2.4 MiB
var Fi=Object.defineProperty;var zi=($,z,oe)=>z in $?Fi($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe;var ro=($,z,oe)=>(zi($,typeof z!="symbol"?z+"":z,oe),oe);(function(){const z=document.createElement("link").relList;if(z&&z.supports&&z.supports("modulepreload"))return;for(const ie of document.querySelectorAll('link[rel="modulepreload"]'))ae(ie);new MutationObserver(ie=>{for(const le of ie)if(le.type==="childList")for(const pe of le.addedNodes)pe.tagName==="LINK"&&pe.rel==="modulepreload"&&ae(pe)}).observe(document,{childList:!0,subtree:!0});function oe(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 ae(ie){if(ie.ep)return;ie.ep=!0;const le=oe(ie);fetch(ie.href,le)}})();function makeMap($,z){const oe=Object.create(null),ae=$.split(",");for(let ie=0;ie<ae.length;ie++)oe[ae[ie]]=!0;return z?ie=>!!oe[ie.toLowerCase()]:ie=>!!oe[ie]}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=$=>onRE.test($),isModelListener=$=>$.startsWith("onUpdate:"),extend$2=Object.assign,remove=($,z)=>{const oe=$.indexOf(z);oe>-1&&$.splice(oe,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$4=($,z)=>hasOwnProperty$g.call($,z),isArray$c=Array.isArray,isMap$3=$=>toTypeString$1($)==="[object Map]",isSet$3=$=>toTypeString$1($)==="[object Set]",isDate$3=$=>toTypeString$1($)==="[object Date]",isRegExp$5=$=>toTypeString$1($)==="[object RegExp]",isFunction$5=$=>typeof $=="function",isString$7=$=>typeof $=="string",isSymbol$2=$=>typeof $=="symbol",isObject$8=$=>$!==null&&typeof $=="object",isPromise=$=>isObject$8($)&&isFunction$5($.then)&&isFunction$5($.catch),objectToString$3=Object.prototype.toString,toTypeString$1=$=>objectToString$3.call($),toRawType=$=>toTypeString$1($).slice(8,-1),isPlainObject$4=$=>toTypeString$1($)==="[object Object]",isIntegerKey=$=>isString$7($)&&$!=="NaN"&&$[0]!=="-"&&""+parseInt($,10)===$,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=$=>{const z=Object.create(null);return oe=>z[oe]||(z[oe]=$(oe))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction($=>$.replace(camelizeRE,(z,oe)=>oe?oe.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction($=>$.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction($=>$.charAt(0).toUpperCase()+$.slice(1)),toHandlerKey=cacheStringFunction($=>$?`on${capitalize$2($)}`:""),hasChanged=($,z)=>!Object.is($,z),invokeArrayFns=($,z)=>{for(let oe=0;oe<$.length;oe++)$[oe](z)},def=($,z,oe)=>{Object.defineProperty($,z,{configurable:!0,enumerable:!1,value:oe})},looseToNumber=$=>{const z=parseFloat($);return isNaN(z)?$:z},toNumber$1=$=>{const z=isString$7($)?Number($):NaN;return isNaN(z)?$:z};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($){if(isArray$c($)){const z={};for(let oe=0;oe<$.length;oe++){const ae=$[oe],ie=isString$7(ae)?parseStringStyle(ae):normalizeStyle$1(ae);if(ie)for(const le in ie)z[le]=ie[le]}return z}else{if(isString$7($))return $;if(isObject$8($))return $}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=new RegExp("\\/\\*.*?\\*\\/","gs");function parseStringStyle($){const z={};return $.replace(styleCommentRE,"").split(listDelimiterRE).forEach(oe=>{if(oe){const ae=oe.split(propertyDelimiterRE);ae.length>1&&(z[ae[0].trim()]=ae[1].trim())}}),z}function normalizeClass($){let z="";if(isString$7($))z=$;else if(isArray$c($))for(let oe=0;oe<$.length;oe++){const ae=normalizeClass($[oe]);ae&&(z+=ae+" ")}else if(isObject$8($))for(const oe in $)$[oe]&&(z+=oe+" ");return z.trim()}function normalizeProps($){if(!$)return null;let{class:z,style:oe}=$;return z&&!isString$7(z)&&($.class=normalizeClass(z)),oe&&($.style=normalizeStyle$1(oe)),$}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr($){return!!$||$===""}function looseCompareArrays($,z){if($.length!==z.length)return!1;let oe=!0;for(let ae=0;oe&&ae<$.length;ae++)oe=looseEqual($[ae],z[ae]);return oe}function looseEqual($,z){if($===z)return!0;let oe=isDate$3($),ae=isDate$3(z);if(oe||ae)return oe&&ae?$.getTime()===z.getTime():!1;if(oe=isSymbol$2($),ae=isSymbol$2(z),oe||ae)return $===z;if(oe=isArray$c($),ae=isArray$c(z),oe||ae)return oe&&ae?looseCompareArrays($,z):!1;if(oe=isObject$8($),ae=isObject$8(z),oe||ae){if(!oe||!ae)return!1;const ie=Object.keys($).length,le=Object.keys(z).length;if(ie!==le)return!1;for(const pe in $){const _e=$.hasOwnProperty(pe),Ce=z.hasOwnProperty(pe);if(_e&&!Ce||!_e&&Ce||!looseEqual($[pe],z[pe]))return!1}}return String($)===String(z)}function looseIndexOf($,z){return $.findIndex(oe=>looseEqual(oe,z))}const toDisplayString$1=$=>isString$7($)?$:$==null?"":isArray$c($)||isObject$8($)&&($.toString===objectToString$3||!isFunction$5($.toString))?JSON.stringify($,replacer,2):String($),replacer=($,z)=>z&&z.__v_isRef?replacer($,z.value):isMap$3(z)?{[`Map(${z.size})`]:[...z.entries()].reduce((oe,[ae,ie])=>(oe[`${ae} =>`]=ie,oe),{})}:isSet$3(z)?{[`Set(${z.size})`]:[...z.values()]}:isObject$8(z)&&!isArray$c(z)&&!isPlainObject$4(z)?String(z):z;let activeEffectScope;class EffectScope{constructor(z=!1){this.detached=z,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!z&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(z){if(this._active){const oe=activeEffectScope;try{return activeEffectScope=this,z()}finally{activeEffectScope=oe}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(z){if(this._active){let oe,ae;for(oe=0,ae=this.effects.length;oe<ae;oe++)this.effects[oe].stop();for(oe=0,ae=this.cleanups.length;oe<ae;oe++)this.cleanups[oe]();if(this.scopes)for(oe=0,ae=this.scopes.length;oe<ae;oe++)this.scopes[oe].stop(!0);if(!this.detached&&this.parent&&!z){const ie=this.parent.scopes.pop();ie&&ie!==this&&(this.parent.scopes[this.index]=ie,ie.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope($){return new EffectScope($)}function recordEffectScope($,z=activeEffectScope){z&&z.active&&z.effects.push($)}function getCurrentScope(){return activeEffectScope}function onScopeDispose($){activeEffectScope&&activeEffectScope.cleanups.push($)}const createDep=$=>{const z=new Set($);return z.w=0,z.n=0,z},wasTracked=$=>($.w&trackOpBit)>0,newTracked=$=>($.n&trackOpBit)>0,initDepMarkers=({deps:$})=>{if($.length)for(let z=0;z<$.length;z++)$[z].w|=trackOpBit},finalizeDepMarkers=$=>{const{deps:z}=$;if(z.length){let oe=0;for(let ae=0;ae<z.length;ae++){const ie=z[ae];wasTracked(ie)&&!newTracked(ie)?ie.delete($):z[oe++]=ie,ie.w&=~trackOpBit,ie.n&=~trackOpBit}z.length=oe}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(z,oe=null,ae){this.fn=z,this.scheduler=oe,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,ae)}run(){if(!this.active)return this.fn();let z=activeEffect,oe=shouldTrack;for(;z;){if(z===this)return;z=z.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=oe,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect($){const{deps:z}=$;if(z.length){for(let oe=0;oe<z.length;oe++)z[oe].delete($);z.length=0}}function effect($,z){$.effect&&($=$.effect.fn);const oe=new ReactiveEffect($);z&&(extend$2(oe,z),z.scope&&recordEffectScope(oe,z.scope)),(!z||!z.lazy)&&oe.run();const ae=oe.run.bind(oe);return ae.effect=oe,ae}function stop$1($){$.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const $=trackStack.pop();shouldTrack=$===void 0?!0:$}function track($,z,oe){if(shouldTrack&&activeEffect){let ae=targetMap.get($);ae||targetMap.set($,ae=new Map);let ie=ae.get(oe);ie||ae.set(oe,ie=createDep()),trackEffects(ie)}}function trackEffects($,z){let oe=!1;effectTrackDepth<=maxMarkerBits?newTracked($)||($.n|=trackOpBit,oe=!wasTracked($)):oe=!$.has(activeEffect),oe&&($.add(activeEffect),activeEffect.deps.push($))}function trigger$2($,z,oe,ae,ie,le){const pe=targetMap.get($);if(!pe)return;let _e=[];if(z==="clear")_e=[...pe.values()];else if(oe==="length"&&isArray$c($)){const Ce=Number(ae);pe.forEach(($e,xe)=>{(xe==="length"||xe>=Ce)&&_e.push($e)})}else switch(oe!==void 0&&_e.push(pe.get(oe)),z){case"add":isArray$c($)?isIntegerKey(oe)&&_e.push(pe.get("length")):(_e.push(pe.get(ITERATE_KEY)),isMap$3($)&&_e.push(pe.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c($)||(_e.push(pe.get(ITERATE_KEY)),isMap$3($)&&_e.push(pe.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3($)&&_e.push(pe.get(ITERATE_KEY));break}if(_e.length===1)_e[0]&&triggerEffects(_e[0]);else{const Ce=[];for(const $e of _e)$e&&Ce.push(...$e);triggerEffects(createDep(Ce))}}function triggerEffects($,z){const oe=isArray$c($)?$:[...$];for(const ae of oe)ae.computed&&triggerEffect(ae);for(const ae of oe)ae.computed||triggerEffect(ae)}function triggerEffect($,z){($!==activeEffect||$.allowRecurse)&&($.scheduler?$.scheduler():$.run())}function getDepFromReactive($,z){var oe;return(oe=targetMap.get($))==null?void 0:oe.get(z)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter($=>$!=="arguments"&&$!=="caller").map($=>Symbol[$]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const $={};return["includes","indexOf","lastIndexOf"].forEach(z=>{$[z]=function(...oe){const ae=toRaw(this);for(let le=0,pe=this.length;le<pe;le++)track(ae,"get",le+"");const ie=ae[z](...oe);return ie===-1||ie===!1?ae[z](...oe.map(toRaw)):ie}}),["push","pop","shift","unshift","splice"].forEach(z=>{$[z]=function(...oe){pauseTracking();const ae=toRaw(this)[z].apply(this,oe);return resetTracking(),ae}}),$}function hasOwnProperty$f($){const z=toRaw(this);return track(z,"has",$),z.hasOwnProperty($)}function createGetter($=!1,z=!1){return function(ae,ie,le){if(ie==="__v_isReactive")return!$;if(ie==="__v_isReadonly")return $;if(ie==="__v_isShallow")return z;if(ie==="__v_raw"&&le===($?z?shallowReadonlyMap:readonlyMap:z?shallowReactiveMap:reactiveMap).get(ae))return ae;const pe=isArray$c(ae);if(!$){if(pe&&hasOwn$4(arrayInstrumentations,ie))return Reflect.get(arrayInstrumentations,ie,le);if(ie==="hasOwnProperty")return hasOwnProperty$f}const _e=Reflect.get(ae,ie,le);return(isSymbol$2(ie)?builtInSymbols.has(ie):isNonTrackableKeys(ie))||($||track(ae,"get",ie),z)?_e:isRef(_e)?pe&&isIntegerKey(ie)?_e:_e.value:isObject$8(_e)?$?readonly(_e):reactive(_e):_e}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter($=!1){return function(oe,ae,ie,le){let pe=oe[ae];if(isReadonly(pe)&&isRef(pe)&&!isRef(ie))return!1;if(!$&&(!isShallow(ie)&&!isReadonly(ie)&&(pe=toRaw(pe),ie=toRaw(ie)),!isArray$c(oe)&&isRef(pe)&&!isRef(ie)))return pe.value=ie,!0;const _e=isArray$c(oe)&&isIntegerKey(ae)?Number(ae)<oe.length:hasOwn$4(oe,ae),Ce=Reflect.set(oe,ae,ie,le);return oe===toRaw(le)&&(_e?hasChanged(ie,pe)&&trigger$2(oe,"set",ae,ie):trigger$2(oe,"add",ae,ie)),Ce}}function deleteProperty($,z){const oe=hasOwn$4($,z);$[z];const ae=Reflect.deleteProperty($,z);return ae&&oe&&trigger$2($,"delete",z,void 0),ae}function has$1$1($,z){const oe=Reflect.has($,z);return(!isSymbol$2(z)||!builtInSymbols.has(z))&&track($,"has",z),oe}function ownKeys($){return track($,"iterate",isArray$c($)?"length":ITERATE_KEY),Reflect.ownKeys($)}const mutableHandlers={get:get$1$1,set:set$1$1,deleteProperty,has:has$1$1,ownKeys},readonlyHandlers={get:readonlyGet,set($,z){return!0},deleteProperty($,z){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$2({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=$=>$,getProto$1=$=>Reflect.getPrototypeOf($);function get$2($,z,oe=!1,ae=!1){$=$.__v_raw;const ie=toRaw($),le=toRaw(z);oe||(z!==le&&track(ie,"get",z),track(ie,"get",le));const{has:pe}=getProto$1(ie),_e=ae?toShallow:oe?toReadonly:toReactive;if(pe.call(ie,z))return _e($.get(z));if(pe.call(ie,le))return _e($.get(le));$!==ie&&$.get(z)}function has$5($,z=!1){const oe=this.__v_raw,ae=toRaw(oe),ie=toRaw($);return z||($!==ie&&track(ae,"has",$),track(ae,"has",ie)),$===ie?oe.has($):oe.has($)||oe.has(ie)}function size($,z=!1){return $=$.__v_raw,!z&&track(toRaw($),"iterate",ITERATE_KEY),Reflect.get($,"size",$)}function add$1($){$=toRaw($);const z=toRaw(this);return getProto$1(z).has.call(z,$)||(z.add($),trigger$2(z,"add",$,$)),this}function set$4($,z){z=toRaw(z);const oe=toRaw(this),{has:ae,get:ie}=getProto$1(oe);let le=ae.call(oe,$);le||($=toRaw($),le=ae.call(oe,$));const pe=ie.call(oe,$);return oe.set($,z),le?hasChanged(z,pe)&&trigger$2(oe,"set",$,z):trigger$2(oe,"add",$,z),this}function deleteEntry($){const z=toRaw(this),{has:oe,get:ae}=getProto$1(z);let ie=oe.call(z,$);ie||($=toRaw($),ie=oe.call(z,$)),ae&&ae.call(z,$);const le=z.delete($);return ie&&trigger$2(z,"delete",$,void 0),le}function clear$2(){const $=toRaw(this),z=$.size!==0,oe=$.clear();return z&&trigger$2($,"clear",void 0,void 0),oe}function createForEach($,z){return function(ae,ie){const le=this,pe=le.__v_raw,_e=toRaw(pe),Ce=z?toShallow:$?toReadonly:toReactive;return!$&&track(_e,"iterate",ITERATE_KEY),pe.forEach(($e,xe)=>ae.call(ie,Ce($e),Ce(xe),le))}}function createIterableMethod($,z,oe){return function(...ae){const ie=this.__v_raw,le=toRaw(ie),pe=isMap$3(le),_e=$==="entries"||$===Symbol.iterator&&pe,Ce=$==="keys"&&pe,$e=ie[$](...ae),xe=oe?toShallow:z?toReadonly:toReactive;return!z&&track(le,"iterate",Ce?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ie,done:Ne}=$e.next();return Ne?{value:Ie,done:Ne}:{value:_e?[xe(Ie[0]),xe(Ie[1])]:xe(Ie),done:Ne}},[Symbol.iterator](){return this}}}}function createReadonlyMethod($){return function(...z){return $==="delete"?!1:this}}function createInstrumentations(){const $={get(le){return get$2(this,le)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},z={get(le){return get$2(this,le,!1,!0)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},oe={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)},ae={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=>{$[le]=createIterableMethod(le,!1,!1),oe[le]=createIterableMethod(le,!0,!1),z[le]=createIterableMethod(le,!1,!0),ae[le]=createIterableMethod(le,!0,!0)}),[$,oe,z,ae]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter($,z){const oe=z?$?shallowReadonlyInstrumentations:shallowInstrumentations:$?readonlyInstrumentations:mutableInstrumentations;return(ae,ie,le)=>ie==="__v_isReactive"?!$:ie==="__v_isReadonly"?$:ie==="__v_raw"?ae:Reflect.get(hasOwn$4(oe,ie)&&ie in ae?oe:ae,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($){switch($){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType($){return $.__v_skip||!Object.isExtensible($)?0:targetTypeMap(toRawType($))}function reactive($){return isReadonly($)?$:createReactiveObject($,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive($){return createReactiveObject($,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly($){return createReactiveObject($,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly($){return createReactiveObject($,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject($,z,oe,ae,ie){if(!isObject$8($)||$.__v_raw&&!(z&&$.__v_isReactive))return $;const le=ie.get($);if(le)return le;const pe=getTargetType($);if(pe===0)return $;const _e=new Proxy($,pe===2?ae:oe);return ie.set($,_e),_e}function isReactive($){return isReadonly($)?isReactive($.__v_raw):!!($&&$.__v_isReactive)}function isReadonly($){return!!($&&$.__v_isReadonly)}function isShallow($){return!!($&&$.__v_isShallow)}function isProxy($){return isReactive($)||isReadonly($)}function toRaw($){const z=$&&$.__v_raw;return z?toRaw(z):$}function markRaw($){return def($,"__v_skip",!0),$}const toReactive=$=>isObject$8($)?reactive($):$,toReadonly=$=>isObject$8($)?readonly($):$;function trackRefValue($){shouldTrack&&activeEffect&&($=toRaw($),trackEffects($.dep||($.dep=createDep())))}function triggerRefValue($,z){$=toRaw($);const oe=$.dep;oe&&triggerEffects(oe)}function isRef($){return!!($&&$.__v_isRef===!0)}function ref($){return createRef($,!1)}function shallowRef($){return createRef($,!0)}function createRef($,z){return isRef($)?$:new RefImpl($,z)}class RefImpl{constructor(z,oe){this.__v_isShallow=oe,this.dep=void 0,this.__v_isRef=!0,this._rawValue=oe?z:toRaw(z),this._value=oe?z:toReactive(z)}get value(){return trackRefValue(this),this._value}set value(z){const oe=this.__v_isShallow||isShallow(z)||isReadonly(z);z=oe?z:toRaw(z),hasChanged(z,this._rawValue)&&(this._rawValue=z,this._value=oe?z:toReactive(z),triggerRefValue(this))}}function triggerRef($){triggerRefValue($)}function unref($){return isRef($)?$.value:$}function toValue$1($){return isFunction$5($)?$():unref($)}const shallowUnwrapHandlers={get:($,z,oe)=>unref(Reflect.get($,z,oe)),set:($,z,oe,ae)=>{const ie=$[z];return isRef(ie)&&!isRef(oe)?(ie.value=oe,!0):Reflect.set($,z,oe,ae)}};function proxyRefs($){return isReactive($)?$:new Proxy($,shallowUnwrapHandlers)}class CustomRefImpl{constructor(z){this.dep=void 0,this.__v_isRef=!0;const{get:oe,set:ae}=z(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=oe,this._set=ae}get value(){return this._get()}set value(z){this._set(z)}}function customRef($){return new CustomRefImpl($)}function toRefs($){const z=isArray$c($)?new Array($.length):{};for(const oe in $)z[oe]=propertyToRef($,oe);return z}class ObjectRefImpl{constructor(z,oe,ae){this._object=z,this._key=oe,this._defaultValue=ae,this.__v_isRef=!0}get value(){const z=this._object[this._key];return z===void 0?this._defaultValue:z}set value(z){this._object[this._key]=z}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(z){this._getter=z,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1($,z,oe){return isRef($)?$:isFunction$5($)?new GetterRefImpl($):isObject$8($)&&arguments.length>1?propertyToRef($,z,oe):ref($)}function propertyToRef($,z,oe){const ae=$[z];return isRef(ae)?ae:new ObjectRefImpl($,z,oe)}class ComputedRefImpl{constructor(z,oe,ae,ie){this._setter=oe,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(z,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!ie,this.__v_isReadonly=ae}get value(){const z=toRaw(this);return trackRefValue(z),(z._dirty||!z._cacheable)&&(z._dirty=!1,z._value=z.effect.run()),z._value}set value(z){this._setter(z)}}function computed$1($,z,oe=!1){let ae,ie;const le=isFunction$5($);return le?(ae=$,ie=NOOP):(ae=$.get,ie=$.set),new ComputedRefImpl(ae,ie,le||!ie,oe)}function warn$2($,...z){}function assertNumber($,z){}function callWithErrorHandling($,z,oe,ae){let ie;try{ie=ae?$(...ae):$()}catch(le){handleError(le,z,oe)}return ie}function callWithAsyncErrorHandling($,z,oe,ae){if(isFunction$5($)){const le=callWithErrorHandling($,z,oe,ae);return le&&isPromise(le)&&le.catch(pe=>{handleError(pe,z,oe)}),le}const ie=[];for(let le=0;le<$.length;le++)ie.push(callWithAsyncErrorHandling($[le],z,oe,ae));return ie}function handleError($,z,oe,ae=!0){const ie=z?z.vnode:null;if(z){let le=z.parent;const pe=z.proxy,_e=oe;for(;le;){const $e=le.ec;if($e){for(let xe=0;xe<$e.length;xe++)if($e[xe]($,pe,_e)===!1)return}le=le.parent}const Ce=z.appContext.config.errorHandler;if(Ce){callWithErrorHandling(Ce,null,10,[$,pe,_e]);return}}logError$1($,oe,ie,ae)}function logError$1($,z,oe,ae=!0){console.error($)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick($){const z=currentFlushPromise||resolvedPromise;return $?z.then(this?$.bind(this):$):z}function findInsertionIndex($){let z=flushIndex+1,oe=queue.length;for(;z<oe;){const ae=z+oe>>>1;getId$1(queue[ae])<$?z=ae+1:oe=ae}return z}function queueJob($){(!queue.length||!queue.includes($,isFlushing&&$.allowRecurse?flushIndex+1:flushIndex))&&($.id==null?queue.push($):queue.splice(findInsertionIndex($.id),0,$),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob($){const z=queue.indexOf($);z>flushIndex&&queue.splice(z,1)}function queuePostFlushCb($){isArray$c($)?pendingPostFlushCbs.push(...$):(!activePostFlushCbs||!activePostFlushCbs.includes($,$.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push($),queueFlush()}function flushPreFlushCbs($,z=isFlushing?flushIndex+1:0){for(;z<queue.length;z++){const oe=queue[z];oe&&oe.pre&&(queue.splice(z,1),z--,oe())}}function flushPostFlushCbs($){if(pendingPostFlushCbs.length){const z=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...z);return}for(activePostFlushCbs=z,activePostFlushCbs.sort((oe,ae)=>getId$1(oe)-getId$1(ae)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=$=>$.id==null?1/0:$.id,comparator=($,z)=>{const oe=getId$1($)-getId$1(z);if(oe===0){if($.pre&&!z.pre)return-1;if(z.pre&&!$.pre)return 1}return oe};function flushJobs($){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const z=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const oe=queue[flushIndex];oe&&oe.active!==!1&&callWithErrorHandling(oe,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools,buffer=[];function setDevtoolsHook($,z){var oe,ae;devtools=$,devtools?(devtools.enabled=!0,buffer.forEach(({event:ie,args:le})=>devtools.emit(ie,...le)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((ae=(oe=window.navigator)==null?void 0:oe.userAgent)!=null&&ae.includes("jsdom"))?((z.__VUE_DEVTOOLS_HOOK_REPLAY__=z.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(le=>{setDevtoolsHook(le,z)}),setTimeout(()=>{devtools||(z.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit($,z,...oe){if($.isUnmounted)return;const ae=$.vnode.props||EMPTY_OBJ$1;let ie=oe;const le=z.startsWith("update:"),pe=le&&z.slice(7);if(pe&&pe in ae){const xe=`${pe==="modelValue"?"model":pe}Modifiers`,{number:Ie,trim:Ne}=ae[xe]||EMPTY_OBJ$1;Ne&&(ie=oe.map(Fe=>isString$7(Fe)?Fe.trim():Fe)),Ie&&(ie=oe.map(looseToNumber))}let _e,Ce=ae[_e=toHandlerKey(z)]||ae[_e=toHandlerKey(camelize(z))];!Ce&&le&&(Ce=ae[_e=toHandlerKey(hyphenate(z))]),Ce&&callWithAsyncErrorHandling(Ce,$,6,ie);const $e=ae[_e+"Once"];if($e){if(!$.emitted)$.emitted={};else if($.emitted[_e])return;$.emitted[_e]=!0,callWithAsyncErrorHandling($e,$,6,ie)}}function normalizeEmitsOptions($,z,oe=!1){const ae=z.emitsCache,ie=ae.get($);if(ie!==void 0)return ie;const le=$.emits;let pe={},_e=!1;if(!isFunction$5($)){const Ce=$e=>{const xe=normalizeEmitsOptions($e,z,!0);xe&&(_e=!0,extend$2(pe,xe))};!oe&&z.mixins.length&&z.mixins.forEach(Ce),$.extends&&Ce($.extends),$.mixins&&$.mixins.forEach(Ce)}return!le&&!_e?(isObject$8($)&&ae.set($,null),null):(isArray$c(le)?le.forEach(Ce=>pe[Ce]=null):extend$2(pe,le),isObject$8($)&&ae.set($,pe),pe)}function isEmitListener($,z){return!$||!isOn(z)?!1:(z=z.slice(2).replace(/Once$/,""),hasOwn$4($,z[0].toLowerCase()+z.slice(1))||hasOwn$4($,hyphenate(z))||hasOwn$4($,z))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance($){const z=currentRenderingInstance;return currentRenderingInstance=$,currentScopeId=$&&$.type.__scopeId||null,z}function pushScopeId($){currentScopeId=$}function popScopeId(){currentScopeId=null}const withScopeId=$=>withCtx;function withCtx($,z=currentRenderingInstance,oe){if(!z||$._n)return $;const ae=(...ie)=>{ae._d&&setBlockTracking(-1);const le=setCurrentRenderingInstance(z);let pe;try{pe=$(...ie)}finally{setCurrentRenderingInstance(le),ae._d&&setBlockTracking(1)}return pe};return ae._n=!0,ae._c=!0,ae._d=!0,ae}function markAttrsAccessed(){}function renderComponentRoot($){const{type:z,vnode:oe,proxy:ae,withProxy:ie,props:le,propsOptions:[pe],slots:_e,attrs:Ce,emit:$e,render:xe,renderCache:Ie,data:Ne,setupState:Fe,ctx:ze,inheritAttrs:At}=$;let Lt,hn;const vn=setCurrentRenderingInstance($);try{if(oe.shapeFlag&4){const bn=ie||ae;Lt=normalizeVNode(xe.call(bn,bn,Ie,le,Fe,Ne,ze)),hn=Ce}else{const bn=z;Lt=normalizeVNode(bn.length>1?bn(le,{attrs:Ce,slots:_e,emit:$e}):bn(le,null)),hn=z.props?Ce:getFunctionalFallthrough(Ce)}}catch(bn){blockStack.length=0,handleError(bn,$,1),Lt=createVNode(Comment)}let _n=Lt;if(hn&&At!==!1){const bn=Object.keys(hn),{shapeFlag:Cn}=_n;bn.length&&Cn&7&&(pe&&bn.some(isModelListener)&&(hn=filterModelListeners(hn,pe)),_n=cloneVNode(_n,hn))}return oe.dirs&&(_n=cloneVNode(_n),_n.dirs=_n.dirs?_n.dirs.concat(oe.dirs):oe.dirs),oe.transition&&(_n.transition=oe.transition),Lt=_n,setCurrentRenderingInstance(vn),Lt}function filterSingleRoot($){let z;for(let oe=0;oe<$.length;oe++){const ae=$[oe];if(isVNode$1(ae)){if(ae.type!==Comment||ae.children==="v-if"){if(z)return;z=ae}}else return}return z}const getFunctionalFallthrough=$=>{let z;for(const oe in $)(oe==="class"||oe==="style"||isOn(oe))&&((z||(z={}))[oe]=$[oe]);return z},filterModelListeners=($,z)=>{const oe={};for(const ae in $)(!isModelListener(ae)||!(ae.slice(9)in z))&&(oe[ae]=$[ae]);return oe};function shouldUpdateComponent($,z,oe){const{props:ae,children:ie,component:le}=$,{props:pe,children:_e,patchFlag:Ce}=z,$e=le.emitsOptions;if(z.dirs||z.transition)return!0;if(oe&&Ce>=0){if(Ce&1024)return!0;if(Ce&16)return ae?hasPropsChanged(ae,pe,$e):!!pe;if(Ce&8){const xe=z.dynamicProps;for(let Ie=0;Ie<xe.length;Ie++){const Ne=xe[Ie];if(pe[Ne]!==ae[Ne]&&!isEmitListener($e,Ne))return!0}}}else return(ie||_e)&&(!_e||!_e.$stable)?!0:ae===pe?!1:ae?pe?hasPropsChanged(ae,pe,$e):!0:!!pe;return!1}function hasPropsChanged($,z,oe){const ae=Object.keys(z);if(ae.length!==Object.keys($).length)return!0;for(let ie=0;ie<ae.length;ie++){const le=ae[ie];if(z[le]!==$[le]&&!isEmitListener(oe,le))return!0}return!1}function updateHOCHostEl({vnode:$,parent:z},oe){for(;z&&z.subTree===$;)($=z.vnode).el=oe,z=z.parent}const isSuspense=$=>$.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process($,z,oe,ae,ie,le,pe,_e,Ce,$e){$==null?mountSuspense(z,oe,ae,ie,le,pe,_e,Ce,$e):patchSuspense($,z,oe,ae,ie,pe,_e,Ce,$e)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1($,z){const oe=$.props&&$.props[z];isFunction$5(oe)&&oe()}function mountSuspense($,z,oe,ae,ie,le,pe,_e,Ce){const{p:$e,o:{createElement:xe}}=Ce,Ie=xe("div"),Ne=$.suspense=createSuspenseBoundary($,ie,ae,z,Ie,oe,le,pe,_e,Ce);$e(null,Ne.pendingBranch=$.ssContent,Ie,null,ae,Ne,le,pe),Ne.deps>0?(triggerEvent$1($,"onPending"),triggerEvent$1($,"onFallback"),$e(null,$.ssFallback,z,oe,ae,null,le,pe),setActiveBranch(Ne,$.ssFallback)):Ne.resolve(!1,!0)}function patchSuspense($,z,oe,ae,ie,le,pe,_e,{p:Ce,um:$e,o:{createElement:xe}}){const Ie=z.suspense=$.suspense;Ie.vnode=z,z.el=$.el;const Ne=z.ssContent,Fe=z.ssFallback,{activeBranch:ze,pendingBranch:At,isInFallback:Lt,isHydrating:hn}=Ie;if(At)Ie.pendingBranch=Ne,isSameVNodeType(Ne,At)?(Ce(At,Ne,Ie.hiddenContainer,null,ie,Ie,le,pe,_e),Ie.deps<=0?Ie.resolve():Lt&&(Ce(ze,Fe,oe,ae,ie,null,le,pe,_e),setActiveBranch(Ie,Fe))):(Ie.pendingId++,hn?(Ie.isHydrating=!1,Ie.activeBranch=At):$e(At,ie,Ie),Ie.deps=0,Ie.effects.length=0,Ie.hiddenContainer=xe("div"),Lt?(Ce(null,Ne,Ie.hiddenContainer,null,ie,Ie,le,pe,_e),Ie.deps<=0?Ie.resolve():(Ce(ze,Fe,oe,ae,ie,null,le,pe,_e),setActiveBranch(Ie,Fe))):ze&&isSameVNodeType(Ne,ze)?(Ce(ze,Ne,oe,ae,ie,Ie,le,pe,_e),Ie.resolve(!0)):(Ce(null,Ne,Ie.hiddenContainer,null,ie,Ie,le,pe,_e),Ie.deps<=0&&Ie.resolve()));else if(ze&&isSameVNodeType(Ne,ze))Ce(ze,Ne,oe,ae,ie,Ie,le,pe,_e),setActiveBranch(Ie,Ne);else if(triggerEvent$1(z,"onPending"),Ie.pendingBranch=Ne,Ie.pendingId++,Ce(null,Ne,Ie.hiddenContainer,null,ie,Ie,le,pe,_e),Ie.deps<=0)Ie.resolve();else{const{timeout:vn,pendingId:_n}=Ie;vn>0?setTimeout(()=>{Ie.pendingId===_n&&Ie.fallback(Fe)},vn):vn===0&&Ie.fallback(Fe)}}function createSuspenseBoundary($,z,oe,ae,ie,le,pe,_e,Ce,$e,xe=!1){const{p:Ie,m:Ne,um:Fe,n:ze,o:{parentNode:At,remove:Lt}}=$e;let hn;const vn=isVNodeSuspensible($);vn&&z!=null&&z.pendingBranch&&(hn=z.pendingId,z.deps++);const _n=$.props?toNumber$1($.props.timeout):void 0,bn={vnode:$,parent:z,parentComponent:oe,isSVG:pe,container:ae,hiddenContainer:ie,anchor:le,deps:0,pendingId:0,timeout:typeof _n=="number"?_n:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:xe,isUnmounted:!1,effects:[],resolve(Cn=!1,En=!1){const{vnode:$n,activeBranch:wn,pendingBranch:Tn,pendingId:xn,effects:kn,parentComponent:An,container:On}=bn;if(bn.isHydrating)bn.isHydrating=!1;else if(!Cn){const Dn=wn&&Tn.transition&&Tn.transition.mode==="out-in";Dn&&(wn.transition.afterLeave=()=>{xn===bn.pendingId&&Ne(Tn,On,Nn,0)});let{anchor:Nn}=bn;wn&&(Nn=ze(wn),Fe(wn,An,bn,!0)),Dn||Ne(Tn,On,Nn,0)}setActiveBranch(bn,Tn),bn.pendingBranch=null,bn.isInFallback=!1;let Mn=bn.parent,Fn=!1;for(;Mn;){if(Mn.pendingBranch){Mn.effects.push(...kn),Fn=!0;break}Mn=Mn.parent}Fn||queuePostFlushCb(kn),bn.effects=[],vn&&z&&z.pendingBranch&&hn===z.pendingId&&(z.deps--,z.deps===0&&!En&&z.resolve()),triggerEvent$1($n,"onResolve")},fallback(Cn){if(!bn.pendingBranch)return;const{vnode:En,activeBranch:$n,parentComponent:wn,container:Tn,isSVG:xn}=bn;triggerEvent$1(En,"onFallback");const kn=ze($n),An=()=>{bn.isInFallback&&(Ie(null,Cn,Tn,kn,wn,null,xn,_e,Ce),setActiveBranch(bn,Cn))},On=Cn.transition&&Cn.transition.mode==="out-in";On&&($n.transition.afterLeave=An),bn.isInFallback=!0,Fe($n,wn,null,!0),On||An()},move(Cn,En,$n){bn.activeBranch&&Ne(bn.activeBranch,Cn,En,$n),bn.container=Cn},next(){return bn.activeBranch&&ze(bn.activeBranch)},registerDep(Cn,En){const $n=!!bn.pendingBranch;$n&&bn.deps++;const wn=Cn.vnode.el;Cn.asyncDep.catch(Tn=>{handleError(Tn,Cn,0)}).then(Tn=>{if(Cn.isUnmounted||bn.isUnmounted||bn.pendingId!==Cn.suspenseId)return;Cn.asyncResolved=!0;const{vnode:xn}=Cn;handleSetupResult(Cn,Tn,!1),wn&&(xn.el=wn);const kn=!wn&&Cn.subTree.el;En(Cn,xn,At(wn||Cn.subTree.el),wn?null:ze(Cn.subTree),bn,pe,Ce),kn&&Lt(kn),updateHOCHostEl(Cn,xn.el),$n&&--bn.deps===0&&bn.resolve()})},unmount(Cn,En){bn.isUnmounted=!0,bn.activeBranch&&Fe(bn.activeBranch,oe,Cn,En),bn.pendingBranch&&Fe(bn.pendingBranch,oe,Cn,En)}};return bn}function hydrateSuspense($,z,oe,ae,ie,le,pe,_e,Ce){const $e=z.suspense=createSuspenseBoundary(z,ae,oe,$.parentNode,document.createElement("div"),null,ie,le,pe,_e,!0),xe=Ce($,$e.pendingBranch=z.ssContent,oe,$e,le,pe);return $e.deps===0&&$e.resolve(!1,!0),xe}function normalizeSuspenseChildren($){const{shapeFlag:z,children:oe}=$,ae=z&32;$.ssContent=normalizeSuspenseSlot(ae?oe.default:oe),$.ssFallback=ae?normalizeSuspenseSlot(oe.fallback):createVNode(Comment)}function normalizeSuspenseSlot($){let z;if(isFunction$5($)){const oe=isBlockTreeEnabled&&$._c;oe&&($._d=!1,openBlock()),$=$(),oe&&($._d=!0,z=currentBlock,closeBlock())}return isArray$c($)&&($=filterSingleRoot($)),$=normalizeVNode($),z&&!$.dynamicChildren&&($.dynamicChildren=z.filter(oe=>oe!==$)),$}function queueEffectWithSuspense($,z){z&&z.pendingBranch?isArray$c($)?z.effects.push(...$):z.effects.push($):queuePostFlushCb($)}function setActiveBranch($,z){$.activeBranch=z;const{vnode:oe,parentComponent:ae}=$,ie=oe.el=z.el;ae&&ae.subTree===oe&&(ae.vnode.el=ie,updateHOCHostEl(ae,ie))}function isVNodeSuspensible($){var z;return((z=$.props)==null?void 0:z.suspensible)!=null&&$.props.suspensible!==!1}function watchEffect($,z){return doWatch($,null,z)}function watchPostEffect($,z){return doWatch($,null,{flush:"post"})}function watchSyncEffect($,z){return doWatch($,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch($,z,oe){return doWatch($,z,oe)}function doWatch($,z,{immediate:oe,deep:ae,flush:ie,onTrack:le,onTrigger:pe}=EMPTY_OBJ$1){var _e;const Ce=getCurrentScope()===((_e=currentInstance)==null?void 0:_e.scope)?currentInstance:null;let $e,xe=!1,Ie=!1;if(isRef($)?($e=()=>$.value,xe=isShallow($)):isReactive($)?($e=()=>$,ae=!0):isArray$c($)?(Ie=!0,xe=$.some(bn=>isReactive(bn)||isShallow(bn)),$e=()=>$.map(bn=>{if(isRef(bn))return bn.value;if(isReactive(bn))return traverse(bn);if(isFunction$5(bn))return callWithErrorHandling(bn,Ce,2)})):isFunction$5($)?z?$e=()=>callWithErrorHandling($,Ce,2):$e=()=>{if(!(Ce&&Ce.isUnmounted))return Ne&&Ne(),callWithAsyncErrorHandling($,Ce,3,[Fe])}:$e=NOOP,z&&ae){const bn=$e;$e=()=>traverse(bn())}let Ne,Fe=bn=>{Ne=vn.onStop=()=>{callWithErrorHandling(bn,Ce,4)}},ze;if(isInSSRComponentSetup)if(Fe=NOOP,z?oe&&callWithAsyncErrorHandling(z,Ce,3,[$e(),Ie?[]:void 0,Fe]):$e(),ie==="sync"){const bn=useSSRContext();ze=bn.__watcherHandles||(bn.__watcherHandles=[])}else return NOOP;let At=Ie?new Array($.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Lt=()=>{if(vn.active)if(z){const bn=vn.run();(ae||xe||(Ie?bn.some((Cn,En)=>hasChanged(Cn,At[En])):hasChanged(bn,At)))&&(Ne&&Ne(),callWithAsyncErrorHandling(z,Ce,3,[bn,At===INITIAL_WATCHER_VALUE?void 0:Ie&&At[0]===INITIAL_WATCHER_VALUE?[]:At,Fe]),At=bn)}else vn.run()};Lt.allowRecurse=!!z;let hn;ie==="sync"?hn=Lt:ie==="post"?hn=()=>queuePostRenderEffect(Lt,Ce&&Ce.suspense):(Lt.pre=!0,Ce&&(Lt.id=Ce.uid),hn=()=>queueJob(Lt));const vn=new ReactiveEffect($e,hn);z?oe?Lt():At=vn.run():ie==="post"?queuePostRenderEffect(vn.run.bind(vn),Ce&&Ce.suspense):vn.run();const _n=()=>{vn.stop(),Ce&&Ce.scope&&remove(Ce.scope.effects,vn)};return ze&&ze.push(_n),_n}function instanceWatch($,z,oe){const ae=this.proxy,ie=isString$7($)?$.includes(".")?createPathGetter(ae,$):()=>ae[$]:$.bind(ae,ae);let le;isFunction$5(z)?le=z:(le=z.handler,oe=z);const pe=currentInstance;setCurrentInstance(this);const _e=doWatch(ie,le.bind(ae),oe);return pe?setCurrentInstance(pe):unsetCurrentInstance(),_e}function createPathGetter($,z){const oe=z.split(".");return()=>{let ae=$;for(let ie=0;ie<oe.length&&ae;ie++)ae=ae[oe[ie]];return ae}}function traverse($,z){if(!isObject$8($)||$.__v_skip||(z=z||new Set,z.has($)))return $;if(z.add($),isRef($))traverse($.value,z);else if(isArray$c($))for(let oe=0;oe<$.length;oe++)traverse($[oe],z);else if(isSet$3($)||isMap$3($))$.forEach(oe=>{traverse(oe,z)});else if(isPlainObject$4($))for(const oe in $)traverse($[oe],z);return $}function withDirectives($,z){const oe=currentRenderingInstance;if(oe===null)return $;const ae=getExposeProxy(oe)||oe.proxy,ie=$.dirs||($.dirs=[]);for(let le=0;le<z.length;le++){let[pe,_e,Ce,$e=EMPTY_OBJ$1]=z[le];pe&&(isFunction$5(pe)&&(pe={mounted:pe,updated:pe}),pe.deep&&traverse(_e),ie.push({dir:pe,instance:ae,value:_e,oldValue:void 0,arg:Ce,modifiers:$e}))}return $}function invokeDirectiveHook($,z,oe,ae){const ie=$.dirs,le=z&&z.dirs;for(let pe=0;pe<ie.length;pe++){const _e=ie[pe];le&&(_e.oldValue=le[pe].value);let Ce=_e.dir[ae];Ce&&(pauseTracking(),callWithAsyncErrorHandling(Ce,oe,8,[$.el,_e,$,z]),resetTracking())}}function useTransitionState(){const $={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{$.isMounted=!0}),onBeforeUnmount(()=>{$.isUnmounting=!0}),$}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($,{slots:z}){const oe=getCurrentInstance(),ae=useTransitionState();let ie;return()=>{const le=z.default&&getTransitionRawChildren(z.default(),!0);if(!le||!le.length)return;let pe=le[0];if(le.length>1){for(const At of le)if(At.type!==Comment){pe=At;break}}const _e=toRaw($),{mode:Ce}=_e;if(ae.isLeaving)return emptyPlaceholder(pe);const $e=getKeepAliveChild(pe);if(!$e)return emptyPlaceholder(pe);const xe=resolveTransitionHooks($e,_e,ae,oe);setTransitionHooks($e,xe);const Ie=oe.subTree,Ne=Ie&&getKeepAliveChild(Ie);let Fe=!1;const{getTransitionKey:ze}=$e.type;if(ze){const At=ze();ie===void 0?ie=At:At!==ie&&(ie=At,Fe=!0)}if(Ne&&Ne.type!==Comment&&(!isSameVNodeType($e,Ne)||Fe)){const At=resolveTransitionHooks(Ne,_e,ae,oe);if(setTransitionHooks(Ne,At),Ce==="out-in")return ae.isLeaving=!0,At.afterLeave=()=>{ae.isLeaving=!1,oe.update.active!==!1&&oe.update()},emptyPlaceholder(pe);Ce==="in-out"&&$e.type!==Comment&&(At.delayLeave=(Lt,hn,vn)=>{const _n=getLeavingNodesForType(ae,Ne);_n[String(Ne.key)]=Ne,Lt._leaveCb=()=>{hn(),Lt._leaveCb=void 0,delete xe.delayedLeave},xe.delayedLeave=vn})}return pe}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType($,z){const{leavingVNodes:oe}=$;let ae=oe.get(z.type);return ae||(ae=Object.create(null),oe.set(z.type,ae)),ae}function resolveTransitionHooks($,z,oe,ae){const{appear:ie,mode:le,persisted:pe=!1,onBeforeEnter:_e,onEnter:Ce,onAfterEnter:$e,onEnterCancelled:xe,onBeforeLeave:Ie,onLeave:Ne,onAfterLeave:Fe,onLeaveCancelled:ze,onBeforeAppear:At,onAppear:Lt,onAfterAppear:hn,onAppearCancelled:vn}=z,_n=String($.key),bn=getLeavingNodesForType(oe,$),Cn=(wn,Tn)=>{wn&&callWithAsyncErrorHandling(wn,ae,9,Tn)},En=(wn,Tn)=>{const xn=Tn[1];Cn(wn,Tn),isArray$c(wn)?wn.every(kn=>kn.length<=1)&&xn():wn.length<=1&&xn()},$n={mode:le,persisted:pe,beforeEnter(wn){let Tn=_e;if(!oe.isMounted)if(ie)Tn=At||_e;else return;wn._leaveCb&&wn._leaveCb(!0);const xn=bn[_n];xn&&isSameVNodeType($,xn)&&xn.el._leaveCb&&xn.el._leaveCb(),Cn(Tn,[wn])},enter(wn){let Tn=Ce,xn=$e,kn=xe;if(!oe.isMounted)if(ie)Tn=Lt||Ce,xn=hn||$e,kn=vn||xe;else return;let An=!1;const On=wn._enterCb=Mn=>{An||(An=!0,Mn?Cn(kn,[wn]):Cn(xn,[wn]),$n.delayedLeave&&$n.delayedLeave(),wn._enterCb=void 0)};Tn?En(Tn,[wn,On]):On()},leave(wn,Tn){const xn=String($.key);if(wn._enterCb&&wn._enterCb(!0),oe.isUnmounting)return Tn();Cn(Ie,[wn]);let kn=!1;const An=wn._leaveCb=On=>{kn||(kn=!0,Tn(),On?Cn(ze,[wn]):Cn(Fe,[wn]),wn._leaveCb=void 0,bn[xn]===$&&delete bn[xn])};bn[xn]=$,Ne?En(Ne,[wn,An]):An()},clone(wn){return resolveTransitionHooks(wn,z,oe,ae)}};return $n}function emptyPlaceholder($){if(isKeepAlive($))return $=cloneVNode($),$.children=null,$}function getKeepAliveChild($){return isKeepAlive($)?$.children?$.children[0]:void 0:$}function setTransitionHooks($,z){$.shapeFlag&6&&$.component?setTransitionHooks($.component.subTree,z):$.shapeFlag&128?($.ssContent.transition=z.clone($.ssContent),$.ssFallback.transition=z.clone($.ssFallback)):$.transition=z}function getTransitionRawChildren($,z=!1,oe){let ae=[],ie=0;for(let le=0;le<$.length;le++){let pe=$[le];const _e=oe==null?pe.key:String(oe)+String(pe.key!=null?pe.key:le);pe.type===Fragment?(pe.patchFlag&128&&ie++,ae=ae.concat(getTransitionRawChildren(pe.children,z,_e))):(z||pe.type!==Comment)&&ae.push(_e!=null?cloneVNode(pe,{key:_e}):pe)}if(ie>1)for(let le=0;le<ae.length;le++)ae[le].patchFlag=-2;return ae}function defineComponent($,z){return isFunction$5($)?(()=>extend$2({name:$.name},z,{setup:$}))():$}const isAsyncWrapper=$=>!!$.type.__asyncLoader;function defineAsyncComponent($){isFunction$5($)&&($={loader:$});const{loader:z,loadingComponent:oe,errorComponent:ae,delay:ie=200,timeout:le,suspensible:pe=!0,onError:_e}=$;let Ce=null,$e,xe=0;const Ie=()=>(xe++,Ce=null,Ne()),Ne=()=>{let Fe;return Ce||(Fe=Ce=z().catch(ze=>{if(ze=ze instanceof Error?ze:new Error(String(ze)),_e)return new Promise((At,Lt)=>{_e(ze,()=>At(Ie()),()=>Lt(ze),xe+1)});throw ze}).then(ze=>Fe!==Ce&&Ce?Ce:(ze&&(ze.__esModule||ze[Symbol.toStringTag]==="Module")&&(ze=ze.default),$e=ze,ze)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Ne,get __asyncResolved(){return $e},setup(){const Fe=currentInstance;if($e)return()=>createInnerComp($e,Fe);const ze=vn=>{Ce=null,handleError(vn,Fe,13,!ae)};if(pe&&Fe.suspense||isInSSRComponentSetup)return Ne().then(vn=>()=>createInnerComp(vn,Fe)).catch(vn=>(ze(vn),()=>ae?createVNode(ae,{error:vn}):null));const At=ref(!1),Lt=ref(),hn=ref(!!ie);return ie&&setTimeout(()=>{hn.value=!1},ie),le!=null&&setTimeout(()=>{if(!At.value&&!Lt.value){const vn=new Error(`Async component timed out after ${le}ms.`);ze(vn),Lt.value=vn}},le),Ne().then(()=>{At.value=!0,Fe.parent&&isKeepAlive(Fe.parent.vnode)&&queueJob(Fe.parent.update)}).catch(vn=>{ze(vn),Lt.value=vn}),()=>{if(At.value&&$e)return createInnerComp($e,Fe);if(Lt.value&&ae)return createVNode(ae,{error:Lt.value});if(oe&&!hn.value)return createVNode(oe)}}})}function createInnerComp($,z){const{ref:oe,props:ae,children:ie,ce:le}=z.vnode,pe=createVNode($,ae,ie);return pe.ref=oe,pe.ce=le,delete z.vnode.ce,pe}const isKeepAlive=$=>$.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup($,{slots:z}){const oe=getCurrentInstance(),ae=oe.ctx;if(!ae.renderer)return()=>{const vn=z.default&&z.default();return vn&&vn.length===1?vn[0]:vn};const ie=new Map,le=new Set;let pe=null;const _e=oe.suspense,{renderer:{p:Ce,m:$e,um:xe,o:{createElement:Ie}}}=ae,Ne=Ie("div");ae.activate=(vn,_n,bn,Cn,En)=>{const $n=vn.component;$e(vn,_n,bn,0,_e),Ce($n.vnode,vn,_n,bn,$n,_e,Cn,vn.slotScopeIds,En),queuePostRenderEffect(()=>{$n.isDeactivated=!1,$n.a&&invokeArrayFns($n.a);const wn=vn.props&&vn.props.onVnodeMounted;wn&&invokeVNodeHook(wn,$n.parent,vn)},_e)},ae.deactivate=vn=>{const _n=vn.component;$e(vn,Ne,null,1,_e),queuePostRenderEffect(()=>{_n.da&&invokeArrayFns(_n.da);const bn=vn.props&&vn.props.onVnodeUnmounted;bn&&invokeVNodeHook(bn,_n.parent,vn),_n.isDeactivated=!0},_e)};function Fe(vn){resetShapeFlag(vn),xe(vn,oe,_e,!0)}function ze(vn){ie.forEach((_n,bn)=>{const Cn=getComponentName(_n.type);Cn&&(!vn||!vn(Cn))&&At(bn)})}function At(vn){const _n=ie.get(vn);!pe||!isSameVNodeType(_n,pe)?Fe(_n):pe&&resetShapeFlag(pe),ie.delete(vn),le.delete(vn)}watch(()=>[$.include,$.exclude],([vn,_n])=>{vn&&ze(bn=>matches(vn,bn)),_n&&ze(bn=>!matches(_n,bn))},{flush:"post",deep:!0});let Lt=null;const hn=()=>{Lt!=null&&ie.set(Lt,getInnerChild(oe.subTree))};return onMounted(hn),onUpdated(hn),onBeforeUnmount(()=>{ie.forEach(vn=>{const{subTree:_n,suspense:bn}=oe,Cn=getInnerChild(_n);if(vn.type===Cn.type&&vn.key===Cn.key){resetShapeFlag(Cn);const En=Cn.component.da;En&&queuePostRenderEffect(En,bn);return}Fe(vn)})}),()=>{if(Lt=null,!z.default)return null;const vn=z.default(),_n=vn[0];if(vn.length>1)return pe=null,vn;if(!isVNode$1(_n)||!(_n.shapeFlag&4)&&!(_n.shapeFlag&128))return pe=null,_n;let bn=getInnerChild(_n);const Cn=bn.type,En=getComponentName(isAsyncWrapper(bn)?bn.type.__asyncResolved||{}:Cn),{include:$n,exclude:wn,max:Tn}=$;if($n&&(!En||!matches($n,En))||wn&&En&&matches(wn,En))return pe=bn,_n;const xn=bn.key==null?Cn:bn.key,kn=ie.get(xn);return bn.el&&(bn=cloneVNode(bn),_n.shapeFlag&128&&(_n.ssContent=bn)),Lt=xn,kn?(bn.el=kn.el,bn.component=kn.component,bn.transition&&setTransitionHooks(bn,bn.transition),bn.shapeFlag|=512,le.delete(xn),le.add(xn)):(le.add(xn),Tn&&le.size>parseInt(Tn,10)&&At(le.values().next().value)),bn.shapeFlag|=256,pe=bn,isSuspense(_n.type)?_n:bn}}},KeepAlive=KeepAliveImpl;function matches($,z){return isArray$c($)?$.some(oe=>matches(oe,z)):isString$7($)?$.split(",").includes(z):isRegExp$5($)?$.test(z):!1}function onActivated($,z){registerKeepAliveHook($,"a",z)}function onDeactivated($,z){registerKeepAliveHook($,"da",z)}function registerKeepAliveHook($,z,oe=currentInstance){const ae=$.__wdc||($.__wdc=()=>{let ie=oe;for(;ie;){if(ie.isDeactivated)return;ie=ie.parent}return $()});if(injectHook(z,ae,oe),oe){let ie=oe.parent;for(;ie&&ie.parent;)isKeepAlive(ie.parent.vnode)&&injectToKeepAliveRoot(ae,z,oe,ie),ie=ie.parent}}function injectToKeepAliveRoot($,z,oe,ae){const ie=injectHook(z,$,ae,!0);onUnmounted(()=>{remove(ae[z],ie)},oe)}function resetShapeFlag($){$.shapeFlag&=-257,$.shapeFlag&=-513}function getInnerChild($){return $.shapeFlag&128?$.ssContent:$}function injectHook($,z,oe=currentInstance,ae=!1){if(oe){const ie=oe[$]||(oe[$]=[]),le=z.__weh||(z.__weh=(...pe)=>{if(oe.isUnmounted)return;pauseTracking(),setCurrentInstance(oe);const _e=callWithAsyncErrorHandling(z,oe,$,pe);return unsetCurrentInstance(),resetTracking(),_e});return ae?ie.unshift(le):ie.push(le),le}}const createHook=$=>(z,oe=currentInstance)=>(!isInSSRComponentSetup||$==="sp")&&injectHook($,(...ae)=>z(...ae),oe),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($,z=currentInstance){injectHook("ec",$,z)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent($,z){return resolveAsset(COMPONENTS,$,!0,z)||$}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent($){return isString$7($)?resolveAsset(COMPONENTS,$,!1)||$:$||NULL_DYNAMIC_COMPONENT}function resolveDirective($){return resolveAsset(DIRECTIVES,$)}function resolveAsset($,z,oe=!0,ae=!1){const ie=currentRenderingInstance||currentInstance;if(ie){const le=ie.type;if($===COMPONENTS){const _e=getComponentName(le,!1);if(_e&&(_e===z||_e===camelize(z)||_e===capitalize$2(camelize(z))))return le}const pe=resolve(ie[$]||le[$],z)||resolve(ie.appContext[$],z);return!pe&&ae?le:pe}}function resolve($,z){return $&&($[z]||$[camelize(z)]||$[capitalize$2(camelize(z))])}function renderList($,z,oe,ae){let ie;const le=oe&&oe[ae];if(isArray$c($)||isString$7($)){ie=new Array($.length);for(let pe=0,_e=$.length;pe<_e;pe++)ie[pe]=z($[pe],pe,void 0,le&&le[pe])}else if(typeof $=="number"){ie=new Array($);for(let pe=0;pe<$;pe++)ie[pe]=z(pe+1,pe,void 0,le&&le[pe])}else if(isObject$8($))if($[Symbol.iterator])ie=Array.from($,(pe,_e)=>z(pe,_e,void 0,le&&le[_e]));else{const pe=Object.keys($);ie=new Array(pe.length);for(let _e=0,Ce=pe.length;_e<Ce;_e++){const $e=pe[_e];ie[_e]=z($[$e],$e,_e,le&&le[_e])}}else ie=[];return oe&&(oe[ae]=ie),ie}function createSlots($,z){for(let oe=0;oe<z.length;oe++){const ae=z[oe];if(isArray$c(ae))for(let ie=0;ie<ae.length;ie++)$[ae[ie].name]=ae[ie].fn;else ae&&($[ae.name]=ae.key?(...ie)=>{const le=ae.fn(...ie);return le&&(le.key=ae.key),le}:ae.fn)}return $}function renderSlot($,z,oe={},ae,ie){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return z!=="default"&&(oe.name=z),createVNode("slot",oe,ae&&ae());let le=$[z];le&&le._c&&(le._d=!1),openBlock();const pe=le&&ensureValidVNode(le(oe)),_e=createBlock(Fragment,{key:oe.key||pe&&pe.key||`_${z}`},pe||(ae?ae():[]),pe&&$._===1?64:-2);return!ie&&_e.scopeId&&(_e.slotScopeIds=[_e.scopeId+"-s"]),le&&le._c&&(le._d=!0),_e}function ensureValidVNode($){return $.some(z=>isVNode$1(z)?!(z.type===Comment||z.type===Fragment&&!ensureValidVNode(z.children)):!0)?$:null}function toHandlers($,z){const oe={};for(const ae in $)oe[z&&/[A-Z]/.test(ae)?`on:${ae}`:toHandlerKey(ae)]=$[ae];return oe}const getPublicInstance=$=>$?isStatefulComponent($)?getExposeProxy($)||$.proxy:getPublicInstance($.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:$=>$,$el:$=>$.vnode.el,$data:$=>$.data,$props:$=>$.props,$attrs:$=>$.attrs,$slots:$=>$.slots,$refs:$=>$.refs,$parent:$=>getPublicInstance($.parent),$root:$=>getPublicInstance($.root),$emit:$=>$.emit,$options:$=>resolveMergedOptions($),$forceUpdate:$=>$.f||($.f=()=>queueJob($.update)),$nextTick:$=>$.n||($.n=nextTick.bind($.proxy)),$watch:$=>instanceWatch.bind($)}),hasSetupBinding=($,z)=>$!==EMPTY_OBJ$1&&!$.__isScriptSetup&&hasOwn$4($,z),PublicInstanceProxyHandlers={get({_:$},z){const{ctx:oe,setupState:ae,data:ie,props:le,accessCache:pe,type:_e,appContext:Ce}=$;let $e;if(z[0]!=="$"){const Fe=pe[z];if(Fe!==void 0)switch(Fe){case 1:return ae[z];case 2:return ie[z];case 4:return oe[z];case 3:return le[z]}else{if(hasSetupBinding(ae,z))return pe[z]=1,ae[z];if(ie!==EMPTY_OBJ$1&&hasOwn$4(ie,z))return pe[z]=2,ie[z];if(($e=$.propsOptions[0])&&hasOwn$4($e,z))return pe[z]=3,le[z];if(oe!==EMPTY_OBJ$1&&hasOwn$4(oe,z))return pe[z]=4,oe[z];shouldCacheAccess&&(pe[z]=0)}}const xe=publicPropertiesMap[z];let Ie,Ne;if(xe)return z==="$attrs"&&track($,"get",z),xe($);if((Ie=_e.__cssModules)&&(Ie=Ie[z]))return Ie;if(oe!==EMPTY_OBJ$1&&hasOwn$4(oe,z))return pe[z]=4,oe[z];if(Ne=Ce.config.globalProperties,hasOwn$4(Ne,z))return Ne[z]},set({_:$},z,oe){const{data:ae,setupState:ie,ctx:le}=$;return hasSetupBinding(ie,z)?(ie[z]=oe,!0):ae!==EMPTY_OBJ$1&&hasOwn$4(ae,z)?(ae[z]=oe,!0):hasOwn$4($.props,z)||z[0]==="$"&&z.slice(1)in $?!1:(le[z]=oe,!0)},has({_:{data:$,setupState:z,accessCache:oe,ctx:ae,appContext:ie,propsOptions:le}},pe){let _e;return!!oe[pe]||$!==EMPTY_OBJ$1&&hasOwn$4($,pe)||hasSetupBinding(z,pe)||(_e=le[0])&&hasOwn$4(_e,pe)||hasOwn$4(ae,pe)||hasOwn$4(publicPropertiesMap,pe)||hasOwn$4(ie.config.globalProperties,pe)},defineProperty($,z,oe){return oe.get!=null?$._.accessCache[z]=0:hasOwn$4(oe,"value")&&this.set($,z,oe.value,null),Reflect.defineProperty($,z,oe)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get($,z){if(z!==Symbol.unscopables)return PublicInstanceProxyHandlers.get($,z,$)},has($,z){return z[0]!=="_"&&!isGloballyWhitelisted(z)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose($){}function defineOptions($){}function defineSlots(){return null}function defineModel(){}function withDefaults($,z){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function useModel($,z,oe){const ae=getCurrentInstance();if(oe&&oe.local){const ie=ref($[z]);return watch(()=>$[z],le=>ie.value=le),watch(ie,le=>{le!==$[z]&&ae.emit(`update:${z}`,le)}),ie}else return{__v_isRef:!0,get value(){return $[z]},set value(ie){ae.emit(`update:${z}`,ie)}}}function getContext(){const $=getCurrentInstance();return $.setupContext||($.setupContext=createSetupContext($))}function normalizePropsOrEmits($){return isArray$c($)?$.reduce((z,oe)=>(z[oe]=null,z),{}):$}function mergeDefaults($,z){const oe=normalizePropsOrEmits($);for(const ae in z){if(ae.startsWith("__skip"))continue;let ie=oe[ae];ie?isArray$c(ie)||isFunction$5(ie)?ie=oe[ae]={type:ie,default:z[ae]}:ie.default=z[ae]:ie===null&&(ie=oe[ae]={default:z[ae]}),ie&&z[`__skip_${ae}`]&&(ie.skipFactory=!0)}return oe}function mergeModels($,z){return!$||!z?$||z:isArray$c($)&&isArray$c(z)?$.concat(z):extend$2({},normalizePropsOrEmits($),normalizePropsOrEmits(z))}function createPropsRestProxy($,z){const oe={};for(const ae in $)z.includes(ae)||Object.defineProperty(oe,ae,{enumerable:!0,get:()=>$[ae]});return oe}function withAsyncContext($){const z=getCurrentInstance();let oe=$();return unsetCurrentInstance(),isPromise(oe)&&(oe=oe.catch(ae=>{throw setCurrentInstance(z),ae})),[oe,()=>setCurrentInstance(z)]}let shouldCacheAccess=!0;function applyOptions($){const z=resolveMergedOptions($),oe=$.proxy,ae=$.ctx;shouldCacheAccess=!1,z.beforeCreate&&callHook$1(z.beforeCreate,$,"bc");const{data:ie,computed:le,methods:pe,watch:_e,provide:Ce,inject:$e,created:xe,beforeMount:Ie,mounted:Ne,beforeUpdate:Fe,updated:ze,activated:At,deactivated:Lt,beforeDestroy:hn,beforeUnmount:vn,destroyed:_n,unmounted:bn,render:Cn,renderTracked:En,renderTriggered:$n,errorCaptured:wn,serverPrefetch:Tn,expose:xn,inheritAttrs:kn,components:An,directives:On,filters:Mn}=z;if($e&&resolveInjections($e,ae,null),pe)for(const Nn in pe){const Vn=pe[Nn];isFunction$5(Vn)&&(ae[Nn]=Vn.bind(oe))}if(ie){const Nn=ie.call(oe,oe);isObject$8(Nn)&&($.data=reactive(Nn))}if(shouldCacheAccess=!0,le)for(const Nn in le){const Vn=le[Nn],Bn=isFunction$5(Vn)?Vn.bind(oe,oe):isFunction$5(Vn.get)?Vn.get.bind(oe,oe):NOOP,zn=!isFunction$5(Vn)&&isFunction$5(Vn.set)?Vn.set.bind(oe):NOOP,Xn=computed({get:Bn,set:zn});Object.defineProperty(ae,Nn,{enumerable:!0,configurable:!0,get:()=>Xn.value,set:Un=>Xn.value=Un})}if(_e)for(const Nn in _e)createWatcher(_e[Nn],ae,oe,Nn);if(Ce){const Nn=isFunction$5(Ce)?Ce.call(oe):Ce;Reflect.ownKeys(Nn).forEach(Vn=>{provide(Vn,Nn[Vn])})}xe&&callHook$1(xe,$,"c");function Dn(Nn,Vn){isArray$c(Vn)?Vn.forEach(Bn=>Nn(Bn.bind(oe))):Vn&&Nn(Vn.bind(oe))}if(Dn(onBeforeMount,Ie),Dn(onMounted,Ne),Dn(onBeforeUpdate,Fe),Dn(onUpdated,ze),Dn(onActivated,At),Dn(onDeactivated,Lt),Dn(onErrorCaptured,wn),Dn(onRenderTracked,En),Dn(onRenderTriggered,$n),Dn(onBeforeUnmount,vn),Dn(onUnmounted,bn),Dn(onServerPrefetch,Tn),isArray$c(xn))if(xn.length){const Nn=$.exposed||($.exposed={});xn.forEach(Vn=>{Object.defineProperty(Nn,Vn,{get:()=>oe[Vn],set:Bn=>oe[Vn]=Bn})})}else $.exposed||($.exposed={});Cn&&$.render===NOOP&&($.render=Cn),kn!=null&&($.inheritAttrs=kn),An&&($.components=An),On&&($.directives=On)}function resolveInjections($,z,oe=NOOP){isArray$c($)&&($=normalizeInject($));for(const ae in $){const ie=$[ae];let le;isObject$8(ie)?"default"in ie?le=inject(ie.from||ae,ie.default,!0):le=inject(ie.from||ae):le=inject(ie),isRef(le)?Object.defineProperty(z,ae,{enumerable:!0,configurable:!0,get:()=>le.value,set:pe=>le.value=pe}):z[ae]=le}}function callHook$1($,z,oe){callWithAsyncErrorHandling(isArray$c($)?$.map(ae=>ae.bind(z.proxy)):$.bind(z.proxy),z,oe)}function createWatcher($,z,oe,ae){const ie=ae.includes(".")?createPathGetter(oe,ae):()=>oe[ae];if(isString$7($)){const le=z[$];isFunction$5(le)&&watch(ie,le)}else if(isFunction$5($))watch(ie,$.bind(oe));else if(isObject$8($))if(isArray$c($))$.forEach(le=>createWatcher(le,z,oe,ae));else{const le=isFunction$5($.handler)?$.handler.bind(oe):z[$.handler];isFunction$5(le)&&watch(ie,le,$)}}function resolveMergedOptions($){const z=$.type,{mixins:oe,extends:ae}=z,{mixins:ie,optionsCache:le,config:{optionMergeStrategies:pe}}=$.appContext,_e=le.get(z);let Ce;return _e?Ce=_e:!ie.length&&!oe&&!ae?Ce=z:(Ce={},ie.length&&ie.forEach($e=>mergeOptions$2(Ce,$e,pe,!0)),mergeOptions$2(Ce,z,pe)),isObject$8(z)&&le.set(z,Ce),Ce}function mergeOptions$2($,z,oe,ae=!1){const{mixins:ie,extends:le}=z;le&&mergeOptions$2($,le,oe,!0),ie&&ie.forEach(pe=>mergeOptions$2($,pe,oe,!0));for(const pe in z)if(!(ae&&pe==="expose")){const _e=internalOptionMergeStrats[pe]||oe&&oe[pe];$[pe]=_e?_e($[pe],z[pe]):z[pe]}return $}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($,z){return z?$?function(){return extend$2(isFunction$5($)?$.call(this,this):$,isFunction$5(z)?z.call(this,this):z)}:z:$}function mergeInject($,z){return mergeObjectOptions(normalizeInject($),normalizeInject(z))}function normalizeInject($){if(isArray$c($)){const z={};for(let oe=0;oe<$.length;oe++)z[$[oe]]=$[oe];return z}return $}function mergeAsArray($,z){return $?[...new Set([].concat($,z))]:z}function mergeObjectOptions($,z){return $?extend$2(Object.create(null),$,z):z}function mergeEmitsOrPropsOptions($,z){return $?isArray$c($)&&isArray$c(z)?[...new Set([...$,...z])]:extend$2(Object.create(null),normalizePropsOrEmits($),normalizePropsOrEmits(z??{})):z}function mergeWatchOptions($,z){if(!$)return z;if(!z)return $;const oe=extend$2(Object.create(null),$);for(const ae in z)oe[ae]=mergeAsArray($[ae],z[ae]);return oe}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI($,z){return function(ae,ie=null){isFunction$5(ae)||(ae=extend$2({},ae)),ie!=null&&!isObject$8(ie)&&(ie=null);const le=createAppContext(),pe=new Set;let _e=!1;const Ce=le.app={_uid:uid$1++,_component:ae,_props:ie,_container:null,_context:le,_instance:null,version:version$3,get config(){return le.config},set config($e){},use($e,...xe){return pe.has($e)||($e&&isFunction$5($e.install)?(pe.add($e),$e.install(Ce,...xe)):isFunction$5($e)&&(pe.add($e),$e(Ce,...xe))),Ce},mixin($e){return le.mixins.includes($e)||le.mixins.push($e),Ce},component($e,xe){return xe?(le.components[$e]=xe,Ce):le.components[$e]},directive($e,xe){return xe?(le.directives[$e]=xe,Ce):le.directives[$e]},mount($e,xe,Ie){if(!_e){const Ne=createVNode(ae,ie);return Ne.appContext=le,xe&&z?z(Ne,$e):$(Ne,$e,Ie),_e=!0,Ce._container=$e,$e.__vue_app__=Ce,getExposeProxy(Ne.component)||Ne.component.proxy}},unmount(){_e&&($(null,Ce._container),delete Ce._container.__vue_app__)},provide($e,xe){return le.provides[$e]=xe,Ce},runWithContext($e){currentApp=Ce;try{return $e()}finally{currentApp=null}}};return Ce}}let currentApp=null;function provide($,z){if(currentInstance){let oe=currentInstance.provides;const ae=currentInstance.parent&¤tInstance.parent.provides;ae===oe&&(oe=currentInstance.provides=Object.create(ae)),oe[$]=z}}function inject($,z,oe=!1){const ae=currentInstance||currentRenderingInstance;if(ae||currentApp){const ie=ae?ae.parent==null?ae.vnode.appContext&&ae.vnode.appContext.provides:ae.parent.provides:currentApp._context.provides;if(ie&&$ in ie)return ie[$];if(arguments.length>1)return oe&&isFunction$5(z)?z.call(ae&&ae.proxy):z}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1($,z,oe,ae=!1){const ie={},le={};def(le,InternalObjectKey,1),$.propsDefaults=Object.create(null),setFullProps($,z,ie,le);for(const pe in $.propsOptions[0])pe in ie||(ie[pe]=void 0);oe?$.props=ae?ie:shallowReactive(ie):$.type.props?$.props=ie:$.props=le,$.attrs=le}function updateProps$2($,z,oe,ae){const{props:ie,attrs:le,vnode:{patchFlag:pe}}=$,_e=toRaw(ie),[Ce]=$.propsOptions;let $e=!1;if((ae||pe>0)&&!(pe&16)){if(pe&8){const xe=$.vnode.dynamicProps;for(let Ie=0;Ie<xe.length;Ie++){let Ne=xe[Ie];if(isEmitListener($.emitsOptions,Ne))continue;const Fe=z[Ne];if(Ce)if(hasOwn$4(le,Ne))Fe!==le[Ne]&&(le[Ne]=Fe,$e=!0);else{const ze=camelize(Ne);ie[ze]=resolvePropValue(Ce,_e,ze,Fe,$,!1)}else Fe!==le[Ne]&&(le[Ne]=Fe,$e=!0)}}}else{setFullProps($,z,ie,le)&&($e=!0);let xe;for(const Ie in _e)(!z||!hasOwn$4(z,Ie)&&((xe=hyphenate(Ie))===Ie||!hasOwn$4(z,xe)))&&(Ce?oe&&(oe[Ie]!==void 0||oe[xe]!==void 0)&&(ie[Ie]=resolvePropValue(Ce,_e,Ie,void 0,$,!0)):delete ie[Ie]);if(le!==_e)for(const Ie in le)(!z||!hasOwn$4(z,Ie))&&(delete le[Ie],$e=!0)}$e&&trigger$2($,"set","$attrs")}function setFullProps($,z,oe,ae){const[ie,le]=$.propsOptions;let pe=!1,_e;if(z)for(let Ce in z){if(isReservedProp(Ce))continue;const $e=z[Ce];let xe;ie&&hasOwn$4(ie,xe=camelize(Ce))?!le||!le.includes(xe)?oe[xe]=$e:(_e||(_e={}))[xe]=$e:isEmitListener($.emitsOptions,Ce)||(!(Ce in ae)||$e!==ae[Ce])&&(ae[Ce]=$e,pe=!0)}if(le){const Ce=toRaw(oe),$e=_e||EMPTY_OBJ$1;for(let xe=0;xe<le.length;xe++){const Ie=le[xe];oe[Ie]=resolvePropValue(ie,Ce,Ie,$e[Ie],$,!hasOwn$4($e,Ie))}}return pe}function resolvePropValue($,z,oe,ae,ie,le){const pe=$[oe];if(pe!=null){const _e=hasOwn$4(pe,"default");if(_e&&ae===void 0){const Ce=pe.default;if(pe.type!==Function&&!pe.skipFactory&&isFunction$5(Ce)){const{propsDefaults:$e}=ie;oe in $e?ae=$e[oe]:(setCurrentInstance(ie),ae=$e[oe]=Ce.call(null,z),unsetCurrentInstance())}else ae=Ce}pe[0]&&(le&&!_e?ae=!1:pe[1]&&(ae===""||ae===hyphenate(oe))&&(ae=!0))}return ae}function normalizePropsOptions($,z,oe=!1){const ae=z.propsCache,ie=ae.get($);if(ie)return ie;const le=$.props,pe={},_e=[];let Ce=!1;if(!isFunction$5($)){const xe=Ie=>{Ce=!0;const[Ne,Fe]=normalizePropsOptions(Ie,z,!0);extend$2(pe,Ne),Fe&&_e.push(...Fe)};!oe&&z.mixins.length&&z.mixins.forEach(xe),$.extends&&xe($.extends),$.mixins&&$.mixins.forEach(xe)}if(!le&&!Ce)return isObject$8($)&&ae.set($,EMPTY_ARR),EMPTY_ARR;if(isArray$c(le))for(let xe=0;xe<le.length;xe++){const Ie=camelize(le[xe]);validatePropName(Ie)&&(pe[Ie]=EMPTY_OBJ$1)}else if(le)for(const xe in le){const Ie=camelize(xe);if(validatePropName(Ie)){const Ne=le[xe],Fe=pe[Ie]=isArray$c(Ne)||isFunction$5(Ne)?{type:Ne}:extend$2({},Ne);if(Fe){const ze=getTypeIndex(Boolean,Fe.type),At=getTypeIndex(String,Fe.type);Fe[0]=ze>-1,Fe[1]=At<0||ze<At,(ze>-1||hasOwn$4(Fe,"default"))&&_e.push(Ie)}}}const $e=[pe,_e];return isObject$8($)&&ae.set($,$e),$e}function validatePropName($){return $[0]!=="$"}function getType($){const z=$&&$.toString().match(/^\s*(function|class) (\w+)/);return z?z[2]:$===null?"null":""}function isSameType($,z){return getType($)===getType(z)}function getTypeIndex($,z){return isArray$c(z)?z.findIndex(oe=>isSameType(oe,$)):isFunction$5(z)&&isSameType(z,$)?0:-1}const isInternalKey=$=>$[0]==="_"||$==="$stable",normalizeSlotValue=$=>isArray$c($)?$.map(normalizeVNode):[normalizeVNode($)],normalizeSlot$1=($,z,oe)=>{if(z._n)return z;const ae=withCtx((...ie)=>normalizeSlotValue(z(...ie)),oe);return ae._c=!1,ae},normalizeObjectSlots=($,z,oe)=>{const ae=$._ctx;for(const ie in $){if(isInternalKey(ie))continue;const le=$[ie];if(isFunction$5(le))z[ie]=normalizeSlot$1(ie,le,ae);else if(le!=null){const pe=normalizeSlotValue(le);z[ie]=()=>pe}}},normalizeVNodeSlots=($,z)=>{const oe=normalizeSlotValue(z);$.slots.default=()=>oe},initSlots=($,z)=>{if($.vnode.shapeFlag&32){const oe=z._;oe?($.slots=toRaw(z),def(z,"_",oe)):normalizeObjectSlots(z,$.slots={})}else $.slots={},z&&normalizeVNodeSlots($,z);def($.slots,InternalObjectKey,1)},updateSlots=($,z,oe)=>{const{vnode:ae,slots:ie}=$;let le=!0,pe=EMPTY_OBJ$1;if(ae.shapeFlag&32){const _e=z._;_e?oe&&_e===1?le=!1:(extend$2(ie,z),!oe&&_e===1&&delete ie._):(le=!z.$stable,normalizeObjectSlots(z,ie)),pe=z}else z&&(normalizeVNodeSlots($,z),pe={default:1});if(le)for(const _e in ie)!isInternalKey(_e)&&!(_e in pe)&&delete ie[_e]};function setRef($,z,oe,ae,ie=!1){if(isArray$c($)){$.forEach((Ne,Fe)=>setRef(Ne,z&&(isArray$c(z)?z[Fe]:z),oe,ae,ie));return}if(isAsyncWrapper(ae)&&!ie)return;const le=ae.shapeFlag&4?getExposeProxy(ae.component)||ae.component.proxy:ae.el,pe=ie?null:le,{i:_e,r:Ce}=$,$e=z&&z.r,xe=_e.refs===EMPTY_OBJ$1?_e.refs={}:_e.refs,Ie=_e.setupState;if($e!=null&&$e!==Ce&&(isString$7($e)?(xe[$e]=null,hasOwn$4(Ie,$e)&&(Ie[$e]=null)):isRef($e)&&($e.value=null)),isFunction$5(Ce))callWithErrorHandling(Ce,_e,12,[pe,xe]);else{const Ne=isString$7(Ce),Fe=isRef(Ce);if(Ne||Fe){const ze=()=>{if($.f){const At=Ne?hasOwn$4(Ie,Ce)?Ie[Ce]:xe[Ce]:Ce.value;ie?isArray$c(At)&&remove(At,le):isArray$c(At)?At.includes(le)||At.push(le):Ne?(xe[Ce]=[le],hasOwn$4(Ie,Ce)&&(Ie[Ce]=xe[Ce])):(Ce.value=[le],$.k&&(xe[$.k]=Ce.value))}else Ne?(xe[Ce]=pe,hasOwn$4(Ie,Ce)&&(Ie[Ce]=pe)):Fe&&(Ce.value=pe,$.k&&(xe[$.k]=pe))};pe?(ze.id=-1,queuePostRenderEffect(ze,oe)):ze()}}}let hasMismatch=!1;const isSVGContainer=$=>/svg/.test($.namespaceURI)&&$.tagName!=="foreignObject",isComment$1=$=>$.nodeType===8;function createHydrationFunctions($){const{mt:z,p:oe,o:{patchProp:ae,createText:ie,nextSibling:le,parentNode:pe,remove:_e,insert:Ce,createComment:$e}}=$,xe=(hn,vn)=>{if(!vn.hasChildNodes()){oe(null,hn,vn),flushPostFlushCbs(),vn._vnode=hn;return}hasMismatch=!1,Ie(vn.firstChild,hn,null,null,null),flushPostFlushCbs(),vn._vnode=hn,hasMismatch&&console.error("Hydration completed but contains mismatches.")},Ie=(hn,vn,_n,bn,Cn,En=!1)=>{const $n=isComment$1(hn)&&hn.data==="[",wn=()=>At(hn,vn,_n,bn,Cn,$n),{type:Tn,ref:xn,shapeFlag:kn,patchFlag:An}=vn;let On=hn.nodeType;vn.el=hn,An===-2&&(En=!1,vn.dynamicChildren=null);let Mn=null;switch(Tn){case Text$1:On!==3?vn.children===""?(Ce(vn.el=ie(""),pe(hn),hn),Mn=hn):Mn=wn():(hn.data!==vn.children&&(hasMismatch=!0,hn.data=vn.children),Mn=le(hn));break;case Comment:On!==8||$n?Mn=wn():Mn=le(hn);break;case Static:if($n&&(hn=le(hn),On=hn.nodeType),On===1||On===3){Mn=hn;const Fn=!vn.children.length;for(let Dn=0;Dn<vn.staticCount;Dn++)Fn&&(vn.children+=Mn.nodeType===1?Mn.outerHTML:Mn.data),Dn===vn.staticCount-1&&(vn.anchor=Mn),Mn=le(Mn);return $n?le(Mn):Mn}else wn();break;case Fragment:$n?Mn=ze(hn,vn,_n,bn,Cn,En):Mn=wn();break;default:if(kn&1)On!==1||vn.type.toLowerCase()!==hn.tagName.toLowerCase()?Mn=wn():Mn=Ne(hn,vn,_n,bn,Cn,En);else if(kn&6){vn.slotScopeIds=Cn;const Fn=pe(hn);if(z(vn,Fn,null,_n,bn,isSVGContainer(Fn),En),Mn=$n?Lt(hn):le(hn),Mn&&isComment$1(Mn)&&Mn.data==="teleport end"&&(Mn=le(Mn)),isAsyncWrapper(vn)){let Dn;$n?(Dn=createVNode(Fragment),Dn.anchor=Mn?Mn.previousSibling:Fn.lastChild):Dn=hn.nodeType===3?createTextVNode(""):createVNode("div"),Dn.el=hn,vn.component.subTree=Dn}}else kn&64?On!==8?Mn=wn():Mn=vn.type.hydrate(hn,vn,_n,bn,Cn,En,$,Fe):kn&128&&(Mn=vn.type.hydrate(hn,vn,_n,bn,isSVGContainer(pe(hn)),Cn,En,$,Ie))}return xn!=null&&setRef(xn,null,bn,vn),Mn},Ne=(hn,vn,_n,bn,Cn,En)=>{En=En||!!vn.dynamicChildren;const{type:$n,props:wn,patchFlag:Tn,shapeFlag:xn,dirs:kn}=vn,An=$n==="input"&&kn||$n==="option";if(An||Tn!==-1){if(kn&&invokeDirectiveHook(vn,null,_n,"created"),wn)if(An||!En||Tn&48)for(const Mn in wn)(An&&Mn.endsWith("value")||isOn(Mn)&&!isReservedProp(Mn))&&ae(hn,Mn,null,wn[Mn],!1,void 0,_n);else wn.onClick&&ae(hn,"onClick",null,wn.onClick,!1,void 0,_n);let On;if((On=wn&&wn.onVnodeBeforeMount)&&invokeVNodeHook(On,_n,vn),kn&&invokeDirectiveHook(vn,null,_n,"beforeMount"),((On=wn&&wn.onVnodeMounted)||kn)&&queueEffectWithSuspense(()=>{On&&invokeVNodeHook(On,_n,vn),kn&&invokeDirectiveHook(vn,null,_n,"mounted")},bn),xn&16&&!(wn&&(wn.innerHTML||wn.textContent))){let Mn=Fe(hn.firstChild,vn,hn,_n,bn,Cn,En);for(;Mn;){hasMismatch=!0;const Fn=Mn;Mn=Mn.nextSibling,_e(Fn)}}else xn&8&&hn.textContent!==vn.children&&(hasMismatch=!0,hn.textContent=vn.children)}return hn.nextSibling},Fe=(hn,vn,_n,bn,Cn,En,$n)=>{$n=$n||!!vn.dynamicChildren;const wn=vn.children,Tn=wn.length;for(let xn=0;xn<Tn;xn++){const kn=$n?wn[xn]:wn[xn]=normalizeVNode(wn[xn]);if(hn)hn=Ie(hn,kn,bn,Cn,En,$n);else{if(kn.type===Text$1&&!kn.children)continue;hasMismatch=!0,oe(null,kn,_n,null,bn,Cn,isSVGContainer(_n),En)}}return hn},ze=(hn,vn,_n,bn,Cn,En)=>{const{slotScopeIds:$n}=vn;$n&&(Cn=Cn?Cn.concat($n):$n);const wn=pe(hn),Tn=Fe(le(hn),vn,wn,_n,bn,Cn,En);return Tn&&isComment$1(Tn)&&Tn.data==="]"?le(vn.anchor=Tn):(hasMismatch=!0,Ce(vn.anchor=$e("]"),wn,Tn),Tn)},At=(hn,vn,_n,bn,Cn,En)=>{if(hasMismatch=!0,vn.el=null,En){const Tn=Lt(hn);for(;;){const xn=le(hn);if(xn&&xn!==Tn)_e(xn);else break}}const $n=le(hn),wn=pe(hn);return _e(hn),oe(null,vn,wn,$n,_n,bn,isSVGContainer(wn),Cn),$n},Lt=hn=>{let vn=0;for(;hn;)if(hn=le(hn),hn&&isComment$1(hn)&&(hn.data==="["&&vn++,hn.data==="]")){if(vn===0)return le(hn);vn--}return hn};return[xe,Ie]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer($){return baseCreateRenderer($)}function createHydrationRenderer($){return baseCreateRenderer($,createHydrationFunctions)}function baseCreateRenderer($,z){const oe=getGlobalThis();oe.__VUE__=!0;const{insert:ae,remove:ie,patchProp:le,createElement:pe,createText:_e,createComment:Ce,setText:$e,setElementText:xe,parentNode:Ie,nextSibling:Ne,setScopeId:Fe=NOOP,insertStaticContent:ze}=$,At=(Gn,Zn,rr,mr=null,Sr=null,ar=null,xr=!1,gr=null,Pr=!!Zn.dynamicChildren)=>{if(Gn===Zn)return;Gn&&!isSameVNodeType(Gn,Zn)&&(mr=qn(Gn),Un(Gn,Sr,ar,!0),Gn=null),Zn.patchFlag===-2&&(Pr=!1,Zn.dynamicChildren=null);const{type:dr,ref:sr,shapeFlag:cr}=Zn;switch(dr){case Text$1:Lt(Gn,Zn,rr,mr);break;case Comment:hn(Gn,Zn,rr,mr);break;case Static:Gn==null&&vn(Zn,rr,mr,xr);break;case Fragment:An(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr);break;default:cr&1?Cn(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr):cr&6?On(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr):(cr&64||cr&128)&&dr.process(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr,Wn)}sr!=null&&Sr&&setRef(sr,Gn&&Gn.ref,ar,Zn||Gn,!Zn)},Lt=(Gn,Zn,rr,mr)=>{if(Gn==null)ae(Zn.el=_e(Zn.children),rr,mr);else{const Sr=Zn.el=Gn.el;Zn.children!==Gn.children&&$e(Sr,Zn.children)}},hn=(Gn,Zn,rr,mr)=>{Gn==null?ae(Zn.el=Ce(Zn.children||""),rr,mr):Zn.el=Gn.el},vn=(Gn,Zn,rr,mr)=>{[Gn.el,Gn.anchor]=ze(Gn.children,Zn,rr,mr,Gn.el,Gn.anchor)},_n=({el:Gn,anchor:Zn},rr,mr)=>{let Sr;for(;Gn&&Gn!==Zn;)Sr=Ne(Gn),ae(Gn,rr,mr),Gn=Sr;ae(Zn,rr,mr)},bn=({el:Gn,anchor:Zn})=>{let rr;for(;Gn&&Gn!==Zn;)rr=Ne(Gn),ie(Gn),Gn=rr;ie(Zn)},Cn=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr)=>{xr=xr||Zn.type==="svg",Gn==null?En(Zn,rr,mr,Sr,ar,xr,gr,Pr):Tn(Gn,Zn,Sr,ar,xr,gr,Pr)},En=(Gn,Zn,rr,mr,Sr,ar,xr,gr)=>{let Pr,dr;const{type:sr,props:cr,shapeFlag:hr,transition:Ar,dirs:Dr}=Gn;if(Pr=Gn.el=pe(Gn.type,ar,cr&&cr.is,cr),hr&8?xe(Pr,Gn.children):hr&16&&wn(Gn.children,Pr,null,mr,Sr,ar&&sr!=="foreignObject",xr,gr),Dr&&invokeDirectiveHook(Gn,null,mr,"created"),$n(Pr,Gn,Gn.scopeId,xr,mr),cr){for(const Mr in cr)Mr!=="value"&&!isReservedProp(Mr)&&le(Pr,Mr,null,cr[Mr],ar,Gn.children,mr,Sr,ir);"value"in cr&&le(Pr,"value",null,cr.value),(dr=cr.onVnodeBeforeMount)&&invokeVNodeHook(dr,mr,Gn)}Dr&&invokeDirectiveHook(Gn,null,mr,"beforeMount");const Lr=(!Sr||Sr&&!Sr.pendingBranch)&&Ar&&!Ar.persisted;Lr&&Ar.beforeEnter(Pr),ae(Pr,Zn,rr),((dr=cr&&cr.onVnodeMounted)||Lr||Dr)&&queuePostRenderEffect(()=>{dr&&invokeVNodeHook(dr,mr,Gn),Lr&&Ar.enter(Pr),Dr&&invokeDirectiveHook(Gn,null,mr,"mounted")},Sr)},$n=(Gn,Zn,rr,mr,Sr)=>{if(rr&&Fe(Gn,rr),mr)for(let ar=0;ar<mr.length;ar++)Fe(Gn,mr[ar]);if(Sr){let ar=Sr.subTree;if(Zn===ar){const xr=Sr.vnode;$n(Gn,xr,xr.scopeId,xr.slotScopeIds,Sr.parent)}}},wn=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr=0)=>{for(let dr=Pr;dr<Gn.length;dr++){const sr=Gn[dr]=gr?cloneIfMounted(Gn[dr]):normalizeVNode(Gn[dr]);At(null,sr,Zn,rr,mr,Sr,ar,xr,gr)}},Tn=(Gn,Zn,rr,mr,Sr,ar,xr)=>{const gr=Zn.el=Gn.el;let{patchFlag:Pr,dynamicChildren:dr,dirs:sr}=Zn;Pr|=Gn.patchFlag&16;const cr=Gn.props||EMPTY_OBJ$1,hr=Zn.props||EMPTY_OBJ$1;let Ar;rr&&toggleRecurse(rr,!1),(Ar=hr.onVnodeBeforeUpdate)&&invokeVNodeHook(Ar,rr,Zn,Gn),sr&&invokeDirectiveHook(Zn,Gn,rr,"beforeUpdate"),rr&&toggleRecurse(rr,!0);const Dr=Sr&&Zn.type!=="foreignObject";if(dr?xn(Gn.dynamicChildren,dr,gr,rr,mr,Dr,ar):xr||Vn(Gn,Zn,gr,null,rr,mr,Dr,ar,!1),Pr>0){if(Pr&16)kn(gr,Zn,cr,hr,rr,mr,Sr);else if(Pr&2&&cr.class!==hr.class&&le(gr,"class",null,hr.class,Sr),Pr&4&&le(gr,"style",cr.style,hr.style,Sr),Pr&8){const Lr=Zn.dynamicProps;for(let Mr=0;Mr<Lr.length;Mr++){const Er=Lr[Mr],$r=cr[Er],ur=hr[Er];(ur!==$r||Er==="value")&&le(gr,Er,$r,ur,Sr,Gn.children,rr,mr,ir)}}Pr&1&&Gn.children!==Zn.children&&xe(gr,Zn.children)}else!xr&&dr==null&&kn(gr,Zn,cr,hr,rr,mr,Sr);((Ar=hr.onVnodeUpdated)||sr)&&queuePostRenderEffect(()=>{Ar&&invokeVNodeHook(Ar,rr,Zn,Gn),sr&&invokeDirectiveHook(Zn,Gn,rr,"updated")},mr)},xn=(Gn,Zn,rr,mr,Sr,ar,xr)=>{for(let gr=0;gr<Zn.length;gr++){const Pr=Gn[gr],dr=Zn[gr],sr=Pr.el&&(Pr.type===Fragment||!isSameVNodeType(Pr,dr)||Pr.shapeFlag&70)?Ie(Pr.el):rr;At(Pr,dr,sr,null,mr,Sr,ar,xr,!0)}},kn=(Gn,Zn,rr,mr,Sr,ar,xr)=>{if(rr!==mr){if(rr!==EMPTY_OBJ$1)for(const gr in rr)!isReservedProp(gr)&&!(gr in mr)&&le(Gn,gr,rr[gr],null,xr,Zn.children,Sr,ar,ir);for(const gr in mr){if(isReservedProp(gr))continue;const Pr=mr[gr],dr=rr[gr];Pr!==dr&&gr!=="value"&&le(Gn,gr,dr,Pr,xr,Zn.children,Sr,ar,ir)}"value"in mr&&le(Gn,"value",rr.value,mr.value)}},An=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr)=>{const dr=Zn.el=Gn?Gn.el:_e(""),sr=Zn.anchor=Gn?Gn.anchor:_e("");let{patchFlag:cr,dynamicChildren:hr,slotScopeIds:Ar}=Zn;Ar&&(gr=gr?gr.concat(Ar):Ar),Gn==null?(ae(dr,rr,mr),ae(sr,rr,mr),wn(Zn.children,rr,sr,Sr,ar,xr,gr,Pr)):cr>0&&cr&64&&hr&&Gn.dynamicChildren?(xn(Gn.dynamicChildren,hr,rr,Sr,ar,xr,gr),(Zn.key!=null||Sr&&Zn===Sr.subTree)&&traverseStaticChildren(Gn,Zn,!0)):Vn(Gn,Zn,rr,sr,Sr,ar,xr,gr,Pr)},On=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr)=>{Zn.slotScopeIds=gr,Gn==null?Zn.shapeFlag&512?Sr.ctx.activate(Zn,rr,mr,xr,Pr):Mn(Zn,rr,mr,Sr,ar,xr,Pr):Fn(Gn,Zn,Pr)},Mn=(Gn,Zn,rr,mr,Sr,ar,xr)=>{const gr=Gn.component=createComponentInstance(Gn,mr,Sr);if(isKeepAlive(Gn)&&(gr.ctx.renderer=Wn),setupComponent(gr),gr.asyncDep){if(Sr&&Sr.registerDep(gr,Dn),!Gn.el){const Pr=gr.subTree=createVNode(Comment);hn(null,Pr,Zn,rr)}return}Dn(gr,Gn,Zn,rr,Sr,ar,xr)},Fn=(Gn,Zn,rr)=>{const mr=Zn.component=Gn.component;if(shouldUpdateComponent(Gn,Zn,rr))if(mr.asyncDep&&!mr.asyncResolved){Nn(mr,Zn,rr);return}else mr.next=Zn,invalidateJob(mr.update),mr.update();else Zn.el=Gn.el,mr.vnode=Zn},Dn=(Gn,Zn,rr,mr,Sr,ar,xr)=>{const gr=()=>{if(Gn.isMounted){let{next:sr,bu:cr,u:hr,parent:Ar,vnode:Dr}=Gn,Lr=sr,Mr;toggleRecurse(Gn,!1),sr?(sr.el=Dr.el,Nn(Gn,sr,xr)):sr=Dr,cr&&invokeArrayFns(cr),(Mr=sr.props&&sr.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Mr,Ar,sr,Dr),toggleRecurse(Gn,!0);const Er=renderComponentRoot(Gn),$r=Gn.subTree;Gn.subTree=Er,At($r,Er,Ie($r.el),qn($r),Gn,Sr,ar),sr.el=Er.el,Lr===null&&updateHOCHostEl(Gn,Er.el),hr&&queuePostRenderEffect(hr,Sr),(Mr=sr.props&&sr.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Mr,Ar,sr,Dr),Sr)}else{let sr;const{el:cr,props:hr}=Zn,{bm:Ar,m:Dr,parent:Lr}=Gn,Mr=isAsyncWrapper(Zn);if(toggleRecurse(Gn,!1),Ar&&invokeArrayFns(Ar),!Mr&&(sr=hr&&hr.onVnodeBeforeMount)&&invokeVNodeHook(sr,Lr,Zn),toggleRecurse(Gn,!0),cr&&pr){const Er=()=>{Gn.subTree=renderComponentRoot(Gn),pr(cr,Gn.subTree,Gn,Sr,null)};Mr?Zn.type.__asyncLoader().then(()=>!Gn.isUnmounted&&Er()):Er()}else{const Er=Gn.subTree=renderComponentRoot(Gn);At(null,Er,rr,mr,Gn,Sr,ar),Zn.el=Er.el}if(Dr&&queuePostRenderEffect(Dr,Sr),!Mr&&(sr=hr&&hr.onVnodeMounted)){const Er=Zn;queuePostRenderEffect(()=>invokeVNodeHook(sr,Lr,Er),Sr)}(Zn.shapeFlag&256||Lr&&isAsyncWrapper(Lr.vnode)&&Lr.vnode.shapeFlag&256)&&Gn.a&&queuePostRenderEffect(Gn.a,Sr),Gn.isMounted=!0,Zn=rr=mr=null}},Pr=Gn.effect=new ReactiveEffect(gr,()=>queueJob(dr),Gn.scope),dr=Gn.update=()=>Pr.run();dr.id=Gn.uid,toggleRecurse(Gn,!0),dr()},Nn=(Gn,Zn,rr)=>{Zn.component=Gn;const mr=Gn.vnode.props;Gn.vnode=Zn,Gn.next=null,updateProps$2(Gn,Zn.props,mr,rr),updateSlots(Gn,Zn.children,rr),pauseTracking(),flushPreFlushCbs(),resetTracking()},Vn=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr=!1)=>{const dr=Gn&&Gn.children,sr=Gn?Gn.shapeFlag:0,cr=Zn.children,{patchFlag:hr,shapeFlag:Ar}=Zn;if(hr>0){if(hr&128){zn(dr,cr,rr,mr,Sr,ar,xr,gr,Pr);return}else if(hr&256){Bn(dr,cr,rr,mr,Sr,ar,xr,gr,Pr);return}}Ar&8?(sr&16&&ir(dr,Sr,ar),cr!==dr&&xe(rr,cr)):sr&16?Ar&16?zn(dr,cr,rr,mr,Sr,ar,xr,gr,Pr):ir(dr,Sr,ar,!0):(sr&8&&xe(rr,""),Ar&16&&wn(cr,rr,mr,Sr,ar,xr,gr,Pr))},Bn=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr)=>{Gn=Gn||EMPTY_ARR,Zn=Zn||EMPTY_ARR;const dr=Gn.length,sr=Zn.length,cr=Math.min(dr,sr);let hr;for(hr=0;hr<cr;hr++){const Ar=Zn[hr]=Pr?cloneIfMounted(Zn[hr]):normalizeVNode(Zn[hr]);At(Gn[hr],Ar,rr,null,Sr,ar,xr,gr,Pr)}dr>sr?ir(Gn,Sr,ar,!0,!1,cr):wn(Zn,rr,mr,Sr,ar,xr,gr,Pr,cr)},zn=(Gn,Zn,rr,mr,Sr,ar,xr,gr,Pr)=>{let dr=0;const sr=Zn.length;let cr=Gn.length-1,hr=sr-1;for(;dr<=cr&&dr<=hr;){const Ar=Gn[dr],Dr=Zn[dr]=Pr?cloneIfMounted(Zn[dr]):normalizeVNode(Zn[dr]);if(isSameVNodeType(Ar,Dr))At(Ar,Dr,rr,null,Sr,ar,xr,gr,Pr);else break;dr++}for(;dr<=cr&&dr<=hr;){const Ar=Gn[cr],Dr=Zn[hr]=Pr?cloneIfMounted(Zn[hr]):normalizeVNode(Zn[hr]);if(isSameVNodeType(Ar,Dr))At(Ar,Dr,rr,null,Sr,ar,xr,gr,Pr);else break;cr--,hr--}if(dr>cr){if(dr<=hr){const Ar=hr+1,Dr=Ar<sr?Zn[Ar].el:mr;for(;dr<=hr;)At(null,Zn[dr]=Pr?cloneIfMounted(Zn[dr]):normalizeVNode(Zn[dr]),rr,Dr,Sr,ar,xr,gr,Pr),dr++}}else if(dr>hr)for(;dr<=cr;)Un(Gn[dr],Sr,ar,!0),dr++;else{const Ar=dr,Dr=dr,Lr=new Map;for(dr=Dr;dr<=hr;dr++){const Or=Zn[dr]=Pr?cloneIfMounted(Zn[dr]):normalizeVNode(Zn[dr]);Or.key!=null&&Lr.set(Or.key,dr)}let Mr,Er=0;const $r=hr-Dr+1;let ur=!1,er=0;const or=new Array($r);for(dr=0;dr<$r;dr++)or[dr]=0;for(dr=Ar;dr<=cr;dr++){const Or=Gn[dr];if(Er>=$r){Un(Or,Sr,ar,!0);continue}let zr;if(Or.key!=null)zr=Lr.get(Or.key);else for(Mr=Dr;Mr<=hr;Mr++)if(or[Mr-Dr]===0&&isSameVNodeType(Or,Zn[Mr])){zr=Mr;break}zr===void 0?Un(Or,Sr,ar,!0):(or[zr-Dr]=dr+1,zr>=er?er=zr:ur=!0,At(Or,Zn[zr],rr,null,Sr,ar,xr,gr,Pr),Er++)}const Tr=ur?getSequence(or):EMPTY_ARR;for(Mr=Tr.length-1,dr=$r-1;dr>=0;dr--){const Or=Dr+dr,zr=Zn[Or],Cr=Or+1<sr?Zn[Or+1].el:mr;or[dr]===0?At(null,zr,rr,Cr,Sr,ar,xr,gr,Pr):ur&&(Mr<0||dr!==Tr[Mr]?Xn(zr,rr,Cr,2):Mr--)}}},Xn=(Gn,Zn,rr,mr,Sr=null)=>{const{el:ar,type:xr,transition:gr,children:Pr,shapeFlag:dr}=Gn;if(dr&6){Xn(Gn.component.subTree,Zn,rr,mr);return}if(dr&128){Gn.suspense.move(Zn,rr,mr);return}if(dr&64){xr.move(Gn,Zn,rr,Wn);return}if(xr===Fragment){ae(ar,Zn,rr);for(let cr=0;cr<Pr.length;cr++)Xn(Pr[cr],Zn,rr,mr);ae(Gn.anchor,Zn,rr);return}if(xr===Static){_n(Gn,Zn,rr);return}if(mr!==2&&dr&1&&gr)if(mr===0)gr.beforeEnter(ar),ae(ar,Zn,rr),queuePostRenderEffect(()=>gr.enter(ar),Sr);else{const{leave:cr,delayLeave:hr,afterLeave:Ar}=gr,Dr=()=>ae(ar,Zn,rr),Lr=()=>{cr(ar,()=>{Dr(),Ar&&Ar()})};hr?hr(ar,Dr,Lr):Lr()}else ae(ar,Zn,rr)},Un=(Gn,Zn,rr,mr=!1,Sr=!1)=>{const{type:ar,props:xr,ref:gr,children:Pr,dynamicChildren:dr,shapeFlag:sr,patchFlag:cr,dirs:hr}=Gn;if(gr!=null&&setRef(gr,null,rr,Gn,!0),sr&256){Zn.ctx.deactivate(Gn);return}const Ar=sr&1&&hr,Dr=!isAsyncWrapper(Gn);let Lr;if(Dr&&(Lr=xr&&xr.onVnodeBeforeUnmount)&&invokeVNodeHook(Lr,Zn,Gn),sr&6)_r(Gn.component,rr,mr);else{if(sr&128){Gn.suspense.unmount(rr,mr);return}Ar&&invokeDirectiveHook(Gn,null,Zn,"beforeUnmount"),sr&64?Gn.type.remove(Gn,Zn,rr,Sr,Wn,mr):dr&&(ar!==Fragment||cr>0&&cr&64)?ir(dr,Zn,rr,!1,!0):(ar===Fragment&&cr&384||!Sr&&sr&16)&&ir(Pr,Zn,rr),mr&&Jn(Gn)}(Dr&&(Lr=xr&&xr.onVnodeUnmounted)||Ar)&&queuePostRenderEffect(()=>{Lr&&invokeVNodeHook(Lr,Zn,Gn),Ar&&invokeDirectiveHook(Gn,null,Zn,"unmounted")},rr)},Jn=Gn=>{const{type:Zn,el:rr,anchor:mr,transition:Sr}=Gn;if(Zn===Fragment){lr(rr,mr);return}if(Zn===Static){bn(Gn);return}const ar=()=>{ie(rr),Sr&&!Sr.persisted&&Sr.afterLeave&&Sr.afterLeave()};if(Gn.shapeFlag&1&&Sr&&!Sr.persisted){const{leave:xr,delayLeave:gr}=Sr,Pr=()=>xr(rr,ar);gr?gr(Gn.el,ar,Pr):Pr()}else ar()},lr=(Gn,Zn)=>{let rr;for(;Gn!==Zn;)rr=Ne(Gn),ie(Gn),Gn=rr;ie(Zn)},_r=(Gn,Zn,rr)=>{const{bum:mr,scope:Sr,update:ar,subTree:xr,um:gr}=Gn;mr&&invokeArrayFns(mr),Sr.stop(),ar&&(ar.active=!1,Un(xr,Gn,Zn,rr)),gr&&queuePostRenderEffect(gr,Zn),queuePostRenderEffect(()=>{Gn.isUnmounted=!0},Zn),Zn&&Zn.pendingBranch&&!Zn.isUnmounted&&Gn.asyncDep&&!Gn.asyncResolved&&Gn.suspenseId===Zn.pendingId&&(Zn.deps--,Zn.deps===0&&Zn.resolve())},ir=(Gn,Zn,rr,mr=!1,Sr=!1,ar=0)=>{for(let xr=ar;xr<Gn.length;xr++)Un(Gn[xr],Zn,rr,mr,Sr)},qn=Gn=>Gn.shapeFlag&6?qn(Gn.component.subTree):Gn.shapeFlag&128?Gn.suspense.next():Ne(Gn.anchor||Gn.el),Yn=(Gn,Zn,rr)=>{Gn==null?Zn._vnode&&Un(Zn._vnode,null,null,!0):At(Zn._vnode||null,Gn,Zn,null,null,null,rr),flushPreFlushCbs(),flushPostFlushCbs(),Zn._vnode=Gn},Wn={p:At,um:Un,m:Xn,r:Jn,mt:Mn,mc:wn,pc:Vn,pbc:xn,n:qn,o:$};let tr,pr;return z&&([tr,pr]=z(Wn)),{render:Yn,hydrate:tr,createApp:createAppAPI(Yn,tr)}}function toggleRecurse({effect:$,update:z},oe){$.allowRecurse=z.allowRecurse=oe}function traverseStaticChildren($,z,oe=!1){const ae=$.children,ie=z.children;if(isArray$c(ae)&&isArray$c(ie))for(let le=0;le<ae.length;le++){const pe=ae[le];let _e=ie[le];_e.shapeFlag&1&&!_e.dynamicChildren&&((_e.patchFlag<=0||_e.patchFlag===32)&&(_e=ie[le]=cloneIfMounted(ie[le]),_e.el=pe.el),oe||traverseStaticChildren(pe,_e)),_e.type===Text$1&&(_e.el=pe.el)}}function getSequence($){const z=$.slice(),oe=[0];let ae,ie,le,pe,_e;const Ce=$.length;for(ae=0;ae<Ce;ae++){const $e=$[ae];if($e!==0){if(ie=oe[oe.length-1],$[ie]<$e){z[ae]=ie,oe.push(ae);continue}for(le=0,pe=oe.length-1;le<pe;)_e=le+pe>>1,$[oe[_e]]<$e?le=_e+1:pe=_e;$e<$[oe[le]]&&(le>0&&(z[ae]=oe[le-1]),oe[le]=ae)}}for(le=oe.length,pe=oe[le-1];le-- >0;)oe[le]=pe,pe=z[pe];return oe}const isTeleport=$=>$.__isTeleport,isTeleportDisabled=$=>$&&($.disabled||$.disabled===""),isTargetSVG=$=>typeof SVGElement<"u"&&$ instanceof SVGElement,resolveTarget=($,z)=>{const oe=$&&$.to;return isString$7(oe)?z?z(oe):null:oe},TeleportImpl={__isTeleport:!0,process($,z,oe,ae,ie,le,pe,_e,Ce,$e){const{mc:xe,pc:Ie,pbc:Ne,o:{insert:Fe,querySelector:ze,createText:At,createComment:Lt}}=$e,hn=isTeleportDisabled(z.props);let{shapeFlag:vn,children:_n,dynamicChildren:bn}=z;if($==null){const Cn=z.el=At(""),En=z.anchor=At("");Fe(Cn,oe,ae),Fe(En,oe,ae);const $n=z.target=resolveTarget(z.props,ze),wn=z.targetAnchor=At("");$n&&(Fe(wn,$n),pe=pe||isTargetSVG($n));const Tn=(xn,kn)=>{vn&16&&xe(_n,xn,kn,ie,le,pe,_e,Ce)};hn?Tn(oe,En):$n&&Tn($n,wn)}else{z.el=$.el;const Cn=z.anchor=$.anchor,En=z.target=$.target,$n=z.targetAnchor=$.targetAnchor,wn=isTeleportDisabled($.props),Tn=wn?oe:En,xn=wn?Cn:$n;if(pe=pe||isTargetSVG(En),bn?(Ne($.dynamicChildren,bn,Tn,ie,le,pe,_e),traverseStaticChildren($,z,!0)):Ce||Ie($,z,Tn,xn,ie,le,pe,_e,!1),hn)wn||moveTeleport(z,oe,Cn,$e,1);else if((z.props&&z.props.to)!==($.props&&$.props.to)){const kn=z.target=resolveTarget(z.props,ze);kn&&moveTeleport(z,kn,null,$e,0)}else wn&&moveTeleport(z,En,$n,$e,1)}updateCssVars(z)},remove($,z,oe,ae,{um:ie,o:{remove:le}},pe){const{shapeFlag:_e,children:Ce,anchor:$e,targetAnchor:xe,target:Ie,props:Ne}=$;if(Ie&&le(xe),(pe||!isTeleportDisabled(Ne))&&(le($e),_e&16))for(let Fe=0;Fe<Ce.length;Fe++){const ze=Ce[Fe];ie(ze,z,oe,!0,!!ze.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport($,z,oe,{o:{insert:ae},m:ie},le=2){le===0&&ae($.targetAnchor,z,oe);const{el:pe,anchor:_e,shapeFlag:Ce,children:$e,props:xe}=$,Ie=le===2;if(Ie&&ae(pe,z,oe),(!Ie||isTeleportDisabled(xe))&&Ce&16)for(let Ne=0;Ne<$e.length;Ne++)ie($e[Ne],z,oe,2);Ie&&ae(_e,z,oe)}function hydrateTeleport($,z,oe,ae,ie,le,{o:{nextSibling:pe,parentNode:_e,querySelector:Ce}},$e){const xe=z.target=resolveTarget(z.props,Ce);if(xe){const Ie=xe._lpa||xe.firstChild;if(z.shapeFlag&16)if(isTeleportDisabled(z.props))z.anchor=$e(pe($),z,_e($),oe,ae,ie,le),z.targetAnchor=Ie;else{z.anchor=pe($);let Ne=Ie;for(;Ne;)if(Ne=pe(Ne),Ne&&Ne.nodeType===8&&Ne.data==="teleport anchor"){z.targetAnchor=Ne,xe._lpa=z.targetAnchor&&pe(z.targetAnchor);break}$e(Ie,z,xe,oe,ae,ie,le)}updateCssVars(z)}return z.anchor&&pe(z.anchor)}const Teleport=TeleportImpl;function updateCssVars($){const z=$.ctx;if(z&&z.ut){let oe=$.children[0].el;for(;oe!==$.targetAnchor;)oe.nodeType===1&&oe.setAttribute("data-v-owner",z.uid),oe=oe.nextSibling;z.ut()}}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock($=!1){blockStack.push(currentBlock=$?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking($){isBlockTreeEnabled+=$}function setupBlock($){return $.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push($),$}function createElementBlock($,z,oe,ae,ie,le){return setupBlock(createBaseVNode($,z,oe,ae,ie,le,!0))}function createBlock($,z,oe,ae,ie){return setupBlock(createVNode($,z,oe,ae,ie,!0))}function isVNode$1($){return $?$.__v_isVNode===!0:!1}function isSameVNodeType($,z){return $.type===z.type&&$.key===z.key}function transformVNodeArgs($){}const InternalObjectKey="__vInternal",normalizeKey=({key:$})=>$??null,normalizeRef=({ref:$,ref_key:z,ref_for:oe})=>(typeof $=="number"&&($=""+$),$!=null?isString$7($)||isRef($)||isFunction$5($)?{i:currentRenderingInstance,r:$,k:z,f:!!oe}:$:null);function createBaseVNode($,z=null,oe=null,ae=0,ie=null,le=$===Fragment?0:1,pe=!1,_e=!1){const Ce={__v_isVNode:!0,__v_skip:!0,type:$,props:z,key:z&&normalizeKey(z),ref:z&&normalizeRef(z),scopeId:currentScopeId,slotScopeIds:null,children:oe,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:ae,dynamicProps:ie,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return _e?(normalizeChildren(Ce,oe),le&128&&$.normalize(Ce)):oe&&(Ce.shapeFlag|=isString$7(oe)?8:16),isBlockTreeEnabled>0&&!pe&¤tBlock&&(Ce.patchFlag>0||le&6)&&Ce.patchFlag!==32&¤tBlock.push(Ce),Ce}const createVNode=_createVNode;function _createVNode($,z=null,oe=null,ae=0,ie=null,le=!1){if((!$||$===NULL_DYNAMIC_COMPONENT)&&($=Comment),isVNode$1($)){const _e=cloneVNode($,z,!0);return oe&&normalizeChildren(_e,oe),isBlockTreeEnabled>0&&!le&¤tBlock&&(_e.shapeFlag&6?currentBlock[currentBlock.indexOf($)]=_e:currentBlock.push(_e)),_e.patchFlag|=-2,_e}if(isClassComponent($)&&($=$.__vccOpts),z){z=guardReactiveProps(z);let{class:_e,style:Ce}=z;_e&&!isString$7(_e)&&(z.class=normalizeClass(_e)),isObject$8(Ce)&&(isProxy(Ce)&&!isArray$c(Ce)&&(Ce=extend$2({},Ce)),z.style=normalizeStyle$1(Ce))}const pe=isString$7($)?1:isSuspense($)?128:isTeleport($)?64:isObject$8($)?4:isFunction$5($)?2:0;return createBaseVNode($,z,oe,ae,ie,pe,le,!0)}function guardReactiveProps($){return $?isProxy($)||InternalObjectKey in $?extend$2({},$):$:null}function cloneVNode($,z,oe=!1){const{props:ae,ref:ie,patchFlag:le,children:pe}=$,_e=z?mergeProps(ae||{},z):ae;return{__v_isVNode:!0,__v_skip:!0,type:$.type,props:_e,key:_e&&normalizeKey(_e),ref:z&&z.ref?oe&&ie?isArray$c(ie)?ie.concat(normalizeRef(z)):[ie,normalizeRef(z)]:normalizeRef(z):ie,scopeId:$.scopeId,slotScopeIds:$.slotScopeIds,children:pe,target:$.target,targetAnchor:$.targetAnchor,staticCount:$.staticCount,shapeFlag:$.shapeFlag,patchFlag:z&&$.type!==Fragment?le===-1?16:le|16:le,dynamicProps:$.dynamicProps,dynamicChildren:$.dynamicChildren,appContext:$.appContext,dirs:$.dirs,transition:$.transition,component:$.component,suspense:$.suspense,ssContent:$.ssContent&&cloneVNode($.ssContent),ssFallback:$.ssFallback&&cloneVNode($.ssFallback),el:$.el,anchor:$.anchor,ctx:$.ctx,ce:$.ce}}function createTextVNode($=" ",z=0){return createVNode(Text$1,null,$,z)}function createStaticVNode($,z){const oe=createVNode(Static,null,$);return oe.staticCount=z,oe}function createCommentVNode($="",z=!1){return z?(openBlock(),createBlock(Comment,null,$)):createVNode(Comment,null,$)}function normalizeVNode($){return $==null||typeof $=="boolean"?createVNode(Comment):isArray$c($)?createVNode(Fragment,null,$.slice()):typeof $=="object"?cloneIfMounted($):createVNode(Text$1,null,String($))}function cloneIfMounted($){return $.el===null&&$.patchFlag!==-1||$.memo?$:cloneVNode($)}function normalizeChildren($,z){let oe=0;const{shapeFlag:ae}=$;if(z==null)z=null;else if(isArray$c(z))oe=16;else if(typeof z=="object")if(ae&65){const ie=z.default;ie&&(ie._c&&(ie._d=!1),normalizeChildren($,ie()),ie._c&&(ie._d=!0));return}else{oe=32;const ie=z._;!ie&&!(InternalObjectKey in z)?z._ctx=currentRenderingInstance:ie===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?z._=1:(z._=2,$.patchFlag|=1024))}else isFunction$5(z)?(z={default:z,_ctx:currentRenderingInstance},oe=32):(z=String(z),ae&64?(oe=16,z=[createTextVNode(z)]):oe=8);$.children=z,$.shapeFlag|=oe}function mergeProps(...$){const z={};for(let oe=0;oe<$.length;oe++){const ae=$[oe];for(const ie in ae)if(ie==="class")z.class!==ae.class&&(z.class=normalizeClass([z.class,ae.class]));else if(ie==="style")z.style=normalizeStyle$1([z.style,ae.style]);else if(isOn(ie)){const le=z[ie],pe=ae[ie];pe&&le!==pe&&!(isArray$c(le)&&le.includes(pe))&&(z[ie]=le?[].concat(le,pe):pe)}else ie!==""&&(z[ie]=ae[ie])}return z}function invokeVNodeHook($,z,oe,ae=null){callWithAsyncErrorHandling($,z,7,[oe,ae])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance($,z,oe){const ae=$.type,ie=(z?z.appContext:$.appContext)||emptyAppContext,le={uid:uid$2++,vnode:$,type:ae,parent:z,appContext:ie,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:z?z.provides:Object.create(ie.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(ae,ie),emitsOptions:normalizeEmitsOptions(ae,ie),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:ae.inheritAttrs,ctx:EMPTY_OBJ$1,data:EMPTY_OBJ$1,props:EMPTY_OBJ$1,attrs:EMPTY_OBJ$1,slots:EMPTY_OBJ$1,refs:EMPTY_OBJ$1,setupState:EMPTY_OBJ$1,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:oe,suspenseId:oe?oe.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return le.ctx={_:le},le.root=z?z.root:le,le.emit=emit.bind(null,le),$.ce&&$.ce(le),le}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push($=>currentInstance=$),internalSetCurrentInstance=$=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(z=>z($)):globalCurrentInstanceSetters[0]($)};const setCurrentInstance=$=>{internalSetCurrentInstance($),$.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent($){return $.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent($,z=!1){isInSSRComponentSetup=z;const{props:oe,children:ae}=$.vnode,ie=isStatefulComponent($);initProps$1($,oe,ie,z),initSlots($,ae);const le=ie?setupStatefulComponent($,z):void 0;return isInSSRComponentSetup=!1,le}function setupStatefulComponent($,z){const oe=$.type;$.accessCache=Object.create(null),$.proxy=markRaw(new Proxy($.ctx,PublicInstanceProxyHandlers));const{setup:ae}=oe;if(ae){const ie=$.setupContext=ae.length>1?createSetupContext($):null;setCurrentInstance($),pauseTracking();const le=callWithErrorHandling(ae,$,0,[$.props,ie]);if(resetTracking(),unsetCurrentInstance(),isPromise(le)){if(le.then(unsetCurrentInstance,unsetCurrentInstance),z)return le.then(pe=>{handleSetupResult($,pe,z)}).catch(pe=>{handleError(pe,$,0)});$.asyncDep=le}else handleSetupResult($,le,z)}else finishComponentSetup($,z)}function handleSetupResult($,z,oe){isFunction$5(z)?$.type.__ssrInlineRender?$.ssrRender=z:$.render=z:isObject$8(z)&&($.setupState=proxyRefs(z)),finishComponentSetup($,oe)}let compile$1,installWithProxy;function registerRuntimeCompiler($){compile$1=$,installWithProxy=z=>{z.render._rc&&(z.withProxy=new Proxy(z.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup($,z,oe){const ae=$.type;if(!$.render){if(!z&&compile$1&&!ae.render){const ie=ae.template||resolveMergedOptions($).template;if(ie){const{isCustomElement:le,compilerOptions:pe}=$.appContext.config,{delimiters:_e,compilerOptions:Ce}=ae,$e=extend$2(extend$2({isCustomElement:le,delimiters:_e},pe),Ce);ae.render=compile$1(ie,$e)}}$.render=ae.render||NOOP,installWithProxy&&installWithProxy($)}setCurrentInstance($),pauseTracking(),applyOptions($),resetTracking(),unsetCurrentInstance()}function getAttrsProxy($){return $.attrsProxy||($.attrsProxy=new Proxy($.attrs,{get(z,oe){return track($,"get","$attrs"),z[oe]}}))}function createSetupContext($){const z=oe=>{$.exposed=oe||{}};return{get attrs(){return getAttrsProxy($)},slots:$.slots,emit:$.emit,expose:z}}function getExposeProxy($){if($.exposed)return $.exposeProxy||($.exposeProxy=new Proxy(proxyRefs(markRaw($.exposed)),{get(z,oe){if(oe in z)return z[oe];if(oe in publicPropertiesMap)return publicPropertiesMap[oe]($)},has(z,oe){return oe in z||oe in publicPropertiesMap}}))}function getComponentName($,z=!0){return isFunction$5($)?$.displayName||$.name:$.name||z&&$.__name}function isClassComponent($){return isFunction$5($)&&"__vccOpts"in $}const computed=($,z)=>computed$1($,z,isInSSRComponentSetup);function h$3($,z,oe){const ae=arguments.length;return ae===2?isObject$8(z)&&!isArray$c(z)?isVNode$1(z)?createVNode($,null,[z]):createVNode($,z):createVNode($,null,z):(ae>3?oe=Array.prototype.slice.call(arguments,2):ae===3&&isVNode$1(oe)&&(oe=[oe]),createVNode($,z,oe))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo($,z,oe,ae){const ie=oe[ae];if(ie&&isMemoSame(ie,$))return ie;const le=z();return le.memo=$.slice(),oe[ae]=le}function isMemoSame($,z){const oe=$.memo;if(oe.length!=z.length)return!1;for(let ae=0;ae<oe.length;ae++)if(hasChanged(oe[ae],z[ae]))return!1;return isBlockTreeEnabled>0&¤tBlock&¤tBlock.push($),!0}const version$3="3.3.2",_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:($,z,oe)=>{z.insertBefore($,oe||null)},remove:$=>{const z=$.parentNode;z&&z.removeChild($)},createElement:($,z,oe,ae)=>{const ie=z?doc$1.createElementNS(svgNS,$):doc$1.createElement($,oe?{is:oe}:void 0);return $==="select"&&ae&&ae.multiple!=null&&ie.setAttribute("multiple",ae.multiple),ie},createText:$=>doc$1.createTextNode($),createComment:$=>doc$1.createComment($),setText:($,z)=>{$.nodeValue=z},setElementText:($,z)=>{$.textContent=z},parentNode:$=>$.parentNode,nextSibling:$=>$.nextSibling,querySelector:$=>doc$1.querySelector($),setScopeId($,z){$.setAttribute(z,"")},insertStaticContent($,z,oe,ae,ie,le){const pe=oe?oe.previousSibling:z.lastChild;if(ie&&(ie===le||ie.nextSibling))for(;z.insertBefore(ie.cloneNode(!0),oe),!(ie===le||!(ie=ie.nextSibling)););else{templateContainer.innerHTML=ae?`<svg>${$}</svg>`:$;const _e=templateContainer.content;if(ae){const Ce=_e.firstChild;for(;Ce.firstChild;)_e.appendChild(Ce.firstChild);_e.removeChild(Ce)}z.insertBefore(_e,oe)}return[pe?pe.nextSibling:z.firstChild,oe?oe.previousSibling:z.lastChild]}};function patchClass($,z,oe){const ae=$._vtc;ae&&(z=(z?[z,...ae]:[...ae]).join(" ")),z==null?$.removeAttribute("class"):oe?$.setAttribute("class",z):$.className=z}function patchStyle($,z,oe){const ae=$.style,ie=isString$7(oe);if(oe&&!ie){if(z&&!isString$7(z))for(const le in z)oe[le]==null&&setStyle(ae,le,"");for(const le in oe)setStyle(ae,le,oe[le])}else{const le=ae.display;ie?z!==oe&&(ae.cssText=oe):z&&$.removeAttribute("style"),"_vod"in $&&(ae.display=le)}}const importantRE=/\s*!important$/;function setStyle($,z,oe){if(isArray$c(oe))oe.forEach(ae=>setStyle($,z,ae));else if(oe==null&&(oe=""),z.startsWith("--"))$.setProperty(z,oe);else{const ae=autoPrefix($,z);importantRE.test(oe)?$.setProperty(hyphenate(ae),oe.replace(importantRE,""),"important"):$[ae]=oe}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix($,z){const oe=prefixCache[z];if(oe)return oe;let ae=camelize(z);if(ae!=="filter"&&ae in $)return prefixCache[z]=ae;ae=capitalize$2(ae);for(let ie=0;ie<prefixes.length;ie++){const le=prefixes[ie]+ae;if(le in $)return prefixCache[z]=le}return z}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr($,z,oe,ae,ie){if(ae&&z.startsWith("xlink:"))oe==null?$.removeAttributeNS(xlinkNS,z.slice(6,z.length)):$.setAttributeNS(xlinkNS,z,oe);else{const le=isSpecialBooleanAttr(z);oe==null||le&&!includeBooleanAttr(oe)?$.removeAttribute(z):$.setAttribute(z,le?"":oe)}}function patchDOMProp($,z,oe,ae,ie,le,pe){if(z==="innerHTML"||z==="textContent"){ae&&pe(ae,ie,le),$[z]=oe??"";return}const _e=$.tagName;if(z==="value"&&_e!=="PROGRESS"&&!_e.includes("-")){$._value=oe;const $e=_e==="OPTION"?$.getAttribute("value"):$.value,xe=oe??"";$e!==xe&&($.value=xe),oe==null&&$.removeAttribute(z);return}let Ce=!1;if(oe===""||oe==null){const $e=typeof $[z];$e==="boolean"?oe=includeBooleanAttr(oe):oe==null&&$e==="string"?(oe="",Ce=!0):$e==="number"&&(oe=0,Ce=!0)}try{$[z]=oe}catch{}Ce&&$.removeAttribute(z)}function addEventListener$1($,z,oe,ae){$.addEventListener(z,oe,ae)}function removeEventListener$1($,z,oe,ae){$.removeEventListener(z,oe,ae)}function patchEvent($,z,oe,ae,ie=null){const le=$._vei||($._vei={}),pe=le[z];if(ae&&pe)pe.value=ae;else{const[_e,Ce]=parseName(z);if(ae){const $e=le[z]=createInvoker(ae,ie);addEventListener$1($,_e,$e,Ce)}else pe&&(removeEventListener$1($,_e,pe,Ce),le[z]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName($){let z;if(optionsModifierRE.test($)){z={};let ae;for(;ae=$.match(optionsModifierRE);)$=$.slice(0,$.length-ae[0].length),z[ae[0].toLowerCase()]=!0}return[$[2]===":"?$.slice(3):hyphenate($.slice(2)),z]}let cachedNow=0;const p$3=Promise.resolve(),getNow=()=>cachedNow||(p$3.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker($,z){const oe=ae=>{if(!ae._vts)ae._vts=Date.now();else if(ae._vts<=oe.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ae,oe.value),z,5,[ae])};return oe.value=$,oe.attached=getNow(),oe}function patchStopImmediatePropagation($,z){if(isArray$c(z)){const oe=$.stopImmediatePropagation;return $.stopImmediatePropagation=()=>{oe.call($),$._stopped=!0},z.map(ae=>ie=>!ie._stopped&&ae&&ae(ie))}else return z}const nativeOnRE=/^on[a-z]/,patchProp=($,z,oe,ae,ie=!1,le,pe,_e,Ce)=>{z==="class"?patchClass($,ae,ie):z==="style"?patchStyle($,oe,ae):isOn(z)?isModelListener(z)||patchEvent($,z,oe,ae,pe):(z[0]==="."?(z=z.slice(1),!0):z[0]==="^"?(z=z.slice(1),!1):shouldSetAsProp($,z,ae,ie))?patchDOMProp($,z,ae,le,pe,_e,Ce):(z==="true-value"?$._trueValue=ae:z==="false-value"&&($._falseValue=ae),patchAttr($,z,ae,ie))};function shouldSetAsProp($,z,oe,ae){return ae?!!(z==="innerHTML"||z==="textContent"||z in $&&nativeOnRE.test(z)&&isFunction$5(oe)):z==="spellcheck"||z==="draggable"||z==="translate"||z==="form"||z==="list"&&$.tagName==="INPUT"||z==="type"&&$.tagName==="TEXTAREA"||nativeOnRE.test(z)&&isString$7(oe)?!1:z in $}function defineCustomElement($,z){const oe=defineComponent($);class ae extends VueElement{constructor(le){super(oe,le,z)}}return ae.def=oe,ae}const defineSSRCustomElement=$=>defineCustomElement($,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(z,oe={},ae){super(),this._def=z,this._props=oe,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&ae?ae(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 ae=0;ae<this.attributes.length;ae++)this._setAttr(this.attributes[ae].name);new MutationObserver(ae=>{for(const ie of ae)this._setAttr(ie.attributeName)}).observe(this,{attributes:!0});const z=(ae,ie=!1)=>{const{props:le,styles:pe}=ae;let _e;if(le&&!isArray$c(le))for(const Ce in le){const $e=le[Ce];($e===Number||$e&&$e.type===Number)&&(Ce in this._props&&(this._props[Ce]=toNumber$1(this._props[Ce])),(_e||(_e=Object.create(null)))[camelize(Ce)]=!0)}this._numberProps=_e,ie&&this._resolveProps(ae),this._applyStyles(pe),this._update()},oe=this._def.__asyncLoader;oe?oe().then(ae=>z(ae,!0)):z(this._def)}_resolveProps(z){const{props:oe}=z,ae=isArray$c(oe)?oe:Object.keys(oe||{});for(const ie of Object.keys(this))ie[0]!=="_"&&ae.includes(ie)&&this._setProp(ie,this[ie],!0,!1);for(const ie of ae.map(camelize))Object.defineProperty(this,ie,{get(){return this._getProp(ie)},set(le){this._setProp(ie,le)}})}_setAttr(z){let oe=this.getAttribute(z);const ae=camelize(z);this._numberProps&&this._numberProps[ae]&&(oe=toNumber$1(oe)),this._setProp(ae,oe,!1)}_getProp(z){return this._props[z]}_setProp(z,oe,ae=!0,ie=!0){oe!==this._props[z]&&(this._props[z]=oe,ie&&this._instance&&this._update(),ae&&(oe===!0?this.setAttribute(hyphenate(z),""):typeof oe=="string"||typeof oe=="number"?this.setAttribute(hyphenate(z),oe+""):oe||this.removeAttribute(hyphenate(z))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const z=createVNode(this._def,extend$2({},this._props));return this._instance||(z.ce=oe=>{this._instance=oe,oe.isCE=!0;const ae=(le,pe)=>{this.dispatchEvent(new CustomEvent(le,{detail:pe}))};oe.emit=(le,...pe)=>{ae(le,pe),hyphenate(le)!==le&&ae(hyphenate(le),pe)};let ie=this;for(;ie=ie&&(ie.parentNode||ie.host);)if(ie instanceof VueElement){oe.parent=ie._instance,oe.provides=ie._instance.provides;break}}),z}_applyStyles(z){z&&z.forEach(oe=>{const ae=document.createElement("style");ae.textContent=oe,this.shadowRoot.appendChild(ae)})}}function useCssModule($="$style"){{const z=getCurrentInstance();if(!z)return EMPTY_OBJ$1;const oe=z.type.__cssModules;if(!oe)return EMPTY_OBJ$1;const ae=oe[$];return ae||EMPTY_OBJ$1}}function useCssVars($){const z=getCurrentInstance();if(!z)return;const oe=z.ut=(ie=$(z.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${z.uid}"]`)).forEach(le=>setVarsOnNode(le,ie))},ae=()=>{const ie=$(z.proxy);setVarsOnVNode(z.subTree,ie),oe(ie)};watchPostEffect(ae),onMounted(()=>{const ie=new MutationObserver(ae);ie.observe(z.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ie.disconnect())})}function setVarsOnVNode($,z){if($.shapeFlag&128){const oe=$.suspense;$=oe.activeBranch,oe.pendingBranch&&!oe.isHydrating&&oe.effects.push(()=>{setVarsOnVNode(oe.activeBranch,z)})}for(;$.component;)$=$.component.subTree;if($.shapeFlag&1&&$.el)setVarsOnNode($.el,z);else if($.type===Fragment)$.children.forEach(oe=>setVarsOnVNode(oe,z));else if($.type===Static){let{el:oe,anchor:ae}=$;for(;oe&&(setVarsOnNode(oe,z),oe!==ae);)oe=oe.nextSibling}}function setVarsOnNode($,z){if($.nodeType===1){const oe=$.style;for(const ae in z)oe.setProperty(`--${ae}`,z[ae])}}const TRANSITION="transition",ANIMATION="animation",Transition=($,{slots:z})=>h$3(BaseTransition,resolveTransitionProps($),z);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=($,z=[])=>{isArray$c($)?$.forEach(oe=>oe(...z)):$&&$(...z)},hasExplicitCallback=$=>$?isArray$c($)?$.some(z=>z.length>1):$.length>1:!1;function resolveTransitionProps($){const z={};for(const An in $)An in DOMTransitionPropsValidators||(z[An]=$[An]);if($.css===!1)return z;const{name:oe="v",type:ae,duration:ie,enterFromClass:le=`${oe}-enter-from`,enterActiveClass:pe=`${oe}-enter-active`,enterToClass:_e=`${oe}-enter-to`,appearFromClass:Ce=le,appearActiveClass:$e=pe,appearToClass:xe=_e,leaveFromClass:Ie=`${oe}-leave-from`,leaveActiveClass:Ne=`${oe}-leave-active`,leaveToClass:Fe=`${oe}-leave-to`}=$,ze=normalizeDuration(ie),At=ze&&ze[0],Lt=ze&&ze[1],{onBeforeEnter:hn,onEnter:vn,onEnterCancelled:_n,onLeave:bn,onLeaveCancelled:Cn,onBeforeAppear:En=hn,onAppear:$n=vn,onAppearCancelled:wn=_n}=z,Tn=(An,On,Mn)=>{removeTransitionClass(An,On?xe:_e),removeTransitionClass(An,On?$e:pe),Mn&&Mn()},xn=(An,On)=>{An._isLeaving=!1,removeTransitionClass(An,Ie),removeTransitionClass(An,Fe),removeTransitionClass(An,Ne),On&&On()},kn=An=>(On,Mn)=>{const Fn=An?$n:vn,Dn=()=>Tn(On,An,Mn);callHook(Fn,[On,Dn]),nextFrame(()=>{removeTransitionClass(On,An?Ce:le),addTransitionClass(On,An?xe:_e),hasExplicitCallback(Fn)||whenTransitionEnds(On,ae,At,Dn)})};return extend$2(z,{onBeforeEnter(An){callHook(hn,[An]),addTransitionClass(An,le),addTransitionClass(An,pe)},onBeforeAppear(An){callHook(En,[An]),addTransitionClass(An,Ce),addTransitionClass(An,$e)},onEnter:kn(!1),onAppear:kn(!0),onLeave(An,On){An._isLeaving=!0;const Mn=()=>xn(An,On);addTransitionClass(An,Ie),forceReflow(),addTransitionClass(An,Ne),nextFrame(()=>{An._isLeaving&&(removeTransitionClass(An,Ie),addTransitionClass(An,Fe),hasExplicitCallback(bn)||whenTransitionEnds(An,ae,Lt,Mn))}),callHook(bn,[An,Mn])},onEnterCancelled(An){Tn(An,!1),callHook(_n,[An])},onAppearCancelled(An){Tn(An,!0),callHook(wn,[An])},onLeaveCancelled(An){xn(An),callHook(Cn,[An])}})}function normalizeDuration($){if($==null)return null;if(isObject$8($))return[NumberOf($.enter),NumberOf($.leave)];{const z=NumberOf($);return[z,z]}}function NumberOf($){return toNumber$1($)}function addTransitionClass($,z){z.split(/\s+/).forEach(oe=>oe&&$.classList.add(oe)),($._vtc||($._vtc=new Set)).add(z)}function removeTransitionClass($,z){z.split(/\s+/).forEach(ae=>ae&&$.classList.remove(ae));const{_vtc:oe}=$;oe&&(oe.delete(z),oe.size||($._vtc=void 0))}function nextFrame($){requestAnimationFrame(()=>{requestAnimationFrame($)})}let endId=0;function whenTransitionEnds($,z,oe,ae){const ie=$._endId=++endId,le=()=>{ie===$._endId&&ae()};if(oe)return setTimeout(le,oe);const{type:pe,timeout:_e,propCount:Ce}=getTransitionInfo($,z);if(!pe)return ae();const $e=pe+"end";let xe=0;const Ie=()=>{$.removeEventListener($e,Ne),le()},Ne=Fe=>{Fe.target===$&&++xe>=Ce&&Ie()};setTimeout(()=>{xe<Ce&&Ie()},_e+1),$.addEventListener($e,Ne)}function getTransitionInfo($,z){const oe=window.getComputedStyle($),ae=ze=>(oe[ze]||"").split(", "),ie=ae(`${TRANSITION}Delay`),le=ae(`${TRANSITION}Duration`),pe=getTimeout(ie,le),_e=ae(`${ANIMATION}Delay`),Ce=ae(`${ANIMATION}Duration`),$e=getTimeout(_e,Ce);let xe=null,Ie=0,Ne=0;z===TRANSITION?pe>0&&(xe=TRANSITION,Ie=pe,Ne=le.length):z===ANIMATION?$e>0&&(xe=ANIMATION,Ie=$e,Ne=Ce.length):(Ie=Math.max(pe,$e),xe=Ie>0?pe>$e?TRANSITION:ANIMATION:null,Ne=xe?xe===TRANSITION?le.length:Ce.length:0);const Fe=xe===TRANSITION&&/\b(transform|all)(,|$)/.test(ae(`${TRANSITION}Property`).toString());return{type:xe,timeout:Ie,propCount:Ne,hasTransform:Fe}}function getTimeout($,z){for(;$.length<z.length;)$=$.concat($);return Math.max(...z.map((oe,ae)=>toMs(oe)+toMs($[ae])))}function toMs($){return Number($.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($,{slots:z}){const oe=getCurrentInstance(),ae=useTransitionState();let ie,le;return onUpdated(()=>{if(!ie.length)return;const pe=$.moveClass||`${$.name||"v"}-move`;if(!hasCSSTransform(ie[0].el,oe.vnode.el,pe))return;ie.forEach(callPendingCbs),ie.forEach(recordPosition);const _e=ie.filter(applyTranslation);forceReflow(),_e.forEach(Ce=>{const $e=Ce.el,xe=$e.style;addTransitionClass($e,pe),xe.transform=xe.webkitTransform=xe.transitionDuration="";const Ie=$e._moveCb=Ne=>{Ne&&Ne.target!==$e||(!Ne||/transform$/.test(Ne.propertyName))&&($e.removeEventListener("transitionend",Ie),$e._moveCb=null,removeTransitionClass($e,pe))};$e.addEventListener("transitionend",Ie)})}),()=>{const pe=toRaw($),_e=resolveTransitionProps(pe);let Ce=pe.tag||Fragment;ie=le,le=z.default?getTransitionRawChildren(z.default()):[];for(let $e=0;$e<le.length;$e++){const xe=le[$e];xe.key!=null&&setTransitionHooks(xe,resolveTransitionHooks(xe,_e,ae,oe))}if(ie)for(let $e=0;$e<ie.length;$e++){const xe=ie[$e];setTransitionHooks(xe,resolveTransitionHooks(xe,_e,ae,oe)),positionMap.set(xe,xe.el.getBoundingClientRect())}return createVNode(Ce,null,le)}}},removeMode=$=>delete $.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs($){const z=$.el;z._moveCb&&z._moveCb(),z._enterCb&&z._enterCb()}function recordPosition($){newPositionMap.set($,$.el.getBoundingClientRect())}function applyTranslation($){const z=positionMap.get($),oe=newPositionMap.get($),ae=z.left-oe.left,ie=z.top-oe.top;if(ae||ie){const le=$.el.style;return le.transform=le.webkitTransform=`translate(${ae}px,${ie}px)`,le.transitionDuration="0s",$}}function hasCSSTransform($,z,oe){const ae=$.cloneNode();$._vtc&&$._vtc.forEach(pe=>{pe.split(/\s+/).forEach(_e=>_e&&ae.classList.remove(_e))}),oe.split(/\s+/).forEach(pe=>pe&&ae.classList.add(pe)),ae.style.display="none";const ie=z.nodeType===1?z:z.parentNode;ie.appendChild(ae);const{hasTransform:le}=getTransitionInfo(ae);return ie.removeChild(ae),le}const getModelAssigner=$=>{const z=$.props["onUpdate:modelValue"]||!1;return isArray$c(z)?oe=>invokeArrayFns(z,oe):z};function onCompositionStart($){$.target.composing=!0}function onCompositionEnd($){const z=$.target;z.composing&&(z.composing=!1,z.dispatchEvent(new Event("input")))}const vModelText={created($,{modifiers:{lazy:z,trim:oe,number:ae}},ie){$._assign=getModelAssigner(ie);const le=ae||ie.props&&ie.props.type==="number";addEventListener$1($,z?"change":"input",pe=>{if(pe.target.composing)return;let _e=$.value;oe&&(_e=_e.trim()),le&&(_e=looseToNumber(_e)),$._assign(_e)}),oe&&addEventListener$1($,"change",()=>{$.value=$.value.trim()}),z||(addEventListener$1($,"compositionstart",onCompositionStart),addEventListener$1($,"compositionend",onCompositionEnd),addEventListener$1($,"change",onCompositionEnd))},mounted($,{value:z}){$.value=z??""},beforeUpdate($,{value:z,modifiers:{lazy:oe,trim:ae,number:ie}},le){if($._assign=getModelAssigner(le),$.composing||document.activeElement===$&&$.type!=="range"&&(oe||ae&&$.value.trim()===z||(ie||$.type==="number")&&looseToNumber($.value)===z))return;const pe=z??"";$.value!==pe&&($.value=pe)}},vModelCheckbox={deep:!0,created($,z,oe){$._assign=getModelAssigner(oe),addEventListener$1($,"change",()=>{const ae=$._modelValue,ie=getValue$2($),le=$.checked,pe=$._assign;if(isArray$c(ae)){const _e=looseIndexOf(ae,ie),Ce=_e!==-1;if(le&&!Ce)pe(ae.concat(ie));else if(!le&&Ce){const $e=[...ae];$e.splice(_e,1),pe($e)}}else if(isSet$3(ae)){const _e=new Set(ae);le?_e.add(ie):_e.delete(ie),pe(_e)}else pe(getCheckboxValue($,le))})},mounted:setChecked,beforeUpdate($,z,oe){$._assign=getModelAssigner(oe),setChecked($,z,oe)}};function setChecked($,{value:z,oldValue:oe},ae){$._modelValue=z,isArray$c(z)?$.checked=looseIndexOf(z,ae.props.value)>-1:isSet$3(z)?$.checked=z.has(ae.props.value):z!==oe&&($.checked=looseEqual(z,getCheckboxValue($,!0)))}const vModelRadio={created($,{value:z},oe){$.checked=looseEqual(z,oe.props.value),$._assign=getModelAssigner(oe),addEventListener$1($,"change",()=>{$._assign(getValue$2($))})},beforeUpdate($,{value:z,oldValue:oe},ae){$._assign=getModelAssigner(ae),z!==oe&&($.checked=looseEqual(z,ae.props.value))}},vModelSelect={deep:!0,created($,{value:z,modifiers:{number:oe}},ae){const ie=isSet$3(z);addEventListener$1($,"change",()=>{const le=Array.prototype.filter.call($.options,pe=>pe.selected).map(pe=>oe?looseToNumber(getValue$2(pe)):getValue$2(pe));$._assign($.multiple?ie?new Set(le):le:le[0])}),$._assign=getModelAssigner(ae)},mounted($,{value:z}){setSelected($,z)},beforeUpdate($,z,oe){$._assign=getModelAssigner(oe)},updated($,{value:z}){setSelected($,z)}};function setSelected($,z){const oe=$.multiple;if(!(oe&&!isArray$c(z)&&!isSet$3(z))){for(let ae=0,ie=$.options.length;ae<ie;ae++){const le=$.options[ae],pe=getValue$2(le);if(oe)isArray$c(z)?le.selected=looseIndexOf(z,pe)>-1:le.selected=z.has(pe);else if(looseEqual(getValue$2(le),z)){$.selectedIndex!==ae&&($.selectedIndex=ae);return}}!oe&&$.selectedIndex!==-1&&($.selectedIndex=-1)}}function getValue$2($){return"_value"in $?$._value:$.value}function getCheckboxValue($,z){const oe=z?"_trueValue":"_falseValue";return oe in $?$[oe]:z}const vModelDynamic={created($,z,oe){callModelHook($,z,oe,null,"created")},mounted($,z,oe){callModelHook($,z,oe,null,"mounted")},beforeUpdate($,z,oe,ae){callModelHook($,z,oe,ae,"beforeUpdate")},updated($,z,oe,ae){callModelHook($,z,oe,ae,"updated")}};function resolveDynamicModel($,z){switch($){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(z){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook($,z,oe,ae,ie){const pe=resolveDynamicModel($.tagName,oe.props&&oe.props.type)[ie];pe&&pe($,z,oe,ae)}function initVModelForSSR(){vModelText.getSSRProps=({value:$})=>({value:$}),vModelRadio.getSSRProps=({value:$},z)=>{if(z.props&&looseEqual(z.props.value,$))return{checked:!0}},vModelCheckbox.getSSRProps=({value:$},z)=>{if(isArray$c($)){if(z.props&&looseIndexOf($,z.props.value)>-1)return{checked:!0}}else if(isSet$3($)){if(z.props&&$.has(z.props.value))return{checked:!0}}else if($)return{checked:!0}},vModelDynamic.getSSRProps=($,z)=>{if(typeof z.type!="string")return;const oe=resolveDynamicModel(z.type.toUpperCase(),z.props&&z.props.type);if(oe.getSSRProps)return oe.getSSRProps($,z)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:$=>$.stopPropagation(),prevent:$=>$.preventDefault(),self:$=>$.target!==$.currentTarget,ctrl:$=>!$.ctrlKey,shift:$=>!$.shiftKey,alt:$=>!$.altKey,meta:$=>!$.metaKey,left:$=>"button"in $&&$.button!==0,middle:$=>"button"in $&&$.button!==1,right:$=>"button"in $&&$.button!==2,exact:($,z)=>systemModifiers.some(oe=>$[`${oe}Key`]&&!z.includes(oe))},withModifiers=($,z)=>(oe,...ae)=>{for(let ie=0;ie<z.length;ie++){const le=modifierGuards[z[ie]];if(le&&le(oe,z))return}return $(oe,...ae)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=($,z)=>oe=>{if(!("key"in oe))return;const ae=hyphenate(oe.key);if(z.some(ie=>ie===ae||keyNames[ie]===ae))return $(oe)},vShow={beforeMount($,{value:z},{transition:oe}){$._vod=$.style.display==="none"?"":$.style.display,oe&&z?oe.beforeEnter($):setDisplay($,z)},mounted($,{value:z},{transition:oe}){oe&&z&&oe.enter($)},updated($,{value:z,oldValue:oe},{transition:ae}){!z!=!oe&&(ae?z?(ae.beforeEnter($),setDisplay($,!0),ae.enter($)):ae.leave($,()=>{setDisplay($,!1)}):setDisplay($,z))},beforeUnmount($,{value:z}){setDisplay($,z)}};function setDisplay($,z){$.style.display=z?$._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:$})=>{if(!$)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=(...$)=>{ensureRenderer().render(...$)},hydrate=(...$)=>{ensureHydrationRenderer().hydrate(...$)},createApp=(...$)=>{const z=ensureRenderer().createApp(...$),{mount:oe}=z;return z.mount=ae=>{const ie=normalizeContainer(ae);if(!ie)return;const le=z._component;!isFunction$5(le)&&!le.render&&!le.template&&(le.template=ie.innerHTML),ie.innerHTML="";const pe=oe(ie,!1,ie instanceof SVGElement);return ie instanceof Element&&(ie.removeAttribute("v-cloak"),ie.setAttribute("data-v-app","")),pe},z},createSSRApp=(...$)=>{const z=ensureHydrationRenderer().createApp(...$),{mount:oe}=z;return z.mount=ae=>{const ie=normalizeContainer(ae);if(ie)return oe(ie,!0,ie instanceof SVGElement)},z};function normalizeContainer($){return isString$7($)?document.querySelector($):$}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$3,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:toRef$1,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"})),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=$=>getComputedStyle($).position==="fixed"?!1:$.offsetParent!==null,obtainAllFocusableElements$1=$=>Array.from($.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(z=>isFocusable(z)&&isVisible(z)),isFocusable=$=>{if($.tabIndex>0||$.tabIndex===0&&$.getAttribute("tabIndex")!==null)return!0;if($.disabled)return!1;switch($.nodeName){case"A":return!!$.href&&$.rel!=="ignore";case"INPUT":return!($.type==="hidden"||$.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function($,z,...oe){let ae;z.includes("mouse")||z.includes("click")?ae="MouseEvents":z.includes("key")?ae="KeyboardEvent":ae="HTMLEvents";const ie=document.createEvent(ae);return ie.initEvent(z,...oe),$.dispatchEvent(ie),$},isLeaf=$=>!$.getAttribute("aria-owns"),getSibling=($,z,oe)=>{const{parentNode:ae}=$;if(!ae)return null;const ie=ae.querySelectorAll(oe),le=Array.prototype.indexOf.call(ie,$);return ie[le+z]||null},focusNode=$=>{$&&($.focus(),!isLeaf($)&&$.click())},composeEventHandlers=($,z,{checkForDefaultPrevented:oe=!0}={})=>ie=>{const le=$==null?void 0:$(ie);if(oe===!1||!le)return z==null?void 0:z(ie)},whenMouse=$=>z=>z.pointerType==="mouse"?$(z):void 0;var isVue2=!1;function set$3($,z,oe){return Array.isArray($)?($.length=Math.max($.length,z),$.splice(z,1,oe),oe):($[z]=oe,oe)}function del($,z){if(Array.isArray($)){$.splice(z,1);return}delete $[z]}var __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=($,z,oe)=>z in $?__defProp$9($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe,__spreadValues$9=($,z)=>{for(var oe in z||(z={}))__hasOwnProp$b.call(z,oe)&&__defNormalProp$9($,oe,z[oe]);if(__getOwnPropSymbols$b)for(var oe of __getOwnPropSymbols$b(z))__propIsEnum$b.call(z,oe)&&__defNormalProp$9($,oe,z[oe]);return $},__spreadProps$6=($,z)=>__defProps$6($,__getOwnPropDescs$6(z));function computedEager($,z){var oe;const ae=shallowRef();return watchEffect(()=>{ae.value=$()},__spreadProps$6(__spreadValues$9({},z),{flush:(oe=z==null?void 0:z.flush)!=null?oe:"sync"})),readonly(ae)}var _a$2;const isClient$2=typeof window<"u",isDef=$=>typeof $<"u",isFunction$4=$=>typeof $=="function",isString$6=$=>typeof $=="string",noop$7=()=>{},isIOS$1=isClient$2&&((_a$2=window==null?void 0:window.navigator)==null?void 0:_a$2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref($){return typeof $=="function"?$():unref($)}function createFilterWrapper$1($,z){function oe(...ae){return new Promise((ie,le)=>{Promise.resolve($(()=>z.apply(this,ae),{fn:z,thisArg:this,args:ae})).then(ie).catch(le)})}return oe}function debounceFilter$1($,z={}){let oe,ae,ie=noop$7;const le=_e=>{clearTimeout(_e),ie(),ie=noop$7};return _e=>{const Ce=resolveUnref($),$e=resolveUnref(z.maxWait);return oe&&le(oe),Ce<=0||$e!==void 0&&$e<=0?(ae&&(le(ae),ae=null),Promise.resolve(_e())):new Promise((xe,Ie)=>{ie=z.rejectOnCancel?Ie:xe,$e&&!ae&&(ae=setTimeout(()=>{oe&&le(oe),ae=null,xe(_e())},$e)),oe=setTimeout(()=>{ae&&le(ae),ae=null,xe(_e())},Ce)})}}function throttleFilter($,z=!0,oe=!0,ae=!1){let ie=0,le,pe=!0,_e=noop$7,Ce;const $e=()=>{le&&(clearTimeout(le),le=void 0,_e(),_e=noop$7)};return Ie=>{const Ne=resolveUnref($),Fe=Date.now()-ie,ze=()=>Ce=Ie();return $e(),Ne<=0?(ie=Date.now(),ze()):(Fe>Ne&&(oe||!pe)?(ie=Date.now(),ze()):z&&(Ce=new Promise((At,Lt)=>{_e=ae?Lt:At,le=setTimeout(()=>{ie=Date.now(),pe=!0,At(ze()),$e()},Math.max(0,Ne-Fe))})),!oe&&!le&&(le=setTimeout(()=>pe=!0,Ne)),pe=!1,Ce)}}function identity$2($){return $}function tryOnScopeDispose$2($){return getCurrentScope()?(onScopeDispose($),!0):!1}function useDebounceFn$1($,z=200,oe={}){return createFilterWrapper$1(debounceFilter$1(z,oe),$)}function refDebounced($,z=200,oe={}){const ae=ref($.value),ie=useDebounceFn$1(()=>{ae.value=$.value},z,oe);return watch($,()=>ie()),ae}function useThrottleFn($,z=200,oe=!1,ae=!0,ie=!1){return createFilterWrapper$1(throttleFilter(z,oe,ae,ie),$)}function tryOnMounted$1($,z=!0){getCurrentInstance()?onMounted($):z?$():nextTick($)}function useTimeoutFn$1($,z,oe={}){const{immediate:ae=!0}=oe,ie=ref(!1);let le=null;function pe(){le&&(clearTimeout(le),le=null)}function _e(){ie.value=!1,pe()}function Ce(...$e){pe(),ie.value=!0,le=setTimeout(()=>{ie.value=!1,le=null,$(...$e)},resolveUnref(z))}return ae&&(ie.value=!0,isClient$2&&Ce()),tryOnScopeDispose$2(_e),{isPending:readonly(ie),start:Ce,stop:_e}}function unrefElement$1($){var z;const oe=resolveUnref($);return(z=oe==null?void 0:oe.$el)!=null?z:oe}const defaultWindow$1=isClient$2?window:void 0,defaultDocument=isClient$2?window.document:void 0;function useEventListener$1(...$){let z,oe,ae,ie;if(isString$6($[0])||Array.isArray($[0])?([oe,ae,ie]=$,z=defaultWindow$1):[z,oe,ae,ie]=$,!z)return noop$7;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const le=[],pe=()=>{le.forEach(xe=>xe()),le.length=0},_e=(xe,Ie,Ne,Fe)=>(xe.addEventListener(Ie,Ne,Fe),()=>xe.removeEventListener(Ie,Ne,Fe)),Ce=watch(()=>[unrefElement$1(z),resolveUnref(ie)],([xe,Ie])=>{pe(),xe&&le.push(...oe.flatMap(Ne=>ae.map(Fe=>_e(xe,Ne,Fe,Ie))))},{immediate:!0,flush:"post"}),$e=()=>{Ce(),pe()};return tryOnScopeDispose$2($e),$e}let _iOSWorkaround=!1;function onClickOutside($,z,oe={}){const{window:ae=defaultWindow$1,ignore:ie=[],capture:le=!0,detectIframe:pe=!1}=oe;if(!ae)return;isIOS$1&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ae.document.body.children).forEach(Ne=>Ne.addEventListener("click",noop$7)));let _e=!0;const Ce=Ne=>ie.some(Fe=>{if(typeof Fe=="string")return Array.from(ae.document.querySelectorAll(Fe)).some(ze=>ze===Ne.target||Ne.composedPath().includes(ze));{const ze=unrefElement$1(Fe);return ze&&(Ne.target===ze||Ne.composedPath().includes(ze))}}),xe=[useEventListener$1(ae,"click",Ne=>{const Fe=unrefElement$1($);if(!(!Fe||Fe===Ne.target||Ne.composedPath().includes(Fe))){if(Ne.detail===0&&(_e=!Ce(Ne)),!_e){_e=!0;return}z(Ne)}},{passive:!0,capture:le}),useEventListener$1(ae,"pointerdown",Ne=>{const Fe=unrefElement$1($);Fe&&(_e=!Ne.composedPath().includes(Fe)&&!Ce(Ne))},{passive:!0}),pe&&useEventListener$1(ae,"blur",Ne=>{var Fe;const ze=unrefElement$1($);((Fe=ae.document.activeElement)==null?void 0:Fe.tagName)==="IFRAME"&&!(ze!=null&&ze.contains(ae.document.activeElement))&&z(Ne)})].filter(Boolean);return()=>xe.forEach(Ne=>Ne())}function useSupported($,z=!1){const oe=ref(),ae=()=>oe.value=!!$();return ae(),tryOnMounted$1(ae,z),oe}function cloneFnJSON($){return JSON.parse(JSON.stringify($))}const _global$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey$1="__vueuse_ssr_handlers__";_global$2[globalKey$1]=_global$2[globalKey$1]||{};function useCssVar($,z,{window:oe=defaultWindow$1,initialValue:ae=""}={}){const ie=ref(ae),le=computed(()=>{var pe;return unrefElement$1(z)||((pe=oe==null?void 0:oe.document)==null?void 0:pe.documentElement)});return watch([le,()=>resolveUnref($)],([pe,_e])=>{var Ce;if(pe&&oe){const $e=(Ce=oe.getComputedStyle(pe).getPropertyValue(_e))==null?void 0:Ce.trim();ie.value=$e||ae}},{immediate:!0}),watch(ie,pe=>{var _e;(_e=le.value)!=null&&_e.style&&le.value.style.setProperty(resolveUnref($),pe)}),ie}function useDocumentVisibility({document:$=defaultDocument}={}){if(!$)return ref("visible");const z=ref($.visibilityState);return useEventListener$1($,"visibilitychange",()=>{z.value=$.visibilityState}),z}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=($,z)=>{var oe={};for(var ae in $)__hasOwnProp$g.call($,ae)&&z.indexOf(ae)<0&&(oe[ae]=$[ae]);if($!=null&&__getOwnPropSymbols$g)for(var ae of __getOwnPropSymbols$g($))z.indexOf(ae)<0&&__propIsEnum$g.call($,ae)&&(oe[ae]=$[ae]);return oe};function useResizeObserver($,z,oe={}){const ae=oe,{window:ie=defaultWindow$1}=ae,le=__objRest$2(ae,["window"]);let pe;const _e=useSupported(()=>ie&&"ResizeObserver"in ie),Ce=()=>{pe&&(pe.disconnect(),pe=void 0)},$e=watch(()=>unrefElement$1($),Ie=>{Ce(),_e.value&&ie&&Ie&&(pe=new ResizeObserver(z),pe.observe(Ie,le))},{immediate:!0,flush:"post"}),xe=()=>{Ce(),$e()};return tryOnScopeDispose$2(xe),{isSupported:_e,stop:xe}}function useElementBounding($,z={}){const{reset:oe=!0,windowResize:ae=!0,windowScroll:ie=!0,immediate:le=!0}=z,pe=ref(0),_e=ref(0),Ce=ref(0),$e=ref(0),xe=ref(0),Ie=ref(0),Ne=ref(0),Fe=ref(0);function ze(){const At=unrefElement$1($);if(!At){oe&&(pe.value=0,_e.value=0,Ce.value=0,$e.value=0,xe.value=0,Ie.value=0,Ne.value=0,Fe.value=0);return}const Lt=At.getBoundingClientRect();pe.value=Lt.height,_e.value=Lt.bottom,Ce.value=Lt.left,$e.value=Lt.right,xe.value=Lt.top,Ie.value=Lt.width,Ne.value=Lt.x,Fe.value=Lt.y}return useResizeObserver($,ze),watch(()=>unrefElement$1($),At=>!At&&ze()),ie&&useEventListener$1("scroll",ze,{capture:!0,passive:!0}),ae&&useEventListener$1("resize",ze,{passive:!0}),tryOnMounted$1(()=>{le&&ze()}),{height:pe,bottom:_e,left:Ce,right:$e,top:xe,width:Ie,x:Ne,y:Fe,update:ze}}var SwipeDirection$1;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection$1||(SwipeDirection$1={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=($,z,oe)=>z in $?__defProp($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe,__spreadValues=($,z)=>{for(var oe in z||(z={}))__hasOwnProp.call(z,oe)&&__defNormalProp($,oe,z[oe]);if(__getOwnPropSymbols)for(var oe of __getOwnPropSymbols(z))__propIsEnum.call(z,oe)&&__defNormalProp($,oe,z[oe]);return $};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($,z,oe,ae={}){var ie,le,pe;const{clone:_e=!1,passive:Ce=!1,eventName:$e,deep:xe=!1,defaultValue:Ie}=ae,Ne=getCurrentInstance(),Fe=oe||(Ne==null?void 0:Ne.emit)||((ie=Ne==null?void 0:Ne.$emit)==null?void 0:ie.bind(Ne))||((pe=(le=Ne==null?void 0:Ne.proxy)==null?void 0:le.$emit)==null?void 0:pe.bind(Ne==null?void 0:Ne.proxy));let ze=$e;z||(z="modelValue"),ze=$e||ze||`update:${z.toString()}`;const At=hn=>_e?isFunction$4(_e)?_e(hn):cloneFnJSON(hn):hn,Lt=()=>isDef($[z])?At($[z]):Ie;if(Ce){const hn=Lt(),vn=ref(hn);return watch(()=>$[z],_n=>vn.value=At(_n)),watch(vn,_n=>{(_n!==$[z]||xe)&&Fe(ze,_n)},{deep:xe}),vn}else return computed({get(){return Lt()},set(hn){Fe(ze,hn)}})}function useWindowFocus({window:$=defaultWindow$1}={}){if(!$)return ref(!1);const z=ref($.document.hasFocus());return useEventListener$1($,"blur",()=>{z.value=!1}),useEventListener$1($,"focus",()=>{z.value=!0}),z}function useWindowSize($={}){const{window:z=defaultWindow$1,initialWidth:oe=1/0,initialHeight:ae=1/0,listenOrientation:ie=!0,includeScrollbar:le=!0}=$,pe=ref(oe),_e=ref(ae),Ce=()=>{z&&(le?(pe.value=z.innerWidth,_e.value=z.innerHeight):(pe.value=z.document.documentElement.clientWidth,_e.value=z.document.documentElement.clientHeight))};return Ce(),tryOnMounted$1(Ce),useEventListener$1("resize",Ce,{passive:!0}),ie&&useEventListener$1("orientationchange",Ce,{passive:!0}),{width:pe,height:_e}}const isFirefox=()=>isClient$2&&/firefox/i.test(window.navigator.userAgent),isInContainer=($,z)=>{if(!isClient$2||!$||!z)return!1;const oe=$.getBoundingClientRect();let ae;return z instanceof Element?ae=z.getBoundingClientRect():ae={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},oe.top<ae.bottom&&oe.bottom>ae.top&&oe.right>ae.left&&oe.left<ae.right},getOffsetTop=$=>{let z=0,oe=$;for(;oe;)z+=oe.offsetTop,oe=oe.offsetParent;return z},getOffsetTopDistance=($,z)=>Math.abs(getOffsetTop($)-getOffsetTop(z)),getClientXY=$=>{let z,oe;return $.type==="touchend"?(oe=$.changedTouches[0].clientY,z=$.changedTouches[0].clientX):$.type.startsWith("touch")?(oe=$.touches[0].clientY,z=$.touches[0].clientX):(oe=$.clientY,z=$.clientX),{clientX:z,clientY:oe}};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($){var z=hasOwnProperty$e.call($,symToStringTag$1),oe=$[symToStringTag$1];try{$[symToStringTag$1]=void 0;var ae=!0}catch{}var ie=nativeObjectToString$1.call($);return ae&&(z?$[symToStringTag$1]=oe:delete $[symToStringTag$1]),ie}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$2($){return nativeObjectToString.call($)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag($){return $==null?$===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object($)?getRawTag($):objectToString$2($)}function isObjectLike($){return $!=null&&typeof $=="object"}var symbolTag$3="[object Symbol]";function isSymbol$1($){return typeof $=="symbol"||isObjectLike($)&&baseGetTag($)==symbolTag$3}function arrayMap($,z){for(var oe=-1,ae=$==null?0:$.length,ie=Array(ae);++oe<ae;)ie[oe]=z($[oe],oe,$);return ie}var isArray$a=Array.isArray;const isArray$b=isArray$a;var INFINITY$3=1/0,symbolProto$2=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString($){if(typeof $=="string")return $;if(isArray$b($))return arrayMap($,baseToString)+"";if(isSymbol$1($))return symbolToString?symbolToString.call($):"";var z=$+"";return z=="0"&&1/$==-INFINITY$3?"-0":z}var reWhitespace=/\s/;function trimmedEndIndex($){for(var z=$.length;z--&&reWhitespace.test($.charAt(z)););return z}var reTrimStart=/^\s+/;function baseTrim($){return $&&$.slice(0,trimmedEndIndex($)+1).replace(reTrimStart,"")}function isObject$7($){var z=typeof $;return $!=null&&(z=="object"||z=="function")}var NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber($){if(typeof $=="number")return $;if(isSymbol$1($))return NAN;if(isObject$7($)){var z=typeof $.valueOf=="function"?$.valueOf():$;$=isObject$7(z)?z+"":z}if(typeof $!="string")return $===0?$:+$;$=baseTrim($);var oe=reIsBinary.test($);return oe||reIsOctal.test($)?freeParseInt($.slice(2),oe?2:8):reIsBadHex.test($)?NAN:+$}function identity$1($){return $}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3($){if(!isObject$7($))return!1;var z=baseGetTag($);return z==funcTag$2||z==genTag$1||z==asyncTag||z==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var $=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}();function isMasked($){return!!maskSrcKey&&maskSrcKey in $}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource($){if($!=null){try{return funcToString$2.call($)}catch{}try{return $+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$d=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$d.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative($){if(!isObject$7($)||isMasked($))return!1;var z=isFunction$3($)?reIsNative:reIsHostCtor;return z.test(toSource($))}function getValue$1($,z){return $==null?void 0:$[z]}function getNative($,z){var oe=getValue$1($,z);return baseIsNative(oe)?oe:void 0}var WeakMap$3=getNative(root$1,"WeakMap");const WeakMap$4=WeakMap$3;var objectCreate=Object.create,baseCreate=function(){function $(){}return function(z){if(!isObject$7(z))return{};if(objectCreate)return objectCreate(z);$.prototype=z;var oe=new $;return $.prototype=void 0,oe}}();const baseCreate$1=baseCreate;function apply$1($,z,oe){switch(oe.length){case 0:return $.call(z);case 1:return $.call(z,oe[0]);case 2:return $.call(z,oe[0],oe[1]);case 3:return $.call(z,oe[0],oe[1],oe[2])}return $.apply(z,oe)}function noop$6(){}function copyArray($,z){var oe=-1,ae=$.length;for(z||(z=Array(ae));++oe<ae;)z[oe]=$[oe];return z}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut($){var z=0,oe=0;return function(){var ae=nativeNow(),ie=HOT_SPAN-(ae-oe);if(oe=ae,ie>0){if(++z>=HOT_COUNT)return arguments[0]}else z=0;return $.apply(void 0,arguments)}}function constant($){return function(){return $}}var defineProperty=function(){try{var $=getNative(Object,"defineProperty");return $({},"",{}),$}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function($,z){return defineProperty$1($,"toString",{configurable:!0,enumerable:!1,value:constant(z),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach($,z){for(var oe=-1,ae=$==null?0:$.length;++oe<ae&&z($[oe],oe,$)!==!1;);return $}function baseFindIndex($,z,oe,ae){for(var ie=$.length,le=oe+(ae?1:-1);ae?le--:++le<ie;)if(z($[le],le,$))return le;return-1}function baseIsNaN($){return $!==$}function strictIndexOf($,z,oe){for(var ae=oe-1,ie=$.length;++ae<ie;)if($[ae]===z)return ae;return-1}function baseIndexOf($,z,oe){return z===z?strictIndexOf($,z,oe):baseFindIndex($,baseIsNaN,oe)}function arrayIncludes($,z){var oe=$==null?0:$.length;return!!oe&&baseIndexOf($,z,0)>-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,z){var oe=typeof $;return z=z??MAX_SAFE_INTEGER$2,!!z&&(oe=="number"||oe!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$<z}function baseAssignValue($,z,oe){z=="__proto__"&&defineProperty$1?defineProperty$1($,z,{configurable:!0,enumerable:!0,value:oe,writable:!0}):$[z]=oe}function eq($,z){return $===z||$!==$&&z!==z}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty;function assignValue($,z,oe){var ae=$[z];(!(hasOwnProperty$c.call($,z)&&eq(ae,oe))||oe===void 0&&!(z in $))&&baseAssignValue($,z,oe)}function copyObject($,z,oe,ae){var ie=!oe;oe||(oe={});for(var le=-1,pe=z.length;++le<pe;){var _e=z[le],Ce=ae?ae(oe[_e],$[_e],_e,oe,$):void 0;Ce===void 0&&(Ce=$[_e]),ie?baseAssignValue(oe,_e,Ce):assignValue(oe,_e,Ce)}return oe}var nativeMax$1=Math.max;function overRest($,z,oe){return z=nativeMax$1(z===void 0?$.length-1:z,0),function(){for(var ae=arguments,ie=-1,le=nativeMax$1(ae.length-z,0),pe=Array(le);++ie<le;)pe[ie]=ae[z+ie];ie=-1;for(var _e=Array(z+1);++ie<z;)_e[ie]=ae[ie];return _e[z]=oe(pe),apply$1($,this,_e)}}function baseRest($,z){return setToString$1(overRest($,z,identity$1),$+"")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength($){return typeof $=="number"&&$>-1&&$%1==0&&$<=MAX_SAFE_INTEGER$1}function isArrayLike$1($){return $!=null&&isLength($.length)&&!isFunction$3($)}function isIterateeCall($,z,oe){if(!isObject$7(oe))return!1;var ae=typeof z;return(ae=="number"?isArrayLike$1(oe)&&isIndex(z,oe.length):ae=="string"&&z in oe)?eq(oe[z],$):!1}function createAssigner($){return baseRest(function(z,oe){var ae=-1,ie=oe.length,le=ie>1?oe[ie-1]:void 0,pe=ie>2?oe[2]:void 0;for(le=$.length>3&&typeof le=="function"?(ie--,le):void 0,pe&&isIterateeCall(oe[0],oe[1],pe)&&(le=ie<3?void 0:le,ie=1),z=Object(z);++ae<ie;){var _e=oe[ae];_e&&$(z,_e,ae,le)}return z})}var objectProto$b=Object.prototype;function isPrototype($){var z=$&&$.constructor,oe=typeof z=="function"&&z.prototype||objectProto$b;return $===oe}function baseTimes($,z){for(var oe=-1,ae=Array($);++oe<$;)ae[oe]=z(oe);return ae}var argsTag$3="[object Arguments]";function baseIsArguments($){return isObjectLike($)&&baseGetTag($)==argsTag$3}var objectProto$a=Object.prototype,hasOwnProperty$b=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function($){return isObjectLike($)&&hasOwnProperty$b.call($,"callee")&&!propertyIsEnumerable$1.call($,"callee")};const isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$2=nativeIsBuffer||stubFalse;const isBuffer$3=isBuffer$2;var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray($){return isObjectLike($)&&isLength($.length)&&!!typedArrayTags[baseGetTag($)]}function baseUnary($){return function(z){return $(z)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var $=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return $||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$3=isTypedArray$2;var objectProto$9=Object.prototype,hasOwnProperty$a=objectProto$9.hasOwnProperty;function arrayLikeKeys($,z){var oe=isArray$b($),ae=!oe&&isArguments$1($),ie=!oe&&!ae&&isBuffer$3($),le=!oe&&!ae&&!ie&&isTypedArray$3($),pe=oe||ae||ie||le,_e=pe?baseTimes($.length,String):[],Ce=_e.length;for(var $e in $)(z||hasOwnProperty$a.call($,$e))&&!(pe&&($e=="length"||ie&&($e=="offset"||$e=="parent")||le&&($e=="buffer"||$e=="byteLength"||$e=="byteOffset")||isIndex($e,Ce)))&&_e.push($e);return _e}function overArg($,z){return function(oe){return $(z(oe))}}var nativeKeys=overArg(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$8=Object.prototype,hasOwnProperty$9=objectProto$8.hasOwnProperty;function baseKeys($){if(!isPrototype($))return nativeKeys$1($);var z=[];for(var oe in Object($))hasOwnProperty$9.call($,oe)&&oe!="constructor"&&z.push(oe);return z}function keys$1($){return isArrayLike$1($)?arrayLikeKeys($):baseKeys($)}function nativeKeysIn($){var z=[];if($!=null)for(var oe in Object($))z.push(oe);return z}var objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty;function baseKeysIn($){if(!isObject$7($))return nativeKeysIn($);var z=isPrototype($),oe=[];for(var ae in $)ae=="constructor"&&(z||!hasOwnProperty$8.call($,ae))||oe.push(ae);return oe}function keysIn($){return isArrayLike$1($)?arrayLikeKeys($,!0):baseKeysIn($)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey($,z){if(isArray$b($))return!1;var oe=typeof $;return oe=="number"||oe=="symbol"||oe=="boolean"||$==null||isSymbol$1($)?!0:reIsPlainProp.test($)||!reIsDeepProp.test($)||z!=null&&$ in Object(z)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete($){var z=this.has($)&&delete this.__data__[$];return this.size-=z?1:0,z}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function hashGet($){var z=this.__data__;if(nativeCreate$1){var oe=z[$];return oe===HASH_UNDEFINED$2?void 0:oe}return hasOwnProperty$7.call(z,$)?z[$]:void 0}var objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function hashHas($){var z=this.__data__;return nativeCreate$1?z[$]!==void 0:hasOwnProperty$6.call(z,$)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet($,z){var oe=this.__data__;return this.size+=this.has($)?0:1,oe[$]=nativeCreate$1&&z===void 0?HASH_UNDEFINED$1:z,this}function Hash($){var z=-1,oe=$==null?0:$.length;for(this.clear();++z<oe;){var ae=$[z];this.set(ae[0],ae[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf($,z){for(var oe=$.length;oe--;)if(eq($[oe][0],z))return oe;return-1}var arrayProto$1=Array.prototype,splice=arrayProto$1.splice;function listCacheDelete($){var z=this.__data__,oe=assocIndexOf(z,$);if(oe<0)return!1;var ae=z.length-1;return oe==ae?z.pop():splice.call(z,oe,1),--this.size,!0}function listCacheGet$1($){var z=this.__data__,oe=assocIndexOf(z,$);return oe<0?void 0:z[oe][1]}function listCacheHas($){return assocIndexOf(this.__data__,$)>-1}function listCacheSet$1($,z){var oe=this.__data__,ae=assocIndexOf(oe,$);return ae<0?(++this.size,oe.push([$,z])):oe[ae][1]=z,this}function ListCache($){var z=-1,oe=$==null?0:$.length;for(this.clear();++z<oe;){var ae=$[z];this.set(ae[0],ae[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet$1;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet$1;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable($){var z=typeof $;return z=="string"||z=="number"||z=="symbol"||z=="boolean"?$!=="__proto__":$===null}function getMapData($,z){var oe=$.__data__;return isKeyable(z)?oe[typeof z=="string"?"string":"hash"]:oe.map}function mapCacheDelete($){var z=getMapData(this,$).delete($);return this.size-=z?1:0,z}function mapCacheGet($){return getMapData(this,$).get($)}function mapCacheHas($){return getMapData(this,$).has($)}function mapCacheSet($,z){var oe=getMapData(this,$),ae=oe.size;return oe.set($,z),this.size+=oe.size==ae?0:1,this}function MapCache($){var z=-1,oe=$==null?0:$.length;for(this.clear();++z<oe;){var ae=$[z];this.set(ae[0],ae[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$2="Expected a function";function memoize($,z){if(typeof $!="function"||z!=null&&typeof z!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var oe=function(){var ae=arguments,ie=z?z.apply(this,ae):ae[0],le=oe.cache;if(le.has(ie))return le.get(ie);var pe=$.apply(this,ae);return oe.cache=le.set(ie,pe)||le,pe};return oe.cache=new(memoize.Cache||MapCache),oe}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped($){var z=memoize($,function(ae){return oe.size===MAX_MEMOIZE_SIZE&&oe.clear(),ae}),oe=z.cache;return z}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$1=memoizeCapped(function($){var z=[];return $.charCodeAt(0)===46&&z.push(""),$.replace(rePropName$1,function(oe,ae,ie,le){z.push(ie?le.replace(reEscapeChar$1,"$1"):ae||oe)}),z});const stringToPath$2=stringToPath$1;function toString$2($){return $==null?"":baseToString($)}function castPath($,z){return isArray$b($)?$:isKey($,z)?[$]:stringToPath$2(toString$2($))}var INFINITY$2=1/0;function toKey($){if(typeof $=="string"||isSymbol$1($))return $;var z=$+"";return z=="0"&&1/$==-INFINITY$2?"-0":z}function baseGet($,z){z=castPath(z,$);for(var oe=0,ae=z.length;$!=null&&oe<ae;)$=$[toKey(z[oe++])];return oe&&oe==ae?$:void 0}function get$1($,z,oe){var ae=$==null?void 0:baseGet($,z);return ae===void 0?oe:ae}function arrayPush($,z){for(var oe=-1,ae=z.length,ie=$.length;++oe<ae;)$[ie+oe]=z[oe];return $}var spreadableSymbol=Symbol$3?Symbol$3.isConcatSpreadable:void 0;function isFlattenable($){return isArray$b($)||isArguments$1($)||!!(spreadableSymbol&&$&&$[spreadableSymbol])}function baseFlatten($,z,oe,ae,ie){var le=-1,pe=$.length;for(oe||(oe=isFlattenable),ie||(ie=[]);++le<pe;){var _e=$[le];z>0&&oe(_e)?z>1?baseFlatten(_e,z-1,oe,ae,ie):arrayPush(ie,_e):ae||(ie[ie.length]=_e)}return ie}function flatten($){var z=$==null?0:$.length;return z?baseFlatten($,1):[]}function flatRest($){return setToString$1(overRest($,void 0,flatten),$+"")}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($){if(!isObjectLike($)||baseGetTag($)!=objectTag$3)return!1;var z=getPrototype$1($);if(z===null)return!0;var oe=hasOwnProperty$5.call(z,"constructor")&&z.constructor;return typeof oe=="function"&&oe instanceof oe&&funcToString.call(oe)==objectCtorString}function castArray$1(){if(!arguments.length)return[];var $=arguments[0];return isArray$b($)?$:[$]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete($){var z=this.__data__,oe=z.delete($);return this.size=z.size,oe}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,z){var oe=this.__data__;if(oe instanceof ListCache){var ae=oe.__data__;if(!Map$2||ae.length<LARGE_ARRAY_SIZE$1-1)return ae.push([$,z]),this.size=++oe.size,this;oe=this.__data__=new MapCache(ae)}return oe.set($,z),this.size=oe.size,this}function Stack($){var z=this.__data__=new ListCache($);this.size=z.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign($,z){return $&©Object(z,keys$1(z),$)}function baseAssignIn($,z){return $&©Object(z,keysIn(z),$)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer($,z){if(z)return $.slice();var oe=$.length,ae=allocUnsafe?allocUnsafe(oe):new $.constructor(oe);return $.copy(ae),ae}function arrayFilter($,z){for(var oe=-1,ae=$==null?0:$.length,ie=0,le=[];++oe<ae;){var pe=$[oe];z(pe,oe,$)&&(le[ie++]=pe)}return le}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function($){return $==null?[]:($=Object($),arrayFilter(nativeGetSymbols$1($),function(z){return propertyIsEnumerable.call($,z)}))}:stubArray;const getSymbols$1=getSymbols;function copySymbols($,z){return copyObject($,getSymbols$1($),z)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function($){for(var z=[];$;)arrayPush(z,getSymbols$1($)),$=getPrototype$1($);return z}:stubArray;const getSymbolsIn$1=getSymbolsIn;function copySymbolsIn($,z){return copyObject($,getSymbolsIn$1($),z)}function baseGetAllKeys($,z,oe){var ae=z($);return isArray$b($)?ae:arrayPush(ae,oe($))}function getAllKeys($){return baseGetAllKeys($,keys$1,getSymbols$1)}function getAllKeysIn($){return baseGetAllKeys($,keysIn,getSymbolsIn$1)}var DataView$3=getNative(root$1,"DataView");const DataView$4=DataView$3;var Promise$1=getNative(root$1,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$1,"Set");const Set$2=Set$1;var mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$4),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$4),getTag=baseGetTag;(DataView$4&&getTag(new DataView$4(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$4||WeakMap$4&&getTag(new WeakMap$4)!=weakMapTag$1)&&(getTag=function($){var z=baseGetTag($),oe=z==objectTag$2?$.constructor:void 0,ae=oe?toSource(oe):"";if(ae)switch(ae){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return z});const getTag$1=getTag;var objectProto$2=Object.prototype,hasOwnProperty$4=objectProto$2.hasOwnProperty;function initCloneArray($){var z=$.length,oe=new $.constructor(z);return z&&typeof $[0]=="string"&&hasOwnProperty$4.call($,"index")&&(oe.index=$.index,oe.input=$.input),oe}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer($){var z=new $.constructor($.byteLength);return new Uint8Array$2(z).set(new Uint8Array$2($)),z}function cloneDataView($,z){var oe=z?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(oe,$.byteOffset,$.byteLength)}var reFlags=/\w*$/;function cloneRegExp($){var z=new $.constructor($.source,reFlags.exec($));return z.lastIndex=$.lastIndex,z}var symbolProto$1=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol($){return symbolValueOf$1?Object(symbolValueOf$1.call($)):{}}function cloneTypedArray($,z){var oe=z?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(oe,$.byteOffset,$.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag($,z,oe){var ae=$.constructor;switch(z){case arrayBufferTag$2:return cloneArrayBuffer($);case boolTag$2:case dateTag$2:return new ae(+$);case dataViewTag$2:return cloneDataView($,oe);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray($,oe);case mapTag$3:return new ae;case numberTag$2:case stringTag$2:return new ae($);case regexpTag$2:return cloneRegExp($);case setTag$3:return new ae;case symbolTag$2:return cloneSymbol($)}}function initCloneObject($){return typeof $.constructor=="function"&&!isPrototype($)?baseCreate$1(getPrototype$1($)):{}}var mapTag$2="[object Map]";function baseIsMap($){return isObjectLike($)&&getTag$1($)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;const isMap$2=isMap$1;var setTag$2="[object Set]";function baseIsSet($){return isObjectLike($)&&getTag$1($)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;const isSet$2=isSet$1;var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone($,z,oe,ae,ie,le){var pe,_e=z&CLONE_DEEP_FLAG$1,Ce=z&CLONE_FLAT_FLAG,$e=z&CLONE_SYMBOLS_FLAG$2;if(oe&&(pe=ie?oe($,ae,ie,le):oe($)),pe!==void 0)return pe;if(!isObject$7($))return $;var xe=isArray$b($);if(xe){if(pe=initCloneArray($),!_e)return copyArray($,pe)}else{var Ie=getTag$1($),Ne=Ie==funcTag||Ie==genTag;if(isBuffer$3($))return cloneBuffer($,_e);if(Ie==objectTag$1||Ie==argsTag$1||Ne&&!ie){if(pe=Ce||Ne?{}:initCloneObject($),!_e)return Ce?copySymbolsIn($,baseAssignIn(pe,$)):copySymbols($,baseAssign(pe,$))}else{if(!cloneableTags[Ie])return ie?$:{};pe=initCloneByTag($,Ie,_e)}}le||(le=new Stack);var Fe=le.get($);if(Fe)return Fe;le.set($,pe),isSet$2($)?$.forEach(function(Lt){pe.add(baseClone(Lt,z,oe,Lt,$,le))}):isMap$2($)&&$.forEach(function(Lt,hn){pe.set(hn,baseClone(Lt,z,oe,hn,$,le))});var ze=$e?Ce?getAllKeysIn:getAllKeys:Ce?keysIn:keys$1,At=xe?void 0:ze($);return arrayEach(At||$,function(Lt,hn){At&&(hn=Lt,Lt=$[hn]),assignValue(pe,hn,baseClone(Lt,z,oe,hn,$,le))}),pe}var CLONE_SYMBOLS_FLAG$1=4;function clone$4($){return baseClone($,CLONE_SYMBOLS_FLAG$1)}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep($){return baseClone($,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd($){return this.__data__.set($,HASH_UNDEFINED),this}function setCacheHas($){return this.__data__.has($)}function SetCache($){var z=-1,oe=$==null?0:$.length;for(this.__data__=new MapCache;++z<oe;)this.add($[z])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome($,z){for(var oe=-1,ae=$==null?0:$.length;++oe<ae;)if(z($[oe],oe,$))return!0;return!1}function cacheHas($,z){return $.has(z)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays($,z,oe,ae,ie,le){var pe=oe&COMPARE_PARTIAL_FLAG$5,_e=$.length,Ce=z.length;if(_e!=Ce&&!(pe&&Ce>_e))return!1;var $e=le.get($),xe=le.get(z);if($e&&xe)return $e==z&&xe==$;var Ie=-1,Ne=!0,Fe=oe&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(le.set($,z),le.set(z,$);++Ie<_e;){var ze=$[Ie],At=z[Ie];if(ae)var Lt=pe?ae(At,ze,Ie,z,$,le):ae(ze,At,Ie,$,z,le);if(Lt!==void 0){if(Lt)continue;Ne=!1;break}if(Fe){if(!arraySome(z,function(hn,vn){if(!cacheHas(Fe,vn)&&(ze===hn||ie(ze,hn,oe,ae,le)))return Fe.push(vn)})){Ne=!1;break}}else if(!(ze===At||ie(ze,At,oe,ae,le))){Ne=!1;break}}return le.delete($),le.delete(z),Ne}function mapToArray($){var z=-1,oe=Array($.size);return $.forEach(function(ae,ie){oe[++z]=[ie,ae]}),oe}function setToArray($){var z=-1,oe=Array($.size);return $.forEach(function(ae){oe[++z]=ae}),oe}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag($,z,oe,ae,ie,le,pe){switch(oe){case dataViewTag:if($.byteLength!=z.byteLength||$.byteOffset!=z.byteOffset)return!1;$=$.buffer,z=z.buffer;case arrayBufferTag:return!($.byteLength!=z.byteLength||!le(new Uint8Array$2($),new Uint8Array$2(z)));case boolTag:case dateTag:case numberTag:return eq(+$,+z);case errorTag:return $.name==z.name&&$.message==z.message;case regexpTag:case stringTag:return $==z+"";case mapTag:var _e=mapToArray;case setTag:var Ce=ae&COMPARE_PARTIAL_FLAG$4;if(_e||(_e=setToArray),$.size!=z.size&&!Ce)return!1;var $e=pe.get($);if($e)return $e==z;ae|=COMPARE_UNORDERED_FLAG$2,pe.set($,z);var xe=equalArrays(_e($),_e(z),ae,ie,le,pe);return pe.delete($),xe;case symbolTag:if(symbolValueOf)return symbolValueOf.call($)==symbolValueOf.call(z)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$3=objectProto$1.hasOwnProperty;function equalObjects($,z,oe,ae,ie,le){var pe=oe&COMPARE_PARTIAL_FLAG$3,_e=getAllKeys($),Ce=_e.length,$e=getAllKeys(z),xe=$e.length;if(Ce!=xe&&!pe)return!1;for(var Ie=Ce;Ie--;){var Ne=_e[Ie];if(!(pe?Ne in z:hasOwnProperty$3.call(z,Ne)))return!1}var Fe=le.get($),ze=le.get(z);if(Fe&&ze)return Fe==z&&ze==$;var At=!0;le.set($,z),le.set(z,$);for(var Lt=pe;++Ie<Ce;){Ne=_e[Ie];var hn=$[Ne],vn=z[Ne];if(ae)var _n=pe?ae(vn,hn,Ne,z,$,le):ae(hn,vn,Ne,$,z,le);if(!(_n===void 0?hn===vn||ie(hn,vn,oe,ae,le):_n)){At=!1;break}Lt||(Lt=Ne=="constructor")}if(At&&!Lt){var bn=$.constructor,Cn=z.constructor;bn!=Cn&&"constructor"in $&&"constructor"in z&&!(typeof bn=="function"&&bn instanceof bn&&typeof Cn=="function"&&Cn instanceof Cn)&&(At=!1)}return le.delete($),le.delete(z),At}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$2=objectProto.hasOwnProperty;function baseIsEqualDeep($,z,oe,ae,ie,le){var pe=isArray$b($),_e=isArray$b(z),Ce=pe?arrayTag:getTag$1($),$e=_e?arrayTag:getTag$1(z);Ce=Ce==argsTag?objectTag:Ce,$e=$e==argsTag?objectTag:$e;var xe=Ce==objectTag,Ie=$e==objectTag,Ne=Ce==$e;if(Ne&&isBuffer$3($)){if(!isBuffer$3(z))return!1;pe=!0,xe=!1}if(Ne&&!xe)return le||(le=new Stack),pe||isTypedArray$3($)?equalArrays($,z,oe,ae,ie,le):equalByTag($,z,Ce,oe,ae,ie,le);if(!(oe&COMPARE_PARTIAL_FLAG$2)){var Fe=xe&&hasOwnProperty$2.call($,"__wrapped__"),ze=Ie&&hasOwnProperty$2.call(z,"__wrapped__");if(Fe||ze){var At=Fe?$.value():$,Lt=ze?z.value():z;return le||(le=new Stack),ie(At,Lt,oe,ae,le)}}return Ne?(le||(le=new Stack),equalObjects($,z,oe,ae,ie,le)):!1}function baseIsEqual($,z,oe,ae,ie){return $===z?!0:$==null||z==null||!isObjectLike($)&&!isObjectLike(z)?$!==$&&z!==z:baseIsEqualDeep($,z,oe,ae,baseIsEqual,ie)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch($,z,oe,ae){var ie=oe.length,le=ie,pe=!ae;if($==null)return!le;for($=Object($);ie--;){var _e=oe[ie];if(pe&&_e[2]?_e[1]!==$[_e[0]]:!(_e[0]in $))return!1}for(;++ie<le;){_e=oe[ie];var Ce=_e[0],$e=$[Ce],xe=_e[1];if(pe&&_e[2]){if($e===void 0&&!(Ce in $))return!1}else{var Ie=new Stack;if(ae)var Ne=ae($e,xe,Ce,$,z,Ie);if(!(Ne===void 0?baseIsEqual(xe,$e,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,ae,Ie):Ne))return!1}}return!0}function isStrictComparable($){return $===$&&!isObject$7($)}function getMatchData($){for(var z=keys$1($),oe=z.length;oe--;){var ae=z[oe],ie=$[ae];z[oe]=[ae,ie,isStrictComparable(ie)]}return z}function matchesStrictComparable($,z){return function(oe){return oe==null?!1:oe[$]===z&&(z!==void 0||$ in Object(oe))}}function baseMatches($){var z=getMatchData($);return z.length==1&&z[0][2]?matchesStrictComparable(z[0][0],z[0][1]):function(oe){return oe===$||baseIsMatch(oe,$,z)}}function baseHasIn($,z){return $!=null&&z in Object($)}function hasPath($,z,oe){z=castPath(z,$);for(var ae=-1,ie=z.length,le=!1;++ae<ie;){var pe=toKey(z[ae]);if(!(le=$!=null&&oe($,pe)))break;$=$[pe]}return le||++ae!=ie?le:(ie=$==null?0:$.length,!!ie&&isLength(ie)&&isIndex(pe,ie)&&(isArray$b($)||isArguments$1($)))}function hasIn($,z){return $!=null&&hasPath($,z,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty($,z){return isKey($)&&isStrictComparable(z)?matchesStrictComparable(toKey($),z):function(oe){var ae=get$1(oe,$);return ae===void 0&&ae===z?hasIn(oe,$):baseIsEqual(z,ae,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty($){return function(z){return z==null?void 0:z[$]}}function basePropertyDeep($){return function(z){return baseGet(z,$)}}function property($){return isKey($)?baseProperty(toKey($)):basePropertyDeep($)}function baseIteratee($){return typeof $=="function"?$:$==null?identity$1:typeof $=="object"?isArray$b($)?baseMatchesProperty($[0],$[1]):baseMatches($):property($)}function createBaseFor($){return function(z,oe,ae){for(var ie=-1,le=Object(z),pe=ae(z),_e=pe.length;_e--;){var Ce=pe[$?_e:++ie];if(oe(le[Ce],Ce,le)===!1)break}return z}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseForOwn($,z){return $&&baseFor$1($,z,keys$1)}function createBaseEach($,z){return function(oe,ae){if(oe==null)return oe;if(!isArrayLike$1(oe))return $(oe,ae);for(var ie=oe.length,le=z?ie:-1,pe=Object(oe);(z?le--:++le<ie)&&ae(pe[le],le,pe)!==!1;);return oe}}var baseEach=createBaseEach(baseForOwn);const baseEach$1=baseEach;var now=function(){return root$1.Date.now()};const now$1=now;var FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce($,z,oe){var ae,ie,le,pe,_e,Ce,$e=0,xe=!1,Ie=!1,Ne=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT$1);z=toNumber(z)||0,isObject$7(oe)&&(xe=!!oe.leading,Ie="maxWait"in oe,le=Ie?nativeMax(toNumber(oe.maxWait)||0,z):le,Ne="trailing"in oe?!!oe.trailing:Ne);function Fe(En){var $n=ae,wn=ie;return ae=ie=void 0,$e=En,pe=$.apply(wn,$n),pe}function ze(En){return $e=En,_e=setTimeout(hn,z),xe?Fe(En):pe}function At(En){var $n=En-Ce,wn=En-$e,Tn=z-$n;return Ie?nativeMin(Tn,le-wn):Tn}function Lt(En){var $n=En-Ce,wn=En-$e;return Ce===void 0||$n>=z||$n<0||Ie&&wn>=le}function hn(){var En=now$1();if(Lt(En))return vn(En);_e=setTimeout(hn,At(En))}function vn(En){return _e=void 0,Ne&&ae?Fe(En):(ae=ie=void 0,pe)}function _n(){_e!==void 0&&clearTimeout(_e),$e=0,ae=Ce=ie=_e=void 0}function bn(){return _e===void 0?pe:vn(now$1())}function Cn(){var En=now$1(),$n=Lt(En);if(ae=arguments,ie=this,Ce=En,$n){if(_e===void 0)return ze(Ce);if(Ie)return clearTimeout(_e),_e=setTimeout(hn,z),Fe(Ce)}return _e===void 0&&(_e=setTimeout(hn,z)),pe}return Cn.cancel=_n,Cn.flush=bn,Cn}function assignMergeValue($,z,oe){(oe!==void 0&&!eq($[z],oe)||oe===void 0&&!(z in $))&&baseAssignValue($,z,oe)}function isArrayLikeObject($){return isObjectLike($)&&isArrayLike$1($)}function safeGet($,z){if(!(z==="constructor"&&typeof $[z]=="function")&&z!="__proto__")return $[z]}function toPlainObject($){return copyObject($,keysIn($))}function baseMergeDeep($,z,oe,ae,ie,le,pe){var _e=safeGet($,oe),Ce=safeGet(z,oe),$e=pe.get(Ce);if($e){assignMergeValue($,oe,$e);return}var xe=le?le(_e,Ce,oe+"",$,z,pe):void 0,Ie=xe===void 0;if(Ie){var Ne=isArray$b(Ce),Fe=!Ne&&isBuffer$3(Ce),ze=!Ne&&!Fe&&isTypedArray$3(Ce);xe=Ce,Ne||Fe||ze?isArray$b(_e)?xe=_e:isArrayLikeObject(_e)?xe=copyArray(_e):Fe?(Ie=!1,xe=cloneBuffer(Ce,!0)):ze?(Ie=!1,xe=cloneTypedArray(Ce,!0)):xe=[]:isPlainObject$3(Ce)||isArguments$1(Ce)?(xe=_e,isArguments$1(_e)?xe=toPlainObject(_e):(!isObject$7(_e)||isFunction$3(_e))&&(xe=initCloneObject(Ce))):Ie=!1}Ie&&(pe.set(Ce,xe),ie(xe,Ce,ae,le,pe),pe.delete(Ce)),assignMergeValue($,oe,xe)}function baseMerge($,z,oe,ae,ie){$!==z&&baseFor$1(z,function(le,pe){if(ie||(ie=new Stack),isObject$7(le))baseMergeDeep($,z,pe,oe,baseMerge,ae,ie);else{var _e=ae?ae(safeGet($,pe),le,pe+"",$,z,ie):void 0;_e===void 0&&(_e=le),assignMergeValue($,pe,_e)}},keysIn)}function arrayIncludesWith($,z,oe){for(var ae=-1,ie=$==null?0:$.length;++ae<ie;)if(oe(z,$[ae]))return!0;return!1}function baseMap($,z){var oe=-1,ae=isArrayLike$1($)?Array($.length):[];return baseEach$1($,function(ie,le,pe){ae[++oe]=z(ie,le,pe)}),ae}function map$3($,z){var oe=isArray$b($)?arrayMap:baseMap;return oe($,baseIteratee(z))}function flatMap($,z){return baseFlatten(map$3($,z),1)}var INFINITY$1=1/0;function flattenDeep($){var z=$==null?0:$.length;return z?baseFlatten($,INFINITY$1):[]}function fromPairs($){for(var z=-1,oe=$==null?0:$.length,ae={};++z<oe;){var ie=$[z];ae[ie[0]]=ie[1]}return ae}function isEqual$1($,z){return baseIsEqual($,z)}function isNil($){return $==null}function isUndefined$2($){return $===void 0}var merge$3=createAssigner(function($,z,oe){baseMerge($,z,oe)});const merge$4=merge$3;function baseSet($,z,oe,ae){if(!isObject$7($))return $;z=castPath(z,$);for(var ie=-1,le=z.length,pe=le-1,_e=$;_e!=null&&++ie<le;){var Ce=toKey(z[ie]),$e=oe;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return $;if(ie!=pe){var xe=_e[Ce];$e=ae?ae(xe,Ce,_e):void 0,$e===void 0&&($e=isObject$7(xe)?xe:isIndex(z[ie+1])?[]:{})}assignValue(_e,Ce,$e),_e=_e[Ce]}return $}function basePickBy($,z,oe){for(var ae=-1,ie=z.length,le={};++ae<ie;){var pe=z[ae],_e=baseGet($,pe);oe(_e,pe)&&baseSet(le,castPath(pe,$),_e)}return le}function basePick($,z){return basePickBy($,z,function(oe,ae){return hasIn($,ae)})}var pick=flatRest(function($,z){return $==null?{}:basePick($,z)});const pick$1=pick;function set$2($,z,oe){return $==null?$:baseSet($,z,oe)}var FUNC_ERROR_TEXT="Expected a function";function throttle$1($,z,oe){var ae=!0,ie=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$7(oe)&&(ae="leading"in oe?!!oe.leading:ae,ie="trailing"in oe?!!oe.trailing:ie),debounce($,z,{leading:ae,maxWait:z,trailing:ie})}var INFINITY=1/0,createSet=Set$2&&1/setToArray(new Set$2([,-0]))[1]==INFINITY?function($){return new Set$2($)}:noop$6;const createSet$1=createSet;var LARGE_ARRAY_SIZE=200;function baseUniq($,z,oe){var ae=-1,ie=arrayIncludes,le=$.length,pe=!0,_e=[],Ce=_e;if(oe)pe=!1,ie=arrayIncludesWith;else if(le>=LARGE_ARRAY_SIZE){var $e=z?null:createSet$1($);if($e)return setToArray($e);pe=!1,ie=cacheHas,Ce=new SetCache}else Ce=z?[]:_e;e:for(;++ae<le;){var xe=$[ae],Ie=z?z(xe):xe;if(xe=oe||xe!==0?xe:0,pe&&Ie===Ie){for(var Ne=Ce.length;Ne--;)if(Ce[Ne]===Ie)continue e;z&&Ce.push(Ie),_e.push(xe)}else ie(Ce,Ie,oe)||(Ce!==_e&&Ce.push(Ie),_e.push(xe))}return _e}var union=baseRest(function($){return baseUniq(baseFlatten($,1,isArrayLikeObject,!0))});const union$1=union,isUndefined$1=$=>$===void 0,isBoolean$3=$=>typeof $=="boolean",isNumber$5=$=>typeof $=="number",isEmpty=$=>!$&&$!==0||isArray$c($)&&$.length===0||isObject$8($)&&!Object.keys($).length,isElement$2=$=>typeof Element>"u"?!1:$ instanceof Element,isPropAbsent=$=>isNil($),isStringNumber=$=>isString$7($)?!Number.isNaN(Number($)):!1,escapeStringRegexp=($="")=>$.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize$1=$=>capitalize$2($),keysOf=$=>Object.keys($),entriesOf=$=>Object.entries($),getProp=($,z,oe)=>({get value(){return get$1($,z,oe)},set value(ae){set$2($,z,ae)}});class ElementPlusError extends Error{constructor(z){super(z),this.name="ElementPlusError"}}function throwError$1($,z){throw new ElementPlusError(`[${$}] ${z}`)}function debugWarn($,z){}const classNameToArray=($="")=>$.split(" ").filter(z=>!!z.trim()),hasClass=($,z)=>{if(!$||!z)return!1;if(z.includes(" "))throw new Error("className should not contain space.");return $.classList.contains(z)},addClass=($,z)=>{!$||!z.trim()||$.classList.add(...classNameToArray(z))},removeClass=($,z)=>{!$||!z.trim()||$.classList.remove(...classNameToArray(z))},getStyle$1=($,z)=>{var oe;if(!isClient$2||!$||!z)return"";let ae=camelize(z);ae==="float"&&(ae="cssFloat");try{const ie=$.style[ae];if(ie)return ie;const le=(oe=document.defaultView)==null?void 0:oe.getComputedStyle($,"");return le?le[ae]:""}catch{return $.style[ae]}};function addUnit($,z="px"){if(!$)return"";if(isNumber$5($)||isStringNumber($))return`${$}${z}`;if(isString$7($))return $}const isScroll=($,z)=>{if(!isClient$2)return!1;const oe={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(z)],ae=getStyle$1($,oe);return["scroll","auto","overlay"].some(ie=>ae.includes(ie))},getScrollContainer=($,z)=>{if(!isClient$2)return;let oe=$;for(;oe;){if([window,document,document.documentElement].includes(oe))return window;if(isScroll(oe,z))return oe;oe=oe.parentNode}return oe};let scrollBarWidth;const getScrollBarWidth=$=>{var z;if(!isClient$2)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const oe=document.createElement("div");oe.className=`${$}-scrollbar__wrap`,oe.style.visibility="hidden",oe.style.width="100px",oe.style.position="absolute",oe.style.top="-9999px",document.body.appendChild(oe);const ae=oe.offsetWidth;oe.style.overflow="scroll";const ie=document.createElement("div");ie.style.width="100%",oe.appendChild(ie);const le=ie.offsetWidth;return(z=oe.parentNode)==null||z.removeChild(oe),scrollBarWidth=ae-le,scrollBarWidth};function scrollIntoView($,z){if(!isClient$2)return;if(!z){$.scrollTop=0;return}const oe=[];let ae=z.offsetParent;for(;ae!==null&&$!==ae&&$.contains(ae);)oe.push(ae),ae=ae.offsetParent;const ie=z.offsetTop+oe.reduce((Ce,$e)=>Ce+$e.offsetTop,0),le=ie+z.offsetHeight,pe=$.scrollTop,_e=pe+$.clientHeight;ie<pe?$.scrollTop=ie:le>_e&&($.scrollTop=le-$.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=($,z)=>{let oe=$.__vccOpts||$;for(let[ae,ie]of z)oe[ae]=ie;return oe},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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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($,z,oe,ae,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=$=>$,isEpProp=$=>isObject$8($)&&!!$[epPropKey],buildProp=($,z)=>{if(!isObject$8($)||isEpProp($))return $;const{values:oe,required:ae,default:ie,type:le,validator:pe}=$,Ce={type:le,required:!!ae,validator:oe||pe?$e=>{let xe=!1,Ie=[];if(oe&&(Ie=Array.from(oe),hasOwn$4($,"default")&&Ie.push(ie),xe||(xe=Ie.includes($e))),pe&&(xe||(xe=pe($e))),!xe&&Ie.length>0){const Ne=[...new Set(Ie)].map(Fe=>JSON.stringify(Fe)).join(", ");warn$2(`Invalid prop: validation failed${z?` for prop "${z}"`:""}. Expected one of [${Ne}], got value ${JSON.stringify($e)}.`)}return xe}:void 0,[epPropKey]:!0};return hasOwn$4($,"default")&&(Ce.default=ie),Ce},buildProps=$=>fromPairs(Object.entries($).map(([z,oe])=>[z,buildProp(oe,z)])),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=($,z)=>{if($.install=oe=>{for(const ae of[$,...Object.values(z??{})])oe.component(ae.name,ae)},z)for(const[oe,ae]of Object.entries(z))$[oe]=ae;return $},withInstallFunction=($,z)=>($.install=oe=>{$._context=oe._context,oe.config.globalProperties[z]=$},$),withInstallDirective=($,z)=>($.install=oe=>{oe.directive(z,$)},$),withNoopInstall=$=>($.install=NOOP,$),composeRefs=(...$)=>z=>{$.forEach(oe=>{isFunction$5(oe)?oe(z):oe.value=z})},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=$=>componentSizeMap[$||"default"],isValidComponentSize=$=>["",...componentSizes].includes($);var PatchFlags=($=>($[$.TEXT=1]="TEXT",$[$.CLASS=2]="CLASS",$[$.STYLE=4]="STYLE",$[$.PROPS=8]="PROPS",$[$.FULL_PROPS=16]="FULL_PROPS",$[$.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",$[$.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",$[$.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",$[$.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",$[$.NEED_PATCH=512]="NEED_PATCH",$[$.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",$[$.HOISTED=-1]="HOISTED",$[$.BAIL=-2]="BAIL",$))(PatchFlags||{});function isFragment($){return isVNode$1($)&&$.type===Fragment}function isComment($){return isVNode$1($)&&$.type===Comment}function isValidElementNode($){return isVNode$1($)&&!isFragment($)&&!isComment($)}const getNormalizedProps=$=>{if(!isVNode$1($))return{};const z=$.props||{},oe=(isVNode$1($.type)?$.type.props:void 0)||{},ae={};return Object.keys(oe).forEach(ie=>{hasOwn$4(oe[ie],"default")&&(ae[ie]=oe[ie].default)}),Object.keys(z).forEach(ie=>{ae[camelize(ie)]=z[ie]}),ae},ensureOnlyChild=$=>{if(!isArray$c($)||$.length>1)throw new Error("expect to receive a single Vue element child");return $[0]},flattedChildren=$=>{const z=isArray$c($)?$:[$],oe=[];return z.forEach(ae=>{var ie;isArray$c(ae)?oe.push(...flattedChildren(ae)):isVNode$1(ae)&&isArray$c(ae.children)?oe.push(...flattedChildren(ae.children)):(oe.push(ae),isVNode$1(ae)&&((ie=ae.component)!=null&&ie.subTree)&&oe.push(...flattedChildren(ae.component.subTree)))}),oe},unique=$=>[...new Set($)],castArray=$=>!$&&$!==0?[]:Array.isArray($)?$:[$],isKorean=$=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test($),rAF=$=>isClient$2?window.requestAnimationFrame($):setTimeout($,16),cAF=$=>isClient$2?window.cancelAnimationFrame($):clearTimeout($),generateId=()=>Math.floor(Math.random()*1e4),mutable=$=>$,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=($={})=>{const{excludeListeners:z=!1,excludeKeys:oe}=$,ae=computed(()=>((oe==null?void 0:oe.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(([pe])=>!ae.value.includes(pe)&&!(z&&LISTENER_PREFIX.test(pe))))}:()=>({}))},useDeprecated=({from:$,replacement:z,scope:oe,version:ae,ref:ie,type:le="API"},pe)=>{watch(()=>unref(pe),_e=>{},{immediate:!0})},useDraggable=($,z,oe)=>{let ae={offsetX:0,offsetY:0};const ie=_e=>{const Ce=_e.clientX,$e=_e.clientY,{offsetX:xe,offsetY:Ie}=ae,Ne=$.value.getBoundingClientRect(),Fe=Ne.left,ze=Ne.top,At=Ne.width,Lt=Ne.height,hn=document.documentElement.clientWidth,vn=document.documentElement.clientHeight,_n=-Fe+xe,bn=-ze+Ie,Cn=hn-Fe-At+xe,En=vn-ze-Lt+Ie,$n=Tn=>{const xn=Math.min(Math.max(xe+Tn.clientX-Ce,_n),Cn),kn=Math.min(Math.max(Ie+Tn.clientY-$e,bn),En);ae={offsetX:xn,offsetY:kn},$.value.style.transform=`translate(${addUnit(xn)}, ${addUnit(kn)})`},wn=()=>{document.removeEventListener("mousemove",$n),document.removeEventListener("mouseup",wn)};document.addEventListener("mousemove",$n),document.addEventListener("mouseup",wn)},le=()=>{z.value&&$.value&&z.value.addEventListener("mousedown",ie)},pe=()=>{z.value&&$.value&&z.value.removeEventListener("mousedown",ie)};onMounted(()=>{watchEffect(()=>{oe.value?le():pe()})}),onBeforeUnmount(()=>{pe()})},useFocus=$=>({focus:()=>{var z,oe;(oe=(z=$.value)==null?void 0:z.focus)==null||oe.call(z)}});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=$=>(z,oe)=>translate$2(z,oe,unref($)),translate$2=($,z,oe)=>get$1(oe,$,$).replace(/\{(\w+)\}/g,(ae,ie)=>{var le;return`${(le=z==null?void 0:z[ie])!=null?le:`{${ie}}`}`}),buildLocaleContext=$=>{const z=computed(()=>unref($).name),oe=isRef($)?$:ref($);return{lang:z,locale:oe,t:buildTranslator($)}},localeContextKey=Symbol("localeContextKey"),useLocale=$=>{const z=$||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>z.value||English))},defaultNamespace="el",statePrefix="is-",_bem=($,z,oe,ae,ie)=>{let le=`${$}-${z}`;return oe&&(le+=`-${oe}`),ae&&(le+=`__${ae}`),ie&&(le+=`--${ie}`),le},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=$=>{const z=$||inject(namespaceContextKey,ref(defaultNamespace));return computed(()=>unref(z)||defaultNamespace)},useNamespace=($,z)=>{const oe=useGetDerivedNamespace(z);return{namespace:oe,b:(At="")=>_bem(oe.value,$,At,"",""),e:At=>At?_bem(oe.value,$,"",At,""):"",m:At=>At?_bem(oe.value,$,"","",At):"",be:(At,Lt)=>At&&Lt?_bem(oe.value,$,At,Lt,""):"",em:(At,Lt)=>At&&Lt?_bem(oe.value,$,"",At,Lt):"",bm:(At,Lt)=>At&&Lt?_bem(oe.value,$,At,"",Lt):"",bem:(At,Lt,hn)=>At&&Lt&&hn?_bem(oe.value,$,At,Lt,hn):"",is:(At,...Lt)=>{const hn=Lt.length>=1?Lt[0]:!0;return At&&hn?`${statePrefix}${At}`:""},cssVar:At=>{const Lt={};for(const hn in At)At[hn]&&(Lt[`--${oe.value}-${hn}`]=At[hn]);return Lt},cssVarName:At=>`--${oe.value}-${At}`,cssVarBlock:At=>{const Lt={};for(const hn in At)At[hn]&&(Lt[`--${oe.value}-${$}-${hn}`]=At[hn]);return Lt},cssVarBlockName:At=>`--${oe.value}-${$}-${At}`}},useLockscreen=($,z={})=>{isRef($)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const oe=z.ns||useNamespace("popup"),ae=computed$1(()=>oe.bm("parent","hidden"));if(!isClient$2||hasClass(document.body,ae.value))return;let ie=0,le=!1,pe="0";const _e=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,ae.value),le&&document&&(document.body.style.width=pe)},200)};watch($,Ce=>{if(!Ce){_e();return}le=!hasClass(document.body,ae.value),le&&(pe=document.body.style.width),ie=getScrollBarWidth(oe.namespace.value);const $e=document.documentElement.clientHeight<document.body.scrollHeight,xe=getStyle$1(document.body,"overflowY");ie>0&&($e||xe==="scroll")&&le&&(document.body.style.width=`calc(100% - ${ie}px)`),addClass(document.body,ae.value)}),onScopeDispose(()=>_e())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=$=>{const z=`update:${$}`,oe=`onUpdate:${$}`,ae=[z],ie={[$]:_prop,[oe]:_event};return{useModelToggle:({indicator:pe,toggleReason:_e,shouldHideWhenRouteChanges:Ce,shouldProceed:$e,onShow:xe,onHide:Ie})=>{const Ne=getCurrentInstance(),{emit:Fe}=Ne,ze=Ne.props,At=computed(()=>isFunction$5(ze[oe])),Lt=computed(()=>ze[$]===null),hn=$n=>{pe.value!==!0&&(pe.value=!0,_e&&(_e.value=$n),isFunction$5(xe)&&xe($n))},vn=$n=>{pe.value!==!1&&(pe.value=!1,_e&&(_e.value=$n),isFunction$5(Ie)&&Ie($n))},_n=$n=>{if(ze.disabled===!0||isFunction$5($e)&&!$e())return;const wn=At.value&&isClient$2;wn&&Fe(z,!0),(Lt.value||!wn)&&hn($n)},bn=$n=>{if(ze.disabled===!0||!isClient$2)return;const wn=At.value&&isClient$2;wn&&Fe(z,!1),(Lt.value||!wn)&&vn($n)},Cn=$n=>{isBoolean$3($n)&&(ze.disabled&&$n?At.value&&Fe(z,!1):pe.value!==$n&&($n?hn():vn()))},En=()=>{pe.value?bn():_n()};return watch(()=>ze[$],Cn),Ce&&Ne.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...Ne.proxy.$route}),()=>{Ce.value&&pe.value&&bn()}),onMounted(()=>{Cn(ze[$])}),{hide:bn,show:_n,toggle:En,hasUpdateHandler:At}},useModelToggleProps:ie,useModelToggleEmits:ae}};createModelToggleComposable("modelValue");const useProp=$=>{const z=getCurrentInstance();return computed(()=>{var oe,ae;return(ae=(oe=z==null?void 0:z.proxy)==null?void 0:oe.$props)==null?void 0:ae[$]})};var E$2="top",R$1="bottom",W$1="right",P$4="left",me$1="auto",G$1=[E$2,R$1,W$1,P$4],U$2="start",J$2="end",Xe$1="clippingParents",je="viewport",K$2="popper",Ye="reference",De=G$1.reduce(function($,z){return $.concat([z+"-"+U$2,z+"-"+J$2])},[]),Ee=[].concat(G$1,[me$1]).reduce(function($,z){return $.concat([z,z+"-"+U$2,z+"-"+J$2])},[]),Ge="beforeRead",Je$1="read",Ke$1="afterRead",Qe="beforeMain",Ze="main",et$1="afterMain",tt$1="beforeWrite",nt="write",rt$2="afterWrite",ot$1=[Ge,Je$1,Ke$1,Qe,Ze,et$1,tt$1,nt,rt$2];function C$1($){return $?($.nodeName||"").toLowerCase():null}function H$3($){if($==null)return window;if($.toString()!=="[object Window]"){var z=$.ownerDocument;return z&&z.defaultView||window}return $}function Q$1($){var z=H$3($).Element;return $ instanceof z||$ instanceof Element}function B($){var z=H$3($).HTMLElement;return $ instanceof z||$ instanceof HTMLElement}function Pe($){if(typeof ShadowRoot>"u")return!1;var z=H$3($).ShadowRoot;return $ instanceof z||$ instanceof ShadowRoot}function Mt$1($){var z=$.state;Object.keys(z.elements).forEach(function(oe){var ae=z.styles[oe]||{},ie=z.attributes[oe]||{},le=z.elements[oe];!B(le)||!C$1(le)||(Object.assign(le.style,ae),Object.keys(ie).forEach(function(pe){var _e=ie[pe];_e===!1?le.removeAttribute(pe):le.setAttribute(pe,_e===!0?"":_e)}))})}function Rt$1($){var z=$.state,oe={popper:{position:z.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(z.elements.popper.style,oe.popper),z.styles=oe,z.elements.arrow&&Object.assign(z.elements.arrow.style,oe.arrow),function(){Object.keys(z.elements).forEach(function(ae){var ie=z.elements[ae],le=z.attributes[ae]||{},pe=Object.keys(z.styles.hasOwnProperty(ae)?z.styles[ae]:oe[ae]),_e=pe.reduce(function(Ce,$e){return Ce[$e]="",Ce},{});!B(ie)||!C$1(ie)||(Object.assign(ie.style,_e),Object.keys(le).forEach(function(Ce){ie.removeAttribute(Ce)}))})}}var Ae$1={name:"applyStyles",enabled:!0,phase:"write",fn:Mt$1,effect:Rt$1,requires:["computeStyles"]};function q$1($){return $.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee$1($,z){z===void 0&&(z=!1);var oe=$.getBoundingClientRect(),ae=1,ie=1;if(B($)&&z){var le=$.offsetHeight,pe=$.offsetWidth;pe>0&&(ae=Z(oe.width)/pe||1),le>0&&(ie=Z(oe.height)/le||1)}return{width:oe.width/ae,height:oe.height/ie,top:oe.top/ie,right:oe.right/ae,bottom:oe.bottom/ie,left:oe.left/ae,x:oe.left/ae,y:oe.top/ie}}function ke($){var z=ee$1($),oe=$.offsetWidth,ae=$.offsetHeight;return Math.abs(z.width-oe)<=1&&(oe=z.width),Math.abs(z.height-ae)<=1&&(ae=z.height),{x:$.offsetLeft,y:$.offsetTop,width:oe,height:ae}}function it$1($,z){var oe=z.getRootNode&&z.getRootNode();if($.contains(z))return!0;if(oe&&Pe(oe)){var ae=z;do{if(ae&&$.isSameNode(ae))return!0;ae=ae.parentNode||ae.host}while(ae)}return!1}function N$2($){return H$3($).getComputedStyle($)}function Wt$1($){return["table","td","th"].indexOf(C$1($))>=0}function I$2($){return((Q$1($)?$.ownerDocument:$.document)||window.document).documentElement}function ge$1($){return C$1($)==="html"?$:$.assignedSlot||$.parentNode||(Pe($)?$.host:null)||I$2($)}function at$1($){return!B($)||N$2($).position==="fixed"?null:$.offsetParent}function Bt$1($){var z=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,oe=navigator.userAgent.indexOf("Trident")!==-1;if(oe&&B($)){var ae=N$2($);if(ae.position==="fixed")return null}var ie=ge$1($);for(Pe(ie)&&(ie=ie.host);B(ie)&&["html","body"].indexOf(C$1(ie))<0;){var le=N$2(ie);if(le.transform!=="none"||le.perspective!=="none"||le.contain==="paint"||["transform","perspective"].indexOf(le.willChange)!==-1||z&&le.willChange==="filter"||z&&le.filter&&le.filter!=="none")return ie;ie=ie.parentNode}return null}function se$1($){for(var z=H$3($),oe=at$1($);oe&&Wt$1(oe)&&N$2(oe).position==="static";)oe=at$1(oe);return oe&&(C$1(oe)==="html"||C$1(oe)==="body"&&N$2(oe).position==="static")?z:oe||Bt$1($)||z}function Le($){return["top","bottom"].indexOf($)>=0?"x":"y"}function fe$1($,z,oe){return X$1($,ve(z,oe))}function St($,z,oe){var ae=fe$1($,z,oe);return ae>oe?oe:ae}function st(){return{top:0,right:0,bottom:0,left:0}}function ft$1($){return Object.assign({},st(),$)}function ct($,z){return z.reduce(function(oe,ae){return oe[ae]=$,oe},{})}var Tt$1=function($,z){return $=typeof $=="function"?$(Object.assign({},z.rects,{placement:z.placement})):$,ft$1(typeof $!="number"?$:ct($,G$1))};function Ht$1($){var z,oe=$.state,ae=$.name,ie=$.options,le=oe.elements.arrow,pe=oe.modifiersData.popperOffsets,_e=q$1(oe.placement),Ce=Le(_e),$e=[P$4,W$1].indexOf(_e)>=0,xe=$e?"height":"width";if(!(!le||!pe)){var Ie=Tt$1(ie.padding,oe),Ne=ke(le),Fe=Ce==="y"?E$2:P$4,ze=Ce==="y"?R$1:W$1,At=oe.rects.reference[xe]+oe.rects.reference[Ce]-pe[Ce]-oe.rects.popper[xe],Lt=pe[Ce]-oe.rects.reference[Ce],hn=se$1(le),vn=hn?Ce==="y"?hn.clientHeight||0:hn.clientWidth||0:0,_n=At/2-Lt/2,bn=Ie[Fe],Cn=vn-Ne[xe]-Ie[ze],En=vn/2-Ne[xe]/2+_n,$n=fe$1(bn,En,Cn),wn=Ce;oe.modifiersData[ae]=(z={},z[wn]=$n,z.centerOffset=$n-En,z)}}function Ct$1($){var z=$.state,oe=$.options,ae=oe.element,ie=ae===void 0?"[data-popper-arrow]":ae;ie!=null&&(typeof ie=="string"&&(ie=z.elements.popper.querySelector(ie),!ie)||!it$1(z.elements.popper,ie)||(z.elements.arrow=ie))}var pt$1={name:"arrow",enabled:!0,phase:"main",fn:Ht$1,effect:Ct$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te($){return $.split("-")[1]}var qt$1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt($){var z=$.x,oe=$.y,ae=window,ie=ae.devicePixelRatio||1;return{x:Z(z*ie)/ie||0,y:Z(oe*ie)/ie||0}}function ut$1($){var z,oe=$.popper,ae=$.popperRect,ie=$.placement,le=$.variation,pe=$.offsets,_e=$.position,Ce=$.gpuAcceleration,$e=$.adaptive,xe=$.roundOffsets,Ie=$.isFixed,Ne=pe.x,Fe=Ne===void 0?0:Ne,ze=pe.y,At=ze===void 0?0:ze,Lt=typeof xe=="function"?xe({x:Fe,y:At}):{x:Fe,y:At};Fe=Lt.x,At=Lt.y;var hn=pe.hasOwnProperty("x"),vn=pe.hasOwnProperty("y"),_n=P$4,bn=E$2,Cn=window;if($e){var En=se$1(oe),$n="clientHeight",wn="clientWidth";if(En===H$3(oe)&&(En=I$2(oe),N$2(En).position!=="static"&&_e==="absolute"&&($n="scrollHeight",wn="scrollWidth")),En=En,ie===E$2||(ie===P$4||ie===W$1)&&le===J$2){bn=R$1;var Tn=Ie&&En===Cn&&Cn.visualViewport?Cn.visualViewport.height:En[$n];At-=Tn-ae.height,At*=Ce?1:-1}if(ie===P$4||(ie===E$2||ie===R$1)&&le===J$2){_n=W$1;var xn=Ie&&En===Cn&&Cn.visualViewport?Cn.visualViewport.width:En[wn];Fe-=xn-ae.width,Fe*=Ce?1:-1}}var kn=Object.assign({position:_e},$e&&qt$1),An=xe===!0?Vt({x:Fe,y:At}):{x:Fe,y:At};if(Fe=An.x,At=An.y,Ce){var On;return Object.assign({},kn,(On={},On[bn]=vn?"0":"",On[_n]=hn?"0":"",On.transform=(Cn.devicePixelRatio||1)<=1?"translate("+Fe+"px, "+At+"px)":"translate3d("+Fe+"px, "+At+"px, 0)",On))}return Object.assign({},kn,(z={},z[bn]=vn?At+"px":"",z[_n]=hn?Fe+"px":"",z.transform="",z))}function Nt$1($){var z=$.state,oe=$.options,ae=oe.gpuAcceleration,ie=ae===void 0?!0:ae,le=oe.adaptive,pe=le===void 0?!0:le,_e=oe.roundOffsets,Ce=_e===void 0?!0:_e,$e={placement:q$1(z.placement),variation:te(z.placement),popper:z.elements.popper,popperRect:z.rects.popper,gpuAcceleration:ie,isFixed:z.options.strategy==="fixed"};z.modifiersData.popperOffsets!=null&&(z.styles.popper=Object.assign({},z.styles.popper,ut$1(Object.assign({},$e,{offsets:z.modifiersData.popperOffsets,position:z.options.strategy,adaptive:pe,roundOffsets:Ce})))),z.modifiersData.arrow!=null&&(z.styles.arrow=Object.assign({},z.styles.arrow,ut$1(Object.assign({},$e,{offsets:z.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ce})))),z.attributes.popper=Object.assign({},z.attributes.popper,{"data-popper-placement":z.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt$1,data:{}},ye$1={passive:!0};function It$1($){var z=$.state,oe=$.instance,ae=$.options,ie=ae.scroll,le=ie===void 0?!0:ie,pe=ae.resize,_e=pe===void 0?!0:pe,Ce=H$3(z.elements.popper),$e=[].concat(z.scrollParents.reference,z.scrollParents.popper);return le&&$e.forEach(function(xe){xe.addEventListener("scroll",oe.update,ye$1)}),_e&&Ce.addEventListener("resize",oe.update,ye$1),function(){le&&$e.forEach(function(xe){xe.removeEventListener("scroll",oe.update,ye$1)}),_e&&Ce.removeEventListener("resize",oe.update,ye$1)}}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$1($){return $.replace(/left|right|bottom|top/g,function(z){return _t$1[z]})}var zt$1={start:"end",end:"start"};function lt$2($){return $.replace(/start|end/g,function(z){return zt$1[z]})}function We($){var z=H$3($),oe=z.pageXOffset,ae=z.pageYOffset;return{scrollLeft:oe,scrollTop:ae}}function Be$1($){return ee$1(I$2($)).left+We($).scrollLeft}function Ft($){var z=H$3($),oe=I$2($),ae=z.visualViewport,ie=oe.clientWidth,le=oe.clientHeight,pe=0,_e=0;return ae&&(ie=ae.width,le=ae.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(pe=ae.offsetLeft,_e=ae.offsetTop)),{width:ie,height:le,x:pe+Be$1($),y:_e}}function Ut$1($){var z,oe=I$2($),ae=We($),ie=(z=$.ownerDocument)==null?void 0:z.body,le=X$1(oe.scrollWidth,oe.clientWidth,ie?ie.scrollWidth:0,ie?ie.clientWidth:0),pe=X$1(oe.scrollHeight,oe.clientHeight,ie?ie.scrollHeight:0,ie?ie.clientHeight:0),_e=-ae.scrollLeft+Be$1($),Ce=-ae.scrollTop;return N$2(ie||oe).direction==="rtl"&&(_e+=X$1(oe.clientWidth,ie?ie.clientWidth:0)-le),{width:le,height:pe,x:_e,y:Ce}}function Se$1($){var z=N$2($),oe=z.overflow,ae=z.overflowX,ie=z.overflowY;return/auto|scroll|overlay|hidden/.test(oe+ie+ae)}function dt$1($){return["html","body","#document"].indexOf(C$1($))>=0?$.ownerDocument.body:B($)&&Se$1($)?$:dt$1(ge$1($))}function ce$1($,z){var oe;z===void 0&&(z=[]);var ae=dt$1($),ie=ae===((oe=$.ownerDocument)==null?void 0:oe.body),le=H$3(ae),pe=ie?[le].concat(le.visualViewport||[],Se$1(ae)?ae:[]):ae,_e=z.concat(pe);return ie?_e:_e.concat(ce$1(ge$1(pe)))}function Te($){return Object.assign({},$,{left:$.x,top:$.y,right:$.x+$.width,bottom:$.y+$.height})}function Xt$1($){var z=ee$1($);return z.top=z.top+$.clientTop,z.left=z.left+$.clientLeft,z.bottom=z.top+$.clientHeight,z.right=z.left+$.clientWidth,z.width=$.clientWidth,z.height=$.clientHeight,z.x=z.left,z.y=z.top,z}function ht($,z){return z===je?Te(Ft($)):Q$1(z)?Xt$1(z):Te(Ut$1(I$2($)))}function Yt($){var z=ce$1(ge$1($)),oe=["absolute","fixed"].indexOf(N$2($).position)>=0,ae=oe&&B($)?se$1($):$;return Q$1(ae)?z.filter(function(ie){return Q$1(ie)&&it$1(ie,ae)&&C$1(ie)!=="body"}):[]}function Gt($,z,oe){var ae=z==="clippingParents"?Yt($):[].concat(z),ie=[].concat(ae,[oe]),le=ie[0],pe=ie.reduce(function(_e,Ce){var $e=ht($,Ce);return _e.top=X$1($e.top,_e.top),_e.right=ve($e.right,_e.right),_e.bottom=ve($e.bottom,_e.bottom),_e.left=X$1($e.left,_e.left),_e},ht($,le));return pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top,pe.x=pe.left,pe.y=pe.top,pe}function mt($){var z=$.reference,oe=$.element,ae=$.placement,ie=ae?q$1(ae):null,le=ae?te(ae):null,pe=z.x+z.width/2-oe.width/2,_e=z.y+z.height/2-oe.height/2,Ce;switch(ie){case E$2:Ce={x:pe,y:z.y-oe.height};break;case R$1:Ce={x:pe,y:z.y+z.height};break;case W$1:Ce={x:z.x+z.width,y:_e};break;case P$4:Ce={x:z.x-oe.width,y:_e};break;default:Ce={x:z.x,y:z.y}}var $e=ie?Le(ie):null;if($e!=null){var xe=$e==="y"?"height":"width";switch(le){case U$2:Ce[$e]=Ce[$e]-(z[xe]/2-oe[xe]/2);break;case J$2:Ce[$e]=Ce[$e]+(z[xe]/2-oe[xe]/2);break}}return Ce}function ne$1($,z){z===void 0&&(z={});var oe=z,ae=oe.placement,ie=ae===void 0?$.placement:ae,le=oe.boundary,pe=le===void 0?Xe$1:le,_e=oe.rootBoundary,Ce=_e===void 0?je:_e,$e=oe.elementContext,xe=$e===void 0?K$2:$e,Ie=oe.altBoundary,Ne=Ie===void 0?!1:Ie,Fe=oe.padding,ze=Fe===void 0?0:Fe,At=ft$1(typeof ze!="number"?ze:ct(ze,G$1)),Lt=xe===K$2?Ye:K$2,hn=$.rects.popper,vn=$.elements[Ne?Lt:xe],_n=Gt(Q$1(vn)?vn:vn.contextElement||I$2($.elements.popper),pe,Ce),bn=ee$1($.elements.reference),Cn=mt({reference:bn,element:hn,strategy:"absolute",placement:ie}),En=Te(Object.assign({},hn,Cn)),$n=xe===K$2?En:bn,wn={top:_n.top-$n.top+At.top,bottom:$n.bottom-_n.bottom+At.bottom,left:_n.left-$n.left+At.left,right:$n.right-_n.right+At.right},Tn=$.modifiersData.offset;if(xe===K$2&&Tn){var xn=Tn[ie];Object.keys(wn).forEach(function(kn){var An=[W$1,R$1].indexOf(kn)>=0?1:-1,On=[E$2,R$1].indexOf(kn)>=0?"y":"x";wn[kn]+=xn[On]*An})}return wn}function Jt($,z){z===void 0&&(z={});var oe=z,ae=oe.placement,ie=oe.boundary,le=oe.rootBoundary,pe=oe.padding,_e=oe.flipVariations,Ce=oe.allowedAutoPlacements,$e=Ce===void 0?Ee:Ce,xe=te(ae),Ie=xe?_e?De:De.filter(function(ze){return te(ze)===xe}):G$1,Ne=Ie.filter(function(ze){return $e.indexOf(ze)>=0});Ne.length===0&&(Ne=Ie);var Fe=Ne.reduce(function(ze,At){return ze[At]=ne$1($,{placement:At,boundary:ie,rootBoundary:le,padding:pe})[q$1(At)],ze},{});return Object.keys(Fe).sort(function(ze,At){return Fe[ze]-Fe[At]})}function Kt($){if(q$1($)===me$1)return[];var z=be$1($);return[lt$2($),z,lt$2(z)]}function Qt($){var z=$.state,oe=$.options,ae=$.name;if(!z.modifiersData[ae]._skip){for(var ie=oe.mainAxis,le=ie===void 0?!0:ie,pe=oe.altAxis,_e=pe===void 0?!0:pe,Ce=oe.fallbackPlacements,$e=oe.padding,xe=oe.boundary,Ie=oe.rootBoundary,Ne=oe.altBoundary,Fe=oe.flipVariations,ze=Fe===void 0?!0:Fe,At=oe.allowedAutoPlacements,Lt=z.options.placement,hn=q$1(Lt),vn=hn===Lt,_n=Ce||(vn||!ze?[be$1(Lt)]:Kt(Lt)),bn=[Lt].concat(_n).reduce(function(lr,_r){return lr.concat(q$1(_r)===me$1?Jt(z,{placement:_r,boundary:xe,rootBoundary:Ie,padding:$e,flipVariations:ze,allowedAutoPlacements:At}):_r)},[]),Cn=z.rects.reference,En=z.rects.popper,$n=new Map,wn=!0,Tn=bn[0],xn=0;xn<bn.length;xn++){var kn=bn[xn],An=q$1(kn),On=te(kn)===U$2,Mn=[E$2,R$1].indexOf(An)>=0,Fn=Mn?"width":"height",Dn=ne$1(z,{placement:kn,boundary:xe,rootBoundary:Ie,altBoundary:Ne,padding:$e}),Nn=Mn?On?W$1:P$4:On?R$1:E$2;Cn[Fn]>En[Fn]&&(Nn=be$1(Nn));var Vn=be$1(Nn),Bn=[];if(le&&Bn.push(Dn[An]<=0),_e&&Bn.push(Dn[Nn]<=0,Dn[Vn]<=0),Bn.every(function(lr){return lr})){Tn=kn,wn=!1;break}$n.set(kn,Bn)}if(wn)for(var zn=ze?3:1,Xn=function(lr){var _r=bn.find(function(ir){var qn=$n.get(ir);if(qn)return qn.slice(0,lr).every(function(Yn){return Yn})});if(_r)return Tn=_r,"break"},Un=zn;Un>0;Un--){var Jn=Xn(Un);if(Jn==="break")break}z.placement!==Tn&&(z.modifiersData[ae]._skip=!0,z.placement=Tn,z.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt($,z,oe){return oe===void 0&&(oe={x:0,y:0}),{top:$.top-z.height-oe.y,right:$.right-z.width+oe.x,bottom:$.bottom-z.height+oe.y,left:$.left-z.width-oe.x}}function yt($){return[E$2,W$1,R$1,P$4].some(function(z){return $[z]>=0})}function Zt($){var z=$.state,oe=$.name,ae=z.rects.reference,ie=z.rects.popper,le=z.modifiersData.preventOverflow,pe=ne$1(z,{elementContext:"reference"}),_e=ne$1(z,{altBoundary:!0}),Ce=gt(pe,ae),$e=gt(_e,ie,le),xe=yt(Ce),Ie=yt($e);z.modifiersData[oe]={referenceClippingOffsets:Ce,popperEscapeOffsets:$e,isReferenceHidden:xe,hasPopperEscaped:Ie},z.attributes.popper=Object.assign({},z.attributes.popper,{"data-popper-reference-hidden":xe,"data-popper-escaped":Ie})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$1($,z,oe){var ae=q$1($),ie=[P$4,E$2].indexOf(ae)>=0?-1:1,le=typeof oe=="function"?oe(Object.assign({},z,{placement:$})):oe,pe=le[0],_e=le[1];return pe=pe||0,_e=(_e||0)*ie,[P$4,W$1].indexOf(ae)>=0?{x:_e,y:pe}:{x:pe,y:_e}}function tn$1($){var z=$.state,oe=$.options,ae=$.name,ie=oe.offset,le=ie===void 0?[0,0]:ie,pe=Ee.reduce(function(xe,Ie){return xe[Ie]=en$1(Ie,z.rects,le),xe},{}),_e=pe[z.placement],Ce=_e.x,$e=_e.y;z.modifiersData.popperOffsets!=null&&(z.modifiersData.popperOffsets.x+=Ce,z.modifiersData.popperOffsets.y+=$e),z.modifiersData[ae]=pe}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn$1};function nn($){var z=$.state,oe=$.name;z.modifiersData[oe]=mt({reference:z.rects.reference,element:z.rects.popper,strategy:"absolute",placement:z.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn($){return $==="x"?"y":"x"}function on($){var z=$.state,oe=$.options,ae=$.name,ie=oe.mainAxis,le=ie===void 0?!0:ie,pe=oe.altAxis,_e=pe===void 0?!1:pe,Ce=oe.boundary,$e=oe.rootBoundary,xe=oe.altBoundary,Ie=oe.padding,Ne=oe.tether,Fe=Ne===void 0?!0:Ne,ze=oe.tetherOffset,At=ze===void 0?0:ze,Lt=ne$1(z,{boundary:Ce,rootBoundary:$e,padding:Ie,altBoundary:xe}),hn=q$1(z.placement),vn=te(z.placement),_n=!vn,bn=Le(hn),Cn=rn(bn),En=z.modifiersData.popperOffsets,$n=z.rects.reference,wn=z.rects.popper,Tn=typeof At=="function"?At(Object.assign({},z.rects,{placement:z.placement})):At,xn=typeof Tn=="number"?{mainAxis:Tn,altAxis:Tn}:Object.assign({mainAxis:0,altAxis:0},Tn),kn=z.modifiersData.offset?z.modifiersData.offset[z.placement]:null,An={x:0,y:0};if(En){if(le){var On,Mn=bn==="y"?E$2:P$4,Fn=bn==="y"?R$1:W$1,Dn=bn==="y"?"height":"width",Nn=En[bn],Vn=Nn+Lt[Mn],Bn=Nn-Lt[Fn],zn=Fe?-wn[Dn]/2:0,Xn=vn===U$2?$n[Dn]:wn[Dn],Un=vn===U$2?-wn[Dn]:-$n[Dn],Jn=z.elements.arrow,lr=Fe&&Jn?ke(Jn):{width:0,height:0},_r=z.modifiersData["arrow#persistent"]?z.modifiersData["arrow#persistent"].padding:st(),ir=_r[Mn],qn=_r[Fn],Yn=fe$1(0,$n[Dn],lr[Dn]),Wn=_n?$n[Dn]/2-zn-Yn-ir-xn.mainAxis:Xn-Yn-ir-xn.mainAxis,tr=_n?-$n[Dn]/2+zn+Yn+qn+xn.mainAxis:Un+Yn+qn+xn.mainAxis,pr=z.elements.arrow&&se$1(z.elements.arrow),Gn=pr?bn==="y"?pr.clientTop||0:pr.clientLeft||0:0,Zn=(On=kn==null?void 0:kn[bn])!=null?On:0,rr=Nn+Wn-Zn-Gn,mr=Nn+tr-Zn,Sr=fe$1(Fe?ve(Vn,rr):Vn,Nn,Fe?X$1(Bn,mr):Bn);En[bn]=Sr,An[bn]=Sr-Nn}if(_e){var ar,xr=bn==="x"?E$2:P$4,gr=bn==="x"?R$1:W$1,Pr=En[Cn],dr=Cn==="y"?"height":"width",sr=Pr+Lt[xr],cr=Pr-Lt[gr],hr=[E$2,P$4].indexOf(hn)!==-1,Ar=(ar=kn==null?void 0:kn[Cn])!=null?ar:0,Dr=hr?sr:Pr-$n[dr]-wn[dr]-Ar+xn.altAxis,Lr=hr?Pr+$n[dr]+wn[dr]-Ar-xn.altAxis:cr,Mr=Fe&&hr?St(Dr,Pr,Lr):fe$1(Fe?Dr:sr,Pr,Fe?Lr:cr);En[Cn]=Mr,An[Cn]=Mr-Pr}z.modifiersData[ae]=An}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an($){return{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}}function sn($){return $===H$3($)||!B($)?We($):an($)}function fn($){var z=$.getBoundingClientRect(),oe=Z(z.width)/$.offsetWidth||1,ae=Z(z.height)/$.offsetHeight||1;return oe!==1||ae!==1}function cn($,z,oe){oe===void 0&&(oe=!1);var ae=B(z),ie=B(z)&&fn(z),le=I$2(z),pe=ee$1($,ie),_e={scrollLeft:0,scrollTop:0},Ce={x:0,y:0};return(ae||!ae&&!oe)&&((C$1(z)!=="body"||Se$1(le))&&(_e=sn(z)),B(z)?(Ce=ee$1(z,!0),Ce.x+=z.clientLeft,Ce.y+=z.clientTop):le&&(Ce.x=Be$1(le))),{x:pe.left+_e.scrollLeft-Ce.x,y:pe.top+_e.scrollTop-Ce.y,width:pe.width,height:pe.height}}function pn($){var z=new Map,oe=new Set,ae=[];$.forEach(function(le){z.set(le.name,le)});function ie(le){oe.add(le.name);var pe=[].concat(le.requires||[],le.requiresIfExists||[]);pe.forEach(function(_e){if(!oe.has(_e)){var Ce=z.get(_e);Ce&&ie(Ce)}}),ae.push(le)}return $.forEach(function(le){oe.has(le.name)||ie(le)}),ae}function un($){var z=pn($);return ot$1.reduce(function(oe,ae){return oe.concat(z.filter(function(ie){return ie.phase===ae}))},[])}function ln($){var z;return function(){return z||(z=new Promise(function(oe){Promise.resolve().then(function(){z=void 0,oe($())})})),z}}function dn($){var z=$.reduce(function(oe,ae){var ie=oe[ae.name];return oe[ae.name]=ie?Object.assign({},ie,ae,{options:Object.assign({},ie.options,ae.options),data:Object.assign({},ie.data,ae.data)}):ae,oe},{});return Object.keys(z).map(function(oe){return z[oe]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var $=arguments.length,z=new Array($),oe=0;oe<$;oe++)z[oe]=arguments[oe];return!z.some(function(ae){return!(ae&&typeof ae.getBoundingClientRect=="function")})}function we($){$===void 0&&($={});var z=$,oe=z.defaultModifiers,ae=oe===void 0?[]:oe,ie=z.defaultOptions,le=ie===void 0?Ot:ie;return function(pe,_e,Ce){Ce===void 0&&(Ce=le);var $e={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,le),modifiersData:{},elements:{reference:pe,popper:_e},attributes:{},styles:{}},xe=[],Ie=!1,Ne={state:$e,setOptions:function(At){var Lt=typeof At=="function"?At($e.options):At;ze(),$e.options=Object.assign({},le,$e.options,Lt),$e.scrollParents={reference:Q$1(pe)?ce$1(pe):pe.contextElement?ce$1(pe.contextElement):[],popper:ce$1(_e)};var hn=un(dn([].concat(ae,$e.options.modifiers)));return $e.orderedModifiers=hn.filter(function(vn){return vn.enabled}),Fe(),Ne.update()},forceUpdate:function(){if(!Ie){var At=$e.elements,Lt=At.reference,hn=At.popper;if($t$2(Lt,hn)){$e.rects={reference:cn(Lt,se$1(hn),$e.options.strategy==="fixed"),popper:ke(hn)},$e.reset=!1,$e.placement=$e.options.placement,$e.orderedModifiers.forEach(function(wn){return $e.modifiersData[wn.name]=Object.assign({},wn.data)});for(var vn=0;vn<$e.orderedModifiers.length;vn++){if($e.reset===!0){$e.reset=!1,vn=-1;continue}var _n=$e.orderedModifiers[vn],bn=_n.fn,Cn=_n.options,En=Cn===void 0?{}:Cn,$n=_n.name;typeof bn=="function"&&($e=bn({state:$e,options:En,name:$n,instance:Ne})||$e)}}}},update:ln(function(){return new Promise(function(At){Ne.forceUpdate(),At($e)})}),destroy:function(){ze(),Ie=!0}};if(!$t$2(pe,_e))return Ne;Ne.setOptions(Ce).then(function(At){!Ie&&Ce.onFirstUpdate&&Ce.onFirstUpdate(At)});function Fe(){$e.orderedModifiers.forEach(function(At){var Lt=At.name,hn=At.options,vn=hn===void 0?{}:hn,_n=At.effect;if(typeof _n=="function"){var bn=_n({state:$e,name:Lt,instance:Ne,options:vn}),Cn=function(){};xe.push(bn||Cn)}})}function ze(){xe.forEach(function(At){return At()}),xe=[]}return Ne}}we();var mn=[Re,He,Me,Ae$1];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae$1,wt,vt,xt,pt$1,bt],yn=we({defaultModifiers:gn});const usePopper=($,z,oe={})=>{const ae={name:"updateState",enabled:!0,phase:"write",fn:({state:Ce})=>{const $e=deriveState(Ce);Object.assign(pe.value,$e)},requires:["computeStyles"]},ie=computed(()=>{const{onFirstUpdate:Ce,placement:$e,strategy:xe,modifiers:Ie}=unref(oe);return{onFirstUpdate:Ce,placement:$e||"bottom",strategy:xe||"absolute",modifiers:[...Ie||[],ae,{name:"applyStyles",enabled:!1}]}}),le=shallowRef(),pe=ref({styles:{popper:{position:unref(ie).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),_e=()=>{le.value&&(le.value.destroy(),le.value=void 0)};return watch(ie,Ce=>{const $e=unref(le);$e&&$e.setOptions(Ce)},{deep:!0}),watch([$,z],([Ce,$e])=>{_e(),!(!Ce||!$e)&&(le.value=yn(Ce,$e,unref(ie)))}),onBeforeUnmount(()=>{_e()}),{state:computed(()=>{var Ce;return{...((Ce=unref(le))==null?void 0:Ce.state)||{}}}),styles:computed(()=>unref(pe).styles),attributes:computed(()=>unref(pe).attributes),update:()=>{var Ce;return(Ce=unref(le))==null?void 0:Ce.update()},forceUpdate:()=>{var Ce;return(Ce=unref(le))==null?void 0:Ce.forceUpdate()},instanceRef:computed(()=>unref(le))}};function deriveState($){const z=Object.keys($.elements),oe=fromPairs(z.map(ie=>[ie,$.styles[ie]||{}])),ae=fromPairs(z.map(ie=>[ie,$.attributes[ie]]));return{styles:oe,attributes:ae}}const useRestoreActive=($,z)=>{let oe;watch(()=>$.value,ae=>{var ie,le;ae?(oe=document.activeElement,isRef(z)&&((le=(ie=z.value).focus)==null||le.call(ie))):oe.focus()})},useSameTarget=$=>{if(!$)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let z=!1,oe=!1;return{onClick:pe=>{z&&oe&&$(pe),z=oe=!1},onMousedown:pe=>{z=pe.target===pe.currentTarget},onMouseup:pe=>{oe=pe.target===pe.currentTarget}}},useThrottleRender=($,z=0)=>{if(z===0)return $;const oe=ref(!1);let ae=0;const ie=()=>{ae&&clearTimeout(ae),ae=window.setTimeout(()=>{oe.value=$.value},z)};return onMounted(ie),watch(()=>$.value,le=>{le?ie():oe.value=le}),oe};function useTimeout(){let $;const z=(ae,ie)=>{oe(),$=window.setTimeout(ae,ie)},oe=()=>window.clearTimeout($);return tryOnScopeDispose$2(()=>oe()),{registerTimeout:z,cancelTimeout:oe}}const defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=$=>{const z=useIdInjection(),oe=useGetDerivedNamespace();return computed(()=>unref($)||`${oe.value}-id-${z.prefix}-${z.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=$=>{const z=$;z.key===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(oe=>oe(z))},useEscapeKeydown=$=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$2&®isteredEscapeHandlers.push($)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(z=>z!==$),registeredEscapeHandlers.length===0&&isClient$2&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const $=useGetDerivedNamespace(),z=useIdInjection(),oe=computed(()=>`${$.value}-popper-container-${z.prefix}`),ae=computed(()=>`#${oe.value}`);return{id:oe,selector:ae}},createContainer=$=>{const z=document.createElement("div");return z.id=$,document.body.appendChild(z),z},usePopperContainer=()=>{const{id:$,selector:z}=usePopperContainerId();return onBeforeMount(()=>{isClient$2&&!cachedContainer&&!document.body.querySelector(z.value)&&(cachedContainer=createContainer($.value))}),{id:$,selector:z}},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:$,hideAfter:z,autoClose:oe,open:ae,close:ie})=>{const{registerTimeout:le}=useTimeout(),{registerTimeout:pe,cancelTimeout:_e}=useTimeout();return{onOpen:xe=>{le(()=>{ae(xe);const Ie=unref(oe);isNumber$5(Ie)&&Ie>0&&pe(()=>{ie(xe)},Ie)},unref($))},onClose:xe=>{_e(),le(()=>{ie(xe)},unref(z))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=$=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:oe=>{$.value=oe}})},useForwardRefDirective=$=>({mounted(z){$(z)},updated(z){$(z)},unmounted(){$(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=$=>{const z=$||inject(zIndexContextKey,void 0),oe=computed(()=>{const le=unref(z);return isNumber$5(le)?le:defaultInitialZIndex}),ae=computed(()=>oe.value+zIndex.value);return{initialZIndex:oe,currentZIndex:ae,nextZIndex:()=>(zIndex.value++,ae.value)}};function t($){return $.split("-")[1]}function e$1($){return $==="y"?"height":"width"}function n$2($){return $.split("-")[0]}function o$2($){return["top","bottom"].includes(n$2($))?"x":"y"}function i$2($,z,oe){let{reference:ae,floating:ie}=$;const le=ae.x+ae.width/2-ie.width/2,pe=ae.y+ae.height/2-ie.height/2,_e=o$2(z),Ce=e$1(_e),$e=ae[Ce]/2-ie[Ce]/2,xe=_e==="x";let Ie;switch(n$2(z)){case"top":Ie={x:le,y:ae.y-ie.height};break;case"bottom":Ie={x:le,y:ae.y+ae.height};break;case"right":Ie={x:ae.x+ae.width,y:pe};break;case"left":Ie={x:ae.x-ie.width,y:pe};break;default:Ie={x:ae.x,y:ae.y}}switch(t(z)){case"start":Ie[_e]-=$e*(oe&&xe?-1:1);break;case"end":Ie[_e]+=$e*(oe&&xe?-1:1)}return Ie}const r$1=async($,z,oe)=>{const{placement:ae="bottom",strategy:ie="absolute",middleware:le=[],platform:pe}=oe,_e=le.filter(Boolean),Ce=await(pe.isRTL==null?void 0:pe.isRTL(z));let $e=await pe.getElementRects({reference:$,floating:z,strategy:ie}),{x:xe,y:Ie}=i$2($e,ae,Ce),Ne=ae,Fe={},ze=0;for(let At=0;At<_e.length;At++){const{name:Lt,fn:hn}=_e[At],{x:vn,y:_n,data:bn,reset:Cn}=await hn({x:xe,y:Ie,initialPlacement:ae,placement:Ne,strategy:ie,middlewareData:Fe,rects:$e,platform:pe,elements:{reference:$,floating:z}});xe=vn??xe,Ie=_n??Ie,Fe={...Fe,[Lt]:{...Fe[Lt],...bn}},Cn&&ze<=50&&(ze++,typeof Cn=="object"&&(Cn.placement&&(Ne=Cn.placement),Cn.rects&&($e=Cn.rects===!0?await pe.getElementRects({reference:$,floating:z,strategy:ie}):Cn.rects),{x:xe,y:Ie}=i$2($e,Ne,Ce)),At=-1)}return{x:xe,y:Ie,placement:Ne,strategy:ie,middlewareData:Fe}};function a$3($){return typeof $!="number"?function(z){return{top:0,right:0,bottom:0,left:0,...z}}($):{top:$,right:$,bottom:$,left:$}}function l$2($){return{...$,top:$.y,left:$.x,right:$.x+$.width,bottom:$.y+$.height}}const c$4=Math.min,f$3=Math.max;function m$5($,z,oe){return f$3($,c$4(z,oe))}const u$3=$=>({name:"arrow",options:$,async fn(z){const{element:oe,padding:ae=0}=$||{},{x:ie,y:le,placement:pe,rects:_e,platform:Ce,elements:$e}=z;if(oe==null)return{};const xe=a$3(ae),Ie={x:ie,y:le},Ne=o$2(pe),Fe=e$1(Ne),ze=await Ce.getDimensions(oe),At=Ne==="y",Lt=At?"top":"left",hn=At?"bottom":"right",vn=At?"clientHeight":"clientWidth",_n=_e.reference[Fe]+_e.reference[Ne]-Ie[Ne]-_e.floating[Fe],bn=Ie[Ne]-_e.reference[Ne],Cn=await(Ce.getOffsetParent==null?void 0:Ce.getOffsetParent(oe));let En=Cn?Cn[vn]:0;En&&await(Ce.isElement==null?void 0:Ce.isElement(Cn))||(En=$e.floating[vn]||_e.floating[Fe]);const $n=_n/2-bn/2,wn=xe[Lt],Tn=En-ze[Fe]-xe[hn],xn=En/2-ze[Fe]/2+$n,kn=m$5(wn,xn,Tn),An=t(pe)!=null&&xn!=kn&&_e.reference[Fe]/2-(xn<wn?xe[Lt]:xe[hn])-ze[Fe]/2<0;return{[Ne]:Ie[Ne]-(An?xn<wn?wn-xn:Tn-xn:0),data:{[Ne]:kn,centerOffset:xn-kn}}}}),g$2=["top","right","bottom","left"];g$2.reduce(($,z)=>$.concat(z,z+"-start",z+"-end"),[]);const D$4=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(z){const{x:oe,y:ae}=z,ie=await async function(le,pe){const{placement:_e,platform:Ce,elements:$e}=le,xe=await(Ce.isRTL==null?void 0:Ce.isRTL($e.floating)),Ie=n$2(_e),Ne=t(_e),Fe=o$2(_e)==="x",ze=["left","top"].includes(Ie)?-1:1,At=xe&&Fe?-1:1,Lt=typeof pe=="function"?pe(le):pe;let{mainAxis:hn,crossAxis:vn,alignmentAxis:_n}=typeof Lt=="number"?{mainAxis:Lt,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...Lt};return Ne&&typeof _n=="number"&&(vn=Ne==="end"?-1*_n:_n),Fe?{x:vn*At,y:hn*ze}:{x:hn*ze,y:vn*At}}(z,$);return{x:oe+ie.x,y:ae+ie.y,data:ie}}}};function n$1($){var z;return((z=$.ownerDocument)==null?void 0:z.defaultView)||window}function o$1($){return n$1($).getComputedStyle($)}function i$1($){return $ instanceof n$1($).Node}function r($){return i$1($)?($.nodeName||"").toLowerCase():""}let l$1;function c$3(){if(l$1)return l$1;const $=navigator.userAgentData;return $&&Array.isArray($.brands)?(l$1=$.brands.map(z=>z.brand+"/"+z.version).join(" "),l$1):navigator.userAgent}function s$1($){return $ instanceof n$1($).HTMLElement}function f$2($){return $ instanceof n$1($).Element}function u$2($){return typeof ShadowRoot>"u"?!1:$ instanceof n$1($).ShadowRoot||$ instanceof ShadowRoot}function a$2($){const{overflow:z,overflowX:oe,overflowY:ae,display:ie}=o$1($);return/auto|scroll|overlay|hidden|clip/.test(z+ae+oe)&&!["inline","contents"].includes(ie)}function d$2($){return["table","td","th"].includes(r($))}function h$2($){const z=/firefox/i.test(c$3()),oe=o$1($),ae=oe.backdropFilter||oe.WebkitBackdropFilter;return oe.transform!=="none"||oe.perspective!=="none"||!!ae&&ae!=="none"||z&&oe.willChange==="filter"||z&&!!oe.filter&&oe.filter!=="none"||["transform","perspective"].some(ie=>oe.willChange.includes(ie))||["paint","layout","strict","content"].some(ie=>{const le=oe.contain;return le!=null&&le.includes(ie)})}function p$2(){return/^((?!chrome|android).)*safari/i.test(c$3())}function g$1($){return["html","body","#document"].includes(r($))}const m$4=Math.min,y$1=Math.max,x$1=Math.round;function w$1($){const z=o$1($);let oe=parseFloat(z.width),ae=parseFloat(z.height);const ie=s$1($),le=ie?$.offsetWidth:oe,pe=ie?$.offsetHeight:ae,_e=x$1(oe)!==le||x$1(ae)!==pe;return _e&&(oe=le,ae=pe),{width:oe,height:ae,fallback:_e}}function v$1($){return f$2($)?$:$.contextElement}const b$2={x:1,y:1};function L$2($){const z=v$1($);if(!s$1(z))return b$2;const oe=z.getBoundingClientRect(),{width:ae,height:ie,fallback:le}=w$1(z);let pe=(le?x$1(oe.width):oe.width)/ae,_e=(le?x$1(oe.height):oe.height)/ie;return pe&&Number.isFinite(pe)||(pe=1),_e&&Number.isFinite(_e)||(_e=1),{x:pe,y:_e}}function E$1($,z,oe,ae){var ie,le;z===void 0&&(z=!1),oe===void 0&&(oe=!1);const pe=$.getBoundingClientRect(),_e=v$1($);let Ce=b$2;z&&(ae?f$2(ae)&&(Ce=L$2(ae)):Ce=L$2($));const $e=_e?n$1(_e):window,xe=p$2()&&oe;let Ie=(pe.left+(xe&&((ie=$e.visualViewport)==null?void 0:ie.offsetLeft)||0))/Ce.x,Ne=(pe.top+(xe&&((le=$e.visualViewport)==null?void 0:le.offsetTop)||0))/Ce.y,Fe=pe.width/Ce.x,ze=pe.height/Ce.y;if(_e){const At=n$1(_e),Lt=ae&&f$2(ae)?n$1(ae):ae;let hn=At.frameElement;for(;hn&&ae&&Lt!==At;){const vn=L$2(hn),_n=hn.getBoundingClientRect(),bn=getComputedStyle(hn);_n.x+=(hn.clientLeft+parseFloat(bn.paddingLeft))*vn.x,_n.y+=(hn.clientTop+parseFloat(bn.paddingTop))*vn.y,Ie*=vn.x,Ne*=vn.y,Fe*=vn.x,ze*=vn.y,Ie+=_n.x,Ne+=_n.y,hn=n$1(hn).frameElement}}return l$2({width:Fe,height:ze,x:Ie,y:Ne})}function T$2($){return((i$1($)?$.ownerDocument:$.document)||window.document).documentElement}function R($){return f$2($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function C($){return E$1(T$2($)).left+R($).scrollLeft}function F$1($){if(r($)==="html")return $;const z=$.assignedSlot||$.parentNode||u$2($)&&$.host||T$2($);return u$2(z)?z.host:z}function S$2($){const z=F$1($);return g$1(z)?z.ownerDocument.body:s$1(z)&&a$2(z)?z:S$2(z)}function W($,z){var oe;z===void 0&&(z=[]);const ae=S$2($),ie=ae===((oe=$.ownerDocument)==null?void 0:oe.body),le=n$1(ae);return ie?z.concat(le,le.visualViewport||[],a$2(ae)?ae:[]):z.concat(ae,W(ae))}function D$3($,z,oe){let ae;if(z==="viewport")ae=function(pe,_e){const Ce=n$1(pe),$e=T$2(pe),xe=Ce.visualViewport;let Ie=$e.clientWidth,Ne=$e.clientHeight,Fe=0,ze=0;if(xe){Ie=xe.width,Ne=xe.height;const At=p$2();(!At||At&&_e==="fixed")&&(Fe=xe.offsetLeft,ze=xe.offsetTop)}return{width:Ie,height:Ne,x:Fe,y:ze}}($,oe);else if(z==="document")ae=function(pe){const _e=T$2(pe),Ce=R(pe),$e=pe.ownerDocument.body,xe=y$1(_e.scrollWidth,_e.clientWidth,$e.scrollWidth,$e.clientWidth),Ie=y$1(_e.scrollHeight,_e.clientHeight,$e.scrollHeight,$e.clientHeight);let Ne=-Ce.scrollLeft+C(pe);const Fe=-Ce.scrollTop;return o$1($e).direction==="rtl"&&(Ne+=y$1(_e.clientWidth,$e.clientWidth)-xe),{width:xe,height:Ie,x:Ne,y:Fe}}(T$2($));else if(f$2(z))ae=function(pe,_e){const Ce=E$1(pe,!0,_e==="fixed"),$e=Ce.top+pe.clientTop,xe=Ce.left+pe.clientLeft,Ie=s$1(pe)?L$2(pe):{x:1,y:1};return{width:pe.clientWidth*Ie.x,height:pe.clientHeight*Ie.y,x:xe*Ie.x,y:$e*Ie.y}}(z,oe);else{const pe={...z};if(p$2()){var ie,le;const _e=n$1($);pe.x-=((ie=_e.visualViewport)==null?void 0:ie.offsetLeft)||0,pe.y-=((le=_e.visualViewport)==null?void 0:le.offsetTop)||0}ae=pe}return l$2(ae)}function V($,z){const oe=F$1($);return!(oe===z||!f$2(oe)||g$1(oe))&&(o$1(oe).position==="fixed"||V(oe,z))}function A$1($,z){return s$1($)&&o$1($).position!=="fixed"?z?z($):$.offsetParent:null}function H$2($,z){const oe=n$1($);if(!s$1($))return oe;let ae=A$1($,z);for(;ae&&d$2(ae)&&o$1(ae).position==="static";)ae=A$1(ae,z);return ae&&(r(ae)==="html"||r(ae)==="body"&&o$1(ae).position==="static"&&!h$2(ae))?oe:ae||function(ie){let le=F$1(ie);for(;s$1(le)&&!g$1(le);){if(h$2(le))return le;le=F$1(le)}return null}($)||oe}function O$2($,z,oe){const ae=s$1(z),ie=T$2(z),le=E$1($,!0,oe==="fixed",z);let pe={scrollLeft:0,scrollTop:0};const _e={x:0,y:0};if(ae||!ae&&oe!=="fixed")if((r(z)!=="body"||a$2(ie))&&(pe=R(z)),s$1(z)){const Ce=E$1(z,!0);_e.x=Ce.x+z.clientLeft,_e.y=Ce.y+z.clientTop}else ie&&(_e.x=C(ie));return{x:le.left+pe.scrollLeft-_e.x,y:le.top+pe.scrollTop-_e.y,width:le.width,height:le.height}}const P$3={getClippingRect:function($){let{element:z,boundary:oe,rootBoundary:ae,strategy:ie}=$;const le=oe==="clippingAncestors"?function($e,xe){const Ie=xe.get($e);if(Ie)return Ie;let Ne=W($e).filter(Lt=>f$2(Lt)&&r(Lt)!=="body"),Fe=null;const ze=o$1($e).position==="fixed";let At=ze?F$1($e):$e;for(;f$2(At)&&!g$1(At);){const Lt=o$1(At),hn=h$2(At);hn||Lt.position!=="fixed"||(Fe=null),(ze?!hn&&!Fe:!hn&&Lt.position==="static"&&Fe&&["absolute","fixed"].includes(Fe.position)||a$2(At)&&!hn&&V($e,At))?Ne=Ne.filter(vn=>vn!==At):Fe=Lt,At=F$1(At)}return xe.set($e,Ne),Ne}(z,this._c):[].concat(oe),pe=[...le,ae],_e=pe[0],Ce=pe.reduce(($e,xe)=>{const Ie=D$3(z,xe,ie);return $e.top=y$1(Ie.top,$e.top),$e.right=m$4(Ie.right,$e.right),$e.bottom=m$4(Ie.bottom,$e.bottom),$e.left=y$1(Ie.left,$e.left),$e},D$3(z,_e,ie));return{width:Ce.right-Ce.left,height:Ce.bottom-Ce.top,x:Ce.left,y:Ce.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function($){let{rect:z,offsetParent:oe,strategy:ae}=$;const ie=s$1(oe),le=T$2(oe);if(oe===le)return z;let pe={scrollLeft:0,scrollTop:0},_e={x:1,y:1};const Ce={x:0,y:0};if((ie||!ie&&ae!=="fixed")&&((r(oe)!=="body"||a$2(le))&&(pe=R(oe)),s$1(oe))){const $e=E$1(oe);_e=L$2(oe),Ce.x=$e.x+oe.clientLeft,Ce.y=$e.y+oe.clientTop}return{width:z.width*_e.x,height:z.height*_e.y,x:z.x*_e.x-pe.scrollLeft*_e.x+Ce.x,y:z.y*_e.y-pe.scrollTop*_e.y+Ce.y}},isElement:f$2,getDimensions:function($){return w$1($)},getOffsetParent:H$2,getDocumentElement:T$2,getScale:L$2,async getElementRects($){let{reference:z,floating:oe,strategy:ae}=$;const ie=this.getOffsetParent||H$2,le=this.getDimensions;return{reference:O$2(z,await ie(oe),ae),floating:{x:0,y:0,...await le(oe)}}},getClientRects:$=>Array.from($.getClientRects()),isRTL:$=>o$1($).direction==="rtl"},k$1=($,z,oe)=>{const ae=new Map,ie={platform:P$3,...oe},le={...ie.platform,_c:ae};return r$1($,z,{...ie,platform:le})};buildProps({});const unrefReference=$=>{if(!isClient$2)return;if(!$)return $;const z=unrefElement$1($);return z||(isRef($)?z:$)},useFloating=({middleware:$,placement:z,strategy:oe})=>{const ae=ref(),ie=ref(),le=ref(),pe=ref(),_e=ref({}),Ce={x:le,y:pe,placement:z,strategy:oe,middlewareData:_e},$e=async()=>{if(!isClient$2)return;const xe=unrefReference(ae),Ie=unrefElement$1(ie);if(!xe||!Ie)return;const Ne=await k$1(xe,Ie,{placement:unref(z),strategy:unref(oe),middleware:unref($)});keysOf(Ce).forEach(Fe=>{Ce[Fe].value=Ne[Fe]})};return onMounted(()=>{watchEffect(()=>{$e()})}),{...Ce,update:$e,referenceRef:ae,contentRef:ie}},arrowMiddleware=({arrowRef:$,padding:z})=>({name:"arrow",options:{element:$,padding:z},fn(oe){const ae=unref($);return ae?u$3({element:ae,padding:z}).fn(oe):{}}});function useCursor($){const z=ref();function oe(){if($.value==null)return;const{selectionStart:ie,selectionEnd:le,value:pe}=$.value;if(ie==null||le==null)return;const _e=pe.slice(0,Math.max(0,ie)),Ce=pe.slice(Math.max(0,le));z.value={selectionStart:ie,selectionEnd:le,value:pe,beforeTxt:_e,afterTxt:Ce}}function ae(){if($.value==null||z.value==null)return;const{value:ie}=$.value,{beforeTxt:le,afterTxt:pe,selectionStart:_e}=z.value;if(le==null||pe==null||_e==null)return;let Ce=ie.length;if(ie.endsWith(pe))Ce=ie.length-pe.length;else if(ie.startsWith(le))Ce=le.length;else{const $e=le[_e-1],xe=ie.indexOf($e,_e-1);xe!==-1&&(Ce=xe+1)}$.value.setSelectionRange(Ce,Ce)}return[oe,ae]}const getOrderedChildren=($,z,oe)=>flattedChildren($.subTree).filter(le=>{var pe;return isVNode$1(le)&&((pe=le.type)==null?void 0:pe.name)===z&&!!le.component}).map(le=>le.component.uid).map(le=>oe[le]).filter(le=>!!le),useOrderedChildren=($,z)=>{const oe={},ae=shallowRef([]);return{children:ae,addChild:pe=>{oe[pe.uid]=pe,ae.value=getOrderedChildren($,z,oe)},removeChild:pe=>{delete oe[pe],ae.value=ae.value.filter(_e=>_e.uid!==pe)}}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const $=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref($.size)||"")},configProviderContextKey=Symbol(),globalConfig=ref();function useGlobalConfig($,z=void 0){const oe=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return $?computed(()=>{var ae,ie;return(ie=(ae=oe.value)==null?void 0:ae[$])!=null?ie:z}):oe}function useGlobalComponentSettings($,z){const oe=useGlobalConfig(),ae=useNamespace($,computed(()=>{var _e;return((_e=oe.value)==null?void 0:_e.namespace)||defaultNamespace})),ie=useLocale(computed(()=>{var _e;return(_e=oe.value)==null?void 0:_e.locale})),le=useZIndex(computed(()=>{var _e;return((_e=oe.value)==null?void 0:_e.zIndex)||defaultInitialZIndex})),pe=computed(()=>{var _e;return unref(z)||((_e=oe.value)==null?void 0:_e.size)||""});return provideGlobalConfig(computed(()=>unref(oe)||{})),{ns:ae,locale:ie,zIndex:le,size:pe}}const provideGlobalConfig=($,z,oe=!1)=>{var ae;const ie=!!getCurrentInstance(),le=ie?useGlobalConfig():void 0,pe=(ae=z==null?void 0:z.provide)!=null?ae:ie?provide:void 0;if(!pe)return;const _e=computed(()=>{const Ce=unref($);return le!=null&&le.value?mergeConfig$1(le.value,Ce):Ce});return pe(configProviderContextKey,_e),pe(localeContextKey,computed(()=>_e.value.locale)),pe(namespaceContextKey,computed(()=>_e.value.namespace)),pe(zIndexContextKey,computed(()=>_e.value.zIndex)),pe(SIZE_INJECTION_KEY,{size:computed(()=>_e.value.size||"")}),(oe||!globalConfig.value)&&(globalConfig.value=_e.value),_e},mergeConfig$1=($,z)=>{var oe;const ae=[...new Set([...keysOf($),...keysOf(z)])],ie={};for(const le of ae)ie[le]=(oe=z[le])!=null?oe:$[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($,{slots:z}){watch(()=>$.message,ae=>{Object.assign(messageConfig,ae??{})},{immediate:!0,deep:!0});const oe=provideGlobalConfig($);return()=>renderSlot(z,"default",{config:oe==null?void 0:oe.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.4",makeInstaller=($=[])=>({version:version$2,install:(oe,ae)=>{oe[INSTALLED_KEY]||(oe[INSTALLED_KEY]=!0,$.forEach(ie=>oe.use(ie)),ae&&provideGlobalConfig(ae,oe,!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:$,fixed:z})=>isNumber$5($)&&isBoolean$3(z),[CHANGE_EVENT]:$=>isBoolean$3($)};var _export_sfc$1=($,z)=>{const oe=$.__vccOpts||$;for(const[ae,ie]of z)oe[ae]=ie;return oe};const COMPONENT_NAME$n="ElAffix",__default__$1C=defineComponent({name:COMPONENT_NAME$n}),_sfc_main$2k=defineComponent({...__default__$1C,props:affixProps,emits:affixEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=useNamespace("affix"),le=shallowRef(),pe=shallowRef(),_e=shallowRef(),{height:Ce}=useWindowSize(),{height:$e,width:xe,top:Ie,bottom:Ne,update:Fe}=useElementBounding(pe,{windowScroll:!1}),ze=useElementBounding(le),At=ref(!1),Lt=ref(0),hn=ref(0),vn=computed(()=>({height:At.value?`${$e.value}px`:"",width:At.value?`${xe.value}px`:""})),_n=computed(()=>{if(!At.value)return{};const En=ae.offset?addUnit(ae.offset):0;return{height:`${$e.value}px`,width:`${xe.value}px`,top:ae.position==="top"?En:"",bottom:ae.position==="bottom"?En:"",transform:hn.value?`translateY(${hn.value}px)`:"",zIndex:ae.zIndex}}),bn=()=>{if(_e.value)if(Lt.value=_e.value instanceof Window?document.documentElement.scrollTop:_e.value.scrollTop||0,ae.position==="top")if(ae.target){const En=ze.bottom.value-ae.offset-$e.value;At.value=ae.offset>Ie.value&&ze.bottom.value>0,hn.value=En<0?En:0}else At.value=ae.offset>Ie.value;else if(ae.target){const En=Ce.value-ze.top.value-ae.offset-$e.value;At.value=Ce.value-ae.offset<Ne.value&&Ce.value>ze.top.value,hn.value=En<0?-En:0}else At.value=Ce.value-ae.offset<Ne.value},Cn=()=>{Fe(),oe("scroll",{scrollTop:Lt.value,fixed:At.value})};return watch(At,En=>oe("change",En)),onMounted(()=>{var En;ae.target?(le.value=(En=document.querySelector(ae.target))!=null?En:void 0,le.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${ae.target}`)):le.value=document.documentElement,_e.value=getScrollContainer(pe.value,!0),Fe()}),useEventListener$1(_e,"scroll",Cn),watchEffect(bn),z({update:bn,updateRoot:Fe}),(En,$n)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:pe,class:normalizeClass(unref(ie).b()),style:normalizeStyle$1(unref(vn))},[createBaseVNode("div",{class:normalizeClass({[unref(ie).m("fixed")]:At.value}),style:normalizeStyle$1(unref(_n))},[renderSlot(En.$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($){const z=$,oe=useNamespace("icon"),ae=computed(()=>{const{size:ie,color:le}=z;return!ie&&!le?{}:{fontSize:isUndefined$1(ie)?void 0:addUnit(ie),"--color":le}});return(ie,le)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(oe).b(),style:unref(ae)},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:$=>$ instanceof MouseEvent},__default__$1A=defineComponent({name:"ElAlert"}),_sfc_main$2i=defineComponent({...__default__$1A,props:alertProps,emits:alertEmits,setup($,{emit:z}){const oe=$,{Close:ae}=TypeComponents,ie=useSlots(),le=useNamespace("alert"),pe=ref(!0),_e=computed(()=>TypeComponentsMap[oe.type]),Ce=computed(()=>[le.e("icon"),{[le.is("big")]:!!oe.description||!!ie.default}]),$e=computed(()=>({[le.is("bold")]:oe.description||ie.default})),xe=Ie=>{pe.value=!1,z("close",Ie)};return(Ie,Ne)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(le).b(),unref(le).m(Ie.type),unref(le).is("center",Ie.center),unref(le).is(Ie.effect)]),role:"alert"},[Ie.showIcon&&unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("content"))},[Ie.title||Ie.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(le).e("title"),unref($e)])},[renderSlot(Ie.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ie.title),1)])],2)):createCommentVNode("v-if",!0),Ie.$slots.default||Ie.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(le).e("description"))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.description),1)])],2)):createCommentVNode("v-if",!0),Ie.closable?(openBlock(),createElementBlock(Fragment,{key:2},[Ie.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(le).e("close-btn"),unref(le).is("customed")]),onClick:xe},toDisplayString$1(Ie.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(le).e("close-btn")),onClick:xe},{default:withCtx(()=>[createVNode(unref(ae))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,pe.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=($,z={})=>{const oe=ref(void 0),ae=z.prop?oe:useProp("size"),ie=z.global?oe:useGlobalSize(),le=z.form?{size:void 0}:inject(formContextKey,void 0),pe=z.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>ae.value||unref($)||(pe==null?void 0:pe.size)||(le==null?void 0:le.size)||ie.value||"")},useFormDisabled=$=>{const z=useProp("disabled"),oe=inject(formContextKey,void 0);return computed(()=>z.value||unref($)||(oe==null?void 0:oe.disabled)||!1)},useFormItem=()=>{const $=inject(formContextKey,void 0),z=inject(formItemContextKey,void 0);return{form:$,formItem:z}},useFormItemInputId=($,{formItemContext:z,disableIdGeneration:oe,disableIdManagement:ae})=>{oe||(oe=ref(!1)),ae||(ae=ref(!1));const ie=ref();let le;const pe=computed(()=>{var _e;return!!(!$.label&&z&&z.inputIds&&((_e=z.inputIds)==null?void 0:_e.length)<=1)});return onMounted(()=>{le=watch([toRef$1($,"id"),oe],([_e,Ce])=>{const $e=_e??(Ce?void 0:useId().value);$e!==ie.value&&(z!=null&&z.removeInputId&&(ie.value&&z.removeInputId(ie.value),!(ae!=null&&ae.value)&&!Ce&&$e&&z.addInputId($e)),ie.value=$e)},{immediate:!0})}),onUnmounted(()=>{le&&le(),z!=null&&z.removeInputId&&ie.value&&z.removeInputId(ie.value)}),{isLabeledByFormItem:pe,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:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),formEmits={validate:($,z,oe)=>(isArray$c($)||isString$7($))&&isBoolean$3(z)&&isString$7(oe)};function useFormLabelWidth(){const $=ref([]),z=computed(()=>{if(!$.value.length)return"0";const le=Math.max(...$.value);return le?`${le}px`:""});function oe(le){const pe=$.value.indexOf(le);return pe===-1&&z.value,pe}function ae(le,pe){if(le&&pe){const _e=oe(pe);$.value.splice(_e,1,le)}else le&&$.value.push(le)}function ie(le){const pe=oe(le);pe>-1&&$.value.splice(pe,1)}return{autoLabelWidth:z,registerLabelWidth:ae,deregisterLabelWidth:ie}}const filterFields=($,z)=>{const oe=castArray$1(z);return oe.length>0?$.filter(ae=>ae.prop&&oe.includes(ae.prop)):$},COMPONENT_NAME$m="ElForm",__default__$1z=defineComponent({name:COMPONENT_NAME$m}),_sfc_main$2h=defineComponent({...__default__$1z,props:formProps,emits:formEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=[],le=useFormSize(),pe=useNamespace("form"),_e=computed(()=>{const{labelPosition:vn,inline:_n}=ae;return[pe.b(),pe.m(le.value||"default"),{[pe.m(`label-${vn}`)]:vn,[pe.m("inline")]:_n}]}),Ce=vn=>{ie.push(vn)},$e=vn=>{vn.prop&&ie.splice(ie.indexOf(vn),1)},xe=(vn=[])=>{ae.model&&filterFields(ie,vn).forEach(_n=>_n.resetField())},Ie=(vn=[])=>{filterFields(ie,vn).forEach(_n=>_n.clearValidate())},Ne=computed(()=>!!ae.model),Fe=vn=>{if(ie.length===0)return[];const _n=filterFields(ie,vn);return _n.length?_n:[]},ze=async vn=>Lt(void 0,vn),At=async(vn=[])=>{if(!Ne.value)return!1;const _n=Fe(vn);if(_n.length===0)return!0;let bn={};for(const Cn of _n)try{await Cn.validate("")}catch(En){bn={...bn,...En}}return Object.keys(bn).length===0?!0:Promise.reject(bn)},Lt=async(vn=[],_n)=>{const bn=!isFunction$5(_n);try{const Cn=await At(vn);return Cn===!0&&(_n==null||_n(Cn)),Cn}catch(Cn){if(Cn instanceof Error)throw Cn;const En=Cn;return ae.scrollToError&&hn(Object.keys(En)[0]),_n==null||_n(!1,En),bn&&Promise.reject(En)}},hn=vn=>{var _n;const bn=filterFields(ie,vn)[0];bn&&((_n=bn.$el)==null||_n.scrollIntoView(ae.scrollIntoViewOptions))};return watch(()=>ae.rules,()=>{ae.validateOnRuleChange&&ze().catch(vn=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(ae),emit:oe,resetFields:xe,clearValidate:Ie,validateField:Lt,addField:Ce,removeField:$e,...useFormLabelWidth()})),z({validate:ze,validateField:Lt,resetFields:xe,clearValidate:Ie,scrollToField:hn}),(vn,_n)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(_e))},[renderSlot(vn.$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($){for(var z=1;z<arguments.length;z++){var oe=arguments[z];for(var ae in oe)Object.prototype.hasOwnProperty.call(oe,ae)&&($[ae]=oe[ae])}return $},_extends.apply(this,arguments)}function _inheritsLoose($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,_setPrototypeOf($,z)}function _getPrototypeOf($){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},_getPrototypeOf($)}function _setPrototypeOf($,z){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ae,ie){return ae.__proto__=ie,ae},_setPrototypeOf($,z)}function _isNativeReflectConstruct(){if(typeof Reflect>"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($,z,oe){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(ie,le,pe){var _e=[null];_e.push.apply(_e,le);var Ce=Function.bind.apply(ie,_e),$e=new Ce;return pe&&_setPrototypeOf($e,pe.prototype),$e},_construct.apply(null,arguments)}function _isNativeFunction($){return Function.toString.call($).indexOf("[native code]")!==-1}function _wrapNativeSuper($){var z=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(ae){if(ae===null||!_isNativeFunction(ae))return ae;if(typeof ae!="function")throw new TypeError("Super expression must either be null or a function");if(typeof z<"u"){if(z.has(ae))return z.get(ae);z.set(ae,ie)}function ie(){return _construct(ae,arguments,_getPrototypeOf(this).constructor)}return ie.prototype=Object.create(ae.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(ie,ae)},_wrapNativeSuper($)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError($){if(!$||!$.length)return null;var z={};return $.forEach(function(oe){var ae=oe.field;z[ae]=z[ae]||[],z[ae].push(oe)}),z}function format$2($){for(var z=arguments.length,oe=new Array(z>1?z-1:0),ae=1;ae<z;ae++)oe[ae-1]=arguments[ae];var ie=0,le=oe.length;if(typeof $=="function")return $.apply(null,oe);if(typeof $=="string"){var pe=$.replace(formatRegExp,function(_e){if(_e==="%%")return"%";if(ie>=le)return _e;switch(_e){case"%s":return String(oe[ie++]);case"%d":return Number(oe[ie++]);case"%j":try{return JSON.stringify(oe[ie++])}catch{return"[Circular]"}break;default:return _e}});return pe}return $}function isNativeStringType($){return $==="string"||$==="url"||$==="hex"||$==="email"||$==="date"||$==="pattern"}function isEmptyValue($,z){return!!($==null||z==="array"&&Array.isArray($)&&!$.length||isNativeStringType(z)&&typeof $=="string"&&!$)}function asyncParallelArray($,z,oe){var ae=[],ie=0,le=$.length;function pe(_e){ae.push.apply(ae,_e||[]),ie++,ie===le&&oe(ae)}$.forEach(function(_e){z(_e,pe)})}function asyncSerialArray($,z,oe){var ae=0,ie=$.length;function le(pe){if(pe&&pe.length){oe(pe);return}var _e=ae;ae=ae+1,_e<ie?z($[_e],le):oe([])}le([])}function flattenObjArr($){var z=[];return Object.keys($).forEach(function(oe){z.push.apply(z,$[oe]||[])}),z}var AsyncValidationError=function($){_inheritsLoose(z,$);function z(oe,ae){var ie;return ie=$.call(this,"Async Validation Error")||this,ie.errors=oe,ie.fields=ae,ie}return z}(_wrapNativeSuper(Error));function asyncMap($,z,oe,ae,ie){if(z.first){var le=new Promise(function(Ne,Fe){var ze=function(hn){return ae(hn),hn.length?Fe(new AsyncValidationError(hn,convertFieldsError(hn))):Ne(ie)},At=flattenObjArr($);asyncSerialArray(At,oe,ze)});return le.catch(function(Ne){return Ne}),le}var pe=z.firstFields===!0?Object.keys($):z.firstFields||[],_e=Object.keys($),Ce=_e.length,$e=0,xe=[],Ie=new Promise(function(Ne,Fe){var ze=function(Lt){if(xe.push.apply(xe,Lt),$e++,$e===Ce)return ae(xe),xe.length?Fe(new AsyncValidationError(xe,convertFieldsError(xe))):Ne(ie)};_e.length||(ae(xe),Ne(ie)),_e.forEach(function(At){var Lt=$[At];pe.indexOf(At)!==-1?asyncSerialArray(Lt,oe,ze):asyncParallelArray(Lt,oe,ze)})});return Ie.catch(function(Ne){return Ne}),Ie}function isErrorObj($){return!!($&&$.message!==void 0)}function getValue($,z){for(var oe=$,ae=0;ae<z.length;ae++){if(oe==null)return oe;oe=oe[z[ae]]}return oe}function complementError($,z){return function(oe){var ae;return $.fullFields?ae=getValue(z,$.fullFields):ae=z[oe.field||$.fullField],isErrorObj(oe)?(oe.field=oe.field||$.fullField,oe.fieldValue=ae,oe):{message:typeof oe=="function"?oe():oe,fieldValue:ae,field:oe.field||$.fullField}}}function deepMerge($,z){if(z){for(var oe in z)if(z.hasOwnProperty(oe)){var ae=z[oe];typeof ae=="object"&&typeof $[oe]=="object"?$[oe]=_extends({},$[oe],ae):$[oe]=ae}}return $}var required$1=function(z,oe,ae,ie,le,pe){z.required&&(!ae.hasOwnProperty(z.field)||isEmptyValue(oe,pe||z.type))&&ie.push(format$2(le.messages.required,z.fullField))},whitespace=function(z,oe,ae,ie,le){(/^\s+$/.test(oe)||oe==="")&&ie.push(format$2(le.messages.whitespace,z.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var $="[a-fA-F\\d:]",z=function(bn){return bn&&bn.includeBoundaries?"(?:(?<=\\s|^)(?="+$+")|(?<="+$+")(?=\\s|$))":""},oe="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ae="[a-fA-F\\d]{1,4}",ie=(`
|
||
(?:
|
||
(?:`+ae+":){7}(?:"+ae+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+ae+":){6}(?:"+oe+"|:"+ae+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+ae+":){5}(?::"+oe+"|(?::"+ae+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+ae+":){4}(?:(?::"+ae+"){0,1}:"+oe+"|(?::"+ae+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+ae+":){3}(?:(?::"+ae+"){0,2}:"+oe+"|(?::"+ae+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+ae+":){2}(?:(?::"+ae+"){0,3}:"+oe+"|(?::"+ae+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+ae+":){1}(?:(?::"+ae+"){0,4}:"+oe+"|(?::"+ae+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+ae+"){0,5}:"+oe+"|(?::"+ae+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),le=new RegExp("(?:^"+oe+"$)|(?:^"+ie+"$)"),pe=new RegExp("^"+oe+"$"),_e=new RegExp("^"+ie+"$"),Ce=function(bn){return bn&&bn.exact?le:new RegExp("(?:"+z(bn)+oe+z(bn)+")|(?:"+z(bn)+ie+z(bn)+")","g")};Ce.v4=function(_n){return _n&&_n.exact?pe:new RegExp(""+z(_n)+oe+z(_n),"g")},Ce.v6=function(_n){return _n&&_n.exact?_e:new RegExp(""+z(_n)+ie+z(_n),"g")};var $e="(?:(?:[a-z]+:)?//)",xe="(?:\\S+(?::\\S*)?@)?",Ie=Ce.v4().source,Ne=Ce.v6().source,Fe="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",ze="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",At="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Lt="(?::\\d{2,5})?",hn='(?:[/?#][^\\s"]*)?',vn="(?:"+$e+"|www\\.)"+xe+"(?:localhost|"+Ie+"|"+Ne+"|"+Fe+ze+At+")"+Lt+hn;return urlReg=new RegExp("(?:^"+vn+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$1={integer:function(z){return types$1.number(z)&&parseInt(z,10)===z},float:function(z){return types$1.number(z)&&!types$1.integer(z)},array:function(z){return Array.isArray(z)},regexp:function(z){if(z instanceof RegExp)return!0;try{return!!new RegExp(z)}catch{return!1}},date:function(z){return typeof z.getTime=="function"&&typeof z.getMonth=="function"&&typeof z.getYear=="function"&&!isNaN(z.getTime())},number:function(z){return isNaN(z)?!1:typeof z=="number"},object:function(z){return typeof z=="object"&&!types$1.array(z)},method:function(z){return typeof z=="function"},email:function(z){return typeof z=="string"&&z.length<=320&&!!z.match(pattern$2.email)},url:function(z){return typeof z=="string"&&z.length<=2048&&!!z.match(getUrlRegex())},hex:function(z){return typeof z=="string"&&!!z.match(pattern$2.hex)}},type$1=function(z,oe,ae,ie,le){if(z.required&&oe===void 0){required$1(z,oe,ae,ie,le);return}var pe=["integer","float","array","regexp","object","method","email","number","date","url","hex"],_e=z.type;pe.indexOf(_e)>-1?types$1[_e](oe)||ie.push(format$2(le.messages.types[_e],z.fullField,z.type)):_e&&typeof oe!==z.type&&ie.push(format$2(le.messages.types[_e],z.fullField,z.type))},range=function(z,oe,ae,ie,le){var pe=typeof z.len=="number",_e=typeof z.min=="number",Ce=typeof z.max=="number",$e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xe=oe,Ie=null,Ne=typeof oe=="number",Fe=typeof oe=="string",ze=Array.isArray(oe);if(Ne?Ie="number":Fe?Ie="string":ze&&(Ie="array"),!Ie)return!1;ze&&(xe=oe.length),Fe&&(xe=oe.replace($e,"_").length),pe?xe!==z.len&&ie.push(format$2(le.messages[Ie].len,z.fullField,z.len)):_e&&!Ce&&xe<z.min?ie.push(format$2(le.messages[Ie].min,z.fullField,z.min)):Ce&&!_e&&xe>z.max?ie.push(format$2(le.messages[Ie].max,z.fullField,z.max)):_e&&Ce&&(xe<z.min||xe>z.max)&&ie.push(format$2(le.messages[Ie].range,z.fullField,z.min,z.max))},ENUM$1="enum",enumerable$1=function(z,oe,ae,ie,le){z[ENUM$1]=Array.isArray(z[ENUM$1])?z[ENUM$1]:[],z[ENUM$1].indexOf(oe)===-1&&ie.push(format$2(le.messages[ENUM$1],z.fullField,z[ENUM$1].join(", ")))},pattern$1=function(z,oe,ae,ie,le){if(z.pattern){if(z.pattern instanceof RegExp)z.pattern.lastIndex=0,z.pattern.test(oe)||ie.push(format$2(le.messages.pattern.mismatch,z.fullField,oe,z.pattern));else if(typeof z.pattern=="string"){var pe=new RegExp(z.pattern);pe.test(oe)||ie.push(format$2(le.messages.pattern.mismatch,z.fullField,oe,z.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe,"string")&&!z.required)return ae();rules.required(z,oe,ie,pe,le,"string"),isEmptyValue(oe,"string")||(rules.type(z,oe,ie,pe,le),rules.range(z,oe,ie,pe,le),rules.pattern(z,oe,ie,pe,le),z.whitespace===!0&&rules.whitespace(z,oe,ie,pe,le))}ae(pe)},method=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&rules.type(z,oe,ie,pe,le)}ae(pe)},number$3=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(oe===""&&(oe=void 0),isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&(rules.type(z,oe,ie,pe,le),rules.range(z,oe,ie,pe,le))}ae(pe)},_boolean=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&rules.type(z,oe,ie,pe,le)}ae(pe)},regexp$1=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),isEmptyValue(oe)||rules.type(z,oe,ie,pe,le)}ae(pe)},integer=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&(rules.type(z,oe,ie,pe,le),rules.range(z,oe,ie,pe,le))}ae(pe)},floatFn=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&(rules.type(z,oe,ie,pe,le),rules.range(z,oe,ie,pe,le))}ae(pe)},array=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(oe==null&&!z.required)return ae();rules.required(z,oe,ie,pe,le,"array"),oe!=null&&(rules.type(z,oe,ie,pe,le),rules.range(z,oe,ie,pe,le))}ae(pe)},object$1=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&rules.type(z,oe,ie,pe,le)}ae(pe)},ENUM="enum",enumerable=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le),oe!==void 0&&rules[ENUM](z,oe,ie,pe,le)}ae(pe)},pattern=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe,"string")&&!z.required)return ae();rules.required(z,oe,ie,pe,le),isEmptyValue(oe,"string")||rules.pattern(z,oe,ie,pe,le)}ae(pe)},date$1=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe,"date")&&!z.required)return ae();if(rules.required(z,oe,ie,pe,le),!isEmptyValue(oe,"date")){var Ce;oe instanceof Date?Ce=oe:Ce=new Date(oe),rules.type(z,Ce,ie,pe,le),Ce&&rules.range(z,Ce.getTime(),ie,pe,le)}}ae(pe)},required=function(z,oe,ae,ie,le){var pe=[],_e=Array.isArray(oe)?"array":typeof oe;rules.required(z,oe,ie,pe,le,_e),ae(pe)},type=function(z,oe,ae,ie,le){var pe=z.type,_e=[],Ce=z.required||!z.required&&ie.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(oe,pe)&&!z.required)return ae();rules.required(z,oe,ie,_e,le,pe),isEmptyValue(oe,pe)||rules.type(z,oe,ie,_e,le)}ae(_e)},any=function(z,oe,ae,ie,le){var pe=[],_e=z.required||!z.required&&ie.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,ie,pe,le)}ae(pe)},validators$2={string,method,number:number$3,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object:object$1,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 z=JSON.parse(JSON.stringify(this));return z.clone=this.clone,z}}}var messages=newMessages(),Schema=function(){function $(oe){this.rules=null,this._messages=messages,this.define(oe)}var z=$.prototype;return z.define=function(ae){var ie=this;if(!ae)throw new Error("Cannot configure a schema with no rules");if(typeof ae!="object"||Array.isArray(ae))throw new Error("Rules must be an object");this.rules={},Object.keys(ae).forEach(function(le){var pe=ae[le];ie.rules[le]=Array.isArray(pe)?pe:[pe]})},z.messages=function(ae){return ae&&(this._messages=deepMerge(newMessages(),ae)),this._messages},z.validate=function(ae,ie,le){var pe=this;ie===void 0&&(ie={}),le===void 0&&(le=function(){});var _e=ae,Ce=ie,$e=le;if(typeof Ce=="function"&&($e=Ce,Ce={}),!this.rules||Object.keys(this.rules).length===0)return $e&&$e(null,_e),Promise.resolve(_e);function xe(At){var Lt=[],hn={};function vn(bn){if(Array.isArray(bn)){var Cn;Lt=(Cn=Lt).concat.apply(Cn,bn)}else Lt.push(bn)}for(var _n=0;_n<At.length;_n++)vn(At[_n]);Lt.length?(hn=convertFieldsError(Lt),$e(Lt,hn)):$e(null,_e)}if(Ce.messages){var Ie=this.messages();Ie===messages&&(Ie=newMessages()),deepMerge(Ie,Ce.messages),Ce.messages=Ie}else Ce.messages=this.messages();var Ne={},Fe=Ce.keys||Object.keys(this.rules);Fe.forEach(function(At){var Lt=pe.rules[At],hn=_e[At];Lt.forEach(function(vn){var _n=vn;typeof _n.transform=="function"&&(_e===ae&&(_e=_extends({},_e)),hn=_e[At]=_n.transform(hn)),typeof _n=="function"?_n={validator:_n}:_n=_extends({},_n),_n.validator=pe.getValidationMethod(_n),_n.validator&&(_n.field=At,_n.fullField=_n.fullField||At,_n.type=pe.getType(_n),Ne[At]=Ne[At]||[],Ne[At].push({rule:_n,value:hn,source:_e,field:At}))})});var ze={};return asyncMap(Ne,Ce,function(At,Lt){var hn=At.rule,vn=(hn.type==="object"||hn.type==="array")&&(typeof hn.fields=="object"||typeof hn.defaultField=="object");vn=vn&&(hn.required||!hn.required&&At.value),hn.field=At.field;function _n(En,$n){return _extends({},$n,{fullField:hn.fullField+"."+En,fullFields:hn.fullFields?[].concat(hn.fullFields,[En]):[En]})}function bn(En){En===void 0&&(En=[]);var $n=Array.isArray(En)?En:[En];!Ce.suppressWarning&&$n.length&&$.warning("async-validator:",$n),$n.length&&hn.message!==void 0&&($n=[].concat(hn.message));var wn=$n.map(complementError(hn,_e));if(Ce.first&&wn.length)return ze[hn.field]=1,Lt(wn);if(!vn)Lt(wn);else{if(hn.required&&!At.value)return hn.message!==void 0?wn=[].concat(hn.message).map(complementError(hn,_e)):Ce.error&&(wn=[Ce.error(hn,format$2(Ce.messages.required,hn.field))]),Lt(wn);var Tn={};hn.defaultField&&Object.keys(At.value).map(function(An){Tn[An]=hn.defaultField}),Tn=_extends({},Tn,At.rule.fields);var xn={};Object.keys(Tn).forEach(function(An){var On=Tn[An],Mn=Array.isArray(On)?On:[On];xn[An]=Mn.map(_n.bind(null,An))});var kn=new $(xn);kn.messages(Ce.messages),At.rule.options&&(At.rule.options.messages=Ce.messages,At.rule.options.error=Ce.error),kn.validate(At.value,At.rule.options||Ce,function(An){var On=[];wn&&wn.length&&On.push.apply(On,wn),An&&An.length&&On.push.apply(On,An),Lt(On.length?On:null)})}}var Cn;if(hn.asyncValidator)Cn=hn.asyncValidator(hn,At.value,bn,At.source,Ce);else if(hn.validator){try{Cn=hn.validator(hn,At.value,bn,At.source,Ce)}catch(En){console.error==null||console.error(En),Ce.suppressValidatorError||setTimeout(function(){throw En},0),bn(En.message)}Cn===!0?bn():Cn===!1?bn(typeof hn.message=="function"?hn.message(hn.fullField||hn.field):hn.message||(hn.fullField||hn.field)+" fails"):Cn instanceof Array?bn(Cn):Cn instanceof Error&&bn(Cn.message)}Cn&&Cn.then&&Cn.then(function(){return bn()},function(En){return bn(En)})},function(At){xe(At)},_e)},z.getType=function(ae){if(ae.type===void 0&&ae.pattern instanceof RegExp&&(ae.type="pattern"),typeof ae.validator!="function"&&ae.type&&!validators$2.hasOwnProperty(ae.type))throw new Error(format$2("Unknown rule type %s",ae.type));return ae.type||"string"},z.getValidationMethod=function(ae){if(typeof ae.validator=="function")return ae.validator;var ie=Object.keys(ae),le=ie.indexOf("message");return le!==-1&&ie.splice(le,1),ie.length===1&&ie[0]==="required"?validators$2.required:validators$2[this.getType(ae)]||void 0},$}();Schema.register=function(z,oe){if(typeof oe!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[z]=oe};Schema.warning=warning$1;Schema.messages=messages;Schema.validators=validators$2;const formItemValidateStates=["","error","validating","success"],formItemProps=buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:definePropType([Object,Array])},error:String,validateStatus:{type:String,values:formItemValidateStates},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes}}),COMPONENT_NAME$l="ElLabelWrap";var FormLabelWrap=defineComponent({name:COMPONENT_NAME$l,props:{isAutoWidth:Boolean,updateAll:Boolean},setup($,{slots:z}){const oe=inject(formContextKey,void 0),ae=inject(formItemContextKey);ae||throwError$1(COMPONENT_NAME$l,"usage: <el-form-item><label-wrap /></el-form-item>");const ie=useNamespace("form"),le=ref(),pe=ref(0),_e=()=>{var xe;if((xe=le.value)!=null&&xe.firstElementChild){const Ie=window.getComputedStyle(le.value.firstElementChild).width;return Math.ceil(Number.parseFloat(Ie))}else return 0},Ce=(xe="update")=>{nextTick(()=>{z.default&&$.isAutoWidth&&(xe==="update"?pe.value=_e():xe==="remove"&&(oe==null||oe.deregisterLabelWidth(pe.value)))})},$e=()=>Ce("update");return onMounted(()=>{$e()}),onBeforeUnmount(()=>{Ce("remove")}),onUpdated(()=>$e()),watch(pe,(xe,Ie)=>{$.updateAll&&(oe==null||oe.registerLabelWidth(xe,Ie))}),useResizeObserver(computed(()=>{var xe,Ie;return(Ie=(xe=le.value)==null?void 0:xe.firstElementChild)!=null?Ie:null}),$e),()=>{var xe,Ie;if(!z)return null;const{isAutoWidth:Ne}=$;if(Ne){const Fe=oe==null?void 0:oe.autoLabelWidth,ze=ae==null?void 0:ae.hasLabel,At={};if(ze&&Fe&&Fe!=="auto"){const Lt=Math.max(0,Number.parseInt(Fe,10)-pe.value),hn=oe.labelPosition==="left"?"marginRight":"marginLeft";Lt&&(At[hn]=`${Lt}px`)}return createVNode("div",{ref:le,class:[ie.be("item","label-wrap")],style:At},[(xe=z.default)==null?void 0:xe.call(z)])}else return createVNode(Fragment,{ref:le},[(Ie=z.default)==null?void 0:Ie.call(z)])}}});const _hoisted_1$14=["role","aria-labelledby"],__default__$1y=defineComponent({name:"ElFormItem"}),_sfc_main$2g=defineComponent({...__default__$1y,props:formItemProps,setup($,{expose:z}){const oe=$,ae=useSlots(),ie=inject(formContextKey,void 0),le=inject(formItemContextKey,void 0),pe=useFormSize(void 0,{formItem:!1}),_e=useNamespace("form-item"),Ce=useId().value,$e=ref([]),xe=ref(""),Ie=refDebounced(xe,100),Ne=ref(""),Fe=ref();let ze,At=!1;const Lt=computed(()=>{if((ie==null?void 0:ie.labelPosition)==="top")return{};const qn=addUnit(oe.labelWidth||(ie==null?void 0:ie.labelWidth)||"");return qn?{width:qn}:{}}),hn=computed(()=>{if((ie==null?void 0:ie.labelPosition)==="top"||ie!=null&&ie.inline)return{};if(!oe.label&&!oe.labelWidth&&Tn)return{};const qn=addUnit(oe.labelWidth||(ie==null?void 0:ie.labelWidth)||"");return!oe.label&&!ae.label?{marginLeft:qn}:{}}),vn=computed(()=>[_e.b(),_e.m(pe.value),_e.is("error",xe.value==="error"),_e.is("validating",xe.value==="validating"),_e.is("success",xe.value==="success"),_e.is("required",Mn.value||oe.required),_e.is("no-asterisk",ie==null?void 0:ie.hideRequiredAsterisk),(ie==null?void 0:ie.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[_e.m("feedback")]:ie==null?void 0:ie.statusIcon}]),_n=computed(()=>isBoolean$3(oe.inlineMessage)?oe.inlineMessage:(ie==null?void 0:ie.inlineMessage)||!1),bn=computed(()=>[_e.e("error"),{[_e.em("error","inline")]:_n.value}]),Cn=computed(()=>oe.prop?isString$7(oe.prop)?oe.prop:oe.prop.join("."):""),En=computed(()=>!!(oe.label||ae.label)),$n=computed(()=>oe.for||$e.value.length===1?$e.value[0]:void 0),wn=computed(()=>!$n.value&&En.value),Tn=!!le,xn=computed(()=>{const qn=ie==null?void 0:ie.model;if(!(!qn||!oe.prop))return getProp(qn,oe.prop).value}),kn=computed(()=>{const{required:qn}=oe,Yn=[];oe.rules&&Yn.push(...castArray$1(oe.rules));const Wn=ie==null?void 0:ie.rules;if(Wn&&oe.prop){const tr=getProp(Wn,oe.prop).value;tr&&Yn.push(...castArray$1(tr))}if(qn!==void 0){const tr=Yn.map((pr,Gn)=>[pr,Gn]).filter(([pr])=>Object.keys(pr).includes("required"));if(tr.length>0)for(const[pr,Gn]of tr)pr.required!==qn&&(Yn[Gn]={...pr,required:qn});else Yn.push({required:qn})}return Yn}),An=computed(()=>kn.value.length>0),On=qn=>kn.value.filter(Wn=>!Wn.trigger||!qn?!0:Array.isArray(Wn.trigger)?Wn.trigger.includes(qn):Wn.trigger===qn).map(({trigger:Wn,...tr})=>tr),Mn=computed(()=>kn.value.some(qn=>qn.required)),Fn=computed(()=>{var qn;return Ie.value==="error"&&oe.showMessage&&((qn=ie==null?void 0:ie.showMessage)!=null?qn:!0)}),Dn=computed(()=>`${oe.label||""}${(ie==null?void 0:ie.labelSuffix)||""}`),Nn=qn=>{xe.value=qn},Vn=qn=>{var Yn,Wn;const{errors:tr,fields:pr}=qn;(!tr||!pr)&&console.error(qn),Nn("error"),Ne.value=tr?(Wn=(Yn=tr==null?void 0:tr[0])==null?void 0:Yn.message)!=null?Wn:`${oe.prop} is required`:"",ie==null||ie.emit("validate",oe.prop,!1,Ne.value)},Bn=()=>{Nn("success"),ie==null||ie.emit("validate",oe.prop,!0,"")},zn=async qn=>{const Yn=Cn.value;return new Schema({[Yn]:qn}).validate({[Yn]:xn.value},{firstFields:!0}).then(()=>(Bn(),!0)).catch(tr=>(Vn(tr),Promise.reject(tr)))},Xn=async(qn,Yn)=>{if(At||!oe.prop)return!1;const Wn=isFunction$5(Yn);if(!An.value)return Yn==null||Yn(!1),!1;const tr=On(qn);return tr.length===0?(Yn==null||Yn(!0),!0):(Nn("validating"),zn(tr).then(()=>(Yn==null||Yn(!0),!0)).catch(pr=>{const{fields:Gn}=pr;return Yn==null||Yn(!1,Gn),Wn?!1:Promise.reject(Gn)}))},Un=()=>{Nn(""),Ne.value="",At=!1},Jn=async()=>{const qn=ie==null?void 0:ie.model;if(!qn||!oe.prop)return;const Yn=getProp(qn,oe.prop);At=!0,Yn.value=clone$4(ze),await nextTick(),Un(),At=!1},lr=qn=>{$e.value.includes(qn)||$e.value.push(qn)},_r=qn=>{$e.value=$e.value.filter(Yn=>Yn!==qn)};watch(()=>oe.error,qn=>{Ne.value=qn||"",Nn(qn?"error":"")},{immediate:!0}),watch(()=>oe.validateStatus,qn=>Nn(qn||""));const ir=reactive({...toRefs(oe),$el:Fe,size:pe,validateState:xe,labelId:Ce,inputIds:$e,isGroup:wn,hasLabel:En,addInputId:lr,removeInputId:_r,resetField:Jn,clearValidate:Un,validate:Xn});return provide(formItemContextKey,ir),onMounted(()=>{oe.prop&&(ie==null||ie.addField(ir),ze=clone$4(xn.value))}),onBeforeUnmount(()=>{ie==null||ie.removeField(ir)}),z({size:pe,validateMessage:Ne,validateState:xe,validate:Xn,clearValidate:Un,resetField:Jn}),(qn,Yn)=>{var Wn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:Fe,class:normalizeClass(unref(vn)),role:unref(wn)?"group":void 0,"aria-labelledby":unref(wn)?unref(Ce):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(Lt).width==="auto","update-all":((Wn=unref(ie))==null?void 0:Wn.labelWidth)==="auto"},{default:withCtx(()=>[unref(En)?(openBlock(),createBlock(resolveDynamicComponent(unref($n)?"label":"div"),{key:0,id:unref(Ce),for:unref($n),class:normalizeClass(unref(_e).e("label")),style:normalizeStyle$1(unref(Lt))},{default:withCtx(()=>[renderSlot(qn.$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(_e).e("content")),style:normalizeStyle$1(unref(hn))},[renderSlot(qn.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(_e).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(Fn)?renderSlot(qn.$slots,"error",{key:0,error:Ne.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(bn))},toDisplayString$1(Ne.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($){const z=window.getComputedStyle($),oe=z.getPropertyValue("box-sizing"),ae=Number.parseFloat(z.getPropertyValue("padding-bottom"))+Number.parseFloat(z.getPropertyValue("padding-top")),ie=Number.parseFloat(z.getPropertyValue("border-bottom-width"))+Number.parseFloat(z.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(pe=>`${pe}:${z.getPropertyValue(pe)}`).join(";"),paddingSize:ae,borderSize:ie,boxSizing:oe}}function calcTextareaHeight($,z=1,oe){var ae;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:ie,borderSize:le,boxSizing:pe,contextStyle:_e}=calculateNodeStyling($);hiddenTextarea.setAttribute("style",`${_e};${HIDDEN_STYLE}`),hiddenTextarea.value=$.value||$.placeholder||"";let Ce=hiddenTextarea.scrollHeight;const $e={};pe==="border-box"?Ce=Ce+le:pe==="content-box"&&(Ce=Ce-ie),hiddenTextarea.value="";const xe=hiddenTextarea.scrollHeight-ie;if(isNumber$5(z)){let Ie=xe*z;pe==="border-box"&&(Ie=Ie+ie+le),Ce=Math.max(Ie,Ce),$e.minHeight=`${Ie}px`}if(isNumber$5(oe)){let Ie=xe*oe;pe==="border-box"&&(Ie=Ie+ie+le),Ce=Math.min(Ie,Ce)}return $e.height=`${Ce}px`,(ae=hiddenTextarea.parentNode)==null||ae.removeChild(hiddenTextarea),hiddenTextarea=void 0,$e}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]:$=>isString$7($),input:$=>isString$7($),change:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,mouseleave:$=>$ instanceof MouseEvent,mouseenter:$=>$ instanceof MouseEvent,keydown:$=>$ instanceof Event,compositionstart:$=>$ instanceof CompositionEvent,compositionupdate:$=>$ instanceof CompositionEvent,compositionend:$=>$ instanceof CompositionEvent},_hoisted_1$13=["role"],_hoisted_2$I=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],_hoisted_3$n=["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($,{expose:z,emit:oe}){const ae=$,ie=useAttrs$1(),le=useSlots(),pe=computed(()=>{const hr={};return ae.containerRole==="combobox"&&(hr["aria-haspopup"]=ie["aria-haspopup"],hr["aria-owns"]=ie["aria-owns"],hr["aria-expanded"]=ie["aria-expanded"]),hr}),_e=computed(()=>[ae.type==="textarea"?Lt.b():At.b(),At.m(Fe.value),At.is("disabled",ze.value),At.is("exceed",Xn.value),{[At.b("group")]:le.prepend||le.append,[At.bm("group","append")]:le.append,[At.bm("group","prepend")]:le.prepend,[At.m("prefix")]:le.prefix||ae.prefixIcon,[At.m("suffix")]:le.suffix||ae.suffixIcon||ae.clearable||ae.showPassword,[At.bm("suffix","password-clear")]:Nn.value&&Vn.value},ie.class]),Ce=computed(()=>[At.e("wrapper"),At.is("focus",_n.value)]),$e=useAttrs({excludeKeys:computed(()=>Object.keys(pe.value))}),{form:xe,formItem:Ie}=useFormItem(),{inputId:Ne}=useFormItemInputId(ae,{formItemContext:Ie}),Fe=useFormSize(),ze=useFormDisabled(),At=useNamespace("input"),Lt=useNamespace("textarea"),hn=shallowRef(),vn=shallowRef(),_n=ref(!1),bn=ref(!1),Cn=ref(!1),En=ref(!1),$n=ref(),wn=shallowRef(ae.inputStyle),Tn=computed(()=>hn.value||vn.value),xn=computed(()=>{var hr;return(hr=xe==null?void 0:xe.statusIcon)!=null?hr:!1}),kn=computed(()=>(Ie==null?void 0:Ie.validateState)||""),An=computed(()=>kn.value&&ValidateComponentsMap[kn.value]),On=computed(()=>En.value?view_default:hide_default),Mn=computed(()=>[ie.style,ae.inputStyle]),Fn=computed(()=>[ae.inputStyle,wn.value,{resize:ae.resize}]),Dn=computed(()=>isNil(ae.modelValue)?"":String(ae.modelValue)),Nn=computed(()=>ae.clearable&&!ze.value&&!ae.readonly&&!!Dn.value&&(_n.value||bn.value)),Vn=computed(()=>ae.showPassword&&!ze.value&&!ae.readonly&&!!Dn.value&&(!!Dn.value||_n.value)),Bn=computed(()=>ae.showWordLimit&&!!$e.value.maxlength&&(ae.type==="text"||ae.type==="textarea")&&!ze.value&&!ae.readonly&&!ae.showPassword),zn=computed(()=>Dn.value.length),Xn=computed(()=>!!Bn.value&&zn.value>Number($e.value.maxlength)),Un=computed(()=>!!le.suffix||!!ae.suffixIcon||Nn.value||ae.showPassword||Bn.value||!!kn.value&&xn.value),[Jn,lr]=useCursor(hn);useResizeObserver(vn,hr=>{if(qn(),!Bn.value||ae.resize!=="both")return;const Ar=hr[0],{width:Dr}=Ar.contentRect;$n.value={right:`calc(100% - ${Dr+15+6}px)`}});const _r=()=>{const{type:hr,autosize:Ar}=ae;if(!(!isClient$2||hr!=="textarea"||!vn.value))if(Ar){const Dr=isObject$8(Ar)?Ar.minRows:void 0,Lr=isObject$8(Ar)?Ar.maxRows:void 0,Mr=calcTextareaHeight(vn.value,Dr,Lr);wn.value={overflowY:"hidden",...Mr},nextTick(()=>{vn.value.offsetHeight,wn.value=Mr})}else wn.value={minHeight:calcTextareaHeight(vn.value).minHeight}},qn=(hr=>{let Ar=!1;return()=>{var Dr;if(Ar||!ae.autosize)return;((Dr=vn.value)==null?void 0:Dr.offsetParent)===null||(hr(),Ar=!0)}})(_r),Yn=()=>{const hr=Tn.value;!hr||hr.value===Dn.value||(hr.value=Dn.value)},Wn=async hr=>{Jn();let{value:Ar}=hr.target;if(ae.formatter&&(Ar=ae.parser?ae.parser(Ar):Ar,Ar=ae.formatter(Ar)),!Cn.value){if(Ar===Dn.value){Yn();return}oe(UPDATE_MODEL_EVENT,Ar),oe("input",Ar),await nextTick(),Yn(),lr()}},tr=hr=>{oe("change",hr.target.value)},pr=hr=>{oe("compositionstart",hr),Cn.value=!0},Gn=hr=>{var Ar;oe("compositionupdate",hr);const Dr=(Ar=hr.target)==null?void 0:Ar.value,Lr=Dr[Dr.length-1]||"";Cn.value=!isKorean(Lr)},Zn=hr=>{oe("compositionend",hr),Cn.value&&(Cn.value=!1,Wn(hr))},rr=()=>{En.value=!En.value,mr()},mr=async()=>{var hr;await nextTick(),(hr=Tn.value)==null||hr.focus()},Sr=()=>{var hr;return(hr=Tn.value)==null?void 0:hr.blur()},ar=hr=>{_n.value=!0,oe("focus",hr)},xr=hr=>{var Ar;_n.value=!1,oe("blur",hr),ae.validateEvent&&((Ar=Ie==null?void 0:Ie.validate)==null||Ar.call(Ie,"blur").catch(Dr=>void 0))},gr=hr=>{bn.value=!1,oe("mouseleave",hr)},Pr=hr=>{bn.value=!0,oe("mouseenter",hr)},dr=hr=>{oe("keydown",hr)},sr=()=>{var hr;(hr=Tn.value)==null||hr.select()},cr=()=>{oe(UPDATE_MODEL_EVENT,""),oe("change",""),oe("clear"),oe("input","")};return watch(()=>ae.modelValue,()=>{var hr;nextTick(()=>_r()),ae.validateEvent&&((hr=Ie==null?void 0:Ie.validate)==null||hr.call(Ie,"change").catch(Ar=>void 0))}),watch(Dn,()=>Yn()),watch(()=>ae.type,async()=>{await nextTick(),Yn(),_r()}),onMounted(()=>{!ae.formatter&&ae.parser,Yn(),nextTick(_r)}),z({input:hn,textarea:vn,ref:Tn,textareaStyle:Fn,autosize:toRef$1(ae,"autosize"),focus:mr,blur:Sr,select:sr,clear:cr,resizeTextarea:_r}),(hr,Ar)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(pe),{class:unref(_e),style:unref(Mn),role:hr.containerRole,onMouseenter:Pr,onMouseleave:gr}),[createCommentVNode(" input "),hr.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),hr.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(At).be("group","prepend"))},[renderSlot(hr.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce))},[createCommentVNode(" prefix slot "),hr.$slots.prefix||hr.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(At).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(At).e("prefix-inner")),onClick:mr},[renderSlot(hr.$slots,"prefix"),hr.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(At).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hr.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(Ne),ref_key:"input",ref:hn,class:unref(At).e("inner")},unref($e),{type:hr.showPassword?En.value?"text":"password":hr.type,disabled:unref(ze),formatter:hr.formatter,parser:hr.parser,readonly:hr.readonly,autocomplete:hr.autocomplete,tabindex:hr.tabindex,"aria-label":hr.label,placeholder:hr.placeholder,style:hr.inputStyle,form:ae.form,onCompositionstart:pr,onCompositionupdate:Gn,onCompositionend:Zn,onInput:Wn,onFocus:ar,onBlur:xr,onChange:tr,onKeydown:dr}),null,16,_hoisted_2$I),createCommentVNode(" suffix slot "),unref(Un)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(At).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(At).e("suffix-inner")),onClick:mr},[!unref(Nn)||!unref(Vn)||!unref(Bn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(hr.$slots,"suffix"),hr.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(At).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hr.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(Nn)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(At).e("icon"),unref(At).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:cr},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Vn)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(At).e("icon"),unref(At).e("password")]),onClick:rr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(On))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Bn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(At).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(At).e("count-inner"))},toDisplayString$1(unref(zn))+" / "+toDisplayString$1(unref($e).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(kn)&&unref(An)&&unref(xn)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(At).e("icon"),unref(At).e("validateIcon"),unref(At).is("loading",unref(kn)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(An))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),hr.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(At).be("group","append"))},[renderSlot(hr.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(Ne),ref_key:"textarea",ref:vn,class:unref(Lt).e("inner")},unref($e),{tabindex:hr.tabindex,disabled:unref(ze),readonly:hr.readonly,autocomplete:hr.autocomplete,style:unref(Fn),"aria-label":hr.label,placeholder:hr.placeholder,form:ae.form,onCompositionstart:pr,onCompositionupdate:Gn,onCompositionend:Zn,onInput:Wn,onFocus:ar,onBlur:xr,onChange:tr,onKeydown:dr}),null,16,_hoisted_3$n),unref(Bn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1($n.value),class:normalizeClass(unref(At).e("count"))},toDisplayString$1(unref(zn))+" / "+toDisplayString$1(unref($e).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$13)),[[vShow,hr.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:$,size:z,bar:oe})=>({[oe.size]:z,transform:`translate${oe.axis}(${$}%)`}),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($){const z=$,oe=inject(scrollbarContextKey),ae=useNamespace("scrollbar");oe||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const ie=ref(),le=ref(),pe=ref({}),_e=ref(!1);let Ce=!1,$e=!1,xe=isClient$2?document.onselectstart:null;const Ie=computed(()=>BAR_MAP[z.vertical?"vertical":"horizontal"]),Ne=computed(()=>renderThumbStyle$1({size:z.size,move:z.move,bar:Ie.value})),Fe=computed(()=>ie.value[Ie.value.offset]**2/oe.wrapElement[Ie.value.scrollSize]/z.ratio/le.value[Ie.value.offset]),ze=En=>{var $n;if(En.stopPropagation(),En.ctrlKey||[1,2].includes(En.button))return;($n=window.getSelection())==null||$n.removeAllRanges(),Lt(En);const wn=En.currentTarget;wn&&(pe.value[Ie.value.axis]=wn[Ie.value.offset]-(En[Ie.value.client]-wn.getBoundingClientRect()[Ie.value.direction]))},At=En=>{if(!le.value||!ie.value||!oe.wrapElement)return;const $n=Math.abs(En.target.getBoundingClientRect()[Ie.value.direction]-En[Ie.value.client]),wn=le.value[Ie.value.offset]/2,Tn=($n-wn)*100*Fe.value/ie.value[Ie.value.offset];oe.wrapElement[Ie.value.scroll]=Tn*oe.wrapElement[Ie.value.scrollSize]/100},Lt=En=>{En.stopImmediatePropagation(),Ce=!0,document.addEventListener("mousemove",hn),document.addEventListener("mouseup",vn),xe=document.onselectstart,document.onselectstart=()=>!1},hn=En=>{if(!ie.value||!le.value||Ce===!1)return;const $n=pe.value[Ie.value.axis];if(!$n)return;const wn=(ie.value.getBoundingClientRect()[Ie.value.direction]-En[Ie.value.client])*-1,Tn=le.value[Ie.value.offset]-$n,xn=(wn-Tn)*100*Fe.value/ie.value[Ie.value.offset];oe.wrapElement[Ie.value.scroll]=xn*oe.wrapElement[Ie.value.scrollSize]/100},vn=()=>{Ce=!1,pe.value[Ie.value.axis]=0,document.removeEventListener("mousemove",hn),document.removeEventListener("mouseup",vn),Cn(),$e&&(_e.value=!1)},_n=()=>{$e=!1,_e.value=!!z.size},bn=()=>{$e=!0,_e.value=Ce};onBeforeUnmount(()=>{Cn(),document.removeEventListener("mouseup",vn)});const Cn=()=>{document.onselectstart!==xe&&(document.onselectstart=xe)};return useEventListener$1(toRef$1(oe,"scrollbarElement"),"mousemove",_n),useEventListener$1(toRef$1(oe,"scrollbarElement"),"mouseleave",bn),(En,$n)=>(openBlock(),createBlock(Transition,{name:unref(ae).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:ie,class:normalizeClass([unref(ae).e("bar"),unref(ae).is(unref(Ie).key)]),onMousedown:At},[createBaseVNode("div",{ref_key:"thumb",ref:le,class:normalizeClass(unref(ae).e("thumb")),style:normalizeStyle$1(unref(Ne)),onMousedown:ze},null,38)],34),[[vShow,En.always||_e.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($,{expose:z}){const oe=$,ae=ref(0),ie=ref(0);return z({handleScroll:pe=>{if(pe){const _e=pe.offsetHeight-GAP,Ce=pe.offsetWidth-GAP;ie.value=pe.scrollTop*100/_e*oe.ratioY,ae.value=pe.scrollLeft*100/Ce*oe.ratioX}}}),(pe,_e)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:ae.value,ratio:pe.ratioX,size:pe.width,always:pe.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:ie.value,ratio:pe.ratioY,size:pe.height,vertical:"",always:pe.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:$,scrollLeft:z})=>[$,z].every(isNumber$5)},COMPONENT_NAME$j="ElScrollbar",__default__$1w=defineComponent({name:COMPONENT_NAME$j}),_sfc_main$2c=defineComponent({...__default__$1w,props:scrollbarProps,emits:scrollbarEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=useNamespace("scrollbar");let le,pe;const _e=ref(),Ce=ref(),$e=ref(),xe=ref("0"),Ie=ref("0"),Ne=ref(),Fe=ref(1),ze=ref(1),At=computed(()=>{const $n={};return ae.height&&($n.height=addUnit(ae.height)),ae.maxHeight&&($n.maxHeight=addUnit(ae.maxHeight)),[ae.wrapStyle,$n]}),Lt=computed(()=>[ae.wrapClass,ie.e("wrap"),{[ie.em("wrap","hidden-default")]:!ae.native}]),hn=computed(()=>[ie.e("view"),ae.viewClass]),vn=()=>{var $n;Ce.value&&(($n=Ne.value)==null||$n.handleScroll(Ce.value),oe("scroll",{scrollTop:Ce.value.scrollTop,scrollLeft:Ce.value.scrollLeft}))};function _n($n,wn){isObject$8($n)?Ce.value.scrollTo($n):isNumber$5($n)&&isNumber$5(wn)&&Ce.value.scrollTo($n,wn)}const bn=$n=>{isNumber$5($n)&&(Ce.value.scrollTop=$n)},Cn=$n=>{isNumber$5($n)&&(Ce.value.scrollLeft=$n)},En=()=>{if(!Ce.value)return;const $n=Ce.value.offsetHeight-GAP,wn=Ce.value.offsetWidth-GAP,Tn=$n**2/Ce.value.scrollHeight,xn=wn**2/Ce.value.scrollWidth,kn=Math.max(Tn,ae.minSize),An=Math.max(xn,ae.minSize);Fe.value=Tn/($n-Tn)/(kn/($n-kn)),ze.value=xn/(wn-xn)/(An/(wn-An)),Ie.value=kn+GAP<$n?`${kn}px`:"",xe.value=An+GAP<wn?`${An}px`:""};return watch(()=>ae.noresize,$n=>{$n?(le==null||le(),pe==null||pe()):({stop:le}=useResizeObserver($e,En),pe=useEventListener$1("resize",En))},{immediate:!0}),watch(()=>[ae.maxHeight,ae.height],()=>{ae.native||nextTick(()=>{var $n;En(),Ce.value&&(($n=Ne.value)==null||$n.handleScroll(Ce.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:_e,wrapElement:Ce})),onMounted(()=>{ae.native||nextTick(()=>{En()})}),onUpdated(()=>En()),z({wrapRef:Ce,update:En,scrollTo:_n,setScrollTop:bn,setScrollLeft:Cn,handleScroll:vn}),($n,wn)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:_e,class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:Ce,class:normalizeClass(unref(Lt)),style:normalizeStyle$1(unref(At)),onScroll:vn},[(openBlock(),createBlock(resolveDynamicComponent($n.tag),{ref_key:"resizeRef",ref:$e,class:normalizeClass(unref(hn)),style:normalizeStyle$1($n.viewStyle)},{default:withCtx(()=>[renderSlot($n.$slots,"default")]),_:3},8,["class","style"]))],38),$n.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:Ne,height:Ie.value,width:xe.value,always:$n.always,"ratio-x":ze.value,"ratio-y":Fe.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($,{expose:z}){const oe=$,ae=ref(),ie=ref(),le=ref(),pe=ref(),_e=computed(()=>oe.role),Ce={triggerRef:ae,popperInstanceRef:ie,contentRef:le,referenceRef:pe,role:_e};return z(Ce),provide(POPPER_INJECTION_KEY,Ce),($e,xe)=>renderSlot($e.$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($,{expose:z}){const oe=$,ae=useNamespace("popper"),{arrowOffset:ie,arrowRef:le,arrowStyle:pe}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>oe.arrowOffset,_e=>{ie.value=_e}),onBeforeUnmount(()=>{le.value=void 0}),z({arrowRef:le}),(_e,Ce)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:le,class:normalizeClass(unref(ae).e("arrow")),style:normalizeStyle$1(unref(pe)),"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($,{slots:z,attrs:oe}){var ae;const ie=inject(FORWARD_REF_INJECTION_KEY),le=useForwardRefDirective((ae=ie==null?void 0:ie.setForwardRef)!=null?ae:NOOP);return()=>{var pe;const _e=(pe=z.default)==null?void 0:pe.call(z,oe);if(!_e||_e.length>1)return null;const Ce=findFirstLegitChild(_e);return Ce?withDirectives(cloneVNode(Ce,oe),[[le]]):null}}});function findFirstLegitChild($){if(!$)return null;const z=$;for(const oe of z){if(isObject$8(oe))switch(oe.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent(oe);case Fragment:return findFirstLegitChild(oe.children);default:return oe}return wrapTextContent(oe)}return null}function wrapTextContent($){const z=useNamespace("only-child");return createVNode("span",{class:z.e("content")},[$])}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($,{expose:z}){const oe=$,{role:ae,triggerRef:ie}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(ie);const le=computed(()=>_e.value?oe.id:void 0),pe=computed(()=>{if(ae&&ae.value==="tooltip")return oe.open&&oe.id?oe.id:void 0}),_e=computed(()=>{if(ae&&ae.value!=="tooltip")return ae.value}),Ce=computed(()=>_e.value?`${oe.open}`:void 0);let $e;return onMounted(()=>{watch(()=>oe.virtualRef,xe=>{xe&&(ie.value=unrefElement$1(xe))},{immediate:!0}),watch(ie,(xe,Ie)=>{$e==null||$e(),$e=void 0,isElement$2(xe)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(Ne=>{var Fe;const ze=oe[Ne];ze&&(xe.addEventListener(Ne.slice(2).toLowerCase(),ze),(Fe=Ie==null?void 0:Ie.removeEventListener)==null||Fe.call(Ie,Ne.slice(2).toLowerCase(),ze))}),$e=watch([le,pe,_e,Ce],Ne=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((Fe,ze)=>{isNil(Ne[ze])?xe.removeAttribute(Fe):xe.setAttribute(Fe,Ne[ze])})},{immediate:!0})),isElement$2(Ie)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(Ne=>Ie.removeAttribute(Ne))},{immediate:!0})}),onBeforeUnmount(()=>{$e==null||$e(),$e=void 0}),z({triggerRef:ie}),(xe,Ie)=>xe.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},xe.$attrs,{"aria-controls":unref(le),"aria-describedby":unref(pe),"aria-expanded":unref(Ce),"aria-haspopup":unref(_e)}),{default:withCtx(()=>[renderSlot(xe.$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=$=>{const z=[],oe=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:ae=>{const ie=ae.tagName==="INPUT"&&ae.type==="hidden";return ae.disabled||ae.hidden||ie?NodeFilter.FILTER_SKIP:ae.tabIndex>=0||ae===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;oe.nextNode();)z.push(oe.currentNode);return z},getVisibleElement=($,z)=>{for(const oe of $)if(!isHidden(oe,z))return oe},isHidden=($,z)=>{if(getComputedStyle($).visibility==="hidden")return!0;for(;$;){if(z&&$===z)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1},getEdges=$=>{const z=obtainAllFocusableElements($),oe=getVisibleElement(z,$),ae=getVisibleElement(z.reverse(),$);return[oe,ae]},isSelectable=$=>$ instanceof HTMLInputElement&&"select"in $,tryFocus=($,z)=>{if($&&$.focus){const oe=document.activeElement;$.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),$!==oe&&isSelectable($)&&z&&$.select()}};function removeFromStack($,z){const oe=[...$],ae=$.indexOf(z);return ae!==-1&&oe.splice(ae,1),oe}const createFocusableStack=()=>{let $=[];return{push:ae=>{const ie=$[0];ie&&ae!==ie&&ie.pause(),$=removeFromStack($,ae),$.unshift(ae)},remove:ae=>{var ie,le;$=removeFromStack($,ae),(le=(ie=$[0])==null?void 0:ie.resume)==null||le.call(ie)}}},focusFirstDescendant=($,z=!1)=>{const oe=document.activeElement;for(const ae of $)if(tryFocus(ae,z),document.activeElement!==oe)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=$=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:$}),_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($,{emit:z}){const oe=ref();let ae,ie;const{focusReason:le}=useFocusReason();useEscapeKeydown(ze=>{$.trapped&&!pe.paused&&z("release-requested",ze)});const pe={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},_e=ze=>{if(!$.loop&&!$.trapped||pe.paused)return;const{key:At,altKey:Lt,ctrlKey:hn,metaKey:vn,currentTarget:_n,shiftKey:bn}=ze,{loop:Cn}=$,En=At===EVENT_CODE.tab&&!Lt&&!hn&&!vn,$n=document.activeElement;if(En&&$n){const wn=_n,[Tn,xn]=getEdges(wn);if(Tn&&xn){if(!bn&&$n===xn){const An=createFocusOutPreventedEvent({focusReason:le.value});z("focusout-prevented",An),An.defaultPrevented||(ze.preventDefault(),Cn&&tryFocus(Tn,!0))}else if(bn&&[Tn,wn].includes($n)){const An=createFocusOutPreventedEvent({focusReason:le.value});z("focusout-prevented",An),An.defaultPrevented||(ze.preventDefault(),Cn&&tryFocus(xn,!0))}}else if($n===wn){const An=createFocusOutPreventedEvent({focusReason:le.value});z("focusout-prevented",An),An.defaultPrevented||ze.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:oe,onKeydown:_e}),watch(()=>$.focusTrapEl,ze=>{ze&&(oe.value=ze)},{immediate:!0}),watch([oe],([ze],[At])=>{ze&&(ze.addEventListener("keydown",_e),ze.addEventListener("focusin",xe),ze.addEventListener("focusout",Ie)),At&&(At.removeEventListener("keydown",_e),At.removeEventListener("focusin",xe),At.removeEventListener("focusout",Ie))});const Ce=ze=>{z(ON_TRAP_FOCUS_EVT,ze)},$e=ze=>z(ON_RELEASE_FOCUS_EVT,ze),xe=ze=>{const At=unref(oe);if(!At)return;const Lt=ze.target,hn=ze.relatedTarget,vn=Lt&&At.contains(Lt);$.trapped||hn&&At.contains(hn)||(ae=hn),vn&&z("focusin",ze),!pe.paused&&$.trapped&&(vn?ie=Lt:tryFocus(ie,!0))},Ie=ze=>{const At=unref(oe);if(!(pe.paused||!At))if($.trapped){const Lt=ze.relatedTarget;!isNil(Lt)&&!At.contains(Lt)&&setTimeout(()=>{if(!pe.paused&&$.trapped){const hn=createFocusOutPreventedEvent({focusReason:le.value});z("focusout-prevented",hn),hn.defaultPrevented||tryFocus(ie,!0)}},0)}else{const Lt=ze.target;Lt&&At.contains(Lt)||z("focusout",ze)}};async function Ne(){await nextTick();const ze=unref(oe);if(ze){focusableStack.push(pe);const At=ze.contains(document.activeElement)?ae:document.activeElement;if(ae=At,!ze.contains(At)){const hn=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);ze.addEventListener(FOCUS_AFTER_TRAPPED,Ce),ze.dispatchEvent(hn),hn.defaultPrevented||nextTick(()=>{let vn=$.focusStartEl;isString$7(vn)||(tryFocus(vn),document.activeElement!==vn&&(vn="first")),vn==="first"&&focusFirstDescendant(obtainAllFocusableElements(ze),!0),(document.activeElement===At||vn==="container")&&tryFocus(ze)})}}}function Fe(){const ze=unref(oe);if(ze){ze.removeEventListener(FOCUS_AFTER_TRAPPED,Ce);const At=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:le.value}});ze.addEventListener(FOCUS_AFTER_RELEASED,$e),ze.dispatchEvent(At),!At.defaultPrevented&&(le.value=="keyboard"||!isFocusCausedByUserEvent()||ze.contains(document.activeElement))&&tryFocus(ae??document.body),ze.removeEventListener(FOCUS_AFTER_RELEASED,Ce),focusableStack.remove(pe)}}return onMounted(()=>{$.trapped&&Ne(),watch(()=>$.trapped,ze=>{ze?Ne():Fe()})}),onBeforeUnmount(()=>{$.trapped&&Fe()}),{onKeydown:_e}}});function _sfc_render$w($,z,oe,ae,ie,le){return renderSlot($.$slots,"default",{handleKeydown:$.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:$=>$ instanceof MouseEvent,mouseleave:$=>$ instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},buildPopperOptions=($,z=[])=>{const{placement:oe,strategy:ae,popperOptions:ie}=$,le={placement:oe,strategy:ae,...ie,modifiers:[...genModifiers($),...z]};return deriveExtraModifiers(le,ie==null?void 0:ie.modifiers),le},unwrapMeasurableEl=$=>{if(isClient$2)return unrefElement$1($)};function genModifiers($){const{offset:z,gpuAcceleration:oe,fallbackPlacements:ae}=$;return[{name:"offset",options:{offset:[0,z??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:ae}},{name:"computeStyles",options:{gpuAcceleration:oe}}]}function deriveExtraModifiers($,z){z&&($.modifiers=[...$.modifiers,...z??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=$=>{const{popperInstanceRef:z,contentRef:oe,triggerRef:ae,role:ie}=inject(POPPER_INJECTION_KEY,void 0),le=ref(),pe=ref(),_e=computed(()=>({name:"eventListeners",enabled:!!$.visible})),Ce=computed(()=>{var hn;const vn=unref(le),_n=(hn=unref(pe))!=null?hn:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(vn),options:{element:vn,padding:_n}}}),$e=computed(()=>({onFirstUpdate:()=>{ze()},...buildPopperOptions($,[unref(Ce),unref(_e)])})),xe=computed(()=>unwrapMeasurableEl($.referenceEl)||unref(ae)),{attributes:Ie,state:Ne,styles:Fe,update:ze,forceUpdate:At,instanceRef:Lt}=usePopper(xe,oe,$e);return watch(Lt,hn=>z.value=hn),onMounted(()=>{watch(()=>{var hn;return(hn=unref(xe))==null?void 0:hn.getBoundingClientRect()},()=>{ze()})}),{attributes:Ie,arrowRef:le,contentRef:oe,instanceRef:Lt,state:Ne,styles:Fe,role:ie,forceUpdate:At,update:ze}},usePopperContentDOM=($,{attributes:z,styles:oe,role:ae})=>{const{nextZIndex:ie}=useZIndex(),le=useNamespace("popper"),pe=computed(()=>unref(z).popper),_e=ref($.zIndex||ie()),Ce=computed(()=>[le.b(),le.is("pure",$.pure),le.is($.effect),$.popperClass]),$e=computed(()=>[{zIndex:unref(_e)},$.popperStyle||{},unref(oe).popper]),xe=computed(()=>ae.value==="dialog"?"false":void 0),Ie=computed(()=>unref(oe).arrow||{});return{ariaModal:xe,arrowStyle:Ie,contentAttrs:pe,contentClass:Ce,contentStyle:$e,contentZIndex:_e,updateZIndex:()=>{_e.value=$.zIndex||ie()}}},usePopperContentFocusTrap=($,z)=>{const oe=ref(!1),ae=ref();return{focusStartRef:ae,trapped:oe,onFocusAfterReleased:$e=>{var xe;((xe=$e.detail)==null?void 0:xe.focusReason)!=="pointer"&&(ae.value="first",z("blur"))},onFocusAfterTrapped:()=>{z("focus")},onFocusInTrap:$e=>{$.visible&&!oe.value&&($e.target&&(ae.value=$e.target),oe.value=!0)},onFocusoutPrevented:$e=>{$.trapping||($e.detail.focusReason==="pointer"&&$e.preventDefault(),oe.value=!1)},onReleaseRequested:()=>{oe.value=!1,z("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$27=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup($,{expose:z,emit:oe}){const ae=$,{focusStartRef:ie,trapped:le,onFocusAfterReleased:pe,onFocusAfterTrapped:_e,onFocusInTrap:Ce,onFocusoutPrevented:$e,onReleaseRequested:xe}=usePopperContentFocusTrap(ae,oe),{attributes:Ie,arrowRef:Ne,contentRef:Fe,styles:ze,instanceRef:At,role:Lt,update:hn}=usePopperContent(ae),{ariaModal:vn,arrowStyle:_n,contentAttrs:bn,contentClass:Cn,contentStyle:En,updateZIndex:$n}=usePopperContentDOM(ae,{styles:ze,attributes:Ie,role:Lt}),wn=inject(formItemContextKey,void 0),Tn=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:_n,arrowRef:Ne,arrowOffset:Tn}),wn&&(wn.addInputId||wn.removeInputId)&&provide(formItemContextKey,{...wn,addInputId:NOOP,removeInputId:NOOP});let xn;const kn=(On=!0)=>{hn(),On&&$n()},An=()=>{kn(!1),ae.visible&&ae.focusOnShow?le.value=!0:ae.visible===!1&&(le.value=!1)};return onMounted(()=>{watch(()=>ae.triggerTargetEl,(On,Mn)=>{xn==null||xn(),xn=void 0;const Fn=unref(On||Fe.value),Dn=unref(Mn||Fe.value);isElement$2(Fn)&&(xn=watch([Lt,()=>ae.ariaLabel,vn,()=>ae.id],Nn=>{["role","aria-label","aria-modal","id"].forEach((Vn,Bn)=>{isNil(Nn[Bn])?Fn.removeAttribute(Vn):Fn.setAttribute(Vn,Nn[Bn])})},{immediate:!0})),Dn!==Fn&&isElement$2(Dn)&&["role","aria-label","aria-modal","id"].forEach(Nn=>{Dn.removeAttribute(Nn)})},{immediate:!0}),watch(()=>ae.visible,An,{immediate:!0})}),onBeforeUnmount(()=>{xn==null||xn(),xn=void 0}),z({popperContentRef:Fe,popperInstanceRef:At,updatePopper:kn,contentStyle:En}),(On,Mn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:Fe},unref(bn),{style:unref(En),class:unref(Cn),tabindex:"-1",onMouseenter:Mn[0]||(Mn[0]=Fn=>On.$emit("mouseenter",Fn)),onMouseleave:Mn[1]||(Mn[1]=Fn=>On.$emit("mouseleave",Fn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(le),"trap-on-focus-in":!0,"focus-trap-el":unref(Fe),"focus-start-el":unref(ie),onFocusAfterTrapped:unref(_e),onFocusAfterReleased:unref(pe),onFocusin:unref(Ce),onFocusoutPrevented:unref($e),onReleaseRequested:unref(xe)},{default:withCtx(()=>[renderSlot(On.$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=($,z)=>isArray$c($)?$.includes(z):$===z,whenTrigger=($,z,oe)=>ae=>{isTriggerType(unref($),z)&&oe(ae)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$26=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup($,{expose:z}){const oe=$,ae=useNamespace("tooltip"),{controlled:ie,id:le,open:pe,onOpen:_e,onClose:Ce,onToggle:$e}=inject(TOOLTIP_INJECTION_KEY,void 0),xe=ref(null),Ie=()=>{if(unref(ie)||oe.disabled)return!0},Ne=toRef$1(oe,"trigger"),Fe=composeEventHandlers(Ie,whenTrigger(Ne,"hover",_e)),ze=composeEventHandlers(Ie,whenTrigger(Ne,"hover",Ce)),At=composeEventHandlers(Ie,whenTrigger(Ne,"click",bn=>{bn.button===0&&$e(bn)})),Lt=composeEventHandlers(Ie,whenTrigger(Ne,"focus",_e)),hn=composeEventHandlers(Ie,whenTrigger(Ne,"focus",Ce)),vn=composeEventHandlers(Ie,whenTrigger(Ne,"contextmenu",bn=>{bn.preventDefault(),$e(bn)})),_n=composeEventHandlers(Ie,bn=>{const{code:Cn}=bn;oe.triggerKeys.includes(Cn)&&(bn.preventDefault(),$e(bn))});return z({triggerRef:xe}),(bn,Cn)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(le),"virtual-ref":bn.virtualRef,open:unref(pe),"virtual-triggering":bn.virtualTriggering,class:normalizeClass(unref(ae).e("trigger")),onBlur:unref(hn),onClick:unref(At),onContextmenu:unref(vn),onFocus:unref(Lt),onMouseenter:unref(Fe),onMouseleave:unref(ze),onKeydown:unref(_n)},{default:withCtx(()=>[renderSlot(bn.$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($,{expose:z}){const oe=$,{selector:ae}=usePopperContainerId(),ie=useNamespace("tooltip"),le=ref(null),pe=ref(!1),{controlled:_e,id:Ce,open:$e,trigger:xe,onClose:Ie,onOpen:Ne,onShow:Fe,onHide:ze,onBeforeShow:At,onBeforeHide:Lt}=inject(TOOLTIP_INJECTION_KEY,void 0),hn=computed(()=>oe.transition||`${ie.namespace.value}-fade-in-linear`),vn=computed(()=>oe.persistent);onBeforeUnmount(()=>{pe.value=!0});const _n=computed(()=>unref(vn)?!0:unref($e)),bn=computed(()=>oe.disabled?!1:unref($e)),Cn=computed(()=>oe.appendTo||ae.value),En=computed(()=>{var Nn;return(Nn=oe.style)!=null?Nn:{}}),$n=computed(()=>!unref($e)),wn=()=>{ze()},Tn=()=>{if(unref(_e))return!0},xn=composeEventHandlers(Tn,()=>{oe.enterable&&unref(xe)==="hover"&&Ne()}),kn=composeEventHandlers(Tn,()=>{unref(xe)==="hover"&&Ie()}),An=()=>{var Nn,Vn;(Vn=(Nn=le.value)==null?void 0:Nn.updatePopper)==null||Vn.call(Nn),At==null||At()},On=()=>{Lt==null||Lt()},Mn=()=>{Fe(),Dn=onClickOutside(computed(()=>{var Nn;return(Nn=le.value)==null?void 0:Nn.popperContentRef}),()=>{if(unref(_e))return;unref(xe)!=="hover"&&Ie()})},Fn=()=>{oe.virtualTriggering||Ie()};let Dn;return watch(()=>unref($e),Nn=>{Nn||Dn==null||Dn()},{flush:"post"}),watch(()=>oe.content,()=>{var Nn,Vn;(Vn=(Nn=le.value)==null?void 0:Nn.updatePopper)==null||Vn.call(Nn)}),z({contentRef:le}),(Nn,Vn)=>(openBlock(),createBlock(Teleport,{disabled:!Nn.teleported,to:unref(Cn)},[createVNode(Transition,{name:unref(hn),onAfterLeave:wn,onBeforeEnter:An,onAfterEnter:Mn,onBeforeLeave:On},{default:withCtx(()=>[unref(_n)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref(Ce),ref_key:"contentRef",ref:le},Nn.$attrs,{"aria-label":Nn.ariaLabel,"aria-hidden":unref($n),"boundaries-padding":Nn.boundariesPadding,"fallback-placements":Nn.fallbackPlacements,"gpu-acceleration":Nn.gpuAcceleration,offset:Nn.offset,placement:Nn.placement,"popper-options":Nn.popperOptions,strategy:Nn.strategy,effect:Nn.effect,enterable:Nn.enterable,pure:Nn.pure,"popper-class":Nn.popperClass,"popper-style":[Nn.popperStyle,unref(En)],"reference-el":Nn.referenceEl,"trigger-target-el":Nn.triggerTargetEl,visible:unref(bn),"z-index":Nn.zIndex,onMouseenter:unref(xn),onMouseleave:unref(kn),onBlur:Fn,onClose:unref(Ie)}),{default:withCtx(()=>[pe.value?createCommentVNode("v-if",!0):renderSlot(Nn.$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(bn)]]):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($,{expose:z,emit:oe}){const ae=$;usePopperContainer();const ie=useId(),le=ref(),pe=ref(),_e=()=>{var hn;const vn=unref(le);vn&&((hn=vn.popperInstanceRef)==null||hn.update())},Ce=ref(!1),$e=ref(),{show:xe,hide:Ie,hasUpdateHandler:Ne}=useTooltipModelToggle({indicator:Ce,toggleReason:$e}),{onOpen:Fe,onClose:ze}=useDelayedToggle({showAfter:toRef$1(ae,"showAfter"),hideAfter:toRef$1(ae,"hideAfter"),autoClose:toRef$1(ae,"autoClose"),open:xe,close:Ie}),At=computed(()=>isBoolean$3(ae.visible)&&!Ne.value);provide(TOOLTIP_INJECTION_KEY,{controlled:At,id:ie,open:readonly(Ce),trigger:toRef$1(ae,"trigger"),onOpen:hn=>{Fe(hn)},onClose:hn=>{ze(hn)},onToggle:hn=>{unref(Ce)?ze(hn):Fe(hn)},onShow:()=>{oe("show",$e.value)},onHide:()=>{oe("hide",$e.value)},onBeforeShow:()=>{oe("before-show",$e.value)},onBeforeHide:()=>{oe("before-hide",$e.value)},updatePopper:_e}),watch(()=>ae.disabled,hn=>{hn&&Ce.value&&(Ce.value=!1)});const Lt=()=>{var hn,vn;const _n=(vn=(hn=pe.value)==null?void 0:hn.contentRef)==null?void 0:vn.popperContentRef;return _n&&_n.contains(document.activeElement)};return onDeactivated(()=>Ce.value&&Ie()),z({popperRef:le,contentRef:pe,isFocusInsideContent:Lt,updatePopper:_e,onOpen:Fe,onClose:ze,hide:Ie}),(hn,vn)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:le,role:hn.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:hn.disabled,trigger:hn.trigger,"trigger-keys":hn.triggerKeys,"virtual-ref":hn.virtualRef,"virtual-triggering":hn.virtualTriggering},{default:withCtx(()=>[hn.$slots.default?renderSlot(hn.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:pe,"aria-label":hn.ariaLabel,"boundaries-padding":hn.boundariesPadding,content:hn.content,disabled:hn.disabled,effect:hn.effect,enterable:hn.enterable,"fallback-placements":hn.fallbackPlacements,"hide-after":hn.hideAfter,"gpu-acceleration":hn.gpuAcceleration,offset:hn.offset,persistent:hn.persistent,"popper-class":hn.popperClass,"popper-style":hn.popperStyle,placement:hn.placement,"popper-options":hn.popperOptions,pure:hn.pure,"raw-content":hn.rawContent,"reference-el":hn.referenceEl,"trigger-target-el":hn.triggerTargetEl,"show-after":hn.showAfter,strategy:hn.strategy,teleported:hn.teleported,transition:hn.transition,"virtual-triggering":hn.virtualTriggering,"z-index":hn.zIndex,"append-to":hn.appendTo},{default:withCtx(()=>[renderSlot(hn.$slots,"content",{},()=>[hn.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:hn.content},null,8,_hoisted_1$12)):(openBlock(),createElementBlock("span",_hoisted_2$H,toDisplayString$1(hn.content),1))]),hn.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":hn.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]:$=>isString$7($),[INPUT_EVENT]:$=>isString$7($),[CHANGE_EVENT]:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,select:$=>isObject$8($)},_hoisted_1$11=["aria-expanded","aria-owns"],_hoisted_2$G={key:0},_hoisted_3$m=["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($,{expose:z,emit:oe}){const ae=$,ie=useAttrs(),le=useAttrs$1(),pe=useFormDisabled(),_e=useNamespace("autocomplete"),Ce=ref(),$e=ref(),xe=ref(),Ie=ref();let Ne=!1,Fe=!1;const ze=ref([]),At=ref(-1),Lt=ref(""),hn=ref(!1),vn=ref(!1),_n=ref(!1),bn=computed(()=>_e.b(String(generateId()))),Cn=computed(()=>le.style),En=computed(()=>(ze.value.length>0||_n.value)&&hn.value),$n=computed(()=>!ae.hideLoading&&_n.value),wn=computed(()=>Ce.value?Array.from(Ce.value.$el.querySelectorAll("input")):[]),Tn=async()=>{await nextTick(),En.value&&(Lt.value=`${Ce.value.$el.offsetWidth}px`)},xn=()=>{At.value=-1},An=debounce(async ir=>{if(vn.value)return;const qn=Yn=>{_n.value=!1,!vn.value&&(isArray$c(Yn)?(ze.value=Yn,At.value=ae.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(_n.value=!0,isArray$c(ae.fetchSuggestions))qn(ae.fetchSuggestions);else{const Yn=await ae.fetchSuggestions(ir,qn);isArray$c(Yn)&&qn(Yn)}},ae.debounce),On=ir=>{const qn=!!ir;if(oe(INPUT_EVENT,ir),oe(UPDATE_MODEL_EVENT,ir),vn.value=!1,hn.value||(hn.value=qn),!ae.triggerOnFocus&&!ir){vn.value=!0,ze.value=[];return}An(ir)},Mn=ir=>{var qn;pe.value||(((qn=ir.target)==null?void 0:qn.tagName)!=="INPUT"||wn.value.includes(document.activeElement))&&(hn.value=!0)},Fn=ir=>{oe(CHANGE_EVENT,ir)},Dn=ir=>{Fe?Fe=!1:(hn.value=!0,oe("focus",ir),ae.triggerOnFocus&&!Ne&&An(String(ae.modelValue)))},Nn=ir=>{setTimeout(()=>{var qn;if((qn=xe.value)!=null&&qn.isFocusInsideContent()){Fe=!0;return}hn.value&&Xn(),oe("blur",ir)})},Vn=()=>{hn.value=!1,oe(UPDATE_MODEL_EVENT,""),oe("clear")},Bn=async()=>{En.value&&At.value>=0&&At.value<ze.value.length?lr(ze.value[At.value]):ae.selectWhenUnmatched&&(oe("select",{value:ae.modelValue}),ze.value=[],At.value=-1)},zn=ir=>{En.value&&(ir.preventDefault(),ir.stopPropagation(),Xn())},Xn=()=>{hn.value=!1},Un=()=>{var ir;(ir=Ce.value)==null||ir.focus()},Jn=()=>{var ir;(ir=Ce.value)==null||ir.blur()},lr=async ir=>{oe(INPUT_EVENT,ir[ae.valueKey]),oe(UPDATE_MODEL_EVENT,ir[ae.valueKey]),oe("select",ir),ze.value=[],At.value=-1},_r=ir=>{if(!En.value||_n.value)return;if(ir<0){At.value=-1;return}ir>=ze.value.length&&(ir=ze.value.length-1);const qn=$e.value.querySelector(`.${_e.be("suggestion","wrap")}`),Wn=qn.querySelectorAll(`.${_e.be("suggestion","list")} li`)[ir],tr=qn.scrollTop,{offsetTop:pr,scrollHeight:Gn}=Wn;pr+Gn>tr+qn.clientHeight&&(qn.scrollTop+=Gn),pr<tr&&(qn.scrollTop-=Gn),At.value=ir,Ce.value.ref.setAttribute("aria-activedescendant",`${bn.value}-item-${At.value}`)};return onClickOutside(Ie,()=>{En.value&&Xn()}),onMounted(()=>{Ce.value.ref.setAttribute("role","textbox"),Ce.value.ref.setAttribute("aria-autocomplete","list"),Ce.value.ref.setAttribute("aria-controls","id"),Ce.value.ref.setAttribute("aria-activedescendant",`${bn.value}-item-${At.value}`),Ne=Ce.value.ref.hasAttribute("readonly")}),z({highlightedIndex:At,activated:hn,loading:_n,inputRef:Ce,popperRef:xe,suggestions:ze,handleSelect:lr,handleKeyEnter:Bn,focus:Un,blur:Jn,close:Xn,highlight:_r}),(ir,qn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:xe,visible:unref(En),placement:ir.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(_e).e("popper"),ir.popperClass],teleported:ir.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(_e).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:Tn,onHide:xn},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:$e,class:normalizeClass([unref(_e).b("suggestion"),unref(_e).is("loading",unref($n))]),style:normalizeStyle$1({[ir.fitInputWidth?"width":"minWidth"]:Lt.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(bn),tag:"ul","wrap-class":unref(_e).be("suggestion","wrap"),"view-class":unref(_e).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref($n)?(openBlock(),createElementBlock("li",_hoisted_2$G,[createVNode(unref(ElIcon),{class:normalizeClass(unref(_e).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(ze.value,(Yn,Wn)=>(openBlock(),createElementBlock("li",{id:`${unref(bn)}-item-${Wn}`,key:Wn,class:normalizeClass({highlighted:At.value===Wn}),role:"option","aria-selected":At.value===Wn,onClick:tr=>lr(Yn)},[renderSlot(ir.$slots,"default",{item:Yn},()=>[createTextVNode(toDisplayString$1(Yn[ir.valueKey]),1)])],10,_hoisted_3$m))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:Ie,class:normalizeClass([unref(_e).b(),ir.$attrs.class]),style:normalizeStyle$1(unref(Cn)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(En),"aria-owns":unref(bn)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:Ce},unref(ie),{clearable:ir.clearable,disabled:unref(pe),name:ir.name,"model-value":ir.modelValue,onInput:On,onChange:Fn,onFocus:Dn,onBlur:Nn,onClear:Vn,onKeydown:[qn[0]||(qn[0]=withKeys(withModifiers(Yn=>_r(At.value-1),["prevent"]),["up"])),qn[1]||(qn[1]=withKeys(withModifiers(Yn=>_r(At.value+1),["prevent"]),["down"])),withKeys(Bn,["enter"]),withKeys(Xn,["tab"]),withKeys(zn,["esc"])],onMousedown:Mn}),createSlots({_:2},[ir.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(ir.$slots,"prepend")])}:void 0,ir.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(ir.$slots,"append")])}:void 0,ir.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(ir.$slots,"prefix")])}:void 0,ir.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(ir.$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:$=>isNumber$5($)},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:$=>$ instanceof Event},_hoisted_1$10=["src","alt","srcset"],__default__$1n=defineComponent({name:"ElAvatar"}),_sfc_main$22=defineComponent({...__default__$1n,props:avatarProps,emits:avatarEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("avatar"),ie=ref(!1),le=computed(()=>{const{size:$e,icon:xe,shape:Ie}=oe,Ne=[ae.b()];return isString$7($e)&&Ne.push(ae.m($e)),xe&&Ne.push(ae.m("icon")),Ie&&Ne.push(ae.m(Ie)),Ne}),pe=computed(()=>{const{size:$e}=oe;return isNumber$5($e)?ae.cssVarBlock({size:addUnit($e)||""}):void 0}),_e=computed(()=>({objectFit:oe.fit}));watch(()=>oe.src,()=>ie.value=!1);function Ce($e){ie.value=!0,z("error",$e)}return($e,xe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(pe))},[($e.src||$e.srcSet)&&!ie.value?(openBlock(),createElementBlock("img",{key:0,src:$e.src,alt:$e.alt,srcset:$e.srcSet,style:normalizeStyle$1(unref(_e)),onError:Ce},null,44,_hoisted_1$10)):$e.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($e.icon)))]),_:1})):renderSlot($e.$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:$=>$ instanceof MouseEvent},useBackTop=($,z,oe)=>{const ae=shallowRef(),ie=shallowRef(),le=ref(!1),pe=()=>{ae.value&&(le.value=ae.value.scrollTop>=$.visibilityHeight)},_e=$e=>{var xe;(xe=ae.value)==null||xe.scrollTo({top:0,behavior:"smooth"}),z("click",$e)},Ce=useThrottleFn(pe,300,!0);return useEventListener$1(ie,"scroll",Ce),onMounted(()=>{var $e;ie.value=document,ae.value=document.documentElement,$.target&&(ae.value=($e=document.querySelector($.target))!=null?$e:void 0,ae.value||throwError$1(oe,`target does not exist: ${$.target}`),ie.value=ae.value)}),{visible:le,handleClick:_e}},COMPONENT_NAME$h="ElBacktop",__default__$1m=defineComponent({name:COMPONENT_NAME$h}),_sfc_main$21=defineComponent({...__default__$1m,props:backtopProps,emits:backtopEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("backtop"),{handleClick:ie,visible:le}=useBackTop(oe,z,COMPONENT_NAME$h),pe=computed(()=>({right:`${oe.right}px`,bottom:`${oe.bottom}px`}));return(_e,Ce)=>(openBlock(),createBlock(Transition,{name:`${unref(ae).namespace.value}-fade-in`},{default:withCtx(()=>[unref(le)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(pe)),class:normalizeClass(unref(ae).b()),onClick:Ce[0]||(Ce[0]=withModifiers((...$e)=>unref(ie)&&unref(ie)(...$e),["stop"]))},[renderSlot(_e.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(ae).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($,{expose:z}){const oe=$,ae=useNamespace("badge"),ie=computed(()=>oe.isDot?"":isNumber$5(oe.value)&&isNumber$5(oe.max)?oe.max<oe.value?`${oe.max}+`:`${oe.value}`:`${oe.value}`);return z({content:ie}),(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[renderSlot(le.$slots,"default"),createVNode(Transition,{name:`${unref(ae).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(ae).e("content"),unref(ae).em("content",le.type),unref(ae).is("fixed",!!le.$slots.default),unref(ae).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($){const z=$,oe=useNamespace("breadcrumb"),ae=ref();return provide(breadcrumbKey,z),onMounted(()=>{const ie=ae.value.querySelectorAll(`.${oe.e("item")}`);ie.length&&ie[ie.length-1].setAttribute("aria-current","page")}),(ie,le)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:ae,class:normalizeClass(unref(oe).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($){const z=$,oe=getCurrentInstance(),ae=inject(breadcrumbKey,void 0),ie=useNamespace("breadcrumb"),{separator:le,separatorIcon:pe}=toRefs(ae),_e=oe.appContext.config.globalProperties.$router,Ce=ref(),$e=()=>{!z.to||!_e||(z.replace?_e.replace(z.to):_e.push(z.to))};return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:Ce,class:normalizeClass([unref(ie).e("inner"),unref(ie).is("link",!!xe.to)]),role:"link",onClick:$e},[renderSlot(xe.$slots,"default")],2),unref(pe)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(pe))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ie).e("separator")),role:"presentation"},toDisplayString$1(unref(le)),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=($,z)=>{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(()=>$.type==="text"));const oe=inject(buttonGroupContextKey,void 0),ae=useGlobalConfig("button"),{form:ie}=useFormItem(),le=useFormSize(computed(()=>oe==null?void 0:oe.size)),pe=useFormDisabled(),_e=ref(),Ce=useSlots(),$e=computed(()=>$.type||(oe==null?void 0:oe.type)||""),xe=computed(()=>{var ze,At,Lt;return(Lt=(At=$.autoInsertSpace)!=null?At:(ze=ae.value)==null?void 0:ze.autoInsertSpace)!=null?Lt:!1}),Ie=computed(()=>$.tag==="button"?{ariaDisabled:pe.value||$.loading,disabled:pe.value||$.loading,autofocus:$.autofocus,type:$.nativeType}:{}),Ne=computed(()=>{var ze;const At=(ze=Ce.default)==null?void 0:ze.call(Ce);if(xe.value&&(At==null?void 0:At.length)===1){const Lt=At[0];if((Lt==null?void 0:Lt.type)===Text$1){const hn=Lt.children;return/^\p{Unified_Ideograph}{2}$/u.test(hn.trim())}}return!1});return{_disabled:pe,_size:le,_type:$e,_ref:_e,_props:Ie,shouldAddSpace:Ne,handleClick:ze=>{$.nativeType==="reset"&&(ie==null||ie.resetFields()),z("click",ze)}}},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:$=>$ instanceof MouseEvent};function bound01$1($,z){isOnePointZero$1($)&&($="100%");var oe=isPercentage$1($);return $=z===360?$:Math.min(z,Math.max(0,parseFloat($))),oe&&($=parseInt(String($*z),10)/100),Math.abs($-z)<1e-6?1:(z===360?$=($<0?$%z+z:$%z)/parseFloat(String(z)):$=$%z/parseFloat(String(z)),$)}function clamp01($){return Math.min(1,Math.max(0,$))}function isOnePointZero$1($){return typeof $=="string"&&$.indexOf(".")!==-1&&parseFloat($)===1}function isPercentage$1($){return typeof $=="string"&&$.indexOf("%")!==-1}function boundAlpha($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function convertToPercentage($){return $<=1?"".concat(Number($)*100,"%"):$}function pad2($){return $.length===1?"0"+$:String($)}function rgbToRgb($,z,oe){return{r:bound01$1($,255)*255,g:bound01$1(z,255)*255,b:bound01$1(oe,255)*255}}function rgbToHsl($,z,oe){$=bound01$1($,255),z=bound01$1(z,255),oe=bound01$1(oe,255);var ae=Math.max($,z,oe),ie=Math.min($,z,oe),le=0,pe=0,_e=(ae+ie)/2;if(ae===ie)pe=0,le=0;else{var Ce=ae-ie;switch(pe=_e>.5?Ce/(2-ae-ie):Ce/(ae+ie),ae){case $:le=(z-oe)/Ce+(z<oe?6:0);break;case z:le=(oe-$)/Ce+2;break;case oe:le=($-z)/Ce+4;break}le/=6}return{h:le,s:pe,l:_e}}function hue2rgb($,z,oe){return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?$+(z-$)*(6*oe):oe<1/2?z:oe<2/3?$+(z-$)*(2/3-oe)*6:$}function hslToRgb($,z,oe){var ae,ie,le;if($=bound01$1($,360),z=bound01$1(z,100),oe=bound01$1(oe,100),z===0)ie=oe,le=oe,ae=oe;else{var pe=oe<.5?oe*(1+z):oe+z-oe*z,_e=2*oe-pe;ae=hue2rgb(_e,pe,$+1/3),ie=hue2rgb(_e,pe,$),le=hue2rgb(_e,pe,$-1/3)}return{r:ae*255,g:ie*255,b:le*255}}function rgbToHsv($,z,oe){$=bound01$1($,255),z=bound01$1(z,255),oe=bound01$1(oe,255);var ae=Math.max($,z,oe),ie=Math.min($,z,oe),le=0,pe=ae,_e=ae-ie,Ce=ae===0?0:_e/ae;if(ae===ie)le=0;else{switch(ae){case $:le=(z-oe)/_e+(z<oe?6:0);break;case z:le=(oe-$)/_e+2;break;case oe:le=($-z)/_e+4;break}le/=6}return{h:le,s:Ce,v:pe}}function hsvToRgb($,z,oe){$=bound01$1($,360)*6,z=bound01$1(z,100),oe=bound01$1(oe,100);var ae=Math.floor($),ie=$-ae,le=oe*(1-z),pe=oe*(1-ie*z),_e=oe*(1-(1-ie)*z),Ce=ae%6,$e=[oe,pe,le,le,_e,oe][Ce],xe=[_e,oe,oe,pe,le,le][Ce],Ie=[le,le,_e,oe,oe,pe][Ce];return{r:$e*255,g:xe*255,b:Ie*255}}function rgbToHex($,z,oe,ae){var ie=[pad2(Math.round($).toString(16)),pad2(Math.round(z).toString(16)),pad2(Math.round(oe).toString(16))];return ae&&ie[0].startsWith(ie[0].charAt(1))&&ie[1].startsWith(ie[1].charAt(1))&&ie[2].startsWith(ie[2].charAt(1))?ie[0].charAt(0)+ie[1].charAt(0)+ie[2].charAt(0):ie.join("")}function rgbaToHex($,z,oe,ae,ie){var le=[pad2(Math.round($).toString(16)),pad2(Math.round(z).toString(16)),pad2(Math.round(oe).toString(16)),pad2(convertDecimalToHex(ae))];return ie&&le[0].startsWith(le[0].charAt(1))&&le[1].startsWith(le[1].charAt(1))&&le[2].startsWith(le[2].charAt(1))&&le[3].startsWith(le[3].charAt(1))?le[0].charAt(0)+le[1].charAt(0)+le[2].charAt(0)+le[3].charAt(0):le.join("")}function convertDecimalToHex($){return Math.round(parseFloat($)*255).toString(16)}function convertHexToDecimal($){return parseIntFromHex($)/255}function parseIntFromHex($){return parseInt($,16)}function numberInputToObject($){return{r:$>>16,g:($&65280)>>8,b:$&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($){var z={r:0,g:0,b:0},oe=1,ae=null,ie=null,le=null,pe=!1,_e=!1;return typeof $=="string"&&($=stringInputToObject($)),typeof $=="object"&&(isValidCSSUnit($.r)&&isValidCSSUnit($.g)&&isValidCSSUnit($.b)?(z=rgbToRgb($.r,$.g,$.b),pe=!0,_e=String($.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.v)?(ae=convertToPercentage($.s),ie=convertToPercentage($.v),z=hsvToRgb($.h,ae,ie),pe=!0,_e="hsv"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.l)&&(ae=convertToPercentage($.s),le=convertToPercentage($.l),z=hslToRgb($.h,ae,le),pe=!0,_e="hsl"),Object.prototype.hasOwnProperty.call($,"a")&&(oe=$.a)),oe=boundAlpha(oe),{ok:pe,format:$.format||_e,r:Math.min(255,Math.max(z.r,0)),g:Math.min(255,Math.max(z.g,0)),b:Math.min(255,Math.max(z.b,0)),a:oe}}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($){if($=$.trim().toLowerCase(),$.length===0)return!1;var z=!1;if(names[$])$=names[$],z=!0;else if($==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe=matchers.rgb.exec($);return oe?{r:oe[1],g:oe[2],b:oe[3]}:(oe=matchers.rgba.exec($),oe?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=matchers.hsl.exec($),oe?{h:oe[1],s:oe[2],l:oe[3]}:(oe=matchers.hsla.exec($),oe?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=matchers.hsv.exec($),oe?{h:oe[1],s:oe[2],v:oe[3]}:(oe=matchers.hsva.exec($),oe?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=matchers.hex8.exec($),oe?{r:parseIntFromHex(oe[1]),g:parseIntFromHex(oe[2]),b:parseIntFromHex(oe[3]),a:convertHexToDecimal(oe[4]),format:z?"name":"hex8"}:(oe=matchers.hex6.exec($),oe?{r:parseIntFromHex(oe[1]),g:parseIntFromHex(oe[2]),b:parseIntFromHex(oe[3]),format:z?"name":"hex"}:(oe=matchers.hex4.exec($),oe?{r:parseIntFromHex(oe[1]+oe[1]),g:parseIntFromHex(oe[2]+oe[2]),b:parseIntFromHex(oe[3]+oe[3]),a:convertHexToDecimal(oe[4]+oe[4]),format:z?"name":"hex8"}:(oe=matchers.hex3.exec($),oe?{r:parseIntFromHex(oe[1]+oe[1]),g:parseIntFromHex(oe[2]+oe[2]),b:parseIntFromHex(oe[3]+oe[3]),format:z?"name":"hex"}:!1)))))))))}function isValidCSSUnit($){return!!matchers.CSS_UNIT.exec(String($))}var TinyColor=function(){function $(z,oe){z===void 0&&(z=""),oe===void 0&&(oe={});var ae;if(z instanceof $)return z;typeof z=="number"&&(z=numberInputToObject(z)),this.originalInput=z;var ie=inputToRGB(z);this.originalInput=z,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=(ae=oe.format)!==null&&ae!==void 0?ae:ie.format,this.gradientType=oe.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 $.prototype.isDark=function(){return this.getBrightness()<128},$.prototype.isLight=function(){return!this.isDark()},$.prototype.getBrightness=function(){var z=this.toRgb();return(z.r*299+z.g*587+z.b*114)/1e3},$.prototype.getLuminance=function(){var z=this.toRgb(),oe,ae,ie,le=z.r/255,pe=z.g/255,_e=z.b/255;return le<=.03928?oe=le/12.92:oe=Math.pow((le+.055)/1.055,2.4),pe<=.03928?ae=pe/12.92:ae=Math.pow((pe+.055)/1.055,2.4),_e<=.03928?ie=_e/12.92:ie=Math.pow((_e+.055)/1.055,2.4),.2126*oe+.7152*ae+.0722*ie},$.prototype.getAlpha=function(){return this.a},$.prototype.setAlpha=function(z){return this.a=boundAlpha(z),this.roundA=Math.round(100*this.a)/100,this},$.prototype.isMonochrome=function(){var z=this.toHsl().s;return z===0},$.prototype.toHsv=function(){var z=rgbToHsv(this.r,this.g,this.b);return{h:z.h*360,s:z.s,v:z.v,a:this.a}},$.prototype.toHsvString=function(){var z=rgbToHsv(this.r,this.g,this.b),oe=Math.round(z.h*360),ae=Math.round(z.s*100),ie=Math.round(z.v*100);return this.a===1?"hsv(".concat(oe,", ").concat(ae,"%, ").concat(ie,"%)"):"hsva(".concat(oe,", ").concat(ae,"%, ").concat(ie,"%, ").concat(this.roundA,")")},$.prototype.toHsl=function(){var z=rgbToHsl(this.r,this.g,this.b);return{h:z.h*360,s:z.s,l:z.l,a:this.a}},$.prototype.toHslString=function(){var z=rgbToHsl(this.r,this.g,this.b),oe=Math.round(z.h*360),ae=Math.round(z.s*100),ie=Math.round(z.l*100);return this.a===1?"hsl(".concat(oe,", ").concat(ae,"%, ").concat(ie,"%)"):"hsla(".concat(oe,", ").concat(ae,"%, ").concat(ie,"%, ").concat(this.roundA,")")},$.prototype.toHex=function(z){return z===void 0&&(z=!1),rgbToHex(this.r,this.g,this.b,z)},$.prototype.toHexString=function(z){return z===void 0&&(z=!1),"#"+this.toHex(z)},$.prototype.toHex8=function(z){return z===void 0&&(z=!1),rgbaToHex(this.r,this.g,this.b,this.a,z)},$.prototype.toHex8String=function(z){return z===void 0&&(z=!1),"#"+this.toHex8(z)},$.prototype.toHexShortString=function(z){return z===void 0&&(z=!1),this.a===1?this.toHexString(z):this.toHex8String(z)},$.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},$.prototype.toRgbString=function(){var z=Math.round(this.r),oe=Math.round(this.g),ae=Math.round(this.b);return this.a===1?"rgb(".concat(z,", ").concat(oe,", ").concat(ae,")"):"rgba(".concat(z,", ").concat(oe,", ").concat(ae,", ").concat(this.roundA,")")},$.prototype.toPercentageRgb=function(){var z=function(oe){return"".concat(Math.round(bound01$1(oe,255)*100),"%")};return{r:z(this.r),g:z(this.g),b:z(this.b),a:this.a}},$.prototype.toPercentageRgbString=function(){var z=function(oe){return Math.round(bound01$1(oe,255)*100)};return this.a===1?"rgb(".concat(z(this.r),"%, ").concat(z(this.g),"%, ").concat(z(this.b),"%)"):"rgba(".concat(z(this.r),"%, ").concat(z(this.g),"%, ").concat(z(this.b),"%, ").concat(this.roundA,")")},$.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var z="#"+rgbToHex(this.r,this.g,this.b,!1),oe=0,ae=Object.entries(names);oe<ae.length;oe++){var ie=ae[oe],le=ie[0],pe=ie[1];if(z===pe)return le}return!1},$.prototype.toString=function(z){var oe=!!z;z=z??this.format;var ae=!1,ie=this.a<1&&this.a>=0,le=!oe&&ie&&(z.startsWith("hex")||z==="name");return le?z==="name"&&this.a===0?this.toName():this.toRgbString():(z==="rgb"&&(ae=this.toRgbString()),z==="prgb"&&(ae=this.toPercentageRgbString()),(z==="hex"||z==="hex6")&&(ae=this.toHexString()),z==="hex3"&&(ae=this.toHexString(!0)),z==="hex4"&&(ae=this.toHex8String(!0)),z==="hex8"&&(ae=this.toHex8String()),z==="name"&&(ae=this.toName()),z==="hsl"&&(ae=this.toHslString()),z==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},$.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},$.prototype.clone=function(){return new $(this.toString())},$.prototype.lighten=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.l+=z/100,oe.l=clamp01(oe.l),new $(oe)},$.prototype.brighten=function(z){z===void 0&&(z=10);var oe=this.toRgb();return oe.r=Math.max(0,Math.min(255,oe.r-Math.round(255*-(z/100)))),oe.g=Math.max(0,Math.min(255,oe.g-Math.round(255*-(z/100)))),oe.b=Math.max(0,Math.min(255,oe.b-Math.round(255*-(z/100)))),new $(oe)},$.prototype.darken=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.l-=z/100,oe.l=clamp01(oe.l),new $(oe)},$.prototype.tint=function(z){return z===void 0&&(z=10),this.mix("white",z)},$.prototype.shade=function(z){return z===void 0&&(z=10),this.mix("black",z)},$.prototype.desaturate=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.s-=z/100,oe.s=clamp01(oe.s),new $(oe)},$.prototype.saturate=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.s+=z/100,oe.s=clamp01(oe.s),new $(oe)},$.prototype.greyscale=function(){return this.desaturate(100)},$.prototype.spin=function(z){var oe=this.toHsl(),ae=(oe.h+z)%360;return oe.h=ae<0?360+ae:ae,new $(oe)},$.prototype.mix=function(z,oe){oe===void 0&&(oe=50);var ae=this.toRgb(),ie=new $(z).toRgb(),le=oe/100,pe={r:(ie.r-ae.r)*le+ae.r,g:(ie.g-ae.g)*le+ae.g,b:(ie.b-ae.b)*le+ae.b,a:(ie.a-ae.a)*le+ae.a};return new $(pe)},$.prototype.analogous=function(z,oe){z===void 0&&(z=6),oe===void 0&&(oe=30);var ae=this.toHsl(),ie=360/oe,le=[this];for(ae.h=(ae.h-(ie*z>>1)+720)%360;--z;)ae.h=(ae.h+ie)%360,le.push(new $(ae));return le},$.prototype.complement=function(){var z=this.toHsl();return z.h=(z.h+180)%360,new $(z)},$.prototype.monochromatic=function(z){z===void 0&&(z=6);for(var oe=this.toHsv(),ae=oe.h,ie=oe.s,le=oe.v,pe=[],_e=1/z;z--;)pe.push(new $({h:ae,s:ie,v:le})),le=(le+_e)%1;return pe},$.prototype.splitcomplement=function(){var z=this.toHsl(),oe=z.h;return[this,new $({h:(oe+72)%360,s:z.s,l:z.l}),new $({h:(oe+216)%360,s:z.s,l:z.l})]},$.prototype.onBackground=function(z){var oe=this.toRgb(),ae=new $(z).toRgb(),ie=oe.a+ae.a*(1-oe.a);return new $({r:(oe.r*oe.a+ae.r*ae.a*(1-oe.a))/ie,g:(oe.g*oe.a+ae.g*ae.a*(1-oe.a))/ie,b:(oe.b*oe.a+ae.b*ae.a*(1-oe.a))/ie,a:ie})},$.prototype.triad=function(){return this.polyad(3)},$.prototype.tetrad=function(){return this.polyad(4)},$.prototype.polyad=function(z){for(var oe=this.toHsl(),ae=oe.h,ie=[this],le=360/z,pe=1;pe<z;pe++)ie.push(new $({h:(ae+pe*le)%360,s:oe.s,l:oe.l}));return ie},$.prototype.equals=function(z){return this.toRgbString()===new $(z).toRgbString()},$}();function darken($,z=20){return $.mix("#141414",z).toString()}function useButtonCustomStyle($){const z=useFormDisabled(),oe=useNamespace("button");return computed(()=>{let ae={};const ie=$.color;if(ie){const le=new TinyColor(ie),pe=$.dark?le.tint(20).toString():darken(le,20);if($.plain)ae=oe.cssVarBlock({"bg-color":$.dark?darken(le,90):le.tint(90).toString(),"text-color":ie,"border-color":$.dark?darken(le,50):le.tint(50).toString(),"hover-text-color":`var(${oe.cssVarName("color-white")})`,"hover-bg-color":ie,"hover-border-color":ie,"active-bg-color":pe,"active-text-color":`var(${oe.cssVarName("color-white")})`,"active-border-color":pe}),z.value&&(ae[oe.cssVarBlockName("disabled-bg-color")]=$.dark?darken(le,90):le.tint(90).toString(),ae[oe.cssVarBlockName("disabled-text-color")]=$.dark?darken(le,50):le.tint(50).toString(),ae[oe.cssVarBlockName("disabled-border-color")]=$.dark?darken(le,80):le.tint(80).toString());else{const _e=$.dark?darken(le,30):le.tint(30).toString(),Ce=le.isDark()?`var(${oe.cssVarName("color-white")})`:`var(${oe.cssVarName("color-black")})`;if(ae=oe.cssVarBlock({"bg-color":ie,"text-color":Ce,"border-color":ie,"hover-bg-color":_e,"hover-text-color":Ce,"hover-border-color":_e,"active-bg-color":pe,"active-border-color":pe}),z.value){const $e=$.dark?darken(le,50):le.tint(50).toString();ae[oe.cssVarBlockName("disabled-bg-color")]=$e,ae[oe.cssVarBlockName("disabled-text-color")]=$.dark?"rgba(255, 255, 255, 0.5)":`var(${oe.cssVarName("color-white")})`,ae[oe.cssVarBlockName("disabled-border-color")]=$e}}}return ae})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1Z=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=useButtonCustomStyle(ae),le=useNamespace("button"),{_ref:pe,_size:_e,_type:Ce,_disabled:$e,_props:xe,shouldAddSpace:Ie,handleClick:Ne}=useButton(ae,oe);return z({ref:pe,size:_e,type:Ce,disabled:$e,shouldAddSpace:Ie}),(Fe,ze)=>(openBlock(),createBlock(resolveDynamicComponent(Fe.tag),mergeProps({ref_key:"_ref",ref:pe},unref(xe),{class:[unref(le).b(),unref(le).m(unref(Ce)),unref(le).m(unref(_e)),unref(le).is("disabled",unref($e)),unref(le).is("loading",Fe.loading),unref(le).is("plain",Fe.plain),unref(le).is("round",Fe.round),unref(le).is("circle",Fe.circle),unref(le).is("text",Fe.text),unref(le).is("link",Fe.link),unref(le).is("has-bg",Fe.bg)],style:unref(ie),onClick:unref(Ne)}),{default:withCtx(()=>[Fe.loading?(openBlock(),createElementBlock(Fragment,{key:0},[Fe.$slots.loading?renderSlot(Fe.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(le).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.loadingIcon)))]),_:1},8,["class"]))],64)):Fe.icon||Fe.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[Fe.icon?(openBlock(),createBlock(resolveDynamicComponent(Fe.icon),{key:0})):renderSlot(Fe.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),Fe.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(le).em("text","expand")]:unref(Ie)})},[renderSlot(Fe.$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($){const z=$;provide(buttonGroupContextKey,reactive({size:toRef$1(z,"size"),type:toRef$1(z,"type")}));const oe=useNamespace("button");return(ae,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(oe).b("group")}`)},[renderSlot(ae.$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($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var z=$.default;if(typeof z=="function"){var oe=function ae(){if(this instanceof ae){var ie=[null];ie.push.apply(ie,arguments);var le=Function.bind.apply(z,ie);return new le}return z.apply(this,arguments)};oe.prototype=z.prototype}else oe={};return Object.defineProperty(oe,"__esModule",{value:!0}),Object.keys($).forEach(function(ae){var ie=Object.getOwnPropertyDescriptor($,ae);Object.defineProperty(oe,ae,ie.get?ie:{enumerable:!0,get:function(){return $[ae]}})}),oe}var dayjs_min={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe=1e3,ae=6e4,ie=36e5,le="millisecond",pe="second",_e="minute",Ce="hour",$e="day",xe="week",Ie="month",Ne="quarter",Fe="year",ze="date",At="Invalid Date",Lt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,hn=/\[([^\]]+)]|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,vn={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(On){var Mn=["th","st","nd","rd"],Fn=On%100;return"["+On+(Mn[(Fn-20)%10]||Mn[Fn]||Mn[0])+"]"}},_n=function(On,Mn,Fn){var Dn=String(On);return!Dn||Dn.length>=Mn?On:""+Array(Mn+1-Dn.length).join(Fn)+On},bn={s:_n,z:function(On){var Mn=-On.utcOffset(),Fn=Math.abs(Mn),Dn=Math.floor(Fn/60),Nn=Fn%60;return(Mn<=0?"+":"-")+_n(Dn,2,"0")+":"+_n(Nn,2,"0")},m:function On(Mn,Fn){if(Mn.date()<Fn.date())return-On(Fn,Mn);var Dn=12*(Fn.year()-Mn.year())+(Fn.month()-Mn.month()),Nn=Mn.clone().add(Dn,Ie),Vn=Fn-Nn<0,Bn=Mn.clone().add(Dn+(Vn?-1:1),Ie);return+(-(Dn+(Fn-Nn)/(Vn?Nn-Bn:Bn-Nn))||0)},a:function(On){return On<0?Math.ceil(On)||0:Math.floor(On)},p:function(On){return{M:Ie,y:Fe,w:xe,d:$e,D:ze,h:Ce,m:_e,s:pe,ms:le,Q:Ne}[On]||String(On||"").toLowerCase().replace(/s$/,"")},u:function(On){return On===void 0}},Cn="en",En={};En[Cn]=vn;var $n=function(On){return On instanceof kn},wn=function On(Mn,Fn,Dn){var Nn;if(!Mn)return Cn;if(typeof Mn=="string"){var Vn=Mn.toLowerCase();En[Vn]&&(Nn=Vn),Fn&&(En[Vn]=Fn,Nn=Vn);var Bn=Mn.split("-");if(!Nn&&Bn.length>1)return On(Bn[0])}else{var zn=Mn.name;En[zn]=Mn,Nn=zn}return!Dn&&Nn&&(Cn=Nn),Nn||!Dn&&Cn},Tn=function(On,Mn){if($n(On))return On.clone();var Fn=typeof Mn=="object"?Mn:{};return Fn.date=On,Fn.args=arguments,new kn(Fn)},xn=bn;xn.l=wn,xn.i=$n,xn.w=function(On,Mn){return Tn(On,{locale:Mn.$L,utc:Mn.$u,x:Mn.$x,$offset:Mn.$offset})};var kn=function(){function On(Fn){this.$L=wn(Fn.locale,null,!0),this.parse(Fn)}var Mn=On.prototype;return Mn.parse=function(Fn){this.$d=function(Dn){var Nn=Dn.date,Vn=Dn.utc;if(Nn===null)return new Date(NaN);if(xn.u(Nn))return new Date;if(Nn instanceof Date)return new Date(Nn);if(typeof Nn=="string"&&!/Z$/i.test(Nn)){var Bn=Nn.match(Lt);if(Bn){var zn=Bn[2]-1||0,Xn=(Bn[7]||"0").substring(0,3);return Vn?new Date(Date.UTC(Bn[1],zn,Bn[3]||1,Bn[4]||0,Bn[5]||0,Bn[6]||0,Xn)):new Date(Bn[1],zn,Bn[3]||1,Bn[4]||0,Bn[5]||0,Bn[6]||0,Xn)}}return new Date(Nn)}(Fn),this.$x=Fn.x||{},this.init()},Mn.init=function(){var Fn=this.$d;this.$y=Fn.getFullYear(),this.$M=Fn.getMonth(),this.$D=Fn.getDate(),this.$W=Fn.getDay(),this.$H=Fn.getHours(),this.$m=Fn.getMinutes(),this.$s=Fn.getSeconds(),this.$ms=Fn.getMilliseconds()},Mn.$utils=function(){return xn},Mn.isValid=function(){return this.$d.toString()!==At},Mn.isSame=function(Fn,Dn){var Nn=Tn(Fn);return this.startOf(Dn)<=Nn&&Nn<=this.endOf(Dn)},Mn.isAfter=function(Fn,Dn){return Tn(Fn)<this.startOf(Dn)},Mn.isBefore=function(Fn,Dn){return this.endOf(Dn)<Tn(Fn)},Mn.$g=function(Fn,Dn,Nn){return xn.u(Fn)?this[Dn]:this.set(Nn,Fn)},Mn.unix=function(){return Math.floor(this.valueOf()/1e3)},Mn.valueOf=function(){return this.$d.getTime()},Mn.startOf=function(Fn,Dn){var Nn=this,Vn=!!xn.u(Dn)||Dn,Bn=xn.p(Fn),zn=function(Yn,Wn){var tr=xn.w(Nn.$u?Date.UTC(Nn.$y,Wn,Yn):new Date(Nn.$y,Wn,Yn),Nn);return Vn?tr:tr.endOf($e)},Xn=function(Yn,Wn){return xn.w(Nn.toDate()[Yn].apply(Nn.toDate("s"),(Vn?[0,0,0,0]:[23,59,59,999]).slice(Wn)),Nn)},Un=this.$W,Jn=this.$M,lr=this.$D,_r="set"+(this.$u?"UTC":"");switch(Bn){case Fe:return Vn?zn(1,0):zn(31,11);case Ie:return Vn?zn(1,Jn):zn(0,Jn+1);case xe:var ir=this.$locale().weekStart||0,qn=(Un<ir?Un+7:Un)-ir;return zn(Vn?lr-qn:lr+(6-qn),Jn);case $e:case ze:return Xn(_r+"Hours",0);case Ce:return Xn(_r+"Minutes",1);case _e:return Xn(_r+"Seconds",2);case pe:return Xn(_r+"Milliseconds",3);default:return this.clone()}},Mn.endOf=function(Fn){return this.startOf(Fn,!1)},Mn.$set=function(Fn,Dn){var Nn,Vn=xn.p(Fn),Bn="set"+(this.$u?"UTC":""),zn=(Nn={},Nn[$e]=Bn+"Date",Nn[ze]=Bn+"Date",Nn[Ie]=Bn+"Month",Nn[Fe]=Bn+"FullYear",Nn[Ce]=Bn+"Hours",Nn[_e]=Bn+"Minutes",Nn[pe]=Bn+"Seconds",Nn[le]=Bn+"Milliseconds",Nn)[Vn],Xn=Vn===$e?this.$D+(Dn-this.$W):Dn;if(Vn===Ie||Vn===Fe){var Un=this.clone().set(ze,1);Un.$d[zn](Xn),Un.init(),this.$d=Un.set(ze,Math.min(this.$D,Un.daysInMonth())).$d}else zn&&this.$d[zn](Xn);return this.init(),this},Mn.set=function(Fn,Dn){return this.clone().$set(Fn,Dn)},Mn.get=function(Fn){return this[xn.p(Fn)]()},Mn.add=function(Fn,Dn){var Nn,Vn=this;Fn=Number(Fn);var Bn=xn.p(Dn),zn=function(Jn){var lr=Tn(Vn);return xn.w(lr.date(lr.date()+Math.round(Jn*Fn)),Vn)};if(Bn===Ie)return this.set(Ie,this.$M+Fn);if(Bn===Fe)return this.set(Fe,this.$y+Fn);if(Bn===$e)return zn(1);if(Bn===xe)return zn(7);var Xn=(Nn={},Nn[_e]=ae,Nn[Ce]=ie,Nn[pe]=oe,Nn)[Bn]||1,Un=this.$d.getTime()+Fn*Xn;return xn.w(Un,this)},Mn.subtract=function(Fn,Dn){return this.add(-1*Fn,Dn)},Mn.format=function(Fn){var Dn=this,Nn=this.$locale();if(!this.isValid())return Nn.invalidDate||At;var Vn=Fn||"YYYY-MM-DDTHH:mm:ssZ",Bn=xn.z(this),zn=this.$H,Xn=this.$m,Un=this.$M,Jn=Nn.weekdays,lr=Nn.months,_r=function(Wn,tr,pr,Gn){return Wn&&(Wn[tr]||Wn(Dn,Vn))||pr[tr].slice(0,Gn)},ir=function(Wn){return xn.s(zn%12||12,Wn,"0")},qn=Nn.meridiem||function(Wn,tr,pr){var Gn=Wn<12?"AM":"PM";return pr?Gn.toLowerCase():Gn},Yn={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Un+1,MM:xn.s(Un+1,2,"0"),MMM:_r(Nn.monthsShort,Un,lr,3),MMMM:_r(lr,Un),D:this.$D,DD:xn.s(this.$D,2,"0"),d:String(this.$W),dd:_r(Nn.weekdaysMin,this.$W,Jn,2),ddd:_r(Nn.weekdaysShort,this.$W,Jn,3),dddd:Jn[this.$W],H:String(zn),HH:xn.s(zn,2,"0"),h:ir(1),hh:ir(2),a:qn(zn,Xn,!0),A:qn(zn,Xn,!1),m:String(Xn),mm:xn.s(Xn,2,"0"),s:String(this.$s),ss:xn.s(this.$s,2,"0"),SSS:xn.s(this.$ms,3,"0"),Z:Bn};return Vn.replace(hn,function(Wn,tr){return tr||Yn[Wn]||Bn.replace(":","")})},Mn.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Mn.diff=function(Fn,Dn,Nn){var Vn,Bn=xn.p(Dn),zn=Tn(Fn),Xn=(zn.utcOffset()-this.utcOffset())*ae,Un=this-zn,Jn=xn.m(this,zn);return Jn=(Vn={},Vn[Fe]=Jn/12,Vn[Ie]=Jn,Vn[Ne]=Jn/3,Vn[xe]=(Un-Xn)/6048e5,Vn[$e]=(Un-Xn)/864e5,Vn[Ce]=Un/ie,Vn[_e]=Un/ae,Vn[pe]=Un/oe,Vn)[Bn]||Un,Nn?Jn:xn.a(Jn)},Mn.daysInMonth=function(){return this.endOf(Ie).$D},Mn.$locale=function(){return En[this.$L]},Mn.locale=function(Fn,Dn){if(!Fn)return this.$L;var Nn=this.clone(),Vn=wn(Fn,Dn,!0);return Vn&&(Nn.$L=Vn),Nn},Mn.clone=function(){return xn.w(this.$d,this)},Mn.toDate=function(){return new Date(this.valueOf())},Mn.toJSON=function(){return this.isValid()?this.toISOString():null},Mn.toISOString=function(){return this.$d.toISOString()},Mn.toString=function(){return this.$d.toUTCString()},On}(),An=kn.prototype;return Tn.prototype=An,[["$ms",le],["$s",pe],["$m",_e],["$H",Ce],["$W",$e],["$M",Ie],["$y",Fe],["$D",ze]].forEach(function(On){An[On[1]]=function(Mn){return this.$g(Mn,On[0],On[1])}}),Tn.extend=function(On,Mn){return On.$i||(On(Mn,kn,Tn),On.$i=!0),Tn},Tn.locale=wn,Tn.isDayjs=$n,Tn.unix=function(On){return Tn(1e3*On)},Tn.en=En[Cn],Tn.Ls=En,Tn.p={},Tn})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var customParseFormat$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ae=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,ie=/\d\d/,le=/\d\d?/,pe=/\d*[^-_:/,()\s\d]+/,_e={},Ce=function(At){return(At=+At)+(At>68?1900:2e3)},$e=function(At){return function(Lt){this[At]=+Lt}},xe=[/[+-]\d\d:?(\d\d)?|Z/,function(At){(this.zone||(this.zone={})).offset=function(Lt){if(!Lt||Lt==="Z")return 0;var hn=Lt.match(/([+-]|\d\d)/g),vn=60*hn[1]+(+hn[2]||0);return vn===0?0:hn[0]==="+"?-vn:vn}(At)}],Ie=function(At){var Lt=_e[At];return Lt&&(Lt.indexOf?Lt:Lt.s.concat(Lt.f))},Ne=function(At,Lt){var hn,vn=_e.meridiem;if(vn){for(var _n=1;_n<=24;_n+=1)if(At.indexOf(vn(_n,0,Lt))>-1){hn=_n>12;break}}else hn=At===(Lt?"pm":"PM");return hn},Fe={A:[pe,function(At){this.afternoon=Ne(At,!1)}],a:[pe,function(At){this.afternoon=Ne(At,!0)}],S:[/\d/,function(At){this.milliseconds=100*+At}],SS:[ie,function(At){this.milliseconds=10*+At}],SSS:[/\d{3}/,function(At){this.milliseconds=+At}],s:[le,$e("seconds")],ss:[le,$e("seconds")],m:[le,$e("minutes")],mm:[le,$e("minutes")],H:[le,$e("hours")],h:[le,$e("hours")],HH:[le,$e("hours")],hh:[le,$e("hours")],D:[le,$e("day")],DD:[ie,$e("day")],Do:[pe,function(At){var Lt=_e.ordinal,hn=At.match(/\d+/);if(this.day=hn[0],Lt)for(var vn=1;vn<=31;vn+=1)Lt(vn).replace(/\[|\]/g,"")===At&&(this.day=vn)}],M:[le,$e("month")],MM:[ie,$e("month")],MMM:[pe,function(At){var Lt=Ie("months"),hn=(Ie("monthsShort")||Lt.map(function(vn){return vn.slice(0,3)})).indexOf(At)+1;if(hn<1)throw new Error;this.month=hn%12||hn}],MMMM:[pe,function(At){var Lt=Ie("months").indexOf(At)+1;if(Lt<1)throw new Error;this.month=Lt%12||Lt}],Y:[/[+-]?\d+/,$e("year")],YY:[ie,function(At){this.year=Ce(At)}],YYYY:[/\d{4}/,$e("year")],Z:xe,ZZ:xe};function ze(At){var Lt,hn;Lt=At,hn=_e&&_e.formats;for(var vn=(At=Lt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Tn,xn,kn){var An=kn&&kn.toUpperCase();return xn||hn[kn]||oe[kn]||hn[An].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(On,Mn,Fn){return Mn||Fn.slice(1)})})).match(ae),_n=vn.length,bn=0;bn<_n;bn+=1){var Cn=vn[bn],En=Fe[Cn],$n=En&&En[0],wn=En&&En[1];vn[bn]=wn?{regex:$n,parser:wn}:Cn.replace(/^\[|\]$/g,"")}return function(Tn){for(var xn={},kn=0,An=0;kn<_n;kn+=1){var On=vn[kn];if(typeof On=="string")An+=On.length;else{var Mn=On.regex,Fn=On.parser,Dn=Tn.slice(An),Nn=Mn.exec(Dn)[0];Fn.call(xn,Nn),Tn=Tn.replace(Nn,"")}}return function(Vn){var Bn=Vn.afternoon;if(Bn!==void 0){var zn=Vn.hours;Bn?zn<12&&(Vn.hours+=12):zn===12&&(Vn.hours=0),delete Vn.afternoon}}(xn),xn}}return function(At,Lt,hn){hn.p.customParseFormat=!0,At&&At.parseTwoDigitYear&&(Ce=At.parseTwoDigitYear);var vn=Lt.prototype,_n=vn.parse;vn.parse=function(bn){var Cn=bn.date,En=bn.utc,$n=bn.args;this.$u=En;var wn=$n[1];if(typeof wn=="string"){var Tn=$n[2]===!0,xn=$n[3]===!0,kn=Tn||xn,An=$n[2];xn&&(An=$n[2]),_e=this.$locale(),!Tn&&An&&(_e=hn.Ls[An]),this.$d=function(Dn,Nn,Vn){try{if(["x","X"].indexOf(Nn)>-1)return new Date((Nn==="X"?1e3:1)*Dn);var Bn=ze(Nn)(Dn),zn=Bn.year,Xn=Bn.month,Un=Bn.day,Jn=Bn.hours,lr=Bn.minutes,_r=Bn.seconds,ir=Bn.milliseconds,qn=Bn.zone,Yn=new Date,Wn=Un||(zn||Xn?1:Yn.getDate()),tr=zn||Yn.getFullYear(),pr=0;zn&&!Xn||(pr=Xn>0?Xn-1:Yn.getMonth());var Gn=Jn||0,Zn=lr||0,rr=_r||0,mr=ir||0;return qn?new Date(Date.UTC(tr,pr,Wn,Gn,Zn,rr,mr+60*qn.offset*1e3)):Vn?new Date(Date.UTC(tr,pr,Wn,Gn,Zn,rr,mr)):new Date(tr,pr,Wn,Gn,Zn,rr,mr)}catch{return new Date("")}}(Cn,wn,En),this.init(),An&&An!==!0&&(this.$L=this.locale(An).$L),kn&&Cn!=this.format(wn)&&(this.$d=new Date("")),_e={}}else if(wn instanceof Array)for(var On=wn.length,Mn=1;Mn<=On;Mn+=1){$n[1]=wn[Mn-1];var Fn=hn.apply(this,$n);if(Fn.isValid()){this.$d=Fn.$d,this.$L=Fn.$L,this.init();break}Mn===On&&(this.$d=new Date(""))}else _n.call(this,bn)}}})})(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=($,z)=>[$>0?$-1:void 0,$,$<z?$+1:void 0],rangeArr=$=>Array.from(Array.from({length:$}).keys()),extractDateFormat=$=>$.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=$=>$.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function($,z){const oe=isDate$3($),ae=isDate$3(z);return oe&&ae?$.getTime()===z.getTime():!oe&&!ae?$===z:!1},valueEquals=function($,z){const oe=isArray$c($),ae=isArray$c(z);return oe&&ae?$.length!==z.length?!1:$.every((ie,le)=>dateEquals(ie,z[le])):!oe&&!ae?dateEquals($,z):!1},parseDate$1=function($,z,oe){const ae=isEmpty(z)||z==="x"?dayjs($).locale(oe):dayjs($,z).locale(oe);return ae.isValid()?ae:void 0},formatter=function($,z,oe){return isEmpty(z)?$:z==="x"?+$:dayjs($).locale(oe).format(z)},makeList=($,z)=>{var oe;const ae=[],ie=z==null?void 0:z();for(let le=0;le<$;le++)ae.push((oe=ie==null?void 0:ie.includes(le))!=null?oe:!1);return ae},disabledTimeListsProps=buildProps({disabledHours:{type:definePropType(Function)},disabledMinutes:{type:definePropType(Function)},disabledSeconds:{type:definePropType(Function)}}),timePanelSharedProps=buildProps({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),timePickerDefaultProps=buildProps({id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:definePropType([String,Object]),default:circle_close_default},editable:{type:Boolean,default:!0},prefixIcon:{type:definePropType([String,Object]),default:""},size:useSizeProp,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})},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($,{expose:z,emit:oe}){const ae=$,{lang:ie}=useLocale(),le=useNamespace("date"),pe=useNamespace("input"),_e=useNamespace("range"),{form:Ce,formItem:$e}=useFormItem(),xe=inject("ElPopperOptions",{}),Ie=ref(),Ne=ref(),Fe=ref(!1),ze=ref(!1),At=ref(null);let Lt=!1,hn=!1;watch(Fe,er=>{er?nextTick(()=>{er&&(At.value=ae.modelValue)}):(ar.value=null,nextTick(()=>{vn(ae.modelValue)}))});const vn=(er,or)=>{(or||!valueEquals(er,At.value))&&(oe("change",er),ae.validateEvent&&($e==null||$e.validate("change").catch(Tr=>void 0)))},_n=er=>{if(!valueEquals(ae.modelValue,er)){let or;isArray$c(er)?or=er.map(Tr=>formatter(Tr,ae.valueFormat,ie.value)):er&&(or=formatter(er,ae.valueFormat,ie.value)),oe("update:modelValue",er&&or,ie.value)}},bn=er=>{oe("keydown",er)},Cn=computed(()=>{if(Ne.value){const er=Zn.value?Ne.value:Ne.value.$el;return Array.from(er.querySelectorAll("input"))}return[]}),En=(er,or,Tr)=>{const Or=Cn.value;Or.length&&(!Tr||Tr==="min"?(Or[0].setSelectionRange(er,or),Or[0].focus()):Tr==="max"&&(Or[1].setSelectionRange(er,or),Or[1].focus()))},$n=()=>{Fn(!0,!0),nextTick(()=>{hn=!1})},wn=(er="",or=!1)=>{or||(hn=!0),Fe.value=or;let Tr;isArray$c(er)?Tr=er.map(Or=>Or.toDate()):Tr=er&&er.toDate(),ar.value=null,_n(Tr)},Tn=()=>{ze.value=!0},xn=()=>{oe("visible-change",!0)},kn=er=>{(er==null?void 0:er.key)===EVENT_CODE.esc&&Fn(!0,!0)},An=()=>{ze.value=!1,Fe.value=!1,hn=!1,oe("visible-change",!1)},On=()=>{Fe.value=!0},Mn=()=>{Fe.value=!1},Fn=(er=!0,or=!1)=>{hn=or;const[Tr,Or]=unref(Cn);let zr=Tr;!er&&Zn.value&&(zr=Or),zr&&zr.focus()},Dn=er=>{ae.readonly||Bn.value||Fe.value||hn||(Fe.value=!0,oe("focus",er))};let Nn;const Vn=er=>{const or=async()=>{setTimeout(()=>{var Tr;Nn===or&&(!((Tr=Ie.value)!=null&&Tr.isFocusInsideContent()&&!Lt)&&Cn.value.filter(Or=>Or.contains(document.activeElement)).length===0&&(xr(),Fe.value=!1,oe("blur",er),ae.validateEvent&&($e==null||$e.validate("blur").catch(Or=>void 0))),Lt=!1)},0)};Nn=or,or()},Bn=computed(()=>ae.disabled||(Ce==null?void 0:Ce.disabled)),zn=computed(()=>{let er;if(Yn.value?Mr.value.getDefaultValue&&(er=Mr.value.getDefaultValue()):isArray$c(ae.modelValue)?er=ae.modelValue.map(or=>parseDate$1(or,ae.valueFormat,ie.value)):er=parseDate$1(ae.modelValue,ae.valueFormat,ie.value),Mr.value.getRangeAvailableTime){const or=Mr.value.getRangeAvailableTime(er);isEqual$1(or,er)||(er=or,_n(isArray$c(er)?er.map(Tr=>Tr.toDate()):er.toDate()))}return isArray$c(er)&&er.some(or=>!or)&&(er=[]),er}),Xn=computed(()=>{if(!Mr.value.panelReady)return"";const er=Pr(zn.value);return isArray$c(ar.value)?[ar.value[0]||er&&er[0]||"",ar.value[1]||er&&er[1]||""]:ar.value!==null?ar.value:!Jn.value&&Yn.value||!Fe.value&&Yn.value?"":er?lr.value?er.join(", "):er:""}),Un=computed(()=>ae.type.includes("time")),Jn=computed(()=>ae.type.startsWith("time")),lr=computed(()=>ae.type==="dates"),_r=computed(()=>ae.prefixIcon||(Un.value?clock_default:calendar_default)),ir=ref(!1),qn=er=>{ae.readonly||Bn.value||ir.value&&(er.stopPropagation(),$n(),_n(null),vn(null,!0),ir.value=!1,Fe.value=!1,Mr.value.handleClear&&Mr.value.handleClear())},Yn=computed(()=>{const{modelValue:er}=ae;return!er||isArray$c(er)&&!er.filter(Boolean).length}),Wn=async er=>{var or;ae.readonly||Bn.value||(((or=er.target)==null?void 0:or.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(Fe.value=!0)},tr=()=>{ae.readonly||Bn.value||!Yn.value&&ae.clearable&&(ir.value=!0)},pr=()=>{ir.value=!1},Gn=er=>{var or;ae.readonly||Bn.value||(((or=er.touches[0].target)==null?void 0:or.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(Fe.value=!0)},Zn=computed(()=>ae.type.includes("range")),rr=useFormSize(),mr=computed(()=>{var er,or;return(or=(er=unref(Ie))==null?void 0:er.popperRef)==null?void 0:or.contentRef}),Sr=computed(()=>{var er;return unref(Zn)?unref(Ne):(er=unref(Ne))==null?void 0:er.$el});onClickOutside(Sr,er=>{const or=unref(mr),Tr=unref(Sr);or&&(er.target===or||er.composedPath().includes(or))||er.target===Tr||er.composedPath().includes(Tr)||(Fe.value=!1)});const ar=ref(null),xr=()=>{if(ar.value){const er=gr(Xn.value);er&&dr(er)&&(_n(isArray$c(er)?er.map(or=>or.toDate()):er.toDate()),ar.value=null)}ar.value===""&&(_n(null),vn(null),ar.value=null)},gr=er=>er?Mr.value.parseUserInput(er):null,Pr=er=>er?Mr.value.formatToString(er):null,dr=er=>Mr.value.isValidValue(er),sr=async er=>{if(ae.readonly||Bn.value)return;const{code:or}=er;if(bn(er),or===EVENT_CODE.esc){Fe.value===!0&&(Fe.value=!1,er.preventDefault(),er.stopPropagation());return}if(or===EVENT_CODE.down&&(Mr.value.handleFocusPicker&&(er.preventDefault(),er.stopPropagation()),Fe.value===!1&&(Fe.value=!0,await nextTick()),Mr.value.handleFocusPicker)){Mr.value.handleFocusPicker();return}if(or===EVENT_CODE.tab){Lt=!0;return}if(or===EVENT_CODE.enter||or===EVENT_CODE.numpadEnter){(ar.value===null||ar.value===""||dr(gr(Xn.value)))&&(xr(),Fe.value=!1),er.stopPropagation();return}if(ar.value){er.stopPropagation();return}Mr.value.handleKeydownInput&&Mr.value.handleKeydownInput(er)},cr=er=>{ar.value=er,Fe.value||(Fe.value=!0)},hr=er=>{const or=er.target;ar.value?ar.value=[or.value,ar.value[1]]:ar.value=[or.value,null]},Ar=er=>{const or=er.target;ar.value?ar.value=[ar.value[0],or.value]:ar.value=[null,or.value]},Dr=()=>{var er;const or=ar.value,Tr=gr(or&&or[0]),Or=unref(zn);if(Tr&&Tr.isValid()){ar.value=[Pr(Tr),((er=Xn.value)==null?void 0:er[1])||null];const zr=[Tr,Or&&(Or[1]||null)];dr(zr)&&(_n(zr),ar.value=null)}},Lr=()=>{var er;const or=unref(ar),Tr=gr(or&&or[1]),Or=unref(zn);if(Tr&&Tr.isValid()){ar.value=[((er=unref(Xn))==null?void 0:er[0])||null,Pr(Tr)];const zr=[Or&&Or[0],Tr];dr(zr)&&(_n(zr),ar.value=null)}},Mr=ref({}),Er=er=>{Mr.value[er[0]]=er[1],Mr.value.panelReady=!0},$r=er=>{oe("calendar-change",er)},ur=(er,or,Tr)=>{oe("panel-change",er,or,Tr)};return provide("EP_PICKER_BASE",{props:ae}),z({focus:Fn,handleFocusInput:Dn,handleBlurInput:Vn,handleOpen:On,handleClose:Mn,onPick:wn}),(er,or)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:Ie,visible:Fe.value,effect:"light",pure:"",trigger:"click"},er.$attrs,{role:"dialog",teleported:"",transition:`${unref(le).namespace.value}-zoom-in-top`,"popper-class":[`${unref(le).namespace.value}-picker__popper`,er.popperClass],"popper-options":unref(xe),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:Tn,onShow:xn,onHide:An}),{default:withCtx(()=>[unref(Zn)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Ne,class:normalizeClass([unref(le).b("editor"),unref(le).bm("editor",er.type),unref(pe).e("wrapper"),unref(le).is("disabled",unref(Bn)),unref(le).is("active",Fe.value),unref(_e).b("editor"),unref(rr)?unref(_e).bm("editor",unref(rr)):"",er.$attrs.class]),style:normalizeStyle$1(er.$attrs.style),onClick:Dn,onMouseenter:tr,onMouseleave:pr,onTouchstart:Gn,onKeydown:sr},[unref(_r)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(pe).e("icon"),unref(_e).e("icon")]),onMousedown:withModifiers(Wn,["prevent"]),onTouchstart:Gn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_r))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:er.id&&er.id[0],autocomplete:"off",name:er.name&&er.name[0],placeholder:er.startPlaceholder,value:unref(Xn)&&unref(Xn)[0],disabled:unref(Bn),readonly:!er.editable||er.readonly,class:normalizeClass(unref(_e).b("input")),onMousedown:Wn,onInput:hr,onChange:Dr,onFocus:Dn,onBlur:Vn},null,42,_hoisted_1$_),renderSlot(er.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(_e).b("separator"))},toDisplayString$1(er.rangeSeparator),3)]),createBaseVNode("input",{id:er.id&&er.id[1],autocomplete:"off",name:er.name&&er.name[1],placeholder:er.endPlaceholder,value:unref(Xn)&&unref(Xn)[1],disabled:unref(Bn),readonly:!er.editable||er.readonly,class:normalizeClass(unref(_e).b("input")),onMousedown:Wn,onFocus:Dn,onBlur:Vn,onInput:Ar,onChange:Lr},null,42,_hoisted_2$F),er.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(pe).e("icon"),unref(_e).e("close-icon"),{[unref(_e).e("close-icon--hidden")]:!ir.value}]),onClick:qn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(er.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:er.id,ref_key:"inputRef",ref:Ne,"container-role":"combobox","model-value":unref(Xn),name:er.name,size:unref(rr),disabled:unref(Bn),placeholder:er.placeholder,class:normalizeClass([unref(le).b("editor"),unref(le).bm("editor",er.type),er.$attrs.class]),style:normalizeStyle$1(er.$attrs.style),readonly:!er.editable||er.readonly||unref(lr)||er.type==="week",label:er.label,tabindex:er.tabindex,"validate-event":!1,onInput:cr,onFocus:Dn,onBlur:Vn,onKeydown:sr,onChange:xr,onMousedown:Wn,onMouseenter:tr,onMouseleave:pr,onTouchstart:Gn,onClick:or[0]||(or[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(_r)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe).e("icon")),onMousedown:withModifiers(Wn,["prevent"]),onTouchstart:Gn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_r))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[ir.value&&er.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(pe).e("icon")} clear-icon`),onClick:withModifiers(qn,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(er.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(er.$slots,"default",{visible:Fe.value,actualVisible:ze.value,parsedValue:unref(zn),format:er.format,unlinkPanels:er.unlinkPanels,type:er.type,defaultValue:er.defaultValue,onPick:wn,onSelectRange:En,onSetPickerOption:Er,onCalendarChange:$r,onPanelChange:ur,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:$,getAvailableMinutes:z,getAvailableSeconds:oe})=>{const ae=(pe,_e,Ce,$e)=>{const xe={hour:$,minute:z,second:oe};let Ie=pe;return["hour","minute","second"].forEach(Ne=>{if(xe[Ne]){let Fe;const ze=xe[Ne];switch(Ne){case"minute":{Fe=ze(Ie.hour(),_e,$e);break}case"second":{Fe=ze(Ie.hour(),Ie.minute(),_e,$e);break}default:{Fe=ze(_e,$e);break}}if(Fe!=null&&Fe.length&&!Fe.includes(Ie[Ne]())){const At=Ce?0:Fe.length-1;Ie=Ie[Ne](Fe[At])}}}),Ie},ie={};return{timePickerOptions:ie,getAvailableTime:ae,onSetOption:([pe,_e])=>{ie[pe]=_e}}},makeAvailableArr=$=>{const z=(ae,ie)=>ae||ie,oe=ae=>ae!==!0;return $.map(z).filter(oe)},getTimeLists=($,z,oe)=>({getHoursList:(pe,_e)=>makeList(24,$&&(()=>$==null?void 0:$(pe,_e))),getMinutesList:(pe,_e,Ce)=>makeList(60,z&&(()=>z==null?void 0:z(pe,_e,Ce))),getSecondsList:(pe,_e,Ce,$e)=>makeList(60,oe&&(()=>oe==null?void 0:oe(pe,_e,Ce,$e)))}),buildAvailableTimeSlotGetter=($,z,oe)=>{const{getHoursList:ae,getMinutesList:ie,getSecondsList:le}=getTimeLists($,z,oe);return{getAvailableHours:($e,xe)=>makeAvailableArr(ae($e,xe)),getAvailableMinutes:($e,xe,Ie)=>makeAvailableArr(ie($e,xe,Ie)),getAvailableSeconds:($e,xe,Ie,Ne)=>makeAvailableArr(le($e,xe,Ie,Ne))}},useOldValue=$=>{const z=ref($.parsedValue);return watch(()=>$.visible,oe=>{oe||(z.value=$.parsedValue)}),z},nodeList=new Map;let startClick;isClient$2&&(document.addEventListener("mousedown",$=>startClick=$),document.addEventListener("mouseup",$=>{for(const z of nodeList.values())for(const{documentHandler:oe}of z)oe($,startClick)}));function createDocumentHandler($,z){let oe=[];return Array.isArray(z.arg)?oe=z.arg:isElement$2(z.arg)&&oe.push(z.arg),function(ae,ie){const le=z.instance.popperRef,pe=ae.target,_e=ie==null?void 0:ie.target,Ce=!z||!z.instance,$e=!pe||!_e,xe=$.contains(pe)||$.contains(_e),Ie=$===pe,Ne=oe.length&&oe.some(ze=>ze==null?void 0:ze.contains(pe))||oe.length&&oe.includes(_e),Fe=le&&(le.contains(pe)||le.contains(_e));Ce||$e||xe||Ie||Ne||Fe||z.value(ae,ie)}}const ClickOutside={beforeMount($,z){nodeList.has($)||nodeList.set($,[]),nodeList.get($).push({documentHandler:createDocumentHandler($,z),bindingFn:z.value})},updated($,z){nodeList.has($)||nodeList.set($,[]);const oe=nodeList.get($),ae=oe.findIndex(le=>le.bindingFn===z.oldValue),ie={documentHandler:createDocumentHandler($,z),bindingFn:z.value};ae>=0?oe.splice(ae,1,ie):oe.push(ie)},unmounted($){nodeList.delete($)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount($,z){const oe=z.value,{interval:ae=REPEAT_INTERVAL,delay:ie=REPEAT_DELAY}=isFunction$5(oe)?{}:oe;let le,pe;const _e=()=>isFunction$5(oe)?oe():oe.handler(),Ce=()=>{pe&&(clearTimeout(pe),pe=void 0),le&&(clearInterval(le),le=void 0)};$.addEventListener("mousedown",$e=>{$e.button===0&&(Ce(),_e(),document.addEventListener("mouseup",()=>Ce(),{once:!0}),pe=setTimeout(()=>{le=setInterval(()=>{_e()},ae)},ie))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=$=>{if(FOCUS_STACK.length===0)return;const z=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(z.length>0&&$.code===EVENT_CODE.tab){if(z.length===1){$.preventDefault(),document.activeElement!==z[0]&&z[0].focus();return}const oe=$.shiftKey,ae=$.target===z[0],ie=$.target===z[z.length-1];ae&&oe&&($.preventDefault(),z[z.length-1].focus()),ie&&!oe&&($.preventDefault(),z[0].focus())}},TrapFocus={beforeMount($){$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($),FOCUS_STACK.push($),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated($){nextTick(()=>{$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($)})},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$1,F;function a$1(){if(!v){v=!0;var $=navigator.userAgent,z=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec($),oe=/(Mac OS X)|(Windows)|(Linux)/.exec($);if(x=/\b(iPhone|iP[ao]d)/.exec($),E=/\b(iP[ao]d)/.exec($),w=/Android/i.exec($),M$1=/FBAN\/\w+;/i.exec($),F=/Mobile/i.exec($),D$2=!!/Win64/.exec($),z){o=z[1]?parseFloat(z[1]):z[5]?parseFloat(z[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var ae=/(?:Trident\/(\d+.\d+))/.exec($);N$1=ae?parseFloat(ae[1])+4:o,f$1=z[2]?parseFloat(z[2]):NaN,s=z[3]?parseFloat(z[3]):NaN,u$1=z[4]?parseFloat(z[4]):NaN,u$1?(z=/(?:Chrome\/(\d+\.\d+))/.exec($),d$1=z&&z[1]?parseFloat(z[1]):NaN):d$1=NaN}else o=f$1=s=d$1=u$1=NaN;if(oe){if(oe[1]){var ie=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec($);l=ie?parseFloat(ie[1].replace("_",".")):!0}else l=!1;p$1=!!oe[2],m$3=!!oe[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$1()||o},ieCompatibilityMode:function(){return a$1()||N$1>o},ie64:function(){return _$2.ie()&&D$2},firefox:function(){return a$1()||f$1},opera:function(){return a$1()||s},webkit:function(){return a$1()||u$1},safari:function(){return _$2.webkit()},chrome:function(){return a$1()||d$1},windows:function(){return a$1()||p$1},osx:function(){return a$1()||l},linux:function(){return a$1()||m$3},iphone:function(){return a$1()||x},mobile:function(){return a$1()||x||E||w||F},nativeApp:function(){return a$1()||M$1},android:function(){return a$1()||w},ipad:function(){return a$1()||E}},A=_$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$1($,z){if(!h$1.canUseDOM||z&&!("addEventListener"in document))return!1;var oe="on"+$,ae=oe in document;if(!ae){var ie=document.createElement("div");ie.setAttribute(oe,"return;"),ae=typeof ie[oe]=="function"}return!ae&&X&&$==="wheel"&&(ae=document.implementation.hasFeature("Events.wheel","3.0")),ae}var b$1=S$1,O$1=10,I$1=40,P$2=800;function T$1($){var z=0,oe=0,ae=0,ie=0;return"detail"in $&&(oe=$.detail),"wheelDelta"in $&&(oe=-$.wheelDelta/120),"wheelDeltaY"in $&&(oe=-$.wheelDeltaY/120),"wheelDeltaX"in $&&(z=-$.wheelDeltaX/120),"axis"in $&&$.axis===$.HORIZONTAL_AXIS&&(z=oe,oe=0),ae=z*O$1,ie=oe*O$1,"deltaY"in $&&(ie=$.deltaY),"deltaX"in $&&(ae=$.deltaX),(ae||ie)&&$.deltaMode&&($.deltaMode==1?(ae*=I$1,ie*=I$1):(ae*=P$2,ie*=P$2)),ae&&!z&&(z=ae<1?-1:1),ie&&!oe&&(oe=ie<1?-1:1),{spinX:z,spinY:oe,pixelX:ae,pixelY:ie}}T$1.getEventType=function(){return A.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y=T$1;/**
|
||
* 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($,z){if($&&$.addEventListener){const oe=function(ae){const ie=Y(ae);z&&Reflect.apply(z,this,[ae,ie])};$.addEventListener("wheel",oe,{passive:!0})}},Mousewheel={beforeMount($,z){mousewheel($,z.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($,{emit:z}){const oe=$,ae=useNamespace("time"),{getHoursList:ie,getMinutesList:le,getSecondsList:pe}=getTimeLists(oe.disabledHours,oe.disabledMinutes,oe.disabledSeconds);let _e=!1;const Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),Ne={hours:$e,minutes:xe,seconds:Ie},Fe=computed(()=>oe.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),ze=computed(()=>{const{spinnerDate:Bn}=oe,zn=Bn.hour(),Xn=Bn.minute(),Un=Bn.second();return{hours:zn,minutes:Xn,seconds:Un}}),At=computed(()=>{const{hours:Bn,minutes:zn}=unref(ze);return{hours:ie(oe.role),minutes:le(Bn,oe.role),seconds:pe(Bn,zn,oe.role)}}),Lt=computed(()=>{const{hours:Bn,minutes:zn,seconds:Xn}=unref(ze);return{hours:buildTimeList(Bn,23),minutes:buildTimeList(zn,59),seconds:buildTimeList(Xn,59)}}),hn=debounce(Bn=>{_e=!1,bn(Bn)},200),vn=Bn=>{if(!!!oe.amPmMode)return"";const Xn=oe.amPmMode==="A";let Un=Bn<12?" am":" pm";return Xn&&(Un=Un.toUpperCase()),Un},_n=Bn=>{let zn;switch(Bn){case"hours":zn=[0,2];break;case"minutes":zn=[3,5];break;case"seconds":zn=[6,8];break}const[Xn,Un]=zn;z("select-range",Xn,Un),Ce.value=Bn},bn=Bn=>{$n(Bn,unref(ze)[Bn])},Cn=()=>{bn("hours"),bn("minutes"),bn("seconds")},En=Bn=>Bn.querySelector(`.${ae.namespace.value}-scrollbar__wrap`),$n=(Bn,zn)=>{if(oe.arrowControl)return;const Xn=unref(Ne[Bn]);Xn&&Xn.$el&&(En(Xn.$el).scrollTop=Math.max(0,zn*wn(Bn)))},wn=Bn=>{const zn=unref(Ne[Bn]);return(zn==null?void 0:zn.$el.querySelector("li").offsetHeight)||0},Tn=()=>{kn(1)},xn=()=>{kn(-1)},kn=Bn=>{Ce.value||_n("hours");const zn=Ce.value,Xn=unref(ze)[zn],Un=Ce.value==="hours"?24:60,Jn=An(zn,Xn,Bn,Un);On(zn,Jn),$n(zn,Jn),nextTick(()=>_n(zn))},An=(Bn,zn,Xn,Un)=>{let Jn=(zn+Xn+Un)%Un;const lr=unref(At)[Bn];for(;lr[Jn]&&Jn!==zn;)Jn=(Jn+Xn+Un)%Un;return Jn},On=(Bn,zn)=>{if(unref(At)[Bn][zn])return;const{hours:Jn,minutes:lr,seconds:_r}=unref(ze);let ir;switch(Bn){case"hours":ir=oe.spinnerDate.hour(zn).minute(lr).second(_r);break;case"minutes":ir=oe.spinnerDate.hour(Jn).minute(zn).second(_r);break;case"seconds":ir=oe.spinnerDate.hour(Jn).minute(lr).second(zn);break}z("change",ir)},Mn=(Bn,{value:zn,disabled:Xn})=>{Xn||(On(Bn,zn),_n(Bn),$n(Bn,zn))},Fn=Bn=>{_e=!0,hn(Bn);const zn=Math.min(Math.round((En(unref(Ne[Bn]).$el).scrollTop-(Dn(Bn)*.5-10)/wn(Bn)+3)/wn(Bn)),Bn==="hours"?23:59);On(Bn,zn)},Dn=Bn=>unref(Ne[Bn]).$el.offsetHeight,Nn=()=>{const Bn=zn=>{const Xn=unref(Ne[zn]);Xn&&Xn.$el&&(En(Xn.$el).onscroll=()=>{Fn(zn)})};Bn("hours"),Bn("minutes"),Bn("seconds")};onMounted(()=>{nextTick(()=>{!oe.arrowControl&&Nn(),Cn(),oe.role==="start"&&_n("hours")})});const Vn=(Bn,zn)=>{Ne[zn].value=Bn};return z("set-option",[`${oe.role}_scrollDown`,kn]),z("set-option",[`${oe.role}_emitSelectRange`,_n]),watch(()=>oe.spinnerDate,()=>{_e||Cn()}),(Bn,zn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b("spinner"),{"has-seconds":Bn.showSeconds}])},[Bn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(Fe),Xn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Xn,ref_for:!0,ref:Un=>Vn(Un,Xn),class:normalizeClass(unref(ae).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(ae).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Un=>_n(Xn),onMousemove:Un=>bn(Xn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(At)[Xn],(Un,Jn)=>(openBlock(),createElementBlock("li",{key:Jn,class:normalizeClass([unref(ae).be("spinner","item"),unref(ae).is("active",Jn===unref(ze)[Xn]),unref(ae).is("disabled",Un)]),onClick:lr=>Mn(Xn,{value:Jn,disabled:Un})},[Xn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Bn.amPmMode?Jn%12||12:Jn)).slice(-2))+toDisplayString$1(vn(Jn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Jn).slice(-2)),1)],64))],10,_hoisted_1$Z))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Bn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(Fe),Xn=>(openBlock(),createElementBlock("div",{key:Xn,class:normalizeClass([unref(ae).be("spinner","wrapper"),unref(ae).is("arrow")]),onMouseenter:Un=>_n(Xn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(ae).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),xn]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(ae).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),Tn]]),createBaseVNode("ul",{class:normalizeClass(unref(ae).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Lt)[Xn],(Un,Jn)=>(openBlock(),createElementBlock("li",{key:Jn,class:normalizeClass([unref(ae).be("spinner","item"),unref(ae).is("active",Un===unref(ze)[Xn]),unref(ae).is("disabled",unref(At)[Xn][Un])])},[typeof Un=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[Xn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Bn.amPmMode?Un%12||12:Un)).slice(-2))+toDisplayString$1(vn(Un)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Un).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($,{emit:z}){const oe=$,ae=inject("EP_PICKER_BASE"),{arrowControl:ie,disabledHours:le,disabledMinutes:pe,disabledSeconds:_e,defaultValue:Ce}=ae.props,{getAvailableHours:$e,getAvailableMinutes:xe,getAvailableSeconds:Ie}=buildAvailableTimeSlotGetter(le,pe,_e),Ne=useNamespace("time"),{t:Fe,lang:ze}=useLocale(),At=ref([0,2]),Lt=useOldValue(oe),hn=computed(()=>isUndefined$1(oe.actualVisible)?`${Ne.namespace.value}-zoom-in-top`:""),vn=computed(()=>oe.format.includes("ss")),_n=computed(()=>oe.format.includes("A")?"A":oe.format.includes("a")?"a":""),bn=Vn=>{const Bn=dayjs(Vn).locale(ze.value),zn=Mn(Bn);return Bn.isSame(zn)},Cn=()=>{z("pick",Lt.value,!1)},En=(Vn=!1,Bn=!1)=>{Bn||z("pick",oe.parsedValue,Vn)},$n=Vn=>{if(!oe.visible)return;const Bn=Mn(Vn).millisecond(0);z("pick",Bn,!0)},wn=(Vn,Bn)=>{z("select-range",Vn,Bn),At.value=[Vn,Bn]},Tn=Vn=>{const Bn=[0,3].concat(vn.value?[6]:[]),zn=["hours","minutes"].concat(vn.value?["seconds"]:[]),Un=(Bn.indexOf(At.value[0])+Vn+Bn.length)%Bn.length;kn.start_emitSelectRange(zn[Un])},xn=Vn=>{const Bn=Vn.code,{left:zn,right:Xn,up:Un,down:Jn}=EVENT_CODE;if([zn,Xn].includes(Bn)){Tn(Bn===zn?-1:1),Vn.preventDefault();return}if([Un,Jn].includes(Bn)){const lr=Bn===Un?-1:1;kn.start_scrollDown(lr),Vn.preventDefault();return}},{timePickerOptions:kn,onSetOption:An,getAvailableTime:On}=useTimePanel({getAvailableHours:$e,getAvailableMinutes:xe,getAvailableSeconds:Ie}),Mn=Vn=>On(Vn,oe.datetimeRole||"",!0),Fn=Vn=>Vn?dayjs(Vn,oe.format).locale(ze.value):null,Dn=Vn=>Vn?Vn.format(oe.format):null,Nn=()=>dayjs(Ce).locale(ze.value);return z("set-picker-option",["isValidValue",bn]),z("set-picker-option",["formatToString",Dn]),z("set-picker-option",["parseUserInput",Fn]),z("set-picker-option",["handleKeydownInput",xn]),z("set-picker-option",["getRangeAvailableTime",Mn]),z("set-picker-option",["getDefaultValue",Nn]),(Vn,Bn)=>(openBlock(),createBlock(Transition,{name:unref(hn)},{default:withCtx(()=>[Vn.actualVisible||Vn.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ne).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(Ne).be("panel","content"),{"has-seconds":unref(vn)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Vn.datetimeRole||"start","arrow-control":unref(ie),"show-seconds":unref(vn),"am-pm-mode":unref(_n),"spinner-date":Vn.parsedValue,"disabled-hours":unref(le),"disabled-minutes":unref(pe),"disabled-seconds":unref(_e),onChange:$n,onSetOption:unref(An),onSelectRange:wn},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(Ne).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ne).be("panel","btn"),"cancel"]),onClick:Cn},toDisplayString$1(unref(Fe)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ne).be("panel","btn"),"confirm"]),onClick:Bn[0]||(Bn[0]=zn=>En())},toDisplayString$1(unref(Fe)("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($,{emit:z}){const oe=$,ae=(Wn,tr)=>{const pr=[];for(let Gn=Wn;Gn<=tr;Gn++)pr.push(Gn);return pr},{t:ie,lang:le}=useLocale(),pe=useNamespace("time"),_e=useNamespace("picker"),Ce=inject("EP_PICKER_BASE"),{arrowControl:$e,disabledHours:xe,disabledMinutes:Ie,disabledSeconds:Ne,defaultValue:Fe}=Ce.props,ze=computed(()=>oe.parsedValue[0]),At=computed(()=>oe.parsedValue[1]),Lt=useOldValue(oe),hn=()=>{z("pick",Lt.value,!1)},vn=computed(()=>oe.format.includes("ss")),_n=computed(()=>oe.format.includes("A")?"A":oe.format.includes("a")?"a":""),bn=(Wn=!1)=>{z("pick",[ze.value,At.value],Wn)},Cn=Wn=>{wn(Wn.millisecond(0),At.value)},En=Wn=>{wn(ze.value,Wn.millisecond(0))},$n=Wn=>{const tr=Wn.map(Gn=>dayjs(Gn).locale(le.value)),pr=Bn(tr);return tr[0].isSame(pr[0])&&tr[1].isSame(pr[1])},wn=(Wn,tr)=>{z("pick",[Wn,tr],!0)},Tn=computed(()=>ze.value>At.value),xn=ref([0,2]),kn=(Wn,tr)=>{z("select-range",Wn,tr,"min"),xn.value=[Wn,tr]},An=computed(()=>vn.value?11:8),On=(Wn,tr)=>{z("select-range",Wn,tr,"max");const pr=unref(An);xn.value=[Wn+pr,tr+pr]},Mn=Wn=>{const tr=vn.value?[0,3,6,11,14,17]:[0,3,8,11],pr=["hours","minutes"].concat(vn.value?["seconds"]:[]),Zn=(tr.indexOf(xn.value[0])+Wn+tr.length)%tr.length,rr=tr.length/2;Zn<rr?Jn.start_emitSelectRange(pr[Zn]):Jn.end_emitSelectRange(pr[Zn-rr])},Fn=Wn=>{const tr=Wn.code,{left:pr,right:Gn,up:Zn,down:rr}=EVENT_CODE;if([pr,Gn].includes(tr)){Mn(tr===pr?-1:1),Wn.preventDefault();return}if([Zn,rr].includes(tr)){const mr=tr===Zn?-1:1,Sr=xn.value[0]<An.value?"start":"end";Jn[`${Sr}_scrollDown`](mr),Wn.preventDefault();return}},Dn=(Wn,tr)=>{const pr=xe?xe(Wn):[],Gn=Wn==="start",rr=(tr||(Gn?At.value:ze.value)).hour(),mr=Gn?ae(rr+1,23):ae(0,rr-1);return union$1(pr,mr)},Nn=(Wn,tr,pr)=>{const Gn=Ie?Ie(Wn,tr):[],Zn=tr==="start",rr=pr||(Zn?At.value:ze.value),mr=rr.hour();if(Wn!==mr)return Gn;const Sr=rr.minute(),ar=Zn?ae(Sr+1,59):ae(0,Sr-1);return union$1(Gn,ar)},Vn=(Wn,tr,pr,Gn)=>{const Zn=Ne?Ne(Wn,tr,pr):[],rr=pr==="start",mr=Gn||(rr?At.value:ze.value),Sr=mr.hour(),ar=mr.minute();if(Wn!==Sr||tr!==ar)return Zn;const xr=mr.second(),gr=rr?ae(xr+1,59):ae(0,xr-1);return union$1(Zn,gr)},Bn=([Wn,tr])=>[lr(Wn,"start",!0,tr),lr(tr,"end",!1,Wn)],{getAvailableHours:zn,getAvailableMinutes:Xn,getAvailableSeconds:Un}=buildAvailableTimeSlotGetter(Dn,Nn,Vn),{timePickerOptions:Jn,getAvailableTime:lr,onSetOption:_r}=useTimePanel({getAvailableHours:zn,getAvailableMinutes:Xn,getAvailableSeconds:Un}),ir=Wn=>Wn?isArray$c(Wn)?Wn.map(tr=>dayjs(tr,oe.format).locale(le.value)):dayjs(Wn,oe.format).locale(le.value):null,qn=Wn=>Wn?isArray$c(Wn)?Wn.map(tr=>tr.format(oe.format)):Wn.format(oe.format):null,Yn=()=>{if(isArray$c(Fe))return Fe.map(tr=>dayjs(tr).locale(le.value));const Wn=dayjs(Fe).locale(le.value);return[Wn,Wn.add(60,"m")]};return z("set-picker-option",["formatToString",qn]),z("set-picker-option",["parseUserInput",ir]),z("set-picker-option",["isValidValue",$n]),z("set-picker-option",["handleKeydownInput",Fn]),z("set-picker-option",["getDefaultValue",Yn]),z("set-picker-option",["getRangeAvailableTime",Bn]),(Wn,tr)=>Wn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(pe).b("range-picker"),unref(_e).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","header"))},toDisplayString$1(unref(ie)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([unref(pe).be("range-picker","body"),unref(pe).be("panel","content"),unref(pe).is("arrow",unref($e)),{"has-seconds":unref(vn)}])},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(vn),"am-pm-mode":unref(_n),"arrow-control":unref($e),"spinner-date":unref(ze),"disabled-hours":Dn,"disabled-minutes":Nn,"disabled-seconds":Vn,onChange:Cn,onSetOption:unref(_r),onSelectRange:kn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","header"))},toDisplayString$1(unref(ie)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([unref(pe).be("range-picker","body"),unref(pe).be("panel","content"),unref(pe).is("arrow",unref($e)),{"has-seconds":unref(vn)}])},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(vn),"am-pm-mode":unref(_n),"arrow-control":unref($e),"spinner-date":unref(At),"disabled-hours":Dn,"disabled-minutes":Nn,"disabled-seconds":Vn,onChange:En,onSetOption:unref(_r),onSelectRange:On},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(pe).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(pe).be("panel","btn"),"cancel"]),onClick:tr[0]||(tr[0]=pr=>hn())},toDisplayString$1(unref(ie)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(pe).be("panel","btn"),"confirm"]),disabled:unref(Tn),onClick:tr[1]||(tr[1]=pr=>bn())},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($,z){const oe=ref(),[ae,ie]=$.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],le=pe=>z.emit("update:modelValue",pe);return provide("ElPopperOptions",$.popperOptions),z.expose({focus:pe=>{var _e;(_e=oe.value)==null||_e.handleFocusInput(pe)},blur:pe=>{var _e;(_e=oe.value)==null||_e.handleBlurInput(pe)},handleOpen:()=>{var pe;(pe=oe.value)==null||pe.handleOpen()},handleClose:()=>{var pe;(pe=oe.value)==null||pe.handleClose()}}),()=>{var pe;const _e=(pe=$.format)!=null?pe:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps($,{ref:oe,type:ae,format:_e,"onUpdate:modelValue":le}),{default:Ce=>createVNode(ie,Ce,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=$=>{$.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=($,z)=>{const oe=$.subtract(1,"month").endOf("month").date();return rangeArr(z).map((ae,ie)=>oe-(z-ie-1))},getMonthDays=$=>{const z=$.daysInMonth();return rangeArr(z).map((oe,ae)=>ae+1)},toNestedArr=$=>rangeArr($.length/7).map(z=>{const oe=z*7;return $.slice(oe,oe+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:$=>isObject$8($)};var localeData$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae,ie){var le=ae.prototype,pe=function(Ie){return Ie&&(Ie.indexOf?Ie:Ie.s)},_e=function(Ie,Ne,Fe,ze,At){var Lt=Ie.name?Ie:Ie.$locale(),hn=pe(Lt[Ne]),vn=pe(Lt[Fe]),_n=hn||vn.map(function(Cn){return Cn.slice(0,ze)});if(!At)return _n;var bn=Lt.weekStart;return _n.map(function(Cn,En){return _n[(En+(bn||0))%7]})},Ce=function(){return ie.Ls[ie.locale()]},$e=function(Ie,Ne){return Ie.formats[Ne]||function(Fe){return Fe.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ze,At,Lt){return At||Lt.slice(1)})}(Ie.formats[Ne.toUpperCase()])},xe=function(){var Ie=this;return{months:function(Ne){return Ne?Ne.format("MMMM"):_e(Ie,"months")},monthsShort:function(Ne){return Ne?Ne.format("MMM"):_e(Ie,"monthsShort","months",3)},firstDayOfWeek:function(){return Ie.$locale().weekStart||0},weekdays:function(Ne){return Ne?Ne.format("dddd"):_e(Ie,"weekdays")},weekdaysMin:function(Ne){return Ne?Ne.format("dd"):_e(Ie,"weekdaysMin","weekdays",2)},weekdaysShort:function(Ne){return Ne?Ne.format("ddd"):_e(Ie,"weekdaysShort","weekdays",3)},longDateFormat:function(Ne){return $e(Ie.$locale(),Ne)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};le.localeData=function(){return xe.bind(this)()},ie.localeData=function(){var Ie=Ce();return{firstDayOfWeek:function(){return Ie.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(Ne){return $e(Ie,Ne)},meridiem:Ie.meridiem,ordinal:Ie.ordinal}},ie.months=function(){return _e(Ce(),"months")},ie.monthsShort=function(){return _e(Ce(),"monthsShort","months",3)},ie.weekdays=function(Ie){return _e(Ce(),"weekdays",null,null,Ie)},ie.weekdaysShort=function(Ie){return _e(Ce(),"weekdaysShort","weekdays",3,Ie)},ie.weekdaysMin=function(Ie){return _e(Ce(),"weekdaysMin","weekdays",2,Ie)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=($,z)=>{dayjs.extend(localeData);const oe=dayjs.localeData().firstDayOfWeek(),{t:ae,lang:ie}=useLocale(),le=dayjs().locale(ie.value),pe=computed(()=>!!$.range&&!!$.range.length),_e=computed(()=>{let Ne=[];if(pe.value){const[Fe,ze]=$.range,At=rangeArr(ze.date()-Fe.date()+1).map(vn=>({text:Fe.date()+vn,type:"current"}));let Lt=At.length%7;Lt=Lt===0?0:7-Lt;const hn=rangeArr(Lt).map((vn,_n)=>({text:_n+1,type:"next"}));Ne=At.concat(hn)}else{const Fe=$.date.startOf("month").day(),ze=getPrevMonthLastDays($.date,(Fe-oe+7)%7).map(vn=>({text:vn,type:"prev"})),At=getMonthDays($.date).map(vn=>({text:vn,type:"current"}));Ne=[...ze,...At];const Lt=7-(Ne.length%7||7),hn=rangeArr(Lt).map((vn,_n)=>({text:_n+1,type:"next"}));Ne=Ne.concat(hn)}return toNestedArr(Ne)}),Ce=computed(()=>{const Ne=oe;return Ne===0?WEEK_DAYS.map(Fe=>ae(`el.datepicker.weeks.${Fe}`)):WEEK_DAYS.slice(Ne).concat(WEEK_DAYS.slice(0,Ne)).map(Fe=>ae(`el.datepicker.weeks.${Fe}`))}),$e=(Ne,Fe)=>{switch(Fe){case"prev":return $.date.startOf("month").subtract(1,"month").date(Ne);case"next":return $.date.startOf("month").add(1,"month").date(Ne);case"current":return $.date.date(Ne)}};return{now:le,isInRange:pe,rows:_e,weekDays:Ce,getFormattedDate:$e,handlePickDay:({text:Ne,type:Fe})=>{const ze=$e(Ne,Fe);z("pick",ze)},getSlotData:({text:Ne,type:Fe})=>{const ze=$e(Ne,Fe);return{isSelected:ze.isSame($.selectedDay),type:`${Fe}-month`,day:ze.format("YYYY-MM-DD"),date:ze.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($,{expose:z,emit:oe}){const ae=$,{isInRange:ie,now:le,rows:pe,weekDays:_e,getFormattedDate:Ce,handlePickDay:$e,getSlotData:xe}=useDateTable(ae,oe),Ie=useNamespace("calendar-table"),Ne=useNamespace("calendar-day"),Fe=({text:ze,type:At})=>{const Lt=[At];if(At==="current"){const hn=Ce(ze,At);hn.isSame(ae.selectedDay,"day")&&Lt.push(Ne.is("selected")),hn.isSame(le,"day")&&Lt.push(Ne.is("today"))}return Lt};return z({getFormattedDate:Ce}),(ze,At)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(Ie).b(),unref(Ie).is("range",unref(ie))]),cellspacing:"0",cellpadding:"0"},[ze.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$X,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),Lt=>(openBlock(),createElementBlock("th",{key:Lt},toDisplayString$1(Lt),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(Lt,hn)=>(openBlock(),createElementBlock("tr",{key:hn,class:normalizeClass({[unref(Ie).e("row")]:!0,[unref(Ie).em("row","hide-border")]:hn===0&&ze.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Lt,(vn,_n)=>(openBlock(),createElementBlock("td",{key:_n,class:normalizeClass(Fe(vn)),onClick:bn=>unref($e)(vn)},[createBaseVNode("div",{class:normalizeClass(unref(Ne).b())},[renderSlot(ze.$slots,"date-cell",{data:unref(xe)(vn)},()=>[createBaseVNode("span",null,toDisplayString$1(vn.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=($,z)=>{const oe=$.endOf("month"),ae=z.startOf("month"),le=oe.isSame(ae,"week")?ae.add(1,"week"):ae;return[[$,oe],[le.startOf("week"),z]]},threeConsecutiveMonth=($,z)=>{const oe=$.endOf("month"),ae=$.add(1,"month").startOf("month"),ie=oe.isSame(ae,"week")?ae.add(1,"week"):ae,le=ie.endOf("month"),pe=z.startOf("month"),_e=le.isSame(pe,"week")?pe.add(1,"week"):pe;return[[$,oe],[ie.startOf("week"),le],[_e.startOf("week"),z]]},useCalendar=($,z,oe)=>{const ae=useSlots(),{lang:ie}=useLocale(),le=ref(),pe=dayjs().locale(ie.value),_e=computed({get(){return $.modelValue?$e.value:le.value},set(hn){if(!hn)return;le.value=hn;const vn=hn.toDate();z(INPUT_EVENT,vn),z(UPDATE_MODEL_EVENT,vn)}}),Ce=computed(()=>{if(!$.range)return[];const hn=$.range.map(bn=>dayjs(bn).locale(ie.value)),[vn,_n]=hn;return vn.isAfter(_n)?[]:vn.isSame(_n,"month")?ze(vn,_n):vn.add(1,"month").month()!==_n.month()?[]:ze(vn,_n)}),$e=computed(()=>$.modelValue?dayjs($.modelValue).locale(ie.value):_e.value||(Ce.value.length?Ce.value[0][0]:pe)),xe=computed(()=>$e.value.subtract(1,"month").date(1)),Ie=computed(()=>$e.value.add(1,"month").date(1)),Ne=computed(()=>$e.value.subtract(1,"year").date(1)),Fe=computed(()=>$e.value.add(1,"year").date(1)),ze=(hn,vn)=>{const _n=hn.startOf("week"),bn=vn.endOf("week"),Cn=_n.get("month"),En=bn.get("month");return Cn===En?[[_n,bn]]:(Cn+1)%12===En?adjacentMonth(_n,bn):Cn+2===En||(Cn+1)%11===En?threeConsecutiveMonth(_n,bn):[]},At=hn=>{_e.value=hn},Lt=hn=>{const _n={"prev-month":xe.value,"next-month":Ie.value,"prev-year":Ne.value,"next-year":Fe.value,today:pe}[hn];_n.isSame($e.value,"day")||At(_n)};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(()=>!!ae.dateCell)),{calculateValidatedDateRange:ze,date:$e,realSelectedDay:_e,pickDay:At,selectDate:Lt,validatedRange:Ce}},isValidRange$1=$=>isArray$c($)&&$.length===2&&$.every(z=>isDate$3(z)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:$=>isDate$3($),[INPUT_EVENT]:$=>isDate$3($)},COMPONENT_NAME$g="ElCalendar",__default__$1e=defineComponent({name:COMPONENT_NAME$g}),_sfc_main$1S=defineComponent({...__default__$1e,props:calendarProps,emits:calendarEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=useNamespace("calendar"),{calculateValidatedDateRange:le,date:pe,pickDay:_e,realSelectedDay:Ce,selectDate:$e,validatedRange:xe}=useCalendar(ae,oe),{t:Ie}=useLocale(),Ne=computed(()=>{const Fe=`el.datepicker.month${pe.value.format("M")}`;return`${pe.value.year()} ${Ie("el.datepicker.year")} ${Ie(Fe)}`});return z({selectedDay:Ce,pickDay:_e,selectDate:$e,calculateValidatedDateRange:le}),(Fe,ze)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("header"))},[renderSlot(Fe.$slots,"header",{date:unref(Ne)},()=>[createBaseVNode("div",{class:normalizeClass(unref(ie).e("title"))},toDisplayString$1(unref(Ne)),3),unref(xe).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:ze[0]||(ze[0]=At=>unref($e)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:ze[1]||(ze[1]=At=>unref($e)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:ze[2]||(ze[2]=At=>unref($e)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(xe).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("body"))},[createVNode(DateTable$1,{date:unref(pe),"selected-day":unref(Ce),onPick:unref(_e)},createSlots({_:2},[Fe.$slots["date-cell"]||Fe.$slots.dateCell?{name:"date-cell",fn:withCtx(At=>[Fe.$slots["date-cell"]?renderSlot(Fe.$slots,"date-cell",normalizeProps(mergeProps({key:0},At))):renderSlot(Fe.$slots,"dateCell",normalizeProps(mergeProps({key:1},At)))])}: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(xe),(At,Lt)=>(openBlock(),createBlock(DateTable$1,{key:Lt,date:At[0],"selected-day":unref(Ce),range:At,"hide-header":Lt!==0,onPick:unref(_e)},createSlots({_:2},[Fe.$slots["date-cell"]||Fe.$slots.dateCell?{name:"date-cell",fn:withCtx(hn=>[Fe.$slots["date-cell"]?renderSlot(Fe.$slots,"date-cell",normalizeProps(mergeProps({key:0},hn))):renderSlot(Fe.$slots,"dateCell",normalizeProps(mergeProps({key:1},hn)))])}: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:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$1d=defineComponent({name:"ElCard"}),_sfc_main$1R=defineComponent({...__default__$1d,props:cardProps,setup($){const z=useNamespace("card");return(oe,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).b(),unref(z).is(`${oe.shadow}-shadow`)])},[oe.$slots.header||oe.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(z).e("header"))},[renderSlot(oe.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(oe.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(z).e("body")),style:normalizeStyle$1(oe.bodyStyle)},[renderSlot(oe.$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:($,z)=>[$,z].every(isNumber$5)},carouselContextKey=Symbol("carouselContextKey"),THROTTLE_TIME=300,useCarousel=($,z,oe)=>{const{children:ae,addChild:ie,removeChild:le}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),pe=ref(-1),_e=ref(null),Ce=ref(!1),$e=ref(),xe=computed(()=>$.arrow!=="never"&&!unref(Fe)),Ie=computed(()=>ae.value.some(Dn=>Dn.props.label.toString().length>0)),Ne=computed(()=>$.type==="card"),Fe=computed(()=>$.direction==="vertical"),ze=throttle$1(Dn=>{_n(Dn)},THROTTLE_TIME,{trailing:!0}),At=throttle$1(Dn=>{kn(Dn)},THROTTLE_TIME);function Lt(){_e.value&&(clearInterval(_e.value),_e.value=null)}function hn(){$.interval<=0||!$.autoplay||_e.value||(_e.value=setInterval(()=>vn(),$.interval))}const vn=()=>{pe.value<ae.value.length-1?pe.value=pe.value+1:$.loop&&(pe.value=0)};function _n(Dn){if(isString$7(Dn)){const Bn=ae.value.filter(zn=>zn.props.name===Dn);Bn.length>0&&(Dn=ae.value.indexOf(Bn[0]))}if(Dn=Number(Dn),Number.isNaN(Dn)||Dn!==Math.floor(Dn))return;const Nn=ae.value.length,Vn=pe.value;Dn<0?pe.value=$.loop?Nn-1:0:Dn>=Nn?pe.value=$.loop?0:Nn-1:pe.value=Dn,Vn===pe.value&&bn(Vn),Mn()}function bn(Dn){ae.value.forEach((Nn,Vn)=>{Nn.translateItem(Vn,pe.value,Dn)})}function Cn(Dn,Nn){var Vn,Bn,zn,Xn;const Un=unref(ae),Jn=Un.length;if(Jn===0||!Dn.states.inStage)return!1;const lr=Nn+1,_r=Nn-1,ir=Jn-1,qn=Un[ir].states.active,Yn=Un[0].states.active,Wn=(Bn=(Vn=Un[lr])==null?void 0:Vn.states)==null?void 0:Bn.active,tr=(Xn=(zn=Un[_r])==null?void 0:zn.states)==null?void 0:Xn.active;return Nn===ir&&Yn||Wn?"left":Nn===0&&qn||tr?"right":!1}function En(){Ce.value=!0,$.pauseOnHover&&Lt()}function $n(){Ce.value=!1,hn()}function wn(Dn){unref(Fe)||ae.value.forEach((Nn,Vn)=>{Dn===Cn(Nn,Vn)&&(Nn.states.hover=!0)})}function Tn(){unref(Fe)||ae.value.forEach(Dn=>{Dn.states.hover=!1})}function xn(Dn){pe.value=Dn}function kn(Dn){$.trigger==="hover"&&Dn!==pe.value&&(pe.value=Dn)}function An(){_n(pe.value-1)}function On(){_n(pe.value+1)}function Mn(){Lt(),hn()}watch(()=>pe.value,(Dn,Nn)=>{bn(Nn),Nn>-1&&z("change",Dn,Nn)}),watch(()=>$.autoplay,Dn=>{Dn?hn():Lt()}),watch(()=>$.loop,()=>{_n(pe.value)}),watch(()=>$.interval,()=>{Mn()}),watch(()=>ae.value,()=>{ae.value.length>0&&_n($.initialIndex)});const Fn=shallowRef();return onMounted(()=>{Fn.value=useResizeObserver($e.value,()=>{bn()}),hn()}),onBeforeUnmount(()=>{Lt(),$e.value&&Fn.value&&Fn.value.stop()}),provide(carouselContextKey,{root:$e,isCardType:Ne,isVertical:Fe,items:ae,loop:$.loop,addItem:ie,removeItem:le,setActiveItem:_n}),{root:$e,activeIndex:pe,arrowDisplay:xe,hasLabel:Ie,hover:Ce,isCardType:Ne,items:ae,handleButtonEnter:wn,handleButtonLeave:Tn,handleIndicatorClick:xn,handleMouseEnter:En,handleMouseLeave:$n,setActiveItem:_n,prev:An,next:On,throttledArrowClick:ze,throttledIndicatorHover:At}},_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($,{expose:z,emit:oe}){const ae=$,{root:ie,activeIndex:le,arrowDisplay:pe,hasLabel:_e,hover:Ce,isCardType:$e,items:xe,handleButtonEnter:Ie,handleButtonLeave:Ne,handleIndicatorClick:Fe,handleMouseEnter:ze,handleMouseLeave:At,setActiveItem:Lt,prev:hn,next:vn,throttledArrowClick:_n,throttledIndicatorHover:bn}=useCarousel(ae,oe),Cn=useNamespace("carousel"),En=computed(()=>{const wn=[Cn.b(),Cn.m(ae.direction)];return unref($e)&&wn.push(Cn.m("card")),wn}),$n=computed(()=>{const wn=[Cn.e("indicators"),Cn.em("indicators",ae.direction)];return unref(_e)&&wn.push(Cn.em("indicators","labels")),(ae.indicatorPosition==="outside"||unref($e))&&wn.push(Cn.em("indicators","outside")),wn});return z({setActiveItem:Lt,prev:hn,next:vn}),(wn,Tn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:ie,class:normalizeClass(unref(En)),onMouseenter:Tn[6]||(Tn[6]=withModifiers((...xn)=>unref(ze)&&unref(ze)(...xn),["stop"])),onMouseleave:Tn[7]||(Tn[7]=withModifiers((...xn)=>unref(At)&&unref(At)(...xn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref(Cn).e("container")),style:normalizeStyle$1({height:wn.height})},[unref(pe)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Cn).e("arrow"),unref(Cn).em("arrow","left")]),onMouseenter:Tn[0]||(Tn[0]=xn=>unref(Ie)("left")),onMouseleave:Tn[1]||(Tn[1]=(...xn)=>unref(Ne)&&unref(Ne)(...xn)),onClick:Tn[2]||(Tn[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(Ce))&&(ae.loop||unref(le)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(pe)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Cn).e("arrow"),unref(Cn).em("arrow","right")]),onMouseenter:Tn[3]||(Tn[3]=xn=>unref(Ie)("right")),onMouseleave:Tn[4]||(Tn[4]=(...xn)=>unref(Ne)&&unref(Ne)(...xn)),onClick:Tn[5]||(Tn[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(Ce))&&(ae.loop||unref(le)<unref(xe).length-1)]])]),_:1})):createCommentVNode("v-if",!0),renderSlot(wn.$slots,"default")],6),wn.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(unref($n))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),(xn,kn)=>(openBlock(),createElementBlock("li",{key:kn,class:normalizeClass([unref(Cn).e("indicator"),unref(Cn).em("indicator",wn.direction),unref(Cn).is("active",kn===unref(le))]),onMouseenter:An=>unref(bn)(kn),onClick:withModifiers(An=>unref(Fe)(kn),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(Cn).e("button"))},[unref(_e)?(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=($,z)=>{const oe=inject(carouselContextKey),ae=getCurrentInstance(),ie=.83,le=ref(!1),pe=ref(0),_e=ref(1),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),{isCardType:Ne,isVertical:Fe}=oe;function ze(_n,bn,Cn){const En=Cn-1,$n=bn-1,wn=bn+1,Tn=Cn/2;return bn===0&&_n===En?-1:bn===En&&_n===0?Cn:_n<$n&&bn-_n>=Tn?Cn+1:_n>wn&&_n-bn>=Tn?-2:_n}function At(_n,bn){var Cn;const En=((Cn=oe.root.value)==null?void 0:Cn.offsetWidth)||0;return xe.value?En*((2-ie)*(_n-bn)+1)/4:_n<bn?-(1+ie)*En/4:(3+ie)*En/4}function Lt(_n,bn,Cn){const En=oe.root.value;return En?((Cn?En.offsetHeight:En.offsetWidth)||0)*(_n-bn):0}const hn=(_n,bn,Cn)=>{var En;const $n=unref(Ne),wn=(En=oe.items.value.length)!=null?En:Number.NaN,Tn=_n===bn;!$n&&!isUndefined$1(Cn)&&(Ie.value=Tn||_n===Cn),!Tn&&wn>2&&oe.loop&&(_n=ze(_n,bn,wn));const xn=unref(Fe);Ce.value=Tn,$n?(xe.value=Math.round(Math.abs(_n-bn))<=1,pe.value=At(_n,bn),_e.value=unref(Ce)?1:ie):pe.value=Lt(_n,bn,xn),$e.value=!0};function vn(){if(oe&&unref(Ne)){const _n=oe.items.value.findIndex(({uid:bn})=>bn===ae.uid);oe.setActiveItem(_n)}}return onMounted(()=>{oe.addItem({props:$,states:reactive({hover:le,translate:pe,scale:_e,active:Ce,ready:$e,inStage:xe,animating:Ie}),uid:ae.uid,translateItem:hn})}),onUnmounted(()=>{oe.removeItem(ae.uid)}),{active:Ce,animating:Ie,hover:le,inStage:xe,isVertical:Fe,translate:pe,isCardType:Ne,scale:_e,ready:$e,handleItemClick:vn}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1P=defineComponent({...__default__$1b,props:carouselItemProps,setup($){const z=$,oe=useNamespace("carousel"),{active:ae,animating:ie,hover:le,inStage:pe,isVertical:_e,translate:Ce,isCardType:$e,scale:xe,ready:Ie,handleItemClick:Ne}=useCarouselItem(z),Fe=computed(()=>{const At=`${`translate${unref(_e)?"Y":"X"}`}(${unref(Ce)}px)`,Lt=`scale(${unref(xe)})`;return{transform:[At,Lt].join(" ")}});return(ze,At)=>withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).e("item"),unref(oe).is("active",unref(ae)),unref(oe).is("in-stage",unref(pe)),unref(oe).is("hover",unref(le)),unref(oe).is("animating",unref(ie)),{[unref(oe).em("item","card")]:unref($e)}]),style:normalizeStyle$1(unref(Fe)),onClick:At[0]||(At[0]=(...Lt)=>unref(Ne)&&unref(Ne)(...Lt))},[unref($e)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("mask"))},null,2)),[[vShow,!unref(ae)]]):createCommentVNode("v-if",!0),renderSlot(ze.$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]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),change:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:$,isChecked:z})=>{const oe=inject(checkboxGroupContextKey,void 0),ae=computed(()=>{var le,pe;const _e=(le=oe==null?void 0:oe.max)==null?void 0:le.value,Ce=(pe=oe==null?void 0:oe.min)==null?void 0:pe.value;return!isUndefined$1(_e)&&$.value.length>=_e&&!z.value||!isUndefined$1(Ce)&&$.value.length<=Ce&&z.value});return{isDisabled:useFormDisabled(computed(()=>(oe==null?void 0:oe.disabled.value)||ae.value)),isLimitDisabled:ae}},useCheckboxEvent=($,{model:z,isLimitExceeded:oe,hasOwnLabel:ae,isDisabled:ie,isLabeledByFormItem:le})=>{const pe=inject(checkboxGroupContextKey,void 0),{formItem:_e}=useFormItem(),{emit:Ce}=getCurrentInstance();function $e(ze){var At,Lt;return ze===$.trueLabel||ze===!0?(At=$.trueLabel)!=null?At:!0:(Lt=$.falseLabel)!=null?Lt:!1}function xe(ze,At){Ce("change",$e(ze),At)}function Ie(ze){if(oe.value)return;const At=ze.target;Ce("change",$e(At.checked),ze)}async function Ne(ze){oe.value||!ae.value&&!ie.value&&le.value&&(ze.composedPath().some(hn=>hn.tagName==="LABEL")||(z.value=$e([!1,$.falseLabel].includes(z.value)),await nextTick(),xe(z.value,ze)))}const Fe=computed(()=>(pe==null?void 0:pe.validateEvent)||$.validateEvent);return watch(()=>$.modelValue,()=>{Fe.value&&(_e==null||_e.validate("change").catch(ze=>void 0))}),{handleChange:Ie,onClickRoot:Ne}},useCheckboxModel=$=>{const z=ref(!1),{emit:oe}=getCurrentInstance(),ae=inject(checkboxGroupContextKey,void 0),ie=computed(()=>isUndefined$1(ae)===!1),le=ref(!1);return{model:computed({get(){var _e,Ce;return ie.value?(_e=ae==null?void 0:ae.modelValue)==null?void 0:_e.value:(Ce=$.modelValue)!=null?Ce:z.value},set(_e){var Ce,$e;ie.value&&isArray$c(_e)?(le.value=((Ce=ae==null?void 0:ae.max)==null?void 0:Ce.value)!==void 0&&_e.length>(ae==null?void 0:ae.max.value),le.value===!1&&(($e=ae==null?void 0:ae.changeEvent)==null||$e.call(ae,_e))):(oe(UPDATE_MODEL_EVENT,_e),z.value=_e)}}),isGroup:ie,isLimitExceeded:le}},useCheckboxStatus=($,z,{model:oe})=>{const ae=inject(checkboxGroupContextKey,void 0),ie=ref(!1),le=computed(()=>{const $e=oe.value;return isBoolean$3($e)?$e:isArray$c($e)?isObject$8($.label)?$e.map(toRaw).some(xe=>isEqual$1(xe,$.label)):$e.map(toRaw).includes($.label):$e!=null?$e===$.trueLabel:!!$e}),pe=useFormSize(computed(()=>{var $e;return($e=ae==null?void 0:ae.size)==null?void 0:$e.value}),{prop:!0}),_e=useFormSize(computed(()=>{var $e;return($e=ae==null?void 0:ae.size)==null?void 0:$e.value})),Ce=computed(()=>!!(z.default||$.label));return{checkboxButtonSize:pe,isChecked:le,isFocused:ie,checkboxSize:_e,hasOwnLabel:Ce}},setStoreValue=($,{model:z})=>{function oe(){isArray$c(z.value)&&!z.value.includes($.label)?z.value.push($.label):z.value=$.trueLabel||!0}$.checked&&oe()},useCheckbox=($,z)=>{const{formItem:oe}=useFormItem(),{model:ae,isGroup:ie,isLimitExceeded:le}=useCheckboxModel($),{isFocused:pe,isChecked:_e,checkboxButtonSize:Ce,checkboxSize:$e,hasOwnLabel:xe}=useCheckboxStatus($,z,{model:ae}),{isDisabled:Ie}=useCheckboxDisabled({model:ae,isChecked:_e}),{inputId:Ne,isLabeledByFormItem:Fe}=useFormItemInputId($,{formItemContext:oe,disableIdGeneration:xe,disableIdManagement:ie}),{handleChange:ze,onClickRoot:At}=useCheckboxEvent($,{model:ae,isLimitExceeded:le,hasOwnLabel:xe,isDisabled:Ie,isLabeledByFormItem:Fe});return setStoreValue($,{model:ae}),{inputId:Ne,isLabeledByFormItem:Fe,isChecked:_e,isDisabled:Ie,isFocused:pe,checkboxButtonSize:Ce,checkboxSize:$e,hasOwnLabel:xe,model:ae,handleChange:ze,onClickRoot:At}},_hoisted_1$V=["tabindex","role","aria-checked"],_hoisted_2$B=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$l=["id","aria-hidden","disabled","value","name","tabindex"],__default__$1a=defineComponent({name:"ElCheckbox"}),_sfc_main$1O=defineComponent({...__default__$1a,props:checkboxProps,emits:checkboxEmits,setup($){const z=$,oe=useSlots(),{inputId:ae,isLabeledByFormItem:ie,isChecked:le,isDisabled:pe,isFocused:_e,checkboxSize:Ce,hasOwnLabel:$e,model:xe,handleChange:Ie,onClickRoot:Ne}=useCheckbox(z,oe),Fe=useNamespace("checkbox"),ze=computed(()=>[Fe.b(),Fe.m(Ce.value),Fe.is("disabled",pe.value),Fe.is("bordered",z.border),Fe.is("checked",le.value)]),At=computed(()=>[Fe.e("input"),Fe.is("disabled",pe.value),Fe.is("checked",le.value),Fe.is("indeterminate",z.indeterminate),Fe.is("focus",_e.value)]);return(Lt,hn)=>(openBlock(),createBlock(resolveDynamicComponent(!unref($e)&&unref(ie)?"span":"label"),{class:normalizeClass(unref(ze)),"aria-controls":Lt.indeterminate?Lt.controls:null,onClick:unref(Ne)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(At)),tabindex:Lt.indeterminate?0:void 0,role:Lt.indeterminate?"checkbox":void 0,"aria-checked":Lt.indeterminate?"mixed":void 0},[Lt.trueLabel||Lt.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(ae),"onUpdate:modelValue":hn[0]||(hn[0]=vn=>isRef(xe)?xe.value=vn:null),class:normalizeClass(unref(Fe).e("original")),type:"checkbox","aria-hidden":Lt.indeterminate?"true":"false",name:Lt.name,tabindex:Lt.tabindex,disabled:unref(pe),"true-value":Lt.trueLabel,"false-value":Lt.falseLabel,onChange:hn[1]||(hn[1]=(...vn)=>unref(Ie)&&unref(Ie)(...vn)),onFocus:hn[2]||(hn[2]=vn=>_e.value=!0),onBlur:hn[3]||(hn[3]=vn=>_e.value=!1)},null,42,_hoisted_2$B)),[[vModelCheckbox,unref(xe)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(ae),"onUpdate:modelValue":hn[4]||(hn[4]=vn=>isRef(xe)?xe.value=vn:null),class:normalizeClass(unref(Fe).e("original")),type:"checkbox","aria-hidden":Lt.indeterminate?"true":"false",disabled:unref(pe),value:Lt.label,name:Lt.name,tabindex:Lt.tabindex,onChange:hn[5]||(hn[5]=(...vn)=>unref(Ie)&&unref(Ie)(...vn)),onFocus:hn[6]||(hn[6]=vn=>_e.value=!0),onBlur:hn[7]||(hn[7]=vn=>_e.value=!1)},null,42,_hoisted_3$l)),[[vModelCheckbox,unref(xe)]]),createBaseVNode("span",{class:normalizeClass(unref(Fe).e("inner"))},null,2)],10,_hoisted_1$V),unref($e)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Fe).e("label"))},[renderSlot(Lt.$slots,"default"),Lt.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(Lt.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($){const z=$,oe=useSlots(),{isFocused:ae,isChecked:ie,isDisabled:le,checkboxButtonSize:pe,model:_e,handleChange:Ce}=useCheckbox(z,oe),$e=inject(checkboxGroupContextKey,void 0),xe=useNamespace("checkbox"),Ie=computed(()=>{var Fe,ze,At,Lt;const hn=(ze=(Fe=$e==null?void 0:$e.fill)==null?void 0:Fe.value)!=null?ze:"";return{backgroundColor:hn,borderColor:hn,color:(Lt=(At=$e==null?void 0:$e.textColor)==null?void 0:At.value)!=null?Lt:"",boxShadow:hn?`-1px 0 0 0 ${hn}`:void 0}}),Ne=computed(()=>[xe.b("button"),xe.bm("button",pe.value),xe.is("disabled",le.value),xe.is("checked",ie.value),xe.is("focus",ae.value)]);return(Fe,ze)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(Ne))},[Fe.trueLabel||Fe.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":ze[0]||(ze[0]=At=>isRef(_e)?_e.value=At:null),class:normalizeClass(unref(xe).be("button","original")),type:"checkbox",name:Fe.name,tabindex:Fe.tabindex,disabled:unref(le),"true-value":Fe.trueLabel,"false-value":Fe.falseLabel,onChange:ze[1]||(ze[1]=(...At)=>unref(Ce)&&unref(Ce)(...At)),onFocus:ze[2]||(ze[2]=At=>ae.value=!0),onBlur:ze[3]||(ze[3]=At=>ae.value=!1)},null,42,_hoisted_1$U)),[[vModelCheckbox,unref(_e)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":ze[4]||(ze[4]=At=>isRef(_e)?_e.value=At:null),class:normalizeClass(unref(xe).be("button","original")),type:"checkbox",name:Fe.name,tabindex:Fe.tabindex,disabled:unref(le),value:Fe.label,onChange:ze[5]||(ze[5]=(...At)=>unref(Ce)&&unref(Ce)(...At)),onFocus:ze[6]||(ze[6]=At=>ae.value=!0),onBlur:ze[7]||(ze[7]=At=>ae.value=!1)},null,42,_hoisted_2$A)),[[vModelCheckbox,unref(_e)]]),Fe.$slots.default||Fe.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(xe).be("button","inner")),style:normalizeStyle$1(unref(ie)?unref(Ie):void 0)},[renderSlot(Fe.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Fe.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]:$=>isArray$c($),change:$=>isArray$c($)},__default__$18=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$1M=defineComponent({...__default__$18,props:checkboxGroupProps,emits:checkboxGroupEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("checkbox"),{formItem:ie}=useFormItem(),{inputId:le,isLabeledByFormItem:pe}=useFormItemInputId(oe,{formItemContext:ie}),_e=async $e=>{z(UPDATE_MODEL_EVENT,$e),await nextTick(),z("change",$e)},Ce=computed({get(){return oe.modelValue},set($e){_e($e)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs(oe),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:Ce,changeEvent:_e}),watch(()=>oe.modelValue,()=>{oe.validateEvent&&(ie==null||ie.validate("change").catch($e=>void 0))}),($e,xe)=>{var Ie;return openBlock(),createBlock(resolveDynamicComponent($e.tag),{id:unref(le),class:normalizeClass(unref(ae).b("group")),role:"group","aria-label":unref(pe)?void 0:$e.label||"checkbox-group","aria-labelledby":unref(pe)?(Ie=unref(ie))==null?void 0:Ie.labelId:void 0},{default:withCtx(()=>[renderSlot($e.$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]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),[CHANGE_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},radioGroupKey=Symbol("radioGroupKey"),useRadio=($,z)=>{const oe=ref(),ae=inject(radioGroupKey,void 0),ie=computed(()=>!!ae),le=computed({get(){return ie.value?ae.modelValue:$.modelValue},set(xe){ie.value?ae.changeEvent(xe):z&&z(UPDATE_MODEL_EVENT,xe),oe.value.checked=$.modelValue===$.label}}),pe=useFormSize(computed(()=>ae==null?void 0:ae.size)),_e=useFormDisabled(computed(()=>ae==null?void 0:ae.disabled)),Ce=ref(!1),$e=computed(()=>_e.value||ie.value&&le.value!==$.label?-1:0);return{radioRef:oe,isGroup:ie,radioGroup:ae,focus:Ce,size:pe,disabled:_e,tabIndex:$e,modelValue:le}},_hoisted_1$T=["value","name","disabled"],__default__$17=defineComponent({name:"ElRadio"}),_sfc_main$1L=defineComponent({...__default__$17,props:radioProps,emits:radioEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("radio"),{radioRef:ie,radioGroup:le,focus:pe,size:_e,disabled:Ce,modelValue:$e}=useRadio(oe,z);function xe(){nextTick(()=>z("change",$e.value))}return(Ie,Ne)=>{var Fe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ae).b(),unref(ae).is("disabled",unref(Ce)),unref(ae).is("focus",unref(pe)),unref(ae).is("bordered",Ie.border),unref(ae).is("checked",unref($e)===Ie.label),unref(ae).m(unref(_e))])},[createBaseVNode("span",{class:normalizeClass([unref(ae).e("input"),unref(ae).is("disabled",unref(Ce)),unref(ae).is("checked",unref($e)===Ie.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ie,"onUpdate:modelValue":Ne[0]||(Ne[0]=ze=>isRef($e)?$e.value=ze:null),class:normalizeClass(unref(ae).e("original")),value:Ie.label,name:Ie.name||((Fe=unref(le))==null?void 0:Fe.name),disabled:unref(Ce),type:"radio",onFocus:Ne[1]||(Ne[1]=ze=>pe.value=!0),onBlur:Ne[2]||(Ne[2]=ze=>pe.value=!1),onChange:xe},null,42,_hoisted_1$T),[[vModelRadio,unref($e)]]),createBaseVNode("span",{class:normalizeClass(unref(ae).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(ae).e("label")),onKeydown:Ne[3]||(Ne[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.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($){const z=$,oe=useNamespace("radio"),{radioRef:ae,focus:ie,size:le,disabled:pe,modelValue:_e,radioGroup:Ce}=useRadio(z),$e=computed(()=>({backgroundColor:(Ce==null?void 0:Ce.fill)||"",borderColor:(Ce==null?void 0:Ce.fill)||"",boxShadow:Ce!=null&&Ce.fill?`-1px 0 0 0 ${Ce.fill}`:"",color:(Ce==null?void 0:Ce.textColor)||""}));return(xe,Ie)=>{var Ne;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(oe).b("button"),unref(oe).is("active",unref(_e)===xe.label),unref(oe).is("disabled",unref(pe)),unref(oe).is("focus",unref(ie)),unref(oe).bm("button",unref(le))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ae,"onUpdate:modelValue":Ie[0]||(Ie[0]=Fe=>isRef(_e)?_e.value=Fe:null),class:normalizeClass(unref(oe).be("button","original-radio")),value:xe.label,type:"radio",name:xe.name||((Ne=unref(Ce))==null?void 0:Ne.name),disabled:unref(pe),onFocus:Ie[1]||(Ie[1]=Fe=>ie.value=!0),onBlur:Ie[2]||(Ie[2]=Fe=>ie.value=!1)},null,42,_hoisted_1$S),[[vModelRadio,unref(_e)]]),createBaseVNode("span",{class:normalizeClass(unref(oe).be("button","inner")),style:normalizeStyle$1(unref(_e)===xe.label?unref($e):{}),onKeydown:Ie[3]||(Ie[3]=withModifiers(()=>{},["stop"]))},[renderSlot(xe.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(xe.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($,{emit:z}){const oe=$,ae=useNamespace("radio"),ie=useId(),le=ref(),{formItem:pe}=useFormItem(),{inputId:_e,isLabeledByFormItem:Ce}=useFormItemInputId(oe,{formItemContext:pe}),$e=Ie=>{z(UPDATE_MODEL_EVENT,Ie),nextTick(()=>z("change",Ie))};onMounted(()=>{const Ie=le.value.querySelectorAll("[type=radio]"),Ne=Ie[0];!Array.from(Ie).some(Fe=>Fe.checked)&&Ne&&(Ne.tabIndex=0)});const xe=computed(()=>oe.name||ie.value);return provide(radioGroupKey,reactive({...toRefs(oe),changeEvent:$e,name:xe})),watch(()=>oe.modelValue,()=>{oe.validateEvent&&(pe==null||pe.validate("change").catch(Ie=>void 0))}),(Ie,Ne)=>(openBlock(),createElementBlock("div",{id:unref(_e),ref_key:"radioGroupRef",ref:le,class:normalizeClass(unref(ae).b("group")),role:"radiogroup","aria-label":unref(Ce)?void 0:Ie.label||"radio-group","aria-labelledby":unref(Ce)?unref(pe).labelId:void 0},[renderSlot(Ie.$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:$}=this,{node:z,panel:oe}=this.$parent,{data:ae,label:ie}=z,{renderLabelFn:le}=oe;return h$3("span",{class:$.e("label")},le?le({node:z,data:ae}):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($,{emit:z}){const oe=inject(CASCADER_PANEL_INJECTION_KEY),ae=useNamespace("cascader-node"),ie=computed(()=>oe.isHoverMenu),le=computed(()=>oe.config.multiple),pe=computed(()=>oe.config.checkStrictly),_e=computed(()=>{var En;return(En=oe.checkedNodes[0])==null?void 0:En.uid}),Ce=computed(()=>$.node.isDisabled),$e=computed(()=>$.node.isLeaf),xe=computed(()=>pe.value&&!$e.value||!Ce.value),Ie=computed(()=>Fe(oe.expandingNode)),Ne=computed(()=>pe.value&&oe.checkedNodes.some(Fe)),Fe=En=>{var $n;const{level:wn,uid:Tn}=$.node;return(($n=En==null?void 0:En.pathNodes[wn-1])==null?void 0:$n.uid)===Tn},ze=()=>{Ie.value||oe.expandNode($.node)},At=En=>{const{node:$n}=$;En!==$n.checked&&oe.handleCheckChange($n,En)},Lt=()=>{oe.lazyLoad($.node,()=>{$e.value||ze()})},hn=En=>{ie.value&&(vn(),!$e.value&&z("expand",En))},vn=()=>{const{node:En}=$;!xe.value||En.loading||(En.loaded?ze():Lt())},_n=()=>{ie.value&&!$e.value||($e.value&&!Ce.value&&!pe.value&&!le.value?Cn(!0):vn())},bn=En=>{pe.value?(At(En),$.node.loaded&&ze()):Cn(En)},Cn=En=>{$.node.loaded?(At(En),!pe.value&&ze()):Lt()};return{panel:oe,isHoverMenu:ie,multiple:le,checkStrictly:pe,checkedNodeId:_e,isDisabled:Ce,isLeaf:$e,expandable:xe,inExpandingPath:Ie,inCheckedPath:Ne,ns:ae,handleHoverExpand:hn,handleExpand:vn,handleClick:_n,handleCheck:Cn,handleSelectCheck:bn}}}),_hoisted_1$Q=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$z=createBaseVNode("span",null,null,-1);function _sfc_render$v($,z,oe,ae,ie,le){const pe=resolveComponent("el-checkbox"),_e=resolveComponent("el-radio"),Ce=resolveComponent("check"),$e=resolveComponent("el-icon"),xe=resolveComponent("node-content"),Ie=resolveComponent("loading"),Ne=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${$.menuId}-${$.node.uid}`,role:"menuitem","aria-haspopup":!$.isLeaf,"aria-owns":$.isLeaf?null:$.menuId,"aria-expanded":$.inExpandingPath,tabindex:$.expandable?-1:void 0,class:normalizeClass([$.ns.b(),$.ns.is("selectable",$.checkStrictly),$.ns.is("active",$.node.checked),$.ns.is("disabled",!$.expandable),$.inExpandingPath&&"in-active-path",$.inCheckedPath&&"in-checked-path"]),onMouseenter:z[2]||(z[2]=(...Fe)=>$.handleHoverExpand&&$.handleHoverExpand(...Fe)),onFocus:z[3]||(z[3]=(...Fe)=>$.handleHoverExpand&&$.handleHoverExpand(...Fe)),onClick:z[4]||(z[4]=(...Fe)=>$.handleClick&&$.handleClick(...Fe))},[createCommentVNode(" prefix "),$.multiple?(openBlock(),createBlock(pe,{key:0,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:$.isDisabled,onClick:z[0]||(z[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":$.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):$.checkStrictly?(openBlock(),createBlock(_e,{key:1,"model-value":$.checkedNodeId,label:$.node.uid,disabled:$.isDisabled,"onUpdate:modelValue":$.handleSelectCheck,onClick:z[1]||(z[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"])):$.isLeaf&&$.node.checked?(openBlock(),createBlock($e,{key:2,class:normalizeClass($.ns.e("prefix"))},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(xe),createCommentVNode(" postfix "),$.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[$.node.loading?(openBlock(),createBlock($e,{key:0,class:normalizeClass([$.ns.is("loading"),$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ie)]),_:1},8,["class"])):(openBlock(),createBlock($e,{key:1,class:normalizeClass(["arrow-right",$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ne)]),_: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($){const z=getCurrentInstance(),oe=useNamespace("cascader-menu"),{t:ae}=useLocale(),ie=generateId();let le=null,pe=null;const _e=inject(CASCADER_PANEL_INJECTION_KEY),Ce=ref(null),$e=computed(()=>!$.nodes.length),xe=computed(()=>!_e.initialLoaded),Ie=computed(()=>`cascader-menu-${ie}-${$.index}`),Ne=Lt=>{le=Lt.target},Fe=Lt=>{if(!(!_e.isHoverMenu||!le||!Ce.value))if(le.contains(Lt.target)){ze();const hn=z.vnode.el,{left:vn}=hn.getBoundingClientRect(),{offsetWidth:_n,offsetHeight:bn}=hn,Cn=Lt.clientX-vn,En=le.offsetTop,$n=En+le.offsetHeight;Ce.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${Cn} ${En} L${_n} 0 V${En} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${Cn} ${$n} L${_n} ${bn} V${$n} Z" />
|
||
`}else pe||(pe=window.setTimeout(At,_e.config.hoverThreshold))},ze=()=>{pe&&(clearTimeout(pe),pe=null)},At=()=>{Ce.value&&(Ce.value.innerHTML="",ze())};return{ns:oe,panel:_e,hoverZone:Ce,isEmpty:$e,isLoading:xe,menuId:Ie,t:ae,handleExpand:Ne,handleMouseMove:Fe,clearHoverZone:At}}});function _sfc_render$u($,z,oe,ae,ie,le){const pe=resolveComponent("el-cascader-node"),_e=resolveComponent("loading"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-scrollbar");return openBlock(),createBlock($e,{key:$.menuId,tag:"ul",role:"menu",class:normalizeClass($.ns.b()),"wrap-class":$.ns.e("wrap"),"view-class":[$.ns.e("list"),$.ns.is("empty",$.isEmpty)],onMousemove:$.handleMouseMove,onMouseleave:$.clearHoverZone},{default:withCtx(()=>{var xe;return[(openBlock(!0),createElementBlock(Fragment,null,renderList($.nodes,Ie=>(openBlock(),createBlock(pe,{key:Ie.uid,node:Ie,"menu-id":$.menuId,onExpand:$.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),$.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-text"))},[createVNode(Ce,{size:"14",class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1($.t("el.cascader.loading")),1)],2)):$.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1($.t("el.cascader.noData")),3)):(xe=$.panel)!=null&&xe.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass($.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=$=>{const z=[$];let{parent:oe}=$;for(;oe;)z.unshift(oe),oe=oe.parent;return z};let Node$1=class yo{constructor(z,oe,ae,ie=!1){this.data=z,this.config=oe,this.parent=ae,this.root=ie,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:le,label:pe,children:_e}=oe,Ce=z[_e],$e=calculatePathNodes(this);this.level=ie?0:ae?ae.level+1:1,this.value=z[le],this.label=z[pe],this.pathNodes=$e,this.pathValues=$e.map(xe=>xe.value),this.pathLabels=$e.map(xe=>xe.label),this.childrenData=Ce,this.children=(Ce||[]).map(xe=>new yo(xe,oe,this)),this.loaded=!oe.lazy||this.isLeaf||!isEmpty(Ce)}get isDisabled(){const{data:z,parent:oe,config:ae}=this,{disabled:ie,checkStrictly:le}=ae;return(isFunction$5(ie)?ie(z,this):!!z[ie])||!le&&(oe==null?void 0:oe.isDisabled)}get isLeaf(){const{data:z,config:oe,childrenData:ae,loaded:ie}=this,{lazy:le,leaf:pe}=oe,_e=isFunction$5(pe)?pe(z,this):z[pe];return isUndefined$1(_e)?le&&!ie?!1:!(Array.isArray(ae)&&ae.length):!!_e}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(z){const{childrenData:oe,children:ae}=this,ie=new yo(z,this.config,this);return Array.isArray(oe)?oe.push(z):this.childrenData=[z],ae.push(ie),ie}calcText(z,oe){const ae=z?this.pathLabels.join(oe):this.label;return this.text=ae,ae}broadcast(z,...oe){const ae=`onParent${capitalize$1(z)}`;this.children.forEach(ie=>{ie&&(ie.broadcast(z,...oe),ie[ae]&&ie[ae](...oe))})}emit(z,...oe){const{parent:ae}=this,ie=`onChild${capitalize$1(z)}`;ae&&(ae[ie]&&ae[ie](...oe),ae.emit(z,...oe))}onParentCheck(z){this.isDisabled||this.setCheckState(z)}onChildCheck(){const{children:z}=this,oe=z.filter(ie=>!ie.isDisabled),ae=oe.length?oe.every(ie=>ie.checked):!1;this.setCheckState(ae)}setCheckState(z){const oe=this.children.length,ae=this.children.reduce((ie,le)=>{const pe=le.checked?1:le.indeterminate?.5:0;return ie+pe},0);this.checked=this.loaded&&this.children.filter(ie=>!ie.isDisabled).every(ie=>ie.loaded&&ie.checked)&&z,this.indeterminate=this.loaded&&ae!==oe&&ae>0}doCheck(z){if(this.checked===z)return;const{checkStrictly:oe,multiple:ae}=this.config;oe||!ae?this.checked=z:(this.broadcast("check",z),this.setCheckState(z),this.emit("check"))}};const flatNodes=($,z)=>$.reduce((oe,ae)=>(ae.isLeaf?oe.push(ae):(!z&&oe.push(ae),oe=oe.concat(flatNodes(ae.children,z))),oe),[]);class Store{constructor(z,oe){this.config=oe;const ae=(z||[]).map(ie=>new Node$1(ie,this.config));this.nodes=ae,this.allNodes=flatNodes(ae,!1),this.leafNodes=flatNodes(ae,!0)}getNodes(){return this.nodes}getFlattedNodes(z){return z?this.leafNodes:this.allNodes}appendNode(z,oe){const ae=oe?oe.appendChild(z):new Node$1(z,this.config);oe||this.nodes.push(ae),this.allNodes.push(ae),ae.isLeaf&&this.leafNodes.push(ae)}appendNodes(z,oe){z.forEach(ae=>this.appendNode(ae,oe))}getNodeByValue(z,oe=!1){return!z&&z!==0?null:this.getFlattedNodes(oe).find(ie=>isEqual$1(ie.value,z)||isEqual$1(ie.pathValues,z))||null}getSameNode(z){return z&&this.getFlattedNodes(!1).find(({value:ae,level:ie})=>isEqual$1(z.value,ae)&&z.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=$=>computed(()=>({...DefaultProps,...$.props})),getMenuIndex=$=>{if(!$)return 0;const z=$.id.split("-");return Number(z[z.length-2])},checkNode=$=>{if(!$)return;const z=$.querySelector("input");z?z.click():isLeaf($)&&$.click()},sortByOriginalOrder=($,z)=>{const oe=z.slice(0),ae=oe.map(le=>le.uid),ie=$.reduce((le,pe)=>{const _e=ae.indexOf(pe.uid);return _e>-1&&(le.push(pe),oe.splice(_e,1),ae.splice(_e,1)),le},[]);return ie.push(...oe),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($,{emit:z,slots:oe}){let ae=!1;const ie=useNamespace("cascader"),le=useCascaderConfig($);let pe=null;const _e=ref(!0),Ce=ref([]),$e=ref(null),xe=ref([]),Ie=ref(null),Ne=ref([]),Fe=computed(()=>le.value.expandTrigger==="hover"),ze=computed(()=>$.renderLabel||oe.default),At=()=>{const{options:An}=$,On=le.value;ae=!1,pe=new Store(An,On),xe.value=[pe.getNodes()],On.lazy&&isEmpty($.options)?(_e.value=!1,Lt(void 0,Mn=>{Mn&&(pe=new Store(Mn,On),xe.value=[pe.getNodes()]),_e.value=!0,wn(!1,!0)})):wn(!1,!0)},Lt=(An,On)=>{const Mn=le.value;An=An||new Node$1({},Mn,void 0,!0),An.loading=!0;const Fn=Dn=>{const Nn=An,Vn=Nn.root?null:Nn;Dn&&(pe==null||pe.appendNodes(Dn,Vn)),Nn.loading=!1,Nn.loaded=!0,Nn.childrenData=Nn.childrenData||[],On&&On(Dn)};Mn.lazyLoad(An,Fn)},hn=(An,On)=>{var Mn;const{level:Fn}=An,Dn=xe.value.slice(0,Fn);let Nn;An.isLeaf?Nn=An.pathNodes[Fn-2]:(Nn=An,Dn.push(An.children)),((Mn=Ie.value)==null?void 0:Mn.uid)!==(Nn==null?void 0:Nn.uid)&&(Ie.value=An,xe.value=Dn,!On&&z("expand-change",(An==null?void 0:An.pathValues)||[]))},vn=(An,On,Mn=!0)=>{const{checkStrictly:Fn,multiple:Dn}=le.value,Nn=Ne.value[0];ae=!0,!Dn&&(Nn==null||Nn.doCheck(!1)),An.doCheck(On),$n(),Mn&&!Dn&&!Fn&&z("close"),!Mn&&!Dn&&!Fn&&_n(An)},_n=An=>{An&&(An=An.parent,_n(An),An&&hn(An))},bn=An=>pe==null?void 0:pe.getFlattedNodes(An),Cn=An=>{var On;return(On=bn(An))==null?void 0:On.filter(Mn=>Mn.checked!==!1)},En=()=>{Ne.value.forEach(An=>An.doCheck(!1)),$n(),xe.value=xe.value.slice(0,1),Ie.value=null,z("expand-change",[])},$n=()=>{var An;const{checkStrictly:On,multiple:Mn}=le.value,Fn=Ne.value,Dn=Cn(!On),Nn=sortByOriginalOrder(Fn,Dn),Vn=Nn.map(Bn=>Bn.valueByOption);Ne.value=Nn,$e.value=Mn?Vn:(An=Vn[0])!=null?An:null},wn=(An=!1,On=!1)=>{const{modelValue:Mn}=$,{lazy:Fn,multiple:Dn,checkStrictly:Nn}=le.value,Vn=!Nn;if(!(!_e.value||ae||!On&&isEqual$1(Mn,$e.value)))if(Fn&&!An){const zn=unique(flattenDeep(castArray(Mn))).map(Xn=>pe==null?void 0:pe.getNodeByValue(Xn)).filter(Xn=>!!Xn&&!Xn.loaded&&!Xn.loading);zn.length?zn.forEach(Xn=>{Lt(Xn,()=>wn(!1,On))}):wn(!0,On)}else{const Bn=Dn?castArray(Mn):[Mn],zn=unique(Bn.map(Xn=>pe==null?void 0:pe.getNodeByValue(Xn,Vn)));Tn(zn,On),$e.value=cloneDeep(Mn)}},Tn=(An,On=!0)=>{const{checkStrictly:Mn}=le.value,Fn=Ne.value,Dn=An.filter(Bn=>!!Bn&&(Mn||Bn.isLeaf)),Nn=pe==null?void 0:pe.getSameNode(Ie.value),Vn=On&&Nn||Dn[0];Vn?Vn.pathNodes.forEach(Bn=>hn(Bn,!0)):Ie.value=null,Fn.forEach(Bn=>Bn.doCheck(!1)),Dn.forEach(Bn=>Bn.doCheck(!0)),Ne.value=Dn,nextTick(xn)},xn=()=>{isClient$2&&Ce.value.forEach(An=>{const On=An==null?void 0:An.$el;if(On){const Mn=On.querySelector(`.${ie.namespace.value}-scrollbar__wrap`),Fn=On.querySelector(`.${ie.b("node")}.${ie.is("active")}`)||On.querySelector(`.${ie.b("node")}.in-active-path`);scrollIntoView(Mn,Fn)}})},kn=An=>{const On=An.target,{code:Mn}=An;switch(Mn){case EVENT_CODE.up:case EVENT_CODE.down:{An.preventDefault();const Fn=Mn===EVENT_CODE.up?-1:1;focusNode(getSibling(On,Fn,`.${ie.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{An.preventDefault();const Fn=Ce.value[getMenuIndex(On)-1],Dn=Fn==null?void 0:Fn.$el.querySelector(`.${ie.b("node")}[aria-expanded="true"]`);focusNode(Dn);break}case EVENT_CODE.right:{An.preventDefault();const Fn=Ce.value[getMenuIndex(On)+1],Dn=Fn==null?void 0:Fn.$el.querySelector(`.${ie.b("node")}[tabindex="-1"]`);focusNode(Dn);break}case EVENT_CODE.enter:checkNode(On);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:le,expandingNode:Ie,checkedNodes:Ne,isHoverMenu:Fe,initialLoaded:_e,renderLabelFn:ze,lazyLoad:Lt,expandNode:hn,handleCheckChange:vn})),watch([le,()=>$.options],At,{deep:!0,immediate:!0}),watch(()=>$.modelValue,()=>{ae=!1,wn()},{deep:!0}),watch(()=>$e.value,An=>{isEqual$1(An,$.modelValue)||(z(UPDATE_MODEL_EVENT,An),z(CHANGE_EVENT,An))}),onBeforeUpdate(()=>Ce.value=[]),onMounted(()=>!isEmpty($.modelValue)&&wn()),{ns:ie,menuList:Ce,menus:xe,checkedNodes:Ne,handleKeyDown:kn,handleCheckChange:vn,getFlattedNodes:bn,getCheckedNodes:Cn,clearCheckedNodes:En,calculateCheckedValue:$n,scrollToExpandingNode:xn}}});function _sfc_render$t($,z,oe,ae,ie,le){const pe=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("panel"),$.ns.is("bordered",$.border)]),onKeydown:z[0]||(z[0]=(..._e)=>$.handleKeyDown&&$.handleKeyDown(..._e))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.menus,(_e,Ce)=>(openBlock(),createBlock(pe,{key:Ce,ref_for:!0,ref:$e=>$.menuList[Ce]=$e,index:Ce,nodes:[..._e]},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=$=>{$.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:$=>$ instanceof MouseEvent,click:$=>$ instanceof MouseEvent},__default__$14=defineComponent({name:"ElTag"}),_sfc_main$1F=defineComponent({...__default__$14,props:tagProps,emits:tagEmits,setup($,{emit:z}){const oe=$,ae=useFormSize(),ie=useNamespace("tag"),le=computed(()=>{const{type:Ce,hit:$e,effect:xe,closable:Ie,round:Ne}=oe;return[ie.b(),ie.is("closable",Ie),ie.m(Ce),ie.m(ae.value),ie.m(xe),ie.is("hit",$e),ie.is("round",Ne)]}),pe=Ce=>{z("close",Ce)},_e=Ce=>{z("click",Ce)};return(Ce,$e)=>Ce.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(le)),style:normalizeStyle$1({backgroundColor:Ce.color}),onClick:_e},[createBaseVNode("span",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(Ce.$slots,"default")],2),Ce.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("close")),onClick:withModifiers(pe,["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:Ce.color}),onClick:_e},[createBaseVNode("span",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(Ce.$slots,"default")],2),Ce.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("close")),onClick:withModifiers(pe,["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:($,z)=>$.text.includes(z)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,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]:$=>!!$||$===null,[CHANGE_EVENT]:$=>!!$||$===null,focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,visibleChange:$=>isBoolean$3($),expandChange:$=>!!$,removeTag:$=>!!$},_hoisted_1$P={key:0},_hoisted_2$y=["placeholder","onKeydown"],_hoisted_3$k=["onClick"],COMPONENT_NAME$e="ElCascader",__default__$13=defineComponent({name:COMPONENT_NAME$e}),_sfc_main$1E=defineComponent({...__default__$13,props:cascaderProps,emits:cascaderEmits,setup($,{expose:z,emit:oe}){const ae=$,ie={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ur})=>{const{modifiersData:er,placement:or}=ur;["right","left","bottom","top"].includes(or)||(er.arrow.x=35)},requires:["arrow"]}]},le=useAttrs$1();let pe=0,_e=0;const Ce=useNamespace("cascader"),$e=useNamespace("input"),{t:xe}=useLocale(),{form:Ie,formItem:Ne}=useFormItem(),Fe=ref(null),ze=ref(null),At=ref(null),Lt=ref(null),hn=ref(null),vn=ref(!1),_n=ref(!1),bn=ref(!1),Cn=ref(!1),En=ref(""),$n=ref(""),wn=ref([]),Tn=ref([]),xn=ref([]),kn=ref(!1),An=computed(()=>le.style),On=computed(()=>ae.disabled||(Ie==null?void 0:Ie.disabled)),Mn=computed(()=>ae.placeholder||xe("el.cascader.placeholder")),Fn=computed(()=>$n.value||wn.value.length>0||kn.value?"":Mn.value),Dn=useFormSize(),Nn=computed(()=>["small"].includes(Dn.value)?"small":"default"),Vn=computed(()=>!!ae.props.multiple),Bn=computed(()=>!ae.filterable||Vn.value),zn=computed(()=>Vn.value?$n.value:En.value),Xn=computed(()=>{var ur;return((ur=Lt.value)==null?void 0:ur.checkedNodes)||[]}),Un=computed(()=>!ae.clearable||On.value||bn.value||!_n.value?!1:!!Xn.value.length),Jn=computed(()=>{const{showAllLevels:ur,separator:er}=ae,or=Xn.value;return or.length?Vn.value?"":or[0].calcText(ur,er):""}),lr=computed({get(){return cloneDeep(ae.modelValue)},set(ur){oe(UPDATE_MODEL_EVENT,ur),oe(CHANGE_EVENT,ur),ae.validateEvent&&(Ne==null||Ne.validate("change").catch(er=>void 0))}}),_r=computed(()=>[Ce.b(),Ce.m(Dn.value),Ce.is("disabled",On.value),le.class]),ir=computed(()=>[$e.e("icon"),"icon-arrow-down",Ce.is("reverse",vn.value)]),qn=computed(()=>Ce.is("focus",vn.value||Cn.value)),Yn=computed(()=>{var ur,er;return(er=(ur=Fe.value)==null?void 0:ur.popperRef)==null?void 0:er.contentRef}),Wn=ur=>{var er,or,Tr;On.value||(ur=ur??!vn.value,ur!==vn.value&&(vn.value=ur,(or=(er=ze.value)==null?void 0:er.input)==null||or.setAttribute("aria-expanded",`${ur}`),ur?(tr(),nextTick((Tr=Lt.value)==null?void 0:Tr.scrollToExpandingNode)):ae.filterable&&cr(),oe("visibleChange",ur)))},tr=()=>{nextTick(()=>{var ur;(ur=Fe.value)==null||ur.updatePopper()})},pr=()=>{bn.value=!1},Gn=ur=>{const{showAllLevels:er,separator:or}=ae;return{node:ur,key:ur.uid,text:ur.calcText(er,or),hitState:!1,closable:!On.value&&!ur.isDisabled,isCollapseTag:!1}},Zn=ur=>{var er;const or=ur.node;or.doCheck(!1),(er=Lt.value)==null||er.calculateCheckedValue(),oe("removeTag",or.valueByOption)},rr=()=>{if(!Vn.value)return;const ur=Xn.value,er=[],or=[];if(ur.forEach(Tr=>or.push(Gn(Tr))),Tn.value=or,ur.length){const[Tr,...Or]=ur,zr=Or.length;er.push(Gn(Tr)),zr&&(ae.collapseTags?er.push({key:-1,text:`+ ${zr}`,closable:!1,isCollapseTag:!0}):Or.forEach(Cr=>er.push(Gn(Cr))))}wn.value=er},mr=()=>{var ur,er;const{filterMethod:or,showAllLevels:Tr,separator:Or}=ae,zr=(er=(ur=Lt.value)==null?void 0:ur.getFlattedNodes(!ae.props.checkStrictly))==null?void 0:er.filter(Cr=>Cr.isDisabled?!1:(Cr.calcText(Tr,Or),or(Cr,zn.value)));Vn.value&&(wn.value.forEach(Cr=>{Cr.hitState=!1}),Tn.value.forEach(Cr=>{Cr.hitState=!1})),bn.value=!0,xn.value=zr,tr()},Sr=()=>{var ur;let er;bn.value&&hn.value?er=hn.value.$el.querySelector(`.${Ce.e("suggestion-item")}`):er=(ur=Lt.value)==null?void 0:ur.$el.querySelector(`.${Ce.b("node")}[tabindex="-1"]`),er&&(er.focus(),!bn.value&&er.click())},ar=()=>{var ur,er;const or=(ur=ze.value)==null?void 0:ur.input,Tr=At.value,Or=(er=hn.value)==null?void 0:er.$el;if(!(!isClient$2||!or)){if(Or){const zr=Or.querySelector(`.${Ce.e("suggestion-list")}`);zr.style.minWidth=`${or.offsetWidth}px`}if(Tr){const{offsetHeight:zr}=Tr,Cr=wn.value.length>0?`${Math.max(zr+6,pe)}px`:`${pe}px`;or.style.height=Cr,tr()}}},xr=ur=>{var er;return(er=Lt.value)==null?void 0:er.getCheckedNodes(ur)},gr=ur=>{tr(),oe("expandChange",ur)},Pr=ur=>{var er;const or=(er=ur.target)==null?void 0:er.value;if(ur.type==="compositionend")kn.value=!1,nextTick(()=>$r(or));else{const Tr=or[or.length-1]||"";kn.value=!isKorean(Tr)}},dr=ur=>{if(!kn.value)switch(ur.code){case EVENT_CODE.enter:Wn();break;case EVENT_CODE.down:Wn(!0),nextTick(Sr),ur.preventDefault();break;case EVENT_CODE.esc:vn.value===!0&&(ur.preventDefault(),ur.stopPropagation(),Wn(!1));break;case EVENT_CODE.tab:Wn(!1);break}},sr=()=>{var ur;(ur=Lt.value)==null||ur.clearCheckedNodes(),!vn.value&&ae.filterable&&cr(),Wn(!1)},cr=()=>{const{value:ur}=Jn;En.value=ur,$n.value=ur},hr=ur=>{var er,or;const{checked:Tr}=ur;Vn.value?(er=Lt.value)==null||er.handleCheckChange(ur,!Tr,!1):(!Tr&&((or=Lt.value)==null||or.handleCheckChange(ur,!0,!1)),Wn(!1))},Ar=ur=>{const er=ur.target,{code:or}=ur;switch(or){case EVENT_CODE.up:case EVENT_CODE.down:{const Tr=or===EVENT_CODE.up?-1:1;focusNode(getSibling(er,Tr,`.${Ce.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:er.click();break}},Dr=()=>{const ur=wn.value,er=ur[ur.length-1];_e=$n.value?0:_e+1,!(!er||!_e||ae.collapseTags&&ur.length>1)&&(er.hitState?Zn(er):er.hitState=!0)},Lr=ur=>{const er=ur.target,or=Ce.e("search-input");er.className===or&&(Cn.value=!0),oe("focus",ur)},Mr=ur=>{Cn.value=!1,oe("blur",ur)},Er=debounce(()=>{const{value:ur}=zn;if(!ur)return;const er=ae.beforeFilter(ur);isPromise(er)?er.then(mr).catch(()=>{}):er!==!1?mr():pr()},ae.debounce),$r=(ur,er)=>{!vn.value&&Wn(!0),!(er!=null&&er.isComposing)&&(ur?Er():pr())};return watch(bn,tr),watch([Xn,On],rr),watch(wn,()=>{nextTick(()=>ar())}),watch(Jn,cr,{immediate:!0}),onMounted(()=>{const ur=ze.value.input,er=Number.parseFloat(useCssVar($e.cssVarName("input-height"),ur).value)-2;pe=ur.offsetHeight||er,useResizeObserver(ur,ar)}),z({getCheckedNodes:xr,cascaderPanelRef:Lt,togglePopperVisible:Wn,contentRef:Yn}),(ur,er)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:Fe,visible:vn.value,teleported:ur.teleported,"popper-class":[unref(Ce).e("dropdown"),ur.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(Ce).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:pr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(_r)),style:normalizeStyle$1(unref(An)),onClick:er[5]||(er[5]=()=>Wn(unref(Bn)?void 0:!0)),onKeydown:dr,onMouseenter:er[6]||(er[6]=or=>_n.value=!0),onMouseleave:er[7]||(er[7]=or=>_n.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:ze,modelValue:En.value,"onUpdate:modelValue":er[1]||(er[1]=or=>En.value=or),placeholder:unref(Fn),readonly:unref(Bn),disabled:unref(On),"validate-event":!1,size:unref(Dn),class:normalizeClass(unref(qn)),tabindex:unref(Vn)&&ur.filterable&&!unref(On)?-1:void 0,onCompositionstart:Pr,onCompositionupdate:Pr,onCompositionend:Pr,onFocus:Lr,onBlur:Mr,onInput:$r},{suffix:withCtx(()=>[unref(Un)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref($e).e("icon"),"icon-circle-close"]),onClick:withModifiers(sr,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(ir)),onClick:er[0]||(er[0]=withModifiers(or=>Wn(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Vn)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:At,class:normalizeClass(unref(Ce).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(wn.value,or=>(openBlock(),createBlock(unref(ElTag),{key:or.key,type:ur.tagType,size:unref(Nn),hit:or.hitState,closable:or.closable,"disable-transitions":"",onClose:Tr=>Zn(or)},{default:withCtx(()=>[or.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$P,toDisplayString$1(or.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:vn.value||!ur.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(or.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Tn.value.slice(1),(Tr,Or)=>(openBlock(),createElementBlock("div",{key:Or,class:normalizeClass(unref(Ce).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:Tr.key,class:"in-tooltip",type:ur.tagType,size:unref(Nn),hit:Tr.hitState,closable:Tr.closable,"disable-transitions":"",onClose:zr=>Zn(Tr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(Tr.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ur.filterable&&!unref(On)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":er[2]||(er[2]=or=>$n.value=or),type:"text",class:normalizeClass(unref(Ce).e("search-input")),placeholder:unref(Jn)?"":unref(Mn),onInput:er[3]||(er[3]=or=>$r($n.value,or)),onClick:er[4]||(er[4]=withModifiers(or=>Wn(!0),["stop"])),onKeydown:withKeys(Dr,["delete"]),onCompositionstart:Pr,onCompositionupdate:Pr,onCompositionend:Pr,onFocus:Lr,onBlur:Mr},null,42,_hoisted_2$y)),[[vModelText,$n.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>Wn(!1),unref(Yn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:Lt,modelValue:unref(lr),"onUpdate:modelValue":er[8]||(er[8]=or=>isRef(lr)?lr.value=or:null),options:ur.options,props:ae.props,border:!1,"render-label":ur.$slots.default,onExpandChange:gr,onClose:er[9]||(er[9]=or=>ur.$nextTick(()=>Wn(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!bn.value]]),ur.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:hn,tag:"ul",class:normalizeClass(unref(Ce).e("suggestion-panel")),"view-class":unref(Ce).e("suggestion-list"),onKeydown:Ar},{default:withCtx(()=>[xn.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(xn.value,or=>(openBlock(),createElementBlock("li",{key:or.uid,class:normalizeClass([unref(Ce).e("suggestion-item"),unref(Ce).is("checked",or.checked)]),tabindex:-1,onClick:Tr=>hr(or)},[createBaseVNode("span",null,toDisplayString$1(or.text),1),or.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$k))),128)):renderSlot(ur.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref(Ce).e("empty-text"))},toDisplayString$1(unref(xe)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,bn.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=$=>{$.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":$=>isBoolean$3($),[CHANGE_EVENT]:$=>isBoolean$3($)},__default__$12=defineComponent({name:"ElCheckTag"}),_sfc_main$1D=defineComponent({...__default__$12,props:checkTagProps,emits:checkTagEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("check-tag"),ie=()=>{const le=!oe.checked;z(CHANGE_EVENT,le),z("update:checked",le)};return(le,pe)=>(openBlock(),createElementBlock("span",{class:normalizeClass([unref(ae).b(),unref(ae).is("checked",le.checked)]),onClick:ie},[renderSlot(le.$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:"top"}}),__default__$11=defineComponent({name:"ElRow"}),_sfc_main$1C=defineComponent({...__default__$11,props:rowProps,setup($){const z=$,oe=useNamespace("row"),ae=computed(()=>z.gutter);provide(rowContextKey,{gutter:ae});const ie=computed(()=>{const pe={};return z.gutter&&(pe.marginRight=pe.marginLeft=`-${z.gutter/2}px`),pe}),le=computed(()=>[oe.b(),oe.is(`justify-${z.justify}`,z.justify!=="start"),oe.is(`align-${z.align}`,z.align!=="top")]);return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ie))},{default:withCtx(()=>[renderSlot(pe.$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($){const z=$,{gutter:oe}=inject(rowContextKey,{gutter:computed(()=>0)}),ae=useNamespace("col"),ie=computed(()=>{const pe={};return oe.value&&(pe.paddingLeft=pe.paddingRight=`${oe.value/2}px`),pe}),le=computed(()=>{const pe=[];return["span","offset","pull","push"].forEach($e=>{const xe=z[$e];isNumber$5(xe)&&($e==="span"?pe.push(ae.b(`${z[$e]}`)):xe>0&&pe.push(ae.b(`${$e}-${z[$e]}`)))}),["xs","sm","md","lg","xl"].forEach($e=>{isNumber$5(z[$e])?pe.push(ae.b(`${$e}-${z[$e]}`)):isObject$8(z[$e])&&Object.entries(z[$e]).forEach(([xe,Ie])=>{pe.push(xe!=="span"?ae.b(`${$e}-${xe}-${Ie}`):ae.b(`${$e}-${Ie}`))})}),oe.value&&pe.push(ae.is("guttered")),[ae.b(),pe]});return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ie))},{default:withCtx(()=>[renderSlot(pe.$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=$=>typeof isNumber$5($),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),useCollapse=($,z)=>{const oe=ref(castArray$1($.modelValue)),ae=le=>{oe.value=le;const pe=$.accordion?oe.value[0]:oe.value;z(UPDATE_MODEL_EVENT,pe),z(CHANGE_EVENT,pe)},ie=le=>{if($.accordion)ae([oe.value[0]===le?"":le]);else{const pe=[...oe.value],_e=pe.indexOf(le);_e>-1?pe.splice(_e,1):pe.push(le),ae(pe)}};return watch(()=>$.modelValue,()=>oe.value=castArray$1($.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:oe,handleItemClick:ie}),{activeNames:oe,setActiveNames:ae}},useCollapseDOM=()=>{const $=useNamespace("collapse");return{rootKls:computed(()=>$.b())}},__default__$$=defineComponent({name:"ElCollapse"}),_sfc_main$1A=defineComponent({...__default__$$,props:collapseProps,emits:collapseEmits,setup($,{expose:z,emit:oe}){const ae=$,{activeNames:ie,setActiveNames:le}=useCollapse(ae,oe),{rootKls:pe}=useCollapseDOM();return z({activeNames:ie,setActiveNames:le}),(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe)),role:"tablist","aria-multiselectable":"true"},[renderSlot(_e.$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($){const z=useNamespace("collapse-transition"),oe={beforeEnter(ae){ae.dataset||(ae.dataset={}),ae.dataset.oldPaddingTop=ae.style.paddingTop,ae.dataset.oldPaddingBottom=ae.style.paddingBottom,ae.style.maxHeight=0,ae.style.paddingTop=0,ae.style.paddingBottom=0},enter(ae){ae.dataset.oldOverflow=ae.style.overflow,ae.scrollHeight!==0?(ae.style.maxHeight=`${ae.scrollHeight}px`,ae.style.paddingTop=ae.dataset.oldPaddingTop,ae.style.paddingBottom=ae.dataset.oldPaddingBottom):(ae.style.maxHeight=0,ae.style.paddingTop=ae.dataset.oldPaddingTop,ae.style.paddingBottom=ae.dataset.oldPaddingBottom),ae.style.overflow="hidden"},afterEnter(ae){ae.style.maxHeight="",ae.style.overflow=ae.dataset.oldOverflow},beforeLeave(ae){ae.dataset||(ae.dataset={}),ae.dataset.oldPaddingTop=ae.style.paddingTop,ae.dataset.oldPaddingBottom=ae.style.paddingBottom,ae.dataset.oldOverflow=ae.style.overflow,ae.style.maxHeight=`${ae.scrollHeight}px`,ae.style.overflow="hidden"},leave(ae){ae.scrollHeight!==0&&(ae.style.maxHeight=0,ae.style.paddingTop=0,ae.style.paddingBottom=0)},afterLeave(ae){ae.style.maxHeight="",ae.style.overflow=ae.dataset.oldOverflow,ae.style.paddingTop=ae.dataset.oldPaddingTop,ae.style.paddingBottom=ae.dataset.oldPaddingBottom}};return(ae,ie)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(z).b()},toHandlers(oe)),{default:withCtx(()=>[renderSlot(ae.$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=$=>{$.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=$=>{const z=inject(collapseContextKey),oe=ref(!1),ae=ref(!1),ie=ref(generateId()),le=computed(()=>z==null?void 0:z.activeNames.value.includes($.name));return{focusing:oe,id:ie,isActive:le,handleFocus:()=>{setTimeout(()=>{ae.value?ae.value=!1:oe.value=!0},50)},handleHeaderClick:()=>{$.disabled||(z==null||z.handleItemClick($.name),oe.value=!1,ae.value=!0)},handleEnterClick:()=>{z==null||z.handleItemClick($.name)}}},useCollapseItemDOM=($,{focusing:z,isActive:oe,id:ae})=>{const ie=useNamespace("collapse"),le=computed(()=>[ie.b("item"),ie.is("active",unref(oe)),ie.is("disabled",$.disabled)]),pe=computed(()=>[ie.be("item","header"),ie.is("active",unref(oe)),{focusing:unref(z)&&!$.disabled}]),_e=computed(()=>[ie.be("item","arrow"),ie.is("active",unref(oe))]),Ce=computed(()=>ie.be("item","wrap")),$e=computed(()=>ie.be("item","content")),xe=computed(()=>ie.b(`content-${unref(ae)}`)),Ie=computed(()=>ie.b(`head-${unref(ae)}`));return{arrowKls:_e,headKls:pe,rootKls:le,itemWrapperKls:Ce,itemContentKls:$e,scopedContentId:xe,scopedHeadId:Ie}},_hoisted_1$O=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$x=["id","tabindex"],_hoisted_3$j=["id","aria-hidden","aria-labelledby"],__default__$Z=defineComponent({name:"ElCollapseItem"}),_sfc_main$1y=defineComponent({...__default__$Z,props:collapseItemProps,setup($,{expose:z}){const oe=$,{focusing:ae,id:ie,isActive:le,handleFocus:pe,handleHeaderClick:_e,handleEnterClick:Ce}=useCollapseItem(oe),{arrowKls:$e,headKls:xe,rootKls:Ie,itemWrapperKls:Ne,itemContentKls:Fe,scopedContentId:ze,scopedHeadId:At}=useCollapseItemDOM(oe,{focusing:ae,isActive:le,id:ie});return z({isActive:le}),(Lt,hn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ie))},[createBaseVNode("div",{role:"tab","aria-expanded":unref(le),"aria-controls":unref(ze),"aria-describedby":unref(ze)},[createBaseVNode("div",{id:unref(At),class:normalizeClass(unref(xe)),role:"button",tabindex:Lt.disabled?-1:0,onClick:hn[0]||(hn[0]=(...vn)=>unref(_e)&&unref(_e)(...vn)),onKeypress:hn[1]||(hn[1]=withKeys(withModifiers((...vn)=>unref(Ce)&&unref(Ce)(...vn),["stop","prevent"]),["space","enter"])),onFocus:hn[2]||(hn[2]=(...vn)=>unref(pe)&&unref(pe)(...vn)),onBlur:hn[3]||(hn[3]=vn=>ae.value=!1)},[renderSlot(Lt.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Lt.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref($e))},{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(ze),class:normalizeClass(unref(Ne)),role:"tabpanel","aria-hidden":!unref(le),"aria-labelledby":unref(At)},[createBaseVNode("div",{class:normalizeClass(unref(Fe))},[renderSlot(Lt.$slots,"default")],2)],10,_hoisted_3$j),[[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($,z){if(!isClient$2)return;const oe=function(le){var pe;(pe=z.drag)==null||pe.call(z,le)},ae=function(le){var pe;document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ae),document.removeEventListener("touchmove",oe),document.removeEventListener("touchend",ae),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(pe=z.end)==null||pe.call(z,le)},ie=function(le){var pe;isDragging||(le.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ae),document.addEventListener("touchmove",oe),document.addEventListener("touchend",ae),isDragging=!0,(pe=z.start)==null||pe.call(z,le))};$.addEventListener("mousedown",ie),$.addEventListener("touchstart",ie)}const useAlphaSlider=$=>{const z=getCurrentInstance(),oe=shallowRef(),ae=shallowRef();function ie(pe){pe.target!==oe.value&&le(pe)}function le(pe){if(!ae.value||!oe.value)return;const Ce=z.vnode.el.getBoundingClientRect(),{clientX:$e,clientY:xe}=getClientXY(pe);if($.vertical){let Ie=xe-Ce.top;Ie=Math.max(oe.value.offsetHeight/2,Ie),Ie=Math.min(Ie,Ce.height-oe.value.offsetHeight/2),$.color.set("alpha",Math.round((Ie-oe.value.offsetHeight/2)/(Ce.height-oe.value.offsetHeight)*100))}else{let Ie=$e-Ce.left;Ie=Math.max(oe.value.offsetWidth/2,Ie),Ie=Math.min(Ie,Ce.width-oe.value.offsetWidth/2),$.color.set("alpha",Math.round((Ie-oe.value.offsetWidth/2)/(Ce.width-oe.value.offsetWidth)*100))}}return{thumb:oe,bar:ae,handleDrag:le,handleClick:ie}},useAlphaSliderDOM=($,{bar:z,thumb:oe,handleDrag:ae})=>{const ie=getCurrentInstance(),le=useNamespace("color-alpha-slider"),pe=ref(0),_e=ref(0),Ce=ref();function $e(){if(!oe.value||$.vertical)return 0;const vn=ie.vnode.el,_n=$.color.get("alpha");return vn?Math.round(_n*(vn.offsetWidth-oe.value.offsetWidth/2)/100):0}function xe(){if(!oe.value)return 0;const vn=ie.vnode.el;if(!$.vertical)return 0;const _n=$.color.get("alpha");return vn?Math.round(_n*(vn.offsetHeight-oe.value.offsetHeight/2)/100):0}function Ie(){if($.color&&$.color.value){const{r:vn,g:_n,b:bn}=$.color.toRgb();return`linear-gradient(to right, rgba(${vn}, ${_n}, ${bn}, 0) 0%, rgba(${vn}, ${_n}, ${bn}, 1) 100%)`}return""}function Ne(){pe.value=$e(),_e.value=xe(),Ce.value=Ie()}onMounted(()=>{if(!z.value||!oe.value)return;const vn={drag:_n=>{ae(_n)},end:_n=>{ae(_n)}};draggable(z.value,vn),draggable(oe.value,vn),Ne()}),watch(()=>$.color.get("alpha"),()=>Ne()),watch(()=>$.color.value,()=>Ne());const Fe=computed(()=>[le.b(),le.is("vertical",$.vertical)]),ze=computed(()=>le.e("bar")),At=computed(()=>le.e("thumb")),Lt=computed(()=>({background:Ce.value})),hn=computed(()=>({left:addUnit(pe.value),top:addUnit(_e.value)}));return{rootKls:Fe,barKls:ze,barStyle:Lt,thumbKls:At,thumbStyle:hn,update:Ne}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1x=defineComponent({...__default__$Y,props:alphaSliderProps,setup($,{expose:z}){const oe=$,{bar:ae,thumb:ie,handleDrag:le,handleClick:pe}=useAlphaSlider(oe),{rootKls:_e,barKls:Ce,barStyle:$e,thumbKls:xe,thumbStyle:Ie,update:Ne}=useAlphaSliderDOM(oe,{bar:ae,thumb:ie,handleDrag:le});return z({update:Ne,bar:ae,thumb:ie}),(Fe,ze)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e))},[createBaseVNode("div",{ref_key:"bar",ref:ae,class:normalizeClass(unref(Ce)),style:normalizeStyle$1(unref($e)),onClick:ze[0]||(ze[0]=(...At)=>unref(pe)&&unref(pe)(...At))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:ie,class:normalizeClass(unref(xe)),style:normalizeStyle$1(unref(Ie))},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($){const z=useNamespace("color-hue-slider"),oe=getCurrentInstance(),ae=ref(),ie=ref(),le=ref(0),pe=ref(0),_e=computed(()=>$.color.get("hue"));watch(()=>_e.value,()=>{Ne()});function Ce(Fe){Fe.target!==ae.value&&$e(Fe)}function $e(Fe){if(!ie.value||!ae.value)return;const At=oe.vnode.el.getBoundingClientRect(),{clientX:Lt,clientY:hn}=getClientXY(Fe);let vn;if($.vertical){let _n=hn-At.top;_n=Math.min(_n,At.height-ae.value.offsetHeight/2),_n=Math.max(ae.value.offsetHeight/2,_n),vn=Math.round((_n-ae.value.offsetHeight/2)/(At.height-ae.value.offsetHeight)*360)}else{let _n=Lt-At.left;_n=Math.min(_n,At.width-ae.value.offsetWidth/2),_n=Math.max(ae.value.offsetWidth/2,_n),vn=Math.round((_n-ae.value.offsetWidth/2)/(At.width-ae.value.offsetWidth)*360)}$.color.set("hue",vn)}function xe(){if(!ae.value)return 0;const Fe=oe.vnode.el;if($.vertical)return 0;const ze=$.color.get("hue");return Fe?Math.round(ze*(Fe.offsetWidth-ae.value.offsetWidth/2)/360):0}function Ie(){if(!ae.value)return 0;const Fe=oe.vnode.el;if(!$.vertical)return 0;const ze=$.color.get("hue");return Fe?Math.round(ze*(Fe.offsetHeight-ae.value.offsetHeight/2)/360):0}function Ne(){le.value=xe(),pe.value=Ie()}return onMounted(()=>{if(!ie.value||!ae.value)return;const Fe={drag:ze=>{$e(ze)},end:ze=>{$e(ze)}};draggable(ie.value,Fe),draggable(ae.value,Fe),Ne()}),{bar:ie,thumb:ae,thumbLeft:le,thumbTop:pe,hueValue:_e,handleClick:Ce,update:Ne,ns:z}}});function _sfc_render$s($,z,oe,ae,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("vertical",$.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass($.ns.e("bar")),onClick:z[0]||(z[0]=(...pe)=>$.handleClick&&$.handleClick(...pe))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass($.ns.e("thumb")),style:normalizeStyle$1({left:$.thumbLeft+"px",top:$.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]:$=>isString$7($)||isNil($),[CHANGE_EVENT]:$=>isString$7($)||isNil($),activeChange:$=>isString$7($)||isNil($)},colorPickerContextKey=Symbol("colorPickerContextKey"),hsv2hsl=function($,z,oe){return[$,z*oe/(($=(2-z)*oe)<1?$:2-$)||0,$/2]},isOnePointZero=function($){return typeof $=="string"&&$.includes(".")&&Number.parseFloat($)===1},isPercentage=function($){return typeof $=="string"&&$.includes("%")},bound01=function($,z){isOnePointZero($)&&($="100%");const oe=isPercentage($);return $=Math.min(z,Math.max(0,Number.parseFloat(`${$}`))),oe&&($=Number.parseInt(`${$*z}`,10)/100),Math.abs($-z)<1e-6?1:$%z/Number.parseFloat(z)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=$=>{$=Math.min(Math.round($),255);const z=Math.floor($/16),oe=$%16;return`${INT_HEX_MAP[z]||z}${INT_HEX_MAP[oe]||oe}`},toHex$1=function({r:$,g:z,b:oe}){return Number.isNaN(+$)||Number.isNaN(+z)||Number.isNaN(+oe)?"":`#${hexOne($)}${hexOne(z)}${hexOne(oe)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function($){return $.length===2?(HEX_INT_MAP[$[0].toUpperCase()]||+$[0])*16+(HEX_INT_MAP[$[1].toUpperCase()]||+$[1]):HEX_INT_MAP[$[1].toUpperCase()]||+$[1]},hsl2hsv=function($,z,oe){z=z/100,oe=oe/100;let ae=z;const ie=Math.max(oe,.01);oe*=2,z*=oe<=1?oe:2-oe,ae*=ie<=1?ie:2-ie;const le=(oe+z)/2,pe=oe===0?2*ae/(ie+ae):2*z/(oe+z);return{h:$,s:pe*100,v:le*100}},rgb2hsv=($,z,oe)=>{$=bound01($,255),z=bound01(z,255),oe=bound01(oe,255);const ae=Math.max($,z,oe),ie=Math.min($,z,oe);let le;const pe=ae,_e=ae-ie,Ce=ae===0?0:_e/ae;if(ae===ie)le=0;else{switch(ae){case $:{le=(z-oe)/_e+(z<oe?6:0);break}case z:{le=(oe-$)/_e+2;break}case oe:{le=($-z)/_e+4;break}}le/=6}return{h:le*360,s:Ce*100,v:pe*100}},hsv2rgb=function($,z,oe){$=bound01($,360)*6,z=bound01(z,100),oe=bound01(oe,100);const ae=Math.floor($),ie=$-ae,le=oe*(1-z),pe=oe*(1-ie*z),_e=oe*(1-(1-ie)*z),Ce=ae%6,$e=[oe,pe,le,le,_e,oe][Ce],xe=[_e,oe,oe,pe,le,le][Ce],Ie=[le,le,_e,oe,oe,pe][Ce];return{r:Math.round($e*255),g:Math.round(xe*255),b:Math.round(Ie*255)}};class Color{constructor(z={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const oe in z)hasOwn$4(z,oe)&&(this[oe]=z[oe]);z.value?this.fromString(z.value):this.doOnChange()}set(z,oe){if(arguments.length===1&&typeof z=="object"){for(const ae in z)hasOwn$4(z,ae)&&this.set(ae,z[ae]);return}this[`_${z}`]=oe,this.doOnChange()}get(z){return z==="alpha"?Math.floor(this[`_${z}`]):this[`_${z}`]}toRgb(){return hsv2rgb(this._hue,this._saturation,this._value)}fromString(z){if(!z){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const oe=(ae,ie,le)=>{this._hue=Math.max(0,Math.min(360,ae)),this._saturation=Math.max(0,Math.min(100,ie)),this._value=Math.max(0,Math.min(100,le)),this.doOnChange()};if(z.includes("hsl")){const ae=z.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(ie=>ie!=="").map((ie,le)=>le>2?Number.parseFloat(ie):Number.parseInt(ie,10));if(ae.length===4?this._alpha=Number.parseFloat(ae[3])*100:ae.length===3&&(this._alpha=100),ae.length>=3){const{h:ie,s:le,v:pe}=hsl2hsv(ae[0],ae[1],ae[2]);oe(ie,le,pe)}}else if(z.includes("hsv")){const ae=z.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(ie=>ie!=="").map((ie,le)=>le>2?Number.parseFloat(ie):Number.parseInt(ie,10));ae.length===4?this._alpha=Number.parseFloat(ae[3])*100:ae.length===3&&(this._alpha=100),ae.length>=3&&oe(ae[0],ae[1],ae[2])}else if(z.includes("rgb")){const ae=z.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(ie=>ie!=="").map((ie,le)=>le>2?Number.parseFloat(ie):Number.parseInt(ie,10));if(ae.length===4?this._alpha=Number.parseFloat(ae[3])*100:ae.length===3&&(this._alpha=100),ae.length>=3){const{h:ie,s:le,v:pe}=rgb2hsv(ae[0],ae[1],ae[2]);oe(ie,le,pe)}}else if(z.includes("#")){const ae=z.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(ae))return;let ie,le,pe;ae.length===3?(ie=parseHexChannel(ae[0]+ae[0]),le=parseHexChannel(ae[1]+ae[1]),pe=parseHexChannel(ae[2]+ae[2])):(ae.length===6||ae.length===8)&&(ie=parseHexChannel(ae.slice(0,2)),le=parseHexChannel(ae.slice(2,4)),pe=parseHexChannel(ae.slice(4,6))),ae.length===8?this._alpha=parseHexChannel(ae.slice(6))/255*100:(ae.length===3||ae.length===6)&&(this._alpha=100);const{h:_e,s:Ce,v:$e}=rgb2hsv(ie,le,pe);oe(_e,Ce,$e)}}compare(z){return Math.abs(z._hue-this._hue)<2&&Math.abs(z._saturation-this._saturation)<1&&Math.abs(z._value-this._value)<1&&Math.abs(z._alpha-this._alpha)<1}doOnChange(){const{_hue:z,_saturation:oe,_value:ae,_alpha:ie,format:le}=this;if(this.enableAlpha)switch(le){case"hsl":{const pe=hsv2hsl(z,oe/100,ae/100);this.value=`hsla(${z}, ${Math.round(pe[1]*100)}%, ${Math.round(pe[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${z}, ${Math.round(oe)}%, ${Math.round(ae)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(z,oe,ae))}${hexOne(ie*255/100)}`;break}default:{const{r:pe,g:_e,b:Ce}=hsv2rgb(z,oe,ae);this.value=`rgba(${pe}, ${_e}, ${Ce}, ${this.get("alpha")/100})`}}else switch(le){case"hsl":{const pe=hsv2hsl(z,oe/100,ae/100);this.value=`hsl(${z}, ${Math.round(pe[1]*100)}%, ${Math.round(pe[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${z}, ${Math.round(oe)}%, ${Math.round(ae)}%)`;break}case"rgb":{const{r:pe,g:_e,b:Ce}=hsv2rgb(z,oe,ae);this.value=`rgb(${pe}, ${_e}, ${Ce})`;break}default:this.value=toHex$1(hsv2rgb(z,oe,ae))}}}const _sfc_main$1v=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup($){const z=useNamespace("color-predefine"),{currentColor:oe}=inject(colorPickerContextKey),ae=ref(le($.colors,$.color));watch(()=>oe.value,pe=>{const _e=new Color;_e.fromString(pe),ae.value.forEach(Ce=>{Ce.selected=_e.compare(Ce)})}),watchEffect(()=>{ae.value=le($.colors,$.color)});function ie(pe){$.color.fromString($.colors[pe])}function le(pe,_e){return pe.map(Ce=>{const $e=new Color;return $e.enableAlpha=!0,$e.format="rgba",$e.fromString(Ce),$e.selected=$e.value===_e.value,$e})}return{rgbaColors:ae,handleSelect:ie,ns:z}}}),_hoisted_1$N=["onClick"];function _sfc_render$r($,z,oe,ae,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rgbaColors,(pe,_e)=>(openBlock(),createElementBlock("div",{key:$.colors[_e],class:normalizeClass([$.ns.e("color-selector"),$.ns.is("alpha",pe._alpha<100),{selected:pe.selected}]),onClick:Ce=>$.handleSelect(_e)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:pe.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($){const z=useNamespace("color-svpanel"),oe=getCurrentInstance(),ae=ref(0),ie=ref(0),le=ref("hsl(0, 100%, 50%)"),pe=computed(()=>{const $e=$.color.get("hue"),xe=$.color.get("value");return{hue:$e,value:xe}});function _e(){const $e=$.color.get("saturation"),xe=$.color.get("value"),Ie=oe.vnode.el,{clientWidth:Ne,clientHeight:Fe}=Ie;ie.value=$e*Ne/100,ae.value=(100-xe)*Fe/100,le.value=`hsl(${$.color.get("hue")}, 100%, 50%)`}function Ce($e){const Ie=oe.vnode.el.getBoundingClientRect(),{clientX:Ne,clientY:Fe}=getClientXY($e);let ze=Ne-Ie.left,At=Fe-Ie.top;ze=Math.max(0,ze),ze=Math.min(ze,Ie.width),At=Math.max(0,At),At=Math.min(At,Ie.height),ie.value=ze,ae.value=At,$.color.set({saturation:ze/Ie.width*100,value:100-At/Ie.height*100})}return watch(()=>pe.value,()=>{_e()}),onMounted(()=>{draggable(oe.vnode.el,{drag:$e=>{Ce($e)},end:$e=>{Ce($e)}}),_e()}),{cursorTop:ae,cursorLeft:ie,background:le,colorValue:pe,handleDrag:Ce,update:_e,ns:z}}}),_hoisted_1$M=createBaseVNode("div",null,null,-1),_hoisted_2$w=[_hoisted_1$M];function _sfc_render$q($,z,oe,ae,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b()),style:normalizeStyle$1({backgroundColor:$.background})},[createBaseVNode("div",{class:normalizeClass($.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("cursor")),style:normalizeStyle$1({top:$.cursorTop+"px",left:$.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($,{expose:z,emit:oe}){const ae=$,{t:ie}=useLocale(),le=useNamespace("color"),{formItem:pe}=useFormItem(),_e=useFormSize(),Ce=useFormDisabled(),{inputId:$e,isLabeledByFormItem:xe}=useFormItemInputId(ae,{formItemContext:pe}),Ie=ref(),Ne=ref(),Fe=ref(),ze=ref();let At=!0;const Lt=reactive(new Color({enableAlpha:ae.showAlpha,format:ae.colorFormat||"",value:ae.modelValue})),hn=ref(!1),vn=ref(!1),_n=ref(""),bn=computed(()=>!ae.modelValue&&!vn.value?"transparent":Tn(Lt,ae.showAlpha)),Cn=computed(()=>!ae.modelValue&&!vn.value?"":Lt.value),En=computed(()=>xe.value?void 0:ae.label||ie("el.colorpicker.defaultLabel")),$n=computed(()=>xe.value?pe==null?void 0:pe.labelId:void 0),wn=computed(()=>[le.b("picker"),le.is("disabled",Ce.value),le.bm("picker",_e.value)]);function Tn(Bn,zn){if(!(Bn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Xn,g:Un,b:Jn}=Bn.toRgb();return zn?`rgba(${Xn}, ${Un}, ${Jn}, ${Bn.get("alpha")/100})`:`rgb(${Xn}, ${Un}, ${Jn})`}function xn(Bn){hn.value=Bn}const kn=debounce(xn,100);function An(){Ce.value||xn(!0)}function On(){kn(!1),Mn()}function Mn(){nextTick(()=>{ae.modelValue?Lt.fromString(ae.modelValue):(Lt.value="",nextTick(()=>{vn.value=!1}))})}function Fn(){Ce.value||kn(!hn.value)}function Dn(){Lt.fromString(_n.value)}function Nn(){const Bn=Lt.value;oe(UPDATE_MODEL_EVENT,Bn),oe("change",Bn),ae.validateEvent&&(pe==null||pe.validate("change").catch(zn=>void 0)),kn(!1),nextTick(()=>{const zn=new Color({enableAlpha:ae.showAlpha,format:ae.colorFormat||"",value:ae.modelValue});Lt.compare(zn)||Mn()})}function Vn(){kn(!1),oe(UPDATE_MODEL_EVENT,null),oe("change",null),ae.modelValue!==null&&ae.validateEvent&&(pe==null||pe.validate("change").catch(Bn=>void 0)),Mn()}return onMounted(()=>{ae.modelValue&&(_n.value=Cn.value)}),watch(()=>ae.modelValue,Bn=>{Bn?Bn&&Bn!==Lt.value&&(At=!1,Lt.fromString(Bn)):vn.value=!1}),watch(()=>Cn.value,Bn=>{_n.value=Bn,At&&oe("activeChange",Bn),At=!0}),watch(()=>Lt.value,()=>{!ae.modelValue&&!vn.value&&(vn.value=!0)}),watch(()=>hn.value,()=>{nextTick(()=>{var Bn,zn,Xn;(Bn=Ie.value)==null||Bn.update(),(zn=Ne.value)==null||zn.update(),(Xn=Fe.value)==null||Xn.update()})}),provide(colorPickerContextKey,{currentColor:Cn}),z({color:Lt,show:An,hide:On}),(Bn,zn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:ze,visible:hn.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"),Bn.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:Ie,class:"hue-slider",color:unref(Lt),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref:"svPanel",color:unref(Lt)},null,8,["color"])],2),Bn.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:Fe,color:unref(Lt)},null,8,["color"])):createCommentVNode("v-if",!0),Bn.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(Lt),colors:Bn.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:_n.value,"onUpdate:modelValue":zn[0]||(zn[0]=Xn=>_n.value=Xn),"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:Vn},{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:Nn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ie)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),On]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref($e),class:normalizeClass(unref(wn)),role:"button","aria-label":unref(En),"aria-labelledby":unref($n),"aria-description":unref(ie)("el.colorpicker.description",{color:Bn.modelValue||""}),tabindex:Bn.tabindex,onKeydown:withKeys(Fn,["enter"])},[unref(Ce)?(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:Fn},[createBaseVNode("span",{class:normalizeClass([unref(le).be("picker","color"),unref(le).is("alpha",Bn.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(le).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(bn)})},[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,Bn.modelValue||vn.value]]),!Bn.modelValue&&!vn.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($){const z=$,oe=useSlots(),ae=useNamespace("container"),ie=computed(()=>z.direction==="vertical"?!0:z.direction==="horizontal"?!1:oe&&oe.default?oe.default().some(pe=>{const _e=pe.type.name;return _e==="ElHeader"||_e==="ElFooter"}):!1);return(le,pe)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(ae).b(),unref(ae).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($){const z=$,oe=useNamespace("aside"),ae=computed(()=>z.width?oe.cssVarBlock({width:z.width}):{});return(ie,le)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(ae))},[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($){const z=$,oe=useNamespace("footer"),ae=computed(()=>z.height?oe.cssVarBlock({height:z.height}):{});return(ie,le)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(ae))},[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($){const z=$,oe=useNamespace("header"),ae=computed(()=>z.height?oe.cssVarBlock({height:z.height}):{});return(ie,le)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(ae))},[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($){const z=useNamespace("main");return(oe,ae)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(z).b())},[renderSlot(oe.$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($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){var ie=ae.prototype,le=ie.format;ie.format=function(pe){var _e=this,Ce=this.$locale();if(!this.isValid())return le.bind(this)(pe);var $e=this.$utils(),xe=(pe||"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(Ie){switch(Ie){case"Q":return Math.ceil((_e.$M+1)/3);case"Do":return Ce.ordinal(_e.$D);case"gggg":return _e.weekYear();case"GGGG":return _e.isoWeekYear();case"wo":return Ce.ordinal(_e.week(),"W");case"w":case"ww":return $e.s(_e.week(),Ie==="w"?1:2,"0");case"W":case"WW":return $e.s(_e.isoWeek(),Ie==="W"?1:2,"0");case"k":case"kk":return $e.s(String(_e.$H===0?24:_e.$H),Ie==="k"?1:2,"0");case"X":return Math.floor(_e.$d.getTime()/1e3);case"x":return _e.$d.getTime();case"z":return"["+_e.offsetName()+"]";case"zzz":return"["+_e.offsetName("long")+"]";default:return Ie}});return le.bind(this)(xe)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe="week",ae="year";return function(ie,le,pe){var _e=le.prototype;_e.week=function(Ce){if(Ce===void 0&&(Ce=null),Ce!==null)return this.add(7*(Ce-this.week()),"day");var $e=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var xe=pe(this).startOf(ae).add(1,ae).date($e),Ie=pe(this).endOf(oe);if(xe.isBefore(Ie))return 1}var Ne=pe(this).startOf(ae).date($e).startOf(oe).subtract(1,"millisecond"),Fe=this.diff(Ne,oe,!0);return Fe<0?pe(this).startOf("week").week():Math.ceil(Fe)},_e.weeks=function(Ce){return Ce===void 0&&(Ce=null),this.week(Ce)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){ae.prototype.weekYear=function(){var ie=this.month(),le=this.week(),pe=this.year();return le===1&&ie===11?pe+1:ie===0&&le>=52?pe-1:pe}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae,ie){ae.prototype.dayOfYear=function(le){var pe=Math.round((ie(this).startOf("day")-ie(this).startOf("year"))/864e5)+1;return le==null?pe:this.add(le-pe,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){ae.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($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){ae.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=$=>({type:String,values:selectionModes,default:$}),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=$=>{if(!isArray$c($))return!1;const[z,oe]=$;return dayjs.isDayjs(z)&&dayjs.isDayjs(oe)&&z.isSameOrBefore(oe)},getDefaultValue=($,{lang:z,unit:oe,unlinkPanels:ae})=>{let ie;if(isArray$c($)){let[le,pe]=$.map(_e=>dayjs(_e).locale(z));return ae||(pe=le.add(1,oe)),[le,pe]}else $?ie=dayjs($):ie=dayjs();return ie=ie.locale(z),[ie,ie.add(1,oe)]},buildPickerTable=($,z,{columnIndexOffset:oe,startDate:ae,nextEndDate:ie,now:le,unit:pe,relativeDateGetter:_e,setCellMetadata:Ce,setRowMetadata:$e})=>{for(let xe=0;xe<$.row;xe++){const Ie=z[xe];for(let Ne=0;Ne<$.column;Ne++){let Fe=Ie[Ne+oe];Fe||(Fe={row:xe,column:Ne,type:"normal",inRange:!1,start:!1,end:!1});const ze=xe*$.column+Ne,At=_e(ze);Fe.dayjs=At,Fe.date=At.toDate(),Fe.timestamp=At.valueOf(),Fe.type="normal",Fe.inRange=!!(ae&&At.isSameOrAfter(ae,pe)&&ie&&At.isSameOrBefore(ie,pe))||!!(ae&&At.isSameOrBefore(ae,pe)&&ie&&At.isSameOrAfter(ie,pe)),ae!=null&&ae.isSameOrAfter(ie)?(Fe.start=!!ie&&At.isSame(ie,pe),Fe.end=ae&&At.isSame(ae,pe)):(Fe.start=!!ae&&At.isSame(ae,pe),Fe.end=!!ie&&At.isSame(ie,pe)),At.isSame(le,pe)&&(Fe.type="today"),Ce==null||Ce(Fe,{rowIndex:xe,columnIndex:Ne}),Ie[Ne+oe]=Fe}$e==null||$e(Ie)}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup($){const z=useNamespace("date-table-cell"),{slots:oe}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:ae}=$;if(oe.default){const ie=oe.default(ae).filter(le=>le.patchFlag!==-2&&le.type.toString()!=="Symbol(Comment)");if(ie.length)return ie}return createVNode("div",{class:z.b()},[createVNode("span",{class:z.e("text")},[ae==null?void 0:ae.text])])}}});const _hoisted_1$K=["aria-label","onMousedown"],_hoisted_2$v={key:0,scope:"col"},_hoisted_3$i=["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($,{expose:z,emit:oe}){const ae=$,ie=useNamespace("date-table"),{t:le,lang:pe}=useLocale(),_e=ref(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref([[],[],[],[],[],[]]);let Ne=!1;const Fe=ae.date.$locale().weekStart||7,ze=ae.date.locale("en").localeData().weekdaysShort().map(Un=>Un.toLowerCase()),At=computed(()=>Fe>3?7-Fe:-Fe),Lt=computed(()=>{const Un=ae.date.startOf("month");return Un.subtract(Un.day()||7,"day")}),hn=computed(()=>ze.concat(ze).slice(Fe,Fe+7)),vn=computed(()=>flatten(wn.value).some(Un=>Un.isCurrent)),_n=computed(()=>{const Un=ae.date.startOf("month"),Jn=Un.day()||7,lr=Un.daysInMonth(),_r=Un.subtract(1,"month").daysInMonth();return{startOfMonthDay:Jn,dateCountOfMonth:lr,dateCountOfLastMonth:_r}}),bn=computed(()=>ae.selectionMode==="dates"?castArray(ae.parsedValue):[]),Cn=(Un,{count:Jn,rowIndex:lr,columnIndex:_r})=>{const{startOfMonthDay:ir,dateCountOfMonth:qn,dateCountOfLastMonth:Yn}=unref(_n),Wn=unref(At);if(lr>=0&&lr<=1){const tr=ir+Wn<0?7+ir+Wn:ir+Wn;if(_r+lr*7>=tr)return Un.text=Jn,!0;Un.text=Yn-(tr-_r%7)+1+lr*7,Un.type="prev-month"}else return Jn<=qn?Un.text=Jn:(Un.text=Jn-qn,Un.type="next-month"),!0;return!1},En=(Un,{columnIndex:Jn,rowIndex:lr},_r)=>{const{disabledDate:ir,cellClassName:qn}=ae,Yn=unref(bn),Wn=Cn(Un,{count:_r,rowIndex:lr,columnIndex:Jn}),tr=Un.dayjs.toDate();return Un.selected=Yn.find(pr=>pr.valueOf()===Un.dayjs.valueOf()),Un.isSelected=!!Un.selected,Un.isCurrent=kn(Un),Un.disabled=ir==null?void 0:ir(tr),Un.customClass=qn==null?void 0:qn(tr),Wn},$n=Un=>{if(ae.selectionMode==="week"){const[Jn,lr]=ae.showWeekNumber?[1,7]:[0,6],_r=Xn(Un[Jn+1]);Un[Jn].inRange=_r,Un[Jn].start=_r,Un[lr].inRange=_r,Un[lr].end=_r}},wn=computed(()=>{const{minDate:Un,maxDate:Jn,rangeState:lr,showWeekNumber:_r}=ae,ir=At.value,qn=Ie.value,Yn="day";let Wn=1;if(_r)for(let tr=0;tr<6;tr++)qn[tr][0]||(qn[tr][0]={type:"week",text:Lt.value.add(tr*7+1,Yn).week()});return buildPickerTable({row:6,column:7},qn,{startDate:Un,columnIndexOffset:_r?1:0,nextEndDate:lr.endDate||Jn||lr.selecting&&Un||null,now:dayjs().locale(unref(pe)).startOf(Yn),unit:Yn,relativeDateGetter:tr=>Lt.value.add(tr-ir,Yn),setCellMetadata:(...tr)=>{En(...tr,Wn)&&(Wn+=1)},setRowMetadata:$n}),qn});watch(()=>ae.date,async()=>{var Un,Jn;(Un=_e.value)!=null&&Un.contains(document.activeElement)&&(await nextTick(),(Jn=Ce.value)==null||Jn.focus())});const Tn=async()=>{var Un;(Un=Ce.value)==null||Un.focus()},xn=(Un="")=>["normal","today"].includes(Un),kn=Un=>ae.selectionMode==="date"&&xn(Un.type)&&An(Un,ae.parsedValue),An=(Un,Jn)=>Jn?dayjs(Jn).locale(pe.value).isSame(ae.date.date(Number(Un.text)),"day"):!1,On=Un=>{const Jn=[];return xn(Un.type)&&!Un.disabled?(Jn.push("available"),Un.type==="today"&&Jn.push("today")):Jn.push(Un.type),kn(Un)&&Jn.push("current"),Un.inRange&&(xn(Un.type)||ae.selectionMode==="week")&&(Jn.push("in-range"),Un.start&&Jn.push("start-date"),Un.end&&Jn.push("end-date")),Un.disabled&&Jn.push("disabled"),Un.selected&&Jn.push("selected"),Un.customClass&&Jn.push(Un.customClass),Jn.join(" ")},Mn=(Un,Jn)=>{const lr=Un*7+(Jn-(ae.showWeekNumber?1:0))-At.value;return Lt.value.add(lr,"day")},Fn=Un=>{var Jn;if(!ae.rangeState.selecting)return;let lr=Un.target;if(lr.tagName==="SPAN"&&(lr=(Jn=lr.parentNode)==null?void 0:Jn.parentNode),lr.tagName==="DIV"&&(lr=lr.parentNode),lr.tagName!=="TD")return;const _r=lr.parentNode.rowIndex-1,ir=lr.cellIndex;wn.value[_r][ir].disabled||(_r!==$e.value||ir!==xe.value)&&($e.value=_r,xe.value=ir,oe("changerange",{selecting:!0,endDate:Mn(_r,ir)}))},Dn=Un=>!vn.value&&(Un==null?void 0:Un.text)===1&&Un.type==="normal"||Un.isCurrent,Nn=Un=>{Ne||vn.value||ae.selectionMode!=="date"||zn(Un,!0)},Vn=Un=>{Un.target.closest("td")&&(Ne=!0)},Bn=Un=>{Un.target.closest("td")&&(Ne=!1)},zn=(Un,Jn=!1)=>{const lr=Un.target.closest("td");if(!lr)return;const _r=lr.parentNode.rowIndex-1,ir=lr.cellIndex,qn=wn.value[_r][ir];if(qn.disabled||qn.type==="week")return;const Yn=Mn(_r,ir);if(ae.selectionMode==="range")!ae.rangeState.selecting||!ae.minDate?(oe("pick",{minDate:Yn,maxDate:null}),oe("select",!0)):(Yn>=ae.minDate?oe("pick",{minDate:ae.minDate,maxDate:Yn}):oe("pick",{minDate:Yn,maxDate:ae.minDate}),oe("select",!1));else if(ae.selectionMode==="date")oe("pick",Yn,Jn);else if(ae.selectionMode==="week"){const Wn=Yn.week(),tr=`${Yn.year()}w${Wn}`;oe("pick",{year:Yn.year(),week:Wn,value:tr,date:Yn.startOf("week")})}else if(ae.selectionMode==="dates"){const Wn=qn.selected?castArray(ae.parsedValue).filter(tr=>(tr==null?void 0:tr.valueOf())!==Yn.valueOf()):castArray(ae.parsedValue).concat([Yn]);oe("pick",Wn)}},Xn=Un=>{if(ae.selectionMode!=="week")return!1;let Jn=ae.date.startOf("day");if(Un.type==="prev-month"&&(Jn=Jn.subtract(1,"month")),Un.type==="next-month"&&(Jn=Jn.add(1,"month")),Jn=Jn.date(Number.parseInt(Un.text,10)),ae.parsedValue&&!Array.isArray(ae.parsedValue)){const lr=(ae.parsedValue.day()-Fe+7)%7-1;return ae.parsedValue.subtract(lr,"day").isSame(Jn,"day")}return!1};return z({focus:Tn}),(Un,Jn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(le)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(ie).b(),{"is-week-mode":Un.selectionMode==="week"}]),onClick:zn,onMousemove:Fn,onMousedown:withModifiers(Vn,["prevent"]),onMouseup:Bn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:_e},[createBaseVNode("tr",null,[Un.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(hn),(lr,_r)=>(openBlock(),createElementBlock("th",{key:_r,scope:"col","aria-label":unref(le)("el.datepicker.weeksFull."+lr)},toDisplayString$1(unref(le)("el.datepicker.weeks."+lr)),9,_hoisted_3$i))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(wn),(lr,_r)=>(openBlock(),createElementBlock("tr",{key:_r,class:normalizeClass([unref(ie).e("row"),{current:Xn(lr[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(lr,(ir,qn)=>(openBlock(),createElementBlock("td",{key:`${_r}.${qn}`,ref_for:!0,ref:Yn=>Dn(ir)&&(Ce.value=Yn),class:normalizeClass(On(ir)),"aria-current":ir.isCurrent?"date":void 0,"aria-selected":ir.isCurrent,tabindex:Dn(ir)?0:-1,onFocus:Nn},[createVNode(unref(ElDatePickerCell),{cell:ir},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$h={class:"cell"},_sfc_main$1m=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup($,{expose:z,emit:oe}){const ae=$,ie=(bn,Cn,En)=>{const $n=dayjs().locale(En).startOf("month").month(Cn).year(bn),wn=$n.daysInMonth();return rangeArr(wn).map(Tn=>$n.add(Tn,"day").toDate())},le=useNamespace("month-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=ref(ae.date.locale("en").localeData().monthsShort().map(bn=>bn.toLowerCase())),Ie=ref([[],[],[]]),Ne=ref(),Fe=ref(),ze=computed(()=>{var bn,Cn;const En=Ie.value,$n=dayjs().locale(_e.value).startOf("month");for(let wn=0;wn<3;wn++){const Tn=En[wn];for(let xn=0;xn<4;xn++){const kn=Tn[xn]||(Tn[xn]={row:wn,column:xn,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});kn.type="normal";const An=wn*4+xn,On=ae.date.startOf("year").month(An),Mn=ae.rangeState.endDate||ae.maxDate||ae.rangeState.selecting&&ae.minDate||null;kn.inRange=!!(ae.minDate&&On.isSameOrAfter(ae.minDate,"month")&&Mn&&On.isSameOrBefore(Mn,"month"))||!!(ae.minDate&&On.isSameOrBefore(ae.minDate,"month")&&Mn&&On.isSameOrAfter(Mn,"month")),(bn=ae.minDate)!=null&&bn.isSameOrAfter(Mn)?(kn.start=!!(Mn&&On.isSame(Mn,"month")),kn.end=ae.minDate&&On.isSame(ae.minDate,"month")):(kn.start=!!(ae.minDate&&On.isSame(ae.minDate,"month")),kn.end=!!(Mn&&On.isSame(Mn,"month"))),$n.isSame(On)&&(kn.type="today"),kn.text=An,kn.disabled=((Cn=ae.disabledDate)==null?void 0:Cn.call(ae,On.toDate()))||!1}}return En}),At=()=>{var bn;(bn=$e.value)==null||bn.focus()},Lt=bn=>{const Cn={},En=ae.date.year(),$n=new Date,wn=bn.text;return Cn.disabled=ae.disabledDate?ie(En,wn,_e.value).every(ae.disabledDate):!1,Cn.current=castArray(ae.parsedValue).findIndex(Tn=>dayjs.isDayjs(Tn)&&Tn.year()===En&&Tn.month()===wn)>=0,Cn.today=$n.getFullYear()===En&&$n.getMonth()===wn,bn.inRange&&(Cn["in-range"]=!0,bn.start&&(Cn["start-date"]=!0),bn.end&&(Cn["end-date"]=!0)),Cn},hn=bn=>{const Cn=ae.date.year(),En=bn.text;return castArray(ae.date).findIndex($n=>$n.year()===Cn&&$n.month()===En)>=0},vn=bn=>{var Cn;if(!ae.rangeState.selecting)return;let En=bn.target;if(En.tagName==="A"&&(En=(Cn=En.parentNode)==null?void 0:Cn.parentNode),En.tagName==="DIV"&&(En=En.parentNode),En.tagName!=="TD")return;const $n=En.parentNode.rowIndex,wn=En.cellIndex;ze.value[$n][wn].disabled||($n!==Ne.value||wn!==Fe.value)&&(Ne.value=$n,Fe.value=wn,oe("changerange",{selecting:!0,endDate:ae.date.startOf("year").month($n*4+wn)}))},_n=bn=>{var Cn;const En=(Cn=bn.target)==null?void 0:Cn.closest("td");if((En==null?void 0:En.tagName)!=="TD"||hasClass(En,"disabled"))return;const $n=En.cellIndex,Tn=En.parentNode.rowIndex*4+$n,xn=ae.date.startOf("year").month(Tn);ae.selectionMode==="range"?ae.rangeState.selecting?(ae.minDate&&xn>=ae.minDate?oe("pick",{minDate:ae.minDate,maxDate:xn}):oe("pick",{minDate:xn,maxDate:ae.minDate}),oe("select",!1)):(oe("pick",{minDate:xn,maxDate:null}),oe("select",!0)):oe("pick",Tn)};return watch(()=>ae.date,async()=>{var bn,Cn;(bn=Ce.value)!=null&&bn.contains(document.activeElement)&&(await nextTick(),(Cn=$e.value)==null||Cn.focus())}),z({focus:At}),(bn,Cn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(le).b()),onClick:_n,onMousemove:vn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ze),(En,$n)=>(openBlock(),createElementBlock("tr",{key:$n},[(openBlock(!0),createElementBlock(Fragment,null,renderList(En,(wn,Tn)=>(openBlock(),createElementBlock("td",{key:Tn,ref_for:!0,ref:xn=>hn(wn)&&($e.value=xn),class:normalizeClass(Lt(wn)),"aria-selected":`${hn(wn)}`,"aria-label":unref(pe)(`el.datepicker.month${+wn.text+1}`),tabindex:hn(wn)?0:-1,onKeydown:[withKeys(withModifiers(_n,["prevent","stop"]),["space"]),withKeys(withModifiers(_n,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$h,toDisplayString$1(unref(pe)("el.datepicker.months."+xe.value[wn.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$g={class:"cell"},_hoisted_4$b={key:1},_sfc_main$1l=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup($,{expose:z,emit:oe}){const ae=$,ie=(At,Lt)=>{const hn=dayjs(String(At)).locale(Lt).startOf("year"),_n=hn.endOf("year").dayOfYear();return rangeArr(_n).map(bn=>hn.add(bn,"day").toDate())},le=useNamespace("year-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=computed(()=>Math.floor(ae.date.year()/10)*10),Ie=()=>{var At;(At=$e.value)==null||At.focus()},Ne=At=>{const Lt={},hn=dayjs().locale(_e.value);return Lt.disabled=ae.disabledDate?ie(At,_e.value).every(ae.disabledDate):!1,Lt.current=castArray(ae.parsedValue).findIndex(vn=>vn.year()===At)>=0,Lt.today=hn.year()===At,Lt},Fe=At=>At===xe.value&&ae.date.year()<xe.value&&ae.date.year()>xe.value+9||castArray(ae.date).findIndex(Lt=>Lt.year()===At)>=0,ze=At=>{const hn=At.target.closest("td");if(hn&&hn.textContent){if(hasClass(hn,"disabled"))return;const vn=hn.textContent||hn.innerText;oe("pick",Number(vn))}};return watch(()=>ae.date,async()=>{var At,Lt;(At=Ce.value)!=null&&At.contains(document.activeElement)&&(await nextTick(),(Lt=$e.value)==null||Lt.focus())}),z({focus:Ie}),(At,Lt)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(le).b()),onClick:ze},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(hn,vn)=>createBaseVNode("tr",{key:vn},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(_n,bn)=>(openBlock(),createElementBlock(Fragment,{key:vn+"_"+bn},[vn*4+bn<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:Cn=>Fe(unref(xe)+vn*4+bn)&&($e.value=Cn),class:normalizeClass(["available",Ne(unref(xe)+vn*4+bn)]),"aria-selected":`${Fe(unref(xe)+vn*4+bn)}`,tabindex:Fe(unref(xe)+vn*4+bn)?0:-1,onKeydown:[withKeys(withModifiers(ze,["prevent","stop"]),["space"]),withKeys(withModifiers(ze,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$g,toDisplayString$1(unref(xe)+vn*4+bn),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$f=["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($,{emit:z}){const oe=$,ae=(Er,$r,ur)=>!0,ie=useNamespace("picker-panel"),le=useNamespace("date-picker"),pe=useAttrs$1(),_e=useSlots(),{t:Ce,lang:$e}=useLocale(),xe=inject("EP_PICKER_BASE"),Ie=inject(TOOLTIP_INJECTION_KEY),{shortcuts:Ne,disabledDate:Fe,cellClassName:ze,defaultTime:At,arrowControl:Lt}=xe.props,hn=toRef$1(xe.props,"defaultValue"),vn=ref(),_n=ref(dayjs().locale($e.value)),bn=ref(!1),Cn=computed(()=>dayjs(At).locale($e.value)),En=computed(()=>_n.value.month()),$n=computed(()=>_n.value.year()),wn=ref([]),Tn=ref(null),xn=ref(null),kn=Er=>wn.value.length>0?ae(Er,wn.value,oe.format||"HH:mm:ss"):!0,An=Er=>At&&!Gn.value&&!bn.value?Cn.value.year(Er.year()).month(Er.month()).date(Er.date()):ir.value?Er.millisecond(0):Er.startOf("day"),On=(Er,...$r)=>{if(!Er)z("pick",Er,...$r);else if(isArray$c(Er)){const ur=Er.map(An);z("pick",ur,...$r)}else z("pick",An(Er),...$r);Tn.value=null,xn.value=null,bn.value=!1},Mn=(Er,$r)=>{if(zn.value==="date"){Er=Er;let ur=oe.parsedValue?oe.parsedValue.year(Er.year()).month(Er.month()).date(Er.date()):Er;kn(ur)||(ur=wn.value[0][0].year(Er.year()).month(Er.month()).date(Er.date())),_n.value=ur,On(ur,ir.value||$r)}else zn.value==="week"?On(Er.date):zn.value==="dates"&&On(Er,!0)},Fn=Er=>{const $r=Er?"add":"subtract";_n.value=_n.value[$r](1,"month"),Mr("month")},Dn=Er=>{const $r=_n.value,ur=Er?"add":"subtract";_n.value=Nn.value==="year"?$r[ur](10,"year"):$r[ur](1,"year"),Mr("year")},Nn=ref("date"),Vn=computed(()=>{const Er=Ce("el.datepicker.year");if(Nn.value==="year"){const $r=Math.floor($n.value/10)*10;return Er?`${$r} ${Er} - ${$r+9} ${Er}`:`${$r} - ${$r+9}`}return`${$n.value} ${Er}`}),Bn=Er=>{const $r=isFunction$5(Er.value)?Er.value():Er.value;if($r){On(dayjs($r).locale($e.value));return}Er.onClick&&Er.onClick({attrs:pe,slots:_e,emit:z})},zn=computed(()=>{const{type:Er}=oe;return["week","month","year","dates"].includes(Er)?Er:"date"}),Xn=computed(()=>zn.value==="date"?Nn.value:zn.value),Un=computed(()=>!!Ne.length),Jn=async Er=>{_n.value=_n.value.startOf("month").month(Er),zn.value==="month"?On(_n.value,!1):(Nn.value="date",["month","year","date","week"].includes(zn.value)&&(On(_n.value,!0),await nextTick(),Ar())),Mr("month")},lr=async Er=>{zn.value==="year"?(_n.value=_n.value.startOf("year").year(Er),On(_n.value,!1)):(_n.value=_n.value.year(Er),Nn.value="month",["month","year","date","week"].includes(zn.value)&&(On(_n.value,!0),await nextTick(),Ar())),Mr("year")},_r=async Er=>{Nn.value=Er,await nextTick(),Ar()},ir=computed(()=>oe.type==="datetime"||oe.type==="datetimerange"),qn=computed(()=>ir.value||zn.value==="dates"),Yn=()=>{if(zn.value==="dates")On(oe.parsedValue);else{let Er=oe.parsedValue;if(!Er){const $r=dayjs(At).locale($e.value),ur=hr();Er=$r.year(ur.year()).month(ur.month()).date(ur.date())}_n.value=Er,On(Er)}},Wn=()=>{const $r=dayjs().locale($e.value).toDate();bn.value=!0,(!Fe||!Fe($r))&&kn($r)&&(_n.value=dayjs().locale($e.value),On(_n.value))},tr=computed(()=>extractTimeFormat(oe.format)),pr=computed(()=>extractDateFormat(oe.format)),Gn=computed(()=>{if(xn.value)return xn.value;if(!(!oe.parsedValue&&!hn.value))return(oe.parsedValue||_n.value).format(tr.value)}),Zn=computed(()=>{if(Tn.value)return Tn.value;if(!(!oe.parsedValue&&!hn.value))return(oe.parsedValue||_n.value).format(pr.value)}),rr=ref(!1),mr=()=>{rr.value=!0},Sr=()=>{rr.value=!1},ar=Er=>({hour:Er.hour(),minute:Er.minute(),second:Er.second(),year:Er.year(),month:Er.month(),date:Er.date()}),xr=(Er,$r,ur)=>{const{hour:er,minute:or,second:Tr}=ar(Er),Or=oe.parsedValue?oe.parsedValue.hour(er).minute(or).second(Tr):Er;_n.value=Or,On(_n.value,!0),ur||(rr.value=$r)},gr=Er=>{const $r=dayjs(Er,tr.value).locale($e.value);if($r.isValid()&&kn($r)){const{year:ur,month:er,date:or}=ar(_n.value);_n.value=$r.year(ur).month(er).date(or),xn.value=null,rr.value=!1,On(_n.value,!0)}},Pr=Er=>{const $r=dayjs(Er,pr.value).locale($e.value);if($r.isValid()){if(Fe&&Fe($r.toDate()))return;const{hour:ur,minute:er,second:or}=ar(_n.value);_n.value=$r.hour(ur).minute(er).second(or),Tn.value=null,On(_n.value,!0)}},dr=Er=>dayjs.isDayjs(Er)&&Er.isValid()&&(Fe?!Fe(Er.toDate()):!0),sr=Er=>zn.value==="dates"?Er.map($r=>$r.format(oe.format)):Er.format(oe.format),cr=Er=>dayjs(Er,oe.format).locale($e.value),hr=()=>{const Er=dayjs(hn.value).locale($e.value);if(!hn.value){const $r=Cn.value;return dayjs().hour($r.hour()).minute($r.minute()).second($r.second()).locale($e.value)}return Er},Ar=async()=>{var Er;["week","month","year","date"].includes(zn.value)&&((Er=vn.value)==null||Er.focus(),zn.value==="week"&&Lr(EVENT_CODE.down))},Dr=Er=>{const{code:$r}=Er;[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($r)&&(Lr($r),Er.stopPropagation(),Er.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes($r)&&Tn.value===null&&xn.value===null&&(Er.preventDefault(),On(_n.value,!1))},Lr=Er=>{var $r;const{up:ur,down:er,left:or,right:Tr,home:Or,end:zr,pageUp:Cr,pageDown:Nr}=EVENT_CODE,Hr={year:{[ur]:-4,[er]:4,[or]:-1,[Tr]:1,offset:(Gr,qr)=>Gr.setFullYear(Gr.getFullYear()+qr)},month:{[ur]:-4,[er]:4,[or]:-1,[Tr]:1,offset:(Gr,qr)=>Gr.setMonth(Gr.getMonth()+qr)},week:{[ur]:-1,[er]:1,[or]:-1,[Tr]:1,offset:(Gr,qr)=>Gr.setDate(Gr.getDate()+qr*7)},date:{[ur]:-7,[er]:7,[or]:-1,[Tr]:1,[Or]:Gr=>-Gr.getDay(),[zr]:Gr=>-Gr.getDay()+6,[Cr]:Gr=>-new Date(Gr.getFullYear(),Gr.getMonth(),0).getDate(),[Nr]:Gr=>new Date(Gr.getFullYear(),Gr.getMonth()+1,0).getDate(),offset:(Gr,qr)=>Gr.setDate(Gr.getDate()+qr)}},Ur=_n.value.toDate();for(;Math.abs(_n.value.diff(Ur,"year",!0))<1;){const Gr=Hr[Xn.value];if(!Gr)return;if(Gr.offset(Ur,isFunction$5(Gr[Er])?Gr[Er](Ur):($r=Gr[Er])!=null?$r:0),Fe&&Fe(Ur))break;const qr=dayjs(Ur).locale($e.value);_n.value=qr,z("pick",qr,!0);break}},Mr=Er=>{z("panel-change",_n.value.toDate(),Er,Nn.value)};return watch(()=>zn.value,Er=>{if(["month","year"].includes(Er)){Nn.value=Er;return}Nn.value="date"},{immediate:!0}),watch(()=>Nn.value,()=>{Ie==null||Ie.updatePopper()}),watch(()=>hn.value,Er=>{Er&&(_n.value=hr())},{immediate:!0}),watch(()=>oe.parsedValue,Er=>{if(Er){if(zn.value==="dates"||Array.isArray(Er))return;_n.value=Er}else _n.value=hr()},{immediate:!0}),z("set-picker-option",["isValidValue",dr]),z("set-picker-option",["formatToString",sr]),z("set-picker-option",["parseUserInput",cr]),z("set-picker-option",["handleFocusPicker",Ar]),(Er,$r)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(le).b(),{"has-sidebar":Er.$slots.sidebar||unref(Un),"has-time":unref(ir)}])},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("body-wrapper"))},[renderSlot(Er.$slots,"sidebar",{class:normalizeClass(unref(ie).e("sidebar"))}),unref(Un)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ne),(ur,er)=>(openBlock(),createElementBlock("button",{key:er,type:"button",class:normalizeClass(unref(ie).e("shortcut")),onClick:or=>Bn(ur)},toDisplayString$1(ur.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("body"))},[unref(ir)?(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(Ce)("el.datepicker.selectDate"),"model-value":unref(Zn),size:"small","validate-event":!1,onInput:$r[0]||($r[0]=ur=>Tn.value=ur),onChange:Pr},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(Ce)("el.datepicker.selectTime"),"model-value":unref(Gn),size:"small","validate-event":!1,onFocus:mr,onInput:$r[1]||($r[1]=ur=>xn.value=ur),onChange:gr},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:rr.value,format:unref(tr),"time-arrow-control":unref(Lt),"parsed-value":_n.value,onPick:xr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),Sr]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(le).e("header"),(Nn.value==="year"||Nn.value==="month")&&unref(le).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(le).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(ie).e("icon-btn")]),onClick:$r[2]||($r[2]=ur=>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(Ce)("el.datepicker.prevMonth"),class:normalizeClass([unref(ie).e("icon-btn"),"arrow-left"]),onClick:$r[3]||($r[3]=ur=>Fn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$f),[[vShow,Nn.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(le).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:$r[4]||($r[4]=withKeys(ur=>_r("year"),["enter"])),onClick:$r[5]||($r[5]=ur=>_r("year"))},toDisplayString$1(unref(Vn)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(le).e("header-label"),{active:Nn.value==="month"}]),onKeydown:$r[6]||($r[6]=withKeys(ur=>_r("month"),["enter"])),onClick:$r[7]||($r[7]=ur=>_r("month"))},toDisplayString$1(unref(Ce)(`el.datepicker.month${unref(En)+1}`)),35),[[vShow,Nn.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(le).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.nextMonth"),class:normalizeClass([unref(ie).e("icon-btn"),"arrow-right"]),onClick:$r[8]||($r[8]=ur=>Fn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$a),[[vShow,Nn.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.nextYear"),class:normalizeClass([unref(ie).e("icon-btn"),"d-arrow-right"]),onClick:$r[9]||($r[9]=ur=>Dn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$7)],2)],2),[[vShow,Nn.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content")),onKeydown:Dr},[Nn.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:vn,"selection-mode":unref(zn),date:_n.value,"parsed-value":Er.parsedValue,"disabled-date":unref(Fe),"cell-class-name":unref(ze),onPick:Mn},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),Nn.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:vn,date:_n.value,"disabled-date":unref(Fe),"parsed-value":Er.parsedValue,onPick:lr},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),Nn.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:vn,date:_n.value,"parsed-value":Er.parsedValue,"disabled-date":unref(Fe),onPick:Jn},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")),onClick:Wn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ce)("el.datepicker.now")),1)]),_:1},8,["class"]),[[vShow,unref(zn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ie).e("link-btn")),onClick:Yn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ce)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[vShow,unref(qn)&&Nn.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=$=>{const{emit:z}=getCurrentInstance(),oe=useAttrs$1(),ae=useSlots();return le=>{const pe=isFunction$5(le.value)?le.value():le.value;if(pe){z("pick",[dayjs(pe[0]).locale($.value),dayjs(pe[1]).locale($.value)]);return}le.onClick&&le.onClick({attrs:oe,slots:ae,emit:z})}},useRangePicker=($,{defaultValue:z,leftDate:oe,rightDate:ae,unit:ie,onParsedValueChanged:le})=>{const{emit:pe}=getCurrentInstance(),{pickerNs:_e}=inject(ROOT_PICKER_INJECTION_KEY),Ce=useNamespace("date-range-picker"),{t:$e,lang:xe}=useLocale(),Ie=useShortcut(xe),Ne=ref(),Fe=ref(),ze=ref({endDate:null,selecting:!1}),At=_n=>{ze.value=_n},Lt=(_n=!1)=>{const bn=unref(Ne),Cn=unref(Fe);isValidRange([bn,Cn])&&pe("pick",[bn,Cn],_n)},hn=_n=>{ze.value.selecting=_n,_n||(ze.value.endDate=null)},vn=()=>{const[_n,bn]=getDefaultValue(unref(z),{lang:unref(xe),unit:ie,unlinkPanels:$.unlinkPanels});Ne.value=void 0,Fe.value=void 0,oe.value=_n,ae.value=bn};return watch(z,_n=>{_n&&vn()},{immediate:!0}),watch(()=>$.parsedValue,_n=>{if(isArray$c(_n)&&_n.length===2){const[bn,Cn]=_n;Ne.value=bn,oe.value=bn,Fe.value=Cn,le(unref(Ne),unref(Fe))}else vn()},{immediate:!0}),{minDate:Ne,maxDate:Fe,rangeState:ze,lang:xe,ppNs:_e,drpNs:Ce,handleChangeRange:At,handleRangeConfirm:Lt,handleShortcutClick:Ie,onSelect:hn,t:$e}},_hoisted_1$G=["onClick"],_hoisted_2$r=["disabled"],_hoisted_3$e=["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($,{emit:z}){const oe=$,ae=inject("EP_PICKER_BASE"),{disabledDate:ie,cellClassName:le,format:pe,defaultTime:_e,arrowControl:Ce,clearable:$e}=ae.props,xe=toRef$1(ae.props,"shortcuts"),Ie=toRef$1(ae.props,"defaultValue"),{lang:Ne}=useLocale(),Fe=ref(dayjs().locale(Ne.value)),ze=ref(dayjs().locale(Ne.value).add(1,unit$1)),{minDate:At,maxDate:Lt,rangeState:hn,ppNs:vn,drpNs:_n,handleChangeRange:bn,handleRangeConfirm:Cn,handleShortcutClick:En,onSelect:$n,t:wn}=useRangePicker(oe,{defaultValue:Ie,leftDate:Fe,rightDate:ze,unit:unit$1,onParsedValueChanged:er}),Tn=ref({min:null,max:null}),xn=ref({min:null,max:null}),kn=computed(()=>`${Fe.value.year()} ${wn("el.datepicker.year")} ${wn(`el.datepicker.month${Fe.value.month()+1}`)}`),An=computed(()=>`${ze.value.year()} ${wn("el.datepicker.year")} ${wn(`el.datepicker.month${ze.value.month()+1}`)}`),On=computed(()=>Fe.value.year()),Mn=computed(()=>Fe.value.month()),Fn=computed(()=>ze.value.year()),Dn=computed(()=>ze.value.month()),Nn=computed(()=>!!xe.value.length),Vn=computed(()=>Tn.value.min!==null?Tn.value.min:At.value?At.value.format(Jn.value):""),Bn=computed(()=>Tn.value.max!==null?Tn.value.max:Lt.value||At.value?(Lt.value||At.value).format(Jn.value):""),zn=computed(()=>xn.value.min!==null?xn.value.min:At.value?At.value.format(Un.value):""),Xn=computed(()=>xn.value.max!==null?xn.value.max:Lt.value||At.value?(Lt.value||At.value).format(Un.value):""),Un=computed(()=>extractTimeFormat(pe)),Jn=computed(()=>extractDateFormat(pe)),lr=()=>{Fe.value=Fe.value.subtract(1,"year"),oe.unlinkPanels||(ze.value=Fe.value.add(1,"month")),Gn("year")},_r=()=>{Fe.value=Fe.value.subtract(1,"month"),oe.unlinkPanels||(ze.value=Fe.value.add(1,"month")),Gn("month")},ir=()=>{oe.unlinkPanels?ze.value=ze.value.add(1,"year"):(Fe.value=Fe.value.add(1,"year"),ze.value=Fe.value.add(1,"month")),Gn("year")},qn=()=>{oe.unlinkPanels?ze.value=ze.value.add(1,"month"):(Fe.value=Fe.value.add(1,"month"),ze.value=Fe.value.add(1,"month")),Gn("month")},Yn=()=>{Fe.value=Fe.value.add(1,"year"),Gn("year")},Wn=()=>{Fe.value=Fe.value.add(1,"month"),Gn("month")},tr=()=>{ze.value=ze.value.subtract(1,"year"),Gn("year")},pr=()=>{ze.value=ze.value.subtract(1,"month"),Gn("month")},Gn=or=>{z("panel-change",[Fe.value.toDate(),ze.value.toDate()],or)},Zn=computed(()=>{const or=(Mn.value+1)%12,Tr=Mn.value+1>=12?1:0;return oe.unlinkPanels&&new Date(On.value+Tr,or)<new Date(Fn.value,Dn.value)}),rr=computed(()=>oe.unlinkPanels&&Fn.value*12+Dn.value-(On.value*12+Mn.value+1)>=12),mr=computed(()=>!(At.value&&Lt.value&&!hn.value.selecting&&isValidRange([At.value,Lt.value]))),Sr=computed(()=>oe.type==="datetime"||oe.type==="datetimerange"),ar=(or,Tr)=>{if(or)return _e?dayjs(_e[Tr]||_e).locale(Ne.value).year(or.year()).month(or.month()).date(or.date()):or},xr=(or,Tr=!0)=>{const Or=or.minDate,zr=or.maxDate,Cr=ar(Or,0),Nr=ar(zr,1);Lt.value===Nr&&At.value===Cr||(z("calendar-change",[Or.toDate(),zr&&zr.toDate()]),Lt.value=Nr,At.value=Cr,!(!Tr||Sr.value)&&Cn())},gr=ref(!1),Pr=ref(!1),dr=()=>{gr.value=!1},sr=()=>{Pr.value=!1},cr=(or,Tr)=>{Tn.value[Tr]=or;const Or=dayjs(or,Jn.value).locale(Ne.value);if(Or.isValid()){if(ie&&ie(Or.toDate()))return;Tr==="min"?(Fe.value=Or,At.value=(At.value||Fe.value).year(Or.year()).month(Or.month()).date(Or.date()),oe.unlinkPanels||(ze.value=Or.add(1,"month"),Lt.value=At.value.add(1,"month"))):(ze.value=Or,Lt.value=(Lt.value||ze.value).year(Or.year()).month(Or.month()).date(Or.date()),oe.unlinkPanels||(Fe.value=Or.subtract(1,"month"),At.value=Lt.value.subtract(1,"month")))}},hr=(or,Tr)=>{Tn.value[Tr]=null},Ar=(or,Tr)=>{xn.value[Tr]=or;const Or=dayjs(or,Un.value).locale(Ne.value);Or.isValid()&&(Tr==="min"?(gr.value=!0,At.value=(At.value||Fe.value).hour(Or.hour()).minute(Or.minute()).second(Or.second()),(!Lt.value||Lt.value.isBefore(At.value))&&(Lt.value=At.value)):(Pr.value=!0,Lt.value=(Lt.value||ze.value).hour(Or.hour()).minute(Or.minute()).second(Or.second()),ze.value=Lt.value,Lt.value&&Lt.value.isBefore(At.value)&&(At.value=Lt.value)))},Dr=(or,Tr)=>{xn.value[Tr]=null,Tr==="min"?(Fe.value=At.value,gr.value=!1):(ze.value=Lt.value,Pr.value=!1)},Lr=(or,Tr,Or)=>{xn.value.min||(or&&(Fe.value=or,At.value=(At.value||Fe.value).hour(or.hour()).minute(or.minute()).second(or.second())),Or||(gr.value=Tr),(!Lt.value||Lt.value.isBefore(At.value))&&(Lt.value=At.value,ze.value=or))},Mr=(or,Tr,Or)=>{xn.value.max||(or&&(ze.value=or,Lt.value=(Lt.value||ze.value).hour(or.hour()).minute(or.minute()).second(or.second())),Or||(Pr.value=Tr),Lt.value&&Lt.value.isBefore(At.value)&&(At.value=Lt.value))},Er=()=>{Fe.value=getDefaultValue(unref(Ie),{lang:unref(Ne),unit:"month",unlinkPanels:oe.unlinkPanels})[0],ze.value=Fe.value.add(1,"month"),z("pick",null)},$r=or=>isArray$c(or)?or.map(Tr=>Tr.format(pe)):or.format(pe),ur=or=>isArray$c(or)?or.map(Tr=>dayjs(Tr,pe).locale(Ne.value)):dayjs(or,pe).locale(Ne.value);function er(or,Tr){if(oe.unlinkPanels&&Tr){const Or=(or==null?void 0:or.year())||0,zr=(or==null?void 0:or.month())||0,Cr=Tr.year(),Nr=Tr.month();ze.value=Or===Cr&&zr===Nr?Tr.add(1,unit$1):Tr}else ze.value=Fe.value.add(1,unit$1),Tr&&(ze.value=ze.value.hour(Tr.hour()).minute(Tr.minute()).second(Tr.second()))}return z("set-picker-option",["isValidValue",isValidRange]),z("set-picker-option",["parseUserInput",ur]),z("set-picker-option",["formatToString",$r]),z("set-picker-option",["handleClear",Er]),(or,Tr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(vn).b(),unref(_n).b(),{"has-sidebar":or.$slots.sidebar||unref(Nn),"has-time":unref(Sr)}])},[createBaseVNode("div",{class:normalizeClass(unref(vn).e("body-wrapper"))},[renderSlot(or.$slots,"sidebar",{class:normalizeClass(unref(vn).e("sidebar"))}),unref(Nn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(vn).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),(Or,zr)=>(openBlock(),createElementBlock("button",{key:zr,type:"button",class:normalizeClass(unref(vn).e("shortcut")),onClick:Cr=>unref(En)(Or)},toDisplayString$1(Or.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(vn).e("body"))},[unref(Sr)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(_n).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(_n).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(hn).selecting,placeholder:unref(wn)("el.datepicker.startDate"),class:normalizeClass(unref(_n).e("editor")),"model-value":unref(Vn),"validate-event":!1,onInput:Tr[0]||(Tr[0]=Or=>cr(Or,"min")),onChange:Tr[1]||(Tr[1]=Or=>hr(Or,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(_n).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(_n).e("editor")),disabled:unref(hn).selecting,placeholder:unref(wn)("el.datepicker.startTime"),"model-value":unref(zn),"validate-event":!1,onFocus:Tr[2]||(Tr[2]=Or=>gr.value=!0),onInput:Tr[3]||(Tr[3]=Or=>Ar(Or,"min")),onChange:Tr[4]||(Tr[4]=Or=>Dr(Or,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:gr.value,format:unref(Un),"datetime-role":"start","time-arrow-control":unref(Ce),"parsed-value":Fe.value,onPick:Lr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),dr]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(_n).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(_n).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(_n).e("editor")),disabled:unref(hn).selecting,placeholder:unref(wn)("el.datepicker.endDate"),"model-value":unref(Bn),readonly:!unref(At),"validate-event":!1,onInput:Tr[5]||(Tr[5]=Or=>cr(Or,"max")),onChange:Tr[6]||(Tr[6]=Or=>hr(Or,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(_n).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(_n).e("editor")),disabled:unref(hn).selecting,placeholder:unref(wn)("el.datepicker.endTime"),"model-value":unref(Xn),readonly:!unref(At),"validate-event":!1,onFocus:Tr[7]||(Tr[7]=Or=>unref(At)&&(Pr.value=!0)),onInput:Tr[8]||(Tr[8]=Or=>Ar(Or,"max")),onChange:Tr[9]||(Tr[9]=Or=>Dr(Or,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:Pr.value,format:unref(Un),"time-arrow-control":unref(Ce),"parsed-value":ze.value,onPick:Mr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),sr]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(vn).e("content"),unref(_n).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(_n).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(vn).e("icon-btn"),"d-arrow-left"]),onClick:lr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(vn).e("icon-btn"),"arrow-left"]),onClick:_r},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),or.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(rr),class:normalizeClass([[unref(vn).e("icon-btn"),{"is-disabled":!unref(rr)}],"d-arrow-right"]),onClick:Yn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$r)):createCommentVNode("v-if",!0),or.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Zn),class:normalizeClass([[unref(vn).e("icon-btn"),{"is-disabled":!unref(Zn)}],"arrow-right"]),onClick:Wn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_3$e)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(kn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Fe.value,"min-date":unref(At),"max-date":unref(Lt),"range-state":unref(hn),"disabled-date":unref(ie),"cell-class-name":unref(le),onChangerange:unref(bn),onPick:xr,onSelect:unref($n)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(vn).e("content"),unref(_n).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(_n).e("header"))},[or.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(rr),class:normalizeClass([[unref(vn).e("icon-btn"),{"is-disabled":!unref(rr)}],"d-arrow-left"]),onClick:tr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$9)):createCommentVNode("v-if",!0),or.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Zn),class:normalizeClass([[unref(vn).e("icon-btn"),{"is-disabled":!unref(Zn)}],"arrow-left"]),onClick:pr},[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(vn).e("icon-btn"),"d-arrow-right"]),onClick:ir},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(vn).e("icon-btn"),"arrow-right"]),onClick:qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(An)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:ze.value,"min-date":unref(At),"max-date":unref(Lt),"range-state":unref(hn),"disabled-date":unref(ie),"cell-class-name":unref(le),onChangerange:unref(bn),onPick:xr,onSelect:unref($n)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(Sr)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(vn).e("footer"))},[unref($e)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(vn).e("link-btn")),onClick:Er},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(wn)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(vn).e("link-btn")),disabled:unref(mr),onClick:Tr[10]||(Tr[10]=Or=>unref(Cn)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(wn)("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:$,leftDate:z,rightDate:oe})=>{const{t:ae}=useLocale(),ie=()=>{z.value=z.value.subtract(1,"year"),$.value||(oe.value=oe.value.subtract(1,"year"))},le=()=>{$.value||(z.value=z.value.add(1,"year")),oe.value=oe.value.add(1,"year")},pe=()=>{z.value=z.value.add(1,"year")},_e=()=>{oe.value=oe.value.subtract(1,"year")},Ce=computed(()=>`${z.value.year()} ${ae("el.datepicker.year")}`),$e=computed(()=>`${oe.value.year()} ${ae("el.datepicker.year")}`),xe=computed(()=>z.value.year()),Ie=computed(()=>oe.value.year()===z.value.year()?z.value.year()+1:oe.value.year());return{leftPrevYear:ie,rightNextYear:le,leftNextYear:pe,rightPrevYear:_e,leftLabel:Ce,rightLabel:$e,leftYear:xe,rightYear:Ie}},_hoisted_1$F=["onClick"],_hoisted_2$q=["disabled"],_hoisted_3$d=["disabled"],unit="year",__default__$R=defineComponent({name:"DatePickerMonthRange"}),_sfc_main$1i=defineComponent({...__default__$R,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup($,{emit:z}){const oe=$,{lang:ae}=useLocale(),ie=inject("EP_PICKER_BASE"),{shortcuts:le,disabledDate:pe,format:_e}=ie.props,Ce=toRef$1(ie.props,"defaultValue"),$e=ref(dayjs().locale(ae.value)),xe=ref(dayjs().locale(ae.value).add(1,unit)),{minDate:Ie,maxDate:Ne,rangeState:Fe,ppNs:ze,drpNs:At,handleChangeRange:Lt,handleRangeConfirm:hn,handleShortcutClick:vn,onSelect:_n}=useRangePicker(oe,{defaultValue:Ce,leftDate:$e,rightDate:xe,unit,onParsedValueChanged:Dn}),bn=computed(()=>!!le.length),{leftPrevYear:Cn,rightNextYear:En,leftNextYear:$n,rightPrevYear:wn,leftLabel:Tn,rightLabel:xn,leftYear:kn,rightYear:An}=useMonthRangeHeader({unlinkPanels:toRef$1(oe,"unlinkPanels"),leftDate:$e,rightDate:xe}),On=computed(()=>oe.unlinkPanels&&An.value>kn.value+1),Mn=(Nn,Vn=!0)=>{const Bn=Nn.minDate,zn=Nn.maxDate;Ne.value===zn&&Ie.value===Bn||(Ne.value=zn,Ie.value=Bn,Vn&&hn())},Fn=Nn=>Nn.map(Vn=>Vn.format(_e));function Dn(Nn,Vn){if(oe.unlinkPanels&&Vn){const Bn=(Nn==null?void 0:Nn.year())||0,zn=Vn.year();xe.value=Bn===zn?Vn.add(1,unit):Vn}else xe.value=$e.value.add(1,unit)}return z("set-picker-option",["formatToString",Fn]),(Nn,Vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ze).b(),unref(At).b(),{"has-sidebar":!!Nn.$slots.sidebar||unref(bn)}])},[createBaseVNode("div",{class:normalizeClass(unref(ze).e("body-wrapper"))},[renderSlot(Nn.$slots,"sidebar",{class:normalizeClass(unref(ze).e("sidebar"))}),unref(bn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ze).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),(Bn,zn)=>(openBlock(),createElementBlock("button",{key:zn,type:"button",class:normalizeClass(unref(ze).e("shortcut")),onClick:Xn=>unref(vn)(Bn)},toDisplayString$1(Bn.text),11,_hoisted_1$F))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ze).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(ze).e("content"),unref(At).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(ze).e("icon-btn"),"d-arrow-left"]),onClick:Vn[0]||(Vn[0]=(...Bn)=>unref(Cn)&&unref(Cn)(...Bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),Nn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(On),class:normalizeClass([[unref(ze).e("icon-btn"),{[unref(ze).is("disabled")]:!unref(On)}],"d-arrow-right"]),onClick:Vn[1]||(Vn[1]=(...Bn)=>unref($n)&&unref($n)(...Bn))},[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(Tn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:$e.value,"min-date":unref(Ie),"max-date":unref(Ne),"range-state":unref(Fe),"disabled-date":unref(pe),onChangerange:unref(Lt),onPick:Mn,onSelect:unref(_n)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(ze).e("content"),unref(At).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("header"))},[Nn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(On),class:normalizeClass([[unref(ze).e("icon-btn"),{"is-disabled":!unref(On)}],"d-arrow-left"]),onClick:Vn[2]||(Vn[2]=(...Bn)=>unref(wn)&&unref(wn)(...Bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$d)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ze).e("icon-btn"),"d-arrow-right"]),onClick:Vn[3]||(Vn[3]=(...Bn)=>unref(En)&&unref(En)(...Bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(xn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:xe.value,"min-date":unref(Ie),"max-date":unref(Ne),"range-state":unref(Fe),"disabled-date":unref(pe),onChangerange:unref(Lt),onPick:Mn,onSelect:unref(_n)},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($){switch($){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($,{expose:z,emit:oe,slots:ae}){const ie=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef$1($,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:ae,pickerNs:ie});const le=ref();z({focus:(Ce=!0)=>{var $e;($e=le.value)==null||$e.focus(Ce)},handleOpen:()=>{var Ce;(Ce=le.value)==null||Ce.handleOpen()},handleClose:()=>{var Ce;(Ce=le.value)==null||Ce.handleClose()}});const _e=Ce=>{oe("update:modelValue",Ce)};return()=>{var Ce;const $e=(Ce=$.format)!=null?Ce:DEFAULT_FORMATS_DATEPICKER[$.type]||DEFAULT_FORMATS_DATE,xe=getPanel($.type);return createVNode(CommonPicker,mergeProps($,{format:$e,type:$.type,ref:le,"onUpdate:modelValue":_e}),{default:Ie=>createVNode(xe,Ie,null),"range-separator":ae["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=$=>{$.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 $,z,oe,ae,ie,le;const pe=getNormalizedProps(this.cell),{border:_e,direction:Ce}=this.descriptions,$e=Ce==="vertical",xe=((oe=(z=($=this.cell)==null?void 0:$.children)==null?void 0:z.label)==null?void 0:oe.call(z))||pe.label,Ie=(le=(ie=(ae=this.cell)==null?void 0:ae.children)==null?void 0:ie.default)==null?void 0:le.call(ie),Ne=pe.span,Fe=pe.align?`is-${pe.align}`:"",ze=pe.labelAlign?`is-${pe.labelAlign}`:Fe,At=pe.className,Lt=pe.labelClassName,hn={width:addUnit(pe.width),minWidth:addUnit(pe.minWidth)},vn=useNamespace("descriptions");switch(this.type){case"label":return h$3(this.tag,{style:hn,class:[vn.e("cell"),vn.e("label"),vn.is("bordered-label",_e),vn.is("vertical-label",$e),ze,Lt],colSpan:$e?Ne:1},xe);case"content":return h$3(this.tag,{style:hn,class:[vn.e("cell"),vn.e("content"),vn.is("bordered-content",_e),vn.is("vertical-content",$e),Fe,At],colSpan:$e?Ne:Ne*2-1},Ie);default:return h$3("td",{style:hn,class:[vn.e("cell"),Fe],colSpan:Ne},[isNil(xe)?void 0:h$3("span",{class:[vn.e("label"),Lt]},xe),h$3("span",{class:[vn.e("content"),At]},Ie)])}}});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($){const z=inject(descriptionsKey,{});return(oe,ae)=>unref(z).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.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(oe.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(oe.row,(ie,le)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${le}`},[unref(z).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($){const z=$,oe=useNamespace("descriptions"),ae=useFormSize(),ie=useSlots();provide(descriptionsKey,z);const le=computed(()=>[oe.b(),oe.m(ae.value)]),pe=(Ce,$e,xe,Ie=!1)=>(Ce.props||(Ce.props={}),$e>xe&&(Ce.props.span=xe),Ie&&(Ce.props.span=$e),Ce),_e=()=>{var Ce;const $e=flattedChildren((Ce=ie.default)==null?void 0:Ce.call(ie)).filter(ze=>{var At;return((At=ze==null?void 0:ze.type)==null?void 0:At.name)==="ElDescriptionsItem"}),xe=[];let Ie=[],Ne=z.column,Fe=0;return $e.forEach((ze,At)=>{var Lt;const hn=((Lt=ze.props)==null?void 0:Lt.span)||1;if(At<$e.length-1&&(Fe+=hn>Ne?Ne:hn),At===$e.length-1){const vn=z.column-Fe%z.column;Ie.push(pe(ze,vn,Ne,!0)),xe.push(Ie);return}hn<Ne?(Ne-=hn,Ie.push(ze)):(Ie.push(pe(ze,hn,Ne)),xe.push(Ie),Ne=z.column,Ie=[])}),xe};return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[Ce.title||Ce.extra||Ce.$slots.title||Ce.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("title"))},[renderSlot(Ce.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ce.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(oe).e("extra"))},[renderSlot(Ce.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1(Ce.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(oe).e("table"),unref(oe).is("bordered",Ce.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_e(),(xe,Ie)=>(openBlock(),createBlock(ElDescriptionsRow,{key:Ie,row:xe},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:$=>$ instanceof MouseEvent},BLOCK="overlay";var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup($,{slots:z,emit:oe}){const ae=useNamespace(BLOCK),ie=Ce=>{oe("click",Ce)},{onClick:le,onMousedown:pe,onMouseup:_e}=useSameTarget($.customMaskEvent?void 0:ie);return()=>$.mask?createVNode("div",{class:[ae.b(),$.overlayClass],style:{zIndex:$.zIndex},onClick:le,onMousedown:pe,onMouseup:_e},[renderSlot(z,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$3("div",{class:$.overlayClass,style:{zIndex:$.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(z,"default")])}});const ElOverlay=Overlay$1,dialogInjectionKey=Symbol("dialogInjectionKey"),dialogContentProps=buildProps({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:iconPropType},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dialogContentEmits={close:()=>!0},_hoisted_1$D=["aria-label"],_hoisted_2$p=["id"],__default__$O=defineComponent({name:"ElDialogContent"}),_sfc_main$1f=defineComponent({...__default__$O,props:dialogContentProps,emits:dialogContentEmits,setup($){const z=$,{t:oe}=useLocale(),{Close:ae}=CloseComponents,{dialogRef:ie,headerRef:le,bodyId:pe,ns:_e,style:Ce}=inject(dialogInjectionKey),{focusTrapRef:$e}=inject(FOCUS_TRAP_INJECTION_KEY),xe=composeRefs($e,ie),Ie=computed(()=>z.draggable);return useDraggable(ie,le,Ie),(Ne,Fe)=>(openBlock(),createElementBlock("div",{ref:unref(xe),class:normalizeClass([unref(_e).b(),unref(_e).is("fullscreen",Ne.fullscreen),unref(_e).is("draggable",unref(Ie)),unref(_e).is("align-center",Ne.alignCenter),{[unref(_e).m("center")]:Ne.center},Ne.customClass]),style:normalizeStyle$1(unref(Ce)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:le,class:normalizeClass(unref(_e).e("header"))},[renderSlot(Ne.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(_e).e("title"))},toDisplayString$1(Ne.title),3)]),Ne.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(oe)("el.dialog.close"),class:normalizeClass(unref(_e).e("headerbtn")),type:"button",onClick:Fe[0]||(Fe[0]=ze=>Ne.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(_e).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ne.closeIcon||unref(ae))))]),_:1},8,["class"])],10,_hoisted_1$D)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(pe),class:normalizeClass(unref(_e).e("body"))},[renderSlot(Ne.$slots,"default")],10,_hoisted_2$p),Ne.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(_e).e("footer"))},[renderSlot(Ne.$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:{type:Boolean,default:!1},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:$=>isBoolean$3($),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=($,z)=>{const ae=getCurrentInstance().emit,{nextZIndex:ie}=useZIndex();let le="";const pe=useId(),_e=useId(),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref($.zIndex||ie());let Ne,Fe;const ze=useGlobalConfig("namespace",defaultNamespace),At=computed(()=>{const Mn={},Fn=`--${ze.value}-dialog`;return $.fullscreen||($.top&&(Mn[`${Fn}-margin-top`]=$.top),$.width&&(Mn[`${Fn}-width`]=addUnit($.width))),Mn}),Lt=computed(()=>$.alignCenter?{display:"flex"}:{});function hn(){ae("opened")}function vn(){ae("closed"),ae(UPDATE_MODEL_EVENT,!1),$.destroyOnClose&&(xe.value=!1)}function _n(){ae("close")}function bn(){Fe==null||Fe(),Ne==null||Ne(),$.openDelay&&$.openDelay>0?{stop:Ne}=useTimeoutFn$1(()=>wn(),$.openDelay):wn()}function Cn(){Ne==null||Ne(),Fe==null||Fe(),$.closeDelay&&$.closeDelay>0?{stop:Fe}=useTimeoutFn$1(()=>Tn(),$.closeDelay):Tn()}function En(){function Mn(Fn){Fn||($e.value=!0,Ce.value=!1)}$.beforeClose?$.beforeClose(Mn):Cn()}function $n(){$.closeOnClickModal&&En()}function wn(){isClient$2&&(Ce.value=!0)}function Tn(){Ce.value=!1}function xn(){ae("openAutoFocus")}function kn(){ae("closeAutoFocus")}function An(Mn){var Fn;((Fn=Mn.detail)==null?void 0:Fn.focusReason)==="pointer"&&Mn.preventDefault()}$.lockScroll&&useLockscreen(Ce);function On(){$.closeOnPressEscape&&En()}return watch(()=>$.modelValue,Mn=>{Mn?($e.value=!1,bn(),xe.value=!0,Ie.value=$.zIndex?Ie.value++:ie(),nextTick(()=>{ae("open"),z.value&&(z.value.scrollTop=0)})):Ce.value&&Cn()}),watch(()=>$.fullscreen,Mn=>{z.value&&(Mn?(le=z.value.style.transform,z.value.style.transform=""):z.value.style.transform=le)}),onMounted(()=>{$.modelValue&&(Ce.value=!0,xe.value=!0,bn())}),{afterEnter:hn,afterLeave:vn,beforeLeave:_n,handleClose:En,onModalClick:$n,close:Cn,doClose:Tn,onOpenAutoFocus:xn,onCloseAutoFocus:kn,onCloseRequested:On,onFocusoutPrevented:An,titleId:pe,bodyId:_e,closed:$e,style:At,overlayDialogStyle:Lt,rendered:xe,visible:Ce,zIndex:Ie}},_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($,{expose:z}){const oe=$,ae=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(()=>!!ae.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(()=>!!oe.customClass));const ie=useNamespace("dialog"),le=ref(),pe=ref(),_e=ref(),{visible:Ce,titleId:$e,bodyId:xe,style:Ie,overlayDialogStyle:Ne,rendered:Fe,zIndex:ze,afterEnter:At,afterLeave:Lt,beforeLeave:hn,handleClose:vn,onModalClick:_n,onOpenAutoFocus:bn,onCloseAutoFocus:Cn,onCloseRequested:En,onFocusoutPrevented:$n}=useDialog(oe,le);provide(dialogInjectionKey,{dialogRef:le,headerRef:pe,bodyId:xe,ns:ie,rendered:Fe,style:Ie});const wn=useSameTarget(_n),Tn=computed(()=>oe.draggable&&!oe.fullscreen);return z({visible:Ce,dialogContentRef:_e}),(xn,kn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!xn.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(At),onAfterLeave:unref(Lt),onBeforeLeave:unref(hn),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:xn.modal,"overlay-class":xn.modalClass,"z-index":unref(ze)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":xn.title||void 0,"aria-labelledby":xn.title?void 0:unref($e),"aria-describedby":unref(xe),class:normalizeClass(`${unref(ie).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref(Ne)),onClick:kn[0]||(kn[0]=(...An)=>unref(wn).onClick&&unref(wn).onClick(...An)),onMousedown:kn[1]||(kn[1]=(...An)=>unref(wn).onMousedown&&unref(wn).onMousedown(...An)),onMouseup:kn[2]||(kn[2]=(...An)=>unref(wn).onMouseup&&unref(wn).onMouseup(...An))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref(Ce),"focus-start-el":"container",onFocusAfterTrapped:unref(bn),onFocusAfterReleased:unref(Cn),onFocusoutPrevented:unref($n),onReleaseRequested:unref(En)},{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:_e},xn.$attrs,{"custom-class":xn.customClass,center:xn.center,"align-center":xn.alignCenter,"close-icon":xn.closeIcon,draggable:unref(Tn),fullscreen:xn.fullscreen,"show-close":xn.showClose,title:xn.title,onClose:unref(vn)}),createSlots({header:withCtx(()=>[xn.$slots.title?renderSlot(xn.$slots,"title",{key:1}):renderSlot(xn.$slots,"header",{key:0,close:unref(vn),titleId:unref($e),titleClass:unref(ie).e("title")})]),default:withCtx(()=>[renderSlot(xn.$slots,"default")]),_:2},[xn.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(xn.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","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(Ce)]])]),_: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($){const z=$,oe=useNamespace("divider"),ae=computed(()=>oe.cssVar({"border-style":z.borderStyle}));return(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).m(ie.direction)]),style:normalizeStyle$1(unref(ae)),role:"separator"},[ie.$slots.default&&ie.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("text"),unref(oe).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}}),drawerEmits=dialogEmits,_sfc_main$1c=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},inheritAttrs:!1,props:drawerProps,emits:drawerEmits,setup($,{slots:z}){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(()=>!!z.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(()=>!!$.customClass));const oe=ref(),ae=ref(),ie=useNamespace("drawer"),{t:le}=useLocale(),pe=computed(()=>$.direction==="rtl"||$.direction==="ltr"),_e=computed(()=>addUnit($.size));return{...useDialog($,oe),drawerRef:oe,focusStartRef:ae,isHorizontal:pe,drawerSize:_e,ns:ie,t:le}}}),_hoisted_1$B=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$o=["id"],_hoisted_3$c=["aria-label"],_hoisted_4$8=["id"];function _sfc_render$p($,z,oe,ae,ie,le){const pe=resolveComponent("close"),_e=resolveComponent("el-icon"),Ce=resolveComponent("el-focus-trap"),$e=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!$.appendToBody},[createVNode(Transition,{name:$.ns.b("fade"),onAfterEnter:$.afterEnter,onAfterLeave:$.afterLeave,onBeforeLeave:$.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode($e,{mask:$.modal,"overlay-class":$.modalClass,"z-index":$.zIndex,onClick:$.onModalClick},{default:withCtx(()=>[createVNode(Ce,{loop:"",trapped:$.visible,"focus-trap-el":$.drawerRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":$.title||void 0,"aria-labelledby":$.title?void 0:$.titleId,"aria-describedby":$.bodyId},$.$attrs,{class:[$.ns.b(),$.direction,$.visible&&"open",$.customClass],style:$.isHorizontal?"width: "+$.drawerSize:"height: "+$.drawerSize,role:"dialog",onClick:z[1]||(z[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass($.ns.e("sr-focus")),tabindex:"-1"},null,2),$.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass($.ns.e("header"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot($.$slots,"header",{key:0,close:$.handleClose,titleId:$.titleId,titleClass:$.ns.e("title")},()=>[$.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:$.titleId,role:"heading",class:normalizeClass($.ns.e("title"))},toDisplayString$1($.title),11,_hoisted_2$o))]),$.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":$.t("el.drawer.close"),class:normalizeClass($.ns.e("close-btn")),type:"button",onClick:z[0]||(z[0]=(...xe)=>$.handleClose&&$.handleClose(...xe))},[createVNode(_e,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"])],10,_hoisted_3$c)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),$.rendered?(openBlock(),createElementBlock("div",{key:1,id:$.bodyId,class:normalizeClass($.ns.e("body"))},[renderSlot($.$slots,"default")],10,_hoisted_4$8)):createCommentVNode("v-if",!0),$.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("footer"))},[renderSlot($.$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,$.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($,z,oe,ae,ie,le){return renderSlot($.$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($,z,oe,ae,ie,le){return renderSlot($.$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=$=>{const z=`El${$}Collection`,oe=`${z}Item`,ae=Symbol(z),ie=Symbol(oe),le={...Collection,name:z,setup(){const _e=ref(null),Ce=new Map;provide(ae,{itemMap:Ce,getItems:()=>{const xe=unref(_e);if(!xe)return[];const Ie=Array.from(xe.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...Ce.values()].sort((Fe,ze)=>Ie.indexOf(Fe.ref)-Ie.indexOf(ze.ref))},collectionRef:_e})}},pe={...CollectionItem,name:oe,setup(_e,{attrs:Ce}){const $e=ref(null),xe=inject(ae,void 0);provide(ie,{collectionItemRef:$e}),onMounted(()=>{const Ie=unref($e);Ie&&xe.itemMap.set(Ie,{ref:Ie,...Ce})}),onBeforeUnmount(()=>{const Ie=unref($e);xe.itemMap.delete(Ie)})}};return{COLLECTION_INJECTION_KEY:ae,COLLECTION_ITEM_INJECTION_KEY:ie,ElCollection:le,ElCollectionItem:pe}},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=($,z)=>{if(z!=="rtl")return $;switch($){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return $}},getFocusIntent=($,z,oe)=>{const ae=getDirectionAwareKey($.key,oe);if(!(z==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(ae))&&!(z==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(ae)))return MAP_KEY_TO_FOCUS_INTENT[ae]},reorderArray=($,z)=>$.map((oe,ae)=>$[(ae+z)%$.length]),focusFirst=$=>{const{activeElement:z}=document;for(const oe of $)if(oe===z||(oe.focus(),z!==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($,{emit:z}){var oe;const ae=ref((oe=$.currentTabId||$.defaultCurrentTabId)!=null?oe:null),ie=ref(!1),le=ref(!1),pe=ref(null),{getItems:_e}=inject(COLLECTION_INJECTION_KEY$1,void 0),Ce=computed(()=>[{outline:"none"},$.style]),$e=At=>{z(CURRENT_TAB_ID_CHANGE_EVT,At)},xe=()=>{ie.value=!0},Ie=composeEventHandlers(At=>{var Lt;(Lt=$.onMousedown)==null||Lt.call($,At)},()=>{le.value=!0}),Ne=composeEventHandlers(At=>{var Lt;(Lt=$.onFocus)==null||Lt.call($,At)},At=>{const Lt=!unref(le),{target:hn,currentTarget:vn}=At;if(hn===vn&&Lt&&!unref(ie)){const _n=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(vn==null||vn.dispatchEvent(_n),!_n.defaultPrevented){const bn=_e().filter(Tn=>Tn.focusable),Cn=bn.find(Tn=>Tn.active),En=bn.find(Tn=>Tn.id===unref(ae)),wn=[Cn,En,...bn].filter(Boolean).map(Tn=>Tn.ref);focusFirst(wn)}}le.value=!1}),Fe=composeEventHandlers(At=>{var Lt;(Lt=$.onBlur)==null||Lt.call($,At)},()=>{ie.value=!1}),ze=(...At)=>{z("entryFocus",...At)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(ae),loop:toRef$1($,"loop"),tabIndex:computed(()=>unref(ie)?-1:0),rovingFocusGroupRef:pe,rovingFocusGroupRootStyle:Ce,orientation:toRef$1($,"orientation"),dir:toRef$1($,"dir"),onItemFocus:$e,onItemShiftTab:xe,onBlur:Fe,onFocus:Ne,onMousedown:Ie}),watch(()=>$.currentTabId,At=>{ae.value=At??null}),useEventListener$1(pe,ENTRY_FOCUS_EVT,ze)}});function _sfc_render$m($,z,oe,ae,ie,le){return renderSlot($.$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($,z,oe,ae,ie,le){const pe=resolveComponent("el-roving-focus-group-impl"),_e=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(_e,null,{default:withCtx(()=>[createVNode(pe,normalizeProps(guardReactiveProps($.$attrs)),{default:withCtx(()=>[renderSlot($.$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($,{emit:z}){const{currentTabbedId:oe,loop:ae,onItemFocus:ie,onItemShiftTab:le}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:pe}=inject(COLLECTION_INJECTION_KEY$1,void 0),_e=useId(),Ce=ref(null),$e=composeEventHandlers(Fe=>{z("mousedown",Fe)},Fe=>{$.focusable?ie(unref(_e)):Fe.preventDefault()}),xe=composeEventHandlers(Fe=>{z("focus",Fe)},()=>{ie(unref(_e))}),Ie=composeEventHandlers(Fe=>{z("keydown",Fe)},Fe=>{const{key:ze,shiftKey:At,target:Lt,currentTarget:hn}=Fe;if(ze===EVENT_CODE.tab&&At){le();return}if(Lt!==hn)return;const vn=getFocusIntent(Fe);if(vn){Fe.preventDefault();let bn=pe().filter(Cn=>Cn.focusable).map(Cn=>Cn.ref);switch(vn){case"last":{bn.reverse();break}case"prev":case"next":{vn==="prev"&&bn.reverse();const Cn=bn.indexOf(hn);bn=ae.value?reorderArray(bn,Cn+1):bn.slice(Cn+1);break}}nextTick(()=>{focusFirst(bn)})}}),Ne=computed(()=>oe.value===unref(_e));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:Ce,tabIndex:computed(()=>unref(Ne)?0:-1),handleMousedown:$e,handleFocus:xe,handleKeydown:Ie}),{id:_e,handleKeydown:Ie,handleFocus:xe,handleMousedown:$e}}});function _sfc_render$k($,z,oe,ae,ie,le){const pe=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(pe,{id:$.id,focusable:$.focusable,active:$.active},{default:withCtx(()=>[renderSlot($.$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($,{emit:z}){const oe=getCurrentInstance(),ae=useNamespace("dropdown"),{t:ie}=useLocale(),le=ref(),pe=ref(),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(!1),Ne=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],Fe=computed(()=>({maxHeight:addUnit($.maxHeight)})),ze=computed(()=>[ae.m(bn.value)]),At=useId().value,Lt=computed(()=>$.id||At);watch([le,toRef$1($,"trigger")],([Dn,Nn],[Vn])=>{var Bn,zn,Xn;const Un=isArray$c(Nn)?Nn:[Nn];(Bn=Vn==null?void 0:Vn.$el)!=null&&Bn.removeEventListener&&Vn.$el.removeEventListener("pointerenter",En),(zn=Dn==null?void 0:Dn.$el)!=null&&zn.removeEventListener&&Dn.$el.removeEventListener("pointerenter",En),(Xn=Dn==null?void 0:Dn.$el)!=null&&Xn.addEventListener&&Un.includes("hover")&&Dn.$el.addEventListener("pointerenter",En)},{immediate:!0}),onBeforeUnmount(()=>{var Dn,Nn;(Nn=(Dn=le.value)==null?void 0:Dn.$el)!=null&&Nn.removeEventListener&&le.value.$el.removeEventListener("pointerenter",En)});function hn(){vn()}function vn(){var Dn;(Dn=_e.value)==null||Dn.onClose()}function _n(){var Dn;(Dn=_e.value)==null||Dn.onOpen()}const bn=useFormSize();function Cn(...Dn){z("command",...Dn)}function En(){var Dn,Nn;(Nn=(Dn=le.value)==null?void 0:Dn.$el)==null||Nn.focus()}function $n(){}function wn(){const Dn=unref(Ce);Dn==null||Dn.focus(),xe.value=null}function Tn(Dn){xe.value=Dn}function xn(Dn){Ie.value||(Dn.preventDefault(),Dn.stopImmediatePropagation())}function kn(){z("visible-change",!0)}function An(Dn){(Dn==null?void 0:Dn.type)==="keydown"&&Ce.value.focus()}function On(){z("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:Ce,role:computed(()=>$.role),triggerId:Lt,isUsingKeyboard:Ie,onItemEnter:$n,onItemLeave:wn}),provide("elDropdown",{instance:oe,dropdownSize:bn,handleClick:hn,commandHandler:Cn,trigger:toRef$1($,"trigger"),hideOnClick:toRef$1($,"hideOnClick")}),{t:ie,ns:ae,scrollbar:$e,wrapStyle:Fe,dropdownTriggerKls:ze,dropdownSize:bn,triggerId:Lt,triggerKeys:Ne,currentTabId:xe,handleCurrentTabIdChange:Tn,handlerMainButtonClick:Dn=>{z("click",Dn)},handleEntryFocus:xn,handleClose:vn,handleOpen:_n,handleBeforeShowTooltip:kn,handleShowTooltip:An,handleBeforeHideTooltip:On,onFocusAfterTrapped:Dn=>{var Nn,Vn;Dn.preventDefault(),(Vn=(Nn=Ce.value)==null?void 0:Nn.focus)==null||Vn.call(Nn,{preventScroll:!0})},popperRef:_e,contentRef:Ce,triggeringElementRef:le,referenceElementRef:pe}}});function _sfc_render$j($,z,oe,ae,ie,le){var pe;const _e=resolveComponent("el-dropdown-collection"),Ce=resolveComponent("el-roving-focus-group"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("el-only-child"),Ie=resolveComponent("el-tooltip"),Ne=resolveComponent("el-button"),Fe=resolveComponent("arrow-down"),ze=resolveComponent("el-icon"),At=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled)])},[createVNode(Ie,{ref:"popperRef",role:$.role,effect:$.effect,"fallback-placements":["bottom","top"],"popper-options":$.popperOptions,"gpu-acceleration":!1,"hide-after":$.trigger==="hover"?$.hideTimeout:0,"manual-mode":!0,placement:$.placement,"popper-class":[$.ns.e("popper"),$.popperClass],"reference-element":(pe=$.referenceElementRef)==null?void 0:pe.$el,trigger:$.trigger,"trigger-keys":$.triggerKeys,"trigger-target-el":$.contentRef,"show-after":$.trigger==="hover"?$.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":$.triggeringElementRef,"virtual-triggering":$.splitButton,disabled:$.disabled,transition:`${$.ns.namespace.value}-zoom-in-top`,teleported:$.teleported,pure:"",persistent:"",onBeforeShow:$.handleBeforeShowTooltip,onShow:$.handleShowTooltip,onBeforeHide:$.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode($e,{ref:"scrollbar","wrap-style":$.wrapStyle,tag:"div","view-class":$.ns.e("list")},{default:withCtx(()=>[createVNode(Ce,{loop:$.loop,"current-tab-id":$.currentTabId,orientation:"horizontal",onCurrentTabIdChange:$.handleCurrentTabIdChange,onEntryFocus:$.handleEntryFocus},{default:withCtx(()=>[createVNode(_e,null,{default:withCtx(()=>[renderSlot($.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[$.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(xe,{id:$.triggerId,ref:"triggeringElementRef",role:"button",tabindex:$.tabindex},{default:withCtx(()=>[renderSlot($.$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"]),$.splitButton?(openBlock(),createBlock(At,{key:0},{default:withCtx(()=>[createVNode(Ne,mergeProps({ref:"referenceElementRef"},$.buttonProps,{size:$.dropdownSize,type:$.type,disabled:$.disabled,tabindex:$.tabindex,onClick:$.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(Ne,mergeProps({id:$.triggerId,ref:"triggeringElementRef"},$.buttonProps,{role:"button",size:$.dropdownSize,type:$.type,class:$.ns.e("caret-button"),disabled:$.disabled,tabindex:$.tabindex,"aria-label":$.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(ze,{class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[createVNode(Fe)]),_: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($,{emit:z}){const oe=useNamespace("dropdown"),{role:ae}=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:pe,tabIndex:_e,handleFocus:Ce,handleKeydown:$e,handleMousedown:xe}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),Ie=composeRefs(ie,le,pe),Ne=computed(()=>ae.value==="menu"?"menuitem":ae.value==="navigation"?"link":"button"),Fe=composeEventHandlers(ze=>{const{code:At}=ze;if(At===EVENT_CODE.enter||At===EVENT_CODE.space)return ze.preventDefault(),ze.stopImmediatePropagation(),z("clickimpl",ze),!0},$e);return{ns:oe,itemRef:Ie,dataset:{[COLLECTION_ITEM_SIGN]:""},role:Ne,tabIndex:_e,handleFocus:Ce,handleKeydown:Fe,handleMousedown:xe}}}),_hoisted_1$A=["aria-disabled","tabindex","role"];function _sfc_render$i($,z,oe,ae,ie,le){const pe=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[$.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:$.ns.bem("menu","item","divided")},$.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:$.itemRef},{...$.dataset,...$.$attrs},{"aria-disabled":$.disabled,class:[$.ns.be("menu","item"),$.ns.is("disabled",$.disabled)],tabindex:$.tabIndex,role:$.role,onClick:z[0]||(z[0]=_e=>$.$emit("clickimpl",_e)),onFocus:z[1]||(z[1]=(..._e)=>$.handleFocus&&$.handleFocus(..._e)),onKeydown:z[2]||(z[2]=withModifiers((..._e)=>$.handleKeydown&&$.handleKeydown(..._e),["self"])),onMousedown:z[3]||(z[3]=(..._e)=>$.handleMousedown&&$.handleMousedown(..._e)),onPointermove:z[4]||(z[4]=_e=>$.$emit("pointermove",_e)),onPointerleave:z[5]||(z[5]=_e=>$.$emit("pointerleave",_e))}),[$.icon?(openBlock(),createBlock(pe,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot($.$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 $=inject("elDropdown",{}),z=computed(()=>$==null?void 0:$.dropdownSize);return{elDropdown:$,_elDropdownSize:z}},_sfc_main$14=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup($,{emit:z,attrs:oe}){const{elDropdown:ae}=useDropdown(),ie=getCurrentInstance(),le=ref(null),pe=computed(()=>{var Fe,ze;return(ze=(Fe=unref(le))==null?void 0:Fe.textContent)!=null?ze:""}),{onItemEnter:_e,onItemLeave:Ce}=inject(DROPDOWN_INJECTION_KEY,void 0),$e=composeEventHandlers(Fe=>(z("pointermove",Fe),Fe.defaultPrevented),whenMouse(Fe=>{if($.disabled){Ce(Fe);return}const ze=Fe.currentTarget;ze===document.activeElement||ze.contains(document.activeElement)||(_e(Fe),Fe.defaultPrevented||ze==null||ze.focus())})),xe=composeEventHandlers(Fe=>(z("pointerleave",Fe),Fe.defaultPrevented),whenMouse(Fe=>{Ce(Fe)})),Ie=composeEventHandlers(Fe=>{if(!$.disabled)return z("click",Fe),Fe.type!=="keydown"&&Fe.defaultPrevented},Fe=>{var ze,At,Lt;if($.disabled){Fe.stopImmediatePropagation();return}(ze=ae==null?void 0:ae.hideOnClick)!=null&&ze.value&&((At=ae.handleClick)==null||At.call(ae)),(Lt=ae.commandHandler)==null||Lt.call(ae,$.command,ie,Fe)}),Ne=computed(()=>({...$,...oe}));return{handleClick:Ie,handlePointerMove:$e,handlePointerLeave:xe,textContent:pe,propsAndAttrs:Ne}}});function _sfc_render$h($,z,oe,ae,ie,le){var pe;const _e=resolveComponent("el-dropdown-item-impl"),Ce=resolveComponent("el-roving-focus-item"),$e=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock($e,{disabled:$.disabled,"text-value":(pe=$.textValue)!=null?pe:$.textContent},{default:withCtx(()=>[createVNode(Ce,{focusable:!$.disabled},{default:withCtx(()=>[createVNode(_e,mergeProps($.propsAndAttrs,{onPointerleave:$.handlePointerLeave,onPointermove:$.handlePointerMove,onClickimpl:$.handleClick}),{default:withCtx(()=>[renderSlot($.$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($){const z=useNamespace("dropdown"),{_elDropdownSize:oe}=useDropdown(),ae=oe.value,{focusTrapRef:ie,onKeydown:le}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:pe,role:_e,triggerId:Ce}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:$e,getItems:xe}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:Ie,rovingFocusGroupRootStyle:Ne,tabIndex:Fe,onBlur:ze,onFocus:At,onMousedown:Lt}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:hn}=inject(COLLECTION_INJECTION_KEY$1,void 0),vn=computed(()=>[z.b("menu"),z.bm("menu",ae==null?void 0:ae.value)]),_n=composeRefs(pe,$e,ie,Ie,hn),bn=composeEventHandlers(En=>{var $n;($n=$.onKeydown)==null||$n.call($,En)},En=>{const{currentTarget:$n,code:wn,target:Tn}=En;if($n.contains(Tn),EVENT_CODE.tab===wn&&En.stopImmediatePropagation(),En.preventDefault(),Tn!==unref(pe)||!FIRST_LAST_KEYS.includes(wn))return;const kn=xe().filter(An=>!An.disabled).map(An=>An.ref);LAST_KEYS.includes(wn)&&kn.reverse(),focusFirst(kn)});return{size:ae,rovingFocusGroupRootStyle:Ne,tabIndex:Fe,dropdownKls:vn,role:_e,triggerId:Ce,dropdownListWrapperRef:_n,handleKeydown:En=>{bn(En),le(En)},onBlur:ze,onFocus:At,onMousedown:Lt}}}),_hoisted_1$z=["role","aria-labelledby"];function _sfc_render$g($,z,oe,ae,ie,le){return openBlock(),createElementBlock("ul",{ref:$.dropdownListWrapperRef,class:normalizeClass($.dropdownKls),style:normalizeStyle$1($.rovingFocusGroupRootStyle),tabindex:-1,role:$.role,"aria-labelledby":$.triggerId,onBlur:z[0]||(z[0]=(...pe)=>$.onBlur&&$.onBlur(...pe)),onFocus:z[1]||(z[1]=(...pe)=>$.onFocus&&$.onFocus(...pe)),onKeydown:z[2]||(z[2]=withModifiers((...pe)=>$.handleKeydown&&$.handleKeydown(...pe),["self"])),onMousedown:z[3]||(z[3]=withModifiers((...pe)=>$.onMousedown&&$.onMousedown(...pe),["self"]))},[renderSlot($.$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$1=["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($){const z=useNamespace("empty"),oe=useId();return(ae,ie)=>(openBlock(),createElementBlock("svg",_hoisted_1$y,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(oe)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$b),createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$7)],8,_hoisted_2$n),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(oe)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$1),createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(oe)}`,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(z).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${unref(z).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(z).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(z).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(oe)})`,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(z).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(oe)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{id:"Mask",fill:`var(${unref(z).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(oe)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(z).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(oe)})`,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(z).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($){const z=$,{t:oe}=useLocale(),ae=useNamespace("empty"),ie=computed(()=>z.description||oe("el.table.emptyText")),le=computed(()=>({width:addUnit(z.imageSize)}));return(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("image")),style:normalizeStyle$1(unref(le))},[pe.image?(openBlock(),createElementBlock("img",{key:0,src:pe.image,ondragstart:"return false"},null,8,_hoisted_1$x)):renderSlot(pe.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(ae).e("description"))},[pe.$slots.description?renderSlot(pe.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$m,toDisplayString$1(unref(ie)),1))],2),pe.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("bottom"))},[renderSlot(pe.$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:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageViewerEmits={close:()=>!0,switch:$=>isNumber$5($)},_hoisted_1$w=["src"],__default__$J=defineComponent({name:"ElImageViewer"}),_sfc_main$10=defineComponent({...__default__$J,props:imageViewerProps,emits:imageViewerEmits,setup($,{expose:z,emit:oe}){const ae=$,ie={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:le}=useLocale(),pe=useNamespace("image-viewer"),{nextZIndex:_e}=useZIndex(),Ce=ref(),$e=ref([]),xe=effectScope(),Ie=ref(!0),Ne=ref(ae.initialIndex),Fe=shallowRef(ie.CONTAIN),ze=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),At=computed(()=>{const{urlList:Nn}=ae;return Nn.length<=1}),Lt=computed(()=>Ne.value===0),hn=computed(()=>Ne.value===ae.urlList.length-1),vn=computed(()=>ae.urlList[Ne.value]),_n=computed(()=>{const{scale:Nn,deg:Vn,offsetX:Bn,offsetY:zn,enableTransition:Xn}=ze.value;let Un=Bn/Nn,Jn=zn/Nn;switch(Vn%360){case 90:case-270:[Un,Jn]=[Jn,-Un];break;case 180:case-180:[Un,Jn]=[-Un,-Jn];break;case 270:case-90:[Un,Jn]=[-Jn,Un];break}const lr={transform:`scale(${Nn}) rotate(${Vn}deg) translate(${Un}px, ${Jn}px)`,transition:Xn?"transform .3s":""};return Fe.value.name===ie.CONTAIN.name&&(lr.maxWidth=lr.maxHeight="100%"),lr}),bn=computed(()=>isNumber$5(ae.zIndex)?ae.zIndex:_e());function Cn(){$n(),oe("close")}function En(){const Nn=throttle$1(Bn=>{switch(Bn.code){case EVENT_CODE.esc:ae.closeOnPressEscape&&Cn();break;case EVENT_CODE.space:An();break;case EVENT_CODE.left:Mn();break;case EVENT_CODE.up:Dn("zoomIn");break;case EVENT_CODE.right:Fn();break;case EVENT_CODE.down:Dn("zoomOut");break}}),Vn=throttle$1(Bn=>{const zn=Bn.deltaY||Bn.deltaX;Dn(zn<0?"zoomIn":"zoomOut",{zoomRate:ae.zoomRate,enableTransition:!1})});xe.run(()=>{useEventListener$1(document,"keydown",Nn),useEventListener$1(document,"wheel",Vn)})}function $n(){xe.stop()}function wn(){Ie.value=!1}function Tn(Nn){Ie.value=!1,Nn.target.alt=le("el.image.error")}function xn(Nn){if(Ie.value||Nn.button!==0||!Ce.value)return;ze.value.enableTransition=!1;const{offsetX:Vn,offsetY:Bn}=ze.value,zn=Nn.pageX,Xn=Nn.pageY,Un=throttle$1(lr=>{ze.value={...ze.value,offsetX:Vn+lr.pageX-zn,offsetY:Bn+lr.pageY-Xn}}),Jn=useEventListener$1(document,"mousemove",Un);useEventListener$1(document,"mouseup",()=>{Jn()}),Nn.preventDefault()}function kn(){ze.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function An(){if(Ie.value)return;const Nn=keysOf(ie),Vn=Object.values(ie),Bn=Fe.value.name,Xn=(Vn.findIndex(Un=>Un.name===Bn)+1)%Nn.length;Fe.value=ie[Nn[Xn]],kn()}function On(Nn){const Vn=ae.urlList.length;Ne.value=(Nn+Vn)%Vn}function Mn(){Lt.value&&!ae.infinite||On(Ne.value-1)}function Fn(){hn.value&&!ae.infinite||On(Ne.value+1)}function Dn(Nn,Vn={}){if(Ie.value)return;const{zoomRate:Bn,rotateDeg:zn,enableTransition:Xn}={zoomRate:ae.zoomRate,rotateDeg:90,enableTransition:!0,...Vn};switch(Nn){case"zoomOut":ze.value.scale>.2&&(ze.value.scale=Number.parseFloat((ze.value.scale/Bn).toFixed(3)));break;case"zoomIn":ze.value.scale<7&&(ze.value.scale=Number.parseFloat((ze.value.scale*Bn).toFixed(3)));break;case"clockwise":ze.value.deg+=zn;break;case"anticlockwise":ze.value.deg-=zn;break}ze.value.enableTransition=Xn}return watch(vn,()=>{nextTick(()=>{const Nn=$e.value[0];Nn!=null&&Nn.complete||(Ie.value=!0)})}),watch(Ne,Nn=>{kn(),oe("switch",Nn)}),onMounted(()=>{var Nn,Vn;En(),(Vn=(Nn=Ce.value)==null?void 0:Nn.focus)==null||Vn.call(Nn)}),z({setActiveItem:On}),(Nn,Vn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!Nn.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:Ce,tabindex:-1,class:normalizeClass(unref(pe).e("wrapper")),style:normalizeStyle$1({zIndex:unref(bn)})},[createBaseVNode("div",{class:normalizeClass(unref(pe).e("mask")),onClick:Vn[0]||(Vn[0]=withModifiers(Bn=>Nn.hideOnClickModal&&Cn(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("close")]),onClick:Cn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(At)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("prev"),unref(pe).is("disabled",!Nn.infinite&&unref(Lt))]),onClick:Mn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("next"),unref(pe).is("disabled",!Nn.infinite&&unref(hn))]),onClick:Fn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(pe).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Vn[1]||(Vn[1]=Bn=>Dn("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Vn[2]||(Vn[2]=Bn=>Dn("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(pe).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:An},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Fe).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(pe).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Vn[3]||(Vn[3]=Bn=>Dn("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Vn[4]||(Vn[4]=Bn=>Dn("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(pe).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Nn.urlList,(Bn,zn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Xn=>$e.value[zn]=Xn,key:Bn,src:Bn,style:normalizeStyle$1(unref(_n)),class:normalizeClass(unref(pe).e("img")),onLoad:wn,onError:Tn,onMousedown:xn},null,46,_hoisted_1$w)),[[vShow,zn===Ne.value]])),128))],2),renderSlot(Nn.$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:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:{type:Boolean,default:!1},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:$=>$ instanceof Event,error:$=>$ instanceof Event,switch:$=>isNumber$5($),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($,{emit:z}){const oe=$;let ae="";const{t:ie}=useLocale(),le=useNamespace("image"),pe=useAttrs$1(),_e=useAttrs(),Ce=ref(),$e=ref(!1),xe=ref(!0),Ie=ref(!1),Ne=ref(),Fe=ref(),ze=isClient$2&&"loading"in HTMLImageElement.prototype;let At,Lt;const hn=computed(()=>pe.style),vn=computed(()=>{const{fit:Nn}=oe;return isClient$2&&Nn?{objectFit:Nn}:{}}),_n=computed(()=>{const{previewSrcList:Nn}=oe;return Array.isArray(Nn)&&Nn.length>0}),bn=computed(()=>{const{previewSrcList:Nn,initialIndex:Vn}=oe;let Bn=Vn;return Vn>Nn.length-1&&(Bn=0),Bn}),Cn=computed(()=>oe.loading==="eager"?!1:!ze&&oe.loading==="lazy"||oe.lazy),En=()=>{isClient$2&&(xe.value=!0,$e.value=!1,Ce.value=oe.src)};function $n(Nn){xe.value=!1,$e.value=!1,z("load",Nn)}function wn(Nn){xe.value=!1,$e.value=!0,z("error",Nn)}function Tn(){isInContainer(Ne.value,Fe.value)&&(En(),An())}const xn=useThrottleFn(Tn,200);async function kn(){var Nn;if(!isClient$2)return;await nextTick();const{scrollContainer:Vn}=oe;isElement$2(Vn)?Fe.value=Vn:isString$7(Vn)&&Vn!==""?Fe.value=(Nn=document.querySelector(Vn))!=null?Nn:void 0:Ne.value&&(Fe.value=getScrollContainer(Ne.value)),Fe.value&&(At=useEventListener$1(Fe,"scroll",xn),setTimeout(()=>Tn(),100))}function An(){!isClient$2||!Fe.value||!xn||(At==null||At(),Fe.value=void 0)}function On(Nn){if(Nn.ctrlKey){if(Nn.deltaY<0)return Nn.preventDefault(),!1;if(Nn.deltaY>0)return Nn.preventDefault(),!1}}function Mn(){_n.value&&(Lt=useEventListener$1("wheel",On,{passive:!1}),ae=document.body.style.overflow,document.body.style.overflow="hidden",Ie.value=!0,z("show"))}function Fn(){Lt==null||Lt(),document.body.style.overflow=ae,Ie.value=!1,z("close")}function Dn(Nn){z("switch",Nn)}return watch(()=>oe.src,()=>{Cn.value?(xe.value=!0,$e.value=!1,An(),kn()):En()}),onMounted(()=>{Cn.value?kn():En()}),(Nn,Vn)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:Ne,class:normalizeClass([unref(le).b(),Nn.$attrs.class]),style:normalizeStyle$1(unref(hn))},[$e.value?renderSlot(Nn.$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},[Ce.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(_e),{src:Ce.value,loading:Nn.loading,style:unref(vn),class:[unref(le).e("inner"),unref(_n)&&unref(le).e("preview"),xe.value&&unref(le).is("loading")],onClick:Mn,onLoad:$n,onError:wn}),null,16,_hoisted_1$v)):createCommentVNode("v-if",!0),xe.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("wrapper"))},[renderSlot(Nn.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(le).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(_n)?(openBlock(),createElementBlock(Fragment,{key:2},[Ie.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Nn.zIndex,"initial-index":unref(bn),infinite:Nn.infinite,"zoom-rate":Nn.zoomRate,"url-list":Nn.previewSrcList,"hide-on-click-modal":Nn.hideOnClickModal,teleported:Nn.previewTeleported,"close-on-press-escape":Nn.closeOnPressEscape,onClose:Fn,onSwitch:Dn},{default:withCtx(()=>[Nn.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$l,[renderSlot(Nn.$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:$=>$===null||isNumber$5($)||["min","max"].includes($),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:$=>$>=0&&$===Number.parseInt(`${$}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:($,z)=>z!==$,blur:$=>$ instanceof FocusEvent,focus:$=>$ instanceof FocusEvent,[INPUT_EVENT]:$=>isNumber$5($)||isNil($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)||isNil($)},_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($,{expose:z,emit:oe}){const ae=$,{t:ie}=useLocale(),le=useNamespace("input-number"),pe=ref(),_e=reactive({currentValue:ae.modelValue,userInput:null}),{formItem:Ce}=useFormItem(),$e=computed(()=>isNumber$5(ae.modelValue)&&ae.modelValue<=ae.min),xe=computed(()=>isNumber$5(ae.modelValue)&&ae.modelValue>=ae.max),Ie=computed(()=>{const On=hn(ae.step);return isUndefined$1(ae.precision)?Math.max(hn(ae.modelValue),On):(On>ae.precision,ae.precision)}),Ne=computed(()=>ae.controls&&ae.controlsPosition==="right"),Fe=useFormSize(),ze=useFormDisabled(),At=computed(()=>{if(_e.userInput!==null)return _e.userInput;let On=_e.currentValue;if(isNil(On))return"";if(isNumber$5(On)){if(Number.isNaN(On))return"";isUndefined$1(ae.precision)||(On=On.toFixed(ae.precision))}return On}),Lt=(On,Mn)=>{if(isUndefined$1(Mn)&&(Mn=Ie.value),Mn===0)return Math.round(On);let Fn=String(On);const Dn=Fn.indexOf(".");if(Dn===-1||!Fn.replace(".","").split("")[Dn+Mn])return On;const Bn=Fn.length;return Fn.charAt(Bn-1)==="5"&&(Fn=`${Fn.slice(0,Math.max(0,Bn-1))}6`),Number.parseFloat(Number(Fn).toFixed(Mn))},hn=On=>{if(isNil(On))return 0;const Mn=On.toString(),Fn=Mn.indexOf(".");let Dn=0;return Fn!==-1&&(Dn=Mn.length-Fn-1),Dn},vn=(On,Mn=1)=>isNumber$5(On)?Lt(On+ae.step*Mn):_e.currentValue,_n=()=>{if(ae.readonly||ze.value||xe.value)return;const On=Number(At.value)||0,Mn=vn(On);En(Mn),oe(INPUT_EVENT,_e.currentValue)},bn=()=>{if(ae.readonly||ze.value||$e.value)return;const On=Number(At.value)||0,Mn=vn(On,-1);En(Mn),oe(INPUT_EVENT,_e.currentValue)},Cn=(On,Mn)=>{const{max:Fn,min:Dn,step:Nn,precision:Vn,stepStrictly:Bn,valueOnClear:zn}=ae;let Xn=Number(On);if(isNil(On)||Number.isNaN(Xn))return null;if(On===""){if(zn===null)return null;Xn=isString$7(zn)?{min:Dn,max:Fn}[zn]:zn}return Bn&&(Xn=Lt(Math.round(Xn/Nn)*Nn,Vn)),isUndefined$1(Vn)||(Xn=Lt(Xn,Vn)),(Xn>Fn||Xn<Dn)&&(Xn=Xn>Fn?Fn:Dn,Mn&&oe(UPDATE_MODEL_EVENT,Xn)),Xn},En=(On,Mn=!0)=>{var Fn;const Dn=_e.currentValue,Nn=Cn(On);if(!Mn){oe(UPDATE_MODEL_EVENT,Nn);return}Dn!==Nn&&(_e.userInput=null,oe(UPDATE_MODEL_EVENT,Nn),oe(CHANGE_EVENT,Nn,Dn),ae.validateEvent&&((Fn=Ce==null?void 0:Ce.validate)==null||Fn.call(Ce,"change").catch(Vn=>void 0)),_e.currentValue=Nn)},$n=On=>{_e.userInput=On;const Mn=On===""?null:Number(On);oe(INPUT_EVENT,Mn),En(Mn,!1)},wn=On=>{const Mn=On!==""?Number(On):"";(isNumber$5(Mn)&&!Number.isNaN(Mn)||On==="")&&En(Mn),_e.userInput=null},Tn=()=>{var On,Mn;(Mn=(On=pe.value)==null?void 0:On.focus)==null||Mn.call(On)},xn=()=>{var On,Mn;(Mn=(On=pe.value)==null?void 0:On.blur)==null||Mn.call(On)},kn=On=>{oe("focus",On)},An=On=>{var Mn;oe("blur",On),ae.validateEvent&&((Mn=Ce==null?void 0:Ce.validate)==null||Mn.call(Ce,"blur").catch(Fn=>void 0))};return watch(()=>ae.modelValue,On=>{const Mn=Cn(_e.userInput),Fn=Cn(On,!0);!isNumber$5(Mn)&&(!Mn||Mn!==Fn)&&(_e.currentValue=Fn,_e.userInput=null)},{immediate:!0}),onMounted(()=>{var On;const{min:Mn,max:Fn,modelValue:Dn}=ae,Nn=(On=pe.value)==null?void 0:On.input;if(Nn.setAttribute("role","spinbutton"),Number.isFinite(Fn)?Nn.setAttribute("aria-valuemax",String(Fn)):Nn.removeAttribute("aria-valuemax"),Number.isFinite(Mn)?Nn.setAttribute("aria-valuemin",String(Mn)):Nn.removeAttribute("aria-valuemin"),Nn.setAttribute("aria-valuenow",String(_e.currentValue)),Nn.setAttribute("aria-disabled",String(ze.value)),!isNumber$5(Dn)&&Dn!=null){let Vn=Number(Dn);Number.isNaN(Vn)&&(Vn=null),oe(UPDATE_MODEL_EVENT,Vn)}}),onUpdated(()=>{var On;const Mn=(On=pe.value)==null?void 0:On.input;Mn==null||Mn.setAttribute("aria-valuenow",`${_e.currentValue}`)}),z({focus:Tn,blur:xn}),(On,Mn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(le).m(unref(Fe)),unref(le).is("disabled",unref(ze)),unref(le).is("without-controls",!On.controls),unref(le).is("controls-right",unref(Ne))]),onDragstart:Mn[1]||(Mn[1]=withModifiers(()=>{},["prevent"]))},[On.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($e))]),onKeydown:withKeys(bn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Ne)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$u)),[[unref(vRepeatClick),bn]]):createCommentVNode("v-if",!0),On.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(xe))]),onKeydown:withKeys(_n,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Ne)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$k)),[[unref(vRepeatClick),_n]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:On.id,ref_key:"input",ref:pe,type:"number",step:On.step,"model-value":unref(At),placeholder:On.placeholder,readonly:On.readonly,disabled:unref(ze),size:unref(Fe),max:On.max,min:On.min,name:On.name,label:On.label,"validate-event":!1,onWheel:Mn[0]||(Mn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(_n,["prevent"]),["up"]),withKeys(withModifiers(bn,["prevent"]),["down"])],onBlur:An,onFocus:kn,onInput:$n,onChange:wn},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:$=>$ instanceof MouseEvent},_hoisted_1$t=["href"],__default__$G=defineComponent({name:"ElLink"}),_sfc_main$Z=defineComponent({...__default__$G,props:linkProps,emits:linkEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("link"),ie=computed(()=>[ae.b(),ae.m(oe.type),ae.is("disabled",oe.disabled),ae.is("underline",oe.underline&&!oe.disabled)]);function le(pe){oe.disabled||z("click",pe)}return(pe,_e)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(ie)),href:pe.disabled||!pe.href?void 0:pe.href,onClick:le},[pe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(pe.icon)))]),_:1})):createCommentVNode("v-if",!0),pe.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ae).e("inner"))},[renderSlot(pe.$slots,"default")],2)):createCommentVNode("v-if",!0),pe.$slots.icon?renderSlot(pe.$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(z,oe){this.parent=z,this.domNode=oe,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(z){z===this.subMenuItems.length?z=0:z<0&&(z=this.subMenuItems.length-1),this.subMenuItems[z].focus(),this.subIndex=z}addListeners(){const z=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,oe=>{oe.addEventListener("keydown",ae=>{let ie=!1;switch(ae.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(z,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{ie=!0,ae.currentTarget.click();break}}return ie&&(ae.preventDefault(),ae.stopPropagation()),!1})})}},MenuItem$1=class{constructor(z,oe){this.domNode=z,this.submenu=null,this.submenu=null,this.init(oe)}init(z){this.domNode.setAttribute("tabindex","0");const oe=this.domNode.querySelector(`.${z}-menu`);oe&&(this.submenu=new SubMenu$1(this,oe)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",z=>{let oe=!1;switch(z.code){case EVENT_CODE.down:{triggerEvent(z.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),oe=!0;break}case EVENT_CODE.up:{triggerEvent(z.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),oe=!0;break}case EVENT_CODE.tab:{triggerEvent(z.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{oe=!0,z.currentTarget.click();break}}oe&&z.preventDefault()})}},Menu$1=class{constructor(z,oe){this.domNode=z,this.init(oe)}init(z){const oe=this.domNode.childNodes;Array.from(oe).forEach(ae=>{ae.nodeType===1&&new MenuItem$1(ae,z)})}};const _sfc_main$Y=defineComponent({name:"ElMenuCollapseTransition",setup(){const $=useNamespace("menu");return{listeners:{onBeforeEnter:oe=>oe.style.opacity="0.2",onEnter(oe,ae){addClass(oe,`${$.namespace.value}-opacity-transition`),oe.style.opacity="1",ae()},onAfterEnter(oe){removeClass(oe,`${$.namespace.value}-opacity-transition`),oe.style.opacity=""},onBeforeLeave(oe){oe.dataset||(oe.dataset={}),hasClass(oe,$.m("collapse"))?(removeClass(oe,$.m("collapse")),oe.dataset.oldOverflow=oe.style.overflow,oe.dataset.scrollWidth=oe.clientWidth.toString(),addClass(oe,$.m("collapse"))):(addClass(oe,$.m("collapse")),oe.dataset.oldOverflow=oe.style.overflow,oe.dataset.scrollWidth=oe.clientWidth.toString(),removeClass(oe,$.m("collapse"))),oe.style.width=`${oe.scrollWidth}px`,oe.style.overflow="hidden"},onLeave(oe){addClass(oe,"horizontal-collapse-transition"),oe.style.width=`${oe.dataset.scrollWidth}px`}}}}});function _sfc_render$f($,z,oe,ae,ie,le){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},$.listeners),{default:withCtx(()=>[renderSlot($.$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($,z){const oe=computed(()=>{let ie=$.parent;const le=[z.value];for(;ie.type.name!=="ElMenu";)ie.props.index&&le.unshift(ie.props.index),ie=ie.parent;return le});return{parentMenu:computed(()=>{let ie=$.parent;for(;ie&&!["ElMenu","ElSubMenu"].includes(ie.type.name);)ie=ie.parent;return ie}),indexPath:oe}}function useMenuColor($){return computed(()=>{const oe=$.backgroundColor;return oe?new TinyColor(oe).shade(20).toString():""})}const useMenuCssVar=($,z)=>{const oe=useNamespace("menu");return computed(()=>oe.cssVarBlock({"text-color":$.textColor||"","hover-text-color":$.textColor||"","bg-color":$.backgroundColor||"","hover-bg-color":useMenuColor($).value||"","active-color":$.activeTextColor||"",level:`${z}`}))},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($,{slots:z,expose:oe}){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(()=>$.popperAppendToBody!==void 0));const ae=getCurrentInstance(),{indexPath:ie,parentMenu:le}=useMenu(ae,computed(()=>$.index)),pe=useNamespace("menu"),_e=useNamespace("sub-menu"),Ce=inject("rootMenu");Ce||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const $e=inject(`subMenu:${le.value.uid}`);$e||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const xe=ref({}),Ie=ref({});let Ne;const Fe=ref(!1),ze=ref(),At=ref(null),Lt=computed(()=>kn.value==="horizontal"&&vn.value?"bottom-start":"right-start"),hn=computed(()=>kn.value==="horizontal"&&vn.value||kn.value==="vertical"&&!Ce.props.collapse?$.expandCloseIcon&&$.expandOpenIcon?En.value?$.expandOpenIcon:$.expandCloseIcon:arrow_down_default:$.collapseCloseIcon&&$.collapseOpenIcon?En.value?$.collapseOpenIcon:$.collapseCloseIcon:arrow_right_default),vn=computed(()=>$e.level===0),_n=computed(()=>{var zn;const Xn=(zn=$.teleported)!=null?zn:$.popperAppendToBody;return Xn===void 0?vn.value:Xn}),bn=computed(()=>Ce.props.collapse?`${pe.namespace.value}-zoom-in-left`:`${pe.namespace.value}-zoom-in-top`),Cn=computed(()=>kn.value==="horizontal"&&vn.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),En=computed(()=>Ce.openedMenus.includes($.index)),$n=computed(()=>{let zn=!1;return Object.values(xe.value).forEach(Xn=>{Xn.active&&(zn=!0)}),Object.values(Ie.value).forEach(Xn=>{Xn.active&&(zn=!0)}),zn}),wn=computed(()=>Ce.props.backgroundColor||""),Tn=computed(()=>Ce.props.activeTextColor||""),xn=computed(()=>Ce.props.textColor||""),kn=computed(()=>Ce.props.mode),An=reactive({index:$.index,indexPath:ie,active:$n}),On=useMenuCssVar(Ce.props,$e.level+1),Mn=computed(()=>kn.value!=="horizontal"?{color:xn.value}:{borderBottomColor:$n.value?Ce.props.activeTextColor?Tn.value:"":"transparent",color:$n.value?Tn.value:xn.value}),Fn=()=>{var zn,Xn,Un;return(Un=(Xn=(zn=At.value)==null?void 0:zn.popperRef)==null?void 0:Xn.popperInstanceRef)==null?void 0:Un.destroy()},Dn=zn=>{zn||Fn()},Nn=()=>{Ce.props.menuTrigger==="hover"&&Ce.props.mode==="horizontal"||Ce.props.collapse&&Ce.props.mode==="vertical"||$.disabled||Ce.handleSubMenuClick({index:$.index,indexPath:ie.value,active:$n.value})},Vn=(zn,Xn=$.showTimeout)=>{var Un;zn.type!=="focus"&&(Ce.props.menuTrigger==="click"&&Ce.props.mode==="horizontal"||!Ce.props.collapse&&Ce.props.mode==="vertical"||$.disabled||($e.mouseInChild.value=!0,Ne==null||Ne(),{stop:Ne}=useTimeoutFn$1(()=>{Ce.openMenu($.index,ie.value)},Xn),_n.value&&((Un=le.value.vnode.el)==null||Un.dispatchEvent(new MouseEvent("mouseenter")))))},Bn=(zn=!1)=>{var Xn,Un;Ce.props.menuTrigger==="click"&&Ce.props.mode==="horizontal"||!Ce.props.collapse&&Ce.props.mode==="vertical"||(Ne==null||Ne(),$e.mouseInChild.value=!1,{stop:Ne}=useTimeoutFn$1(()=>!Fe.value&&Ce.closeMenu($.index,ie.value),$.hideTimeout),_n.value&&zn&&((Xn=ae.parent)==null?void 0:Xn.type.name)==="ElSubMenu"&&((Un=$e.handleMouseleave)==null||Un.call($e,!0)))};watch(()=>Ce.props.collapse,zn=>Dn(!!zn));{const zn=Un=>{Ie.value[Un.index]=Un},Xn=Un=>{delete Ie.value[Un.index]};provide(`subMenu:${ae.uid}`,{addSubMenu:zn,removeSubMenu:Xn,handleMouseleave:Bn,mouseInChild:Fe,level:$e.level+1})}return oe({opened:En}),onMounted(()=>{Ce.addSubMenu(An),$e.addSubMenu(An)}),onBeforeUnmount(()=>{$e.removeSubMenu(An),Ce.removeSubMenu(An)}),()=>{var zn;const Xn=[(zn=z.title)==null?void 0:zn.call(z),h$3(ElIcon,{class:_e.e("icon-arrow"),style:{transform:En.value?$.expandCloseIcon&&$.expandOpenIcon||$.collapseCloseIcon&&$.collapseOpenIcon&&Ce.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$7(hn.value)?h$3(ae.appContext.components[hn.value]):h$3(hn.value)})],Un=Ce.isMenuPopup?h$3(ElTooltip,{ref:At,visible:En.value,effect:"light",pure:!0,offset:$.popperOffset,showArrow:!1,persistent:!0,popperClass:$.popperClass,placement:Lt.value,teleported:_n.value,fallbackPlacements:Cn.value,transition:bn.value,gpuAcceleration:!1},{content:()=>{var Jn;return h$3("div",{class:[pe.m(kn.value),pe.m("popup-container"),$.popperClass],onMouseenter:lr=>Vn(lr,100),onMouseleave:()=>Bn(!0),onFocus:lr=>Vn(lr,100)},[h$3("ul",{class:[pe.b(),pe.m("popup"),pe.m(`popup-${Lt.value}`)],style:On.value},[(Jn=z.default)==null?void 0:Jn.call(z)])])},default:()=>h$3("div",{class:_e.e("title"),style:[Mn.value,{backgroundColor:wn.value}],onClick:Nn},Xn)}):h$3(Fragment,{},[h$3("div",{class:_e.e("title"),style:[Mn.value,{backgroundColor:wn.value}],ref:ze,onClick:Nn},Xn),h$3(_CollapseTransition,{},{default:()=>{var Jn;return withDirectives(h$3("ul",{role:"menu",class:[pe.b(),pe.m("inline")],style:On.value},[(Jn=z.default)==null?void 0:Jn.call(z)]),[[vShow,En.value]])}})]);return h$3("li",{class:[_e.b(),_e.is("active",$n.value),_e.is("opened",En.value),_e.is("disabled",$.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:En.value,onMouseenter:Vn,onMouseleave:()=>Bn(!0),onFocus:Vn},[Un])}}});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=$=>Array.isArray($)&&$.every(z=>isString$7(z)),menuEmits={close:($,z)=>isString$7($)&&checkIndexPath(z),open:($,z)=>isString$7($)&&checkIndexPath(z),select:($,z,oe,ae)=>isString$7($)&&checkIndexPath(z)&&isObject$8(oe)&&(ae===void 0||ae instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup($,{emit:z,slots:oe,expose:ae}){const ie=getCurrentInstance(),le=ie.appContext.config.globalProperties.$router,pe=ref(),_e=useNamespace("menu"),Ce=useNamespace("sub-menu"),$e=ref(-1),xe=ref($.defaultOpeneds&&!$.collapse?$.defaultOpeneds.slice(0):[]),Ie=ref($.defaultActive),Ne=ref({}),Fe=ref({}),ze=computed(()=>$.mode==="horizontal"||$.mode==="vertical"&&$.collapse),At=()=>{const kn=Ie.value&&Ne.value[Ie.value];if(!kn||$.mode==="horizontal"||$.collapse)return;kn.indexPath.forEach(On=>{const Mn=Fe.value[On];Mn&&Lt(On,Mn.indexPath)})},Lt=(kn,An)=>{xe.value.includes(kn)||($.uniqueOpened&&(xe.value=xe.value.filter(On=>An.includes(On))),xe.value.push(kn),z("open",kn,An))},hn=kn=>{const An=xe.value.indexOf(kn);An!==-1&&xe.value.splice(An,1)},vn=(kn,An)=>{hn(kn),z("close",kn,An)},_n=({index:kn,indexPath:An})=>{xe.value.includes(kn)?vn(kn,An):Lt(kn,An)},bn=kn=>{($.mode==="horizontal"||$.collapse)&&(xe.value=[]);const{index:An,indexPath:On}=kn;if(!(isNil(An)||isNil(On)))if($.router&&le){const Mn=kn.route||An,Fn=le.push(Mn).then(Dn=>(Dn||(Ie.value=An),Dn));z("select",An,On,{index:An,indexPath:On,route:Mn},Fn)}else Ie.value=An,z("select",An,On,{index:An,indexPath:On})},Cn=kn=>{const An=Ne.value,On=An[kn]||Ie.value&&An[Ie.value]||An[$.defaultActive];On?Ie.value=On.index:Ie.value=kn},En=()=>{var kn,An;if(!pe.value)return-1;const On=Array.from((An=(kn=pe.value)==null?void 0:kn.childNodes)!=null?An:[]).filter(zn=>zn.nodeName!=="#text"||zn.nodeValue),Mn=64,Fn=Number.parseInt(getComputedStyle(pe.value).paddingLeft,10),Dn=Number.parseInt(getComputedStyle(pe.value).paddingRight,10),Nn=pe.value.clientWidth-Fn-Dn;let Vn=0,Bn=0;return On.forEach((zn,Xn)=>{Vn+=zn.offsetWidth||0,Vn<=Nn-Mn&&(Bn=Xn+1)}),Bn===On.length?-1:Bn},$n=(kn,An=33.34)=>{let On;return()=>{On&&clearTimeout(On),On=setTimeout(()=>{kn()},An)}};let wn=!0;const Tn=()=>{const kn=()=>{$e.value=-1,nextTick(()=>{$e.value=En()})};wn?kn():$n(kn)(),wn=!1};watch(()=>$.defaultActive,kn=>{Ne.value[kn]||(Ie.value=""),Cn(kn)}),watch(()=>$.collapse,kn=>{kn&&(xe.value=[])}),watch(Ne.value,At);let xn;watchEffect(()=>{$.mode==="horizontal"&&$.ellipsis?xn=useResizeObserver(pe,Tn).stop:xn==null||xn()});{const kn=Fn=>{Fe.value[Fn.index]=Fn},An=Fn=>{delete Fe.value[Fn.index]};provide("rootMenu",reactive({props:$,openedMenus:xe,items:Ne,subMenus:Fe,activeIndex:Ie,isMenuPopup:ze,addMenuItem:Fn=>{Ne.value[Fn.index]=Fn},removeMenuItem:Fn=>{delete Ne.value[Fn.index]},addSubMenu:kn,removeSubMenu:An,openMenu:Lt,closeMenu:vn,handleMenuItemClick:bn,handleSubMenuClick:_n})),provide(`subMenu:${ie.uid}`,{addSubMenu:kn,removeSubMenu:An,mouseInChild:ref(!1),level:0})}return onMounted(()=>{$.mode==="horizontal"&&new Menu$1(ie.vnode.el,_e.namespace.value)}),ae({open:An=>{const{indexPath:On}=Fe.value[An];On.forEach(Mn=>Lt(Mn,On))},close:hn,handleResize:Tn}),()=>{var kn,An;let On=(An=(kn=oe.default)==null?void 0:kn.call(oe))!=null?An:[];const Mn=[];if($.mode==="horizontal"&&pe.value){const Nn=flattedChildren(On),Vn=$e.value===-1?Nn:Nn.slice(0,$e.value),Bn=$e.value===-1?[]:Nn.slice($e.value);Bn!=null&&Bn.length&&$.ellipsis&&(On=Vn,Mn.push(h$3(SubMenu,{index:"sub-menu-more",class:Ce.e("hide-arrow")},{title:()=>h$3(ElIcon,{class:Ce.e("icon-more")},{default:()=>h$3(more_default)}),default:()=>Bn})))}const Fn=useMenuCssVar($,0),Dn=h$3("ul",{key:String($.collapse),role:"menubar",ref:pe,style:Fn.value,class:{[_e.b()]:!0,[_e.m($.mode)]:!0,[_e.m("collapse")]:$.collapse}},[...On,...Mn]);return $.collapseTransition&&$.mode==="vertical"?h$3(ElMenuCollapseTransition,()=>Dn):Dn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:$=>isString$7($.index)&&Array.isArray($.indexPath)},COMPONENT_NAME$b="ElMenuItem",_sfc_main$X=defineComponent({name:COMPONENT_NAME$b,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup($,{emit:z}){const oe=getCurrentInstance(),ae=inject("rootMenu"),ie=useNamespace("menu"),le=useNamespace("menu-item");ae||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:pe,indexPath:_e}=useMenu(oe,toRef$1($,"index")),Ce=inject(`subMenu:${pe.value.uid}`);Ce||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const $e=computed(()=>$.index===ae.activeIndex),xe=reactive({index:$.index,indexPath:_e,active:$e}),Ie=()=>{$.disabled||(ae.handleMenuItemClick({index:$.index,indexPath:_e.value,route:$.route}),z("click",xe))};return onMounted(()=>{Ce.addSubMenu(xe),ae.addMenuItem(xe)}),onBeforeUnmount(()=>{Ce.removeSubMenu(xe),ae.removeMenuItem(xe)}),{parentMenu:pe,rootMenu:ae,active:$e,nsMenu:ie,nsMenuItem:le,handleClick:Ie}}});function _sfc_render$e($,z,oe,ae,ie,le){const pe=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([$.nsMenuItem.b(),$.nsMenuItem.is("active",$.active),$.nsMenuItem.is("disabled",$.disabled)]),role:"menuitem",tabindex:"-1",onClick:z[0]||(z[0]=(..._e)=>$.handleClick&&$.handleClick(..._e))},[$.parentMenu.type.name==="ElMenu"&&$.rootMenu.props.collapse&&$.$slots.title?(openBlock(),createBlock(pe,{key:0,effect:$.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot($.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsMenu.be("tooltip","trigger"))},[renderSlot($.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot($.$slots,"default"),renderSlot($.$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($,z,oe,ae,ie,le){return openBlock(),createElementBlock("li",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1($.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot($.$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($,{emit:z}){const oe=useSlots(),{t:ae}=useLocale(),ie=useNamespace("page-header"),le=computed(()=>[ie.b(),{[ie.m("has-breadcrumb")]:!!oe.breadcrumb,[ie.m("has-extra")]:!!oe.extra,[ie.is("contentful")]:!!oe.default}]);function pe(){z("back")}return(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[_e.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("breadcrumb"))},[renderSlot(_e.$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:pe},[_e.icon||_e.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":_e.title||unref(ae)("el.pageHeader.title"),class:normalizeClass(unref(ie).e("icon"))},[renderSlot(_e.$slots,"icon",{},()=>[_e.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$s)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("title"))},[renderSlot(_e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(_e.title||unref(ae)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(_e.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(_e.content),1)])],2)],2),_e.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("extra"))},[renderSlot(_e.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),_e.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("main"))},[renderSlot(_e.$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:$=>$ 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($){const z=$,{t:oe}=useLocale(),ae=computed(()=>z.disabled||z.currentPage<=1);return(ie,le)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(ae),"aria-label":ie.prevText||unref(oe)("el.pagination.prev"),"aria-disabled":unref(ae),onClick:le[0]||(le[0]=pe=>ie.$emit("click",pe))},[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($){const z=$,{t:oe}=useLocale(),ae=computed(()=>z.disabled||z.currentPage===z.pageCount||z.pageCount===0);return(ie,le)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(ae),"aria-label":ie.nextText||unref(oe)("el.pagination.next"),"aria-disabled":unref(ae),onClick:le[0]||(le[0]=pe=>ie.$emit("click",pe))},[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($,z){const oe=inject(selectKey),ae=inject(selectGroupKey,{disabled:!1}),ie=computed(()=>Object.prototype.toString.call($.value).toLowerCase()==="[object object]"),le=computed(()=>oe.props.multiple?Ie(oe.props.modelValue,$.value):Ne($.value,oe.props.modelValue)),pe=computed(()=>{if(oe.props.multiple){const At=oe.props.modelValue||[];return!le.value&&At.length>=oe.props.multipleLimit&&oe.props.multipleLimit>0}else return!1}),_e=computed(()=>$.label||(ie.value?"":$.value)),Ce=computed(()=>$.value||$.label||""),$e=computed(()=>$.disabled||z.groupDisabled||pe.value),xe=getCurrentInstance(),Ie=(At=[],Lt)=>{if(ie.value){const hn=oe.props.valueKey;return At&&At.some(vn=>toRaw(get$1(vn,hn))===get$1(Lt,hn))}else return At&&At.includes(Lt)},Ne=(At,Lt)=>{if(ie.value){const{valueKey:hn}=oe.props;return get$1(At,hn)===get$1(Lt,hn)}else return At===Lt},Fe=()=>{!$.disabled&&!ae.disabled&&(oe.hoverIndex=oe.optionsArray.indexOf(xe.proxy))};watch(()=>_e.value,()=>{!$.created&&!oe.props.remote&&oe.setSelected()}),watch(()=>$.value,(At,Lt)=>{const{remote:hn,valueKey:vn}=oe.props;if(Object.is(At,Lt)||(oe.onOptionDestroy(Lt,xe.proxy),oe.onOptionCreate(xe.proxy)),!$.created&&!hn){if(vn&&typeof At=="object"&&typeof Lt=="object"&&At[vn]===Lt[vn])return;oe.setSelected()}}),watch(()=>ae.disabled,()=>{z.groupDisabled=ae.disabled},{immediate:!0});const{queryChange:ze}=toRaw(oe);return watch(ze,At=>{const{query:Lt}=unref(At),hn=new RegExp(escapeStringRegexp(Lt),"i");z.visible=hn.test(_e.value)||$.created,z.visible||oe.filteredOptionsCount--},{immediate:!0}),{select:oe,currentLabel:_e,currentValue:Ce,itemSelected:le,isDisabled:$e,hoverItem:Fe}}const _sfc_main$S=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup($){const z=useNamespace("select"),oe=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:ae,itemSelected:ie,isDisabled:le,select:pe,hoverItem:_e}=useOption$1($,oe),{visible:Ce,hover:$e}=toRefs(oe),xe=getCurrentInstance().proxy;pe.onOptionCreate(xe),onBeforeUnmount(()=>{const Ne=xe.value,{selected:Fe}=pe,At=(pe.props.multiple?Fe:[Fe]).some(Lt=>Lt.value===xe.value);nextTick(()=>{pe.cachedOptions.get(Ne)===xe&&!At&&pe.cachedOptions.delete(Ne)}),pe.onOptionDestroy(Ne,xe)});function Ie(){$.disabled!==!0&&oe.groupDisabled!==!0&&pe.handleOptionSelect(xe,!0)}return{ns:z,currentLabel:ae,itemSelected:ie,isDisabled:le,select:pe,hoverItem:_e,visible:Ce,hover:$e,selectOptionClick:Ie,states:oe}}});function _sfc_render$c($,z,oe,ae,ie,le){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.be("dropdown","item"),$.ns.is("disabled",$.isDisabled),{selected:$.itemSelected,hover:$.hover}]),onMouseenter:z[0]||(z[0]=(...pe)=>$.hoverItem&&$.hoverItem(...pe)),onClick:z[1]||(z[1]=withModifiers((...pe)=>$.selectOptionClick&&$.selectOptionClick(...pe),["stop"]))},[renderSlot($.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1($.currentLabel),1)])],34)),[[vShow,$.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 $=inject(selectKey),z=useNamespace("select"),oe=computed(()=>$.props.popperClass),ae=computed(()=>$.props.multiple),ie=computed(()=>$.props.fitInputWidth),le=ref("");function pe(){var _e;le.value=`${(_e=$.selectWrapper)==null?void 0:_e.offsetWidth}px`}return onMounted(()=>{pe(),useResizeObserver($.selectWrapper,pe)}),{ns:z,minWidth:le,popperClass:oe,isMultiple:ae,isFitInputWidth:ie}}});function _sfc_render$b($,z,oe,ae,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("dropdown"),$.ns.is("multiple",$.isMultiple),$.popperClass]),style:normalizeStyle$1({[$.isFitInputWidth?"width":"minWidth"]:$.minWidth})},[renderSlot($.$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($){const{t:z}=useLocale();return reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:$.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:z("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const useSelect$2=($,z,oe)=>{const{t:ae}=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(()=>$.suffixTransition===!1));const le=ref(null),pe=ref(null),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),Ne=ref(-1),Fe=shallowRef({query:""}),ze=shallowRef(""),At=ref([]);let Lt=0;const{form:hn,formItem:vn}=useFormItem(),_n=computed(()=>!$.filterable||$.multiple||!z.visible),bn=computed(()=>$.disabled||(hn==null?void 0:hn.disabled)),Cn=computed(()=>{const Cr=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!=="";return $.clearable&&!bn.value&&z.inputHovering&&Cr}),En=computed(()=>$.remote&&$.filterable&&!$.remoteShowSuffix?"":$.suffixIcon),$n=computed(()=>ie.is("reverse",En.value&&z.visible&&$.suffixTransition)),wn=computed(()=>$.remote?300:0),Tn=computed(()=>$.loading?$.loadingText||ae("el.select.loading"):$.remote&&z.query===""&&z.options.size===0?!1:$.filterable&&z.query&&z.options.size>0&&z.filteredOptionsCount===0?$.noMatchText||ae("el.select.noMatch"):z.options.size===0?$.noDataText||ae("el.select.noData"):null),xn=computed(()=>{const Cr=Array.from(z.options.values()),Nr=[];return At.value.forEach(Hr=>{const Ur=Cr.findIndex(Gr=>Gr.currentLabel===Hr);Ur>-1&&Nr.push(Cr[Ur])}),Nr.length?Nr:Cr}),kn=computed(()=>Array.from(z.cachedOptions.values())),An=computed(()=>{const Cr=xn.value.filter(Nr=>!Nr.created).some(Nr=>Nr.currentLabel===z.query);return $.filterable&&$.allowCreate&&z.query!==""&&!Cr}),On=useFormSize(),Mn=computed(()=>["small"].includes(On.value)?"small":"default"),Fn=computed({get(){return z.visible&&Tn.value!==!1},set(Cr){z.visible=Cr}});watch([()=>bn.value,()=>On.value,()=>hn==null?void 0:hn.size],()=>{nextTick(()=>{Dn()})}),watch(()=>$.placeholder,Cr=>{z.cachedPlaceHolder=z.currentPlaceholder=Cr}),watch(()=>$.modelValue,(Cr,Nr)=>{$.multiple&&(Dn(),Cr&&Cr.length>0||pe.value&&z.query!==""?z.currentPlaceholder="":z.currentPlaceholder=z.cachedPlaceHolder,$.filterable&&!$.reserveKeyword&&(z.query="",Nn(z.query))),zn(),$.filterable&&!$.multiple&&(z.inputLength=20),!isEqual$1(Cr,Nr)&&$.validateEvent&&(vn==null||vn.validate("change").catch(Hr=>void 0))},{flush:"post",deep:!0}),watch(()=>z.visible,Cr=>{var Nr,Hr,Ur,Gr,qr;Cr?((Hr=(Nr=Ce.value)==null?void 0:Nr.updatePopper)==null||Hr.call(Nr),$.filterable&&(z.filteredOptionsCount=z.optionsCount,z.query=$.remote?"":z.selectedLabel,(Gr=(Ur=_e.value)==null?void 0:Ur.focus)==null||Gr.call(Ur),$.multiple?(qr=pe.value)==null||qr.focus():z.selectedLabel&&(z.currentPlaceholder=`${z.selectedLabel}`,z.selectedLabel=""),Nn(z.query),!$.multiple&&!$.remote&&(Fe.value.query="",triggerRef(Fe),triggerRef(ze)))):($.filterable&&(isFunction$5($.filterMethod)&&$.filterMethod(""),isFunction$5($.remoteMethod)&&$.remoteMethod("")),pe.value&&pe.value.blur(),z.query="",z.previousQuery=null,z.selectedLabel="",z.inputLength=20,z.menuVisibleOnFocus=!1,Un(),nextTick(()=>{pe.value&&pe.value.value===""&&z.selected.length===0&&(z.currentPlaceholder=z.cachedPlaceHolder)}),$.multiple||(z.selected&&($.filterable&&$.allowCreate&&z.createdSelected&&z.createdLabel?z.selectedLabel=z.createdLabel:z.selectedLabel=z.selected.currentLabel,$.filterable&&(z.query=z.selectedLabel)),$.filterable&&(z.currentPlaceholder=z.cachedPlaceHolder))),oe.emit("visible-change",Cr)}),watch(()=>z.options.entries(),()=>{var Cr,Nr,Hr;if(!isClient$2)return;(Nr=(Cr=Ce.value)==null?void 0:Cr.updatePopper)==null||Nr.call(Cr),$.multiple&&Dn();const Ur=((Hr=xe.value)==null?void 0:Hr.querySelectorAll("input"))||[];Array.from(Ur).includes(document.activeElement)||zn(),$.defaultFirstOption&&($.filterable||$.remote)&&z.filteredOptionsCount&&Bn()},{flush:"post"}),watch(()=>z.hoverIndex,Cr=>{isNumber$5(Cr)&&Cr>-1?Ne.value=xn.value[Cr]||{}:Ne.value={},xn.value.forEach(Nr=>{Nr.hover=Ne.value===Nr})});const Dn=()=>{nextTick(()=>{var Cr,Nr;if(!le.value)return;const Hr=le.value.$el.querySelector("input");Lt=Lt||(Hr.clientHeight>0?Hr.clientHeight+2:0);const Ur=$e.value,Gr=getComponentSize(On.value||(hn==null?void 0:hn.size)),qr=On.value||Gr===Lt||Lt<=0?Gr:Lt;!(Hr.offsetParent===null)&&(Hr.style.height=`${(z.selected.length===0?qr:Math.max(Ur?Ur.clientHeight+(Ur.clientHeight>qr?6:0):0,qr))-2}px`),z.tagInMultiLine=Number.parseFloat(Hr.style.height)>=qr,z.visible&&Tn.value!==!1&&((Nr=(Cr=Ce.value)==null?void 0:Cr.updatePopper)==null||Nr.call(Cr))})},Nn=async Cr=>{if(!(z.previousQuery===Cr||z.isOnComposition)){if(z.previousQuery===null&&(isFunction$5($.filterMethod)||isFunction$5($.remoteMethod))){z.previousQuery=Cr;return}z.previousQuery=Cr,nextTick(()=>{var Nr,Hr;z.visible&&((Hr=(Nr=Ce.value)==null?void 0:Nr.updatePopper)==null||Hr.call(Nr))}),z.hoverIndex=-1,$.multiple&&$.filterable&&nextTick(()=>{const Nr=pe.value.value.length*15+20;z.inputLength=$.collapseTags?Math.min(50,Nr):Nr,Vn(),Dn()}),$.remote&&isFunction$5($.remoteMethod)?(z.hoverIndex=-1,$.remoteMethod(Cr)):isFunction$5($.filterMethod)?($.filterMethod(Cr),triggerRef(ze)):(z.filteredOptionsCount=z.optionsCount,Fe.value.query=Cr,triggerRef(Fe),triggerRef(ze)),$.defaultFirstOption&&($.filterable||$.remote)&&z.filteredOptionsCount&&(await nextTick(),Bn())}},Vn=()=>{z.currentPlaceholder!==""&&(z.currentPlaceholder=pe.value.value?"":z.cachedPlaceHolder)},Bn=()=>{const Cr=xn.value.filter(Ur=>Ur.visible&&!Ur.disabled&&!Ur.states.groupDisabled),Nr=Cr.find(Ur=>Ur.created),Hr=Cr[0];z.hoverIndex=Zn(xn.value,Nr||Hr)},zn=()=>{var Cr;if($.multiple)z.selectedLabel="";else{const Hr=Xn($.modelValue);(Cr=Hr.props)!=null&&Cr.created?(z.createdLabel=Hr.props.value,z.createdSelected=!0):z.createdSelected=!1,z.selectedLabel=Hr.currentLabel,z.selected=Hr,$.filterable&&(z.query=z.selectedLabel);return}const Nr=[];Array.isArray($.modelValue)&&$.modelValue.forEach(Hr=>{Nr.push(Xn(Hr))}),z.selected=Nr,nextTick(()=>{Dn()})},Xn=Cr=>{let Nr;const Hr=toRawType(Cr).toLowerCase()==="object",Ur=toRawType(Cr).toLowerCase()==="null",Gr=toRawType(Cr).toLowerCase()==="undefined";for(let kr=z.cachedOptions.size-1;kr>=0;kr--){const Rr=kn.value[kr];if(Hr?get$1(Rr.value,$.valueKey)===get$1(Cr,$.valueKey):Rr.value===Cr){Nr={value:Cr,currentLabel:Rr.currentLabel,isDisabled:Rr.isDisabled};break}}if(Nr)return Nr;const qr=Hr?Cr.label:!Ur&&!Gr?Cr:"",Jr={value:Cr,currentLabel:qr};return $.multiple&&(Jr.hitState=!1),Jr},Un=()=>{setTimeout(()=>{const Cr=$.valueKey;$.multiple?z.selected.length>0?z.hoverIndex=Math.min.apply(null,z.selected.map(Nr=>xn.value.findIndex(Hr=>get$1(Hr,Cr)===get$1(Nr,Cr)))):z.hoverIndex=-1:z.hoverIndex=xn.value.findIndex(Nr=>$r(Nr)===$r(z.selected))},300)},Jn=()=>{var Cr,Nr;lr(),(Nr=(Cr=Ce.value)==null?void 0:Cr.updatePopper)==null||Nr.call(Cr),$.multiple&&Dn()},lr=()=>{var Cr;z.inputWidth=(Cr=le.value)==null?void 0:Cr.$el.offsetWidth},_r=()=>{$.filterable&&z.query!==z.selectedLabel&&(z.query=z.selectedLabel,Nn(z.query))},ir=debounce(()=>{_r()},wn.value),qn=debounce(Cr=>{Nn(Cr.target.value)},wn.value),Yn=Cr=>{isEqual$1($.modelValue,Cr)||oe.emit(CHANGE_EVENT,Cr)},Wn=Cr=>{if(Cr.code!==EVENT_CODE.delete){if(Cr.target.value.length<=0&&!gr()){const Nr=$.modelValue.slice();Nr.pop(),oe.emit(UPDATE_MODEL_EVENT,Nr),Yn(Nr)}Cr.target.value.length===1&&$.modelValue.length===0&&(z.currentPlaceholder=z.cachedPlaceHolder)}},tr=(Cr,Nr)=>{const Hr=z.selected.indexOf(Nr);if(Hr>-1&&!bn.value){const Ur=$.modelValue.slice();Ur.splice(Hr,1),oe.emit(UPDATE_MODEL_EVENT,Ur),Yn(Ur),oe.emit("remove-tag",Nr.value)}Cr.stopPropagation()},pr=Cr=>{Cr.stopPropagation();const Nr=$.multiple?[]:"";if(!isString$7(Nr))for(const Hr of z.selected)Hr.isDisabled&&Nr.push(Hr.value);oe.emit(UPDATE_MODEL_EVENT,Nr),Yn(Nr),z.hoverIndex=-1,z.visible=!1,oe.emit("clear")},Gn=(Cr,Nr)=>{var Hr;if($.multiple){const Ur=($.modelValue||[]).slice(),Gr=Zn(Ur,Cr.value);Gr>-1?Ur.splice(Gr,1):($.multipleLimit<=0||Ur.length<$.multipleLimit)&&Ur.push(Cr.value),oe.emit(UPDATE_MODEL_EVENT,Ur),Yn(Ur),Cr.created&&(z.query="",Nn(""),z.inputLength=20),$.filterable&&((Hr=pe.value)==null||Hr.focus())}else oe.emit(UPDATE_MODEL_EVENT,Cr.value),Yn(Cr.value),z.visible=!1;z.isSilentBlur=Nr,rr(),!z.visible&&nextTick(()=>{mr(Cr)})},Zn=(Cr=[],Nr)=>{if(!isObject$8(Nr))return Cr.indexOf(Nr);const Hr=$.valueKey;let Ur=-1;return Cr.some((Gr,qr)=>toRaw(get$1(Gr,Hr))===get$1(Nr,Hr)?(Ur=qr,!0):!1),Ur},rr=()=>{z.softFocus=!0;const Cr=pe.value||le.value;Cr&&(Cr==null||Cr.focus())},mr=Cr=>{var Nr,Hr,Ur,Gr,qr;const Jr=Array.isArray(Cr)?Cr[0]:Cr;let kr=null;if(Jr!=null&&Jr.value){const Rr=xn.value.filter(Kr=>Kr.value===Jr.value);Rr.length>0&&(kr=Rr[0].$el)}if(Ce.value&&kr){const Rr=(Gr=(Ur=(Hr=(Nr=Ce.value)==null?void 0:Nr.popperRef)==null?void 0:Hr.contentRef)==null?void 0:Ur.querySelector)==null?void 0:Gr.call(Ur,`.${ie.be("dropdown","wrap")}`);Rr&&scrollIntoView(Rr,kr)}(qr=Ie.value)==null||qr.handleScroll()},Sr=Cr=>{z.optionsCount++,z.filteredOptionsCount++,z.options.set(Cr.value,Cr),z.cachedOptions.set(Cr.value,Cr)},ar=(Cr,Nr)=>{z.options.get(Cr)===Nr&&(z.optionsCount--,z.filteredOptionsCount--,z.options.delete(Cr))},xr=Cr=>{Cr.code!==EVENT_CODE.backspace&&gr(!1),z.inputLength=pe.value.value.length*15+20,Dn()},gr=Cr=>{if(!Array.isArray(z.selected))return;const Nr=z.selected[z.selected.length-1];if(Nr)return Cr===!0||Cr===!1?(Nr.hitState=Cr,Cr):(Nr.hitState=!Nr.hitState,Nr.hitState)},Pr=Cr=>{const Nr=Cr.target.value;if(Cr.type==="compositionend")z.isOnComposition=!1,nextTick(()=>Nn(Nr));else{const Hr=Nr[Nr.length-1]||"";z.isOnComposition=!isKorean(Hr)}},dr=()=>{nextTick(()=>mr(z.selected))},sr=Cr=>{z.softFocus?z.softFocus=!1:(($.automaticDropdown||$.filterable)&&($.filterable&&!z.visible&&(z.menuVisibleOnFocus=!0),z.visible=!0),oe.emit("focus",Cr))},cr=()=>{var Cr,Nr,Hr;z.visible=!1,(Cr=le.value)==null||Cr.blur(),(Hr=(Nr=_e.value)==null?void 0:Nr.blur)==null||Hr.call(Nr)},hr=Cr=>{nextTick(()=>{z.isSilentBlur?z.isSilentBlur=!1:oe.emit("blur",Cr)}),z.softFocus=!1},Ar=Cr=>{pr(Cr)},Dr=()=>{z.visible=!1},Lr=Cr=>{z.visible&&(Cr.preventDefault(),Cr.stopPropagation(),z.visible=!1)},Mr=Cr=>{var Nr;Cr&&!z.mouseEnter||bn.value||(z.menuVisibleOnFocus?z.menuVisibleOnFocus=!1:(!Ce.value||!Ce.value.isFocusInsideContent())&&(z.visible=!z.visible),z.visible&&((Nr=pe.value||le.value)==null||Nr.focus()))},Er=()=>{z.visible?xn.value[z.hoverIndex]&&Gn(xn.value[z.hoverIndex],void 0):Mr()},$r=Cr=>isObject$8(Cr.value)?get$1(Cr.value,$.valueKey):Cr.value,ur=computed(()=>xn.value.filter(Cr=>Cr.visible).every(Cr=>Cr.disabled)),er=computed(()=>z.selected.slice(0,$.maxCollapseTags)),or=computed(()=>z.selected.slice($.maxCollapseTags)),Tr=Cr=>{if(!z.visible){z.visible=!0;return}if(!(z.options.size===0||z.filteredOptionsCount===0)&&!z.isOnComposition&&!ur.value){Cr==="next"?(z.hoverIndex++,z.hoverIndex===z.options.size&&(z.hoverIndex=0)):Cr==="prev"&&(z.hoverIndex--,z.hoverIndex<0&&(z.hoverIndex=z.options.size-1));const Nr=xn.value[z.hoverIndex];(Nr.disabled===!0||Nr.states.groupDisabled===!0||!Nr.visible)&&Tr(Cr),nextTick(()=>mr(Ne.value))}};return{optionList:At,optionsArray:xn,selectSize:On,handleResize:Jn,debouncedOnInputChange:ir,debouncedQueryChange:qn,deletePrevTag:Wn,deleteTag:tr,deleteSelected:pr,handleOptionSelect:Gn,scrollToOption:mr,readonly:_n,resetInputHeight:Dn,showClose:Cn,iconComponent:En,iconReverse:$n,showNewOption:An,collapseTagSize:Mn,setSelected:zn,managePlaceholder:Vn,selectDisabled:bn,emptyText:Tn,toggleLastOptionHitState:gr,resetInputState:xr,handleComposition:Pr,onOptionCreate:Sr,onOptionDestroy:ar,handleMenuEnter:dr,handleFocus:sr,blur:cr,handleBlur:hr,handleClearClick:Ar,handleClose:Dr,handleKeydownEscape:Lr,toggleMenu:Mr,selectOption:Er,getValueKey:$r,navigateOptions:Tr,dropMenuVisible:Fn,queryChange:Fe,groupQueryChange:ze,showTagList:er,collapseTagList:or,reference:le,input:pe,iOSInput:_e,tooltipRef:Ce,tags:$e,selectWrapper:xe,scrollbar:Ie,handleMouseEnter:()=>{z.mouseEnter=!0},handleMouseLeave:()=>{z.mouseEnter=!1}}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup($,{slots:z,emit:oe}){let ae=[];function ie(le,pe){if(le.length!==pe.length)return!1;for(const[_e]of le.entries())if(le[_e]!=pe[_e])return!1;return!0}return()=>{var le,pe;const _e=(le=z.default)==null?void 0:le.call(z),Ce=[];function $e(xe){Array.isArray(xe)&&xe.forEach(Ie=>{var Ne,Fe,ze,At;const Lt=(Ne=(Ie==null?void 0:Ie.type)||{})==null?void 0:Ne.name;Lt==="ElOptionGroup"?$e(!isString$7(Ie.children)&&!Array.isArray(Ie.children)&&isFunction$5((Fe=Ie.children)==null?void 0:Fe.default)?(ze=Ie.children)==null?void 0:ze.default():Ie.children):Lt==="ElOption"?Ce.push((At=Ie.props)==null?void 0:At.label):Array.isArray(Ie.children)&&$e(Ie.children)})}return _e.length&&$e((pe=_e[0])==null?void 0:pe.children),ie(Ce,ae)||(ae=Ce,oe("update-options",Ce)),_e}}});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:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ee,default:"bottom-start"}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,z){const oe=useNamespace("select"),ae=useNamespace("input"),{t:ie}=useLocale(),le=useSelectStates($),{optionList:pe,optionsArray:_e,selectSize:Ce,readonly:$e,handleResize:xe,collapseTagSize:Ie,debouncedOnInputChange:Ne,debouncedQueryChange:Fe,deletePrevTag:ze,deleteTag:At,deleteSelected:Lt,handleOptionSelect:hn,scrollToOption:vn,setSelected:_n,resetInputHeight:bn,managePlaceholder:Cn,showClose:En,selectDisabled:$n,iconComponent:wn,iconReverse:Tn,showNewOption:xn,emptyText:kn,toggleLastOptionHitState:An,resetInputState:On,handleComposition:Mn,onOptionCreate:Fn,onOptionDestroy:Dn,handleMenuEnter:Nn,handleFocus:Vn,blur:Bn,handleBlur:zn,handleClearClick:Xn,handleClose:Un,handleKeydownEscape:Jn,toggleMenu:lr,selectOption:_r,getValueKey:ir,navigateOptions:qn,dropMenuVisible:Yn,reference:Wn,input:tr,iOSInput:pr,tooltipRef:Gn,tags:Zn,selectWrapper:rr,scrollbar:mr,queryChange:Sr,groupQueryChange:ar,handleMouseEnter:xr,handleMouseLeave:gr,showTagList:Pr,collapseTagList:dr}=useSelect$2($,le,z),{focus:sr}=useFocus(Wn),{inputWidth:cr,selected:hr,inputLength:Ar,filteredOptionsCount:Dr,visible:Lr,softFocus:Mr,selectedLabel:Er,hoverIndex:$r,query:ur,inputHovering:er,currentPlaceholder:or,menuVisibleOnFocus:Tr,isOnComposition:Or,isSilentBlur:zr,options:Cr,cachedOptions:Nr,optionsCount:Hr,prefixWidth:Ur,tagInMultiLine:Gr}=toRefs(le),qr=computed(()=>{const Yr=[oe.b()],Vr=unref(Ce);return Vr&&Yr.push(oe.m(Vr)),$.disabled&&Yr.push(oe.m("disabled")),Yr}),Jr=computed(()=>({maxWidth:`${unref(cr)-32}px`,width:"100%"})),kr=computed(()=>({maxWidth:`${unref(cr)>123?unref(cr)-123:unref(cr)-75}px`}));provide(selectKey,reactive({props:$,options:Cr,optionsArray:_e,cachedOptions:Nr,optionsCount:Hr,filteredOptionsCount:Dr,hoverIndex:$r,handleOptionSelect:hn,onOptionCreate:Fn,onOptionDestroy:Dn,selectWrapper:rr,selected:hr,setSelected:_n,queryChange:Sr,groupQueryChange:ar})),onMounted(()=>{le.cachedPlaceHolder=or.value=$.placeholder||(()=>ie("el.select.placeholder")),$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(or.value=""),useResizeObserver(rr,xe),$.remote&&$.multiple&&bn(),nextTick(()=>{const Yr=Wn.value&&Wn.value.$el;if(Yr&&(cr.value=Yr.getBoundingClientRect().width,z.slots.prefix)){const Vr=Yr.querySelector(`.${ae.e("prefix")}`);Ur.value=Math.max(Vr.getBoundingClientRect().width+5,30)}}),_n()}),$.multiple&&!Array.isArray($.modelValue)&&z.emit(UPDATE_MODEL_EVENT,[]),!$.multiple&&Array.isArray($.modelValue)&&z.emit(UPDATE_MODEL_EVENT,"");const Rr=computed(()=>{var Yr,Vr;return(Vr=(Yr=Gn.value)==null?void 0:Yr.popperRef)==null?void 0:Vr.contentRef});return{isIOS:isIOS$1,onOptionsRendered:Yr=>{pe.value=Yr},tagInMultiLine:Gr,prefixWidth:Ur,selectSize:Ce,readonly:$e,handleResize:xe,collapseTagSize:Ie,debouncedOnInputChange:Ne,debouncedQueryChange:Fe,deletePrevTag:ze,deleteTag:At,deleteSelected:Lt,handleOptionSelect:hn,scrollToOption:vn,inputWidth:cr,selected:hr,inputLength:Ar,filteredOptionsCount:Dr,visible:Lr,softFocus:Mr,selectedLabel:Er,hoverIndex:$r,query:ur,inputHovering:er,currentPlaceholder:or,menuVisibleOnFocus:Tr,isOnComposition:Or,isSilentBlur:zr,options:Cr,resetInputHeight:bn,managePlaceholder:Cn,showClose:En,selectDisabled:$n,iconComponent:wn,iconReverse:Tn,showNewOption:xn,emptyText:kn,toggleLastOptionHitState:An,resetInputState:On,handleComposition:Mn,handleMenuEnter:Nn,handleFocus:Vn,blur:Bn,handleBlur:zn,handleClearClick:Xn,handleClose:Un,handleKeydownEscape:Jn,toggleMenu:lr,selectOption:_r,getValueKey:ir,navigateOptions:qn,dropMenuVisible:Yn,focus:sr,reference:Wn,input:tr,iOSInput:pr,tooltipRef:Gn,popperPaneRef:Rr,tags:Zn,selectWrapper:rr,scrollbar:mr,wrapperKls:qr,selectTagsStyle:Jr,nsSelect:oe,tagTextStyle:kr,handleMouseEnter:xr,handleMouseLeave:gr,showTagList:Pr,collapseTagList:dr}}}),_hoisted_1$p=["disabled","autocomplete"],_hoisted_2$h=["disabled"],_hoisted_3$a={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$a($,z,oe,ae,ie,le){const pe=resolveComponent("el-tag"),_e=resolveComponent("el-tooltip"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-input"),xe=resolveComponent("el-option"),Ie=resolveComponent("el-options"),Ne=resolveComponent("el-scrollbar"),Fe=resolveComponent("el-select-menu"),ze=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass($.wrapperKls),onMouseenter:z[21]||(z[21]=(...At)=>$.handleMouseEnter&&$.handleMouseEnter(...At)),onMouseleave:z[22]||(z[22]=(...At)=>$.handleMouseLeave&&$.handleMouseLeave(...At)),onClick:z[23]||(z[23]=withModifiers((...At)=>$.toggleMenu&&$.toggleMenu(...At),["stop"]))},[createVNode(_e,{ref:"tooltipRef",visible:$.dropMenuVisible,placement:$.placement,teleported:$.teleported,"popper-class":[$.nsSelect.e("popper"),$.popperClass],"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,pure:"",trigger:"click",transition:`${$.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:$.persistent,onShow:$.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",{class:"select-trigger",onMouseenter:z[19]||(z[19]=At=>$.inputHovering=!0),onMouseleave:z[20]||(z[20]=At=>$.inputHovering=!1)},[$.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass([$.nsSelect.e("tags"),$.nsSelect.is("disabled",$.selectDisabled)]),style:normalizeStyle$1($.selectTagsStyle)},[$.collapseTags&&$.selected.length?(openBlock(),createBlock(Transition,{key:0,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,At=>(openBlock(),createBlock(pe,{key:$.getValueKey(At),closable:!$.selectDisabled&&!At.isDisabled,size:$.collapseTagSize,hit:At.hitState,type:$.tagType,"disable-transitions":"",onClose:Lt=>$.deleteTag(Lt,At)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1($.tagTextStyle)},toDisplayString$1(At.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),$.selected.length>$.maxCollapseTags?(openBlock(),createBlock(pe,{key:0,closable:!1,size:$.collapseTagSize,type:$.tagType,"disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(_e,{key:0,disabled:$.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:$.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,At=>(openBlock(),createElementBlock("div",{key:$.getValueKey(At),class:normalizeClass($.nsSelect.e("collapse-tag"))},[createVNode(pe,{class:"in-tooltip",closable:!$.selectDisabled&&!At.isDisabled,size:$.collapseTagSize,hit:At.hitState,type:$.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:Lt=>$.deleteTag(Lt,At)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(At.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",!0),$.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.selected,At=>(openBlock(),createBlock(pe,{key:$.getValueKey(At),closable:!$.selectDisabled&&!At.isDisabled,size:$.collapseTagSize,hit:At.hitState,type:$.tagType,"disable-transitions":"",onClose:Lt=>$.deleteTag(Lt,At)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(At.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),$.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":z[0]||(z[0]=At=>$.query=At),type:"text",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.is("disabled",$.selectDisabled)]),disabled:$.selectDisabled,autocomplete:$.autocomplete,style:normalizeStyle$1({marginLeft:$.prefixWidth&&!$.selected.length||$.tagInMultiLine?`${$.prefixWidth}px`:"",flexGrow:1,width:`${$.inputLength/($.inputWidth-32)}%`,maxWidth:`${$.inputWidth-42}px`}),onFocus:z[1]||(z[1]=(...At)=>$.handleFocus&&$.handleFocus(...At)),onBlur:z[2]||(z[2]=(...At)=>$.handleBlur&&$.handleBlur(...At)),onKeyup:z[3]||(z[3]=(...At)=>$.managePlaceholder&&$.managePlaceholder(...At)),onKeydown:[z[4]||(z[4]=(...At)=>$.resetInputState&&$.resetInputState(...At)),z[5]||(z[5]=withKeys(withModifiers(At=>$.navigateOptions("next"),["prevent"]),["down"])),z[6]||(z[6]=withKeys(withModifiers(At=>$.navigateOptions("prev"),["prevent"]),["up"])),z[7]||(z[7]=withKeys((...At)=>$.handleKeydownEscape&&$.handleKeydownEscape(...At),["esc"])),z[8]||(z[8]=withKeys(withModifiers((...At)=>$.selectOption&&$.selectOption(...At),["stop","prevent"]),["enter"])),z[9]||(z[9]=withKeys((...At)=>$.deletePrevTag&&$.deletePrevTag(...At),["delete"])),z[10]||(z[10]=withKeys(At=>$.visible=!1,["tab"]))],onCompositionstart:z[11]||(z[11]=(...At)=>$.handleComposition&&$.handleComposition(...At)),onCompositionupdate:z[12]||(z[12]=(...At)=>$.handleComposition&&$.handleComposition(...At)),onCompositionend:z[13]||(z[13]=(...At)=>$.handleComposition&&$.handleComposition(...At)),onInput:z[14]||(z[14]=(...At)=>$.debouncedQueryChange&&$.debouncedQueryChange(...At))},null,46,_hoisted_1$p)),[[vModelText,$.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),$.isIOS&&!$.multiple&&$.filterable&&$.readonly?(openBlock(),createElementBlock("input",{key:1,ref:"iOSInput",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.em("input","iOS")]),disabled:$.selectDisabled,type:"text"},null,10,_hoisted_2$h)):createCommentVNode("v-if",!0),createVNode($e,{id:$.id,ref:"reference",modelValue:$.selectedLabel,"onUpdate:modelValue":z[15]||(z[15]=At=>$.selectedLabel=At),type:"text",placeholder:typeof $.currentPlaceholder=="function"?$.currentPlaceholder():$.currentPlaceholder,name:$.name,autocomplete:$.autocomplete,size:$.selectSize,disabled:$.selectDisabled,readonly:$.readonly,"validate-event":!1,class:normalizeClass([$.nsSelect.is("focus",$.visible)]),tabindex:$.multiple&&$.filterable?-1:void 0,onFocus:$.handleFocus,onBlur:$.handleBlur,onInput:$.debouncedOnInputChange,onPaste:$.debouncedOnInputChange,onCompositionstart:$.handleComposition,onCompositionupdate:$.handleComposition,onCompositionend:$.handleComposition,onKeydown:[z[16]||(z[16]=withKeys(withModifiers(At=>$.navigateOptions("next"),["stop","prevent"]),["down"])),z[17]||(z[17]=withKeys(withModifiers(At=>$.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers($.selectOption,["stop","prevent"]),["enter"]),withKeys($.handleKeydownEscape,["esc"]),z[18]||(z[18]=withKeys(At=>$.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[$.iconComponent&&!$.showClose?(openBlock(),createBlock(Ce,{key:0,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.showClose&&$.clearIcon?(openBlock(),createBlock(Ce,{key:1,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon")]),onClick:$.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[$.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$a,[renderSlot($.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:withCtx(()=>[createVNode(Fe,null,{default:withCtx(()=>[withDirectives(createVNode(Ne,{ref:"scrollbar",tag:"ul","wrap-class":$.nsSelect.be("dropdown","wrap"),"view-class":$.nsSelect.be("dropdown","list"),class:normalizeClass([$.nsSelect.is("empty",!$.allowCreate&&!!$.query&&$.filteredOptionsCount===0)])},{default:withCtx(()=>[$.showNewOption?(openBlock(),createBlock(xe,{key:0,value:$.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(Ie,{onUpdateOptions:$.onOptionsRendered},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[vShow,$.options.size>0&&!$.loading]]),$.emptyText&&(!$.allowCreate||$.loading||$.allowCreate&&$.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[$.$slots.empty?renderSlot($.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass($.nsSelect.be("dropdown","empty"))},toDisplayString$1($.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[ze,$.handleClose,$.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:{type:Boolean,default:!1}},setup($){const z=useNamespace("select"),oe=ref(!0),ae=getCurrentInstance(),ie=ref([]);provide(selectGroupKey,reactive({...toRefs($)}));const le=inject(selectKey);onMounted(()=>{ie.value=pe(ae.subTree)});const pe=Ce=>{const $e=[];return Array.isArray(Ce.children)&&Ce.children.forEach(xe=>{var Ie;xe.type&&xe.type.name==="ElOption"&&xe.component&&xe.component.proxy?$e.push(xe.component.proxy):(Ie=xe.children)!=null&&Ie.length&&$e.push(...pe(xe))}),$e},{groupQueryChange:_e}=toRaw(le);return watch(_e,()=>{oe.value=ie.value.some(Ce=>Ce.visible===!0)},{flush:"post"}),{visible:oe,ns:z}}});function _sfc_render$9($,z,oe,ae,ie,le){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass($.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass($.ns.be("group","title"))},toDisplayString$1($.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass($.ns.b("group"))},[renderSlot($.$slots,"default")],2)])],2)),[[vShow,$.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($,{emit:z}){const oe=$,{t:ae}=useLocale(),ie=useNamespace("pagination"),le=usePagination(),pe=ref(oe.pageSize);watch(()=>oe.pageSizes,($e,xe)=>{if(!isEqual$1($e,xe)&&Array.isArray($e)){const Ie=$e.includes(oe.pageSize)?oe.pageSize:oe.pageSizes[0];z("page-size-change",Ie)}}),watch(()=>oe.pageSize,$e=>{pe.value=$e});const _e=computed(()=>oe.pageSizes);function Ce($e){var xe;$e!==pe.value&&(pe.value=$e,(xe=le.handleSizeChange)==null||xe.call(le,Number($e)))}return($e,xe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":pe.value,disabled:$e.disabled,"popper-class":$e.popperClass,size:$e.size,"validate-event":!1,onChange:Ce},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),Ie=>(openBlock(),createBlock(unref(ElOption),{key:Ie,value:Ie,label:Ie+unref(ae)("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($){const{t:z}=useLocale(),oe=useNamespace("pagination"),{pageCount:ae,disabled:ie,currentPage:le,changeEvent:pe}=usePagination(),_e=ref(),Ce=computed(()=>{var Ie;return(Ie=_e.value)!=null?Ie:le==null?void 0:le.value});function $e(Ie){_e.value=Ie?+Ie:""}function xe(Ie){Ie=Math.trunc(+Ie),pe==null||pe(Ie),_e.value=void 0}return(Ie,Ne)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("jump")),disabled:unref(ie)},[createBaseVNode("span",{class:normalizeClass([unref(oe).e("goto")])},toDisplayString$1(unref(z)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:Ie.size,class:normalizeClass([unref(oe).e("editor"),unref(oe).is("in-pagination")]),min:1,max:unref(ae),disabled:unref(ie),"model-value":unref(Ce),"validate-event":!1,label:unref(z)("el.pagination.page"),type:"number","onUpdate:modelValue":$e,onChange:xe},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref(oe).e("classifier")])},toDisplayString$1(unref(z)("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($){const{t:z}=useLocale(),oe=useNamespace("pagination"),{disabled:ae}=usePagination();return(ie,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("total")),disabled:unref(ae)},toDisplayString$1(unref(z)("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=["aria-current","aria-label","tabindex"],__default__$z=defineComponent({name:"ElPaginationPager"}),_sfc_main$L=defineComponent({...__default__$z,props:paginationPagerProps,emits:["change"],setup($,{emit:z}){const oe=$,ae=useNamespace("pager"),ie=useNamespace("icon"),{t:le}=useLocale(),pe=ref(!1),_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=computed(()=>{const vn=oe.pagerCount,_n=(vn-1)/2,bn=Number(oe.currentPage),Cn=Number(oe.pageCount);let En=!1,$n=!1;Cn>vn&&(bn>vn-_n&&(En=!0),bn<Cn-_n&&($n=!0));const wn=[];if(En&&!$n){const Tn=Cn-(vn-2);for(let xn=Tn;xn<Cn;xn++)wn.push(xn)}else if(!En&&$n)for(let Tn=2;Tn<vn;Tn++)wn.push(Tn);else if(En&&$n){const Tn=Math.floor(vn/2)-1;for(let xn=bn-Tn;xn<=bn+Tn;xn++)wn.push(xn)}else for(let Tn=2;Tn<Cn;Tn++)wn.push(Tn);return wn}),Fe=computed(()=>oe.disabled?-1:0);watchEffect(()=>{const vn=(oe.pagerCount-1)/2;pe.value=!1,_e.value=!1,oe.pageCount>oe.pagerCount&&(oe.currentPage>oe.pagerCount-vn&&(pe.value=!0),oe.currentPage<oe.pageCount-vn&&(_e.value=!0))});function ze(vn=!1){oe.disabled||(vn?Ce.value=!0:$e.value=!0)}function At(vn=!1){vn?xe.value=!0:Ie.value=!0}function Lt(vn){const _n=vn.target;if(_n.tagName.toLowerCase()==="li"&&Array.from(_n.classList).includes("number")){const bn=Number(_n.textContent);bn!==oe.currentPage&&z("change",bn)}else _n.tagName.toLowerCase()==="li"&&Array.from(_n.classList).includes("more")&&hn(vn)}function hn(vn){const _n=vn.target;if(_n.tagName.toLowerCase()==="ul"||oe.disabled)return;let bn=Number(_n.textContent);const Cn=oe.pageCount,En=oe.currentPage,$n=oe.pagerCount-2;_n.className.includes("more")&&(_n.className.includes("quickprev")?bn=En-$n:_n.className.includes("quicknext")&&(bn=En+$n)),Number.isNaN(+bn)||(bn<1&&(bn=1),bn>Cn&&(bn=Cn)),bn!==En&&z("change",bn)}return(vn,_n)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(ae).b()),onClick:hn,onKeyup:withKeys(Lt,["enter"])},[vn.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(ae).is("active",vn.currentPage===1),unref(ae).is("disabled",vn.disabled)],"number"]),"aria-current":vn.currentPage===1,"aria-label":unref(le)("el.pagination.currentPage",{pager:1}),tabindex:unref(Fe)}," 1 ",10,_hoisted_2$g)):createCommentVNode("v-if",!0),pe.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref(ie).b(),unref(ae).is("disabled",vn.disabled)]),tabindex:unref(Fe),"aria-label":unref(le)("el.pagination.prevPages",{pager:vn.pagerCount-2}),onMouseenter:_n[0]||(_n[0]=bn=>ze(!0)),onMouseleave:_n[1]||(_n[1]=bn=>Ce.value=!1),onFocus:_n[2]||(_n[2]=bn=>At(!0)),onBlur:_n[3]||(_n[3]=bn=>xe.value=!1)},[(Ce.value||xe.value)&&!vn.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(Ne),bn=>(openBlock(),createElementBlock("li",{key:bn,class:normalizeClass([[unref(ae).is("active",vn.currentPage===bn),unref(ae).is("disabled",vn.disabled)],"number"]),"aria-current":vn.currentPage===bn,"aria-label":unref(le)("el.pagination.currentPage",{pager:bn}),tabindex:unref(Fe)},toDisplayString$1(bn),11,_hoisted_4$6))),128)),_e.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref(ie).b(),unref(ae).is("disabled",vn.disabled)]),tabindex:unref(Fe),"aria-label":unref(le)("el.pagination.nextPages",{pager:vn.pagerCount-2}),onMouseenter:_n[4]||(_n[4]=bn=>ze()),onMouseleave:_n[5]||(_n[5]=bn=>$e.value=!1),onFocus:_n[6]||(_n[6]=bn=>At()),onBlur:_n[7]||(_n[7]=bn=>Ie.value=!1)},[($e.value||Ie.value)&&!vn.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),vn.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(ae).is("active",vn.currentPage===vn.pageCount),unref(ae).is("disabled",vn.disabled)],"number"]),"aria-current":vn.currentPage===vn.pageCount,"aria-label":unref(le)("el.pagination.currentPage",{pager:vn.pageCount}),tabindex:unref(Fe)},toDisplayString$1(vn.pageCount),11,_hoisted_6)):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=$=>typeof $!="number",paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:$=>isNumber$5($)&&Math.trunc($)===$&&$>4&&$<22&&$%2===1,default:7},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":$=>isNumber$5($),"update:page-size":$=>isNumber$5($),"size-change":$=>isNumber$5($),"current-change":$=>isNumber$5($),"prev-click":$=>isNumber$5($),"next-click":$=>isNumber$5($)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup($,{emit:z,slots:oe}){const{t:ae}=useLocale(),ie=useNamespace("pagination"),le=getCurrentInstance().vnode.props||{},pe="onUpdate:currentPage"in le||"onUpdate:current-page"in le||"onCurrentChange"in le,_e="onUpdate:pageSize"in le||"onUpdate:page-size"in le||"onSizeChange"in le,Ce=computed(()=>{if(isAbsent($.total)&&isAbsent($.pageCount)||!isAbsent($.currentPage)&&!pe)return!1;if($.layout.includes("sizes")){if(isAbsent($.pageCount)){if(!isAbsent($.total)&&!isAbsent($.pageSize)&&!_e)return!1}else if(!_e)return!1}return!0}),$e=ref(isAbsent($.defaultPageSize)?10:$.defaultPageSize),xe=ref(isAbsent($.defaultCurrentPage)?1:$.defaultCurrentPage),Ie=computed({get(){return isAbsent($.pageSize)?$e.value:$.pageSize},set(_n){isAbsent($.pageSize)&&($e.value=_n),_e&&(z("update:page-size",_n),z("size-change",_n))}}),Ne=computed(()=>{let _n=0;return isAbsent($.pageCount)?isAbsent($.total)||(_n=Math.max(1,Math.ceil($.total/Ie.value))):_n=$.pageCount,_n}),Fe=computed({get(){return isAbsent($.currentPage)?xe.value:$.currentPage},set(_n){let bn=_n;_n<1?bn=1:_n>Ne.value&&(bn=Ne.value),isAbsent($.currentPage)&&(xe.value=bn),pe&&(z("update:current-page",bn),z("current-change",bn))}});watch(Ne,_n=>{Fe.value>_n&&(Fe.value=_n)});function ze(_n){Fe.value=_n}function At(_n){Ie.value=_n;const bn=Ne.value;Fe.value>bn&&(Fe.value=bn)}function Lt(){$.disabled||(Fe.value-=1,z("prev-click",Fe.value))}function hn(){$.disabled||(Fe.value+=1,z("next-click",Fe.value))}function vn(_n,bn){_n&&(_n.props||(_n.props={}),_n.props.class=[_n.props.class,bn].join(" "))}return provide(elPaginationKey,{pageCount:Ne,disabled:computed(()=>$.disabled),currentPage:Fe,changeEvent:ze,handleSizeChange:At}),()=>{var _n,bn;if(!Ce.value)return ae("el.pagination.deprecationWarning"),null;if(!$.layout||$.hideOnSinglePage&&Ne.value<=1)return null;const Cn=[],En=[],$n=h$3("div",{class:ie.e("rightwrapper")},En),wn={prev:h$3(Prev,{disabled:$.disabled,currentPage:Fe.value,prevText:$.prevText,prevIcon:$.prevIcon,onClick:Lt}),jumper:h$3(Jumper,{size:$.small?"small":"default"}),pager:h$3(Pager,{currentPage:Fe.value,pageCount:Ne.value,pagerCount:$.pagerCount,onChange:ze,disabled:$.disabled}),next:h$3(Next,{disabled:$.disabled,currentPage:Fe.value,pageCount:Ne.value,nextText:$.nextText,nextIcon:$.nextIcon,onClick:hn}),sizes:h$3(Sizes,{pageSize:Ie.value,pageSizes:$.pageSizes,popperClass:$.popperClass,disabled:$.disabled,size:$.small?"small":"default"}),slot:(bn=(_n=oe==null?void 0:oe.default)==null?void 0:_n.call(oe))!=null?bn:null,total:h$3(Total,{total:isAbsent($.total)?0:$.total})},Tn=$.layout.split(",").map(kn=>kn.trim());let xn=!1;return Tn.forEach(kn=>{if(kn==="->"){xn=!0;return}xn?En.push(wn[kn]):Cn.push(wn[kn])}),vn(Cn[0],ie.is("first")),vn(Cn[Cn.length-1],ie.is("last")),xn&&En.length>0&&(vn(En[0],ie.is("first")),vn(En[En.length-1],ie.is("last")),Cn.push($n)),h$3("div",{class:[ie.b(),ie.is("background",$.background),{[ie.m("small")]:$.small}]},Cn)}}});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:$=>$ instanceof MouseEvent,cancel:$=>$ instanceof MouseEvent},__default__$y=defineComponent({name:"ElPopconfirm"}),_sfc_main$K=defineComponent({...__default__$y,props:popconfirmProps,emits:popconfirmEmits,setup($,{emit:z}){const oe=$,{t:ae}=useLocale(),ie=useNamespace("popconfirm"),le=ref(),pe=()=>{var Ne,Fe;(Fe=(Ne=le.value)==null?void 0:Ne.onClose)==null||Fe.call(Ne)},_e=computed(()=>({width:addUnit(oe.width)})),Ce=Ne=>{z("confirm",Ne),pe()},$e=Ne=>{z("cancel",Ne),pe()},xe=computed(()=>oe.confirmButtonText||ae("el.popconfirm.confirmButtonText")),Ie=computed(()=>oe.cancelButtonText||ae("el.popconfirm.cancelButtonText"));return(Ne,Fe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:le,trigger:"click",effect:"light"},Ne.$attrs,{"popper-class":`${unref(ie).namespace.value}-popover`,"popper-style":unref(_e),teleported:Ne.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Ne.hideAfter,persistent:Ne.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("main"))},[!Ne.hideIcon&&Ne.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("icon")),style:normalizeStyle$1({color:Ne.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ne.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(Ne.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(ie).e("action"))},[createVNode(unref(ElButton),{size:"small",type:Ne.cancelButtonType==="text"?"":Ne.cancelButtonType,text:Ne.cancelButtonType==="text",onClick:$e},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:Ne.confirmButtonType==="text"?"":Ne.confirmButtonType,text:Ne.confirmButtonType==="text",onClick:Ce},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(xe)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[Ne.$slots.reference?renderSlot(Ne.$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":$=>isBoolean$3($),"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($,{expose:z,emit:oe}){const ae=$,ie=computed(()=>ae[updateEventKeyRaw]),le=useNamespace("popover"),pe=ref(),_e=computed(()=>{var Lt;return(Lt=unref(pe))==null?void 0:Lt.popperRef}),Ce=computed(()=>[{width:addUnit(ae.width)},ae.popperStyle]),$e=computed(()=>[le.b(),ae.popperClass,{[le.m("plain")]:!!ae.content}]),xe=computed(()=>ae.transition===`${le.namespace.value}-fade-in-linear`),Ie=()=>{var Lt;(Lt=pe.value)==null||Lt.hide()},Ne=()=>{oe("before-enter")},Fe=()=>{oe("before-leave")},ze=()=>{oe("after-enter")},At=()=>{oe("update:visible",!1),oe("after-leave")};return z({popperRef:_e,hide:Ie}),(Lt,hn)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:pe},Lt.$attrs,{trigger:Lt.trigger,placement:Lt.placement,disabled:Lt.disabled,visible:Lt.visible,transition:Lt.transition,"popper-options":Lt.popperOptions,tabindex:Lt.tabindex,content:Lt.content,offset:Lt.offset,"show-after":Lt.showAfter,"hide-after":Lt.hideAfter,"auto-close":Lt.autoClose,"show-arrow":Lt.showArrow,"aria-label":Lt.title,effect:Lt.effect,enterable:Lt.enterable,"popper-class":unref($e),"popper-style":unref(Ce),teleported:Lt.teleported,persistent:Lt.persistent,"gpu-acceleration":unref(xe),"onUpdate:visible":unref(ie),onBeforeShow:Ne,onBeforeHide:Fe,onShow:ze,onHide:At}),{content:withCtx(()=>[Lt.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("title")),role:"title"},toDisplayString$1(Lt.title),3)):createCommentVNode("v-if",!0),renderSlot(Lt.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Lt.content),1)])]),default:withCtx(()=>[Lt.$slots.reference?renderSlot(Lt.$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=($,z)=>{const oe=z.arg||z.value,ae=oe==null?void 0:oe.popperRef;ae&&(ae.triggerRef=$)};var PopoverDirective={mounted($,z){attachEvents($,z)},updated($,z){attachEvents($,z)}};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:$=>$>=0&&$<=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:$=>`${$}%`}}),_hoisted_1$l=["aria-valuenow"],_hoisted_2$f={viewBox:"0 0 100 100"},_hoisted_3$8=["d","stroke","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($){const z=$,oe={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},ae=useNamespace("progress"),ie=computed(()=>({width:`${z.percentage}%`,animationDuration:`${z.duration}s`,backgroundColor:vn(z.percentage)})),le=computed(()=>(z.strokeWidth/z.width*100).toFixed(1)),pe=computed(()=>["circle","dashboard"].includes(z.type)?Number.parseInt(`${50-Number.parseFloat(le.value)/2}`,10):0),_e=computed(()=>{const _n=pe.value,bn=z.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${bn?"":"-"}${_n}
|
||
a ${_n} ${_n} 0 1 1 0 ${bn?"-":""}${_n*2}
|
||
a ${_n} ${_n} 0 1 1 0 ${bn?"":"-"}${_n*2}
|
||
`}),Ce=computed(()=>2*Math.PI*pe.value),$e=computed(()=>z.type==="dashboard"?.75:1),xe=computed(()=>`${-1*Ce.value*(1-$e.value)/2}px`),Ie=computed(()=>({strokeDasharray:`${Ce.value*$e.value}px, ${Ce.value}px`,strokeDashoffset:xe.value})),Ne=computed(()=>({strokeDasharray:`${Ce.value*$e.value*(z.percentage/100)}px, ${Ce.value}px`,strokeDashoffset:xe.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),Fe=computed(()=>{let _n;return z.color?_n=vn(z.percentage):_n=oe[z.status]||oe.default,_n}),ze=computed(()=>z.status==="warning"?warning_filled_default:z.type==="line"?z.status==="success"?circle_check_default:circle_close_default:z.status==="success"?check_default:close_default),At=computed(()=>z.type==="line"?12+z.strokeWidth*.4:z.width*.111111+2),Lt=computed(()=>z.format(z.percentage));function hn(_n){const bn=100/_n.length;return _n.map((En,$n)=>isString$7(En)?{color:En,percentage:($n+1)*bn}:En).sort((En,$n)=>En.percentage-$n.percentage)}const vn=_n=>{var bn;const{color:Cn}=z;if(isFunction$5(Cn))return Cn(_n);if(isString$7(Cn))return Cn;{const En=hn(Cn);for(const $n of En)if($n.percentage>_n)return $n.color;return(bn=En[En.length-1])==null?void 0:bn.color}};return(_n,bn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(_n.type),unref(ae).is(_n.status),{[unref(ae).m("without-text")]:!_n.showText,[unref(ae).m("text-inside")]:_n.textInside}]),role:"progressbar","aria-valuenow":_n.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_n.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ae).be("bar","outer")),style:normalizeStyle$1({height:`${_n.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(ae).be("bar","inner"),{[unref(ae).bem("bar","inner","indeterminate")]:_n.indeterminate},{[unref(ae).bem("bar","inner","striped")]:_n.striped},{[unref(ae).bem("bar","inner","striped-flow")]:_n.stripedFlow}]),style:normalizeStyle$1(unref(ie))},[(_n.showText||_n.$slots.default)&&_n.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).be("bar","innerText"))},[renderSlot(_n.$slots,"default",{percentage:_n.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(Lt)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).b("circle")),style:normalizeStyle$1({height:`${_n.width}px`,width:`${_n.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$f,[createBaseVNode("path",{class:normalizeClass(unref(ae).be("circle","track")),d:unref(_e),stroke:`var(${unref(ae).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":unref(le),fill:"none",style:normalizeStyle$1(unref(Ie))},null,14,_hoisted_3$8),createBaseVNode("path",{class:normalizeClass(unref(ae).be("circle","path")),d:unref(_e),stroke:unref(Fe),fill:"none",opacity:_n.percentage?1:0,"stroke-linecap":_n.strokeLinecap,"stroke-width":unref(le),style:normalizeStyle$1(unref(Ne))},null,14,_hoisted_4$5)]))],6)),(_n.showText||_n.$slots.default)&&!_n.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ae).e("text")),style:normalizeStyle$1({fontSize:`${unref(At)}px`})},[renderSlot(_n.$slots,"default",{percentage:_n.percentage},()=>[_n.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ze))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString$1(unref(Lt)),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]:$=>isNumber$5($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_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($,{expose:z,emit:oe}){const ae=$;function ie(Dn,Nn){const Vn=Xn=>isObject$8(Xn),Bn=Object.keys(Nn).map(Xn=>+Xn).filter(Xn=>{const Un=Nn[Xn];return(Vn(Un)?Un.excluded:!1)?Dn<Xn:Dn<=Xn}).sort((Xn,Un)=>Xn-Un),zn=Nn[Bn[0]];return Vn(zn)&&zn.value||zn}const le=inject(formContextKey,void 0),pe=inject(formItemContextKey,void 0),_e=useFormSize(),Ce=useNamespace("rate"),{inputId:$e,isLabeledByFormItem:xe}=useFormItemInputId(ae,{formItemContext:pe}),Ie=ref(ae.modelValue),Ne=ref(-1),Fe=ref(!0),ze=computed(()=>[Ce.b(),Ce.m(_e.value)]),At=computed(()=>ae.disabled||(le==null?void 0:le.disabled)),Lt=computed(()=>Ce.cssVarBlock({"void-color":ae.voidColor,"disabled-void-color":ae.disabledVoidColor,"fill-color":bn.value})),hn=computed(()=>{let Dn="";return ae.showScore?Dn=ae.scoreTemplate.replace(/\{\s*value\s*\}/,At.value?`${ae.modelValue}`:`${Ie.value}`):ae.showText&&(Dn=ae.texts[Math.ceil(Ie.value)-1]),Dn}),vn=computed(()=>ae.modelValue*100-Math.floor(ae.modelValue)*100),_n=computed(()=>isArray$c(ae.colors)?{[ae.lowThreshold]:ae.colors[0],[ae.highThreshold]:{value:ae.colors[1],excluded:!0},[ae.max]:ae.colors[2]}:ae.colors),bn=computed(()=>{const Dn=ie(Ie.value,_n.value);return isObject$8(Dn)?"":Dn}),Cn=computed(()=>{let Dn="";return At.value?Dn=`${vn.value}%`:ae.allowHalf&&(Dn="50%"),{color:bn.value,width:Dn}}),En=computed(()=>{let Dn=isArray$c(ae.icons)?[...ae.icons]:{...ae.icons};return Dn=markRaw(Dn),isArray$c(Dn)?{[ae.lowThreshold]:Dn[0],[ae.highThreshold]:{value:Dn[1],excluded:!0},[ae.max]:Dn[2]}:Dn}),$n=computed(()=>ie(ae.modelValue,En.value)),wn=computed(()=>At.value?isString$7(ae.disabledVoidIcon)?ae.disabledVoidIcon:markRaw(ae.disabledVoidIcon):isString$7(ae.voidIcon)?ae.voidIcon:markRaw(ae.voidIcon)),Tn=computed(()=>ie(Ie.value,En.value));function xn(Dn){const Nn=At.value&&vn.value>0&&Dn-1<ae.modelValue&&Dn>ae.modelValue,Vn=ae.allowHalf&&Fe.value&&Dn-.5<=Ie.value&&Dn>Ie.value;return Nn||Vn}function kn(Dn){ae.clearable&&Dn===ae.modelValue&&(Dn=0),oe(UPDATE_MODEL_EVENT,Dn),ae.modelValue!==Dn&&oe("change",Dn)}function An(Dn){At.value||(ae.allowHalf&&Fe.value?kn(Ie.value):kn(Dn))}function On(Dn){if(At.value)return;let Nn=Ie.value;const Vn=Dn.code;return Vn===EVENT_CODE.up||Vn===EVENT_CODE.right?(ae.allowHalf?Nn+=.5:Nn+=1,Dn.stopPropagation(),Dn.preventDefault()):(Vn===EVENT_CODE.left||Vn===EVENT_CODE.down)&&(ae.allowHalf?Nn-=.5:Nn-=1,Dn.stopPropagation(),Dn.preventDefault()),Nn=Nn<0?0:Nn,Nn=Nn>ae.max?ae.max:Nn,oe(UPDATE_MODEL_EVENT,Nn),oe("change",Nn),Nn}function Mn(Dn,Nn){if(!At.value){if(ae.allowHalf&&Nn){let Vn=Nn.target;hasClass(Vn,Ce.e("item"))&&(Vn=Vn.querySelector(`.${Ce.e("icon")}`)),(Vn.clientWidth===0||hasClass(Vn,Ce.e("decimal")))&&(Vn=Vn.parentNode),Fe.value=Nn.offsetX*2<=Vn.clientWidth,Ie.value=Fe.value?Dn-.5:Dn}else Ie.value=Dn;Ne.value=Dn}}function Fn(){At.value||(ae.allowHalf&&(Fe.value=ae.modelValue!==Math.floor(ae.modelValue)),Ie.value=ae.modelValue,Ne.value=-1)}return watch(()=>ae.modelValue,Dn=>{Ie.value=Dn,Fe.value=ae.modelValue!==Math.floor(ae.modelValue)}),ae.modelValue||oe(UPDATE_MODEL_EVENT,0),z({setCurrentValue:Mn,resetCurrentValue:Fn}),(Dn,Nn)=>{var Vn;return openBlock(),createElementBlock("div",{id:unref($e),class:normalizeClass([unref(ze),unref(Ce).is("disabled",unref(At))]),role:"slider","aria-label":unref(xe)?void 0:Dn.label||"rating","aria-labelledby":unref(xe)?(Vn=unref(pe))==null?void 0:Vn.labelId:void 0,"aria-valuenow":Ie.value,"aria-valuetext":unref(hn)||void 0,"aria-valuemin":"0","aria-valuemax":Dn.max,tabindex:"0",style:normalizeStyle$1(unref(Lt)),onKeydown:On},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.max,(Bn,zn)=>(openBlock(),createElementBlock("span",{key:zn,class:normalizeClass(unref(Ce).e("item")),onMousemove:Xn=>Mn(Bn,Xn),onMouseleave:Fn,onClick:Xn=>An(Bn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref(Ce).e("icon"),{hover:Ne.value===Bn},unref(Ce).is("active",Bn<=Ie.value)])},{default:withCtx(()=>[xn(Bn)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(Tn)),null,null,512)),[[vShow,Bn<=Ie.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(wn)),null,null,512)),[[vShow,!(Bn<=Ie.value)]])],64)),xn(Bn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(Cn)),class:normalizeClass([unref(Ce).e("icon"),unref(Ce).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref($n))))]),_: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(Ce).e("text"))},toDisplayString$1(unref(hn)),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($){const z=$,oe=useNamespace("result"),ae=computed(()=>{const ie=z.icon,le=ie&&IconMap[ie]?IconMap[ie]:"icon-info",pe=IconComponentMap[le]||IconComponentMap["icon-info"];return{class:le,component:pe}});return(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b())},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("icon"))},[renderSlot(ie.$slots,"icon",{},()=>[unref(ae).component?(openBlock(),createBlock(resolveDynamicComponent(unref(ae).component),{key:0,class:normalizeClass(unref(ae).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),ie.title||ie.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).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(oe).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(oe).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(z){return typeof z=="number"&&z!==z};function isEqual($,z){return!!($===z||safeIsNaN($)&&safeIsNaN(z))}function areInputsEqual($,z){if($.length!==z.length)return!1;for(var oe=0;oe<$.length;oe++)if(!isEqual($[oe],z[oe]))return!1;return!0}function memoizeOne($,z){z===void 0&&(z=areInputsEqual);var oe=null;function ae(){for(var ie=[],le=0;le<arguments.length;le++)ie[le]=arguments[le];if(oe&&oe.lastThis===this&&z(ie,oe.lastArgs))return oe.lastResult;var pe=$.apply(this,ie);return oe={lastResult:pe,lastArgs:ie,lastThis:this},pe}return ae.clear=function(){oe=null},ae}const useCache=()=>{const z=getCurrentInstance().proxy.$props;return computed(()=>{const oe=(ae,ie,le)=>({});return z.perfMode?memoize(oe):memoizeOne(oe)})},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:$,atStartEdge:z,layout:oe},ae)=>{let ie,le=0;const pe=Ce=>Ce<0&&z.value||Ce>0&&$.value;return{hasReachedEdge:pe,onWheel:Ce=>{cAF(ie);const $e=Ce[LayoutKeys[oe.value]];pe(le)&&pe(le+$e)||(le+=$e,isFirefox()||Ce.preventDefault(),ie=rAF(()=>{ae(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:$,rowIndex:z})=>`${z}:${$}`},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=($,z)=>$<z?FORWARD:BACKWARD,isHorizontal=$=>$===LTR||$===RTL||$===HORIZONTAL$1,isRTL=$=>$===RTL;let cachedRTLResult=null;function getRTLOffsetType($=!1){if(cachedRTLResult===null||$){const z=document.createElement("div"),oe=z.style;oe.width="50px",oe.height="50px",oe.overflow="scroll",oe.direction="rtl";const ae=document.createElement("div"),ie=ae.style;return ie.width="100px",ie.height="100px",z.appendChild(ae),document.body.appendChild(z),z.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(z.scrollLeft=1,z.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(z),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:$,size:z,bar:oe},ae){const ie={},le=`translate${oe.axis}(${$}px)`;return ie[oe.size]=z,ie.transform=le,ie.msTransform=le,ie.webkitTransform=le,ae==="horizontal"?ie.height="100%":ie.width="100%",ie}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup($,{emit:z}){const oe=computed(()=>$.startGap+$.endGap),ae=useNamespace("virtual-scrollbar"),ie=useNamespace("scrollbar"),le=ref(),pe=ref();let _e=null,Ce=null;const $e=reactive({isDragging:!1,traveled:0}),xe=computed(()=>BAR_MAP[$.layout]),Ie=computed(()=>$.clientSize-unref(oe)),Ne=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===$.layout?Ie.value:$.scrollbarSize}px`,height:`${HORIZONTAL$1===$.layout?$.scrollbarSize:Ie.value}px`,[ScrollbarDirKey[$.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),Fe=computed(()=>{const En=$.ratio,$n=$.clientSize;if(En>=100)return Number.POSITIVE_INFINITY;if(En>=50)return En*$n/100;const wn=$n/3;return Math.floor(Math.min(Math.max(En*$n,SCROLLBAR_MIN_SIZE),wn))}),ze=computed(()=>{if(!Number.isFinite(Fe.value))return{display:"none"};const En=`${Fe.value}px`;return renderThumbStyle({bar:xe.value,size:En,move:$e.traveled},$.layout)}),At=computed(()=>Math.floor($.clientSize-Fe.value-unref(oe))),Lt=()=>{window.addEventListener("mousemove",bn),window.addEventListener("mouseup",_n);const En=unref(pe);En&&(Ce=document.onselectstart,document.onselectstart=()=>!1,En.addEventListener("touchmove",bn),En.addEventListener("touchend",_n))},hn=()=>{window.removeEventListener("mousemove",bn),window.removeEventListener("mouseup",_n),document.onselectstart=Ce,Ce=null;const En=unref(pe);En&&(En.removeEventListener("touchmove",bn),En.removeEventListener("touchend",_n))},vn=En=>{En.stopImmediatePropagation(),!(En.ctrlKey||[1,2].includes(En.button))&&($e.isDragging=!0,$e[xe.value.axis]=En.currentTarget[xe.value.offset]-(En[xe.value.client]-En.currentTarget.getBoundingClientRect()[xe.value.direction]),z("start-move"),Lt())},_n=()=>{$e.isDragging=!1,$e[xe.value.axis]=0,z("stop-move"),hn()},bn=En=>{const{isDragging:$n}=$e;if(!$n||!pe.value||!le.value)return;const wn=$e[xe.value.axis];if(!wn)return;cAF(_e);const Tn=(le.value.getBoundingClientRect()[xe.value.direction]-En[xe.value.client])*-1,xn=pe.value[xe.value.offset]-wn,kn=Tn-xn;_e=rAF(()=>{$e.traveled=Math.max($.startGap,Math.min(kn,At.value)),z("scroll",kn,At.value)})},Cn=En=>{const $n=Math.abs(En.target.getBoundingClientRect()[xe.value.direction]-En[xe.value.client]),wn=pe.value[xe.value.offset]/2,Tn=$n-wn;$e.traveled=Math.max(0,Math.min(Tn,At.value)),z("scroll",Tn,At.value)};return watch(()=>$.scrollFrom,En=>{$e.isDragging||($e.traveled=Math.ceil(En*At.value))}),onBeforeUnmount(()=>{hn()}),()=>h$3("div",{role:"presentation",ref:le,class:[ae.b(),$.class,($.alwaysOn||$e.isDragging)&&"always-on"],style:Ne.value,onMousedown:withModifiers(Cn,["stop","prevent"]),onTouchstartPrevent:vn},h$3("div",{ref:pe,class:ie.e("thumb"),style:ze.value,onMousedown:vn},[]))}}),createList$1=({name:$,getOffset:z,getItemSize:oe,getItemOffset:ae,getEstimatedTotalSize:ie,getStartIndexForOffset:le,getStopIndexForStartIndex:pe,initCache:_e,clearCache:Ce,validateProps:$e})=>defineComponent({name:$??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(xe,{emit:Ie,expose:Ne}){$e(xe);const Fe=getCurrentInstance(),ze=useNamespace("vl"),At=ref(_e(xe,Fe)),Lt=useCache(),hn=ref(),vn=ref(),_n=ref(),bn=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$5(xe.initScrollOffset)?xe.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:xe.scrollbarAlwaysOn}),Cn=computed(()=>{const{total:Jn,cache:lr}=xe,{isScrolling:_r,scrollDir:ir,scrollOffset:qn}=unref(bn);if(Jn===0)return[0,0,0,0];const Yn=le(xe,qn,unref(At)),Wn=pe(xe,Yn,qn,unref(At)),tr=!_r||ir===BACKWARD?Math.max(1,lr):1,pr=!_r||ir===FORWARD?Math.max(1,lr):1;return[Math.max(0,Yn-tr),Math.max(0,Math.min(Jn-1,Wn+pr)),Yn,Wn]}),En=computed(()=>ie(xe,unref(At))),$n=computed(()=>isHorizontal(xe.layout)),wn=computed(()=>[{position:"relative",[`overflow-${$n.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:xe.direction,height:isNumber$5(xe.height)?`${xe.height}px`:xe.height,width:isNumber$5(xe.width)?`${xe.width}px`:xe.width},xe.style]),Tn=computed(()=>{const Jn=unref(En),lr=unref($n);return{height:lr?"100%":`${Jn}px`,pointerEvents:unref(bn).isScrolling?"none":void 0,width:lr?`${Jn}px`:"100%"}}),xn=computed(()=>$n.value?xe.width:xe.height),{onWheel:kn}=useWheel({atStartEdge:computed(()=>bn.value.scrollOffset<=0),atEndEdge:computed(()=>bn.value.scrollOffset>=En.value),layout:computed(()=>xe.layout)},Jn=>{var lr,_r;(_r=(lr=_n.value).onMouseUp)==null||_r.call(lr),Nn(Math.min(bn.value.scrollOffset+Jn,En.value-xn.value))}),An=()=>{const{total:Jn}=xe;if(Jn>0){const[qn,Yn,Wn,tr]=unref(Cn);Ie(ITEM_RENDER_EVT,qn,Yn,Wn,tr)}const{scrollDir:lr,scrollOffset:_r,updateRequested:ir}=unref(bn);Ie(SCROLL_EVT,lr,_r,ir)},On=Jn=>{const{clientHeight:lr,scrollHeight:_r,scrollTop:ir}=Jn.currentTarget,qn=unref(bn);if(qn.scrollOffset===ir)return;const Yn=Math.max(0,Math.min(ir,_r-lr));bn.value={...qn,isScrolling:!0,scrollDir:getScrollDir(qn.scrollOffset,Yn),scrollOffset:Yn,updateRequested:!1},nextTick(zn)},Mn=Jn=>{const{clientWidth:lr,scrollLeft:_r,scrollWidth:ir}=Jn.currentTarget,qn=unref(bn);if(qn.scrollOffset===_r)return;const{direction:Yn}=xe;let Wn=_r;if(Yn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Wn=-_r;break}case RTL_OFFSET_POS_DESC:{Wn=ir-lr-_r;break}}Wn=Math.max(0,Math.min(Wn,ir-lr)),bn.value={...qn,isScrolling:!0,scrollDir:getScrollDir(qn.scrollOffset,Wn),scrollOffset:Wn,updateRequested:!1},nextTick(zn)},Fn=Jn=>{unref($n)?Mn(Jn):On(Jn),An()},Dn=(Jn,lr)=>{const _r=(En.value-xn.value)/lr*Jn;Nn(Math.min(En.value-xn.value,_r))},Nn=Jn=>{Jn=Math.max(Jn,0),Jn!==unref(bn).scrollOffset&&(bn.value={...unref(bn),scrollOffset:Jn,scrollDir:getScrollDir(unref(bn).scrollOffset,Jn),updateRequested:!0},nextTick(zn))},Vn=(Jn,lr=AUTO_ALIGNMENT)=>{const{scrollOffset:_r}=unref(bn);Jn=Math.max(0,Math.min(Jn,xe.total-1)),Nn(z(xe,Jn,lr,_r,unref(At)))},Bn=Jn=>{const{direction:lr,itemSize:_r,layout:ir}=xe,qn=Lt.value(Ce&&_r,Ce&&ir,Ce&&lr);let Yn;if(hasOwn$4(qn,String(Jn)))Yn=qn[Jn];else{const Wn=ae(xe,Jn,unref(At)),tr=oe(xe,Jn,unref(At)),pr=unref($n),Gn=lr===RTL,Zn=pr?Wn:0;qn[Jn]=Yn={position:"absolute",left:Gn?void 0:`${Zn}px`,right:Gn?`${Zn}px`:void 0,top:pr?0:`${Wn}px`,height:pr?"100%":`${tr}px`,width:pr?`${tr}px`:"100%"}}return Yn},zn=()=>{bn.value.isScrolling=!1,nextTick(()=>{Lt.value(-1,null,null)})},Xn=()=>{const Jn=hn.value;Jn&&(Jn.scrollTop=0)};onMounted(()=>{if(!isClient$2)return;const{initScrollOffset:Jn}=xe,lr=unref(hn);isNumber$5(Jn)&&lr&&(unref($n)?lr.scrollLeft=Jn:lr.scrollTop=Jn),An()}),onUpdated(()=>{const{direction:Jn,layout:lr}=xe,{scrollOffset:_r,updateRequested:ir}=unref(bn),qn=unref(hn);if(ir&&qn)if(lr===HORIZONTAL$1)if(Jn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{qn.scrollLeft=-_r;break}case RTL_OFFSET_POS_ASC:{qn.scrollLeft=_r;break}default:{const{clientWidth:Yn,scrollWidth:Wn}=qn;qn.scrollLeft=Wn-Yn-_r;break}}else qn.scrollLeft=_r;else qn.scrollTop=_r});const Un={ns:ze,clientSize:xn,estimatedTotalSize:En,windowStyle:wn,windowRef:hn,innerRef:vn,innerStyle:Tn,itemsToRender:Cn,scrollbarRef:_n,states:bn,getItemStyle:Bn,onScroll:Fn,onScrollbarScroll:Dn,onWheel:kn,scrollTo:Nn,scrollToItem:Vn,resetScrollTop:Xn};return Ne({windowRef:hn,innerRef:vn,getItemStyleCache:Lt,scrollTo:Nn,scrollToItem:Vn,resetScrollTop:Xn,states:bn}),Un},render(xe){var Ie;const{$slots:Ne,className:Fe,clientSize:ze,containerElement:At,data:Lt,getItemStyle:hn,innerElement:vn,itemsToRender:_n,innerStyle:bn,layout:Cn,total:En,onScroll:$n,onScrollbarScroll:wn,onWheel:Tn,states:xn,useIsScrolling:kn,windowStyle:An,ns:On}=xe,[Mn,Fn]=_n,Dn=resolveDynamicComponent(At),Nn=resolveDynamicComponent(vn),Vn=[];if(En>0)for(let Un=Mn;Un<=Fn;Un++)Vn.push((Ie=Ne.default)==null?void 0:Ie.call(Ne,{data:Lt,key:Un,index:Un,isScrolling:kn?xn.isScrolling:void 0,style:hn(Un)}));const Bn=[h$3(Nn,{style:bn,ref:"innerRef"},isString$7(Nn)?Vn:{default:()=>Vn})],zn=h$3(ScrollBar,{ref:"scrollbarRef",clientSize:ze,layout:Cn,onScroll:wn,ratio:ze*100/this.estimatedTotalSize,scrollFrom:xn.scrollOffset/(this.estimatedTotalSize-ze),total:En}),Xn=h$3(Dn,{class:[On.e("window"),Fe],style:An,onScroll:$n,onWheel:Tn,ref:"windowRef",key:0},isString$7(Dn)?[Bn]:{default:()=>[Bn]});return h$3("div",{key:0,class:[On.e("wrapper"),xn.scrollbarAlwaysOn?"always-on":""]},[Xn,zn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:$},z)=>z*$,getItemSize:({itemSize:$})=>$,getEstimatedTotalSize:({total:$,itemSize:z})=>z*$,getOffset:({height:$,total:z,itemSize:oe,layout:ae,width:ie},le,pe,_e)=>{const Ce=isHorizontal(ae)?ie:$,$e=Math.max(0,z*oe-Ce),xe=Math.min($e,le*oe),Ie=Math.max(0,(le+1)*oe-Ce);switch(pe===SMART_ALIGNMENT&&(_e>=Ie-Ce&&_e<=xe+Ce?pe=AUTO_ALIGNMENT:pe=CENTERED_ALIGNMENT),pe){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const Ne=Math.round(Ie+(xe-Ie)/2);return Ne<Math.ceil(Ce/2)?0:Ne>$e+Math.floor(Ce/2)?$e:Ne}case AUTO_ALIGNMENT:default:return _e>=Ie&&_e<=xe?_e:_e<Ie?Ie:xe}},getStartIndexForOffset:({total:$,itemSize:z},oe)=>Math.max(0,Math.min($-1,Math.floor(oe/z))),getStopIndexForStartIndex:({height:$,total:z,itemSize:oe,layout:ae,width:ie},le,pe)=>{const _e=le*oe,Ce=isHorizontal(ae)?ie:$,$e=Math.ceil((Ce+pe-_e)/oe);return Math.max(0,Math.min(z-1,le+$e-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=($,z,oe)=>{const{itemSize:ae}=$,{items:ie,lastVisitedIndex:le}=oe;if(z>le){let pe=0;if(le>=0){const _e=ie[le];pe=_e.offset+_e.size}for(let _e=le+1;_e<=z;_e++){const Ce=ae(_e);ie[_e]={offset:pe,size:Ce},pe+=Ce}oe.lastVisitedIndex=z}return ie[z]},findItem$1=($,z,oe)=>{const{items:ae,lastVisitedIndex:ie}=z;return(ie>0?ae[ie].offset:0)>=oe?bs$1($,z,0,ie,oe):es$1($,z,Math.max(0,ie),oe)},bs$1=($,z,oe,ae,ie)=>{for(;oe<=ae;){const le=oe+Math.floor((ae-oe)/2),pe=getItemFromCache$1($,le,z).offset;if(pe===ie)return le;pe<ie?oe=le+1:pe>ie&&(ae=le-1)}return Math.max(0,oe-1)},es$1=($,z,oe,ae)=>{const{total:ie}=$;let le=1;for(;oe<ie&&getItemFromCache$1($,oe,z).offset<ae;)oe+=le,le*=2;return bs$1($,z,Math.floor(oe/2),Math.min(oe,ie-1),ae)},getEstimatedTotalSize=({total:$},{items:z,estimatedItemSize:oe,lastVisitedIndex:ae})=>{let ie=0;if(ae>=$&&(ae=$-1),ae>=0){const _e=z[ae];ie=_e.offset+_e.size}const pe=($-ae-1)*oe;return ie+pe},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:($,z,oe)=>getItemFromCache$1($,z,oe).offset,getItemSize:($,z,{items:oe})=>oe[z].size,getEstimatedTotalSize,getOffset:($,z,oe,ae,ie)=>{const{height:le,layout:pe,width:_e}=$,Ce=isHorizontal(pe)?_e:le,$e=getItemFromCache$1($,z,ie),xe=getEstimatedTotalSize($,ie),Ie=Math.max(0,Math.min(xe-Ce,$e.offset)),Ne=Math.max(0,$e.offset-Ce+$e.size);switch(oe===SMART_ALIGNMENT&&(ae>=Ne-Ce&&ae<=Ie+Ce?oe=AUTO_ALIGNMENT:oe=CENTERED_ALIGNMENT),oe){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return Ne;case CENTERED_ALIGNMENT:return Math.round(Ne+(Ie-Ne)/2);case AUTO_ALIGNMENT:default:return ae>=Ne&&ae<=Ie?ae:ae<Ne?Ne:Ie}},getStartIndexForOffset:($,z,oe)=>findItem$1($,oe,z),getStopIndexForStartIndex:($,z,oe,ae)=>{const{height:ie,total:le,layout:pe,width:_e}=$,Ce=isHorizontal(pe)?_e:ie,$e=getItemFromCache$1($,z,ae),xe=oe+Ce;let Ie=$e.offset+$e.size,Ne=z;for(;Ne<le-1&&Ie<xe;)Ne++,Ie+=getItemFromCache$1($,Ne,ae).size;return Ne},initCache({estimatedItemSize:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE},z){const oe={items:{},estimatedItemSize:$,lastVisitedIndex:-1};return oe.clearCacheAfterIndex=(ae,ie=!0)=>{var le,pe;oe.lastVisitedIndex=Math.min(oe.lastVisitedIndex,ae-1),(le=z.exposed)==null||le.getItemStyleCache(-1),ie&&((pe=z.proxy)==null||pe.$forceUpdate())},oe},clearCache:!1,validateProps:({itemSize:$})=>{}}),useGridWheel=({atXEndEdge:$,atXStartEdge:z,atYEndEdge:oe,atYStartEdge:ae},ie)=>{let le=null,pe=0,_e=0;const Ce=(xe,Ie)=>{const Ne=xe<=0&&z.value||xe>=0&&$.value,Fe=Ie<=0&&ae.value||Ie>=0&&oe.value;return Ne&&Fe};return{hasReachedEdge:Ce,onWheel:xe=>{cAF(le);let Ie=xe.deltaX,Ne=xe.deltaY;Math.abs(Ie)>Math.abs(Ne)?Ne=0:Ie=0,xe.shiftKey&&Ne!==0&&(Ie=Ne,Ne=0),!(Ce(pe,_e)&&Ce(pe+Ie,_e+Ne))&&(pe+=Ie,_e+=Ne,xe.preventDefault(),le=rAF(()=>{ie(pe,_e),pe=0,_e=0}))}}},createGrid=({name:$,clearCache:z,getColumnPosition:oe,getColumnStartIndexForOffset:ae,getColumnStopIndexForStartIndex:ie,getEstimatedTotalHeight:le,getEstimatedTotalWidth:pe,getColumnOffset:_e,getRowOffset:Ce,getRowPosition:$e,getRowStartIndexForOffset:xe,getRowStopIndexForStartIndex:Ie,initCache:Ne,injectToInstance:Fe,validateProps:ze})=>defineComponent({name:$??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(At,{emit:Lt,expose:hn,slots:vn}){const _n=useNamespace("vl");ze(At);const bn=getCurrentInstance(),Cn=ref(Ne(At,bn));Fe==null||Fe(bn,Cn);const En=ref(),$n=ref(),wn=ref(),Tn=ref(null),xn=ref({isScrolling:!1,scrollLeft:isNumber$5(At.initScrollLeft)?At.initScrollLeft:0,scrollTop:isNumber$5(At.initScrollTop)?At.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),kn=useCache(),An=computed(()=>Number.parseInt(`${At.height}`,10)),On=computed(()=>Number.parseInt(`${At.width}`,10)),Mn=computed(()=>{const{totalColumn:ar,totalRow:xr,columnCache:gr}=At,{isScrolling:Pr,xAxisScrollDir:dr,scrollLeft:sr}=unref(xn);if(ar===0||xr===0)return[0,0,0,0];const cr=ae(At,sr,unref(Cn)),hr=ie(At,cr,sr,unref(Cn)),Ar=!Pr||dr===BACKWARD?Math.max(1,gr):1,Dr=!Pr||dr===FORWARD?Math.max(1,gr):1;return[Math.max(0,cr-Ar),Math.max(0,Math.min(ar-1,hr+Dr)),cr,hr]}),Fn=computed(()=>{const{totalColumn:ar,totalRow:xr,rowCache:gr}=At,{isScrolling:Pr,yAxisScrollDir:dr,scrollTop:sr}=unref(xn);if(ar===0||xr===0)return[0,0,0,0];const cr=xe(At,sr,unref(Cn)),hr=Ie(At,cr,sr,unref(Cn)),Ar=!Pr||dr===BACKWARD?Math.max(1,gr):1,Dr=!Pr||dr===FORWARD?Math.max(1,gr):1;return[Math.max(0,cr-Ar),Math.max(0,Math.min(xr-1,hr+Dr)),cr,hr]}),Dn=computed(()=>le(At,unref(Cn))),Nn=computed(()=>pe(At,unref(Cn))),Vn=computed(()=>{var ar;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:At.direction,height:isNumber$5(At.height)?`${At.height}px`:At.height,width:isNumber$5(At.width)?`${At.width}px`:At.width},(ar=At.style)!=null?ar:{}]}),Bn=computed(()=>{const ar=`${unref(Nn)}px`;return{height:`${unref(Dn)}px`,pointerEvents:unref(xn).isScrolling?"none":void 0,width:ar}}),zn=()=>{const{totalColumn:ar,totalRow:xr}=At;if(ar>0&&xr>0){const[hr,Ar,Dr,Lr]=unref(Mn),[Mr,Er,$r,ur]=unref(Fn);Lt(ITEM_RENDER_EVT,{columnCacheStart:hr,columnCacheEnd:Ar,rowCacheStart:Mr,rowCacheEnd:Er,columnVisibleStart:Dr,columnVisibleEnd:Lr,rowVisibleStart:$r,rowVisibleEnd:ur})}const{scrollLeft:gr,scrollTop:Pr,updateRequested:dr,xAxisScrollDir:sr,yAxisScrollDir:cr}=unref(xn);Lt(SCROLL_EVT,{xAxisScrollDir:sr,scrollLeft:gr,yAxisScrollDir:cr,scrollTop:Pr,updateRequested:dr})},Xn=ar=>{const{clientHeight:xr,clientWidth:gr,scrollHeight:Pr,scrollLeft:dr,scrollTop:sr,scrollWidth:cr}=ar.currentTarget,hr=unref(xn);if(hr.scrollTop===sr&&hr.scrollLeft===dr)return;let Ar=dr;if(isRTL(At.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:Ar=-dr;break;case RTL_OFFSET_POS_DESC:Ar=cr-gr-dr;break}xn.value={...hr,isScrolling:!0,scrollLeft:Ar,scrollTop:Math.max(0,Math.min(sr,Pr-xr)),updateRequested:!0,xAxisScrollDir:getScrollDir(hr.scrollLeft,Ar),yAxisScrollDir:getScrollDir(hr.scrollTop,sr)},nextTick(()=>Yn()),Wn(),zn()},Un=(ar,xr)=>{const gr=unref(An),Pr=(Dn.value-gr)/xr*ar;_r({scrollTop:Math.min(Dn.value-gr,Pr)})},Jn=(ar,xr)=>{const gr=unref(On),Pr=(Nn.value-gr)/xr*ar;_r({scrollLeft:Math.min(Nn.value-gr,Pr)})},{onWheel:lr}=useGridWheel({atXStartEdge:computed(()=>xn.value.scrollLeft<=0),atXEndEdge:computed(()=>xn.value.scrollLeft>=Nn.value-unref(On)),atYStartEdge:computed(()=>xn.value.scrollTop<=0),atYEndEdge:computed(()=>xn.value.scrollTop>=Dn.value-unref(An))},(ar,xr)=>{var gr,Pr,dr,sr;(Pr=(gr=$n.value)==null?void 0:gr.onMouseUp)==null||Pr.call(gr),(sr=(dr=$n.value)==null?void 0:dr.onMouseUp)==null||sr.call(dr);const cr=unref(On),hr=unref(An);_r({scrollLeft:Math.min(xn.value.scrollLeft+ar,Nn.value-cr),scrollTop:Math.min(xn.value.scrollTop+xr,Dn.value-hr)})}),_r=({scrollLeft:ar=xn.value.scrollLeft,scrollTop:xr=xn.value.scrollTop})=>{ar=Math.max(ar,0),xr=Math.max(xr,0);const gr=unref(xn);xr===gr.scrollTop&&ar===gr.scrollLeft||(xn.value={...gr,xAxisScrollDir:getScrollDir(gr.scrollLeft,ar),yAxisScrollDir:getScrollDir(gr.scrollTop,xr),scrollLeft:ar,scrollTop:xr,updateRequested:!0},nextTick(()=>Yn()),Wn(),zn())},ir=(ar=0,xr=0,gr=AUTO_ALIGNMENT)=>{const Pr=unref(xn);xr=Math.max(0,Math.min(xr,At.totalColumn-1)),ar=Math.max(0,Math.min(ar,At.totalRow-1));const dr=getScrollBarWidth(_n.namespace.value),sr=unref(Cn),cr=le(At,sr),hr=pe(At,sr);_r({scrollLeft:_e(At,xr,gr,Pr.scrollLeft,sr,hr>At.width?dr:0),scrollTop:Ce(At,ar,gr,Pr.scrollTop,sr,cr>At.height?dr:0)})},qn=(ar,xr)=>{const{columnWidth:gr,direction:Pr,rowHeight:dr}=At,sr=kn.value(z&&gr,z&&dr,z&&Pr),cr=`${ar},${xr}`;if(hasOwn$4(sr,cr))return sr[cr];{const[,hr]=oe(At,xr,unref(Cn)),Ar=unref(Cn),Dr=isRTL(Pr),[Lr,Mr]=$e(At,ar,Ar),[Er]=oe(At,xr,Ar);return sr[cr]={position:"absolute",left:Dr?void 0:`${hr}px`,right:Dr?`${hr}px`:void 0,top:`${Mr}px`,height:`${Lr}px`,width:`${Er}px`},sr[cr]}},Yn=()=>{xn.value.isScrolling=!1,nextTick(()=>{kn.value(-1,null,null)})};onMounted(()=>{if(!isClient$2)return;const{initScrollLeft:ar,initScrollTop:xr}=At,gr=unref(En);gr&&(isNumber$5(ar)&&(gr.scrollLeft=ar),isNumber$5(xr)&&(gr.scrollTop=xr)),zn()});const Wn=()=>{const{direction:ar}=At,{scrollLeft:xr,scrollTop:gr,updateRequested:Pr}=unref(xn),dr=unref(En);if(Pr&&dr){if(ar===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{dr.scrollLeft=-xr;break}case RTL_OFFSET_POS_ASC:{dr.scrollLeft=xr;break}default:{const{clientWidth:sr,scrollWidth:cr}=dr;dr.scrollLeft=cr-sr-xr;break}}else dr.scrollLeft=Math.max(0,xr);dr.scrollTop=Math.max(0,gr)}},{resetAfterColumnIndex:tr,resetAfterRowIndex:pr,resetAfter:Gn}=bn.proxy;hn({windowRef:En,innerRef:Tn,getItemStyleCache:kn,scrollTo:_r,scrollToItem:ir,states:xn,resetAfterColumnIndex:tr,resetAfterRowIndex:pr,resetAfter:Gn});const Zn=()=>{const{scrollbarAlwaysOn:ar,scrollbarStartGap:xr,scrollbarEndGap:gr,totalColumn:Pr,totalRow:dr}=At,sr=unref(On),cr=unref(An),hr=unref(Nn),Ar=unref(Dn),{scrollLeft:Dr,scrollTop:Lr}=unref(xn),Mr=h$3(ScrollBar,{ref:$n,alwaysOn:ar,startGap:xr,endGap:gr,class:_n.e("horizontal"),clientSize:sr,layout:"horizontal",onScroll:Jn,ratio:sr*100/hr,scrollFrom:Dr/(hr-sr),total:dr,visible:!0}),Er=h$3(ScrollBar,{ref:wn,alwaysOn:ar,startGap:xr,endGap:gr,class:_n.e("vertical"),clientSize:cr,layout:"vertical",onScroll:Un,ratio:cr*100/Ar,scrollFrom:Lr/(Ar-cr),total:Pr,visible:!0});return{horizontalScrollbar:Mr,verticalScrollbar:Er}},rr=()=>{var ar;const[xr,gr]=unref(Mn),[Pr,dr]=unref(Fn),{data:sr,totalColumn:cr,totalRow:hr,useIsScrolling:Ar,itemKey:Dr}=At,Lr=[];if(hr>0&&cr>0)for(let Mr=Pr;Mr<=dr;Mr++)for(let Er=xr;Er<=gr;Er++)Lr.push((ar=vn.default)==null?void 0:ar.call(vn,{columnIndex:Er,data:sr,key:Dr({columnIndex:Er,data:sr,rowIndex:Mr}),isScrolling:Ar?unref(xn).isScrolling:void 0,style:qn(Mr,Er),rowIndex:Mr}));return Lr},mr=()=>{const ar=resolveDynamicComponent(At.innerElement),xr=rr();return[h$3(ar,{style:unref(Bn),ref:Tn},isString$7(ar)?xr:{default:()=>xr})]};return()=>{const ar=resolveDynamicComponent(At.containerElement),{horizontalScrollbar:xr,verticalScrollbar:gr}=Zn(),Pr=mr();return h$3("div",{key:0,class:_n.e("wrapper"),role:At.role},[h$3(ar,{class:At.className,style:unref(Vn),onScroll:Xn,onWheel:lr,ref:En},isString$7(ar)?Pr:{default:()=>Pr}),xr,gr])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:$},z)=>[$,z*$],getRowPosition:({rowHeight:$},z)=>[$,z*$],getEstimatedTotalHeight:({totalRow:$,rowHeight:z})=>z*$,getEstimatedTotalWidth:({totalColumn:$,columnWidth:z})=>z*$,getColumnOffset:({totalColumn:$,columnWidth:z,width:oe},ae,ie,le,pe,_e)=>{oe=Number(oe);const Ce=Math.max(0,$*z-oe),$e=Math.min(Ce,ae*z),xe=Math.max(0,ae*z-oe+_e+z);switch(ie==="smart"&&(le>=xe-oe&&le<=$e+oe?ie=AUTO_ALIGNMENT:ie=CENTERED_ALIGNMENT),ie){case START_ALIGNMENT:return $e;case END_ALIGNMENT:return xe;case CENTERED_ALIGNMENT:{const Ie=Math.round(xe+($e-xe)/2);return Ie<Math.ceil(oe/2)?0:Ie>Ce+Math.floor(oe/2)?Ce:Ie}case AUTO_ALIGNMENT:default:return le>=xe&&le<=$e?le:xe>$e||le<xe?xe:$e}},getRowOffset:({rowHeight:$,height:z,totalRow:oe},ae,ie,le,pe,_e)=>{z=Number(z);const Ce=Math.max(0,oe*$-z),$e=Math.min(Ce,ae*$),xe=Math.max(0,ae*$-z+_e+$);switch(ie===SMART_ALIGNMENT&&(le>=xe-z&&le<=$e+z?ie=AUTO_ALIGNMENT:ie=CENTERED_ALIGNMENT),ie){case START_ALIGNMENT:return $e;case END_ALIGNMENT:return xe;case CENTERED_ALIGNMENT:{const Ie=Math.round(xe+($e-xe)/2);return Ie<Math.ceil(z/2)?0:Ie>Ce+Math.floor(z/2)?Ce:Ie}case AUTO_ALIGNMENT:default:return le>=xe&&le<=$e?le:xe>$e||le<xe?xe:$e}},getColumnStartIndexForOffset:({columnWidth:$,totalColumn:z},oe)=>Math.max(0,Math.min(z-1,Math.floor(oe/$))),getColumnStopIndexForStartIndex:({columnWidth:$,totalColumn:z,width:oe},ae,ie)=>{const le=ae*$,pe=Math.ceil((oe+ie-le)/$);return Math.max(0,Math.min(z-1,ae+pe-1))},getRowStartIndexForOffset:({rowHeight:$,totalRow:z},oe)=>Math.max(0,Math.min(z-1,Math.floor(oe/$))),getRowStopIndexForStartIndex:({rowHeight:$,totalRow:z,height:oe},ae,ie)=>{const le=ae*$,pe=Math.ceil((oe+ie-le)/$);return Math.max(0,Math.min(z-1,ae+pe-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:$,rowHeight:z})=>{}}),{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=($,z,oe,ae)=>{const[ie,le,pe]=[oe[ae],$[ACCESS_SIZER_KEY_MAP[ae]],oe[ACCESS_LAST_VISITED_KEY_MAP[ae]]];if(z>pe){let _e=0;if(pe>=0){const Ce=ie[pe];_e=Ce.offset+Ce.size}for(let Ce=pe+1;Ce<=z;Ce++){const $e=le(Ce);ie[Ce]={offset:_e,size:$e},_e+=$e}oe[ACCESS_LAST_VISITED_KEY_MAP[ae]]=z}return ie[z]},bs=($,z,oe,ae,ie,le)=>{for(;oe<=ae;){const pe=oe+floor((ae-oe)/2),_e=getItemFromCache($,pe,z,le).offset;if(_e===ie)return pe;_e<ie?oe=pe+1:ae=pe-1}return max$2(0,oe-1)},es=($,z,oe,ae,ie)=>{const le=ie==="column"?$.totalColumn:$.totalRow;let pe=1;for(;oe<le&&getItemFromCache($,oe,z,ie).offset<ae;)oe+=pe,pe*=2;return bs($,z,floor(oe/2),min$2(oe,le-1),ae,ie)},findItem=($,z,oe,ae)=>{const[ie,le]=[z[ae],z[ACCESS_LAST_VISITED_KEY_MAP[ae]]];return(le>0?ie[le].offset:0)>=oe?bs($,z,0,le,oe,ae):es($,z,max$2(0,le),oe,ae)},getEstimatedTotalHeight=({totalRow:$},{estimatedRowHeight:z,lastVisitedRowIndex:oe,row:ae})=>{let ie=0;if(oe>=$&&(oe=$-1),oe>=0){const _e=ae[oe];ie=_e.offset+_e.size}const pe=($-oe-1)*z;return ie+pe},getEstimatedTotalWidth=({totalColumn:$},{column:z,estimatedColumnWidth:oe,lastVisitedColumnIndex:ae})=>{let ie=0;if(ae>$&&(ae=$-1),ae>=0){const _e=z[ae];ie=_e.offset+_e.size}const pe=($-ae-1)*oe;return ie+pe},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=($,z,oe,ae,ie,le,pe)=>{const[_e,Ce]=[le==="row"?$.height:$.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[le]],$e=getItemFromCache($,z,ie,le),xe=Ce($,ie),Ie=max$2(0,min$2(xe-_e,$e.offset)),Ne=max$2(0,$e.offset-_e+pe+$e.size);switch(oe===SMART_ALIGNMENT&&(ae>=Ne-_e&&ae<=Ie+_e?oe=AUTO_ALIGNMENT:oe=CENTERED_ALIGNMENT),oe){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return Ne;case CENTERED_ALIGNMENT:return Math.round(Ne+(Ie-Ne)/2);case AUTO_ALIGNMENT:default:return ae>=Ne&&ae<=Ie?ae:Ne>Ie||ae<Ne?Ne:Ie}},DynamicSizeGrid=createGrid({name:"ElDynamicSizeGrid",getColumnPosition:($,z,oe)=>{const ae=getItemFromCache($,z,oe,"column");return[ae.size,ae.offset]},getRowPosition:($,z,oe)=>{const ae=getItemFromCache($,z,oe,"row");return[ae.size,ae.offset]},getColumnOffset:($,z,oe,ae,ie,le)=>getOffset$1($,z,oe,ae,ie,"column",le),getRowOffset:($,z,oe,ae,ie,le)=>getOffset$1($,z,oe,ae,ie,"row",le),getColumnStartIndexForOffset:($,z,oe)=>findItem($,oe,z,"column"),getColumnStopIndexForStartIndex:($,z,oe,ae)=>{const ie=getItemFromCache($,z,ae,"column"),le=oe+$.width;let pe=ie.offset+ie.size,_e=z;for(;_e<$.totalColumn-1&&pe<le;)_e++,pe+=getItemFromCache($,z,ae,"column").size;return _e},getEstimatedTotalHeight,getEstimatedTotalWidth,getRowStartIndexForOffset:($,z,oe)=>findItem($,oe,z,"row"),getRowStopIndexForStartIndex:($,z,oe,ae)=>{const{totalRow:ie,height:le}=$,pe=getItemFromCache($,z,ae,"row"),_e=oe+le;let Ce=pe.size+pe.offset,$e=z;for(;$e<ie-1&&Ce<_e;)$e++,Ce+=getItemFromCache($,$e,ae,"row").size;return $e},injectToInstance:($,z)=>{const oe=({columnIndex:le,rowIndex:pe},_e)=>{var Ce,$e;_e=isUndefined$1(_e)?!0:_e,isNumber$5(le)&&(z.value.lastVisitedColumnIndex=Math.min(z.value.lastVisitedColumnIndex,le-1)),isNumber$5(pe)&&(z.value.lastVisitedRowIndex=Math.min(z.value.lastVisitedRowIndex,pe-1)),(Ce=$.exposed)==null||Ce.getItemStyleCache.value(-1,null,null),_e&&(($e=$.proxy)==null||$e.$forceUpdate())},ae=(le,pe)=>{oe({columnIndex:le},pe)},ie=(le,pe)=>{oe({rowIndex:le},pe)};Object.assign($.proxy,{resetAfterColumnIndex:ae,resetAfterRowIndex:ie,resetAfter:oe})},initCache:({estimatedColumnWidth:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:z=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:$,estimatedRowHeight:z,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:$,rowHeight:z})=>{}}),_sfc_main$F=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$8($,z,oe,ae,ie,le){return $.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("group","title")),style:normalizeStyle$1([$.style,{lineHeight:`${$.height}px`}])},toDisplayString$1($.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.be("group","split")),style:normalizeStyle$1($.style)},[createBaseVNode("span",{class:normalizeClass($.ns.be("group","split-dash")),style:normalizeStyle$1({top:`${$.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($,{emit:z}){return{hoverItem:()=>{$.disabled||z("hover",$.index)},selectOptionClick:()=>{$.disabled||z("select",$.item,$.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($,{emit:z}){const oe=useNamespace("select"),{hoverItem:ae,selectOptionClick:ie}=useOption($,{emit:z});return{ns:oe,hoverItem:ae,selectOptionClick:ie}}}),_hoisted_1$j=["aria-selected"];function _sfc_render$7($,z,oe,ae,ie,le){return openBlock(),createElementBlock("li",{"aria-selected":$.selected,style:normalizeStyle$1($.style),class:normalizeClass([$.ns.be("dropdown","option-item"),$.ns.is("selected",$.selected),$.ns.is("disabled",$.disabled),$.ns.is("created",$.created),{hover:$.hovering}]),onMouseenter:z[0]||(z[0]=(...pe)=>$.hoverItem&&$.hoverItem(...pe)),onClick:z[1]||(z[1]=withModifiers((...pe)=>$.selectOptionClick&&$.selectOptionClick(...pe),["stop"]))},[renderSlot($.$slots,"default",{item:$.item,index:$.index,disabled:$.disabled},()=>[createBaseVNode("span",null,toDisplayString$1($.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($,{slots:z,expose:oe}){const ae=inject(selectV2InjectionKey),ie=useNamespace("select"),le=ref([]),pe=ref(),_e=computed(()=>$.data.length);watch(()=>_e.value,()=>{var wn,Tn;(Tn=(wn=ae.popper.value).updatePopper)==null||Tn.call(wn)});const Ce=computed(()=>isUndefined$1(ae.props.estimatedOptionHeight)),$e=computed(()=>Ce.value?{itemSize:ae.props.itemHeight}:{estimatedSize:ae.props.estimatedOptionHeight,itemSize:wn=>le.value[wn]}),xe=(wn=[],Tn)=>{const{props:{valueKey:xn}}=ae;return isObject$8(Tn)?wn&&wn.some(kn=>get$1(kn,xn)===get$1(Tn,xn)):wn.includes(Tn)},Ie=(wn,Tn)=>{if(isObject$8(Tn)){const{valueKey:xn}=ae.props;return get$1(wn,xn)===get$1(Tn,xn)}else return wn===Tn},Ne=(wn,Tn)=>{const{valueKey:xn}=ae.props;return ae.props.multiple?xe(wn,get$1(Tn,xn)):Ie(wn,get$1(Tn,xn))},Fe=(wn,Tn)=>{const{disabled:xn,multiple:kn,multipleLimit:An}=ae.props;return xn||!Tn&&(kn?An>0&&wn.length>=An:!1)},ze=wn=>$.hoveringIndex===wn;oe({listRef:pe,isSized:Ce,isItemDisabled:Fe,isItemHovering:ze,isItemSelected:Ne,scrollToItem:wn=>{const Tn=pe.value;Tn&&Tn.scrollToItem(wn)},resetScrollTop:()=>{const wn=pe.value;wn&&wn.resetScrollTop()}});const hn=wn=>{const{index:Tn,data:xn,style:kn}=wn,An=unref(Ce),{itemSize:On,estimatedSize:Mn}=unref($e),{modelValue:Fn}=ae.props,{onSelect:Dn,onHover:Nn}=ae,Vn=xn[Tn];if(Vn.type==="Group")return createVNode(GroupItem,{item:Vn,style:kn,height:An?On:Mn},null);const Bn=Ne(Fn,Vn),zn=Fe(Fn,Bn),Xn=ze(Tn);return createVNode(OptionItem,mergeProps(wn,{selected:Bn,disabled:Vn.disabled||zn,created:!!Vn.created,hovering:Xn,item:Vn,onSelect:Dn,onHover:Nn}),{default:Un=>{var Jn;return((Jn=z.default)==null?void 0:Jn.call(z,Un))||createVNode("span",null,[Vn.label])}})},{onKeyboardNavigate:vn,onKeyboardSelect:_n}=ae,bn=()=>{vn("forward")},Cn=()=>{vn("backward")},En=()=>{ae.expanded=!1},$n=wn=>{const{code:Tn}=wn,{tab:xn,esc:kn,down:An,up:On,enter:Mn}=EVENT_CODE;switch(Tn!==xn&&(wn.preventDefault(),wn.stopPropagation()),Tn){case xn:case kn:{En();break}case An:{bn();break}case On:{Cn();break}case Mn:{_n();break}}};return()=>{var wn;const{data:Tn,width:xn}=$,{height:kn,multiple:An,scrollbarAlwaysOn:On}=ae.props;if(Tn.length===0)return createVNode("div",{class:ie.b("dropdown"),style:{width:`${xn}px`}},[(wn=z.empty)==null?void 0:wn.call(z)]);const Mn=unref(Ce)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[ie.b("dropdown"),ie.is("multiple",An)]},[createVNode(Mn,mergeProps({ref:pe},unref($e),{className:ie.be("dropdown","list"),scrollbarAlwaysOn:On,data:Tn,height:kn,width:xn,total:Tn.length,onKeydown:$n}),{default:Fn=>createVNode(hn,Fn,null)})])}}});function useAllowCreate($,z){const oe=ref(0),ae=ref(null),ie=computed(()=>$.allowCreate&&$.filterable);function le(xe){const Ie=Ne=>Ne.value===xe;return $.options&&$.options.some(Ie)||z.createdOptions.some(Ie)}function pe(xe){ie.value&&($.multiple&&xe.created?oe.value++:ae.value=xe)}function _e(xe){if(ie.value)if(xe&&xe.length>0&&!le(xe)){const Ie={value:xe,label:xe,created:!0,disabled:!1};z.createdOptions.length>=oe.value?z.createdOptions[oe.value]=Ie:z.createdOptions.push(Ie)}else if($.multiple)z.createdOptions.length=oe.value;else{const Ie=ae.value;z.createdOptions.length=0,Ie&&Ie.created&&z.createdOptions.push(Ie)}}function Ce(xe){if(!ie.value||!xe||!xe.created||xe.created&&$.reserveKeyword&&z.inputValue===xe.label)return;const Ie=z.createdOptions.findIndex(Ne=>Ne.value===xe.value);~Ie&&(z.createdOptions.splice(Ie,1),oe.value--)}function $e(){ie.value&&(z.createdOptions.length=0,oe.value=0)}return{createNewOption:_e,removeNewOption:Ce,selectNewOption:pe,clearAllNewOption:$e}}const flattenOptions=$=>{const z=[];return $.forEach(oe=>{isArray$c(oe.options)?(z.push({label:oe.label,isTitle:!0,type:"Group"}),oe.options.forEach(ae=>{z.push(ae)}),z.push({type:"Group"})):z.push(oe)}),z};function useInput($){const z=ref(!1);return{handleCompositionStart:()=>{z.value=!0},handleCompositionUpdate:le=>{const pe=le.target.value,_e=pe[pe.length-1]||"";z.value=!isKorean(_e)},handleCompositionEnd:le=>{z.value&&(z.value=!1,isFunction$5($)&&$(le))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=($,z)=>{const{t:oe}=useLocale(),ae=useNamespace("select-v2"),ie=useNamespace("input"),{form:le,formItem:pe}=useFormItem(),_e=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}),Ce=ref(-1),$e=ref(-1),xe=ref(null),Ie=ref(null),Ne=ref(null),Fe=ref(null),ze=ref(null),At=ref(null),Lt=ref(null),hn=ref(!1),vn=computed(()=>$.disabled||(le==null?void 0:le.disabled)),_n=computed(()=>{const kr=An.value.length*34;return kr>$.height?$.height:kr}),bn=computed(()=>!isNil($.modelValue)),Cn=computed(()=>{const kr=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:bn.value;return $.clearable&&!vn.value&&_e.comboBoxHovering&&kr}),En=computed(()=>$.remote&&$.filterable?"":arrow_up_default),$n=computed(()=>En.value&&ae.is("reverse",hn.value)),wn=computed(()=>(pe==null?void 0:pe.validateState)||""),Tn=computed(()=>ValidateComponentsMap[wn.value]),xn=computed(()=>$.remote?300:0),kn=computed(()=>{const kr=An.value;return $.loading?$.loadingText||oe("el.select.loading"):$.remote&&_e.inputValue===""&&kr.length===0?!1:$.filterable&&_e.inputValue&&kr.length>0?$.noMatchText||oe("el.select.noMatch"):kr.length===0?$.noDataText||oe("el.select.noData"):null}),An=computed(()=>{const kr=Rr=>{const Kr=_e.inputValue,Yr=new RegExp(escapeStringRegexp(Kr),"i");return Kr?Yr.test(Rr.label||""):!0};return $.loading?[]:flattenOptions($.options.concat(_e.createdOptions).map(Rr=>{if(isArray$c(Rr.options)){const Kr=Rr.options.filter(kr);if(Kr.length>0)return{...Rr,options:Kr}}else if($.remote||kr(Rr))return Rr;return null}).filter(Rr=>Rr!==null))}),On=computed(()=>An.value.every(kr=>kr.disabled)),Mn=useFormSize(),Fn=computed(()=>Mn.value==="small"?"small":"default"),Dn=computed(()=>{const kr=At.value,Rr=Fn.value||"default",Kr=kr?Number.parseInt(getComputedStyle(kr).paddingLeft):0,Yr=kr?Number.parseInt(getComputedStyle(kr).paddingRight):0;return _e.selectWidth-Yr-Kr-TAG_BASE_WIDTH[Rr]}),Nn=()=>{var kr;$e.value=((kr=ze.value)==null?void 0:kr.offsetWidth)||200},Vn=computed(()=>({width:`${_e.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(_e.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Bn=computed(()=>isArray$c($.modelValue)?$.modelValue.length===0&&!_e.displayInputValue:$.filterable?_e.displayInputValue.length===0:!0),zn=computed(()=>{const kr=$.placeholder||oe("el.select.placeholder");return $.multiple||isNil($.modelValue)?kr:_e.selectedLabel}),Xn=computed(()=>{var kr,Rr;return(Rr=(kr=Fe.value)==null?void 0:kr.popperRef)==null?void 0:Rr.contentRef}),Un=computed(()=>{if($.multiple){const kr=$.modelValue.length;if($.modelValue.length>0)return An.value.findIndex(Rr=>Rr.value===$.modelValue[kr-1])}else if($.modelValue)return An.value.findIndex(kr=>kr.value===$.modelValue);return-1}),Jn=computed({get(){return hn.value&&kn.value!==!1},set(kr){hn.value=kr}}),lr=computed(()=>_e.cachedOptions.slice(0,$.maxCollapseTags)),_r=computed(()=>_e.cachedOptions.slice($.maxCollapseTags)),{createNewOption:ir,removeNewOption:qn,selectNewOption:Yn,clearAllNewOption:Wn}=useAllowCreate($,_e),{handleCompositionStart:tr,handleCompositionUpdate:pr,handleCompositionEnd:Gn}=useInput(kr=>Hr(kr)),Zn=()=>{var kr,Rr,Kr;(Rr=(kr=Ie.value)==null?void 0:kr.focus)==null||Rr.call(kr),(Kr=Fe.value)==null||Kr.updatePopper()},rr=()=>{if(!$.automaticDropdown&&!vn.value)return _e.isComposing&&(_e.softFocus=!0),nextTick(()=>{var kr,Rr;hn.value=!hn.value,(Rr=(kr=Ie.value)==null?void 0:kr.focus)==null||Rr.call(kr)})},mr=()=>($.filterable&&_e.inputValue!==_e.selectedLabel&&(_e.query=_e.selectedLabel),ar(_e.inputValue),nextTick(()=>{ir(_e.inputValue)})),Sr=debounce(mr,xn.value),ar=kr=>{_e.previousQuery!==kr&&(_e.previousQuery=kr,$.filterable&&isFunction$5($.filterMethod)?$.filterMethod(kr):$.filterable&&$.remote&&isFunction$5($.remoteMethod)&&$.remoteMethod(kr))},xr=kr=>{isEqual$1($.modelValue,kr)||z(CHANGE_EVENT,kr)},gr=kr=>{z(UPDATE_MODEL_EVENT,kr),xr(kr),_e.previousValue=kr==null?void 0:kr.toString()},Pr=(kr=[],Rr)=>{if(!isObject$8(Rr))return kr.indexOf(Rr);const Kr=$.valueKey;let Yr=-1;return kr.some((Vr,Qr)=>get$1(Vr,Kr)===get$1(Rr,Kr)?(Yr=Qr,!0):!1),Yr},dr=kr=>isObject$8(kr)?get$1(kr,$.valueKey):kr,sr=kr=>isObject$8(kr)?kr.label:kr,cr=()=>nextTick(()=>{var kr,Rr;if(!Ie.value)return;const Kr=At.value;ze.value.height=Kr.offsetHeight,hn.value&&kn.value!==!1&&((Rr=(kr=Fe.value)==null?void 0:kr.updatePopper)==null||Rr.call(kr))}),hr=()=>{var kr,Rr;if(Ar(),Nn(),(Rr=(kr=Fe.value)==null?void 0:kr.updatePopper)==null||Rr.call(kr),$.multiple)return cr()},Ar=()=>{const kr=At.value;kr&&(_e.selectWidth=kr.getBoundingClientRect().width)},Dr=(kr,Rr,Kr=!0)=>{var Yr,Vr;if($.multiple){let Qr=$.modelValue.slice();const no=Pr(Qr,dr(kr));no>-1?(Qr=[...Qr.slice(0,no),...Qr.slice(no+1)],_e.cachedOptions.splice(no,1),qn(kr)):($.multipleLimit<=0||Qr.length<$.multipleLimit)&&(Qr=[...Qr,dr(kr)],_e.cachedOptions.push(kr),Yn(kr),zr(Rr)),gr(Qr),kr.created&&(_e.query="",ar(""),_e.inputLength=20),$.filterable&&!$.reserveKeyword&&((Vr=(Yr=Ie.value).focus)==null||Vr.call(Yr),or("")),$.filterable&&(_e.calculatedWidth=Lt.value.getBoundingClientRect().width),cr(),Nr()}else Ce.value=Rr,_e.selectedLabel=kr.label,gr(dr(kr)),hn.value=!1,_e.isComposing=!1,_e.isSilentBlur=Kr,Yn(kr),kr.created||Wn(),zr(Rr)},Lr=(kr,Rr)=>{const{valueKey:Kr}=$,Yr=$.modelValue.indexOf(get$1(Rr,Kr));if(Yr>-1&&!vn.value){const Vr=[...$.modelValue.slice(0,Yr),...$.modelValue.slice(Yr+1)];return _e.cachedOptions.splice(Yr,1),gr(Vr),z("remove-tag",get$1(Rr,Kr)),_e.softFocus=!0,qn(Rr),nextTick(Zn)}kr.stopPropagation()},Mr=kr=>{const Rr=_e.isComposing;_e.isComposing=!0,_e.softFocus?_e.softFocus=!1:Rr||z("focus",kr)},Er=kr=>(_e.softFocus=!1,nextTick(()=>{var Rr,Kr;(Kr=(Rr=Ie.value)==null?void 0:Rr.blur)==null||Kr.call(Rr),Lt.value&&(_e.calculatedWidth=Lt.value.getBoundingClientRect().width),_e.isSilentBlur?_e.isSilentBlur=!1:_e.isComposing&&z("blur",kr),_e.isComposing=!1})),$r=()=>{_e.displayInputValue.length>0?or(""):hn.value=!1},ur=kr=>{if(_e.displayInputValue.length===0){kr.preventDefault();const Rr=$.modelValue.slice();Rr.pop(),qn(_e.cachedOptions.pop()),gr(Rr)}},er=()=>{let kr;return isArray$c($.modelValue)?kr=[]:kr=void 0,_e.softFocus=!0,$.multiple?_e.cachedOptions=[]:_e.selectedLabel="",hn.value=!1,gr(kr),z("clear"),Wn(),nextTick(Zn)},or=kr=>{_e.displayInputValue=kr,_e.inputValue=kr},Tr=(kr,Rr=void 0)=>{const Kr=An.value;if(!["forward","backward"].includes(kr)||vn.value||Kr.length<=0||On.value)return;if(!hn.value)return rr();Rr===void 0&&(Rr=_e.hoveringIndex);let Yr=-1;kr==="forward"?(Yr=Rr+1,Yr>=Kr.length&&(Yr=0)):kr==="backward"&&(Yr=Rr-1,(Yr<0||Yr>=Kr.length)&&(Yr=Kr.length-1));const Vr=Kr[Yr];if(Vr.disabled||Vr.type==="Group")return Tr(kr,Yr);zr(Yr),qr(Yr)},Or=()=>{if(hn.value)~_e.hoveringIndex&&An.value[_e.hoveringIndex]&&Dr(An.value[_e.hoveringIndex],_e.hoveringIndex,!1);else return rr()},zr=kr=>{_e.hoveringIndex=kr},Cr=()=>{_e.hoveringIndex=-1},Nr=()=>{var kr;const Rr=Ie.value;Rr&&((kr=Rr.focus)==null||kr.call(Rr))},Hr=kr=>{const Rr=kr.target.value;if(or(Rr),_e.displayInputValue.length>0&&!hn.value&&(hn.value=!0),_e.calculatedWidth=Lt.value.getBoundingClientRect().width,$.multiple&&cr(),$.remote)Sr();else return mr()},Ur=()=>(hn.value=!1,Er()),Gr=()=>(_e.inputValue=_e.displayInputValue,nextTick(()=>{~Un.value&&(zr(Un.value),qr(_e.hoveringIndex))})),qr=kr=>{Ne.value.scrollToItem(kr)},Jr=()=>{if(Cr(),$.multiple)if($.modelValue.length>0){let kr=!1;_e.cachedOptions.length=0,_e.previousValue=$.modelValue.toString(),$.modelValue.forEach(Rr=>{const Kr=An.value.findIndex(Yr=>dr(Yr)===Rr);~Kr&&(_e.cachedOptions.push(An.value[Kr]),kr||zr(Kr),kr=!0)})}else _e.cachedOptions=[],_e.previousValue=void 0;else if(bn.value){_e.previousValue=$.modelValue;const kr=An.value,Rr=kr.findIndex(Kr=>dr(Kr)===dr($.modelValue));~Rr?(_e.selectedLabel=kr[Rr].label,zr(Rr)):_e.selectedLabel=`${$.modelValue}`}else _e.selectedLabel="",_e.previousValue=void 0;Wn(),Nn()};return watch(hn,kr=>{var Rr,Kr;z("visible-change",kr),kr?(Kr=(Rr=Fe.value).update)==null||Kr.call(Rr):(_e.displayInputValue="",_e.previousQuery=null,ir(""))}),watch(()=>$.modelValue,(kr,Rr)=>{var Kr;(!kr||kr.toString()!==_e.previousValue)&&Jr(),!isEqual$1(kr,Rr)&&$.validateEvent&&((Kr=pe==null?void 0:pe.validate)==null||Kr.call(pe,"change").catch(Yr=>void 0))},{deep:!0}),watch(()=>$.options,()=>{const kr=Ie.value;(!kr||kr&&document.activeElement!==kr)&&Jr()},{deep:!0}),watch(An,()=>nextTick(Ne.value.resetScrollTop)),watch(()=>Jn.value,kr=>{kr||Cr()}),onMounted(()=>{Jr()}),useResizeObserver(ze,hr),{collapseTagSize:Fn,currentPlaceholder:zn,expanded:hn,emptyText:kn,popupHeight:_n,debounce:xn,filteredOptions:An,iconComponent:En,iconReverse:$n,inputWrapperStyle:Vn,popperSize:$e,dropdownMenuVisible:Jn,hasModelValue:bn,shouldShowPlaceholder:Bn,selectDisabled:vn,selectSize:Mn,showClearBtn:Cn,states:_e,tagMaxWidth:Dn,nsSelectV2:ae,nsInput:ie,calculatorRef:Lt,controlRef:xe,inputRef:Ie,menuRef:Ne,popper:Fe,selectRef:ze,selectionRef:At,popperRef:Xn,validateState:wn,validateIcon:Tn,showTagList:lr,collapseTagList:_r,debouncedOnInputChange:Sr,deleteTag:Lr,getLabel:sr,getValueKey:dr,handleBlur:Er,handleClear:er,handleClickOutside:Ur,handleDel:ur,handleEsc:$r,handleFocus:Mr,handleMenuEnter:Gr,handleResize:hr,toggleMenu:rr,scrollTo:qr,onInput:Hr,onKeyboardNavigate:Tr,onKeyboardSelect:Or,onSelect:Dr,onHover:zr,onUpdateInputValue:or,handleCompositionStart:tr,handleCompositionEnd:Gn,handleCompositionUpdate:pr}},_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($,{emit:z}){const oe=computed(()=>{const{modelValue:ie,multiple:le}=$,pe=le?[]:void 0;return isArray$c(ie)?le?ie:pe:le?pe:ie}),ae=useSelect$1(reactive({...toRefs($),modelValue:oe}),z);return provide(selectV2InjectionKey,{props:reactive({...toRefs($),height:ae.popupHeight,modelValue:oe}),popper:ae.popper,onSelect:ae.onSelect,onHover:ae.onHover,onKeyboardNavigate:ae.onKeyboardNavigate,onKeyboardSelect:ae.onKeyboardSelect}),{...ae,modelValue:oe}}}),_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($,z,oe,ae,ie,le){const pe=resolveComponent("el-tag"),_e=resolveComponent("el-tooltip"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-select-menu"),xe=resolveDirective("model-text"),Ie=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([$.nsSelectV2.b(),$.nsSelectV2.m($.selectSize)]),onClick:z[24]||(z[24]=withModifiers((...Ne)=>$.toggleMenu&&$.toggleMenu(...Ne),["stop"])),onMouseenter:z[25]||(z[25]=Ne=>$.states.comboBoxHovering=!0),onMouseleave:z[26]||(z[26]=Ne=>$.states.comboBoxHovering=!1)},[createVNode(_e,{ref:"popper",visible:$.dropdownMenuVisible,teleported:$.teleported,"popper-class":[$.nsSelectV2.e("popper"),$.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,placement:$.placement,pure:"",transition:`${$.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:$.persistent,onBeforeShow:$.handleMenuEnter,onHide:z[23]||(z[23]=Ne=>$.states.inputValue=$.states.displayInputValue)},{default:withCtx(()=>[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([$.nsSelectV2.e("wrapper"),$.nsSelectV2.is("focused",$.states.isComposing||$.expanded),$.nsSelectV2.is("hovering",$.states.comboBoxHovering),$.nsSelectV2.is("filterable",$.filterable),$.nsSelectV2.is("disabled",$.selectDisabled)])},[$.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$i,[renderSlot($.$slots,"prefix")])):createCommentVNode("v-if",!0),$.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.nsSelectV2.e("selection"))},[$.collapseTags&&$.modelValue.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,Ne=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Ne),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(pe,{closable:!$.selectDisabled&&!(Ne!=null&&Ne.disable),size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:Fe=>$.deleteTag(Fe,Ne)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1(Ne==null?void 0:Ne.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selected-item"))},[$.modelValue.length>$.maxCollapseTags?(openBlock(),createBlock(pe,{key:0,closable:!1,size:$.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(_e,{key:0,disabled:$.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,Ne=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Ne),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(pe,{closable:!$.selectDisabled&&!Ne.disabled,size:$.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:Fe=>$.deleteTag(Fe,Ne)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Ne)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)],64)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList($.states.cachedOptions,Ne=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Ne),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(pe,{closable:!$.selectDisabled&&!Ne.disabled,size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:Fe=>$.deleteTag(Fe,Ne)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Ne)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")]),style:normalizeStyle$1($.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef",autocomplete:$.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":$.expanded,"aria-labelledby":$.label,class:normalizeClass([$.nsSelectV2.is($.selectSize),$.nsSelectV2.e("combobox-input")]),disabled:$.disabled,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",name:$.name,unselectable:$.expanded?"on":void 0,"onUpdate:modelValue":z[0]||(z[0]=(...Ne)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Ne)),onFocus:z[1]||(z[1]=(...Ne)=>$.handleFocus&&$.handleFocus(...Ne)),onBlur:z[2]||(z[2]=(...Ne)=>$.handleBlur&&$.handleBlur(...Ne)),onInput:z[3]||(z[3]=(...Ne)=>$.onInput&&$.onInput(...Ne)),onCompositionstart:z[4]||(z[4]=(...Ne)=>$.handleCompositionStart&&$.handleCompositionStart(...Ne)),onCompositionupdate:z[5]||(z[5]=(...Ne)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Ne)),onCompositionend:z[6]||(z[6]=(...Ne)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Ne)),onKeydown:[z[7]||(z[7]=withKeys(withModifiers(Ne=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),z[8]||(z[8]=withKeys(withModifiers(Ne=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),z[9]||(z[9]=withKeys(withModifiers((...Ne)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Ne),["stop","prevent"]),["enter"])),z[10]||(z[10]=withKeys(withModifiers((...Ne)=>$.handleEsc&&$.handleEsc(...Ne),["stop","prevent"]),["esc"])),z[11]||(z[11]=withKeys(withModifiers((...Ne)=>$.handleDel&&$.handleDel(...Ne),["stop"]),["delete"]))]},null,42,_hoisted_2$d),[[xe,$.states.displayInputValue]]),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass($.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_3$7)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":$.label,"aria-expanded":$.expanded,autocapitalize:"off",autocomplete:$.autocomplete,class:normalizeClass($.nsSelectV2.e("combobox-input")),disabled:$.disabled,name:$.name,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",unselectable:$.expanded?"on":void 0,onCompositionstart:z[12]||(z[12]=(...Ne)=>$.handleCompositionStart&&$.handleCompositionStart(...Ne)),onCompositionupdate:z[13]||(z[13]=(...Ne)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Ne)),onCompositionend:z[14]||(z[14]=(...Ne)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Ne)),onFocus:z[15]||(z[15]=(...Ne)=>$.handleFocus&&$.handleFocus(...Ne)),onBlur:z[16]||(z[16]=(...Ne)=>$.handleBlur&&$.handleBlur(...Ne)),onInput:z[17]||(z[17]=(...Ne)=>$.onInput&&$.onInput(...Ne)),onKeydown:[z[18]||(z[18]=withKeys(withModifiers(Ne=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),z[19]||(z[19]=withKeys(withModifiers(Ne=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),z[20]||(z[20]=withKeys(withModifiers((...Ne)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Ne),["stop","prevent"]),["enter"])),z[21]||(z[21]=withKeys(withModifiers((...Ne)=>$.handleEsc&&$.handleEsc(...Ne),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":z[22]||(z[22]=(...Ne)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Ne))},null,42,_hoisted_4$4),[[xe,$.states.displayInputValue]])],2),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_5$2)):createCommentVNode("v-if",!0)],64)),$.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([$.nsSelectV2.e("placeholder"),$.nsSelectV2.is("transparent",$.multiple?$.modelValue.length===0:!$.hasModelValue)])},toDisplayString$1($.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("suffix"))},[$.iconComponent?withDirectives((openBlock(),createBlock(Ce,{key:0,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])),[[vShow,!$.showClearBtn]]):createCommentVNode("v-if",!0),$.showClearBtn&&$.clearIcon?(openBlock(),createBlock(Ce,{key:1,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon")]),onClick:withModifiers($.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.validateState&&$.validateIcon?(openBlock(),createBlock(Ce,{key:2,class:normalizeClass([$.nsInput.e("icon"),$.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]),content:withCtx(()=>[createVNode($e,{ref:"menuRef",data:$.filteredOptions,width:$.popperSize,"hovering-index":$.states.hoveringIndex,"scrollbar-always-on":$.scrollbarAlwaysOn},{default:withCtx(Ne=>[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps(Ne)))]),empty:withCtx(()=>[renderSlot($.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass($.nsSelectV2.e("empty"))},toDisplayString$1($.emptyText?$.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)),[[Ie,$.handleClickOutside,$.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=$=>{$.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($){const z=useNamespace("skeleton");return(oe,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).e("item"),unref(z).e(oe.variant)])},[oe.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($,{expose:z}){const oe=$,ae=useNamespace("skeleton"),ie=useThrottleRender(toRef$1(oe,"loading"),oe.throttle);return z({uiLoading:ie}),(le,pe)=>unref(ie)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(ae).b(),unref(ae).is("animated",le.animated)]},le.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(le.count,_e=>(openBlock(),createElementBlock(Fragment,{key:_e},[le.loading?renderSlot(le.$slots,"template",{key:_e},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(ae).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(le.rows,Ce=>(openBlock(),createBlock(SkeletonItem,{key:Ce,class:normalizeClass([unref(ae).e("paragraph"),unref(ae).is("last",Ce===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=$=>isNumber$5($)||isArray$c($)&&$.every(isNumber$5),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=($,z,oe)=>{const ae=ref();return onMounted(async()=>{$.range?(Array.isArray($.modelValue)?(z.firstValue=Math.max($.min,$.modelValue[0]),z.secondValue=Math.min($.max,$.modelValue[1])):(z.firstValue=$.min,z.secondValue=$.max),z.oldValue=[z.firstValue,z.secondValue]):(typeof $.modelValue!="number"||Number.isNaN($.modelValue)?z.firstValue=$.min:z.firstValue=Math.min($.max,Math.max($.min,$.modelValue)),z.oldValue=z.firstValue),useEventListener$1(window,"resize",oe),await nextTick(),oe()}),{sliderWrapper:ae}},useMarks=$=>computed(()=>$.marks?Object.keys($.marks).map(Number.parseFloat).sort((oe,ae)=>oe-ae).filter(oe=>oe<=$.max&&oe>=$.min).map(oe=>({point:oe,position:(oe-$.min)*100/($.max-$.min),mark:$.marks[oe]})):[]),useSlide=($,z,oe)=>{const{form:ae,formItem:ie}=useFormItem(),le=shallowRef(),pe=ref(),_e=ref(),Ce={firstButton:pe,secondButton:_e},$e=computed(()=>$.disabled||(ae==null?void 0:ae.disabled)||!1),xe=computed(()=>Math.min(z.firstValue,z.secondValue)),Ie=computed(()=>Math.max(z.firstValue,z.secondValue)),Ne=computed(()=>$.range?`${100*(Ie.value-xe.value)/($.max-$.min)}%`:`${100*(z.firstValue-$.min)/($.max-$.min)}%`),Fe=computed(()=>$.range?`${100*(xe.value-$.min)/($.max-$.min)}%`:"0%"),ze=computed(()=>$.vertical?{height:$.height}:{}),At=computed(()=>$.vertical?{height:Ne.value,bottom:Fe.value}:{width:Ne.value,left:Fe.value}),Lt=()=>{le.value&&(z.sliderSize=le.value[`client${$.vertical?"Height":"Width"}`])},hn=kn=>{const An=$.min+kn*($.max-$.min)/100;if(!$.range)return pe;let On;return Math.abs(xe.value-An)<Math.abs(Ie.value-An)?On=z.firstValue<z.secondValue?"firstButton":"secondButton":On=z.firstValue>z.secondValue?"firstButton":"secondButton",Ce[On]},vn=kn=>{const An=hn(kn);return An.value.setPosition(kn),An},_n=kn=>{z.firstValue=kn,Cn($.range?[xe.value,Ie.value]:kn)},bn=kn=>{z.secondValue=kn,$.range&&Cn([xe.value,Ie.value])},Cn=kn=>{oe(UPDATE_MODEL_EVENT,kn),oe(INPUT_EVENT,kn)},En=async()=>{await nextTick(),oe(CHANGE_EVENT,$.range?[xe.value,Ie.value]:$.modelValue)},$n=kn=>{var An,On,Mn,Fn,Dn,Nn;if($e.value||z.dragging)return;Lt();let Vn=0;if($.vertical){const Bn=(Mn=(On=(An=kn.touches)==null?void 0:An.item(0))==null?void 0:On.clientY)!=null?Mn:kn.clientY;Vn=(le.value.getBoundingClientRect().bottom-Bn)/z.sliderSize*100}else{const Bn=(Nn=(Dn=(Fn=kn.touches)==null?void 0:Fn.item(0))==null?void 0:Dn.clientX)!=null?Nn:kn.clientX,zn=le.value.getBoundingClientRect().left;Vn=(Bn-zn)/z.sliderSize*100}if(!(Vn<0||Vn>100))return vn(Vn)};return{elFormItem:ie,slider:le,firstButton:pe,secondButton:_e,sliderDisabled:$e,minValue:xe,maxValue:Ie,runwayStyle:ze,barStyle:At,resetSize:Lt,setPosition:vn,emitChange:En,onSliderWrapperPrevent:kn=>{var An,On;((An=Ce.firstButton.value)!=null&&An.dragging||(On=Ce.secondButton.value)!=null&&On.dragging)&&kn.preventDefault()},onSliderClick:kn=>{$n(kn)&&En()},onSliderDown:async kn=>{const An=$n(kn);An&&(await nextTick(),An.value.onButtonDown(kn))},setFirstValue:_n,setSecondValue:bn}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=($,z,oe)=>{const ae=ref(),ie=ref(!1),le=computed(()=>z.value instanceof Function),pe=computed(()=>le.value&&z.value($.modelValue)||$.modelValue),_e=debounce(()=>{oe.value&&(ie.value=!0)},50),Ce=debounce(()=>{oe.value&&(ie.value=!1)},50);return{tooltip:ae,tooltipVisible:ie,formatValue:pe,displayTooltip:_e,hideTooltip:Ce}},useSliderButton=($,z,oe)=>{const{disabled:ae,min:ie,max:le,step:pe,showTooltip:_e,precision:Ce,sliderSize:$e,formatTooltip:xe,emitChange:Ie,resetSize:Ne,updateDragging:Fe}=inject(sliderContextKey),{tooltip:ze,tooltipVisible:At,formatValue:Lt,displayTooltip:hn,hideTooltip:vn}=useTooltip($,xe,_e),_n=ref(),bn=computed(()=>`${($.modelValue-ie.value)/(le.value-ie.value)*100}%`),Cn=computed(()=>$.vertical?{bottom:bn.value}:{left:bn.value}),En=()=>{z.hovering=!0,hn()},$n=()=>{z.hovering=!1,z.dragging||vn()},wn=Un=>{ae.value||(Un.preventDefault(),Vn(Un),window.addEventListener("mousemove",Bn),window.addEventListener("touchmove",Bn),window.addEventListener("mouseup",zn),window.addEventListener("touchend",zn),window.addEventListener("contextmenu",zn),_n.value.focus())},Tn=Un=>{ae.value||(z.newPosition=Number.parseFloat(bn.value)+Un/(le.value-ie.value)*100,Xn(z.newPosition),Ie())},xn=()=>{Tn(-pe.value)},kn=()=>{Tn(pe.value)},An=()=>{Tn(-pe.value*4)},On=()=>{Tn(pe.value*4)},Mn=()=>{ae.value||(Xn(0),Ie())},Fn=()=>{ae.value||(Xn(100),Ie())},Dn=Un=>{let Jn=!0;[left,down].includes(Un.key)?xn():[right,up].includes(Un.key)?kn():Un.key===home$2?Mn():Un.key===end$1?Fn():Un.key===pageDown?An():Un.key===pageUp?On():Jn=!1,Jn&&Un.preventDefault()},Nn=Un=>{let Jn,lr;return Un.type.startsWith("touch")?(lr=Un.touches[0].clientY,Jn=Un.touches[0].clientX):(lr=Un.clientY,Jn=Un.clientX),{clientX:Jn,clientY:lr}},Vn=Un=>{z.dragging=!0,z.isClick=!0;const{clientX:Jn,clientY:lr}=Nn(Un);$.vertical?z.startY=lr:z.startX=Jn,z.startPosition=Number.parseFloat(bn.value),z.newPosition=z.startPosition},Bn=Un=>{if(z.dragging){z.isClick=!1,hn(),Ne();let Jn;const{clientX:lr,clientY:_r}=Nn(Un);$.vertical?(z.currentY=_r,Jn=(z.startY-z.currentY)/$e.value*100):(z.currentX=lr,Jn=(z.currentX-z.startX)/$e.value*100),z.newPosition=z.startPosition+Jn,Xn(z.newPosition)}},zn=()=>{z.dragging&&(setTimeout(()=>{z.dragging=!1,z.hovering||vn(),z.isClick||Xn(z.newPosition),Ie()},0),window.removeEventListener("mousemove",Bn),window.removeEventListener("touchmove",Bn),window.removeEventListener("mouseup",zn),window.removeEventListener("touchend",zn),window.removeEventListener("contextmenu",zn))},Xn=async Un=>{if(Un===null||Number.isNaN(+Un))return;Un<0?Un=0:Un>100&&(Un=100);const Jn=100/((le.value-ie.value)/pe.value);let _r=Math.round(Un/Jn)*Jn*(le.value-ie.value)*.01+ie.value;_r=Number.parseFloat(_r.toFixed(Ce.value)),_r!==$.modelValue&&oe(UPDATE_MODEL_EVENT,_r),!z.dragging&&$.modelValue!==z.oldValue&&(z.oldValue=$.modelValue),await nextTick(),z.dragging&&hn(),ze.value.updatePopper()};return watch(()=>z.dragging,Un=>{Fe(Un)}),{disabled:ae,button:_n,tooltip:ze,tooltipVisible:At,showTooltip:_e,wrapperStyle:Cn,formatValue:Lt,handleMouseEnter:En,handleMouseLeave:$n,onButtonDown:wn,onKeyDown:Dn,setPosition:Xn}},useStops=($,z,oe,ae)=>({stops:computed(()=>{if(!$.showStops||$.min>$.max)return[];if($.step===0)return[];const pe=($.max-$.min)/$.step,_e=100*$.step/($.max-$.min),Ce=Array.from({length:pe-1}).map(($e,xe)=>(xe+1)*_e);return $.range?Ce.filter($e=>$e<100*(oe.value-$.min)/($.max-$.min)||$e>100*(ae.value-$.min)/($.max-$.min)):Ce.filter($e=>$e>100*(z.firstValue-$.min)/($.max-$.min))}),getStopStyle:pe=>$.vertical?{bottom:`${pe}%`}:{left:`${pe}%`}}),useWatch=($,z,oe,ae,ie,le)=>{const pe=$e=>{ie(UPDATE_MODEL_EVENT,$e),ie(INPUT_EVENT,$e)},_e=()=>$.range?![oe.value,ae.value].every(($e,xe)=>$e===z.oldValue[xe]):$.modelValue!==z.oldValue,Ce=()=>{var $e,xe;$.min>$.max&&throwError$1("Slider","min should not be greater than max.");const Ie=$.modelValue;$.range&&Array.isArray(Ie)?Ie[1]<$.min?pe([$.min,$.min]):Ie[0]>$.max?pe([$.max,$.max]):Ie[0]<$.min?pe([$.min,Ie[1]]):Ie[1]>$.max?pe([Ie[0],$.max]):(z.firstValue=Ie[0],z.secondValue=Ie[1],_e()&&($.validateEvent&&(($e=le==null?void 0:le.validate)==null||$e.call(le,"change").catch(Ne=>void 0)),z.oldValue=Ie.slice())):!$.range&&typeof Ie=="number"&&!Number.isNaN(Ie)&&(Ie<$.min?pe($.min):Ie>$.max?pe($.max):(z.firstValue=Ie,_e()&&($.validateEvent&&((xe=le==null?void 0:le.validate)==null||xe.call(le,"change").catch(Ne=>void 0)),z.oldValue=Ie)))};Ce(),watch(()=>z.dragging,$e=>{$e||Ce()}),watch(()=>$.modelValue,($e,xe)=>{z.dragging||Array.isArray($e)&&Array.isArray(xe)&&$e.every((Ie,Ne)=>Ie===xe[Ne])&&z.firstValue===$e[0]&&z.secondValue===$e[1]||Ce()},{deep:!0}),watch(()=>[$.min,$.max],()=>{Ce()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$h=["tabindex"],__default__$r=defineComponent({name:"ElSliderButton"}),_sfc_main$A=defineComponent({...__default__$r,props:sliderButtonProps,emits:sliderButtonEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=useNamespace("slider"),le=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:ae.modelValue}),{disabled:pe,button:_e,tooltip:Ce,showTooltip:$e,tooltipVisible:xe,wrapperStyle:Ie,formatValue:Ne,handleMouseEnter:Fe,handleMouseLeave:ze,onButtonDown:At,onKeyDown:Lt,setPosition:hn}=useSliderButton(ae,le,oe),{hovering:vn,dragging:_n}=toRefs(le);return z({onButtonDown:At,onKeyDown:Lt,setPosition:hn,hovering:vn,dragging:_n}),(bn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:_e,class:normalizeClass([unref(ie).e("button-wrapper"),{hover:unref(vn),dragging:unref(_n)}]),style:normalizeStyle$1(unref(Ie)),tabindex:unref(pe)?-1:0,onMouseenter:Cn[0]||(Cn[0]=(...En)=>unref(Fe)&&unref(Fe)(...En)),onMouseleave:Cn[1]||(Cn[1]=(...En)=>unref(ze)&&unref(ze)(...En)),onMousedown:Cn[2]||(Cn[2]=(...En)=>unref(At)&&unref(At)(...En)),onTouchstart:Cn[3]||(Cn[3]=(...En)=>unref(At)&&unref(At)(...En)),onFocus:Cn[4]||(Cn[4]=(...En)=>unref(Fe)&&unref(Fe)(...En)),onBlur:Cn[5]||(Cn[5]=(...En)=>unref(ze)&&unref(ze)(...En)),onKeydown:Cn[6]||(Cn[6]=(...En)=>unref(Lt)&&unref(Lt)(...En))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:Ce,visible:unref(xe),placement:bn.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":bn.tooltipClass,disabled:!unref($e),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref(Ne)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(ie).e("button"),{hover:unref(vn),dragging:unref(_n)}])},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($){const z=useNamespace("slider"),oe=computed(()=>isString$7($.mark)?$.mark:$.mark.label),ae=computed(()=>isString$7($.mark)?void 0:$.mark.style);return()=>h$3("div",{class:z.e("marks-text"),style:ae.value},oe.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($,{expose:z,emit:oe}){const ae=$,ie=useNamespace("slider"),{t:le}=useLocale(),pe=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:_e,slider:Ce,firstButton:$e,secondButton:xe,sliderDisabled:Ie,minValue:Ne,maxValue:Fe,runwayStyle:ze,barStyle:At,resetSize:Lt,emitChange:hn,onSliderWrapperPrevent:vn,onSliderClick:_n,onSliderDown:bn,setFirstValue:Cn,setSecondValue:En}=useSlide(ae,pe,oe),{stops:$n,getStopStyle:wn}=useStops(ae,pe,Ne,Fe),{inputId:Tn,isLabeledByFormItem:xn}=useFormItemInputId(ae,{formItemContext:_e}),kn=useFormSize(),An=computed(()=>ae.inputSize||kn.value),On=computed(()=>ae.label||le("el.slider.defaultLabel",{min:ae.min,max:ae.max})),Mn=computed(()=>ae.range?ae.rangeStartLabel||le("el.slider.defaultRangeStartLabel"):On.value),Fn=computed(()=>ae.formatValueText?ae.formatValueText(Un.value):`${Un.value}`),Dn=computed(()=>ae.rangeEndLabel||le("el.slider.defaultRangeEndLabel")),Nn=computed(()=>ae.formatValueText?ae.formatValueText(Jn.value):`${Jn.value}`),Vn=computed(()=>[ie.b(),ie.m(kn.value),ie.is("vertical",ae.vertical),{[ie.m("with-input")]:ae.showInput}]),Bn=useMarks(ae);useWatch(ae,pe,Ne,Fe,oe,_e);const zn=computed(()=>{const ir=[ae.min,ae.max,ae.step].map(qn=>{const Yn=`${qn}`.split(".")[1];return Yn?Yn.length:0});return Math.max.apply(null,ir)}),{sliderWrapper:Xn}=useLifecycle(ae,pe,Lt),{firstValue:Un,secondValue:Jn,sliderSize:lr}=toRefs(pe),_r=ir=>{pe.dragging=ir};return provide(sliderContextKey,{...toRefs(ae),sliderSize:lr,disabled:Ie,precision:zn,emitChange:hn,resetSize:Lt,updateDragging:_r}),z({onSliderClick:_n}),(ir,qn)=>{var Yn,Wn;return openBlock(),createElementBlock("div",{id:ir.range?unref(Tn):void 0,ref_key:"sliderWrapper",ref:Xn,class:normalizeClass(unref(Vn)),role:ir.range?"group":void 0,"aria-label":ir.range&&!unref(xn)?unref(On):void 0,"aria-labelledby":ir.range&&unref(xn)?(Yn=unref(_e))==null?void 0:Yn.labelId:void 0,onTouchstart:qn[2]||(qn[2]=(...tr)=>unref(vn)&&unref(vn)(...tr)),onTouchmove:qn[3]||(qn[3]=(...tr)=>unref(vn)&&unref(vn)(...tr))},[createBaseVNode("div",{ref_key:"slider",ref:Ce,class:normalizeClass([unref(ie).e("runway"),{"show-input":ir.showInput&&!ir.range},unref(ie).is("disabled",unref(Ie))]),style:normalizeStyle$1(unref(ze)),onMousedown:qn[0]||(qn[0]=(...tr)=>unref(bn)&&unref(bn)(...tr)),onTouchstart:qn[1]||(qn[1]=(...tr)=>unref(bn)&&unref(bn)(...tr))},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("bar")),style:normalizeStyle$1(unref(At))},null,6),createVNode(SliderButton,{id:ir.range?void 0:unref(Tn),ref_key:"firstButton",ref:$e,"model-value":unref(Un),vertical:ir.vertical,"tooltip-class":ir.tooltipClass,placement:ir.placement,role:"slider","aria-label":ir.range||!unref(xn)?unref(Mn):void 0,"aria-labelledby":!ir.range&&unref(xn)?(Wn=unref(_e))==null?void 0:Wn.labelId:void 0,"aria-valuemin":ir.min,"aria-valuemax":ir.range?unref(Jn):ir.max,"aria-valuenow":unref(Un),"aria-valuetext":unref(Fn),"aria-orientation":ir.vertical?"vertical":"horizontal","aria-disabled":unref(Ie),"onUpdate:modelValue":unref(Cn)},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"]),ir.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:xe,"model-value":unref(Jn),vertical:ir.vertical,"tooltip-class":ir.tooltipClass,placement:ir.placement,role:"slider","aria-label":unref(Dn),"aria-valuemin":unref(Un),"aria-valuemax":ir.max,"aria-valuenow":unref(Jn),"aria-valuetext":unref(Nn),"aria-orientation":ir.vertical?"vertical":"horizontal","aria-disabled":unref(Ie),"onUpdate:modelValue":unref(En)},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),ir.showStops?(openBlock(),createElementBlock("div",_hoisted_2$c,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref($n),(tr,pr)=>(openBlock(),createElementBlock("div",{key:pr,class:normalizeClass(unref(ie).e("stop")),style:normalizeStyle$1(unref(wn)(tr))},null,6))),128))])):createCommentVNode("v-if",!0),unref(Bn).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Bn),(tr,pr)=>(openBlock(),createElementBlock("div",{key:pr,style:normalizeStyle$1(unref(wn)(tr.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(Bn),(tr,pr)=>(openBlock(),createBlock(unref(SliderMarker),{key:pr,mark:tr.mark,style:normalizeStyle$1(unref(wn)(tr.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),ir.showInput&&!ir.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Un),class:normalizeClass(unref(ie).e("input")),step:ir.step,disabled:unref(Ie),controls:ir.showInputControls,min:ir.min,max:ir.max,debounce:ir.debounce,size:unref(An),"onUpdate:modelValue":unref(Cn),onChange:unref(hn)},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($,{slots:z}){const oe=useNamespace("space"),ae=computed(()=>`${$.prefixCls||oe.b()}__item`);return()=>h$3("div",{class:ae.value},renderSlot(z,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace($){const z=useNamespace("space"),oe=computed(()=>[z.b(),z.m($.direction),$.class]),ae=ref(0),ie=ref(0),le=computed(()=>{const _e=$.wrap||$.fill?{flexWrap:"wrap",marginBottom:`-${ie.value}px`}:{},Ce={alignItems:$.alignment};return[_e,Ce,$.style]}),pe=computed(()=>{const _e={paddingBottom:`${ie.value}px`,marginRight:`${ae.value}px`},Ce=$.fill?{flexGrow:1,minWidth:`${$.fillRatio}%`}:{};return[_e,Ce]});return watchEffect(()=>{const{size:_e="small",wrap:Ce,direction:$e,fill:xe}=$;if(isArray$c(_e)){const[Ie=0,Ne=0]=_e;ae.value=Ie,ie.value=Ne}else{let Ie;isNumber$5(_e)?Ie=_e:Ie=SIZE_MAP[_e||"small"]||SIZE_MAP.small,(Ce||xe)&&$e==="horizontal"?ae.value=ie.value=Ie:$e==="horizontal"?(ae.value=Ie,ie.value=0):(ie.value=Ie,ae.value=0)}}),{classes:oe,containerStyle:le,itemStyle:pe}}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:$=>isVNode$1($)||isNumber$5($)||isString$7($)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:$=>isNumber$5($)||isArray$c($)&&$.length===2&&$.every(isNumber$5)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup($,{slots:z}){const{classes:oe,containerStyle:ae,itemStyle:ie}=useSpace($);function le(pe,_e="",Ce=[]){const{prefixCls:$e}=$;return pe.forEach((xe,Ie)=>{isFragment(xe)?isArray$c(xe.children)&&xe.children.forEach((Ne,Fe)=>{isFragment(Ne)&&isArray$c(Ne.children)?le(Ne.children,`${_e+Fe}-`,Ce):Ce.push(createVNode(SpaceItem,{style:ie.value,prefixCls:$e,key:`nested-${_e+Fe}`},{default:()=>[Ne]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(xe)&&Ce.push(createVNode(SpaceItem,{style:ie.value,prefixCls:$e,key:`LoopKey${_e+Ie}`},{default:()=>[xe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),Ce}return()=>{var pe;const{spacer:_e,direction:Ce}=$,$e=renderSlot(z,"default",{key:0},()=>[]);if(((pe=$e.children)!=null?pe:[]).length===0)return null;if(isArray$c($e.children)){let xe=le($e.children);if(_e){const Ie=xe.length-1;xe=xe.reduce((Ne,Fe,ze)=>{const At=[...Ne,Fe];return ze!==Ie&&At.push(createVNode("span",{style:[ie.value,Ce==="vertical"?"width: 100%":null],key:ze},[isVNode$1(_e)?_e:createTextVNode(_e,PatchFlags.TEXT)],PatchFlags.STYLE)),At},[])}return createVNode("div",{class:oe.value,style:ae.value},xe,PatchFlags.STYLE|PatchFlags.CLASS)}return $e.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($,{expose:z}){const oe=$,ae=useNamespace("statistic"),ie=computed(()=>{const{value:le,formatter:pe,precision:_e,decimalSeparator:Ce,groupSeparator:$e}=oe;if(isFunction$5(pe))return pe(le);if(!isNumber$5(le))return le;let[xe,Ie=""]=String(le).split(".");return Ie=Ie.padEnd(_e,"0").slice(0,_e>0?_e:0),xe=xe.replace(/\B(?=(\d{3})+(?!\d))/g,$e),[xe,Ie].join(Ie?Ce:"")});return z({displayValue:ie}),(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[le.$slots.title||le.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("head"))},[renderSlot(le.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(le.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ae).e("content"))},[le.$slots.prefix||le.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("prefix"))},[renderSlot(le.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(le.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(ae).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(ae).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]:$=>isNumber$5($)},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=$=>isNumber$5($)?new Date($).getTime():$.valueOf(),formatTime$2=($,z)=>{let oe=$;const ae=/\[([^\]]*)]/g;return timeUnits$1.reduce((le,[pe,_e])=>{const Ce=new RegExp(`${pe}+(?![^\\[\\]]*\\])`,"g");if(Ce.test(le)){const $e=Math.floor(oe/_e);return oe-=$e*_e,le.replace(Ce,xe=>String($e).padStart(xe.length,"0"))}return le},z).replace(ae,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$x=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup($,{expose:z,emit:oe}){const ae=$;let ie;const le=ref(getTime$1(ae.value)-Date.now()),pe=computed(()=>formatTime$2(le.value,ae.format)),_e=xe=>formatTime$2(xe,ae.format),Ce=()=>{ie&&(cAF(ie),ie=void 0)},$e=()=>{const xe=getTime$1(ae.value),Ie=()=>{let Ne=xe-Date.now();oe("change",Ne),Ne<=0?(Ne=0,Ce(),oe("finish")):ie=rAF(Ie),le.value=Ne};ie=rAF(Ie)};return watch(()=>[ae.value,ae.format],()=>{Ce(),$e()},{immediate:!0}),onBeforeUnmount(()=>{Ce()}),z({displayValue:pe}),(xe,Ie)=>(openBlock(),createBlock(unref(ElStatistic),{value:le.value,title:xe.title,prefix:xe.prefix,suffix:xe.suffix,"value-style":xe.valueStyle,formatter:_e},createSlots({_:2},[renderList(xe.$slots,(Ne,Fe)=>({name:Fe,fn:withCtx(()=>[renderSlot(xe.$slots,Fe)])}))]),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]:($,z)=>[$,z].every(isNumber$5)},__default__$n=defineComponent({name:"ElSteps"}),_sfc_main$w=defineComponent({...__default__$n,props:stepsProps,emits:stepsEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("steps"),ie=ref([]);return watch(ie,()=>{ie.value.forEach((le,pe)=>{le.setIndex(pe)})}),provide("ElSteps",{props:oe,steps:ie}),watch(()=>oe.active,(le,pe)=>{z(CHANGE_EVENT,le,pe)}),(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(le.simple?"simple":le.direction)])},[renderSlot(le.$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($){const z=$,oe=useNamespace("step"),ae=ref(-1),ie=ref({}),le=ref(""),pe=inject("ElSteps"),_e=getCurrentInstance();onMounted(()=>{watch([()=>pe.props.active,()=>pe.props.processStatus,()=>pe.props.finishStatus],([Cn])=>{_n(Cn)},{immediate:!0})}),onBeforeUnmount(()=>{pe.steps.value=pe.steps.value.filter(Cn=>Cn.uid!==(_e==null?void 0:_e.uid))});const Ce=computed(()=>z.status||le.value),$e=computed(()=>{const Cn=pe.steps.value[ae.value-1];return Cn?Cn.currentStatus:"wait"}),xe=computed(()=>pe.props.alignCenter),Ie=computed(()=>pe.props.direction==="vertical"),Ne=computed(()=>pe.props.simple),Fe=computed(()=>pe.steps.value.length),ze=computed(()=>{var Cn;return((Cn=pe.steps.value[Fe.value-1])==null?void 0:Cn.uid)===(_e==null?void 0:_e.uid)}),At=computed(()=>Ne.value?"":pe.props.space),Lt=computed(()=>{const Cn={flexBasis:isNumber$5(At.value)?`${At.value}px`:At.value?At.value:`${100/(Fe.value-(xe.value?0:1))}%`};return Ie.value||ze.value&&(Cn.maxWidth=`${100/Fe.value}%`),Cn}),hn=Cn=>{ae.value=Cn},vn=Cn=>{const En=Cn==="wait",$n={transitionDelay:`${En?"-":""}${150*ae.value}ms`},wn=Cn===pe.props.processStatus||En?0:100;$n.borderWidth=wn&&!Ne.value?"1px":0,$n[pe.props.direction==="vertical"?"height":"width"]=`${wn}%`,ie.value=$n},_n=Cn=>{Cn>ae.value?le.value=pe.props.finishStatus:Cn===ae.value&&$e.value!=="error"?le.value=pe.props.processStatus:le.value="wait";const En=pe.steps.value[ae.value-1];En&&En.calcProgress(le.value)},bn=reactive({uid:computed(()=>_e==null?void 0:_e.uid),currentStatus:Ce,setIndex:hn,calcProgress:vn});return pe.steps.value=[...pe.steps.value,bn],(Cn,En)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(Lt)),class:normalizeClass([unref(oe).b(),unref(oe).is(unref(Ne)?"simple":unref(pe).props.direction),unref(oe).is("flex",unref(ze)&&!unref(At)&&!unref(xe)),unref(oe).is("center",unref(xe)&&!unref(Ie)&&!unref(Ne))])},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(oe).e("head"),unref(oe).is(unref(Ce))])},[unref(Ne)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(oe).e("line-inner")),style:normalizeStyle$1(ie.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(oe).e("icon"),unref(oe).is(Cn.icon||Cn.$slots.icon?"icon":"text")])},[renderSlot(Cn.$slots,"icon",{},()=>[Cn.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.icon)))]),_:1},8,["class"])):unref(Ce)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(oe).e("icon-inner"),unref(oe).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref(Ce)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(oe).e("icon-inner"),unref(oe).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref(Ne)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(oe).e("icon-inner"))},toDisplayString$1(ae.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(oe).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(oe).e("title"),unref(oe).is(unref(Ce))])},[renderSlot(Cn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Cn.title),1)])],2),unref(Ne)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(oe).e("description"),unref(oe).is(unref(Ce))])},[renderSlot(Cn.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(Cn.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},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:definePropType(Function)},size:{type:String,validator:isValidComponentSize},tabindex:{type:[String,Number]}}),switchEmits={[UPDATE_MODEL_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[CHANGE_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[INPUT_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($)},_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($,{expose:z,emit:oe}){const ae=$,ie=getCurrentInstance(),{formItem:le}=useFormItem(),pe=useFormSize(),_e=useNamespace("switch");useDeprecated({from:'"value"',replacement:'"model-value" or "v-model"',scope:COMPONENT_NAME$8,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var Cn;return!!((Cn=ie.vnode.props)!=null&&Cn.value)}));const{inputId:Ce}=useFormItemInputId(ae,{formItemContext:le}),$e=useFormDisabled(computed(()=>ae.loading)),xe=ref(ae.modelValue!==!1),Ie=ref(),Ne=ref(),Fe=computed(()=>[_e.b(),_e.m(pe.value),_e.is("disabled",$e.value),_e.is("checked",Lt.value)]),ze=computed(()=>({width:addUnit(ae.width)}));watch(()=>ae.modelValue,()=>{xe.value=!0}),watch(()=>ae.value,()=>{xe.value=!1});const At=computed(()=>xe.value?ae.modelValue:ae.value),Lt=computed(()=>At.value===ae.activeValue);[ae.activeValue,ae.inactiveValue].includes(At.value)||(oe(UPDATE_MODEL_EVENT,ae.inactiveValue),oe(CHANGE_EVENT,ae.inactiveValue),oe(INPUT_EVENT,ae.inactiveValue)),watch(Lt,Cn=>{var En;Ie.value.checked=Cn,ae.validateEvent&&((En=le==null?void 0:le.validate)==null||En.call(le,"change").catch($n=>void 0))});const hn=()=>{const Cn=Lt.value?ae.inactiveValue:ae.activeValue;oe(UPDATE_MODEL_EVENT,Cn),oe(CHANGE_EVENT,Cn),oe(INPUT_EVENT,Cn),nextTick(()=>{Ie.value.checked=Lt.value})},vn=()=>{if($e.value)return;const{beforeChange:Cn}=ae;if(!Cn){hn();return}const En=Cn();[isPromise(En),isBoolean$3(En)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise<boolean>` or `boolean`"),isPromise(En)?En.then(wn=>{wn&&hn()}).catch(wn=>{}):En&&hn()},_n=computed(()=>_e.cssVarBlock({...ae.activeColor?{"on-color":ae.activeColor}:null,...ae.inactiveColor?{"off-color":ae.inactiveColor}:null,...ae.borderColor?{"border-color":ae.borderColor}:null})),bn=()=>{var Cn,En;(En=(Cn=Ie.value)==null?void 0:Cn.focus)==null||En.call(Cn)};return onMounted(()=>{Ie.value.checked=Lt.value}),z({focus:bn,checked:Lt}),(Cn,En)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Fe)),style:normalizeStyle$1(unref(_n)),onClick:withModifiers(vn,["prevent"])},[createBaseVNode("input",{id:unref(Ce),ref_key:"input",ref:Ie,class:normalizeClass(unref(_e).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(vn,["enter"])},null,42,_hoisted_2$b),!Cn.inlinePrompt&&(Cn.inactiveIcon||Cn.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(_e).e("label"),unref(_e).em("label","left"),unref(_e).is("active",!unref(Lt))])},[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:Ne,class:normalizeClass(unref(_e).e("core")),style:normalizeStyle$1(unref(ze))},[Cn.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_e).e("inner"))},[Cn.activeIcon||Cn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).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(_e).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(_e).e("action"))},[Cn.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!Cn.inlinePrompt&&(Cn.activeIcon||Cn.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(_e).e("label"),unref(_e).em("label","right"),unref(_e).is("active",unref(Lt))])},[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($){var z=""+$,oe=matchHtmlRegExp.exec(z);if(!oe)return z;var ae,ie="",le=0,pe=0;for(le=oe.index;le<z.length;le++){switch(z.charCodeAt(le)){case 34:ae=""";break;case 38:ae="&";break;case 39:ae="'";break;case 60:ae="<";break;case 62:ae=">";break;default:continue}pe!==le&&(ie+=z.substring(pe,le)),pe=le+1,ie+=ae}return pe!==le?ie+z.substring(pe,le):ie}const escapeHtml$2=getDefaultExportFromCjs(escapeHtml_1),getCell=function($){var z;return(z=$.target)==null?void 0:z.closest("td")},orderBy=function($,z,oe,ae,ie){if(!z&&!ae&&(!ie||Array.isArray(ie)&&!ie.length))return $;typeof oe=="string"?oe=oe==="descending"?-1:1:oe=oe&&oe<0?-1:1;const le=ae?null:function(_e,Ce){return ie?(Array.isArray(ie)||(ie=[ie]),ie.map($e=>typeof $e=="string"?get$1(_e,$e):$e(_e,Ce,$))):(z!=="$key"&&isObject$8(_e)&&"$value"in _e&&(_e=_e.$value),[isObject$8(_e)?get$1(_e,z):_e])},pe=function(_e,Ce){if(ae)return ae(_e.value,Ce.value);for(let $e=0,xe=_e.key.length;$e<xe;$e++){if(_e.key[$e]<Ce.key[$e])return-1;if(_e.key[$e]>Ce.key[$e])return 1}return 0};return $.map((_e,Ce)=>({value:_e,index:Ce,key:le?le(_e,Ce):null})).sort((_e,Ce)=>{let $e=pe(_e,Ce);return $e||($e=_e.index-Ce.index),$e*+oe}).map(_e=>_e.value)},getColumnById=function($,z){let oe=null;return $.columns.forEach(ae=>{ae.id===z&&(oe=ae)}),oe},getColumnByKey=function($,z){let oe=null;for(let ae=0;ae<$.columns.length;ae++){const ie=$.columns[ae];if(ie.columnKey===z){oe=ie;break}}return oe||throwError$1("ElTable",`No column matching with column-key: ${z}`),oe},getColumnByCell=function($,z,oe){const ae=(z.className||"").match(new RegExp(`${oe}-table_[^\\s]+`,"gm"));return ae?getColumnById($,ae[0]):null},getRowIdentity=($,z)=>{if(!$)throw new Error("Row is required when get row identity");if(typeof z=="string"){if(!z.includes("."))return`${$[z]}`;const oe=z.split(".");let ae=$;for(const ie of oe)ae=ae[ie];return`${ae}`}else if(typeof z=="function")return z.call(null,$)},getKeysMap=function($,z){const oe={};return($||[]).forEach((ae,ie)=>{oe[getRowIdentity(ae,z)]={row:ae,index:ie}}),oe};function mergeOptions$1($,z){const oe={};let ae;for(ae in $)oe[ae]=$[ae];for(ae in z)if(hasOwn$4(z,ae)){const ie=z[ae];typeof ie<"u"&&(oe[ae]=ie)}return oe}function parseWidth($){return $===""||$!==void 0&&($=Number.parseInt($,10),Number.isNaN($)&&($="")),$}function parseMinWidth($){return $===""||$!==void 0&&($=parseWidth($),Number.isNaN($)&&($=80)),$}function parseHeight($){return typeof $=="number"?$:typeof $=="string"?/^\d+(?:px)?$/.test($)?Number.parseInt($,10):$:null}function compose(...$){return $.length===0?z=>z:$.length===1?$[0]:$.reduce((z,oe)=>(...ae)=>z(oe(...ae)))}function toggleRowStatus($,z,oe){let ae=!1;const ie=$.indexOf(z),le=ie!==-1,pe=_e=>{_e==="add"?$.push(z):$.splice(ie,1),ae=!0,isArray$c(z.children)&&z.children.forEach(Ce=>{toggleRowStatus($,Ce,oe??!le)})};return isBoolean$3(oe)?oe&&!le?pe("add"):!oe&&le&&pe("remove"):pe(le?"remove":"add"),ae}function walkTreeNode($,z,oe="children",ae="hasChildren"){const ie=pe=>!(Array.isArray(pe)&&pe.length);function le(pe,_e,Ce){z(pe,_e,Ce),_e.forEach($e=>{if($e[ae]){z($e,null,Ce+1);return}const xe=$e[oe];ie(xe)||le($e,xe,Ce+1)})}$.forEach(pe=>{if(pe[ae]){z(pe,null,0);return}const _e=pe[oe];ie(_e)||le(pe,_e,0)})}let removePopper;function createTablePopper($,z,oe,ae,ie){ie=merge$4({enterable:!0,showArrow:!0},ie);const le=$==null?void 0:$.dataset.prefix,pe=$==null?void 0:$.querySelector(`.${le}-scrollbar__wrap`);function _e(){const Lt=ie.effect==="light",hn=document.createElement("div");return hn.className=[`${le}-popper`,Lt?"is-light":"is-dark",ie.popperClass||""].join(" "),oe=escapeHtml$2(oe),hn.innerHTML=oe,hn.style.zIndex=String(ae()),$==null||$.appendChild(hn),hn}function Ce(){const Lt=document.createElement("div");return Lt.className=`${le}-popper__arrow`,Lt}function $e(){xe&&xe.update()}removePopper==null||removePopper(),removePopper=()=>{try{xe&&xe.destroy(),Fe&&($==null||$.removeChild(Fe)),z.removeEventListener("mouseenter",Ie),z.removeEventListener("mouseleave",Ne),pe==null||pe.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let xe=null,Ie=$e,Ne=removePopper;ie.enterable&&({onOpen:Ie,onClose:Ne}=useDelayedToggle({showAfter:ie.showAfter,hideAfter:ie.hideAfter,open:$e,close:removePopper}));const Fe=_e();Fe.onmouseenter=Ie,Fe.onmouseleave=Ne;const ze=[];if(ie.offset&&ze.push({name:"offset",options:{offset:[0,ie.offset]}}),ie.showArrow){const Lt=Fe.appendChild(Ce());ze.push({name:"arrow",options:{element:Lt,padding:10}})}const At=ie.popperOptions||{};return xe=yn(z,Fe,{placement:ie.placement||"top",strategy:"fixed",...At,modifiers:At.modifiers?ze.concat(At.modifiers):ze}),z.addEventListener("mouseenter",Ie),z.addEventListener("mouseleave",Ne),pe==null||pe.addEventListener("scroll",removePopper),xe}function getCurrentColumns($){return $.children?flatMap($.children,getCurrentColumns):[$]}function getColSpan($,z){return $+z.colSpan}const isFixedColumn=($,z,oe,ae)=>{let ie=0,le=$;const pe=oe.states.columns.value;if(ae){const Ce=getCurrentColumns(ae[$]);ie=pe.slice(0,pe.indexOf(Ce[0])).reduce(getColSpan,0),le=ie+Ce.reduce(getColSpan,0)-1}else ie=$;let _e;switch(z){case"left":le<oe.states.fixedLeafColumnsLength.value&&(_e="left");break;case"right":ie>=pe.length-oe.states.rightFixedLeafColumnsLength.value&&(_e="right");break;default:le<oe.states.fixedLeafColumnsLength.value?_e="left":ie>=pe.length-oe.states.rightFixedLeafColumnsLength.value&&(_e="right")}return _e?{direction:_e,start:ie,after:le}:{}},getFixedColumnsClass=($,z,oe,ae,ie,le=0)=>{const pe=[],{direction:_e,start:Ce,after:$e}=isFixedColumn(z,oe,ae,ie);if(_e){const xe=_e==="left";pe.push(`${$}-fixed-column--${_e}`),xe&&$e+le===ae.states.fixedLeafColumnsLength.value-1?pe.push("is-last-column"):!xe&&Ce-le===ae.states.columns.value.length-ae.states.rightFixedLeafColumnsLength.value&&pe.push("is-first-column")}return pe};function getOffset($,z){return $+(z.realWidth===null||Number.isNaN(z.realWidth)?Number(z.width):z.realWidth)}const getFixedColumnOffset=($,z,oe,ae)=>{const{direction:ie,start:le=0,after:pe=0}=isFixedColumn($,z,oe,ae);if(!ie)return;const _e={},Ce=ie==="left",$e=oe.states.columns.value;return Ce?_e.left=$e.slice(0,le).reduce(getOffset,0):_e.right=$e.slice(pe+1).reverse().reduce(getOffset,0),_e},ensurePosition=($,z)=>{$&&(Number.isNaN($[z])||($[z]=`${$[z]}px`))};function useExpand($){const z=getCurrentInstance(),oe=ref(!1),ae=ref([]);return{updateExpandRows:()=>{const Ce=$.data.value||[],$e=$.rowKey.value;if(oe.value)ae.value=Ce.slice();else if($e){const xe=getKeysMap(ae.value,$e);ae.value=Ce.reduce((Ie,Ne)=>{const Fe=getRowIdentity(Ne,$e);return xe[Fe]&&Ie.push(Ne),Ie},[])}else ae.value=[]},toggleRowExpansion:(Ce,$e)=>{toggleRowStatus(ae.value,Ce,$e)&&z.emit("expand-change",Ce,ae.value.slice())},setExpandRowKeys:Ce=>{z.store.assertRowKey();const $e=$.data.value||[],xe=$.rowKey.value,Ie=getKeysMap($e,xe);ae.value=Ce.reduce((Ne,Fe)=>{const ze=Ie[Fe];return ze&&Ne.push(ze.row),Ne},[])},isRowExpanded:Ce=>{const $e=$.rowKey.value;return $e?!!getKeysMap(ae.value,$e)[getRowIdentity(Ce,$e)]:ae.value.includes(Ce)},states:{expandRows:ae,defaultExpandAll:oe}}}function useCurrent($){const z=getCurrentInstance(),oe=ref(null),ae=ref(null),ie=$e=>{z.store.assertRowKey(),oe.value=$e,pe($e)},le=()=>{oe.value=null},pe=$e=>{const{data:xe,rowKey:Ie}=$;let Ne=null;Ie.value&&(Ne=(unref(xe)||[]).find(Fe=>getRowIdentity(Fe,Ie.value)===$e)),ae.value=Ne,z.emit("current-change",ae.value,null)};return{setCurrentRowKey:ie,restoreCurrentRowKey:le,setCurrentRowByKey:pe,updateCurrentRow:$e=>{const xe=ae.value;if($e&&$e!==xe){ae.value=$e,z.emit("current-change",ae.value,xe);return}!$e&&xe&&(ae.value=null,z.emit("current-change",null,xe))},updateCurrentRowData:()=>{const $e=$.rowKey.value,xe=$.data.value||[],Ie=ae.value;if(!xe.includes(Ie)&&Ie){if($e){const Ne=getRowIdentity(Ie,$e);pe(Ne)}else ae.value=null;ae.value===null&&z.emit("current-change",null,Ie)}else oe.value&&(pe(oe.value),le())},states:{_currentRowKey:oe,currentRow:ae}}}function useTree$2($){const z=ref([]),oe=ref({}),ae=ref(16),ie=ref(!1),le=ref({}),pe=ref("hasChildren"),_e=ref("children"),Ce=getCurrentInstance(),$e=computed(()=>{if(!$.rowKey.value)return{};const hn=$.data.value||[];return Ie(hn)}),xe=computed(()=>{const hn=$.rowKey.value,vn=Object.keys(le.value),_n={};return vn.length&&vn.forEach(bn=>{if(le.value[bn].length){const Cn={children:[]};le.value[bn].forEach(En=>{const $n=getRowIdentity(En,hn);Cn.children.push($n),En[pe.value]&&!_n[$n]&&(_n[$n]={children:[]})}),_n[bn]=Cn}}),_n}),Ie=hn=>{const vn=$.rowKey.value,_n={};return walkTreeNode(hn,(bn,Cn,En)=>{const $n=getRowIdentity(bn,vn);Array.isArray(Cn)?_n[$n]={children:Cn.map(wn=>getRowIdentity(wn,vn)),level:En}:ie.value&&(_n[$n]={children:[],lazy:!0,level:En})},_e.value,pe.value),_n},Ne=(hn=!1,vn=(_n=>(_n=Ce.store)==null?void 0:_n.states.defaultExpandAll.value)())=>{var _n;const bn=$e.value,Cn=xe.value,En=Object.keys(bn),$n={};if(En.length){const wn=unref(oe),Tn=[],xn=(An,On)=>{if(hn)return z.value?vn||z.value.includes(On):!!(vn||An!=null&&An.expanded);{const Mn=vn||z.value&&z.value.includes(On);return!!(An!=null&&An.expanded||Mn)}};En.forEach(An=>{const On=wn[An],Mn={...bn[An]};if(Mn.expanded=xn(On,An),Mn.lazy){const{loaded:Fn=!1,loading:Dn=!1}=On||{};Mn.loaded=!!Fn,Mn.loading=!!Dn,Tn.push(An)}$n[An]=Mn});const kn=Object.keys(Cn);ie.value&&kn.length&&Tn.length&&kn.forEach(An=>{const On=wn[An],Mn=Cn[An].children;if(Tn.includes(An)){if($n[An].children.length!==0)throw new Error("[ElTable]children must be an empty array.");$n[An].children=Mn}else{const{loaded:Fn=!1,loading:Dn=!1}=On||{};$n[An]={lazy:!0,loaded:!!Fn,loading:!!Dn,expanded:xn(On,An),children:Mn,level:""}}})}oe.value=$n,(_n=Ce.store)==null||_n.updateTableScrollY()};watch(()=>z.value,()=>{Ne(!0)}),watch(()=>$e.value,()=>{Ne()}),watch(()=>xe.value,()=>{Ne()});const Fe=hn=>{z.value=hn,Ne()},ze=(hn,vn)=>{Ce.store.assertRowKey();const _n=$.rowKey.value,bn=getRowIdentity(hn,_n),Cn=bn&&oe.value[bn];if(bn&&Cn&&"expanded"in Cn){const En=Cn.expanded;vn=typeof vn>"u"?!Cn.expanded:vn,oe.value[bn].expanded=vn,En!==vn&&Ce.emit("expand-change",hn,vn),Ce.store.updateTableScrollY()}},At=hn=>{Ce.store.assertRowKey();const vn=$.rowKey.value,_n=getRowIdentity(hn,vn),bn=oe.value[_n];ie.value&&bn&&"loaded"in bn&&!bn.loaded?Lt(hn,_n,bn):ze(hn,void 0)},Lt=(hn,vn,_n)=>{const{load:bn}=Ce.props;bn&&!oe.value[vn].loaded&&(oe.value[vn].loading=!0,bn(hn,_n,Cn=>{if(!Array.isArray(Cn))throw new TypeError("[ElTable] data must be an array");oe.value[vn].loading=!1,oe.value[vn].loaded=!0,oe.value[vn].expanded=!0,Cn.length&&(le.value[vn]=Cn),Ce.emit("expand-change",hn,!0)}))};return{loadData:Lt,loadOrToggle:At,toggleTreeExpansion:ze,updateTreeExpandKeys:Fe,updateTreeData:Ne,normalize:Ie,states:{expandRowKeys:z,treeData:oe,indent:ae,lazy:ie,lazyTreeNodeMap:le,lazyColumnIdentifier:pe,childrenColumnName:_e}}}const sortData=($,z)=>{const oe=z.sortingColumn;return!oe||typeof oe.sortable=="string"?$:orderBy($,z.sortProp,z.sortOrder,oe.sortMethod,oe.sortBy)},doFlattenColumns=$=>{const z=[];return $.forEach(oe=>{oe.children?z.push.apply(z,doFlattenColumns(oe.children)):z.push(oe)}),z};function useWatcher$1(){var $;const z=getCurrentInstance(),{size:oe}=toRefs(($=z.proxy)==null?void 0:$.$props),ae=ref(null),ie=ref([]),le=ref([]),pe=ref(!1),_e=ref([]),Ce=ref([]),$e=ref([]),xe=ref([]),Ie=ref([]),Ne=ref([]),Fe=ref([]),ze=ref([]),At=[],Lt=ref(0),hn=ref(0),vn=ref(0),_n=ref(!1),bn=ref([]),Cn=ref(!1),En=ref(!1),$n=ref(null),wn=ref({}),Tn=ref(null),xn=ref(null),kn=ref(null),An=ref(null),On=ref(null);watch(ie,()=>z.state&&Nn(!1),{deep:!0});const Mn=()=>{if(!ae.value)throw new Error("[ElTable] prop row-key is required")},Fn=$r=>{var ur;(ur=$r.children)==null||ur.forEach(er=>{er.fixed=$r.fixed,Fn(er)})},Dn=()=>{_e.value.forEach(Tr=>{Fn(Tr)}),xe.value=_e.value.filter(Tr=>Tr.fixed===!0||Tr.fixed==="left"),Ie.value=_e.value.filter(Tr=>Tr.fixed==="right"),xe.value.length>0&&_e.value[0]&&_e.value[0].type==="selection"&&!_e.value[0].fixed&&(_e.value[0].fixed=!0,xe.value.unshift(_e.value[0]));const $r=_e.value.filter(Tr=>!Tr.fixed);Ce.value=[].concat(xe.value).concat($r).concat(Ie.value);const ur=doFlattenColumns($r),er=doFlattenColumns(xe.value),or=doFlattenColumns(Ie.value);Lt.value=ur.length,hn.value=er.length,vn.value=or.length,$e.value=[].concat(er).concat(ur).concat(or),pe.value=xe.value.length>0||Ie.value.length>0},Nn=($r,ur=!1)=>{$r&&Dn(),ur?z.state.doLayout():z.state.debouncedUpdateLayout()},Vn=$r=>bn.value.includes($r),Bn=()=>{_n.value=!1,bn.value.length&&(bn.value=[],z.emit("selection-change",[]))},zn=()=>{let $r;if(ae.value){$r=[];const ur=getKeysMap(bn.value,ae.value),er=getKeysMap(ie.value,ae.value);for(const or in ur)hasOwn$4(ur,or)&&!er[or]&&$r.push(ur[or].row)}else $r=bn.value.filter(ur=>!ie.value.includes(ur));if($r.length){const ur=bn.value.filter(er=>!$r.includes(er));bn.value=ur,z.emit("selection-change",ur.slice())}},Xn=()=>(bn.value||[]).slice(),Un=($r,ur=void 0,er=!0)=>{if(toggleRowStatus(bn.value,$r,ur)){const Tr=(bn.value||[]).slice();er&&z.emit("select",Tr,$r),z.emit("selection-change",Tr)}},Jn=()=>{var $r,ur;const er=En.value?!_n.value:!(_n.value||bn.value.length);_n.value=er;let or=!1,Tr=0;const Or=(ur=($r=z==null?void 0:z.store)==null?void 0:$r.states)==null?void 0:ur.rowKey.value;ie.value.forEach((zr,Cr)=>{const Nr=Cr+Tr;$n.value?$n.value.call(null,zr,Nr)&&toggleRowStatus(bn.value,zr,er)&&(or=!0):toggleRowStatus(bn.value,zr,er)&&(or=!0),Tr+=ir(getRowIdentity(zr,Or))}),or&&z.emit("selection-change",bn.value?bn.value.slice():[]),z.emit("select-all",bn.value)},lr=()=>{const $r=getKeysMap(bn.value,ae.value);ie.value.forEach(ur=>{const er=getRowIdentity(ur,ae.value),or=$r[er];or&&(bn.value[or.index]=ur)})},_r=()=>{var $r,ur,er;if((($r=ie.value)==null?void 0:$r.length)===0){_n.value=!1;return}let or;ae.value&&(or=getKeysMap(bn.value,ae.value));const Tr=function(Nr){return or?!!or[getRowIdentity(Nr,ae.value)]:bn.value.includes(Nr)};let Or=!0,zr=0,Cr=0;for(let Nr=0,Hr=(ie.value||[]).length;Nr<Hr;Nr++){const Ur=(er=(ur=z==null?void 0:z.store)==null?void 0:ur.states)==null?void 0:er.rowKey.value,Gr=Nr+Cr,qr=ie.value[Nr],Jr=$n.value&&$n.value.call(null,qr,Gr);if(Tr(qr))zr++;else if(!$n.value||Jr){Or=!1;break}Cr+=ir(getRowIdentity(qr,Ur))}zr===0&&(Or=!1),_n.value=Or},ir=$r=>{var ur;if(!z||!z.store)return 0;const{treeData:er}=z.store.states;let or=0;const Tr=(ur=er.value[$r])==null?void 0:ur.children;return Tr&&(or+=Tr.length,Tr.forEach(Or=>{or+=ir(Or)})),or},qn=($r,ur)=>{Array.isArray($r)||($r=[$r]);const er={};return $r.forEach(or=>{wn.value[or.id]=ur,er[or.columnKey||or.id]=ur}),er},Yn=($r,ur,er)=>{xn.value&&xn.value!==$r&&(xn.value.order=null),xn.value=$r,kn.value=ur,An.value=er},Wn=()=>{let $r=unref(le);Object.keys(wn.value).forEach(ur=>{const er=wn.value[ur];if(!er||er.length===0)return;const or=getColumnById({columns:$e.value},ur);or&&or.filterMethod&&($r=$r.filter(Tr=>er.some(Or=>or.filterMethod.call(null,Or,Tr,or))))}),Tn.value=$r},tr=()=>{ie.value=sortData(Tn.value,{sortingColumn:xn.value,sortProp:kn.value,sortOrder:An.value})},pr=($r=void 0)=>{$r&&$r.filter||Wn(),tr()},Gn=$r=>{const{tableHeaderRef:ur}=z.refs;if(!ur)return;const er=Object.assign({},ur.filterPanels),or=Object.keys(er);if(or.length)if(typeof $r=="string"&&($r=[$r]),Array.isArray($r)){const Tr=$r.map(Or=>getColumnByKey({columns:$e.value},Or));or.forEach(Or=>{const zr=Tr.find(Cr=>Cr.id===Or);zr&&(zr.filteredValue=[])}),z.store.commit("filterChange",{column:Tr,values:[],silent:!0,multi:!0})}else or.forEach(Tr=>{const Or=$e.value.find(zr=>zr.id===Tr);Or&&(Or.filteredValue=[])}),wn.value={},z.store.commit("filterChange",{column:{},values:[],silent:!0})},Zn=()=>{xn.value&&(Yn(null,null,null),z.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:rr,toggleRowExpansion:mr,updateExpandRows:Sr,states:ar,isRowExpanded:xr}=useExpand({data:ie,rowKey:ae}),{updateTreeExpandKeys:gr,toggleTreeExpansion:Pr,updateTreeData:dr,loadOrToggle:sr,states:cr}=useTree$2({data:ie,rowKey:ae}),{updateCurrentRowData:hr,updateCurrentRow:Ar,setCurrentRowKey:Dr,states:Lr}=useCurrent({data:ie,rowKey:ae});return{assertRowKey:Mn,updateColumns:Dn,scheduleLayout:Nn,isSelected:Vn,clearSelection:Bn,cleanSelection:zn,getSelectionRows:Xn,toggleRowSelection:Un,_toggleAllSelection:Jn,toggleAllSelection:null,updateSelectionByRowKey:lr,updateAllSelected:_r,updateFilters:qn,updateCurrentRow:Ar,updateSort:Yn,execFilter:Wn,execSort:tr,execQuery:pr,clearFilter:Gn,clearSort:Zn,toggleRowExpansion:mr,setExpandRowKeysAdapter:$r=>{rr($r),gr($r)},setCurrentRowKey:Dr,toggleRowExpansionAdapter:($r,ur)=>{$e.value.some(({type:or})=>or==="expand")?mr($r,ur):Pr($r,ur)},isRowExpanded:xr,updateExpandRows:Sr,updateCurrentRowData:hr,loadOrToggle:sr,updateTreeData:dr,states:{tableSize:oe,rowKey:ae,data:ie,_data:le,isComplex:pe,_columns:_e,originColumns:Ce,columns:$e,fixedColumns:xe,rightFixedColumns:Ie,leafColumns:Ne,fixedLeafColumns:Fe,rightFixedLeafColumns:ze,updateOrderFns:At,leafColumnsLength:Lt,fixedLeafColumnsLength:hn,rightFixedLeafColumnsLength:vn,isAllSelected:_n,selection:bn,reserveSelection:Cn,selectOnIndeterminate:En,selectable:$n,filters:wn,filteredData:Tn,sortingColumn:xn,sortProp:kn,sortOrder:An,hoverRow:On,...ar,...cr,...Lr}}}function replaceColumn($,z){return $.map(oe=>{var ae;return oe.id===z.id?z:((ae=oe.children)!=null&&ae.length&&(oe.children=replaceColumn(oe.children,z)),oe)})}function sortColumn($){$.forEach(z=>{var oe,ae;z.no=(oe=z.getColumnIndex)==null?void 0:oe.call(z),(ae=z.children)!=null&&ae.length&&sortColumn(z.children)}),$.sort((z,oe)=>z.no-oe.no)}function useStore(){const $=getCurrentInstance(),z=useWatcher$1();return{ns:useNamespace("table"),...z,mutations:{setData(pe,_e){const Ce=unref(pe._data)!==_e;pe.data.value=_e,pe._data.value=_e,$.store.execQuery(),$.store.updateCurrentRowData(),$.store.updateExpandRows(),$.store.updateTreeData($.store.states.defaultExpandAll.value),unref(pe.reserveSelection)?($.store.assertRowKey(),$.store.updateSelectionByRowKey()):Ce?$.store.clearSelection():$.store.cleanSelection(),$.store.updateAllSelected(),$.$ready&&$.store.scheduleLayout()},insertColumn(pe,_e,Ce,$e){const xe=unref(pe._columns);let Ie=[];Ce?(Ce&&!Ce.children&&(Ce.children=[]),Ce.children.push(_e),Ie=replaceColumn(xe,Ce)):(xe.push(_e),Ie=xe),sortColumn(Ie),pe._columns.value=Ie,pe.updateOrderFns.push($e),_e.type==="selection"&&(pe.selectable.value=_e.selectable,pe.reserveSelection.value=_e.reserveSelection),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},updateColumnOrder(pe,_e){var Ce;((Ce=_e.getColumnIndex)==null?void 0:Ce.call(_e))!==_e.no&&(sortColumn(pe._columns.value),$.$ready&&$.store.updateColumns())},removeColumn(pe,_e,Ce,$e){const xe=unref(pe._columns)||[];if(Ce)Ce.children.splice(Ce.children.findIndex(Ne=>Ne.id===_e.id),1),nextTick(()=>{var Ne;((Ne=Ce.children)==null?void 0:Ne.length)===0&&delete Ce.children}),pe._columns.value=replaceColumn(xe,Ce);else{const Ne=xe.indexOf(_e);Ne>-1&&(xe.splice(Ne,1),pe._columns.value=xe)}const Ie=pe.updateOrderFns.indexOf($e);Ie>-1&&pe.updateOrderFns.splice(Ie,1),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},sort(pe,_e){const{prop:Ce,order:$e,init:xe}=_e;if(Ce){const Ie=unref(pe.columns).find(Ne=>Ne.property===Ce);Ie&&(Ie.order=$e,$.store.updateSort(Ie,Ce,$e),$.store.commit("changeSortCondition",{init:xe}))}},changeSortCondition(pe,_e){const{sortingColumn:Ce,sortProp:$e,sortOrder:xe}=pe,Ie=unref(Ce),Ne=unref($e),Fe=unref(xe);Fe===null&&(pe.sortingColumn.value=null,pe.sortProp.value=null);const ze={filter:!0};$.store.execQuery(ze),(!_e||!(_e.silent||_e.init))&&$.emit("sort-change",{column:Ie,prop:Ne,order:Fe}),$.store.updateTableScrollY()},filterChange(pe,_e){const{column:Ce,values:$e,silent:xe}=_e,Ie=$.store.updateFilters(Ce,$e);$.store.execQuery(),xe||$.emit("filter-change",Ie),$.store.updateTableScrollY()},toggleAllSelection(){$.store.toggleAllSelection()},rowSelectedChanged(pe,_e){$.store.toggleRowSelection(_e),$.store.updateAllSelected()},setHoverRow(pe,_e){pe.hoverRow.value=_e},setCurrentRow(pe,_e){$.store.updateCurrentRow(_e)}},commit:function(pe,..._e){const Ce=$.store.mutations;if(Ce[pe])Ce[pe].apply($,[$.store.states].concat(_e));else throw new Error(`Action not found: ${pe}`)},updateTableScrollY:function(){nextTick(()=>$.layout.updateScrollY.apply($.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($,z){if(!$)throw new Error("Table is required.");const oe=useStore();return oe.toggleAllSelection=debounce(oe._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(ae=>{handleValue(getArrKeysValue(z,ae),ae,oe)}),proxyTableProps(oe,z),oe}function proxyTableProps($,z){Object.keys(InitialStateMap).forEach(oe=>{watch(()=>getArrKeysValue(z,oe),ae=>{handleValue(ae,oe,$)})})}function handleValue($,z,oe){let ae=$,ie=InitialStateMap[z];typeof InitialStateMap[z]=="object"&&(ie=ie.key,ae=ae||InitialStateMap[z].default),oe.states[ie].value=ae}function getArrKeysValue($,z){if(z.includes(".")){const oe=z.split(".");let ae=$;return oe.forEach(ie=>{ae=ae[ie]}),ae}else return $[z]}class TableLayout{constructor(z){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 oe in z)hasOwn$4(z,oe)&&(isRef(this[oe])?this[oe].value=z[oe]:this[oe]=z[oe]);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 oe=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(oe!=null&&oe.wrapRef)){let ae=!0;const ie=this.scrollY.value;return ae=oe.wrapRef.scrollHeight>oe.wrapRef.clientHeight,this.scrollY.value=ae,ie!==ae}return!1}setHeight(z,oe="height"){if(!isClient$2)return;const ae=this.table.vnode.el;if(z=parseHeight(z),this.height.value=Number(z),!ae&&(z||z===0))return nextTick(()=>this.setHeight(z,oe));typeof z=="number"?(ae.style[oe]=`${z}px`,this.updateElsHeight()):typeof z=="string"&&(ae.style[oe]=z,this.updateElsHeight())}setMaxHeight(z){this.setHeight(z,"max-height")}getFlattenColumns(){const z=[];return this.table.store.states.columns.value.forEach(ae=>{ae.isColumnGroup?z.push.apply(z,ae.columns):z.push(ae)}),z}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(z){if(!z)return!0;let oe=z;for(;oe.tagName!=="DIV";){if(getComputedStyle(oe).display==="none")return!0;oe=oe.parentElement}return!1}updateColumnsWidth(){if(!isClient$2)return;const z=this.fit,oe=this.table.vnode.el.clientWidth;let ae=0;const ie=this.getFlattenColumns(),le=ie.filter(Ce=>typeof Ce.width!="number");if(ie.forEach(Ce=>{typeof Ce.width=="number"&&Ce.realWidth&&(Ce.realWidth=null)}),le.length>0&&z){if(ie.forEach(Ce=>{ae+=Number(Ce.width||Ce.minWidth||80)}),ae<=oe){this.scrollX.value=!1;const Ce=oe-ae;if(le.length===1)le[0].realWidth=Number(le[0].minWidth||80)+Ce;else{const $e=le.reduce((Ne,Fe)=>Ne+Number(Fe.minWidth||80),0),xe=Ce/$e;let Ie=0;le.forEach((Ne,Fe)=>{if(Fe===0)return;const ze=Math.floor(Number(Ne.minWidth||80)*xe);Ie+=ze,Ne.realWidth=Number(Ne.minWidth||80)+ze}),le[0].realWidth=Number(le[0].minWidth||80)+Ce-Ie}}else this.scrollX.value=!0,le.forEach(Ce=>{Ce.realWidth=Number(Ce.minWidth)});this.bodyWidth.value=Math.max(ae,oe),this.table.state.resizeState.value.width=this.bodyWidth.value}else ie.forEach(Ce=>{!Ce.width&&!Ce.minWidth?Ce.realWidth=80:Ce.realWidth=Number(Ce.width||Ce.minWidth),ae+=Ce.realWidth}),this.scrollX.value=ae>oe,this.bodyWidth.value=ae;const pe=this.store.states.fixedColumns.value;if(pe.length>0){let Ce=0;pe.forEach($e=>{Ce+=Number($e.realWidth||$e.width)}),this.fixedWidth.value=Ce}const _e=this.store.states.rightFixedColumns.value;if(_e.length>0){let Ce=0;_e.forEach($e=>{Ce+=Number($e.realWidth||$e.width)}),this.rightFixedWidth.value=Ce}this.notifyObservers("columns")}addObserver(z){this.observers.push(z)}removeObserver(z){const oe=this.observers.indexOf(z);oe!==-1&&this.observers.splice(oe,1)}notifyObservers(z){this.observers.forEach(ae=>{var ie,le;switch(z){case"columns":(ie=ae.state)==null||ie.onColumnsChange(this);break;case"scrollable":(le=ae.state)==null||le.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${z}.`)}})}}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($){const z=getCurrentInstance(),{t:oe}=useLocale(),ae=useNamespace("table-filter"),ie=z==null?void 0:z.parent;ie.filterPanels.value[$.column.id]||(ie.filterPanels.value[$.column.id]=z);const le=ref(!1),pe=ref(null),_e=computed(()=>$.column&&$.column.filters),Ce=computed({get:()=>{var bn;return(((bn=$.column)==null?void 0:bn.filteredValue)||[])[0]},set:bn=>{$e.value&&(typeof bn<"u"&&bn!==null?$e.value.splice(0,1,bn):$e.value.splice(0,1))}}),$e=computed({get(){return $.column?$.column.filteredValue||[]:[]},set(bn){$.column&&$.upDataColumn("filteredValue",bn)}}),xe=computed(()=>$.column?$.column.filterMultiple:!0),Ie=bn=>bn.value===Ce.value,Ne=()=>{le.value=!1},Fe=bn=>{bn.stopPropagation(),le.value=!le.value},ze=()=>{le.value=!1},At=()=>{vn($e.value),Ne()},Lt=()=>{$e.value=[],vn($e.value),Ne()},hn=bn=>{Ce.value=bn,vn(typeof bn<"u"&&bn!==null?$e.value:[]),Ne()},vn=bn=>{$.store.commit("filterChange",{column:$.column,values:bn}),$.store.updateAllSelected()};watch(le,bn=>{$.column&&$.upDataColumn("filterOpened",bn)},{immediate:!0});const _n=computed(()=>{var bn,Cn;return(Cn=(bn=pe.value)==null?void 0:bn.popperRef)==null?void 0:Cn.contentRef});return{tooltipVisible:le,multiple:xe,filteredValue:$e,filterValue:Ce,filters:_e,handleConfirm:At,handleReset:Lt,handleSelect:hn,isActive:Ie,t:oe,ns:ae,showFilterPanel:Fe,hideFilterPanel:ze,popperPaneRef:_n,tooltip:pe}}}),_hoisted_1$e={key:0},_hoisted_2$a=["disabled"],_hoisted_3$5=["label","onClick"];function _sfc_render$5($,z,oe,ae,ie,le){const pe=resolveComponent("el-checkbox"),_e=resolveComponent("el-checkbox-group"),Ce=resolveComponent("el-scrollbar"),$e=resolveComponent("arrow-up"),xe=resolveComponent("arrow-down"),Ie=resolveComponent("el-icon"),Ne=resolveComponent("el-tooltip"),Fe=resolveDirective("click-outside");return openBlock(),createBlock(Ne,{ref:"tooltip",visible:$.tooltipVisible,offset:0,placement:$.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":$.ns.b(),persistent:""},{content:withCtx(()=>[$.multiple?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[createVNode(Ce,{"wrap-class":$.ns.e("wrap")},{default:withCtx(()=>[createVNode(_e,{modelValue:$.filteredValue,"onUpdate:modelValue":z[0]||(z[0]=ze=>$.filteredValue=ze),class:normalizeClass($.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,ze=>(openBlock(),createBlock(pe,{key:ze.value,label:ze.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(ze.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[$.ns.is("disabled")]:$.filteredValue.length===0}),disabled:$.filteredValue.length===0,type:"button",onClick:z[1]||(z[1]=(...ze)=>$.handleConfirm&&$.handleConfirm(...ze))},toDisplayString$1($.t("el.table.confirmFilter")),11,_hoisted_2$a),createBaseVNode("button",{type:"button",onClick:z[2]||(z[2]=(...ze)=>$.handleReset&&$.handleReset(...ze))},toDisplayString$1($.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass($.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([$.ns.e("list-item"),{[$.ns.is("active")]:$.filterValue===void 0||$.filterValue===null}]),onClick:z[3]||(z[3]=ze=>$.handleSelect(null))},toDisplayString$1($.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,ze=>(openBlock(),createElementBlock("li",{key:ze.value,class:normalizeClass([$.ns.e("list-item"),$.ns.is("active",$.isActive(ze))]),label:ze.value,onClick:At=>$.handleSelect(ze.value)},toDisplayString$1(ze.text),11,_hoisted_3$5))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${$.ns.namespace.value}-table__column-filter-trigger`,`${$.ns.namespace.value}-none-outline`]),onClick:z[4]||(z[4]=(...ze)=>$.showFilterPanel&&$.showFilterPanel(...ze))},[createVNode(Ie,null,{default:withCtx(()=>[$.column.filterOpened?(openBlock(),createBlock($e,{key:0})):(openBlock(),createBlock(xe,{key:1}))]),_:1})],2)),[[Fe,$.hideFilterPanel,$.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($){const z=getCurrentInstance();onBeforeMount(()=>{oe.value.addObserver(z)}),onMounted(()=>{ae(oe.value),ie(oe.value)}),onUpdated(()=>{ae(oe.value),ie(oe.value)}),onUnmounted(()=>{oe.value.removeObserver(z)});const oe=computed(()=>{const le=$.layout;if(!le)throw new Error("Can not find table layout.");return le}),ae=le=>{var pe;const _e=((pe=$.vnode.el)==null?void 0:pe.querySelectorAll("colgroup > col"))||[];if(!_e.length)return;const Ce=le.getFlattenColumns(),$e={};Ce.forEach(xe=>{$e[xe.id]=xe});for(let xe=0,Ie=_e.length;xe<Ie;xe++){const Ne=_e[xe],Fe=Ne.getAttribute("name"),ze=$e[Fe];ze&&Ne.setAttribute("width",ze.realWidth||ze.width)}},ie=le=>{var pe,_e;const Ce=((pe=$.vnode.el)==null?void 0:pe.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let xe=0,Ie=Ce.length;xe<Ie;xe++)Ce[xe].setAttribute("width",le.scrollY.value?le.gutterWidth:"0");const $e=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("th.gutter"))||[];for(let xe=0,Ie=$e.length;xe<Ie;xe++){const Ne=$e[xe];Ne.style.width=le.scrollY.value?`${le.gutterWidth}px`:"0",Ne.style.display=le.scrollY.value?"":"none"}};return{tableLayout:oe.value,onColumnsChange:ae,onScrollableChange:ie}}const TABLE_INJECTION_KEY=Symbol("ElTable");function useEvent($,z){const oe=getCurrentInstance(),ae=inject(TABLE_INJECTION_KEY),ie=At=>{At.stopPropagation()},le=(At,Lt)=>{!Lt.filters&&Lt.sortable?ze(At,Lt,!1):Lt.filterable&&!Lt.sortable&&ie(At),ae==null||ae.emit("header-click",Lt,At)},pe=(At,Lt)=>{ae==null||ae.emit("header-contextmenu",Lt,At)},_e=ref(null),Ce=ref(!1),$e=ref({}),xe=(At,Lt)=>{if(isClient$2&&!(Lt.children&&Lt.children.length>0)&&_e.value&&$.border){Ce.value=!0;const hn=ae;z("set-drag-visible",!0);const _n=(hn==null?void 0:hn.vnode.el).getBoundingClientRect().left,bn=oe.vnode.el.querySelector(`th.${Lt.id}`),Cn=bn.getBoundingClientRect(),En=Cn.left-_n+30;addClass(bn,"noclick"),$e.value={startMouseLeft:At.clientX,startLeft:Cn.right-_n,startColumnLeft:Cn.left-_n,tableLeft:_n};const $n=hn==null?void 0:hn.refs.resizeProxy;$n.style.left=`${$e.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const wn=xn=>{const kn=xn.clientX-$e.value.startMouseLeft,An=$e.value.startLeft+kn;$n.style.left=`${Math.max(En,An)}px`},Tn=()=>{if(Ce.value){const{startColumnLeft:xn,startLeft:kn}=$e.value,On=Number.parseInt($n.style.left,10)-xn;Lt.width=Lt.realWidth=On,hn==null||hn.emit("header-dragend",Lt.width,kn-xn,Lt,At),requestAnimationFrame(()=>{$.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",Ce.value=!1,_e.value=null,$e.value={},z("set-drag-visible",!1)}document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",Tn),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(bn,"noclick")},0)};document.addEventListener("mousemove",wn),document.addEventListener("mouseup",Tn)}},Ie=(At,Lt)=>{var hn;if(Lt.children&&Lt.children.length>0)return;const vn=(hn=At.target)==null?void 0:hn.closest("th");if(!(!Lt||!Lt.resizable)&&!Ce.value&&$.border){const _n=vn.getBoundingClientRect(),bn=document.body.style;_n.width>12&&_n.right-At.pageX<8?(bn.cursor="col-resize",hasClass(vn,"is-sortable")&&(vn.style.cursor="col-resize"),_e.value=Lt):Ce.value||(bn.cursor="",hasClass(vn,"is-sortable")&&(vn.style.cursor="pointer"),_e.value=null)}},Ne=()=>{isClient$2&&(document.body.style.cursor="")},Fe=({order:At,sortOrders:Lt})=>{if(At==="")return Lt[0];const hn=Lt.indexOf(At||null);return Lt[hn>Lt.length-2?0:hn+1]},ze=(At,Lt,hn)=>{var vn;At.stopPropagation();const _n=Lt.order===hn?null:hn||Fe(Lt),bn=(vn=At.target)==null?void 0:vn.closest("th");if(bn&&hasClass(bn,"noclick")){removeClass(bn,"noclick");return}if(!Lt.sortable)return;const Cn=$.store.states;let En=Cn.sortProp.value,$n;const wn=Cn.sortingColumn.value;(wn!==Lt||wn===Lt&&wn.order===null)&&(wn&&(wn.order=null),Cn.sortingColumn.value=Lt,En=Lt.property),_n?$n=Lt.order=_n:$n=Lt.order=null,Cn.sortProp.value=En,Cn.sortOrder.value=$n,ae==null||ae.store.commit("changeSortCondition")};return{handleHeaderClick:le,handleHeaderContextMenu:pe,handleMouseDown:xe,handleMouseMove:Ie,handleMouseOut:Ne,handleSortClick:ze,handleFilterClick:ie}}function useStyle$2($){const z=inject(TABLE_INJECTION_KEY),oe=useNamespace("table");return{getHeaderRowStyle:_e=>{const Ce=z==null?void 0:z.props.headerRowStyle;return typeof Ce=="function"?Ce.call(null,{rowIndex:_e}):Ce},getHeaderRowClass:_e=>{const Ce=[],$e=z==null?void 0:z.props.headerRowClassName;return typeof $e=="string"?Ce.push($e):typeof $e=="function"&&Ce.push($e.call(null,{rowIndex:_e})),Ce.join(" ")},getHeaderCellStyle:(_e,Ce,$e,xe)=>{var Ie;let Ne=(Ie=z==null?void 0:z.props.headerCellStyle)!=null?Ie:{};typeof Ne=="function"&&(Ne=Ne.call(null,{rowIndex:_e,columnIndex:Ce,row:$e,column:xe}));const Fe=getFixedColumnOffset(Ce,xe.fixed,$.store,$e);return ensurePosition(Fe,"left"),ensurePosition(Fe,"right"),Object.assign({},Ne,Fe)},getHeaderCellClass:(_e,Ce,$e,xe)=>{const Ie=getFixedColumnsClass(oe.b(),Ce,xe.fixed,$.store,$e),Ne=[xe.id,xe.order,xe.headerAlign,xe.className,xe.labelClassName,...Ie];xe.children||Ne.push("is-leaf"),xe.sortable&&Ne.push("is-sortable");const Fe=z==null?void 0:z.props.headerCellClassName;return typeof Fe=="string"?Ne.push(Fe):typeof Fe=="function"&&Ne.push(Fe.call(null,{rowIndex:_e,columnIndex:Ce,row:$e,column:xe})),Ne.push(oe.e("cell")),Ne.filter(ze=>!!ze).join(" ")}}}const getAllColumns=$=>{const z=[];return $.forEach(oe=>{oe.children?(z.push(oe),z.push.apply(z,getAllColumns(oe.children))):z.push(oe)}),z},convertToRows=$=>{let z=1;const oe=(le,pe)=>{if(pe&&(le.level=pe.level+1,z<le.level&&(z=le.level)),le.children){let _e=0;le.children.forEach(Ce=>{oe(Ce,le),_e+=Ce.colSpan}),le.colSpan=_e}else le.colSpan=1};$.forEach(le=>{le.level=1,oe(le,void 0)});const ae=[];for(let le=0;le<z;le++)ae.push([]);return getAllColumns($).forEach(le=>{le.children?(le.rowSpan=1,le.children.forEach(pe=>pe.isSubColumn=!0)):le.rowSpan=z-le.level+1,ae[le.level-1].push(le)}),ae};function useUtils$1($){const z=inject(TABLE_INJECTION_KEY),oe=computed(()=>convertToRows($.store.states.originColumns.value));return{isGroup:computed(()=>{const le=oe.value.length>1;return le&&z&&(z.state.isGroup.value=!0),le}),toggleAllSelection:le=>{le.stopPropagation(),z==null||z.store.commit("toggleAllSelection")},columnRows:oe}}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($,{emit:z}){const oe=getCurrentInstance(),ae=inject(TABLE_INJECTION_KEY),ie=useNamespace("table"),le=ref({}),{onColumnsChange:pe,onScrollableChange:_e}=useLayoutObserver(ae);onMounted(async()=>{await nextTick(),await nextTick();const{prop:En,order:$n}=$.defaultSort;ae==null||ae.store.commit("sort",{prop:En,order:$n,init:!0})});const{handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleMouseOut:Ne,handleSortClick:Fe,handleFilterClick:ze}=useEvent($,z),{getHeaderRowStyle:At,getHeaderRowClass:Lt,getHeaderCellStyle:hn,getHeaderCellClass:vn}=useStyle$2($),{isGroup:_n,toggleAllSelection:bn,columnRows:Cn}=useUtils$1($);return oe.state={onColumnsChange:pe,onScrollableChange:_e},oe.filterPanels=le,{ns:ie,filterPanels:le,onColumnsChange:pe,onScrollableChange:_e,columnRows:Cn,getHeaderRowClass:Lt,getHeaderRowStyle:At,getHeaderCellClass:vn,getHeaderCellStyle:hn,handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleMouseOut:Ne,handleSortClick:Fe,handleFilterClick:ze,isGroup:_n,toggleAllSelection:bn}},render(){const{ns:$,isGroup:z,columnRows:oe,getHeaderCellStyle:ae,getHeaderCellClass:ie,getHeaderRowClass:le,getHeaderRowStyle:pe,handleHeaderClick:_e,handleHeaderContextMenu:Ce,handleMouseDown:$e,handleMouseMove:xe,handleSortClick:Ie,handleMouseOut:Ne,store:Fe,$parent:ze}=this;let At=1;return h$3("thead",{class:{[$.is("group")]:z}},oe.map((Lt,hn)=>h$3("tr",{class:le(hn),key:hn,style:pe(hn)},Lt.map((vn,_n)=>(vn.rowSpan>At&&(At=vn.rowSpan),h$3("th",{class:ie(hn,_n,Lt,vn),colspan:vn.colSpan,key:`${vn.id}-thead`,rowspan:vn.rowSpan,style:ae(hn,_n,Lt,vn),onClick:bn=>_e(bn,vn),onContextmenu:bn=>Ce(bn,vn),onMousedown:bn=>$e(bn,vn),onMousemove:bn=>xe(bn,vn),onMouseout:Ne},[h$3("div",{class:["cell",vn.filteredValue&&vn.filteredValue.length>0?"highlight":""]},[vn.renderHeader?vn.renderHeader({column:vn,$index:_n,store:Fe,_self:ze}):vn.label,vn.sortable&&h$3("span",{onClick:bn=>Ie(bn,vn),class:"caret-wrapper"},[h$3("i",{onClick:bn=>Ie(bn,vn,"ascending"),class:"sort-caret ascending"}),h$3("i",{onClick:bn=>Ie(bn,vn,"descending"),class:"sort-caret descending"})]),vn.filterable&&h$3(FilterPanel,{store:Fe,placement:vn.filterPlacement||"bottom-start",column:vn,upDataColumn:(bn,Cn)=>{vn[bn]=Cn}})])]))))))}});function useEvents($){const z=inject(TABLE_INJECTION_KEY),oe=ref(""),ae=ref(h$3("div")),{nextZIndex:ie}=useZIndex(),le=(Fe,ze,At)=>{var Lt;const hn=z,vn=getCell(Fe);let _n;const bn=(Lt=hn==null?void 0:hn.vnode.el)==null?void 0:Lt.dataset.prefix;vn&&(_n=getColumnByCell({columns:$.store.states.columns.value},vn,bn),_n&&(hn==null||hn.emit(`cell-${At}`,ze,_n,vn,Fe))),hn==null||hn.emit(`row-${At}`,ze,_n,Fe)},pe=(Fe,ze)=>{le(Fe,ze,"dblclick")},_e=(Fe,ze)=>{$.store.commit("setCurrentRow",ze),le(Fe,ze,"click")},Ce=(Fe,ze)=>{le(Fe,ze,"contextmenu")},$e=debounce(Fe=>{$.store.commit("setHoverRow",Fe)},30),xe=debounce(()=>{$.store.commit("setHoverRow",null)},30);return{handleDoubleClick:pe,handleClick:_e,handleContextMenu:Ce,handleMouseEnter:$e,handleMouseLeave:xe,handleCellMouseEnter:(Fe,ze,At)=>{var Lt;const hn=z,vn=getCell(Fe),_n=(Lt=hn==null?void 0:hn.vnode.el)==null?void 0:Lt.dataset.prefix;if(vn){const wn=getColumnByCell({columns:$.store.states.columns.value},vn,_n),Tn=hn.hoverState={cell:vn,column:wn,row:ze};hn==null||hn.emit("cell-mouse-enter",Tn.row,Tn.column,Tn.cell,Fe)}if(!At)return;const bn=Fe.target.querySelector(".cell");if(!(hasClass(bn,`${_n}-tooltip`)&&bn.childNodes.length))return;const Cn=document.createRange();Cn.setStart(bn,0),Cn.setEnd(bn,bn.childNodes.length);const En=Math.round(Cn.getBoundingClientRect().width),$n=(Number.parseInt(getStyle$1(bn,"paddingLeft"),10)||0)+(Number.parseInt(getStyle$1(bn,"paddingRight"),10)||0);(En+$n>bn.offsetWidth||bn.scrollWidth>bn.offsetWidth)&&createTablePopper(z==null?void 0:z.refs.tableWrapper,vn,vn.innerText||vn.textContent,ie,At)},handleCellMouseLeave:Fe=>{if(!getCell(Fe))return;const At=z==null?void 0:z.hoverState;z==null||z.emit("cell-mouse-leave",At==null?void 0:At.row,At==null?void 0:At.column,At==null?void 0:At.cell,Fe)},tooltipContent:oe,tooltipTrigger:ae}}function useStyles$1($){const z=inject(TABLE_INJECTION_KEY),oe=useNamespace("table");return{getRowStyle:($e,xe)=>{const Ie=z==null?void 0:z.props.rowStyle;return typeof Ie=="function"?Ie.call(null,{row:$e,rowIndex:xe}):Ie||null},getRowClass:($e,xe)=>{const Ie=[oe.e("row")];z!=null&&z.props.highlightCurrentRow&&$e===$.store.states.currentRow.value&&Ie.push("current-row"),$.stripe&&xe%2===1&&Ie.push(oe.em("row","striped"));const Ne=z==null?void 0:z.props.rowClassName;return typeof Ne=="string"?Ie.push(Ne):typeof Ne=="function"&&Ie.push(Ne.call(null,{row:$e,rowIndex:xe})),Ie},getCellStyle:($e,xe,Ie,Ne)=>{const Fe=z==null?void 0:z.props.cellStyle;let ze=Fe??{};typeof Fe=="function"&&(ze=Fe.call(null,{rowIndex:$e,columnIndex:xe,row:Ie,column:Ne}));const At=getFixedColumnOffset(xe,$==null?void 0:$.fixed,$.store);return ensurePosition(At,"left"),ensurePosition(At,"right"),Object.assign({},ze,At)},getCellClass:($e,xe,Ie,Ne,Fe)=>{const ze=getFixedColumnsClass(oe.b(),xe,$==null?void 0:$.fixed,$.store,void 0,Fe),At=[Ne.id,Ne.align,Ne.className,...ze],Lt=z==null?void 0:z.props.cellClassName;return typeof Lt=="string"?At.push(Lt):typeof Lt=="function"&&At.push(Lt.call(null,{rowIndex:$e,columnIndex:xe,row:Ie,column:Ne})),At.push(oe.e("cell")),At.filter(hn=>!!hn).join(" ")},getSpan:($e,xe,Ie,Ne)=>{let Fe=1,ze=1;const At=z==null?void 0:z.props.spanMethod;if(typeof At=="function"){const Lt=At({row:$e,column:xe,rowIndex:Ie,columnIndex:Ne});Array.isArray(Lt)?(Fe=Lt[0],ze=Lt[1]):typeof Lt=="object"&&(Fe=Lt.rowspan,ze=Lt.colspan)}return{rowspan:Fe,colspan:ze}},getColspanRealWidth:($e,xe,Ie)=>{if(xe<1)return $e[Ie].realWidth;const Ne=$e.map(({realWidth:Fe,width:ze})=>Fe||ze).slice(Ie,Ie+xe);return Number(Ne.reduce((Fe,ze)=>Number(Fe)+Number(ze),-1))}}}function useRender$1($){const z=inject(TABLE_INJECTION_KEY),oe=useNamespace("table"),{handleDoubleClick:ae,handleClick:ie,handleContextMenu:le,handleMouseEnter:pe,handleMouseLeave:_e,handleCellMouseEnter:Ce,handleCellMouseLeave:$e,tooltipContent:xe,tooltipTrigger:Ie}=useEvents($),{getRowStyle:Ne,getRowClass:Fe,getCellStyle:ze,getCellClass:At,getSpan:Lt,getColspanRealWidth:hn}=useStyles$1($),vn=computed(()=>$.store.states.columns.value.findIndex(({type:$n})=>$n==="default")),_n=($n,wn)=>{const Tn=z.props.rowKey;return Tn?getRowIdentity($n,Tn):wn},bn=($n,wn,Tn,xn=!1)=>{const{tooltipEffect:kn,tooltipOptions:An,store:On}=$,{indent:Mn,columns:Fn}=On.states,Dn=Fe($n,wn);let Nn=!0;return Tn&&(Dn.push(oe.em("row",`level-${Tn.level}`)),Nn=Tn.display),h$3("tr",{style:[Nn?null:{display:"none"},Ne($n,wn)],class:Dn,key:_n($n,wn),onDblclick:Bn=>ae(Bn,$n),onClick:Bn=>ie(Bn,$n),onContextmenu:Bn=>le(Bn,$n),onMouseenter:()=>pe(wn),onMouseleave:_e},Fn.value.map((Bn,zn)=>{const{rowspan:Xn,colspan:Un}=Lt($n,Bn,wn,zn);if(!Xn||!Un)return null;const Jn={...Bn};Jn.realWidth=hn(Fn.value,Un,zn);const lr={store:$.store,_self:$.context||z,column:Jn,row:$n,$index:wn,cellIndex:zn,expanded:xn};zn===vn.value&&Tn&&(lr.treeNode={indent:Tn.level*Mn.value,level:Tn.level},typeof Tn.expanded=="boolean"&&(lr.treeNode.expanded=Tn.expanded,"loading"in Tn&&(lr.treeNode.loading=Tn.loading),"noLazyChildren"in Tn&&(lr.treeNode.noLazyChildren=Tn.noLazyChildren)));const _r=`${wn},${zn}`,ir=Jn.columnKey||Jn.rawColumnKey||"",qn=Cn(zn,Bn,lr),Yn=Bn.showOverflowTooltip&&merge$4({effect:kn},An,Bn.showOverflowTooltip);return h$3("td",{style:ze(wn,zn,$n,Bn),class:At(wn,zn,$n,Bn,Un-1),key:`${ir}${_r}`,rowspan:Xn,colspan:Un,onMouseenter:Wn=>Ce(Wn,$n,Yn),onMouseleave:$e},[qn])}))},Cn=($n,wn,Tn)=>wn.renderCell(Tn);return{wrappedRowRender:($n,wn)=>{const Tn=$.store,{isRowExpanded:xn,assertRowKey:kn}=Tn,{treeData:An,lazyTreeNodeMap:On,childrenColumnName:Mn,rowKey:Fn}=Tn.states,Dn=Tn.states.columns.value;if(Dn.some(({type:Vn})=>Vn==="expand")){const Vn=xn($n),Bn=bn($n,wn,void 0,Vn),zn=z.renderExpanded;return Vn?zn?[[Bn,h$3("tr",{key:`expanded-row__${Bn.key}`},[h$3("td",{colspan:Dn.length,class:`${oe.e("cell")} ${oe.e("expanded-cell")}`},[zn({row:$n,$index:wn,store:Tn,expanded:Vn})])])]]:(console.error("[Element Error]renderExpanded is required."),Bn):[[Bn]]}else if(Object.keys(An.value).length){kn();const Vn=getRowIdentity($n,Fn.value);let Bn=An.value[Vn],zn=null;Bn&&(zn={expanded:Bn.expanded,level:Bn.level,display:!0},typeof Bn.lazy=="boolean"&&(typeof Bn.loaded=="boolean"&&Bn.loaded&&(zn.noLazyChildren=!(Bn.children&&Bn.children.length)),zn.loading=Bn.loading));const Xn=[bn($n,wn,zn)];if(Bn){let Un=0;const Jn=(_r,ir)=>{_r&&_r.length&&ir&&_r.forEach(qn=>{const Yn={display:ir.display&&ir.expanded,level:ir.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Wn=getRowIdentity(qn,Fn.value);if(Wn==null)throw new Error("For nested data item, row-key is required.");if(Bn={...An.value[Wn]},Bn&&(Yn.expanded=Bn.expanded,Bn.level=Bn.level||Yn.level,Bn.display=!!(Bn.expanded&&Yn.display),typeof Bn.lazy=="boolean"&&(typeof Bn.loaded=="boolean"&&Bn.loaded&&(Yn.noLazyChildren=!(Bn.children&&Bn.children.length)),Yn.loading=Bn.loading)),Un++,Xn.push(bn(qn,wn+Un,Yn)),Bn){const tr=On.value[Wn]||qn[Mn.value];Jn(tr,Bn)}})};Bn.display=!0;const lr=On.value[Vn]||$n[Mn.value];Jn(lr,Bn)}return Xn}else return bn($n,wn,void 0)},tooltipContent:xe,tooltipTrigger:Ie}}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($){const z=getCurrentInstance(),oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table"),{wrappedRowRender:ie,tooltipContent:le,tooltipTrigger:pe}=useRender$1($),{onColumnsChange:_e,onScrollableChange:Ce}=useLayoutObserver(oe);return watch($.store.states.hoverRow,($e,xe)=>{if(!$.store.states.isComplex.value||!isClient$2)return;let Ie=window.requestAnimationFrame;Ie||(Ie=Ne=>window.setTimeout(Ne,16)),Ie(()=>{const Ne=z==null?void 0:z.vnode.el,Fe=Array.from((Ne==null?void 0:Ne.children)||[]).filter(Lt=>Lt==null?void 0:Lt.classList.contains(`${ae.e("row")}`)),ze=Fe[xe],At=Fe[$e];ze&&removeClass(ze,"hover-row"),At&&addClass(At,"hover-row")})}),onUnmounted(()=>{var $e;($e=removePopper)==null||$e()}),{ns:ae,onColumnsChange:_e,onScrollableChange:Ce,wrappedRowRender:ie,tooltipContent:le,tooltipTrigger:pe}},render(){const{wrappedRowRender:$,store:z}=this,oe=z.states.data.value||[];return h$3("tbody",{},[oe.reduce((ae,ie)=>ae.concat($(ie,ae.length)),[])])}});function hColgroup($){const z=$.tableLayout==="auto";let oe=$.columns||[];z&&oe.every(ie=>ie.width===void 0)&&(oe=[]);const ae=ie=>{const le={key:`${$.tableLayout}_${ie.id}`,style:{},name:void 0};return z?le.style={width:`${ie.width}px`}:le.name=ie.id,le};return h$3("colgroup",{},oe.map(ie=>h$3("col",ae(ie))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const $=inject(TABLE_INJECTION_KEY),z=$==null?void 0:$.store,oe=computed(()=>z.states.fixedLeafColumnsLength.value),ae=computed(()=>z.states.rightFixedColumns.value.length),ie=computed(()=>z.states.columns.value.length),le=computed(()=>z.states.fixedColumns.value.length),pe=computed(()=>z.states.rightFixedColumns.value.length);return{leftFixedLeafCount:oe,rightFixedLeafCount:ae,columnsCount:ie,leftFixedCount:le,rightFixedCount:pe,columns:z.states.columns}}function useStyle$1($){const{columns:z}=useMapState(),oe=useNamespace("table");return{getCellClasses:(le,pe)=>{const _e=le[pe],Ce=[oe.e("cell"),_e.id,_e.align,_e.labelClassName,...getFixedColumnsClass(oe.b(),pe,_e.fixed,$.store)];return _e.className&&Ce.push(_e.className),_e.children||Ce.push(oe.is("leaf")),Ce},getCellStyles:(le,pe)=>{const _e=getFixedColumnOffset(pe,le.fixed,$.store);return ensurePosition(_e,"left"),ensurePosition(_e,"right"),_e},columns:z}}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($){const{getCellClasses:z,getCellStyles:oe,columns:ae}=useStyle$1($);return{ns:useNamespace("table"),getCellClasses:z,getCellStyles:oe,columns:ae}},render(){const{columns:$,getCellStyles:z,getCellClasses:oe,summaryMethod:ae,sumText:ie,ns:le}=this,pe=this.store.states.data.value;let _e=[];return ae?_e=ae({columns:$,data:pe}):$.forEach((Ce,$e)=>{if($e===0){_e[$e]=ie;return}const xe=pe.map(ze=>Number(ze[Ce.property])),Ie=[];let Ne=!0;xe.forEach(ze=>{if(!Number.isNaN(+ze)){Ne=!1;const At=`${ze}`.split(".")[1];Ie.push(At?At.length:0)}});const Fe=Math.max.apply(null,Ie);Ne?_e[$e]="":_e[$e]=xe.reduce((ze,At)=>{const Lt=Number(At);return Number.isNaN(+Lt)?ze:Number.parseFloat((ze+At).toFixed(Math.min(Fe,20)))},0)}),h$3("table",{class:le.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:$}),h$3("tbody",[h$3("tr",{},[...$.map((Ce,$e)=>h$3("td",{key:$e,colspan:Ce.colSpan,rowspan:Ce.rowSpan,class:oe($,$e),style:z(Ce,$e)},[h$3("div",{class:["cell",Ce.labelClassName]},[_e[$e]])]))])])])}});function useUtils($){return{setCurrentRow:xe=>{$.commit("setCurrentRow",xe)},getSelectionRows:()=>$.getSelectionRows(),toggleRowSelection:(xe,Ie)=>{$.toggleRowSelection(xe,Ie,!1),$.updateAllSelected()},clearSelection:()=>{$.clearSelection()},clearFilter:xe=>{$.clearFilter(xe)},toggleAllSelection:()=>{$.commit("toggleAllSelection")},toggleRowExpansion:(xe,Ie)=>{$.toggleRowExpansionAdapter(xe,Ie)},clearSort:()=>{$.clearSort()},sort:(xe,Ie)=>{$.commit("sort",{prop:xe,order:Ie})}}}function useStyle($,z,oe,ae){const ie=ref(!1),le=ref(null),pe=ref(!1),_e=Vn=>{pe.value=Vn},Ce=ref({width:null,height:null,headerHeight:null}),$e=ref(!1),xe={display:"inline-block",verticalAlign:"middle"},Ie=ref(),Ne=ref(0),Fe=ref(0),ze=ref(0),At=ref(0);watchEffect(()=>{z.setHeight($.height)}),watchEffect(()=>{z.setMaxHeight($.maxHeight)}),watch(()=>[$.currentRowKey,oe.states.rowKey],([Vn,Bn])=>{!unref(Bn)||!unref(Vn)||oe.setCurrentRowKey(`${Vn}`)},{immediate:!0}),watch(()=>$.data,Vn=>{ae.store.commit("setData",Vn)},{immediate:!0,deep:!0}),watchEffect(()=>{$.expandRowKeys&&oe.setExpandRowKeysAdapter($.expandRowKeys)});const Lt=()=>{ae.store.commit("setHoverRow",null),ae.hoverState&&(ae.hoverState=null)},hn=(Vn,Bn)=>{const{pixelX:zn,pixelY:Xn}=Bn;Math.abs(zn)>=Math.abs(Xn)&&(ae.refs.bodyWrapper.scrollLeft+=Bn.pixelX/5)},vn=computed(()=>$.height||$.maxHeight||oe.states.fixedColumns.value.length>0||oe.states.rightFixedColumns.value.length>0),_n=computed(()=>({width:z.bodyWidth.value?`${z.bodyWidth.value}px`:""})),bn=()=>{vn.value&&z.updateElsHeight(),z.updateColumnsWidth(),requestAnimationFrame(wn)};onMounted(async()=>{await nextTick(),oe.updateColumns(),Tn(),requestAnimationFrame(bn);const Vn=ae.vnode.el,Bn=ae.refs.headerWrapper;$.flexible&&Vn&&Vn.parentElement&&(Vn.parentElement.style.minWidth="0"),Ce.value={width:Ie.value=Vn.offsetWidth,height:Vn.offsetHeight,headerHeight:$.showHeader&&Bn?Bn.offsetHeight:null},oe.states.columns.value.forEach(zn=>{zn.filteredValue&&zn.filteredValue.length&&ae.store.commit("filterChange",{column:zn,values:zn.filteredValue,silent:!0})}),ae.$ready=!0});const Cn=(Vn,Bn)=>{if(!Vn)return;const zn=Array.from(Vn.classList).filter(Xn=>!Xn.startsWith("is-scrolling-"));zn.push(z.scrollX.value?Bn:"is-scrolling-none"),Vn.className=zn.join(" ")},En=Vn=>{const{tableWrapper:Bn}=ae.refs;Cn(Bn,Vn)},$n=Vn=>{const{tableWrapper:Bn}=ae.refs;return!!(Bn&&Bn.classList.contains(Vn))},wn=function(){if(!ae.refs.scrollBarRef)return;if(!z.scrollX.value){const _r="is-scrolling-none";$n(_r)||En(_r);return}const Vn=ae.refs.scrollBarRef.wrapRef;if(!Vn)return;const{scrollLeft:Bn,offsetWidth:zn,scrollWidth:Xn}=Vn,{headerWrapper:Un,footerWrapper:Jn}=ae.refs;Un&&(Un.scrollLeft=Bn),Jn&&(Jn.scrollLeft=Bn);const lr=Xn-zn-1;Bn>=lr?En("is-scrolling-right"):En(Bn===0?"is-scrolling-left":"is-scrolling-middle")},Tn=()=>{ae.refs.scrollBarRef&&(ae.refs.scrollBarRef.wrapRef&&useEventListener$1(ae.refs.scrollBarRef.wrapRef,"scroll",wn,{passive:!0}),$.fit?useResizeObserver(ae.vnode.el,xn):useEventListener$1(window,"resize",xn),useResizeObserver(ae.refs.bodyWrapper,()=>{var Vn,Bn;xn(),(Bn=(Vn=ae.refs)==null?void 0:Vn.scrollBarRef)==null||Bn.update()}))},xn=()=>{var Vn,Bn,zn;const Xn=ae.vnode.el;if(!ae.$ready||!Xn)return;let Un=!1;const{width:Jn,height:lr,headerHeight:_r}=Ce.value,ir=Ie.value=Xn.offsetWidth;Jn!==ir&&(Un=!0);const qn=Xn.offsetHeight;($.height||vn.value)&&lr!==qn&&(Un=!0);const Yn=$.tableLayout==="fixed"?ae.refs.headerWrapper:(Vn=ae.refs.tableHeaderRef)==null?void 0:Vn.$el;$.showHeader&&(Yn==null?void 0:Yn.offsetHeight)!==_r&&(Un=!0),Ne.value=((Bn=ae.refs.tableWrapper)==null?void 0:Bn.scrollHeight)||0,ze.value=(Yn==null?void 0:Yn.scrollHeight)||0,At.value=((zn=ae.refs.footerWrapper)==null?void 0:zn.offsetHeight)||0,Fe.value=Ne.value-ze.value-At.value,Un&&(Ce.value={width:ir,height:qn,headerHeight:$.showHeader&&(Yn==null?void 0:Yn.offsetHeight)||0},bn())},kn=useFormSize(),An=computed(()=>{const{bodyWidth:Vn,scrollY:Bn,gutterWidth:zn}=z;return Vn.value?`${Vn.value-(Bn.value?zn:0)}px`:""}),On=computed(()=>$.maxHeight?"fixed":$.tableLayout),Mn=computed(()=>{if($.data&&$.data.length)return null;let Vn="100%";$.height&&Fe.value&&(Vn=`${Fe.value}px`);const Bn=Ie.value;return{width:Bn?`${Bn}px`:"",height:Vn}}),Fn=computed(()=>$.height?{height:Number.isNaN(Number($.height))?$.height:`${$.height}px`}:$.maxHeight?{maxHeight:Number.isNaN(Number($.maxHeight))?$.maxHeight:`${$.maxHeight}px`}:{}),Dn=computed(()=>{if($.height)return{height:"100%"};if($.maxHeight){if(Number.isNaN(Number($.maxHeight)))return{maxHeight:`calc(${$.maxHeight} - ${ze.value+At.value}px)`};{const Vn=$.maxHeight;if(Ne.value>=Number(Vn))return{maxHeight:`${Ne.value-ze.value-At.value}px`}}}return{}});return{isHidden:ie,renderExpanded:le,setDragVisible:_e,isGroup:$e,handleMouseLeave:Lt,handleHeaderFooterMousewheel:hn,tableSize:kn,emptyBlockStyle:Mn,handleFixedMousewheel:(Vn,Bn)=>{const zn=ae.refs.bodyWrapper;if(Math.abs(Bn.spinY)>0){const Xn=zn.scrollTop;Bn.pixelY<0&&Xn!==0&&Vn.preventDefault(),Bn.pixelY>0&&zn.scrollHeight-zn.clientHeight>Xn&&Vn.preventDefault(),zn.scrollTop+=Math.ceil(Bn.pixelY/5)}else zn.scrollLeft+=Math.ceil(Bn.pixelX/5)},resizeProxyVisible:pe,bodyWidth:An,resizeState:Ce,doLayout:bn,tableBodyStyles:_n,tableLayout:On,scrollbarViewStyle:xe,tableInnerStyle:Fn,scrollbarStyle:Dn}}function useKeyRender($){const z=ref(),oe=()=>{const ie=$.vnode.el.querySelector(".hidden-columns"),le={childList:!0,subtree:!0},pe=$.store.states.updateOrderFns;z.value=new MutationObserver(()=>{pe.forEach(_e=>_e())}),z.value.observe(ie,le)};onMounted(()=>{oe()}),onUnmounted(()=>{var ae;(ae=z.value)==null||ae.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};const useScrollbar$1=()=>{const $=ref(),z=(le,pe)=>{const _e=$.value;_e&&_e.scrollTo(le,pe)},oe=(le,pe)=>{const _e=$.value;_e&&isNumber$5(pe)&&["Top","Left"].includes(le)&&_e[`setScroll${le}`](pe)};return{scrollBarRef:$,scrollTo:z,setScrollTop:le=>oe("Top",le),setScrollLeft:le=>oe("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($){const{t:z}=useLocale(),oe=useNamespace("table"),ae=getCurrentInstance();provide(TABLE_INJECTION_KEY,ae);const ie=createStore(ae,$);ae.store=ie;const le=new TableLayout({store:ae.store,table:ae,fit:$.fit,showHeader:$.showHeader});ae.layout=le;const pe=computed(()=>(ie.states.data.value||[]).length===0),{setCurrentRow:_e,getSelectionRows:Ce,toggleRowSelection:$e,clearSelection:xe,clearFilter:Ie,toggleAllSelection:Ne,toggleRowExpansion:Fe,clearSort:ze,sort:At}=useUtils(ie),{isHidden:Lt,renderExpanded:hn,setDragVisible:vn,isGroup:_n,handleMouseLeave:bn,handleHeaderFooterMousewheel:Cn,tableSize:En,emptyBlockStyle:$n,handleFixedMousewheel:wn,resizeProxyVisible:Tn,bodyWidth:xn,resizeState:kn,doLayout:An,tableBodyStyles:On,tableLayout:Mn,scrollbarViewStyle:Fn,tableInnerStyle:Dn,scrollbarStyle:Nn}=useStyle($,le,ie,ae),{scrollBarRef:Vn,scrollTo:Bn,setScrollLeft:zn,setScrollTop:Xn}=useScrollbar$1(),Un=debounce(An,50),Jn=`${oe.namespace.value}-table_${tableIdSeed++}`;ae.tableId=Jn,ae.state={isGroup:_n,resizeState:kn,doLayout:An,debouncedUpdateLayout:Un};const lr=computed(()=>$.sumText||z("el.table.sumText")),_r=computed(()=>$.emptyText||z("el.table.emptyText"));return useKeyRender(ae),{ns:oe,layout:le,store:ie,handleHeaderFooterMousewheel:Cn,handleMouseLeave:bn,tableId:Jn,tableSize:En,isHidden:Lt,isEmpty:pe,renderExpanded:hn,resizeProxyVisible:Tn,resizeState:kn,isGroup:_n,bodyWidth:xn,tableBodyStyles:On,emptyBlockStyle:$n,debouncedUpdateLayout:Un,handleFixedMousewheel:wn,setCurrentRow:_e,getSelectionRows:Ce,toggleRowSelection:$e,clearSelection:xe,clearFilter:Ie,toggleAllSelection:Ne,toggleRowExpansion:Fe,clearSort:ze,doLayout:An,sort:At,t:z,setDragVisible:vn,context:ae,computedSumText:lr,computedEmptyText:_r,tableLayout:Mn,scrollbarViewStyle:Fn,tableInnerStyle:Dn,scrollbarStyle:Nn,scrollBarRef:Vn,scrollTo:Bn,setScrollLeft:zn,setScrollTop:Xn}}}),_hoisted_1$d=["data-prefix"],_hoisted_2$9={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4($,z,oe,ae,ie,le){const pe=resolveComponent("hColgroup"),_e=resolveComponent("table-header"),Ce=resolveComponent("table-body"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("table-footer"),Ie=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[$.ns.m("fit")]:$.fit,[$.ns.m("striped")]:$.stripe,[$.ns.m("border")]:$.border||$.isGroup,[$.ns.m("hidden")]:$.isHidden,[$.ns.m("group")]:$.isGroup,[$.ns.m("fluid-height")]:$.maxHeight,[$.ns.m("scrollable-x")]:$.layout.scrollX.value,[$.ns.m("scrollable-y")]:$.layout.scrollY.value,[$.ns.m("enable-row-hover")]:!$.store.states.isComplex.value,[$.ns.m("enable-row-transition")]:($.store.states.data.value||[]).length!==0&&($.store.states.data.value||[]).length<100,"has-footer":$.showSummary},$.ns.m($.tableSize),$.className,$.ns.b(),$.ns.m(`layout-${$.tableLayout}`)]),style:normalizeStyle$1($.style),"data-prefix":$.ns.namespace.value,onMouseleave:z[0]||(z[0]=(...Ne)=>$.handleMouseLeave&&$.handleMouseLeave(...Ne))},[createBaseVNode("div",{class:normalizeClass($.ns.e("inner-wrapper")),style:normalizeStyle$1($.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$9,[renderSlot($.$slots,"default")],512),$.showHeader&&$.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass($.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass($.ns.e("header")),style:normalizeStyle$1($.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(pe,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),createVNode(_e,{ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[Ie,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass($.ns.e("body-wrapper"))},[createVNode($e,{ref:"scrollBarRef","view-style":$.scrollbarViewStyle,"wrap-style":$.scrollbarStyle,always:$.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass($.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:$.bodyWidth,tableLayout:$.tableLayout})},[createVNode(pe,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),$.showHeader&&$.tableLayout==="auto"?(openBlock(),createBlock(_e,{key:0,ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode(Ce,{context:$.context,highlight:$.highlightCurrentRow,"row-class-name":$.rowClassName,"tooltip-effect":$.tooltipEffect,"tooltip-options":$.tooltipOptions,"row-style":$.rowStyle,store:$.store,stripe:$.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1($.emptyBlockStyle),class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},[renderSlot($.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1($.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),$.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass($.ns.e("append-wrapper"))},[renderSlot($.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),$.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass($.ns.e("footer-wrapper"))},[createVNode(xe,{border:$.border,"default-sort":$.defaultSort,store:$.store,style:normalizeStyle$1($.tableBodyStyles),"sum-text":$.computedSumText,"summary-method":$.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!$.isEmpty],[Ie,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),$.border||$.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass($.ns.e("column-resize-proxy"))},null,2),[[vShow,$.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=$=>defaultClassNames[$]||"",cellForced={selection:{renderHeader({store:$}){function z(){return $.states.data.value&&$.states.data.value.length===0}return h$3(ElCheckbox,{disabled:z(),size:$.states.tableSize.value,indeterminate:$.states.selection.value.length>0&&!$.states.isAllSelected.value,"onUpdate:modelValue":$.toggleAllSelection,modelValue:$.states.isAllSelected.value})},renderCell({row:$,column:z,store:oe,$index:ae}){return h$3(ElCheckbox,{disabled:z.selectable?!z.selectable.call(null,$,ae):!1,size:oe.states.tableSize.value,onChange:()=>{oe.commit("rowSelectedChanged",$)},onClick:ie=>ie.stopPropagation(),modelValue:oe.isSelected($)})},sortable:!1,resizable:!1},index:{renderHeader({column:$}){return $.label||"#"},renderCell({column:$,$index:z}){let oe=z+1;const ae=$.index;return typeof ae=="number"?oe=z+ae:typeof ae=="function"&&(oe=ae(z)),h$3("div",{},[oe])},sortable:!1},expand:{renderHeader({column:$}){return $.label||""},renderCell({row:$,store:z,expanded:oe}){const{ns:ae}=z,ie=[ae.e("expand-icon")];return oe&&ie.push(ae.em("expand-icon","expanded")),h$3("div",{class:ie,onClick:function(pe){pe.stopPropagation(),z.toggleRowExpansion($)}},{default:()=>[h$3(ElIcon,null,{default:()=>[h$3(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:$,column:z,$index:oe}){var ae;const ie=z.property,le=ie&&getProp($,ie).value;return z&&z.formatter?z.formatter($,z,le,oe):((ae=le==null?void 0:le.toString)==null?void 0:ae.call(le))||""}function treeCellPrefix({row:$,treeNode:z,store:oe},ae=!1){const{ns:ie}=oe;if(!z)return ae?[h$3("span",{class:ie.e("placeholder")})]:null;const le=[],pe=function(_e){_e.stopPropagation(),!z.loading&&oe.loadOrToggle($)};if(z.indent&&le.push(h$3("span",{class:ie.e("indent"),style:{"padding-left":`${z.indent}px`}})),typeof z.expanded=="boolean"&&!z.noLazyChildren){const _e=[ie.e("expand-icon"),z.expanded?ie.em("expand-icon","expanded"):""];let Ce=arrow_right_default;z.loading&&(Ce=loading_default),le.push(h$3("div",{class:_e,onClick:pe},{default:()=>[h$3(ElIcon,{class:{[ie.is("loading")]:z.loading}},{default:()=>[h$3(Ce)]})]}))}else le.push(h$3("span",{class:ie.e("placeholder")}));return le}function getAllAliases($,z){return $.reduce((oe,ae)=>(oe[ae]=ae,oe),z)}function useWatcher($,z){const oe=getCurrentInstance();return{registerComplexWatchers:()=>{const le=["fixed"],pe={realWidth:"width",realMinWidth:"minWidth"},_e=getAllAliases(le,pe);Object.keys(_e).forEach(Ce=>{const $e=pe[Ce];hasOwn$4(z,$e)&&watch(()=>z[$e],xe=>{let Ie=xe;$e==="width"&&Ce==="realWidth"&&(Ie=parseWidth(xe)),$e==="minWidth"&&Ce==="realMinWidth"&&(Ie=parseMinWidth(xe)),oe.columnConfig.value[$e]=Ie,oe.columnConfig.value[Ce]=Ie;const Ne=$e==="fixed";$.value.store.scheduleLayout(Ne)})})},registerNormalWatchers:()=>{const le=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],pe={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},_e=getAllAliases(le,pe);Object.keys(_e).forEach(Ce=>{const $e=pe[Ce];hasOwn$4(z,$e)&&watch(()=>z[$e],xe=>{oe.columnConfig.value[Ce]=xe})})}}}function useRender($,z,oe){const ae=getCurrentInstance(),ie=ref(""),le=ref(!1),pe=ref(),_e=ref(),Ce=useNamespace("table");watchEffect(()=>{pe.value=$.align?`is-${$.align}`:null,pe.value}),watchEffect(()=>{_e.value=$.headerAlign?`is-${$.headerAlign}`:pe.value,_e.value});const $e=computed(()=>{let bn=ae.vnode.vParent||ae.parent;for(;bn&&!bn.tableId&&!bn.columnId;)bn=bn.vnode.vParent||bn.parent;return bn}),xe=computed(()=>{const{store:bn}=ae.parent;if(!bn)return!1;const{treeData:Cn}=bn.states,En=Cn.value;return En&&Object.keys(En).length>0}),Ie=ref(parseWidth($.width)),Ne=ref(parseMinWidth($.minWidth)),Fe=bn=>(Ie.value&&(bn.width=Ie.value),Ne.value&&(bn.minWidth=Ne.value),!Ie.value&&Ne.value&&(bn.width=void 0),bn.minWidth||(bn.minWidth=80),bn.realWidth=Number(bn.width===void 0?bn.minWidth:bn.width),bn),ze=bn=>{const Cn=bn.type,En=cellForced[Cn]||{};Object.keys(En).forEach(wn=>{const Tn=En[wn];wn!=="className"&&Tn!==void 0&&(bn[wn]=Tn)});const $n=getDefaultClassName(Cn);if($n){const wn=`${unref(Ce.namespace)}-${$n}`;bn.className=bn.className?`${bn.className} ${wn}`:wn}return bn},At=bn=>{Array.isArray(bn)?bn.forEach(En=>Cn(En)):Cn(bn);function Cn(En){var $n;(($n=En==null?void 0:En.type)==null?void 0:$n.name)==="ElTableColumn"&&(En.vParent=ae)}};return{columnId:ie,realAlign:pe,isSubColumn:le,realHeaderAlign:_e,columnOrTableParent:$e,setColumnWidth:Fe,setColumnForcedProps:ze,setColumnRenders:bn=>{$.renderHeader||bn.type!=="selection"&&(bn.renderHeader=En=>{ae.columnConfig.value.label;const $n=z.header;return $n?$n(En):bn.label});let Cn=bn.renderCell;return bn.type==="expand"?(bn.renderCell=En=>h$3("div",{class:"cell"},[Cn(En)]),oe.value.renderExpanded=En=>z.default?z.default(En):z.default):(Cn=Cn||defaultRenderCell,bn.renderCell=En=>{let $n=null;if(z.default){const On=z.default(En);$n=On.some(Mn=>Mn.type!==Comment)?On:Cn(En)}else $n=Cn(En);const{columns:wn}=oe.value.store.states,Tn=wn.value.findIndex(On=>On.type==="default"),xn=xe.value&&En.cellIndex===Tn,kn=treeCellPrefix(En,xn),An={class:"cell",style:{}};return bn.showOverflowTooltip&&(An.class=`${An.class} ${unref(Ce.namespace)}-tooltip`,An.style={width:`${(En.column.realWidth||Number(En.column.width))-1}px`}),At($n),h$3("div",An,[kn,$n])}),bn},getPropsData:(...bn)=>bn.reduce((Cn,En)=>(Array.isArray(En)&&En.forEach($n=>{Cn[$n]=$[$n]}),Cn),{}),getColumnElIndex:(bn,Cn)=>Array.prototype.indexOf.call(bn,Cn),updateColumnOrder:()=>{oe.value.store.commit("updateColumnOrder",ae.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:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:$=>$.every(z=>["ascending","descending",null].includes(z))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup($,{slots:z}){const oe=getCurrentInstance(),ae=ref({}),ie=computed(()=>{let _n=oe.parent;for(;_n&&!_n.tableId;)_n=_n.parent;return _n}),{registerNormalWatchers:le,registerComplexWatchers:pe}=useWatcher(ie,$),{columnId:_e,isSubColumn:Ce,realHeaderAlign:$e,columnOrTableParent:xe,setColumnWidth:Ie,setColumnForcedProps:Ne,setColumnRenders:Fe,getPropsData:ze,getColumnElIndex:At,realAlign:Lt,updateColumnOrder:hn}=useRender($,z,ie),vn=xe.value;_e.value=`${vn.tableId||vn.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{Ce.value=ie.value!==vn;const _n=$.type||"default",bn=$.sortable===""?!0:$.sortable,Cn={...cellStarts[_n],id:_e.value,type:_n,property:$.prop||$.property,align:Lt,headerAlign:$e,showOverflowTooltip:$.showOverflowTooltip,filterable:$.filters||$.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:bn,index:$.index,rawColumnKey:oe.vnode.key};let xn=ze(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);xn=mergeOptions$1(Cn,xn),xn=compose(Fe,Ie,Ne)(xn),ae.value=xn,le(),pe()}),onMounted(()=>{var _n;const bn=xe.value,Cn=Ce.value?bn.vnode.el.children:(_n=bn.refs.hiddenColumns)==null?void 0:_n.children,En=()=>At(Cn||[],oe.vnode.el);ae.value.getColumnIndex=En,En()>-1&&ie.value.store.commit("insertColumn",ae.value,Ce.value?bn.columnConfig.value:null,hn)}),onBeforeUnmount(()=>{ie.value.store.commit("removeColumn",ae.value,Ce.value?vn.columnConfig.value:null,hn)}),oe.columnId=_e.value,oe.columnConfig=ae},render(){var $,z,oe;try{const ae=(z=($=this.$slots).default)==null?void 0:z.call($,{row:{},column:{},$index:-1}),ie=[];if(Array.isArray(ae))for(const pe of ae)((oe=pe.type)==null?void 0:oe.name)==="ElTableColumn"||pe.shapeFlag&2?ie.push(pe):pe.type===Fragment&&Array.isArray(pe.children)&&pe.children.forEach(_e=>{(_e==null?void 0:_e.patchFlag)!==1024&&!isString$7(_e==null?void 0:_e.children)&&ie.push(_e)});return h$3("div",ie)}catch{return h$3("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=($=>($.ASC="asc",$.DESC="desc",$))(SortOrder||{}),Alignment=($=>($.CENTER="center",$.RIGHT="right",$))(Alignment||{}),FixedDir=($=>($.LEFT="left",$.RIGHT="right",$))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=($,z,oe)=>{var ae;const ie={flexGrow:0,flexShrink:0,...oe?{}:{flexGrow:$.flexGrow||0,flexShrink:$.flexShrink||1}};oe||(ie.flexShrink=1);const le={...(ae=$.style)!=null?ae:{},...ie,flexBasis:"auto",width:$.width};return z||($.maxWidth&&(le.maxWidth=$.maxWidth),$.minWidth&&(le.minWidth=$.minWidth)),le};function useColumns($,z,oe){const ae=computed(()=>unref(z).filter(At=>!At.hidden)),ie=computed(()=>unref(ae).filter(At=>At.fixed==="left"||At.fixed===!0)),le=computed(()=>unref(ae).filter(At=>At.fixed==="right")),pe=computed(()=>unref(ae).filter(At=>!At.fixed)),_e=computed(()=>{const At=[];return unref(ie).forEach(Lt=>{At.push({...Lt,placeholderSign})}),unref(pe).forEach(Lt=>{At.push(Lt)}),unref(le).forEach(Lt=>{At.push({...Lt,placeholderSign})}),At}),Ce=computed(()=>unref(ie).length||unref(le).length),$e=computed(()=>unref(z).reduce((Lt,hn)=>(Lt[hn.key]=calcColumnStyle(hn,unref(oe),$.fixed),Lt),{})),xe=computed(()=>unref(ae).reduce((At,Lt)=>At+Lt.width,0)),Ie=At=>unref(z).find(Lt=>Lt.key===At),Ne=At=>unref($e)[At],Fe=(At,Lt)=>{At.width=Lt};function ze(At){var Lt;const{key:hn}=At.currentTarget.dataset;if(!hn)return;const{sortState:vn,sortBy:_n}=$;let bn=SortOrder.ASC;isObject$8(vn)?bn=oppositeOrderMap[vn[hn]]:bn=oppositeOrderMap[_n.order],(Lt=$.onColumnSort)==null||Lt.call($,{column:Ie(hn),key:hn,order:bn})}return{columns:z,columnsStyles:$e,columnsTotalWidth:xe,fixedColumnsOnLeft:ie,fixedColumnsOnRight:le,hasFixedColumns:Ce,mainColumns:_e,normalColumns:pe,visibleColumns:ae,getColumn:Ie,getColumnStyle:Ne,updateColumnWidth:Fe,onColumnSorted:ze}}const useScrollbar=($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae,onMaybeEndReached:ie})=>{const le=ref({scrollLeft:0,scrollTop:0});function pe(Fe){var ze,At,Lt;const{scrollTop:hn}=Fe;(ze=z.value)==null||ze.scrollTo(Fe),(At=oe.value)==null||At.scrollToTop(hn),(Lt=ae.value)==null||Lt.scrollToTop(hn)}function _e(Fe){le.value=Fe,pe(Fe)}function Ce(Fe){le.value.scrollTop=Fe,pe(unref(le))}function $e(Fe){var ze,At;le.value.scrollLeft=Fe,(At=(ze=z.value)==null?void 0:ze.scrollTo)==null||At.call(ze,unref(le))}function xe(Fe){var ze;_e(Fe),(ze=$.onScroll)==null||ze.call($,Fe)}function Ie({scrollTop:Fe}){const{scrollTop:ze}=unref(le);Fe!==ze&&Ce(Fe)}function Ne(Fe,ze="auto"){var At;(At=z.value)==null||At.scrollToRow(Fe,ze)}return watch(()=>unref(le).scrollTop,(Fe,ze)=>{Fe>ze&&ie()}),{scrollPos:le,scrollTo:_e,scrollToLeft:$e,scrollToTop:Ce,scrollToRow:Ne,onScroll:xe,onVerticalScroll:Ie}},useRow=($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae})=>{const ie=getCurrentInstance(),{emit:le}=ie,pe=shallowRef(!1),_e=shallowRef(null),Ce=ref($.defaultExpandedRowKeys||[]),$e=ref(-1),xe=shallowRef(null),Ie=ref({}),Ne=ref({}),Fe=shallowRef({}),ze=shallowRef({}),At=shallowRef({}),Lt=computed(()=>isNumber$5($.estimatedRowHeight));function hn(wn){var Tn;(Tn=$.onRowsRendered)==null||Tn.call($,wn),wn.rowCacheEnd>unref($e)&&($e.value=wn.rowCacheEnd)}function vn({hovered:wn,rowKey:Tn}){_e.value=wn?Tn:null}function _n({expanded:wn,rowData:Tn,rowIndex:xn,rowKey:kn}){var An,On;const Mn=[...unref(Ce)],Fn=Mn.indexOf(kn);wn?Fn===-1&&Mn.push(kn):Fn>-1&&Mn.splice(Fn,1),Ce.value=Mn,le("update:expandedRowKeys",Mn),(An=$.onRowExpand)==null||An.call($,{expanded:wn,rowData:Tn,rowIndex:xn,rowKey:kn}),(On=$.onExpandedRowsChange)==null||On.call($,Mn)}const bn=debounce(()=>{var wn,Tn,xn,kn;pe.value=!0,Ie.value={...unref(Ie),...unref(Ne)},Cn(unref(xe),!1),Ne.value={},xe.value=null,(wn=z.value)==null||wn.forceUpdate(),(Tn=oe.value)==null||Tn.forceUpdate(),(xn=ae.value)==null||xn.forceUpdate(),(kn=ie.proxy)==null||kn.$forceUpdate(),pe.value=!1},0);function Cn(wn,Tn=!1){unref(Lt)&&[z,oe,ae].forEach(xn=>{const kn=unref(xn);kn&&kn.resetAfterRowIndex(wn,Tn)})}function En(wn,Tn,xn){const kn=unref(xe);(kn===null||kn>xn)&&(xe.value=xn),Ne.value[wn]=Tn}function $n({rowKey:wn,height:Tn,rowIndex:xn},kn){kn?kn===FixedDir.RIGHT?At.value[wn]=Tn:Fe.value[wn]=Tn:ze.value[wn]=Tn;const An=Math.max(...[Fe,At,ze].map(On=>On.value[wn]||0));unref(Ie)[wn]!==An&&(En(wn,An,xn),bn())}return{hoveringRowKey:_e,expandedRowKeys:Ce,lastRenderedRowIndex:$e,isDynamic:Lt,isResetting:pe,rowHeights:Ie,resetAfterIndex:Cn,onRowExpanded:_n,onRowHovered:vn,onRowsRendered:hn,onRowHeightChange:$n}},useData=($,{expandedRowKeys:z,lastRenderedRowIndex:oe,resetAfterIndex:ae})=>{const ie=ref({}),le=computed(()=>{const _e={},{data:Ce,rowKey:$e}=$,xe=unref(z);if(!xe||!xe.length)return Ce;const Ie=[],Ne=new Set;xe.forEach(ze=>Ne.add(ze));let Fe=Ce.slice();for(Fe.forEach(ze=>_e[ze[$e]]=0);Fe.length>0;){const ze=Fe.shift();Ie.push(ze),Ne.has(ze[$e])&&Array.isArray(ze.children)&&ze.children.length>0&&(Fe=[...ze.children,...Fe],ze.children.forEach(At=>_e[At[$e]]=_e[ze[$e]]+1))}return ie.value=_e,Ie}),pe=computed(()=>{const{data:_e,expandColumnKey:Ce}=$;return Ce?unref(le):_e});return watch(pe,(_e,Ce)=>{_e!==Ce&&(oe.value=-1,ae(0,!0))}),{data:pe,depthMap:ie}},sumReducer=($,z)=>$+z,sum=$=>isArray$c($)?$.reduce(sumReducer,0):$,tryCall=($,z,oe={})=>isFunction$5($)?$(z):$??oe,enforceUnit=$=>(["width","maxWidth","minWidth","height"].forEach(z=>{$[z]=addUnit($[z])}),$),componentToSlot=$=>isVNode$1($)?z=>h$3($,z):$,useStyles=($,{columnsTotalWidth:z,data:oe,fixedColumnsOnLeft:ae,fixedColumnsOnRight:ie})=>{const le=computed(()=>{const{fixed:_n,width:bn,vScrollbarSize:Cn}=$,En=bn-Cn;return _n?Math.max(Math.round(unref(z)),En):En}),pe=computed(()=>unref(le)+($.fixed?$.vScrollbarSize:0)),_e=computed(()=>{const{height:_n=0,maxHeight:bn=0,footerHeight:Cn,hScrollbarSize:En}=$;if(bn>0){const $n=unref(ze),wn=unref(Ce),xn=unref(Fe)+$n+wn+En;return Math.min(xn,bn-Cn)}return _n-Cn}),Ce=computed(()=>{const{rowHeight:_n,estimatedRowHeight:bn}=$,Cn=unref(oe);return isNumber$5(bn)?Cn.length*bn:Cn.length*_n}),$e=computed(()=>{const{maxHeight:_n}=$,bn=unref(_e);if(isNumber$5(_n)&&_n>0)return bn;const Cn=unref(Ce)+unref(Fe)+unref(ze);return Math.min(bn,Cn)}),xe=_n=>_n.width,Ie=computed(()=>sum(unref(ae).map(xe))),Ne=computed(()=>sum(unref(ie).map(xe))),Fe=computed(()=>sum($.headerHeight)),ze=computed(()=>{var _n;return(((_n=$.fixedData)==null?void 0:_n.length)||0)*$.rowHeight}),At=computed(()=>unref(_e)-unref(Fe)-unref(ze)),Lt=computed(()=>{const{style:_n={},height:bn,width:Cn}=$;return enforceUnit({..._n,height:bn,width:Cn})}),hn=computed(()=>enforceUnit({height:$.footerHeight})),vn=computed(()=>({top:addUnit(unref(Fe)),bottom:addUnit($.footerHeight),width:addUnit($.width)}));return{bodyWidth:le,fixedTableHeight:$e,mainTableHeight:_e,leftTableWidth:Ie,rightTableWidth:Ne,headerWidth:pe,rowsHeight:Ce,windowHeight:At,footerHeight:hn,emptyStyle:vn,rootStyle:Lt,headerHeight:Fe}},useAutoResize=$=>{const z=ref(),oe=ref(0),ae=ref(0);let ie;return onMounted(()=>{ie=useResizeObserver(z,([le])=>{const{width:pe,height:_e}=le.contentRect,{paddingLeft:Ce,paddingRight:$e,paddingTop:xe,paddingBottom:Ie}=getComputedStyle(le.target),Ne=Number.parseInt(Ce)||0,Fe=Number.parseInt($e)||0,ze=Number.parseInt(xe)||0,At=Number.parseInt(Ie)||0;oe.value=pe-Ne-Fe,ae.value=_e-ze-At}).stop}),onBeforeUnmount(()=>{ie==null||ie()}),watch([oe,ae],([le,pe])=>{var _e;(_e=$.onResize)==null||_e.call($,{width:le,height:pe})}),{sizer:z,width:oe,height:ae}};function useTable($){const z=ref(),oe=ref(),ae=ref(),{columns:ie,columnsStyles:le,columnsTotalWidth:pe,fixedColumnsOnLeft:_e,fixedColumnsOnRight:Ce,hasFixedColumns:$e,mainColumns:xe,onColumnSorted:Ie}=useColumns($,toRef$1($,"columns"),toRef$1($,"fixed")),{scrollTo:Ne,scrollToLeft:Fe,scrollToTop:ze,scrollToRow:At,onScroll:Lt,onVerticalScroll:hn,scrollPos:vn}=useScrollbar($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae,onMaybeEndReached:Gn}),{expandedRowKeys:_n,hoveringRowKey:bn,lastRenderedRowIndex:Cn,isDynamic:En,isResetting:$n,rowHeights:wn,resetAfterIndex:Tn,onRowExpanded:xn,onRowHeightChange:kn,onRowHovered:An,onRowsRendered:On}=useRow($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae}),{data:Mn,depthMap:Fn}=useData($,{expandedRowKeys:_n,lastRenderedRowIndex:Cn,resetAfterIndex:Tn}),{bodyWidth:Dn,fixedTableHeight:Nn,mainTableHeight:Vn,leftTableWidth:Bn,rightTableWidth:zn,headerWidth:Xn,rowsHeight:Un,windowHeight:Jn,footerHeight:lr,emptyStyle:_r,rootStyle:ir,headerHeight:qn}=useStyles($,{columnsTotalWidth:pe,data:Mn,fixedColumnsOnLeft:_e,fixedColumnsOnRight:Ce}),Yn=shallowRef(!1),Wn=ref(),tr=computed(()=>{const Zn=unref(Mn).length===0;return isArray$c($.fixedData)?$.fixedData.length===0&&Zn:Zn});function pr(Zn){const{estimatedRowHeight:rr,rowHeight:mr,rowKey:Sr}=$;return rr?unref(wn)[unref(Mn)[Zn][Sr]]||rr:mr}function Gn(){const{onEndReached:Zn}=$;if(!Zn)return;const{scrollTop:rr}=unref(vn),mr=unref(Un),Sr=unref(Jn),ar=mr-(rr+Sr)+$.hScrollbarSize;unref(Cn)>=0&&mr===rr+unref(Vn)-unref(qn)&&Zn(ar)}return watch(()=>$.expandedRowKeys,Zn=>_n.value=Zn,{deep:!0}),{columns:ie,containerRef:Wn,mainTableRef:z,leftTableRef:oe,rightTableRef:ae,isDynamic:En,isResetting:$n,isScrolling:Yn,hoveringRowKey:bn,hasFixedColumns:$e,columnsStyles:le,columnsTotalWidth:pe,data:Mn,expandedRowKeys:_n,depthMap:Fn,fixedColumnsOnLeft:_e,fixedColumnsOnRight:Ce,mainColumns:xe,bodyWidth:Dn,emptyStyle:_r,rootStyle:ir,headerWidth:Xn,footerHeight:lr,mainTableHeight:Vn,fixedTableHeight:Nn,leftTableWidth:Bn,rightTableWidth:zn,showEmpty:tr,getRowHeight:pr,onColumnSorted:Ie,onRowHovered:An,onRowExpanded:xn,onRowsRendered:On,onRowHeightChange:kn,scrollTo:Ne,scrollToLeft:Fe,scrollToTop:ze,scrollToRow:At,onScroll:Lt,onVerticalScroll:hn}}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=($,{slots:z})=>{var oe;const{cellData:ae,style:ie}=$,le=((oe=ae==null?void 0:ae.toString)==null?void 0:oe.call(ae))||"";return createVNode("div",{class:$.class,title:le,style:ie},[z.default?z.default($):le])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=($,{slots:z})=>{var oe,ae;return z.default?z.default($):createVNode("div",{class:$.class,title:(oe=$.column)==null?void 0:oe.title},[(ae=$.column)==null?void 0:ae.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($,{slots:z}){return()=>{const{columns:oe,columnsStyles:ae,headerIndex:ie,style:le}=$;let pe=oe.map((_e,Ce)=>z.cell({columns:oe,column:_e,columnIndex:Ce,headerIndex:ie,style:ae[_e.key]}));return z.header&&(pe=z.header({cells:pe.map(_e=>isArray$c(_e)&&_e.length===1?_e[0]:_e),columns:oe,headerIndex:ie})),createVNode("div",{class:$.class,style:le,role:"row"},[pe])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup($,{slots:z,expose:oe}){const ae=useNamespace("table-v2"),ie=ref(),le=computed(()=>enforceUnit({width:$.width,height:$.height})),pe=computed(()=>enforceUnit({width:$.rowWidth,height:$.height})),_e=computed(()=>castArray$1(unref($.headerHeight))),Ce=Ie=>{const Ne=unref(ie);nextTick(()=>{Ne!=null&&Ne.scroll&&Ne.scroll({left:Ie})})},$e=()=>{const Ie=ae.e("fixed-header-row"),{columns:Ne,fixedHeaderData:Fe,rowHeight:ze}=$;return Fe==null?void 0:Fe.map((At,Lt)=>{var hn;const vn=enforceUnit({height:ze,width:"100%"});return(hn=z.fixed)==null?void 0:hn.call(z,{class:Ie,columns:Ne,rowData:At,rowIndex:-(Lt+1),style:vn})})},xe=()=>{const Ie=ae.e("dynamic-header-row"),{columns:Ne}=$;return unref(_e).map((Fe,ze)=>{var At;const Lt=enforceUnit({width:"100%",height:Fe});return(At=z.dynamic)==null?void 0:At.call(z,{class:Ie,columns:Ne,headerIndex:ze,style:Lt})})};return oe({scrollToLeft:Ce}),()=>{if(!($.height<=0))return createVNode("div",{ref:ie,class:$.class,style:unref(le),role:"rowgroup"},[createVNode("div",{style:unref(pe),class:ae.e("header")},[xe(),$e()])])}}}),useTableRow=$=>{const{isScrolling:z}=inject(TableV2InjectionKey),oe=ref(!1),ae=ref(),ie=computed(()=>isNumber$5($.estimatedRowHeight)&&$.rowIndex>=0),le=(Ce=!1)=>{const $e=unref(ae);if(!$e)return;const{columns:xe,onRowHeightChange:Ie,rowKey:Ne,rowIndex:Fe,style:ze}=$,{height:At}=$e.getBoundingClientRect();oe.value=!0,nextTick(()=>{if(Ce||At!==Number.parseInt(ze.height)){const Lt=xe[0],hn=(Lt==null?void 0:Lt.placeholderSign)===placeholderSign;Ie==null||Ie({rowKey:Ne,height:At,rowIndex:Fe},Lt&&!hn&&Lt.fixed)}})},pe=computed(()=>{const{rowData:Ce,rowIndex:$e,rowKey:xe,onRowHover:Ie}=$,Ne=$.rowEventHandlers||{},Fe={};return Object.entries(Ne).forEach(([ze,At])=>{isFunction$5(At)&&(Fe[ze]=Lt=>{At({event:Lt,rowData:Ce,rowIndex:$e,rowKey:xe})})}),Ie&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:ze,hovered:At})=>{const Lt=Fe[ze];Fe[ze]=hn=>{Ie({event:hn,hovered:At,rowData:Ce,rowIndex:$e,rowKey:xe}),Lt==null||Lt(hn)}}),Fe}),_e=Ce=>{const{onRowExpand:$e,rowData:xe,rowIndex:Ie,rowKey:Ne}=$;$e==null||$e({expanded:Ce,rowData:xe,rowIndex:Ie,rowKey:Ne})};return onMounted(()=>{unref(ie)&&le(!0)}),{isScrolling:z,measurable:ie,measured:oe,rowRef:ae,eventHandlers:pe,onExpand:_e}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup($,{expose:z,slots:oe,attrs:ae}){const{eventHandlers:ie,isScrolling:le,measurable:pe,measured:_e,rowRef:Ce,onExpand:$e}=useTableRow($);return z({onExpand:$e}),()=>{const{columns:xe,columnsStyles:Ie,expandColumnKey:Ne,depth:Fe,rowData:ze,rowIndex:At,style:Lt}=$;let hn=xe.map((vn,_n)=>{const bn=isArray$c(ze.children)&&ze.children.length>0&&vn.key===Ne;return oe.cell({column:vn,columns:xe,columnIndex:_n,depth:Fe,style:Ie[vn.key],rowData:ze,rowIndex:At,isScrolling:unref(le),expandIconProps:bn?{rowData:ze,rowIndex:At,onExpand:$e}:void 0})});if(oe.row&&(hn=oe.row({cells:hn.map(vn=>isArray$c(vn)&&vn.length===1?vn[0]:vn),style:Lt,columns:xe,depth:Fe,rowData:ze,rowIndex:At,isScrolling:unref(le)})),unref(pe)){const{height:vn,..._n}=Lt||{},bn=unref(_e);return createVNode("div",mergeProps({ref:Ce,class:$.class,style:bn?Lt:_n,role:"row"},ae,unref(ie)),[hn])}return createVNode("div",mergeProps(ae,{ref:Ce,class:$.class,style:Lt,role:"row"},unref(ie)),[hn])}}}),SortIcon=$=>{const{sortOrder:z}=$;return createVNode(ElIcon,{size:14,class:$.class},{default:()=>[z===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=$=>{const{expanded:z,expandable:oe,onExpand:ae,style:ie,size:le}=$,pe={onClick:oe?()=>ae(!z):void 0,class:$.class};return createVNode(ElIcon,mergeProps(pe,{size:le,style:ie}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=$=>{const z=ref(),oe=ref(),ae=computed(()=>{const{data:At,rowHeight:Lt,estimatedRowHeight:hn}=$;if(!hn)return At.length*Lt}),ie=computed(()=>{const{fixedData:At,rowHeight:Lt}=$;return((At==null?void 0:At.length)||0)*Lt}),le=computed(()=>sum($.headerHeight)),pe=computed(()=>{const{height:At}=$;return Math.max(0,At-unref(le)-unref(ie))}),_e=computed(()=>unref(le)+unref(ie)>0),Ce=({data:At,rowIndex:Lt})=>At[Lt][$.rowKey];function $e({rowCacheStart:At,rowCacheEnd:Lt,rowVisibleStart:hn,rowVisibleEnd:vn}){var _n;(_n=$.onRowsRendered)==null||_n.call($,{rowCacheStart:At,rowCacheEnd:Lt,rowVisibleStart:hn,rowVisibleEnd:vn})}function xe(At,Lt){var hn;(hn=oe.value)==null||hn.resetAfterRowIndex(At,Lt)}function Ie(At,Lt){const hn=unref(z),vn=unref(oe);!hn||!vn||(isObject$8(At)?(hn.scrollToLeft(At.scrollLeft),vn.scrollTo(At)):(hn.scrollToLeft(At),vn.scrollTo({scrollLeft:At,scrollTop:Lt})))}function Ne(At){var Lt;(Lt=unref(oe))==null||Lt.scrollTo({scrollTop:At})}function Fe(At,Lt){var hn;(hn=unref(oe))==null||hn.scrollToItem(At,1,Lt)}function ze(){var At,Lt;(At=unref(oe))==null||At.$forceUpdate(),(Lt=unref(z))==null||Lt.$forceUpdate()}return{bodyRef:oe,forceUpdate:ze,fixedRowHeight:ie,gridHeight:pe,hasHeader:_e,headerHeight:le,headerRef:z,totalHeight:ae,itemKey:Ce,onItemRendered:$e,resetAfterRowIndex:xe,scrollTo:Ie,scrollToTop:Ne,scrollToRow:Fe}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup($,{slots:z,expose:oe}){const{ns:ae}=inject(TableV2InjectionKey),{bodyRef:ie,fixedRowHeight:le,gridHeight:pe,hasHeader:_e,headerRef:Ce,headerHeight:$e,totalHeight:xe,forceUpdate:Ie,itemKey:Ne,onItemRendered:Fe,resetAfterRowIndex:ze,scrollTo:At,scrollToTop:Lt,scrollToRow:hn}=useTableGrid($);oe({forceUpdate:Ie,totalHeight:xe,scrollTo:At,scrollToTop:Lt,scrollToRow:hn,resetAfterRowIndex:ze});const vn=()=>$.bodyWidth;return()=>{const{cache:_n,columns:bn,data:Cn,fixedData:En,useIsScrolling:$n,scrollbarAlwaysOn:wn,scrollbarEndGap:Tn,scrollbarStartGap:xn,style:kn,rowHeight:An,bodyWidth:On,estimatedRowHeight:Mn,headerWidth:Fn,height:Dn,width:Nn,getRowHeight:Vn,onScroll:Bn}=$,zn=isNumber$5(Mn),Xn=zn?DynamicSizeGrid:FixedSizeGrid,Un=unref($e);return createVNode("div",{role:"table",class:[ae.e("table"),$.class],style:kn},[createVNode(Xn,{ref:ie,data:Cn,useIsScrolling:$n,itemKey:Ne,columnCache:0,columnWidth:zn?vn:On,totalColumn:1,totalRow:Cn.length,rowCache:_n,rowHeight:zn?Vn:An,width:Nn,height:unref(pe),class:ae.e("body"),role:"rowgroup",scrollbarStartGap:xn,scrollbarEndGap:Tn,scrollbarAlwaysOn:wn,onScroll:Bn,onItemRendered:Fe,perfMode:!1},{default:Jn=>{var lr;const _r=Cn[Jn.rowIndex];return(lr=z.row)==null?void 0:lr.call(z,{...Jn,columns:bn,rowData:_r})}}),unref(_e)&&createVNode(TableV2Header,{ref:Ce,class:ae.e("header-wrapper"),columns:bn,headerData:Cn,headerHeight:$.headerHeight,fixedHeaderData:En,rowWidth:Fn,rowHeight:An,width:Nn,height:Math.min(Un+unref(le),Dn)},{dynamic:z.header,fixed:z.row})])}}});function _isSlot$5($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const MainTable=($,{slots:z})=>{const{mainTableRef:oe,...ae}=$;return createVNode(TableGrid,mergeProps({ref:oe},ae),_isSlot$5(z)?z:{default:()=>[z]})};function _isSlot$4($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable$1=($,{slots:z})=>{if(!$.columns.length)return;const{leftTableRef:oe,...ae}=$;return createVNode(TableGrid,mergeProps({ref:oe},ae),_isSlot$4(z)?z:{default:()=>[z]})};function _isSlot$3($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable=($,{slots:z})=>{if(!$.columns.length)return;const{rightTableRef:oe,...ae}=$;return createVNode(TableGrid,mergeProps({ref:oe},ae),_isSlot$3(z)?z:{default:()=>[z]})};function _isSlot$2($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const RowRenderer=($,{slots:z})=>{const{columns:oe,columnsStyles:ae,depthMap:ie,expandColumnKey:le,expandedRowKeys:pe,estimatedRowHeight:_e,hasFixedColumns:Ce,hoveringRowKey:$e,rowData:xe,rowIndex:Ie,style:Ne,isScrolling:Fe,rowProps:ze,rowClass:At,rowKey:Lt,rowEventHandlers:hn,ns:vn,onRowHovered:_n,onRowExpanded:bn}=$,Cn=tryCall(At,{columns:oe,rowData:xe,rowIndex:Ie},""),En=tryCall(ze,{columns:oe,rowData:xe,rowIndex:Ie}),$n=xe[Lt],wn=ie[$n]||0,Tn=!!le,xn=Ie<0,kn=[vn.e("row"),Cn,{[vn.e(`row-depth-${wn}`)]:Tn&&Ie>=0,[vn.is("expanded")]:Tn&&pe.includes($n),[vn.is("hovered")]:!Fe&&$n===$e,[vn.is("fixed")]:!wn&&xn,[vn.is("customized")]:!!z.row}],An=Ce?_n:void 0,On={...En,columns:oe,columnsStyles:ae,class:kn,depth:wn,expandColumnKey:le,estimatedRowHeight:xn?void 0:_e,isScrolling:Fe,rowIndex:Ie,rowData:xe,rowKey:$n,rowEventHandlers:hn,style:Ne};return createVNode(TableV2Row,mergeProps(On,{onRowHover:An,onRowExpand:bn}),_isSlot$2(z)?z:{default:()=>[z]})},CellRenderer=({columns:$,column:z,columnIndex:oe,depth:ae,expandIconProps:ie,isScrolling:le,rowData:pe,rowIndex:_e,style:Ce,expandedRowKeys:$e,ns:xe,cellProps:Ie,expandColumnKey:Ne,indentSize:Fe,iconSize:ze,rowKey:At},{slots:Lt})=>{const hn=enforceUnit(Ce);if(z.placeholderSign===placeholderSign)return createVNode("div",{class:xe.em("row-cell","placeholder"),style:hn},null);const{cellRenderer:vn,dataKey:_n,dataGetter:bn}=z,En=componentToSlot(vn)||Lt.default||(Dn=>createVNode(TableV2Cell,Dn,null)),$n=isFunction$5(bn)?bn({columns:$,column:z,columnIndex:oe,rowData:pe,rowIndex:_e}):get$1(pe,_n??""),wn=tryCall(Ie,{cellData:$n,columns:$,column:z,columnIndex:oe,rowIndex:_e,rowData:pe}),Tn={class:xe.e("cell-text"),columns:$,column:z,columnIndex:oe,cellData:$n,isScrolling:le,rowData:pe,rowIndex:_e},xn=En(Tn),kn=[xe.e("row-cell"),z.class,z.align===Alignment.CENTER&&xe.is("align-center"),z.align===Alignment.RIGHT&&xe.is("align-right")],An=_e>=0&&z.key===Ne,On=_e>=0&&$e.includes(pe[At]);let Mn;const Fn=`margin-inline-start: ${ae*Fe}px;`;return An&&(isObject$8(ie)?Mn=createVNode(ExpandIcon,mergeProps(ie,{class:[xe.e("expand-icon"),xe.is("expanded",On)],size:ze,expanded:On,style:Fn,expandable:!0}),null):Mn=createVNode("div",{style:[Fn,`width: ${ze}px; height: ${ze}px;`].join(" ")},null)),createVNode("div",mergeProps({class:kn,style:hn},wn,{role:"cell"}),[Mn,xn])};CellRenderer.inheritAttrs=!1;function _isSlot$1($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const HeaderRenderer=({columns:$,columnsStyles:z,headerIndex:oe,style:ae,headerClass:ie,headerProps:le,ns:pe},{slots:_e})=>{const Ce={columns:$,headerIndex:oe},$e=[pe.e("header-row"),tryCall(ie,Ce,""),{[pe.is("customized")]:!!_e.header}],xe={...tryCall(le,Ce),columnsStyles:z,class:$e,columns:$,headerIndex:oe,style:ae};return createVNode(TableV2HeaderRow,xe,_isSlot$1(_e)?_e:{default:()=>[_e]})},HeaderCellRenderer=($,{slots:z})=>{const{column:oe,ns:ae,style:ie,onColumnSorted:le}=$,pe=enforceUnit(ie);if(oe.placeholderSign===placeholderSign)return createVNode("div",{class:ae.em("header-row-cell","placeholder"),style:pe},null);const{headerCellRenderer:_e,headerClass:Ce,sortable:$e}=oe,xe={...$,class:ae.e("header-cell-text")},Ne=(componentToSlot(_e)||z.default||(bn=>createVNode(HeaderCell,bn,null)))(xe),{sortBy:Fe,sortState:ze,headerCellProps:At}=$;let Lt,hn;if(ze){const bn=ze[oe.key];Lt=!!oppositeOrderMap[bn],hn=Lt?bn:SortOrder.ASC}else Lt=oe.key===Fe.key,hn=Lt?Fe.order:SortOrder.ASC;const vn=[ae.e("header-cell"),tryCall(Ce,$,""),oe.align===Alignment.CENTER&&ae.is("align-center"),oe.align===Alignment.RIGHT&&ae.is("align-right"),$e&&ae.is("sortable")],_n={...tryCall(At,$),onClick:oe.sortable?le:void 0,class:vn,style:pe,["data-key"]:oe.key};return createVNode("div",mergeProps(_n,{role:"columnheader"}),[Ne,$e&&createVNode(SortIcon,{class:[ae.e("sort-icon"),Lt&&ae.is("sorting")],sortOrder:hn},null)])},Footer$1=($,{slots:z})=>{var oe;return createVNode("div",{class:$.class,style:$.style},[(oe=z.default)==null?void 0:oe.call(z)])};Footer$1.displayName="ElTableV2Footer";const Footer=($,{slots:z})=>createVNode("div",{class:$.class,style:$.style},[z.default?z.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=($,{slots:z})=>{var oe;return createVNode("div",{class:$.class,style:$.style},[(oe=z.default)==null?void 0:oe.call(z)])};Overlay.displayName="ElTableV2Overlay";function _isSlot($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const COMPONENT_NAME$4="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$4,props:tableV2Props,setup($,{slots:z,expose:oe}){const ae=useNamespace("table-v2"),{columnsStyles:ie,fixedColumnsOnLeft:le,fixedColumnsOnRight:pe,mainColumns:_e,mainTableHeight:Ce,fixedTableHeight:$e,leftTableWidth:xe,rightTableWidth:Ie,data:Ne,depthMap:Fe,expandedRowKeys:ze,hasFixedColumns:At,hoveringRowKey:Lt,mainTableRef:hn,leftTableRef:vn,rightTableRef:_n,isDynamic:bn,isResetting:Cn,isScrolling:En,bodyWidth:$n,emptyStyle:wn,rootStyle:Tn,headerWidth:xn,footerHeight:kn,showEmpty:An,scrollTo:On,scrollToLeft:Mn,scrollToTop:Fn,scrollToRow:Dn,getRowHeight:Nn,onColumnSorted:Vn,onRowHeightChange:Bn,onRowHovered:zn,onRowExpanded:Xn,onRowsRendered:Un,onScroll:Jn,onVerticalScroll:lr}=useTable($);return oe({scrollTo:On,scrollToLeft:Mn,scrollToTop:Fn,scrollToRow:Dn}),provide(TableV2InjectionKey,{ns:ae,isResetting:Cn,hoveringRowKey:Lt,isScrolling:En}),()=>{const{cache:_r,cellProps:ir,estimatedRowHeight:qn,expandColumnKey:Yn,fixedData:Wn,headerHeight:tr,headerClass:pr,headerProps:Gn,headerCellProps:Zn,sortBy:rr,sortState:mr,rowHeight:Sr,rowClass:ar,rowEventHandlers:xr,rowKey:gr,rowProps:Pr,scrollbarAlwaysOn:dr,indentSize:sr,iconSize:cr,useIsScrolling:hr,vScrollbarSize:Ar,width:Dr}=$,Lr=unref(Ne),Mr={cache:_r,class:ae.e("main"),columns:unref(_e),data:Lr,fixedData:Wn,estimatedRowHeight:qn,bodyWidth:unref($n),headerHeight:tr,headerWidth:unref(xn),height:unref(Ce),mainTableRef:hn,rowKey:gr,rowHeight:Sr,scrollbarAlwaysOn:dr,scrollbarStartGap:2,scrollbarEndGap:Ar,useIsScrolling:hr,width:Dr,getRowHeight:Nn,onRowsRendered:Un,onScroll:Jn},Er=unref(xe),$r=unref($e),ur={cache:_r,class:ae.e("left"),columns:unref(le),data:Lr,estimatedRowHeight:qn,leftTableRef:vn,rowHeight:Sr,bodyWidth:Er,headerWidth:Er,headerHeight:tr,height:$r,rowKey:gr,scrollbarAlwaysOn:dr,scrollbarStartGap:2,scrollbarEndGap:Ar,useIsScrolling:hr,width:Er,getRowHeight:Nn,onScroll:lr},or=unref(Ie)+Ar,Tr={cache:_r,class:ae.e("right"),columns:unref(pe),data:Lr,estimatedRowHeight:qn,rightTableRef:_n,rowHeight:Sr,bodyWidth:or,headerWidth:or,headerHeight:tr,height:$r,rowKey:gr,scrollbarAlwaysOn:dr,scrollbarStartGap:2,scrollbarEndGap:Ar,width:or,style:`--${unref(ae.namespace)}-table-scrollbar-size: ${Ar}px`,useIsScrolling:hr,getRowHeight:Nn,onScroll:lr},Or=unref(ie),zr={ns:ae,depthMap:unref(Fe),columnsStyles:Or,expandColumnKey:Yn,expandedRowKeys:unref(ze),estimatedRowHeight:qn,hasFixedColumns:unref(At),hoveringRowKey:unref(Lt),rowProps:Pr,rowClass:ar,rowKey:gr,rowEventHandlers:xr,onRowHovered:zn,onRowExpanded:Xn,onRowHeightChange:Bn},Cr={cellProps:ir,expandColumnKey:Yn,indentSize:sr,iconSize:cr,rowKey:gr,expandedRowKeys:unref(ze),ns:ae},Nr={ns:ae,headerClass:pr,headerProps:Gn,columnsStyles:Or},Hr={ns:ae,sortBy:rr,sortState:mr,headerCellProps:Zn,onColumnSorted:Vn},Ur={row:Jr=>createVNode(RowRenderer,mergeProps(Jr,zr),{row:z.row,cell:kr=>{let Rr;return z.cell?createVNode(CellRenderer,mergeProps(kr,Cr,{style:Or[kr.column.key]}),_isSlot(Rr=z.cell(kr))?Rr:{default:()=>[Rr]}):createVNode(CellRenderer,mergeProps(kr,Cr,{style:Or[kr.column.key]}),null)}}),header:Jr=>createVNode(HeaderRenderer,mergeProps(Jr,Nr),{header:z.header,cell:kr=>{let Rr;return z["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(kr,Hr,{style:Or[kr.column.key]}),_isSlot(Rr=z["header-cell"](kr))?Rr:{default:()=>[Rr]}):createVNode(HeaderCellRenderer,mergeProps(kr,Hr,{style:Or[kr.column.key]}),null)}})},Gr=[$.class,ae.b(),ae.e("root"),{[ae.is("dynamic")]:unref(bn)}],qr={class:ae.e("footer"),style:unref(kn)};return createVNode("div",{class:Gr,style:unref(Tn)},[createVNode(MainTable,Mr,_isSlot(Ur)?Ur:{default:()=>[Ur]}),createVNode(LeftTable$1,ur,_isSlot(Ur)?Ur:{default:()=>[Ur]}),createVNode(LeftTable,Tr,_isSlot(Ur)?Ur:{default:()=>[Ur]}),z.footer&&createVNode(Footer$1,qr,{default:z.footer}),unref(An)&&createVNode(Footer,{class:ae.e("empty"),style:unref(wn)},{default:z.empty}),z.overlay&&createVNode(Overlay,{class:ae.e("overlay")},{default:z.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup($,{slots:z}){const oe=useNamespace("auto-resizer"),{height:ae,width:ie,sizer:le}=useAutoResize($),pe={width:"100%",height:"100%"};return()=>{var _e;return createVNode("div",{ref:le,class:oe.b(),style:pe},[(_e=z.default)==null?void 0:_e.call(z,{height:ae.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($,{expose:z}){const oe=$,ae=getCurrentInstance(),ie=inject(tabsRootContextKey);ie||throwError$1(COMPONENT_NAME$3,"<el-tabs><el-tab-bar /></el-tabs>");const le=useNamespace("tabs"),pe=ref(),_e=ref(),Ce=()=>{let xe=0,Ie=0;const Ne=["top","bottom"].includes(ie.props.tabPosition)?"width":"height",Fe=Ne==="width"?"x":"y",ze=Fe==="x"?"left":"top";return oe.tabs.every(At=>{var Lt,hn;const vn=(hn=(Lt=ae.parent)==null?void 0:Lt.refs)==null?void 0:hn[`tab-${At.uid}`];if(!vn)return!1;if(!At.active)return!0;xe=vn[`offset${capitalize$1(ze)}`],Ie=vn[`client${capitalize$1(Ne)}`];const _n=window.getComputedStyle(vn);return Ne==="width"&&(oe.tabs.length>1&&(Ie-=Number.parseFloat(_n.paddingLeft)+Number.parseFloat(_n.paddingRight)),xe+=Number.parseFloat(_n.paddingLeft)),!1}),{[Ne]:`${Ie}px`,transform:`translate${capitalize$1(Fe)}(${xe}px)`}},$e=()=>_e.value=Ce();return watch(()=>oe.tabs,async()=>{await nextTick(),$e()},{immediate:!0}),useResizeObserver(pe,()=>$e()),z({ref:pe,update:$e}),(xe,Ie)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:pe,class:normalizeClass([unref(le).e("active-bar"),unref(le).is(unref(ie).props.tabPosition)]),style:normalizeStyle$1(_e.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:($,z,oe)=>oe instanceof Event,tabRemove:($,z)=>z instanceof Event},COMPONENT_NAME$2="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$2,props:tabNavProps,emits:tabNavEmits,setup($,{expose:z,emit:oe}){const ae=getCurrentInstance(),ie=inject(tabsRootContextKey);ie||throwError$1(COMPONENT_NAME$2,"<el-tabs><tab-nav /></el-tabs>");const le=useNamespace("tabs"),pe=useDocumentVisibility(),_e=useWindowFocus(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),Ne=ref(!1),Fe=ref(0),ze=ref(!1),At=ref(!0),Lt=computed(()=>["top","bottom"].includes(ie.props.tabPosition)?"width":"height"),hn=computed(()=>({transform:`translate${Lt.value==="width"?"X":"Y"}(-${Fe.value}px)`})),vn=()=>{if(!Ce.value)return;const Tn=Ce.value[`offset${capitalize$1(Lt.value)}`],xn=Fe.value;if(!xn)return;const kn=xn>Tn?xn-Tn:0;Fe.value=kn},_n=()=>{if(!Ce.value||!$e.value)return;const Tn=$e.value[`offset${capitalize$1(Lt.value)}`],xn=Ce.value[`offset${capitalize$1(Lt.value)}`],kn=Fe.value;if(Tn-kn<=xn)return;const An=Tn-kn>xn*2?kn+xn:Tn-xn;Fe.value=An},bn=async()=>{const Tn=$e.value;if(!Ne.value||!xe.value||!Ce.value||!Tn)return;await nextTick();const xn=xe.value.querySelector(".is-active");if(!xn)return;const kn=Ce.value,An=["top","bottom"].includes(ie.props.tabPosition),On=xn.getBoundingClientRect(),Mn=kn.getBoundingClientRect(),Fn=An?Tn.offsetWidth-Mn.width:Tn.offsetHeight-Mn.height,Dn=Fe.value;let Nn=Dn;An?(On.left<Mn.left&&(Nn=Dn-(Mn.left-On.left)),On.right>Mn.right&&(Nn=Dn+On.right-Mn.right)):(On.top<Mn.top&&(Nn=Dn-(Mn.top-On.top)),On.bottom>Mn.bottom&&(Nn=Dn+(On.bottom-Mn.bottom))),Nn=Math.max(Nn,0),Fe.value=Math.min(Nn,Fn)},Cn=()=>{var Tn;if(!$e.value||!Ce.value)return;$.stretch&&((Tn=Ie.value)==null||Tn.update());const xn=$e.value[`offset${capitalize$1(Lt.value)}`],kn=Ce.value[`offset${capitalize$1(Lt.value)}`],An=Fe.value;kn<xn?(Ne.value=Ne.value||{},Ne.value.prev=An,Ne.value.next=An+kn<xn,xn-An<kn&&(Fe.value=xn-kn)):(Ne.value=!1,An>0&&(Fe.value=0))},En=Tn=>{const xn=Tn.code,{up:kn,down:An,left:On,right:Mn}=EVENT_CODE;if(![kn,An,On,Mn].includes(xn))return;const Fn=Array.from(Tn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Dn=Fn.indexOf(Tn.target);let Nn;xn===On||xn===kn?Dn===0?Nn=Fn.length-1:Nn=Dn-1:Dn<Fn.length-1?Nn=Dn+1:Nn=0,Fn[Nn].focus({preventScroll:!0}),Fn[Nn].click(),$n()},$n=()=>{At.value&&(ze.value=!0)},wn=()=>ze.value=!1;return watch(pe,Tn=>{Tn==="hidden"?At.value=!1:Tn==="visible"&&setTimeout(()=>At.value=!0,50)}),watch(_e,Tn=>{Tn?setTimeout(()=>At.value=!0,50):At.value=!1}),useResizeObserver(xe,Cn),onMounted(()=>setTimeout(()=>bn(),0)),onUpdated(()=>Cn()),z({scrollToActiveTab:bn,removeFocus:wn}),watch(()=>$.panes,()=>ae.update(),{flush:"post",deep:!0}),()=>{const Tn=Ne.value?[createVNode("span",{class:[le.e("nav-prev"),le.is("disabled",!Ne.value.prev)],onClick:vn},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[le.e("nav-next"),le.is("disabled",!Ne.value.next)],onClick:_n},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,xn=$.panes.map((kn,An)=>{var On,Mn,Fn,Dn;const Nn=kn.uid,Vn=kn.props.disabled,Bn=(Mn=(On=kn.props.name)!=null?On:kn.index)!=null?Mn:`${An}`,zn=!Vn&&(kn.isClosable||$.editable);kn.index=`${An}`;const Xn=zn?createVNode(ElIcon,{class:"is-icon-close",onClick:lr=>oe("tabRemove",kn,lr)},{default:()=>[createVNode(close_default,null,null)]}):null,Un=((Dn=(Fn=kn.slots).label)==null?void 0:Dn.call(Fn))||kn.props.label,Jn=!Vn&&kn.active?0:-1;return createVNode("div",{ref:`tab-${Nn}`,class:[le.e("item"),le.is(ie.props.tabPosition),le.is("active",kn.active),le.is("disabled",Vn),le.is("closable",zn),le.is("focus",ze.value)],id:`tab-${Bn}`,key:`tab-${Nn}`,"aria-controls":`pane-${Bn}`,role:"tab","aria-selected":kn.active,tabindex:Jn,onFocus:()=>$n(),onBlur:()=>wn(),onClick:lr=>{wn(),oe("tabClick",kn,Bn,lr)},onKeydown:lr=>{zn&&(lr.code===EVENT_CODE.delete||lr.code===EVENT_CODE.backspace)&&oe("tabRemove",kn,lr)}},[Un,Xn])});return createVNode("div",{ref:xe,class:[le.e("nav-wrap"),le.is("scrollable",!!Ne.value),le.is(ie.props.tabPosition)]},[Tn,createVNode("div",{class:le.e("nav-scroll"),ref:Ce},[createVNode("div",{class:[le.e("nav"),le.is(ie.props.tabPosition),le.is("stretch",$.stretch&&["top","bottom"].includes(ie.props.tabPosition))],ref:$e,style:hn.value,role:"tablist",onKeydown:En},[$.type?null:createVNode(TabBar,{ref:Ie,tabs:[...$.panes]},null),xn])])])}}}),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=$=>isString$7($)||isNumber$5($),tabsEmits={[UPDATE_MODEL_EVENT]:$=>isPaneName($),tabClick:($,z)=>z instanceof Event,tabChange:$=>isPaneName($),edit:($,z)=>["remove","add"].includes(z),tabRemove:$=>isPaneName($),tabAdd:()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup($,{emit:z,slots:oe,expose:ae}){var ie,le;const pe=useNamespace("tabs"),{children:_e,addChild:Ce,removeChild:$e}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),xe=ref(),Ie=ref((le=(ie=$.modelValue)!=null?ie:$.activeName)!=null?le:"0"),Ne=hn=>{Ie.value=hn,z(UPDATE_MODEL_EVENT,hn),z("tabChange",hn)},Fe=async hn=>{var vn,_n,bn;if(!(Ie.value===hn||isUndefined$1(hn)))try{await((vn=$.beforeLeave)==null?void 0:vn.call($,hn,Ie.value))!==!1&&(Ne(hn),(bn=(_n=xe.value)==null?void 0:_n.removeFocus)==null||bn.call(_n))}catch{}},ze=(hn,vn,_n)=>{hn.props.disabled||(Fe(vn),z("tabClick",hn,_n))},At=(hn,vn)=>{hn.props.disabled||isUndefined$1(hn.props.name)||(vn.stopPropagation(),z("edit",hn.props.name,"remove"),z("tabRemove",hn.props.name))},Lt=()=>{z("edit",void 0,"add"),z("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(()=>!!$.activeName)),watch(()=>$.activeName,hn=>Fe(hn)),watch(()=>$.modelValue,hn=>Fe(hn)),watch(Ie,async()=>{var hn;await nextTick(),(hn=xe.value)==null||hn.scrollToActiveTab()}),provide(tabsRootContextKey,{props:$,currentName:Ie,registerPane:Ce,unregisterPane:$e}),ae({currentName:Ie}),()=>{const hn=$.editable||$.addable?createVNode("span",{class:pe.e("new-tab"),tabindex:"0",onClick:Lt,onKeydown:bn=>{bn.code===EVENT_CODE.enter&&Lt()}},[createVNode(ElIcon,{class:pe.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,vn=createVNode("div",{class:[pe.e("header"),pe.is($.tabPosition)]},[hn,createVNode(TabNav,{ref:xe,currentName:Ie.value,editable:$.editable,type:$.type,panes:_e.value,stretch:$.stretch,onTabClick:ze,onTabRemove:At},null)]),_n=createVNode("div",{class:pe.e("content")},[renderSlot(oe,"default")]);return createVNode("div",{class:[pe.b(),pe.m($.tabPosition),{[pe.m("card")]:$.type==="card",[pe.m("border-card")]:$.type==="border-card"}]},[...$.tabPosition!=="bottom"?[vn,_n]:[_n,vn]])}}});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($){const z=$,oe=getCurrentInstance(),ae=useSlots(),ie=inject(tabsRootContextKey);ie||throwError$1(COMPONENT_NAME$1,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const le=useNamespace("tab-pane"),pe=ref(),_e=computed(()=>z.closable||ie.props.closable),Ce=computedEager(()=>{var Fe;return ie.currentName.value===((Fe=z.name)!=null?Fe:pe.value)}),$e=ref(Ce.value),xe=computed(()=>{var Fe;return(Fe=z.name)!=null?Fe:pe.value}),Ie=computedEager(()=>!z.lazy||$e.value||Ce.value);watch(Ce,Fe=>{Fe&&($e.value=!0)});const Ne=reactive({uid:oe.uid,slots:ae,props:z,paneName:xe,active:Ce,index:pe,isClosable:_e});return onMounted(()=>{ie.registerPane(Ne)}),onUnmounted(()=>{ie.unregisterPane(Ne.uid)}),(Fe,ze)=>unref(Ie)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(xe)}`,class:normalizeClass(unref(le).b()),role:"tabpanel","aria-hidden":!unref(Ce),"aria-labelledby":`tab-${unref(xe)}`},[renderSlot(Fe.$slots,"default")],10,_hoisted_1$c)),[[vShow,unref(Ce)]]):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($){const z=$,oe=useFormSize(),ae=useNamespace("text"),ie=computed(()=>[ae.b(),ae.m(z.type),ae.m(oe.value),ae.is("truncated",z.truncated)]);return(le,pe)=>(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=$=>{const z=($||"").split(":");if(z.length>=2){let oe=Number.parseInt(z[0],10);const ae=Number.parseInt(z[1],10),ie=$.toUpperCase();return ie.includes("AM")&&oe===12?oe=0:ie.includes("PM")&&oe!==12&&(oe+=12),{hours:oe,minutes:ae}}return null},compareTime=($,z)=>{const oe=parseTime($);if(!oe)return-1;const ae=parseTime(z);if(!ae)return-1;const ie=oe.minutes+oe.hours*60,le=ae.minutes+ae.hours*60;return ie===le?0:ie>le?1:-1},padTime=$=>`${$}`.padStart(2,"0"),formatTime$1=$=>`${padTime($.hours)}:${padTime($.minutes)}`,nextTime=($,z)=>{const oe=parseTime($);if(!oe)return"";const ae=parseTime(z);if(!ae)return"";const ie={hours:oe.hours,minutes:oe.minutes};return ie.minutes+=ae.minutes,ie.hours+=ae.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($,{expose:z}){const oe=$;dayjs.extend(customParseFormat);const{Option:ae}=ElSelect,ie=useNamespace("input"),le=ref(),pe=useFormDisabled(),_e=computed(()=>oe.modelValue),Ce=computed(()=>{const Lt=parseTime(oe.start);return Lt?formatTime$1(Lt):null}),$e=computed(()=>{const Lt=parseTime(oe.end);return Lt?formatTime$1(Lt):null}),xe=computed(()=>{const Lt=parseTime(oe.step);return Lt?formatTime$1(Lt):null}),Ie=computed(()=>{const Lt=parseTime(oe.minTime||"");return Lt?formatTime$1(Lt):null}),Ne=computed(()=>{const Lt=parseTime(oe.maxTime||"");return Lt?formatTime$1(Lt):null}),Fe=computed(()=>{const Lt=[];if(oe.start&&oe.end&&oe.step){let hn=Ce.value,vn;for(;hn&&$e.value&&compareTime(hn,$e.value)<=0;)vn=dayjs(hn,"HH:mm").format(oe.format),Lt.push({value:vn,disabled:compareTime(hn,Ie.value||"-1:-1")<=0||compareTime(hn,Ne.value||"100:100")>=0}),hn=nextTime(hn,xe.value)}return Lt});return z({blur:()=>{var Lt,hn;(hn=(Lt=le.value)==null?void 0:Lt.blur)==null||hn.call(Lt)},focus:()=>{var Lt,hn;(hn=(Lt=le.value)==null?void 0:Lt.focus)==null||hn.call(Lt)}}),(Lt,hn)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:le,"model-value":unref(_e),disabled:unref(pe),clearable:Lt.clearable,"clear-icon":Lt.clearIcon,size:Lt.size,effect:Lt.effect,placeholder:Lt.placeholder,"default-first-option":"",filterable:Lt.editable,"onUpdate:modelValue":hn[0]||(hn[0]=vn=>Lt.$emit("update:modelValue",vn)),onChange:hn[1]||(hn[1]=vn=>Lt.$emit("change",vn)),onBlur:hn[2]||(hn[2]=vn=>Lt.$emit("blur",vn)),onFocus:hn[3]||(hn[3]=vn=>Lt.$emit("focus",vn))},{prefix:withCtx(()=>[Lt.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Lt.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),vn=>(openBlock(),createBlock(unref(ae),{key:vn.value,label:vn.value,value:vn.value,disabled:vn.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=$=>{$.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup($,{slots:z}){const oe=useNamespace("timeline");return provide("timeline",z),()=>h$3("ul",{class:[oe.b()]},[renderSlot(z,"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($){const z=useNamespace("timeline-item");return(oe,ae)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(z).b(),{[unref(z).e("center")]:oe.center}])},[createBaseVNode("div",{class:normalizeClass(unref(z).e("tail"))},null,2),oe.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(z).e("node"),unref(z).em("node",oe.size||""),unref(z).em("node",oe.type||""),unref(z).is("hollow",oe.hollow)]),style:normalizeStyle$1({backgroundColor:oe.color})},[oe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(z).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),oe.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(z).e("dot"))},[renderSlot(oe.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(z).e("wrapper"))},[!oe.hideTimestamp&&oe.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(z).e("timestamp"),unref(z).is("top")])},toDisplayString$1(oe.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(z).e("content"))},[renderSlot(oe.$slots,"default")],2),!oe.hideTimestamp&&oe.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(z).e("timestamp"),unref(z).is("bottom")])},toDisplayString$1(oe.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=($=>($.top="top",$.bottom="bottom",$.left="left",$.right="right",$))(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($,{expose:z}){const oe=$,ae=ref(oe.defaultOpen),ie=ref(null),le=computed({get:()=>isPropAbsent(oe.open)?ae.value:oe.open,set:Lt=>{var hn;ae.value=Lt,(hn=oe["onUpdate:open"])==null||hn.call(oe,Lt)}}),pe=computed(()=>isNumber$5(oe.delayDuration)&&oe.delayDuration>0),{start:_e,stop:Ce}=useTimeoutFn$1(()=>{le.value=!0},computed(()=>oe.delayDuration),{immediate:!1}),$e=useNamespace("tooltip-v2"),xe=useId(),Ie=()=>{Ce(),le.value=!0},Ne=()=>{unref(pe)?_e():Ie()},Fe=Ie,ze=()=>{Ce(),le.value=!1};return watch(le,Lt=>{var hn;Lt&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),Fe()),(hn=oe.onOpenChange)==null||hn.call(oe,Lt)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,ze)}),onBeforeUnmount(()=>{Ce(),document.removeEventListener(TOOLTIP_V2_OPEN,ze)}),provide(tooltipV2RootKey,{contentId:xe,triggerRef:ie,ns:$e,onClose:ze,onDelayOpen:Ne,onOpen:Fe}),z({onOpen:Fe,onClose:ze}),(Lt,hn)=>renderSlot(Lt.$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($){const z=$,{ns:oe}=inject(tooltipV2RootKey),{arrowRef:ae}=inject(tooltipV2ContentKey),ie=computed(()=>{const{style:le,width:pe,height:_e}=z,Ce=oe.namespace.value;return{[`--${Ce}-tooltip-v2-arrow-width`]:`${pe}px`,[`--${Ce}-tooltip-v2-arrow-height`]:`${_e}px`,[`--${Ce}-tooltip-v2-arrow-border-width`]:`${pe/2}px`,[`--${Ce}-tooltip-v2-arrow-cover-width`]:pe/2-1,...le||{}}});return(le,pe)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:ae,style:normalizeStyle$1(unref(ie)),class:normalizeClass(unref(oe).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($){const z=$,oe=computed(()=>[z.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(ae,ie)=>(openBlock(),createElementBlock("span",mergeProps(ae.$attrs,{style:unref(oe)}),[renderSlot(ae.$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($){const z=$,{triggerRef:oe,contentId:ae}=inject(tooltipV2RootKey),ie=ref(z.placement),le=ref(z.strategy),pe=ref(null),{referenceRef:_e,contentRef:Ce,middlewareData:$e,x:xe,y:Ie,update:Ne}=useFloating({placement:ie,strategy:le,middleware:computed(()=>{const _n=[D$4(z.offset)];return z.showArrow&&_n.push(arrowMiddleware({arrowRef:pe})),_n})}),Fe=useZIndex().nextZIndex(),ze=useNamespace("tooltip-v2"),At=computed(()=>ie.value.split("-")[0]),Lt=computed(()=>({position:unref(le),top:`${unref(Ie)||0}px`,left:`${unref(xe)||0}px`,zIndex:Fe})),hn=computed(()=>{if(!z.showArrow)return{};const{arrow:_n}=unref($e);return{[`--${ze.namespace.value}-tooltip-v2-arrow-x`]:`${_n==null?void 0:_n.x}px`||"",[`--${ze.namespace.value}-tooltip-v2-arrow-y`]:`${_n==null?void 0:_n.y}px`||""}}),vn=computed(()=>[ze.e("content"),ze.is("dark",z.effect==="dark"),ze.is(unref(le)),z.contentClass]);return watch(pe,()=>Ne()),watch(()=>z.placement,_n=>ie.value=_n),onMounted(()=>{watch(()=>z.reference||oe.value,_n=>{_e.value=_n||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:pe}),(_n,bn)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:Ce,style:normalizeStyle$1(unref(Lt)),"data-tooltip-v2-root":""},[_n.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(At),class:normalizeClass(unref(vn))},[renderSlot(_n.$slots,"default",{contentStyle:unref(Lt),contentClass:unref(vn)}),createVNode(unref(ElVisuallyHidden),{id:unref(ae),role:"tooltip"},{default:withCtx(()=>[_n.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(_n.ariaLabel),1)],64)):renderSlot(_n.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(_n.$slots,"arrow",{style:normalizeStyle$1(unref(hn)),side:unref(At)})],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($,{slots:z}){const oe=ref(),ae=composeRefs(oe,ie=>{ie?$.setRef(ie.nextElementSibling):$.setRef(null)});return()=>{var ie;const[le]=((ie=z.default)==null?void 0:ie.call(z))||[],pe=$.onlyChild?ensureOnlyChild(le.children):le.children;return createVNode(Fragment,{ref:ae},[pe])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$i=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup($){const z=$,{onClose:oe,onOpen:ae,onDelayOpen:ie,triggerRef:le,contentId:pe}=inject(tooltipV2RootKey);let _e=!1;const Ce=vn=>{le.value=vn},$e=()=>{_e=!1},xe=composeEventHandlers(z.onMouseEnter,ie),Ie=composeEventHandlers(z.onMouseLeave,oe),Ne=composeEventHandlers(z.onMouseDown,()=>{oe(),_e=!0,document.addEventListener("mouseup",$e,{once:!0})}),Fe=composeEventHandlers(z.onFocus,()=>{_e||ae()}),ze=composeEventHandlers(z.onBlur,oe),At=composeEventHandlers(z.onClick,vn=>{vn.detail===0&&oe()}),Lt={blur:ze,click:At,focus:Fe,mousedown:Ne,mouseenter:xe,mouseleave:Ie},hn=(vn,_n,bn)=>{vn&&Object.entries(_n).forEach(([Cn,En])=>{vn[bn](Cn,En)})};return watch(le,(vn,_n)=>{hn(vn,Lt,"addEventListener"),hn(_n,Lt,"removeEventListener"),vn&&vn.setAttribute("aria-describedby",pe.value)}),onBeforeUnmount(()=>{hn(le.value,Lt,"removeEventListener"),document.removeEventListener("mouseup",$e)}),(vn,_n)=>vn.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":Ce,"only-child":""},{default:withCtx(()=>[renderSlot(vn.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:le},vn.$attrs),[renderSlot(vn.$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($){const oe=toRefs($),ae=reactive(pick$1(oe,Object.keys(tooltipV2ArrowProps))),ie=reactive(pick$1(oe,Object.keys(tooltipV2ContentProps))),le=reactive(pick$1(oe,Object.keys(tooltipV2RootProps))),pe=reactive(pick$1(oe,Object.keys(tooltipV2TriggerProps)));return(_e,Ce)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(le)),{default:withCtx(({open:$e})=>[createVNode(TooltipV2Trigger,mergeProps(pe,{nowrap:""}),{default:withCtx(()=>[renderSlot(_e.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:_e.to,disabled:!_e.teleported},[_e.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},_e.transitionProps)),{default:withCtx(()=>[_e.alwaysOn||$e?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},ie)),{arrow:withCtx(({style:xe,side:Ie})=>[_e.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ae,{style:xe,side:Ie}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[_e.alwaysOn||$e?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},ie)),{arrow:withCtx(({style:xe,side:Ie})=>[_e.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ae,{style:xe,side:Ie}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(_e.$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=($,z)=>[$,z].every(isArray$c)||isArray$c($)&&isNil(z),transferEmits={[CHANGE_EVENT]:($,z,oe)=>[$,oe].every(isArray$c)&&["left","right"].includes(z),[UPDATE_MODEL_EVENT]:$=>isArray$c($),[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=$=>{const z={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...z,...$.props}))},useCheck$1=($,z,oe)=>{const ae=usePropsAlias($),ie=computed(()=>$.data.filter(xe=>isFunction$5($.filterMethod)?$.filterMethod(z.query,xe):String(xe[ae.value.label]||xe[ae.value.key]).toLowerCase().includes(z.query.toLowerCase()))),le=computed(()=>ie.value.filter(xe=>!xe[ae.value.disabled])),pe=computed(()=>{const xe=z.checked.length,Ie=$.data.length,{noChecked:Ne,hasChecked:Fe}=$.format;return Ne&&Fe?xe>0?Fe.replace(/\${checked}/g,xe.toString()).replace(/\${total}/g,Ie.toString()):Ne.replace(/\${total}/g,Ie.toString()):`${xe}/${Ie}`}),_e=computed(()=>{const xe=z.checked.length;return xe>0&&xe<le.value.length}),Ce=()=>{const xe=le.value.map(Ie=>Ie[ae.value.key]);z.allChecked=xe.length>0&&xe.every(Ie=>z.checked.includes(Ie))},$e=xe=>{z.checked=xe?le.value.map(Ie=>Ie[ae.value.key]):[]};return watch(()=>z.checked,(xe,Ie)=>{if(Ce(),z.checkChangeByUser){const Ne=xe.concat(Ie).filter(Fe=>!xe.includes(Fe)||!Ie.includes(Fe));oe(CHECKED_CHANGE_EVENT,xe,Ne)}else oe(CHECKED_CHANGE_EVENT,xe),z.checkChangeByUser=!0}),watch(le,()=>{Ce()}),watch(()=>$.data,()=>{const xe=[],Ie=ie.value.map(Ne=>Ne[ae.value.key]);z.checked.forEach(Ne=>{Ie.includes(Ne)&&xe.push(Ne)}),z.checkChangeByUser=!1,z.checked=xe}),watch(()=>$.defaultChecked,(xe,Ie)=>{if(Ie&&xe.length===Ie.length&&xe.every(ze=>Ie.includes(ze)))return;const Ne=[],Fe=le.value.map(ze=>ze[ae.value.key]);xe.forEach(ze=>{Fe.includes(ze)&&Ne.push(ze)}),z.checkChangeByUser=!1,z.checked=Ne},{immediate:!0}),{filteredData:ie,checkableData:le,checkedSummary:pe,isIndeterminate:_e,updateAllChecked:Ce,handleAllCheckedChange:$e}},useCheckedChange=($,z)=>({onSourceCheckedChange:(ie,le)=>{$.leftChecked=ie,le&&z(LEFT_CHECK_CHANGE_EVENT,ie,le)},onTargetCheckedChange:(ie,le)=>{$.rightChecked=ie,le&&z(RIGHT_CHECK_CHANGE_EVENT,ie,le)}}),useComputedData=$=>{const z=usePropsAlias($),oe=computed(()=>$.data.reduce((le,pe)=>(le[pe[z.value.key]]=pe)&&le,{})),ae=computed(()=>$.data.filter(le=>!$.modelValue.includes(le[z.value.key]))),ie=computed(()=>$.targetOrder==="original"?$.data.filter(le=>$.modelValue.includes(le[z.value.key])):$.modelValue.reduce((le,pe)=>{const _e=oe.value[pe];return _e&&le.push(_e),le},[]));return{sourceData:ae,targetData:ie}},useMove=($,z,oe)=>{const ae=usePropsAlias($),ie=(_e,Ce,$e)=>{oe(UPDATE_MODEL_EVENT,_e),oe(CHANGE_EVENT,_e,Ce,$e)};return{addToLeft:()=>{const _e=$.modelValue.slice();z.rightChecked.forEach(Ce=>{const $e=_e.indexOf(Ce);$e>-1&&_e.splice($e,1)}),ie(_e,"left",z.rightChecked)},addToRight:()=>{let _e=$.modelValue.slice();const Ce=$.data.filter($e=>{const xe=$e[ae.value.key];return z.leftChecked.includes(xe)&&!$.modelValue.includes(xe)}).map($e=>$e[ae.value.key]);_e=$.targetOrder==="unshift"?Ce.concat(_e):_e.concat(Ce),$.targetOrder==="original"&&(_e=$.data.filter($e=>_e.includes($e[ae.value.key])).map($e=>$e[ae.value.key])),ie(_e,"right",z.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$g=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup($,{expose:z,emit:oe}){const ae=$,ie=useSlots(),le=({option:_n})=>_n,{t:pe}=useLocale(),_e=useNamespace("transfer"),Ce=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),$e=usePropsAlias(ae),{filteredData:xe,checkedSummary:Ie,isIndeterminate:Ne,handleAllCheckedChange:Fe}=useCheck$1(ae,Ce,oe),ze=computed(()=>!isEmpty(Ce.query)&&isEmpty(xe.value)),At=computed(()=>!isEmpty(ie.default()[0].children)),{checked:Lt,allChecked:hn,query:vn}=toRefs(Ce);return z({query:vn}),(_n,bn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(_e).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(hn),"onUpdate:modelValue":bn[0]||(bn[0]=Cn=>isRef(hn)?hn.value=Cn:null),indeterminate:unref(Ne),"validate-event":!1,onChange:unref(Fe)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(_n.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref(Ie)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(_e).be("panel","body"),unref(_e).is("with-footer",unref(At))])},[_n.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(vn),"onUpdate:modelValue":bn[1]||(bn[1]=Cn=>isRef(vn)?vn.value=Cn:null),class:normalizeClass(unref(_e).be("panel","filter")),size:"default",placeholder:_n.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(Lt),"onUpdate:modelValue":bn[2]||(bn[2]=Cn=>isRef(Lt)?Lt.value=Cn:null),"validate-event":!1,class:normalizeClass([unref(_e).is("filterable",_n.filterable),unref(_e).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),Cn=>(openBlock(),createBlock(unref(ElCheckbox),{key:Cn[unref($e).key],class:normalizeClass(unref(_e).be("panel","item")),label:Cn[unref($e).key],disabled:Cn[unref($e).disabled],"validate-event":!1},{default:withCtx(()=>{var En;return[createVNode(le,{option:(En=_n.optionRender)==null?void 0:En.call(_n,Cn)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(ze)&&!unref(isEmpty)(_n.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(_e).be("panel","empty"))},toDisplayString$1(unref(ze)?unref(pe)("el.transfer.noMatch"):unref(pe)("el.transfer.noData")),3),[[vShow,unref(ze)||unref(isEmpty)(_n.data)]])],2),unref(At)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(_e).be("panel","footer"))},[renderSlot(_n.$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($,{expose:z,emit:oe}){const ae=$,ie=useSlots(),{t:le}=useLocale(),pe=useNamespace("transfer"),{formItem:_e}=useFormItem(),Ce=reactive({leftChecked:[],rightChecked:[]}),$e=usePropsAlias(ae),{sourceData:xe,targetData:Ie}=useComputedData(ae),{onSourceCheckedChange:Ne,onTargetCheckedChange:Fe}=useCheckedChange(Ce,oe),{addToLeft:ze,addToRight:At}=useMove(ae,Ce,oe),Lt=ref(),hn=ref(),vn=wn=>{switch(wn){case"left":Lt.value.query="";break;case"right":hn.value.query="";break}},_n=computed(()=>ae.buttonTexts.length===2),bn=computed(()=>ae.titles[0]||le("el.transfer.titles.0")),Cn=computed(()=>ae.titles[1]||le("el.transfer.titles.1")),En=computed(()=>ae.filterPlaceholder||le("el.transfer.filterPlaceholder"));watch(()=>ae.modelValue,()=>{var wn;ae.validateEvent&&((wn=_e==null?void 0:_e.validate)==null||wn.call(_e,"change").catch(Tn=>void 0))});const $n=computed(()=>wn=>ae.renderContent?ae.renderContent(h$3,wn):ie.default?ie.default({option:wn}):h$3("span",wn[$e.value.label]||wn[$e.value.key]));return z({clearQuery:vn,leftPanel:Lt,rightPanel:hn}),(wn,Tn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:Lt,data:unref(xe),"option-render":unref($n),placeholder:unref(En),title:unref(bn),filterable:wn.filterable,format:wn.format,"filter-method":wn.filterMethod,"default-checked":wn.leftDefaultChecked,props:ae.props,onCheckedChange:unref(Ne)},{default:withCtx(()=>[renderSlot(wn.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(pe).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(pe).e("button"),unref(pe).is("with-texts",unref(_n))]),disabled:unref(isEmpty)(Ce.rightChecked),onClick:unref(ze)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(wn.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$a,toDisplayString$1(wn.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(pe).e("button"),unref(pe).is("with-texts",unref(_n))]),disabled:unref(isEmpty)(Ce.leftChecked),onClick:unref(At)},{default:withCtx(()=>[unref(isUndefined$1)(wn.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$8,toDisplayString$1(wn.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:hn,data:unref(Ie),"option-render":unref($n),placeholder:unref(En),filterable:wn.filterable,format:wn.format,"filter-method":wn.filterMethod,title:unref(Cn),"default-checked":wn.rightDefaultChecked,props:ae.props,onCheckedChange:unref(Fe)},{default:withCtx(()=>[renderSlot(wn.$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($,z){!z||z[NODE_KEY]||Object.defineProperty(z,NODE_KEY,{value:$.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function($,z){return $?z[$]:z[NODE_KEY]},handleCurrentChange=($,z,oe)=>{const ae=$.value.currentNode;oe();const ie=$.value.currentNode;ae!==ie&&z("current-change",ie?ie.data:null,ie)},getChildState=$=>{let z=!0,oe=!0,ae=!0;for(let ie=0,le=$.length;ie<le;ie++){const pe=$[ie];(pe.checked!==!0||pe.indeterminate)&&(z=!1,pe.disabled||(ae=!1)),(pe.checked!==!1||pe.indeterminate)&&(oe=!1)}return{all:z,none:oe,allWithoutDisable:ae,half:!z&&!oe}},reInitChecked=function($){if($.childNodes.length===0||$.loading)return;const{all:z,none:oe,half:ae}=getChildState($.childNodes);z?($.checked=!0,$.indeterminate=!1):ae?($.checked=!1,$.indeterminate=!0):oe&&($.checked=!1,$.indeterminate=!1);const ie=$.parent;!ie||ie.level===0||$.store.checkStrictly||reInitChecked(ie)},getPropertyFromData=function($,z){const oe=$.store.props,ae=$.data||{},ie=oe[z];if(typeof ie=="function")return ie(ae,$);if(typeof ie=="string")return ae[ie];if(typeof ie>"u"){const le=ae[z];return le===void 0?"":le}};let nodeIdSeed=0;class Node{constructor(z){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 oe in z)hasOwn$4(z,oe)&&(this[oe]=z[oe]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const z=this.store;if(!z)throw new Error("[Node]store is required!");z.registerNode(this);const oe=z.props;if(oe&&typeof oe.isLeaf<"u"){const le=getPropertyFromData(this,"isLeaf");typeof le=="boolean"&&(this.isLeafByUser=le)}if(z.lazy!==!0&&this.data?(this.setData(this.data),z.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&z.lazy&&z.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const ae=z.defaultExpandedKeys,ie=z.key;ie&&ae&&ae.includes(this.key)&&this.expand(null,z.autoExpandParent),ie&&z.currentNodeKey!==void 0&&this.key===z.currentNodeKey&&(z.currentNode=this,z.currentNode.isCurrent=!0),z.lazy&&z._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(z){Array.isArray(z)||markNodeData(this,z),this.data=z,this.childNodes=[];let oe;this.level===0&&Array.isArray(this.data)?oe=this.data:oe=getPropertyFromData(this,"children")||[];for(let ae=0,ie=oe.length;ae<ie;ae++)this.insertChild({data:oe[ae]})}get label(){return getPropertyFromData(this,"label")}get key(){const z=this.store.key;return this.data?this.data[z]:null}get disabled(){return getPropertyFromData(this,"disabled")}get nextSibling(){const z=this.parent;if(z){const oe=z.childNodes.indexOf(this);if(oe>-1)return z.childNodes[oe+1]}return null}get previousSibling(){const z=this.parent;if(z){const oe=z.childNodes.indexOf(this);if(oe>-1)return oe>0?z.childNodes[oe-1]:null}return null}contains(z,oe=!0){return(this.childNodes||[]).some(ae=>ae===z||oe&&ae.contains(z))}remove(){const z=this.parent;z&&z.removeChild(this)}insertChild(z,oe,ae){if(!z)throw new Error("InsertChild error: child is required.");if(!(z instanceof Node)){if(!ae){const ie=this.getChildren(!0);ie.includes(z.data)||(typeof oe>"u"||oe<0?ie.push(z.data):ie.splice(oe,0,z.data))}Object.assign(z,{parent:this,store:this.store}),z=reactive(new Node(z)),z instanceof Node&&z.initialize()}z.level=this.level+1,typeof oe>"u"||oe<0?this.childNodes.push(z):this.childNodes.splice(oe,0,z),this.updateLeafState()}insertBefore(z,oe){let ae;oe&&(ae=this.childNodes.indexOf(oe)),this.insertChild(z,ae)}insertAfter(z,oe){let ae;oe&&(ae=this.childNodes.indexOf(oe),ae!==-1&&(ae+=1)),this.insertChild(z,ae)}removeChild(z){const oe=this.getChildren()||[],ae=oe.indexOf(z.data);ae>-1&&oe.splice(ae,1);const ie=this.childNodes.indexOf(z);ie>-1&&(this.store&&this.store.deregisterNode(z),z.parent=null,this.childNodes.splice(ie,1)),this.updateLeafState()}removeChildByData(z){let oe=null;for(let ae=0;ae<this.childNodes.length;ae++)if(this.childNodes[ae].data===z){oe=this.childNodes[ae];break}oe&&this.removeChild(oe)}expand(z,oe){const ae=()=>{if(oe){let ie=this.parent;for(;ie.level>0;)ie.expanded=!0,ie=ie.parent}this.expanded=!0,z&&z(),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),ae())}):ae()}doCreateChildren(z,oe={}){z.forEach(ae=>{this.insertChild(Object.assign({data:ae},oe),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(z=>{z.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 z=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!z||z.length===0;return}this.isLeaf=!1}setChecked(z,oe,ae,ie){if(this.indeterminate=z==="half",this.checked=z===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:pe,allWithoutDisable:_e}=getChildState(this.childNodes);!this.isLeaf&&!pe&&_e&&(this.checked=!1,z=!1);const Ce=()=>{if(oe){const $e=this.childNodes;for(let Ne=0,Fe=$e.length;Ne<Fe;Ne++){const ze=$e[Ne];ie=ie||z!==!1;const At=ze.disabled?ze.checked:ie;ze.setChecked(At,oe,!0,ie)}const{half:xe,all:Ie}=getChildState($e);Ie||(this.checked=Ie,this.indeterminate=xe)}};if(this.shouldLoadData()){this.loadData(()=>{Ce(),reInitChecked(this)},{checked:z!==!1});return}else Ce()}const le=this.parent;!le||le.level===0||ae||reInitChecked(le)}getChildren(z=!1){if(this.level===0)return this.data;const oe=this.data;if(!oe)return null;const ae=this.store.props;let ie="children";return ae&&(ie=ae.children||"children"),oe[ie]===void 0&&(oe[ie]=null),z&&!oe[ie]&&(oe[ie]=[]),oe[ie]}updateChildren(){const z=this.getChildren()||[],oe=this.childNodes.map(le=>le.data),ae={},ie=[];z.forEach((le,pe)=>{const _e=le[NODE_KEY];!!_e&&oe.findIndex($e=>$e[NODE_KEY]===_e)>=0?ae[_e]={index:pe,data:le}:ie.push({index:pe,data:le})}),this.store.lazy||oe.forEach(le=>{ae[le[NODE_KEY]]||this.removeChildByData(le)}),ie.forEach(({index:le,data:pe})=>{this.insertChild({data:pe},le)}),this.updateLeafState()}loadData(z,oe={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(oe).length)){this.loading=!0;const ae=ie=>{this.childNodes=[],this.doCreateChildren(ie,oe),this.loaded=!0,this.loading=!1,this.updateLeafState(),z&&z.call(this,ie)};this.store.load(this,ae)}else z&&z.call(this)}}class TreeStore{constructor(z){this.currentNode=null,this.currentNodeKey=null;for(const oe in z)hasOwn$4(z,oe)&&(this[oe]=z[oe]);this.nodesMap={}}initialize(){if(this.root=new Node({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const z=this.load;z(this.root,oe=>{this.root.doCreateChildren(oe),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(z){const oe=this.filterNodeMethod,ae=this.lazy,ie=function(le){const pe=le.root?le.root.childNodes:le.childNodes;if(pe.forEach(_e=>{_e.visible=oe.call(_e,z,_e.data,_e),ie(_e)}),!le.visible&&pe.length){let _e=!0;_e=!pe.some(Ce=>Ce.visible),le.root?le.root.visible=_e===!1:le.visible=_e===!1}z&&le.visible&&!le.isLeaf&&!ae&&le.expand()};ie(this)}setData(z){z!==this.root.data?(this.root.setData(z),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(z){if(z instanceof Node)return z;const oe=isObject$8(z)?getNodeKey(this.key,z):z;return this.nodesMap[oe]||null}insertBefore(z,oe){const ae=this.getNode(oe);ae.parent.insertBefore({data:z},ae)}insertAfter(z,oe){const ae=this.getNode(oe);ae.parent.insertAfter({data:z},ae)}remove(z){const oe=this.getNode(z);oe&&oe.parent&&(oe===this.currentNode&&(this.currentNode=null),oe.parent.removeChild(oe))}append(z,oe){const ae=oe?this.getNode(oe):this.root;ae&&ae.insertChild({data:z})}_initDefaultCheckedNodes(){const z=this.defaultCheckedKeys||[],oe=this.nodesMap;z.forEach(ae=>{const ie=oe[ae];ie&&ie.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(z){(this.defaultCheckedKeys||[]).includes(z.key)&&z.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(z){z!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=z,this._initDefaultCheckedNodes())}registerNode(z){const oe=this.key;!z||!z.data||(oe?z.key!==void 0&&(this.nodesMap[z.key]=z):this.nodesMap[z.id]=z)}deregisterNode(z){!this.key||!z||!z.data||(z.childNodes.forEach(ae=>{this.deregisterNode(ae)}),delete this.nodesMap[z.key])}getCheckedNodes(z=!1,oe=!1){const ae=[],ie=function(le){(le.root?le.root.childNodes:le.childNodes).forEach(_e=>{(_e.checked||oe&&_e.indeterminate)&&(!z||z&&_e.isLeaf)&&ae.push(_e.data),ie(_e)})};return ie(this),ae}getCheckedKeys(z=!1){return this.getCheckedNodes(z).map(oe=>(oe||{})[this.key])}getHalfCheckedNodes(){const z=[],oe=function(ae){(ae.root?ae.root.childNodes:ae.childNodes).forEach(le=>{le.indeterminate&&z.push(le.data),oe(le)})};return oe(this),z}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(z=>(z||{})[this.key])}_getAllNodes(){const z=[],oe=this.nodesMap;for(const ae in oe)hasOwn$4(oe,ae)&&z.push(oe[ae]);return z}updateChildren(z,oe){const ae=this.nodesMap[z];if(!ae)return;const ie=ae.childNodes;for(let le=ie.length-1;le>=0;le--){const pe=ie[le];this.remove(pe.data)}for(let le=0,pe=oe.length;le<pe;le++){const _e=oe[le];this.append(_e,ae.data)}}_setCheckedKeys(z,oe=!1,ae){const ie=this._getAllNodes().sort((_e,Ce)=>Ce.level-_e.level),le=Object.create(null),pe=Object.keys(ae);ie.forEach(_e=>_e.setChecked(!1,!1));for(let _e=0,Ce=ie.length;_e<Ce;_e++){const $e=ie[_e],xe=$e.data[z].toString();if(!pe.includes(xe)){$e.checked&&!le[xe]&&$e.setChecked(!1,!1);continue}let Ne=$e.parent;for(;Ne&&Ne.level>0;)le[Ne.data[z]]=!0,Ne=Ne.parent;if($e.isLeaf||this.checkStrictly){$e.setChecked(!0,!1);continue}if($e.setChecked(!0,!0),oe){$e.setChecked(!1,!1);const Fe=function(ze){ze.childNodes.forEach(Lt=>{Lt.isLeaf||Lt.setChecked(!1,!1),Fe(Lt)})};Fe($e)}}}setCheckedNodes(z,oe=!1){const ae=this.key,ie={};z.forEach(le=>{ie[(le||{})[ae]]=!0}),this._setCheckedKeys(ae,oe,ie)}setCheckedKeys(z,oe=!1){this.defaultCheckedKeys=z;const ae=this.key,ie={};z.forEach(le=>{ie[le]=!0}),this._setCheckedKeys(ae,oe,ie)}setDefaultExpandedKeys(z){z=z||[],this.defaultExpandedKeys=z,z.forEach(oe=>{const ae=this.getNode(oe);ae&&ae.expand(null,this.autoExpandParent)})}setChecked(z,oe,ae){const ie=this.getNode(z);ie&&ie.setChecked(!!oe,ae)}getCurrentNode(){return this.currentNode}setCurrentNode(z){const oe=this.currentNode;oe&&(oe.isCurrent=!1),this.currentNode=z,this.currentNode.isCurrent=!0}setUserCurrentNode(z,oe=!0){const ae=z[this.key],ie=this.nodesMap[ae];this.setCurrentNode(ie),oe&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(z,oe=!0){if(z==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const ae=this.getNode(z);ae&&(this.setCurrentNode(ae),oe&&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($){const z=useNamespace("tree"),oe=inject("NodeInstance"),ae=inject("RootTree");return()=>{const ie=$.node,{data:le,store:pe}=ie;return $.renderContent?$.renderContent(h$3,{_self:oe,node:ie,data:le,store:pe}):ae.ctx.slots.default?ae.ctx.slots.default({node:ie,data:le}):h$3("span",{class:z.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($){const z=inject("TreeNodeMap",null),oe={treeNodeExpand:ae=>{$.node!==ae&&$.node.collapse()},children:[]};return z&&z.children.push(oe),provide("TreeNodeMap",oe),{broadcastExpanded:ae=>{if($.accordion)for(const ie of oe.children)ie.treeNodeExpand(ae)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:$,ctx:z,el$:oe,dropIndicator$:ae,store:ie}){const le=useNamespace("tree"),pe=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:xe,treeNode:Ie})=>{if(typeof $.allowDrag=="function"&&!$.allowDrag(Ie.node))return xe.preventDefault(),!1;xe.dataTransfer.effectAllowed="move";try{xe.dataTransfer.setData("text/plain","")}catch{}pe.value.draggingNode=Ie,z.emit("node-drag-start",Ie.node,xe)},treeNodeDragOver:({event:xe,treeNode:Ie})=>{const Ne=Ie,Fe=pe.value.dropNode;Fe&&Fe!==Ne&&removeClass(Fe.$el,le.is("drop-inner"));const ze=pe.value.draggingNode;if(!ze||!Ne)return;let At=!0,Lt=!0,hn=!0,vn=!0;typeof $.allowDrop=="function"&&(At=$.allowDrop(ze.node,Ne.node,"prev"),vn=Lt=$.allowDrop(ze.node,Ne.node,"inner"),hn=$.allowDrop(ze.node,Ne.node,"next")),xe.dataTransfer.dropEffect=Lt||At||hn?"move":"none",(At||Lt||hn)&&Fe!==Ne&&(Fe&&z.emit("node-drag-leave",ze.node,Fe.node,xe),z.emit("node-drag-enter",ze.node,Ne.node,xe)),(At||Lt||hn)&&(pe.value.dropNode=Ne),Ne.node.nextSibling===ze.node&&(hn=!1),Ne.node.previousSibling===ze.node&&(At=!1),Ne.node.contains(ze.node,!1)&&(Lt=!1),(ze.node===Ne.node||ze.node.contains(Ne.node))&&(At=!1,Lt=!1,hn=!1);const _n=Ne.$el.getBoundingClientRect(),bn=oe.value.getBoundingClientRect();let Cn;const En=At?Lt?.25:hn?.45:1:-1,$n=hn?Lt?.75:At?.55:0:1;let wn=-9999;const Tn=xe.clientY-_n.top;Tn<_n.height*En?Cn="before":Tn>_n.height*$n?Cn="after":Lt?Cn="inner":Cn="none";const xn=Ne.$el.querySelector(`.${le.be("node","expand-icon")}`).getBoundingClientRect(),kn=ae.value;Cn==="before"?wn=xn.top-bn.top:Cn==="after"&&(wn=xn.bottom-bn.top),kn.style.top=`${wn}px`,kn.style.left=`${xn.right-bn.left}px`,Cn==="inner"?addClass(Ne.$el,le.is("drop-inner")):removeClass(Ne.$el,le.is("drop-inner")),pe.value.showDropIndicator=Cn==="before"||Cn==="after",pe.value.allowDrop=pe.value.showDropIndicator||vn,pe.value.dropType=Cn,z.emit("node-drag-over",ze.node,Ne.node,xe)},treeNodeDragEnd:xe=>{const{draggingNode:Ie,dropType:Ne,dropNode:Fe}=pe.value;if(xe.preventDefault(),xe.dataTransfer.dropEffect="move",Ie&&Fe){const ze={data:Ie.node.data};Ne!=="none"&&Ie.node.remove(),Ne==="before"?Fe.node.parent.insertBefore(ze,Fe.node):Ne==="after"?Fe.node.parent.insertAfter(ze,Fe.node):Ne==="inner"&&Fe.node.insertChild(ze),Ne!=="none"&&ie.value.registerNode(ze),removeClass(Fe.$el,le.is("drop-inner")),z.emit("node-drag-end",Ie.node,Fe.node,Ne,xe),Ne!=="none"&&z.emit("node-drop",Ie.node,Fe.node,Ne,xe)}Ie&&!Fe&&z.emit("node-drag-end",Ie.node,null,Ne,xe),pe.value.showDropIndicator=!1,pe.value.draggingNode=null,pe.value.dropNode=null,pe.value.allowDrop=!0}}),{dragState:pe}}const _sfc_main$d=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup($,z){const oe=useNamespace("tree"),{broadcastExpanded:ae}=useNodeExpandEventBroadcast($),ie=inject("RootTree"),le=ref(!1),pe=ref(!1),_e=ref(null),Ce=ref(null),$e=ref(null),xe=inject(dragEventsKey),Ie=getCurrentInstance();provide("NodeInstance",Ie),$.node.expanded&&(le.value=!0,pe.value=!0);const Ne=ie.props.children||"children";watch(()=>{const Tn=$.node.data[Ne];return Tn&&[...Tn]},()=>{$.node.updateChildren()}),watch(()=>$.node.indeterminate,Tn=>{At($.node.checked,Tn)}),watch(()=>$.node.checked,Tn=>{At(Tn,$.node.indeterminate)}),watch(()=>$.node.expanded,Tn=>{nextTick(()=>le.value=Tn),Tn&&(pe.value=!0)});const Fe=Tn=>getNodeKey(ie.props.nodeKey,Tn.data),ze=Tn=>{const xn=$.props.class;if(!xn)return{};let kn;if(isFunction$5(xn)){const{data:An}=Tn;kn=xn(An,Tn)}else kn=xn;return isString$7(kn)?{[kn]:!0}:kn},At=(Tn,xn)=>{(_e.value!==Tn||Ce.value!==xn)&&ie.ctx.emit("check-change",$.node.data,Tn,xn),_e.value=Tn,Ce.value=xn},Lt=Tn=>{handleCurrentChange(ie.store,ie.ctx.emit,()=>ie.store.value.setCurrentNode($.node)),ie.currentNode.value=$.node,ie.props.expandOnClickNode&&vn(),ie.props.checkOnClickNode&&!$.node.disabled&&_n(null,{target:{checked:!$.node.checked}}),ie.ctx.emit("node-click",$.node.data,$.node,Ie,Tn)},hn=Tn=>{ie.instance.vnode.props.onNodeContextmenu&&(Tn.stopPropagation(),Tn.preventDefault()),ie.ctx.emit("node-contextmenu",Tn,$.node.data,$.node,Ie)},vn=()=>{$.node.isLeaf||(le.value?(ie.ctx.emit("node-collapse",$.node.data,$.node,Ie),$.node.collapse()):($.node.expand(),z.emit("node-expand",$.node.data,$.node,Ie)))},_n=(Tn,xn)=>{$.node.setChecked(xn.target.checked,!ie.props.checkStrictly),nextTick(()=>{const kn=ie.store.value;ie.ctx.emit("check",$.node.data,{checkedNodes:kn.getCheckedNodes(),checkedKeys:kn.getCheckedKeys(),halfCheckedNodes:kn.getHalfCheckedNodes(),halfCheckedKeys:kn.getHalfCheckedKeys()})})};return{ns:oe,node$:$e,tree:ie,expanded:le,childNodeRendered:pe,oldChecked:_e,oldIndeterminate:Ce,getNodeKey:Fe,getNodeClass:ze,handleSelectChange:At,handleClick:Lt,handleContextMenu:hn,handleExpandIconClick:vn,handleCheckChange:_n,handleChildNodeExpand:(Tn,xn,kn)=>{ae(xn),ie.ctx.emit("node-expand",Tn,xn,kn)},handleDragStart:Tn=>{ie.props.draggable&&xe.treeNodeDragStart({event:Tn,treeNode:$})},handleDragOver:Tn=>{Tn.preventDefault(),ie.props.draggable&&xe.treeNodeDragOver({event:Tn,treeNode:{$el:$e.value,node:$.node}})},handleDrop:Tn=>{Tn.preventDefault()},handleDragEnd:Tn=>{ie.props.draggable&&xe.treeNodeDragEnd(Tn)},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($,z,oe,ae,ie,le){const pe=resolveComponent("el-icon"),_e=resolveComponent("el-checkbox"),Ce=resolveComponent("loading"),$e=resolveComponent("node-content"),xe=resolveComponent("el-tree-node"),Ie=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([$.ns.b("node"),$.ns.is("expanded",$.expanded),$.ns.is("current",$.node.isCurrent),$.ns.is("hidden",!$.node.visible),$.ns.is("focusable",!$.node.disabled),$.ns.is("checked",!$.node.disabled&&$.node.checked),$.getNodeClass($.node)]),role:"treeitem",tabindex:"-1","aria-expanded":$.expanded,"aria-disabled":$.node.disabled,"aria-checked":$.node.checked,draggable:$.tree.props.draggable,"data-key":$.getNodeKey($.node),onClick:z[1]||(z[1]=withModifiers((...Ne)=>$.handleClick&&$.handleClick(...Ne),["stop"])),onContextmenu:z[2]||(z[2]=(...Ne)=>$.handleContextMenu&&$.handleContextMenu(...Ne)),onDragstart:z[3]||(z[3]=withModifiers((...Ne)=>$.handleDragStart&&$.handleDragStart(...Ne),["stop"])),onDragover:z[4]||(z[4]=withModifiers((...Ne)=>$.handleDragOver&&$.handleDragOver(...Ne),["stop"])),onDragend:z[5]||(z[5]=withModifiers((...Ne)=>$.handleDragEnd&&$.handleDragEnd(...Ne),["stop"])),onDrop:z[6]||(z[6]=withModifiers((...Ne)=>$.handleDrop&&$.handleDrop(...Ne),["stop"]))},[createBaseVNode("div",{class:normalizeClass($.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:($.node.level-1)*$.tree.props.indent+"px"})},[$.tree.props.icon||$.CaretRight?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.be("node","expand-icon"),$.ns.is("leaf",$.node.isLeaf),{expanded:!$.node.isLeaf&&$.expanded}]),onClick:withModifiers($.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.tree.props.icon||$.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.showCheckbox?(openBlock(),createBlock(_e,{key:1,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:!!$.node.disabled,onClick:z[0]||(z[0]=withModifiers(()=>{},["stop"])),onChange:$.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),$.node.loading?(openBlock(),createBlock(pe,{key:2,class:normalizeClass([$.ns.be("node","loading-icon"),$.ns.is("loading")])},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode($e,{node:$.node,"render-content":$.renderContent},null,8,["node","render-content"])],6),createVNode(Ie,null,{default:withCtx(()=>[!$.renderAfterExpand||$.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("node","children")),role:"group","aria-expanded":$.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.node.childNodes,Ne=>(openBlock(),createBlock(xe,{key:$.getNodeKey(Ne),"render-content":$.renderContent,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,node:Ne,accordion:$.accordion,props:$.props,onNodeExpand:$.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$7)),[[vShow,$.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$9)),[[vShow,$.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$:$},z){const oe=useNamespace("tree"),ae=shallowRef([]),ie=shallowRef([]);onMounted(()=>{pe()}),onUpdated(()=>{ae.value=Array.from($.value.querySelectorAll("[role=treeitem]")),ie.value=Array.from($.value.querySelectorAll("input[type=checkbox]"))}),watch(ie,_e=>{_e.forEach(Ce=>{Ce.setAttribute("tabindex","-1")})}),useEventListener$1($,"keydown",_e=>{const Ce=_e.target;if(!Ce.className.includes(oe.b("node")))return;const $e=_e.code;ae.value=Array.from($.value.querySelectorAll(`.${oe.is("focusable")}[role=treeitem]`));const xe=ae.value.indexOf(Ce);let Ie;if([EVENT_CODE.up,EVENT_CODE.down].includes($e)){if(_e.preventDefault(),$e===EVENT_CODE.up){Ie=xe===-1?0:xe!==0?xe-1:ae.value.length-1;const Fe=Ie;for(;!z.value.getNode(ae.value[Ie].dataset.key).canFocus;){if(Ie--,Ie===Fe){Ie=-1;break}Ie<0&&(Ie=ae.value.length-1)}}else{Ie=xe===-1?0:xe<ae.value.length-1?xe+1:0;const Fe=Ie;for(;!z.value.getNode(ae.value[Ie].dataset.key).canFocus;){if(Ie++,Ie===Fe){Ie=-1;break}Ie>=ae.value.length&&(Ie=0)}}Ie!==-1&&ae.value[Ie].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes($e)&&(_e.preventDefault(),Ce.click());const Ne=Ce.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes($e)&&Ne&&(_e.preventDefault(),Ne.click())});const pe=()=>{var _e;ae.value=Array.from($.value.querySelectorAll(`.${oe.is("focusable")}[role=treeitem]`)),ie.value=Array.from($.value.querySelectorAll("input[type=checkbox]"));const Ce=$.value.querySelectorAll(`.${oe.is("checked")}[role=treeitem]`);if(Ce.length){Ce[0].setAttribute("tabindex","0");return}(_e=ae.value[0])==null||_e.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($,z){const{t:oe}=useLocale(),ae=useNamespace("tree"),ie=ref(new TreeStore({key:$.nodeKey,data:$.data,lazy:$.lazy,props:$.props,load:$.load,currentNodeKey:$.currentNodeKey,checkStrictly:$.checkStrictly,checkDescendants:$.checkDescendants,defaultCheckedKeys:$.defaultCheckedKeys,defaultExpandedKeys:$.defaultExpandedKeys,autoExpandParent:$.autoExpandParent,defaultExpandAll:$.defaultExpandAll,filterNodeMethod:$.filterNodeMethod}));ie.value.initialize();const le=ref(ie.value.root),pe=ref(null),_e=ref(null),Ce=ref(null),{broadcastExpanded:$e}=useNodeExpandEventBroadcast($),{dragState:xe}=useDragNodeHandler({props:$,ctx:z,el$:_e,dropIndicator$:Ce,store:ie});useKeydown({el$:_e},ie);const Ie=computed(()=>{const{childNodes:Nn}=le.value;return!Nn||Nn.length===0||Nn.every(({visible:Vn})=>!Vn)});watch(()=>$.currentNodeKey,Nn=>{ie.value.setCurrentNodeKey(Nn)}),watch(()=>$.defaultCheckedKeys,Nn=>{ie.value.setDefaultCheckedKey(Nn)}),watch(()=>$.defaultExpandedKeys,Nn=>{ie.value.setDefaultExpandedKeys(Nn)}),watch(()=>$.data,Nn=>{ie.value.setData(Nn)},{deep:!0}),watch(()=>$.checkStrictly,Nn=>{ie.value.checkStrictly=Nn});const Ne=Nn=>{if(!$.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");ie.value.filter(Nn)},Fe=Nn=>getNodeKey($.nodeKey,Nn.data),ze=Nn=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Vn=ie.value.getNode(Nn);if(!Vn)return[];const Bn=[Vn.data];let zn=Vn.parent;for(;zn&&zn!==le.value;)Bn.push(zn.data),zn=zn.parent;return Bn.reverse()},At=(Nn,Vn)=>ie.value.getCheckedNodes(Nn,Vn),Lt=Nn=>ie.value.getCheckedKeys(Nn),hn=()=>{const Nn=ie.value.getCurrentNode();return Nn?Nn.data:null},vn=()=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const Nn=hn();return Nn?Nn[$.nodeKey]:null},_n=(Nn,Vn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");ie.value.setCheckedNodes(Nn,Vn)},bn=(Nn,Vn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");ie.value.setCheckedKeys(Nn,Vn)},Cn=(Nn,Vn,Bn)=>{ie.value.setChecked(Nn,Vn,Bn)},En=()=>ie.value.getHalfCheckedNodes(),$n=()=>ie.value.getHalfCheckedKeys(),wn=(Nn,Vn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(ie,z.emit,()=>ie.value.setUserCurrentNode(Nn,Vn))},Tn=(Nn,Vn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(ie,z.emit,()=>ie.value.setCurrentNodeKey(Nn,Vn))},xn=Nn=>ie.value.getNode(Nn),kn=Nn=>{ie.value.remove(Nn)},An=(Nn,Vn)=>{ie.value.append(Nn,Vn)},On=(Nn,Vn)=>{ie.value.insertBefore(Nn,Vn)},Mn=(Nn,Vn)=>{ie.value.insertAfter(Nn,Vn)},Fn=(Nn,Vn,Bn)=>{$e(Vn),z.emit("node-expand",Nn,Vn,Bn)},Dn=(Nn,Vn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");ie.value.updateChildren(Nn,Vn)};return provide("RootTree",{ctx:z,props:$,store:ie,root:le,currentNode:pe,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:ae,store:ie,root:le,currentNode:pe,dragState:xe,el$:_e,dropIndicator$:Ce,isEmpty:Ie,filter:Ne,getNodeKey:Fe,getNodePath:ze,getCheckedNodes:At,getCheckedKeys:Lt,getCurrentNode:hn,getCurrentKey:vn,setCheckedNodes:_n,setCheckedKeys:bn,setChecked:Cn,getHalfCheckedNodes:En,getHalfCheckedKeys:$n,setCurrentNode:wn,setCurrentKey:Tn,t:oe,getNode:xn,remove:kn,append:An,insertBefore:On,insertAfter:Mn,handleNodeExpand:Fn,updateKeyChildren:Dn}}});function _sfc_render$2($,z,oe,ae,ie,le){const pe=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([$.ns.b(),$.ns.is("dragging",!!$.dragState.draggingNode),$.ns.is("drop-not-allow",!$.dragState.allowDrop),$.ns.is("drop-inner",$.dragState.dropType==="inner"),{[$.ns.m("highlight-current")]:$.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.root.childNodes,_e=>(openBlock(),createBlock(pe,{key:$.getNodeKey(_e),node:_e,props:$.props,accordion:$.accordion,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,"render-content":$.renderContent,onNodeExpand:$.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-block"))},[renderSlot($.$slots,"empty",{},()=>{var _e;return[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((_e=$.emptyText)!=null?_e:$.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass($.ns.e("drop-indicator"))},null,2),[[vShow,$.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=$=>{$.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=($,{attrs:z},{tree:oe,key:ae})=>{const ie=useNamespace("tree-select"),le={...pick$1(toRefs($),Object.keys(ElSelect.props)),...z,valueKey:ae,popperClass:computed(()=>{const pe=[ie.e("popper")];return $.popperClass&&pe.push($.popperClass),pe.join(" ")}),filterMethod:(pe="")=>{$.filterMethod&&$.filterMethod(pe),nextTick(()=>{var _e;(_e=oe.value)==null||_e.filter(pe)})},onVisibleChange:pe=>{var _e;(_e=z.onVisibleChange)==null||_e.call(z,pe),$.filterable&&pe&&le.filterMethod()}};return le},component=defineComponent({extends:ElOption,setup($,z){const oe=ElOption.setup($,z);delete oe.selectOptionClick;const ae=getCurrentInstance().proxy;return nextTick(()=>{oe.select.cachedOptions.get(ae.value)||oe.select.onOptionCreate(ae)}),oe},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue($){return $||$===0}function isValidArray($){return Array.isArray($)&&$.length}function toValidArray($){return Array.isArray($)?$:isValidValue($)?[$]:[]}function treeFind($,z,oe,ae,ie){for(let le=0;le<$.length;le++){const pe=$[le];if(z(pe,le,$,ie))return ae?ae(pe,le,$,ie):pe;{const _e=oe(pe);if(isValidArray(_e)){const Ce=treeFind(_e,z,oe,ae,pe);if(Ce)return Ce}}}}function treeEach($,z,oe,ae){for(let ie=0;ie<$.length;ie++){const le=$[ie];z(le,ie,$,ae);const pe=oe(le);isValidArray(pe)&&treeEach(pe,z,oe,le)}}const useTree$1=($,{attrs:z,slots:oe,emit:ae},{select:ie,tree:le,key:pe})=>{watch(()=>$.modelValue,()=>{$.showCheckbox&&nextTick(()=>{const Ie=le.value;Ie&&!isEqual$1(Ie.getCheckedKeys(),toValidArray($.modelValue))&&Ie.setCheckedKeys(toValidArray($.modelValue))})},{immediate:!0,deep:!0});const _e=computed(()=>({value:pe.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...$.props})),Ce=(Ie,Ne)=>{var Fe;const ze=_e.value[Ie];return isFunction$5(ze)?ze(Ne,(Fe=le.value)==null?void 0:Fe.getNode(Ce("value",Ne))):Ne[ze]},$e=toValidArray($.modelValue).map(Ie=>treeFind($.data||[],Ne=>Ce("value",Ne)===Ie,Ne=>Ce("children",Ne),(Ne,Fe,ze,At)=>At&&Ce("value",At))).filter(Ie=>isValidValue(Ie)),xe=computed(()=>{if(!$.renderAfterExpand&&!$.lazy)return[];const Ie=[];return treeEach($.data.concat($.cacheData),Ne=>{const Fe=Ce("value",Ne);Ie.push({value:Fe,currentLabel:Ce("label",Ne),isDisabled:Ce("disabled",Ne)})},Ne=>Ce("children",Ne)),Ie});return{...pick$1(toRefs($),Object.keys(_Tree.props)),...z,nodeKey:pe,expandOnClickNode:computed(()=>!$.checkStrictly&&$.expandOnClickNode),defaultExpandedKeys:computed(()=>$.defaultExpandedKeys?$.defaultExpandedKeys.concat($e):$e),renderContent:(Ie,{node:Ne,data:Fe,store:ze})=>Ie(component,{value:Ce("value",Fe),label:Ce("label",Fe),disabled:Ce("disabled",Fe)},$.renderContent?()=>$.renderContent(Ie,{node:Ne,data:Fe,store:ze}):oe.default?()=>oe.default({node:Ne,data:Fe,store:ze}):void 0),filterNodeMethod:(Ie,Ne,Fe)=>{var ze;return $.filterNodeMethod?$.filterNodeMethod(Ie,Ne,Fe):Ie?(ze=Ce("label",Ne))==null?void 0:ze.includes(Ie):!0},onNodeClick:(Ie,Ne,Fe)=>{var ze,At,Lt;if((ze=z.onNodeClick)==null||ze.call(z,Ie,Ne,Fe),!($.showCheckbox&&$.checkOnClickNode))if(!$.showCheckbox&&($.checkStrictly||Ne.isLeaf)){if(!Ce("disabled",Ie)){const hn=(At=ie.value)==null?void 0:At.options.get(Ce("value",Ie));(Lt=ie.value)==null||Lt.handleOptionSelect(hn,!0)}}else $.expandOnClickNode&&Fe.proxy.handleExpandIconClick()},onCheck:(Ie,Ne)=>{var Fe;(Fe=z.onCheck)==null||Fe.call(z,Ie,Ne);const ze=Ce("value",Ie);if($.checkStrictly)ae(UPDATE_MODEL_EVENT,$.multiple?Ne.checkedKeys:Ne.checkedKeys.includes(ze)?ze:void 0);else if($.multiple)ae(UPDATE_MODEL_EVENT,le.value.getCheckedKeys(!0));else{const At=treeFind([Ie],vn=>!isValidArray(Ce("children",vn))&&!Ce("disabled",vn),vn=>Ce("children",vn)),Lt=At?Ce("value",At):void 0,hn=isValidValue($.modelValue)&&!!treeFind([Ie],vn=>Ce("value",vn)===$.modelValue,vn=>Ce("children",vn));ae(UPDATE_MODEL_EVENT,Lt===$.modelValue||hn?void 0:Lt)}},cacheOptions:xe}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup($){const z=inject(selectKey);return watch(()=>$.data,()=>{var oe;$.data.forEach(ie=>{z.cachedOptions.has(ie.value)||z.cachedOptions.set(ie.value,ie)});const ae=((oe=z.selectWrapper)==null?void 0:oe.querySelectorAll("input"))||[];Array.from(ae).includes(document.activeElement)||z.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$b=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props,cacheData:{type:Array,default:()=>[]}},setup($,z){const{slots:oe,expose:ae}=z,ie=ref(),le=ref(),pe=computed(()=>$.nodeKey||$.valueKey||"value"),_e=useSelect($,z,{select:ie,tree:le,key:pe}),{cacheOptions:Ce,...$e}=useTree$1($,z,{select:ie,tree:le,key:pe}),xe=reactive({});return ae(xe),onMounted(()=>{Object.assign(xe,{...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$3(ElSelect,reactive({..._e,ref:Ie=>ie.value=Ie}),{...oe,default:()=>[h$3(CacheOptions,{data:Ce.value}),h$3(_Tree,reactive({...$e,ref:Ie=>le.value=Ie}))]})}});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=$=>{$.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=($=>($.KEY="id",$.LABEL="label",$.CHILDREN="children",$.DISABLED="disabled",$))(TreeOptionsEnum||{}),SetOperationEnum=($=>($.ADD="add",$.DELETE="delete",$))(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]:($,z,oe)=>$&&z&&oe,[NODE_EXPAND]:($,z)=>$&&z,[NODE_COLLAPSE]:($,z)=>$&&z,[CURRENT_CHANGE]:($,z)=>$&&z,[NODE_CHECK]:($,z)=>$&&z,[NODE_CHECK_CHANGE]:($,z)=>$&&typeof z=="boolean",[NODE_CONTEXTMENU]:($,z,oe)=>$&&z&&oe},treeNodeEmits={click:($,z)=>!!($&&z),toggle:$=>!!$,check:($,z)=>$&&typeof z=="boolean"};function useCheck($,z){const oe=ref(new Set),ae=ref(new Set),{emit:ie}=getCurrentInstance();watch([()=>z.value,()=>$.defaultCheckedKeys],()=>nextTick(()=>{vn($.defaultCheckedKeys)}),{immediate:!0});const le=()=>{if(!z.value||!$.showCheckbox||$.checkStrictly)return;const{levelTreeNodeMap:_n,maxLevel:bn}=z.value,Cn=oe.value,En=new Set;for(let $n=bn-1;$n>=1;--$n){const wn=_n.get($n);wn&&wn.forEach(Tn=>{const xn=Tn.children;if(xn){let kn=!0,An=!1;for(const On of xn){const Mn=On.key;if(Cn.has(Mn))An=!0;else if(En.has(Mn)){kn=!1,An=!0;break}else kn=!1}kn?Cn.add(Tn.key):An?(En.add(Tn.key),Cn.delete(Tn.key)):(Cn.delete(Tn.key),En.delete(Tn.key))}})}ae.value=En},pe=_n=>oe.value.has(_n.key),_e=_n=>ae.value.has(_n.key),Ce=(_n,bn,Cn=!0)=>{const En=oe.value,$n=(wn,Tn)=>{En[Tn?SetOperationEnum.ADD:SetOperationEnum.DELETE](wn.key);const xn=wn.children;!$.checkStrictly&&xn&&xn.forEach(kn=>{kn.disabled||$n(kn,Tn)})};$n(_n,bn),le(),Cn&&$e(_n,bn)},$e=(_n,bn)=>{const{checkedNodes:Cn,checkedKeys:En}=ze(),{halfCheckedNodes:$n,halfCheckedKeys:wn}=At();ie(NODE_CHECK,_n.data,{checkedKeys:En,checkedNodes:Cn,halfCheckedKeys:wn,halfCheckedNodes:$n}),ie(NODE_CHECK_CHANGE,_n.data,bn)};function xe(_n=!1){return ze(_n).checkedKeys}function Ie(_n=!1){return ze(_n).checkedNodes}function Ne(){return At().halfCheckedKeys}function Fe(){return At().halfCheckedNodes}function ze(_n=!1){const bn=[],Cn=[];if(z!=null&&z.value&&$.showCheckbox){const{treeNodeMap:En}=z.value;oe.value.forEach($n=>{const wn=En.get($n);wn&&(!_n||_n&&wn.isLeaf)&&(Cn.push($n),bn.push(wn.data))})}return{checkedKeys:Cn,checkedNodes:bn}}function At(){const _n=[],bn=[];if(z!=null&&z.value&&$.showCheckbox){const{treeNodeMap:Cn}=z.value;ae.value.forEach(En=>{const $n=Cn.get(En);$n&&(bn.push(En),_n.push($n.data))})}return{halfCheckedNodes:_n,halfCheckedKeys:bn}}function Lt(_n){oe.value.clear(),ae.value.clear(),vn(_n)}function hn(_n,bn){if(z!=null&&z.value&&$.showCheckbox){const Cn=z.value.treeNodeMap.get(_n);Cn&&Ce(Cn,bn,!1)}}function vn(_n){if(z!=null&&z.value){const{treeNodeMap:bn}=z.value;if($.showCheckbox&&bn&&_n)for(const Cn of _n){const En=bn.get(Cn);En&&!pe(En)&&Ce(En,!0,!1)}}}return{updateCheckedKeys:le,toggleCheckbox:Ce,isChecked:pe,isIndeterminate:_e,getCheckedKeys:xe,getCheckedNodes:Ie,getHalfCheckedKeys:Ne,getHalfCheckedNodes:Fe,setChecked:hn,setCheckedKeys:Lt}}function useFilter($,z){const oe=ref(new Set([])),ae=ref(new Set([])),ie=computed(()=>isFunction$5($.filterMethod));function le(_e){var Ce;if(!ie.value)return;const $e=new Set,xe=ae.value,Ie=oe.value,Ne=[],Fe=((Ce=z.value)==null?void 0:Ce.treeNodes)||[],ze=$.filterMethod;Ie.clear();function At(Lt){Lt.forEach(hn=>{Ne.push(hn),ze!=null&&ze(_e,hn.data)?Ne.forEach(_n=>{$e.add(_n.key)}):hn.isLeaf&&Ie.add(hn.key);const vn=hn.children;if(vn&&At(vn),!hn.isLeaf){if(!$e.has(hn.key))Ie.add(hn.key);else if(vn){let _n=!0;for(const bn of vn)if(!Ie.has(bn.key)){_n=!1;break}_n?xe.add(hn.key):xe.delete(hn.key)}}Ne.pop()})}return At(Fe),$e}function pe(_e){return ae.value.has(_e.key)}return{hiddenExpandIconKeySet:ae,hiddenNodeKeySet:oe,doFilter:le,isForceHiddenExpandIcon:pe}}function useTree($,z){const oe=ref(new Set($.defaultExpandedKeys)),ae=ref(),ie=shallowRef();watch(()=>$.currentNodeKey,Yn=>{ae.value=Yn},{immediate:!0}),watch(()=>$.data,Yn=>{ir(Yn)},{immediate:!0});const{isIndeterminate:le,isChecked:pe,toggleCheckbox:_e,getCheckedKeys:Ce,getCheckedNodes:$e,getHalfCheckedKeys:xe,getHalfCheckedNodes:Ie,setChecked:Ne,setCheckedKeys:Fe}=useCheck($,ie),{doFilter:ze,hiddenNodeKeySet:At,isForceHiddenExpandIcon:Lt}=useFilter($,ie),hn=computed(()=>{var Yn;return((Yn=$.props)==null?void 0:Yn.value)||TreeOptionsEnum.KEY}),vn=computed(()=>{var Yn;return((Yn=$.props)==null?void 0:Yn.children)||TreeOptionsEnum.CHILDREN}),_n=computed(()=>{var Yn;return((Yn=$.props)==null?void 0:Yn.disabled)||TreeOptionsEnum.DISABLED}),bn=computed(()=>{var Yn;return((Yn=$.props)==null?void 0:Yn.label)||TreeOptionsEnum.LABEL}),Cn=computed(()=>{const Yn=oe.value,Wn=At.value,tr=[],pr=ie.value&&ie.value.treeNodes||[];function Gn(){const Zn=[];for(let rr=pr.length-1;rr>=0;--rr)Zn.push(pr[rr]);for(;Zn.length;){const rr=Zn.pop();if(rr&&(Wn.has(rr.key)||tr.push(rr),Yn.has(rr.key))){const mr=rr.children;if(mr){const Sr=mr.length;for(let ar=Sr-1;ar>=0;--ar)Zn.push(mr[ar])}}}}return Gn(),tr}),En=computed(()=>Cn.value.length>0);function $n(Yn){const Wn=new Map,tr=new Map;let pr=1;function Gn(rr,mr=1,Sr=void 0){var ar;const xr=[];for(const gr of rr){const Pr=xn(gr),dr={level:mr,key:Pr,data:gr};dr.label=An(gr),dr.parent=Sr;const sr=Tn(gr);dr.disabled=kn(gr),dr.isLeaf=!sr||sr.length===0,sr&&sr.length&&(dr.children=Gn(sr,mr+1,dr)),xr.push(dr),Wn.set(Pr,dr),tr.has(mr)||tr.set(mr,[]),(ar=tr.get(mr))==null||ar.push(dr)}return mr>pr&&(pr=mr),xr}const Zn=Gn(Yn);return{treeNodeMap:Wn,levelTreeNodeMap:tr,maxLevel:pr,treeNodes:Zn}}function wn(Yn){const Wn=ze(Yn);Wn&&(oe.value=Wn)}function Tn(Yn){return Yn[vn.value]}function xn(Yn){return Yn?Yn[hn.value]:""}function kn(Yn){return Yn[_n.value]}function An(Yn){return Yn[bn.value]}function On(Yn){oe.value.has(Yn.key)?Bn(Yn):Vn(Yn)}function Mn(Yn){oe.value=new Set(Yn)}function Fn(Yn,Wn){z(NODE_CLICK,Yn.data,Yn,Wn),Dn(Yn),$.expandOnClickNode&&On(Yn),$.showCheckbox&&$.checkOnClickNode&&!Yn.disabled&&_e(Yn,!pe(Yn),!0)}function Dn(Yn){Un(Yn)||(ae.value=Yn.key,z(CURRENT_CHANGE,Yn.data,Yn))}function Nn(Yn,Wn){_e(Yn,Wn)}function Vn(Yn){const Wn=oe.value;if(ie.value&&$.accordion){const{treeNodeMap:tr}=ie.value;Wn.forEach(pr=>{const Gn=tr.get(pr);Yn&&Yn.level===(Gn==null?void 0:Gn.level)&&Wn.delete(pr)})}Wn.add(Yn.key),z(NODE_EXPAND,Yn.data,Yn)}function Bn(Yn){oe.value.delete(Yn.key),z(NODE_COLLAPSE,Yn.data,Yn)}function zn(Yn){return oe.value.has(Yn.key)}function Xn(Yn){return!!Yn.disabled}function Un(Yn){const Wn=ae.value;return!!Wn&&Wn===Yn.key}function Jn(){var Yn,Wn;if(ae.value)return(Wn=(Yn=ie.value)==null?void 0:Yn.treeNodeMap.get(ae.value))==null?void 0:Wn.data}function lr(){return ae.value}function _r(Yn){ae.value=Yn}function ir(Yn){nextTick(()=>ie.value=$n(Yn))}function qn(Yn){var Wn;const tr=isObject$8(Yn)?xn(Yn):Yn;return(Wn=ie.value)==null?void 0:Wn.treeNodeMap.get(tr)}return{tree:ie,flattenTree:Cn,isNotEmpty:En,getKey:xn,getChildren:Tn,toggleExpand:On,toggleCheckbox:_e,isExpanded:zn,isChecked:pe,isIndeterminate:le,isDisabled:Xn,isCurrent:Un,isForceHiddenExpandIcon:Lt,handleNodeClick:Fn,handleNodeCheck:Nn,getCurrentNode:Jn,getCurrentKey:lr,setCurrentKey:_r,getCheckedKeys:Ce,getCheckedNodes:$e,getHalfCheckedKeys:xe,getHalfCheckedNodes:Ie,setChecked:Ne,setCheckedKeys:Fe,filter:wn,setData:ir,getNode:qn,expandNode:Vn,collapseNode:Bn,setExpandedKeys:Mn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup($){const z=inject(ROOT_TREE_INJECTION_KEY),oe=useNamespace("tree");return()=>{const ae=$.node,{data:ie}=ae;return z!=null&&z.ctx.slots.default?z.ctx.slots.default({node:ae,data:ie}):h$3("span",{class:oe.be("node","label")},[ae==null?void 0:ae.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($,{emit:z}){const oe=$,ae=inject(ROOT_TREE_INJECTION_KEY),ie=useNamespace("tree"),le=computed(()=>{var Ie;return(Ie=ae==null?void 0:ae.props.indent)!=null?Ie:16}),pe=computed(()=>{var Ie;return(Ie=ae==null?void 0:ae.props.icon)!=null?Ie:caret_right_default}),_e=Ie=>{z("click",oe.node,Ie)},Ce=()=>{z("toggle",oe.node)},$e=Ie=>{z("check",oe.node,Ie)},xe=Ie=>{var Ne,Fe,ze,At;(ze=(Fe=(Ne=ae==null?void 0:ae.instance)==null?void 0:Ne.vnode)==null?void 0:Fe.props)!=null&&ze.onNodeContextmenu&&(Ie.stopPropagation(),Ie.preventDefault()),ae==null||ae.ctx.emit(NODE_CONTEXTMENU,Ie,(At=oe.node)==null?void 0:At.data,oe.node)};return(Ie,Ne)=>{var Fe,ze,At;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(ie).b("node"),unref(ie).is("expanded",Ie.expanded),unref(ie).is("current",Ie.current),unref(ie).is("focusable",!Ie.disabled),unref(ie).is("checked",!Ie.disabled&&Ie.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":Ie.expanded,"aria-disabled":Ie.disabled,"aria-checked":Ie.checked,"data-key":(Fe=Ie.node)==null?void 0:Fe.key,onClick:withModifiers(_e,["stop"]),onContextmenu:xe},[createBaseVNode("div",{class:normalizeClass(unref(ie).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(Ie.node.level-1)*unref(le)}px`,height:Ie.itemSize+"px"})},[unref(pe)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ie).is("leaf",!!((ze=Ie.node)!=null&&ze.isLeaf)),unref(ie).is("hidden",Ie.hiddenExpandIcon),{expanded:!((At=Ie.node)!=null&&At.isLeaf)&&Ie.expanded},unref(ie).be("node","expand-icon")]),onClick:withModifiers(Ce,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(pe))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),Ie.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":Ie.checked,indeterminate:Ie.indeterminate,disabled:Ie.disabled,onChange:$e,onClick:Ne[0]||(Ne[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:Ie.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($,{expose:z,emit:oe}){const ae=$,ie=useSlots(),le=computed(()=>ae.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:oe,slots:ie},props:ae,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:pe}=useLocale(),_e=useNamespace("tree"),{flattenTree:Ce,isNotEmpty:$e,toggleExpand:xe,isExpanded:Ie,isIndeterminate:Ne,isChecked:Fe,isDisabled:ze,isCurrent:At,isForceHiddenExpandIcon:Lt,handleNodeClick:hn,handleNodeCheck:vn,toggleCheckbox:_n,getCurrentNode:bn,getCurrentKey:Cn,setCurrentKey:En,getCheckedKeys:$n,getCheckedNodes:wn,getHalfCheckedKeys:Tn,getHalfCheckedNodes:xn,setChecked:kn,setCheckedKeys:An,filter:On,setData:Mn,getNode:Fn,expandNode:Dn,collapseNode:Nn,setExpandedKeys:Vn}=useTree(ae,oe);return z({toggleCheckbox:_n,getCurrentNode:bn,getCurrentKey:Cn,setCurrentKey:En,getCheckedKeys:$n,getCheckedNodes:wn,getHalfCheckedKeys:Tn,getHalfCheckedNodes:xn,setChecked:kn,setCheckedKeys:An,filter:On,setData:Mn,getNode:Fn,expandNode:Dn,collapseNode:Nn,setExpandedKeys:Vn}),(Bn,zn)=>{var Xn;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(_e).b(),{[unref(_e).m("highlight-current")]:Bn.highlightCurrent}]),role:"tree"},[unref($e)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(_e).b("virtual-list"),data:unref(Ce),total:unref(Ce).length,height:Bn.height,"item-size":unref(le),"perf-mode":Bn.perfMode},{default:withCtx(({data:Un,index:Jn,style:lr})=>[(openBlock(),createBlock(ElTreeNode,{key:Un[Jn].key,style:normalizeStyle$1(lr),node:Un[Jn],expanded:unref(Ie)(Un[Jn]),"show-checkbox":Bn.showCheckbox,checked:unref(Fe)(Un[Jn]),indeterminate:unref(Ne)(Un[Jn]),"item-size":unref(le),disabled:unref(ze)(Un[Jn]),current:unref(At)(Un[Jn]),"hidden-expand-icon":unref(Lt)(Un[Jn]),onClick:unref(hn),onToggle:unref(xe),onCheck:unref(vn)},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(_e).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(_e).e("empty-text"))},toDisplayString$1((Xn=Bn.emptyText)!=null?Xn:unref(pe)("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(z,oe,ae,ie){super(z),this.name="UploadAjaxError",this.status=oe,this.method=ae,this.url=ie}}function getError($,z,oe){let ae;return oe.response?ae=`${oe.response.error||oe.response}`:oe.responseText?ae=`${oe.responseText}`:ae=`fail to ${z.method} ${$} ${oe.status}`,new UploadAjaxError(ae,oe.status,z.method,$)}function getBody($){const z=$.responseText||$.response;if(!z)return z;try{return JSON.parse(z)}catch{return z}}const ajaxUpload=$=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const z=new XMLHttpRequest,oe=$.action;z.upload&&z.upload.addEventListener("progress",le=>{const pe=le;pe.percent=le.total>0?le.loaded/le.total*100:0,$.onProgress(pe)});const ae=new FormData;if($.data)for(const[le,pe]of Object.entries($.data))Array.isArray(pe)?ae.append(le,...pe):ae.append(le,pe);ae.append($.filename,$.file,$.file.name),z.addEventListener("error",()=>{$.onError(getError(oe,$,z))}),z.addEventListener("load",()=>{if(z.status<200||z.status>=300)return $.onError(getError(oe,$,z));$.onSuccess(getBody(z))}),z.open($.method,oe,!0),$.withCredentials&&"withCredentials"in z&&(z.withCredentials=!0);const ie=$.headers||{};if(ie instanceof Headers)ie.forEach((le,pe)=>z.setRequestHeader(pe,le));else for(const[le,pe]of Object.entries(ie))isNil(pe)||z.setRequestHeader(le,String(pe));return z.send(ae),z},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:$=>!!$},_hoisted_1$7=["onKeydown"],_hoisted_2$6=["src"],_hoisted_3$4=["onClick"],_hoisted_4$2=["onClick"],_hoisted_5=["onClick"],__default__$5=defineComponent({name:"ElUploadList"}),_sfc_main$8=defineComponent({...__default__$5,props:uploadListProps,emits:uploadListEmits,setup($,{emit:z}){const{t:oe}=useLocale(),ae=useNamespace("upload"),ie=useNamespace("icon"),le=useNamespace("list"),pe=useFormDisabled(),_e=ref(!1),Ce=$e=>{z("remove",$e)};return($e,xe)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(ae).b("list"),unref(ae).bm("list",$e.listType),unref(ae).is("disabled",unref(pe))]),name:unref(le).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($e.files,Ie=>(openBlock(),createElementBlock("li",{key:Ie.uid||Ie.name,class:normalizeClass([unref(ae).be("list","item"),unref(ae).is(Ie.status),{focusing:_e.value}]),tabindex:"0",onKeydown:withKeys(Ne=>!unref(pe)&&Ce(Ie),["delete"]),onFocus:xe[0]||(xe[0]=Ne=>_e.value=!0),onBlur:xe[1]||(xe[1]=Ne=>_e.value=!1),onClick:xe[2]||(xe[2]=Ne=>_e.value=!1)},[renderSlot($e.$slots,"default",{file:Ie},()=>[$e.listType==="picture"||Ie.status!=="uploading"&&$e.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(ae).be("list","item-thumbnail")),src:Ie.url,alt:""},null,10,_hoisted_2$6)):createCommentVNode("v-if",!0),Ie.status==="uploading"||$e.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(ae).be("list","item-name")),onClick:withModifiers(Ne=>$e.handlePreview(Ie),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(ae).be("list","item-file-name"))},toDisplayString$1(Ie.name),3)],10,_hoisted_3$4),Ie.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:$e.listType==="picture-card"?"circle":"line","stroke-width":$e.listType==="picture-card"?6:2,percentage:Number(Ie.percentage),style:normalizeStyle$1($e.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(ae).be("list","item-status-label"))},[$e.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($e.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(pe)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(ie).m("close")),onClick:Ne=>Ce(Ie)},{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(pe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(ie).m("close-tip"))},toDisplayString$1(unref(oe)("el.upload.deleteTip")),3)),$e.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(ae).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(ae).be("list","item-preview")),onClick:Ne=>$e.handlePreview(Ie)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_4$2),unref(pe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ae).be("list","item-delete")),onClick:Ne=>Ce(Ie)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_5))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$7))),128)),renderSlot($e.$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:$=>isArray$c($)},_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($,{emit:z}){const oe=inject(uploadContextKey);oe||throwError$1(COMPONENT_NAME,"usage: <el-upload><el-upload-dragger /></el-upload>");const ae=useNamespace("upload"),ie=ref(!1),le=useFormDisabled(),pe=Ce=>{if(le.value)return;ie.value=!1,Ce.stopPropagation();const $e=Array.from(Ce.dataTransfer.files),xe=oe.accept.value;if(!xe){z("file",$e);return}const Ie=$e.filter(Ne=>{const{type:Fe,name:ze}=Ne,At=ze.includes(".")?`.${ze.split(".").pop()}`:"",Lt=Fe.replace(/\/.*$/,"");return xe.split(",").map(hn=>hn.trim()).filter(hn=>hn).some(hn=>hn.startsWith(".")?At===hn:/\/\*$/.test(hn)?Lt===hn.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(hn)?Fe===hn:!1)});z("file",Ie)},_e=()=>{le.value||(ie.value=!0)};return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b("dragger"),unref(ae).is("dragover",ie.value)]),onDrop:withModifiers(pe,["prevent"]),onDragover:withModifiers(_e,["prevent"]),onDragleave:$e[0]||($e[0]=withModifiers(xe=>ie.value=!1,["prevent"]))},[renderSlot(Ce.$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($,{expose:z}){const oe=$,ae=useNamespace("upload"),ie=useFormDisabled(),le=shallowRef({}),pe=shallowRef(),_e=ze=>{if(ze.length===0)return;const{autoUpload:At,limit:Lt,fileList:hn,multiple:vn,onStart:_n,onExceed:bn}=oe;if(Lt&&hn.length+ze.length>Lt){bn(ze,hn);return}vn||(ze=ze.slice(0,1));for(const Cn of ze){const En=Cn;En.uid=genFileId(),_n(En),At&&Ce(En)}},Ce=async ze=>{if(pe.value.value="",!oe.beforeUpload)return $e(ze);let At,Lt={};try{const vn=oe.beforeUpload(ze);Lt=isObject$8(oe.data)?cloneDeep(oe.data):oe.data,At=await vn}catch{At=!1}if(At===!1){oe.onRemove(ze);return}let hn=ze;At instanceof Blob&&(At instanceof File?hn=At:hn=new File([At],ze.name,{type:ze.type})),$e(Object.assign(hn,{uid:ze.uid}),Lt)},$e=(ze,At)=>{const{headers:Lt,data:hn,method:vn,withCredentials:_n,name:bn,action:Cn,onProgress:En,onSuccess:$n,onError:wn,httpRequest:Tn}=oe,{uid:xn}=ze,kn={headers:Lt||{},withCredentials:_n,file:ze,data:At??hn,method:vn,filename:bn,action:Cn,onProgress:On=>{En(On,ze)},onSuccess:On=>{$n(On,ze),delete le.value[xn]},onError:On=>{wn(On,ze),delete le.value[xn]}},An=Tn(kn);le.value[xn]=An,An instanceof Promise&&An.then(kn.onSuccess,kn.onError)},xe=ze=>{const At=ze.target.files;At&&_e(Array.from(At))},Ie=()=>{ie.value||(pe.value.value="",pe.value.click())},Ne=()=>{Ie()};return z({abort:ze=>{entriesOf(le.value).filter(ze?([Lt])=>String(ze.uid)===Lt:()=>!0).forEach(([Lt,hn])=>{hn instanceof XMLHttpRequest&&hn.abort(),delete le.value[Lt]})},upload:Ce}),(ze,At)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(ze.listType),unref(ae).is("drag",ze.drag)]),tabindex:"0",onClick:Ie,onKeydown:withKeys(withModifiers(Ne,["self"]),["enter","space"])},[ze.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(ie),onFile:_e},{default:withCtx(()=>[renderSlot(ze.$slots,"default")]),_:3},8,["disabled"])):renderSlot(ze.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:pe,class:normalizeClass(unref(ae).e("input")),name:ze.name,multiple:ze.multiple,accept:ze.accept,type:"file",onChange:xe,onClick:At[0]||(At[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=$=>{var z;(z=$.url)!=null&&z.startsWith("blob:")&&URL.revokeObjectURL($.url)},useHandlers=($,z)=>{const oe=useVModel($,"fileList",void 0,{passive:!0}),ae=Ne=>oe.value.find(Fe=>Fe.uid===Ne.uid);function ie(Ne){var Fe;(Fe=z.value)==null||Fe.abort(Ne)}function le(Ne=["ready","uploading","success","fail"]){oe.value=oe.value.filter(Fe=>!Ne.includes(Fe.status))}const pe=(Ne,Fe)=>{const ze=ae(Fe);ze&&(console.error(Ne),ze.status="fail",oe.value.splice(oe.value.indexOf(ze),1),$.onError(Ne,ze,oe.value),$.onChange(ze,oe.value))},_e=(Ne,Fe)=>{const ze=ae(Fe);ze&&($.onProgress(Ne,ze,oe.value),ze.status="uploading",ze.percentage=Math.round(Ne.percent))},Ce=(Ne,Fe)=>{const ze=ae(Fe);ze&&(ze.status="success",ze.response=Ne,$.onSuccess(Ne,ze,oe.value),$.onChange(ze,oe.value))},$e=Ne=>{isNil(Ne.uid)&&(Ne.uid=genFileId());const Fe={name:Ne.name,percentage:0,status:"ready",size:Ne.size,raw:Ne,uid:Ne.uid};if($.listType==="picture-card"||$.listType==="picture")try{Fe.url=URL.createObjectURL(Ne)}catch(ze){ze.message,$.onError(ze,Fe,oe.value)}oe.value=[...oe.value,Fe],$.onChange(Fe,oe.value)},xe=async Ne=>{const Fe=Ne instanceof File?ae(Ne):Ne;Fe||throwError$1(SCOPE$1,"file to be removed not found");const ze=At=>{ie(At);const Lt=oe.value;Lt.splice(Lt.indexOf(At),1),$.onRemove(At,Lt),revokeObjectURL(At)};$.beforeRemove?await $.beforeRemove(Fe,oe.value)!==!1&&ze(Fe):ze(Fe)};function Ie(){oe.value.filter(({status:Ne})=>Ne==="ready").forEach(({raw:Ne})=>{var Fe;return Ne&&((Fe=z.value)==null?void 0:Fe.upload(Ne))})}return watch(()=>$.listType,Ne=>{Ne!=="picture-card"&&Ne!=="picture"||(oe.value=oe.value.map(Fe=>{const{raw:ze,url:At}=Fe;if(!At&&ze)try{Fe.url=URL.createObjectURL(ze)}catch(Lt){$.onError(Lt,Fe,oe.value)}return Fe}))}),watch(oe,Ne=>{for(const Fe of Ne)Fe.uid||(Fe.uid=genFileId()),Fe.status||(Fe.status="success")},{immediate:!0,deep:!0}),{uploadFiles:oe,abort:ie,clearFiles:le,handleError:pe,handleProgress:_e,handleStart:$e,handleSuccess:Ce,handleRemove:xe,submit:Ie}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$5=defineComponent({...__default__$2,props:uploadProps,setup($,{expose:z}){const oe=$,ae=useSlots(),ie=useFormDisabled(),le=shallowRef(),{abort:pe,submit:_e,clearFiles:Ce,uploadFiles:$e,handleStart:xe,handleError:Ie,handleRemove:Ne,handleSuccess:Fe,handleProgress:ze}=useHandlers(oe,le),At=computed(()=>oe.listType==="picture-card"),Lt=computed(()=>({...oe,fileList:$e.value,onStart:xe,onProgress:ze,onSuccess:Fe,onError:Ie,onRemove:Ne}));return onBeforeUnmount(()=>{$e.value.forEach(({url:hn})=>{hn!=null&&hn.startsWith("blob:")&&URL.revokeObjectURL(hn)})}),provide(uploadContextKey,{accept:toRef$1(oe,"accept")}),z({abort:pe,submit:_e,clearFiles:Ce,handleStart:xe,handleRemove:Ne}),(hn,vn)=>(openBlock(),createElementBlock("div",null,[unref(At)&&hn.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(ie),"list-type":hn.listType,files:unref($e),"handle-preview":hn.onPreview,onRemove:unref(Ne)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:le},unref(Lt)),{default:withCtx(()=>[unref(ae).trigger?renderSlot(hn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ae).trigger&&unref(ae).default?renderSlot(hn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[hn.$slots.file?{name:"default",fn:withCtx(({file:_n})=>[renderSlot(hn.$slots,"file",{file:_n})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(At)||unref(At)&&!hn.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:le},unref(Lt)),{default:withCtx(()=>[unref(ae).trigger?renderSlot(hn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ae).trigger&&unref(ae).default?renderSlot(hn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),hn.$slots.trigger?renderSlot(hn.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(hn.$slots,"tip"),!unref(At)&&hn.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(ie),"list-type":hn.listType,files:unref($e),"handle-preview":hn.onPreview,onRemove:unref(Ne)},createSlots({_:2},[hn.$slots.file?{name:"default",fn:withCtx(({file:_n})=>[renderSlot(hn.$slots,"file",{file:_n})])}: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=($,z)=>Object.entries(attributes).reduce((oe,[ae,ie])=>{var le,pe;const{type:_e,default:Ce}=ie,$e=$.getAttribute(`infinite-scroll-${ae}`);let xe=(pe=(le=z[$e])!=null?le:$e)!=null?pe:Ce;return xe=xe==="false"?!1:xe,xe=_e(xe),oe[ae]=Number.isNaN(xe)?Ce:xe,oe},{}),destroyObserver=$=>{const{observer:z}=$[SCOPE];z&&(z.disconnect(),delete $[SCOPE].observer)},handleScroll=($,z)=>{const{container:oe,containerEl:ae,instance:ie,observer:le,lastScrollTop:pe}=$[SCOPE],{disabled:_e,distance:Ce}=getScrollOptions($,ie),{clientHeight:$e,scrollHeight:xe,scrollTop:Ie}=ae,Ne=Ie-pe;if($[SCOPE].lastScrollTop=Ie,le||_e||Ne<0)return;let Fe=!1;if(oe===$)Fe=xe-($e+Ie)<=Ce;else{const{clientTop:ze,scrollHeight:At}=$,Lt=getOffsetTopDistance($,ae);Fe=Ie+$e>=Lt+ze+At-Ce}Fe&&z.call(ie)};function checkFull($,z){const{containerEl:oe,instance:ae}=$[SCOPE],{disabled:ie}=getScrollOptions($,ae);ie||oe.clientHeight===0||(oe.scrollHeight<=oe.clientHeight?z.call(ae):destroyObserver($))}const InfiniteScroll={async mounted($,z){const{instance:oe,value:ae}=z;isFunction$5(ae)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:ie,immediate:le}=getScrollOptions($,oe),pe=getScrollContainer($,!0),_e=pe===window?document.documentElement:pe,Ce=throttle$1(handleScroll.bind(null,$,ae),ie);if(pe){if($[SCOPE]={instance:oe,container:pe,containerEl:_e,delay:ie,cb:ae,onScroll:Ce,lastScrollTop:_e.scrollTop},le){const $e=new MutationObserver(throttle$1(checkFull.bind(null,$,ae),CHECK_INTERVAL));$[SCOPE].observer=$e,$e.observe($,{childList:!0,subtree:!0}),checkFull($,ae)}pe.addEventListener("scroll",Ce)}},unmounted($){const{container:z,onScroll:oe}=$[SCOPE];z==null||z.removeEventListener("scroll",oe),destroyObserver($)},async updated($){if(!$[SCOPE])await nextTick();else{const{containerEl:z,cb:oe,observer:ae}=$[SCOPE];z.clientHeight&&ae&&checkFull($,oe)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=$=>{$.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent($){let z;const oe=ref(!1),ae=reactive({...$,originalPosition:"",originalOverflow:"",visible:!1});function ie(Ne){ae.text=Ne}function le(){const Ne=ae.parent,Fe=Ie.ns;if(!Ne.vLoadingAddClassList){let ze=Ne.getAttribute("loading-number");ze=Number.parseInt(ze)-1,ze?Ne.setAttribute("loading-number",ze.toString()):(removeClass(Ne,Fe.bm("parent","relative")),Ne.removeAttribute("loading-number")),removeClass(Ne,Fe.bm("parent","hidden"))}pe(),xe.unmount()}function pe(){var Ne,Fe;(Fe=(Ne=Ie.$el)==null?void 0:Ne.parentNode)==null||Fe.removeChild(Ie.$el)}function _e(){var Ne;$.beforeClose&&!$.beforeClose()||(oe.value=!0,clearTimeout(z),z=window.setTimeout(Ce,400),ae.visible=!1,(Ne=$.closed)==null||Ne.call($))}function Ce(){if(!oe.value)return;const Ne=ae.parent;oe.value=!1,Ne.vLoadingAddClassList=void 0,le()}const $e=defineComponent({name:"ElLoading",setup(Ne,{expose:Fe}){const{ns:ze,zIndex:At}=useGlobalComponentSettings("loading");return Fe({ns:ze,zIndex:At}),()=>{const Lt=ae.spinner||ae.svg,hn=h$3("svg",{class:"circular",viewBox:ae.svgViewBox?ae.svgViewBox:"0 0 50 50",...Lt?{innerHTML:Lt}:{}},[h$3("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),vn=ae.text?h$3("p",{class:ze.b("text")},[ae.text]):void 0;return h$3(Transition,{name:ze.b("fade"),onAfterLeave:Ce},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:ae.background||""},class:[ze.b("mask"),ae.customClass,ae.fullscreen?"is-fullscreen":""]},[h$3("div",{class:ze.b("spinner")},[hn,vn])]),[[vShow,ae.visible]])])})}}}),xe=createApp($e),Ie=xe.mount(document.createElement("div"));return{...toRefs(ae),setText:ie,removeElLoadingChild:pe,close:_e,handleAfterLeave:Ce,vm:Ie,get $el(){return Ie.$el}}}let fullscreenInstance;const Loading=function($={}){if(!isClient$2)return;const z=resolveOptions($);if(z.fullscreen&&fullscreenInstance)return fullscreenInstance;const oe=createLoadingComponent({...z,closed:()=>{var ie;(ie=z.closed)==null||ie.call(z),z.fullscreen&&(fullscreenInstance=void 0)}});addStyle(z,z.parent,oe),addClassList(z,z.parent,oe),z.parent.vLoadingAddClassList=()=>addClassList(z,z.parent,oe);let ae=z.parent.getAttribute("loading-number");return ae?ae=`${Number.parseInt(ae)+1}`:ae="1",z.parent.setAttribute("loading-number",ae),z.parent.appendChild(oe.$el),nextTick(()=>oe.visible.value=z.visible),z.fullscreen&&(fullscreenInstance=oe),oe},resolveOptions=$=>{var z,oe,ae,ie;let le;return isString$7($.target)?le=(z=document.querySelector($.target))!=null?z:document.body:le=$.target||document.body,{parent:le===document.body||$.body?document.body:le,background:$.background||"",svg:$.svg||"",svgViewBox:$.svgViewBox||"",spinner:$.spinner||!1,text:$.text||"",fullscreen:le===document.body&&((oe=$.fullscreen)!=null?oe:!0),lock:(ae=$.lock)!=null?ae:!1,customClass:$.customClass||"",visible:(ie=$.visible)!=null?ie:!0,target:le}},addStyle=async($,z,oe)=>{const{nextZIndex:ae}=oe.vm.zIndex,ie={};if($.fullscreen)oe.originalPosition.value=getStyle$1(document.body,"position"),oe.originalOverflow.value=getStyle$1(document.body,"overflow"),ie.zIndex=ae();else if($.parent===document.body){oe.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const le of["top","left"]){const pe=le==="top"?"scrollTop":"scrollLeft";ie[le]=`${$.target.getBoundingClientRect()[le]+document.body[pe]+document.documentElement[pe]-Number.parseInt(getStyle$1(document.body,`margin-${le}`),10)}px`}for(const le of["height","width"])ie[le]=`${$.target.getBoundingClientRect()[le]}px`}else oe.originalPosition.value=getStyle$1(z,"position");for(const[le,pe]of Object.entries(ie))oe.$el.style[le]=pe},addClassList=($,z,oe)=>{const ae=oe.vm.ns;["absolute","fixed","sticky"].includes(oe.originalPosition.value)?removeClass(z,ae.bm("parent","relative")):addClass(z,ae.bm("parent","relative")),$.fullscreen&&$.lock?addClass(z,ae.bm("parent","hidden")):removeClass(z,ae.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=($,z)=>{var oe,ae,ie,le;const pe=z.instance,_e=Ne=>isObject$8(z.value)?z.value[Ne]:void 0,Ce=Ne=>{const Fe=isString$7(Ne)&&(pe==null?void 0:pe[Ne])||Ne;return Fe&&ref(Fe)},$e=Ne=>Ce(_e(Ne)||$.getAttribute(`element-loading-${hyphenate(Ne)}`)),xe=(oe=_e("fullscreen"))!=null?oe:z.modifiers.fullscreen,Ie={text:$e("text"),svg:$e("svg"),svgViewBox:$e("svgViewBox"),spinner:$e("spinner"),background:$e("background"),customClass:$e("customClass"),fullscreen:xe,target:(ae=_e("target"))!=null?ae:xe?void 0:$,body:(ie=_e("body"))!=null?ie:z.modifiers.body,lock:(le=_e("lock"))!=null?le:z.modifiers.lock};$[INSTANCE_KEY]={options:Ie,instance:Loading(Ie)}},updateOptions=($,z)=>{for(const oe of Object.keys(z))isRef(z[oe])&&(z[oe].value=$[oe])},vLoading={mounted($,z){z.value&&createInstance$1($,z)},updated($,z){const oe=$[INSTANCE_KEY];z.oldValue!==z.value&&(z.value&&!z.oldValue?createInstance$1($,z):z.value&&z.oldValue?isObject$8(z.value)&&updateOptions(z.value,oe.options):oe==null||oe.instance.close())},unmounted($){var z;(z=$[INSTANCE_KEY])==null||z.instance.close()}},ElLoading={install($){$.directive("loading",vLoading),$.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$2?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=$=>{const z=instances$2.findIndex(ie=>ie.id===$),oe=instances$2[z];let ae;return z>0&&(ae=instances$2[z-1]),{current:oe,prev:ae}},getLastOffset=$=>{const{prev:z}=getInstance$1($);return z?z.vm.exposed.bottom.value:0},getOffsetOrSpace=($,z)=>instances$2.findIndex(ae=>ae.id===$)>0?20:z,_hoisted_1$4=["id"],_hoisted_2$4=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$4=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup($,{expose:z}){const oe=$,{Close:ae}=TypeComponents,{ns:ie,zIndex:le}=useGlobalComponentSettings("message"),{currentZIndex:pe,nextZIndex:_e}=le,Ce=ref(),$e=ref(!1),xe=ref(0);let Ie;const Ne=computed(()=>oe.type?oe.type==="error"?"danger":oe.type:"info"),Fe=computed(()=>{const $n=oe.type;return{[ie.bm("icon",$n)]:$n&&TypeComponentsMap[$n]}}),ze=computed(()=>oe.icon||TypeComponentsMap[oe.type]||""),At=computed(()=>getLastOffset(oe.id)),Lt=computed(()=>getOffsetOrSpace(oe.id,oe.offset)+At.value),hn=computed(()=>xe.value+Lt.value),vn=computed(()=>({top:`${Lt.value}px`,zIndex:pe.value}));function _n(){oe.duration!==0&&({stop:Ie}=useTimeoutFn$1(()=>{Cn()},oe.duration))}function bn(){Ie==null||Ie()}function Cn(){$e.value=!1}function En({code:$n}){$n===EVENT_CODE.esc&&Cn()}return onMounted(()=>{_n(),_e(),$e.value=!0}),watch(()=>oe.repeatNum,()=>{bn(),_n()}),useEventListener$1(document,"keydown",En),useResizeObserver(Ce,()=>{xe.value=Ce.value.getBoundingClientRect().height}),z({visible:$e,bottom:hn,close:Cn}),($n,wn)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),onBeforeLeave:$n.onClose,onAfterLeave:wn[0]||(wn[0]=Tn=>$n.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:$n.id,ref_key:"messageRef",ref:Ce,class:normalizeClass([unref(ie).b(),{[unref(ie).m($n.type)]:$n.type&&!$n.icon},unref(ie).is("center",$n.center),unref(ie).is("closable",$n.showClose),$n.customClass]),style:normalizeStyle$1(unref(vn)),role:"alert",onMouseenter:bn,onMouseleave:_n},[$n.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:$n.repeatNum,type:unref(Ne),class:normalizeClass(unref(ie).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(ze)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ie).e("icon"),unref(Fe)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ze))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot($n.$slots,"default",{},()=>[$n.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:$n.message},null,10,_hoisted_2$4)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(ie).e("content"))},toDisplayString$1($n.message),3))]),$n.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(ie).e("closeBtn")),onClick:withModifiers(Cn,["stop"])},{default:withCtx(()=>[createVNode(unref(ae))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$4),[[vShow,$e.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=$=>{const z=!$||isString$7($)||isVNode$1($)||isFunction$5($)?{message:$}:$,oe={...messageDefaults,...z};if(!oe.appendTo)oe.appendTo=document.body;else if(isString$7(oe.appendTo)){let ae=document.querySelector(oe.appendTo);isElement$2(ae)||(ae=document.body),oe.appendTo=ae}return oe},closeMessage=$=>{const z=instances$2.indexOf($);if(z===-1)return;instances$2.splice(z,1);const{handler:oe}=$;oe.close()},createMessage=({appendTo:$,...z},oe)=>{const ae=`message_${seed$1++}`,ie=z.onClose,le=document.createElement("div"),pe={...z,id:ae,onClose:()=>{ie==null||ie(),closeMessage(xe)},onDestroy:()=>{render$4(null,le)}},_e=createVNode(MessageConstructor,pe,isFunction$5(pe.message)||isVNode$1(pe.message)?{default:isFunction$5(pe.message)?pe.message:()=>pe.message}:null);_e.appContext=oe||message._context,render$4(_e,le),$.appendChild(le.firstElementChild);const Ce=_e.component,xe={id:ae,vnode:_e,vm:Ce,handler:{close:()=>{Ce.exposed.visible.value=!1}},props:_e.component.props};return xe},message=($={},z)=>{if(!isClient$2)return{close:()=>{}};if(isNumber$5(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const oe=normalizeOptions($);if(oe.grouping&&instances$2.length){const ie=instances$2.find(({vnode:le})=>{var pe;return((pe=le.props)==null?void 0:pe.message)===oe.message});if(ie)return ie.props.repeatNum+=1,ie.props.type=oe.type,ie.handler}const ae=createMessage(oe,z);return instances$2.push(ae),ae.handler};messageTypes.forEach($=>{message[$]=(z={},oe)=>{const ae=normalizeOptions(z);return message({...ae,type:$},oe)}});function closeAll$1($){for(const z of instances$2)(!$||$===z.props.type)&&z.handler.close()}message.closeAll=closeAll$1;message._context=null;const ElMessage=withInstallFunction(message,"$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($,{emit:z}){const{locale:oe,zIndex:ae,ns:ie,size:le}=useGlobalComponentSettings("message-box",computed(()=>$.buttonSize)),{t:pe}=oe,{nextZIndex:_e}=ae,Ce=ref(!1),$e=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:_e()}),xe=computed(()=>{const Fn=$e.type;return{[ie.bm("icon",Fn)]:Fn&&TypeComponentsMap[Fn]}}),Ie=useId(),Ne=useId(),Fe=computed(()=>$e.icon||TypeComponentsMap[$e.type]||""),ze=computed(()=>!!$e.message),At=ref(),Lt=ref(),hn=ref(),vn=ref(),_n=ref(),bn=computed(()=>$e.confirmButtonClass);watch(()=>$e.inputValue,async Fn=>{await nextTick(),$.boxType==="prompt"&&Fn!==null&&kn()},{immediate:!0}),watch(()=>Ce.value,Fn=>{var Dn,Nn;Fn&&($.boxType!=="prompt"&&($e.autofocus?hn.value=(Nn=(Dn=_n.value)==null?void 0:Dn.$el)!=null?Nn:At.value:hn.value=At.value),$e.zIndex=_e()),$.boxType==="prompt"&&(Fn?nextTick().then(()=>{var Vn;vn.value&&vn.value.$el&&($e.autofocus?hn.value=(Vn=An())!=null?Vn:At.value:hn.value=At.value)}):($e.editorErrorMessage="",$e.validateError=!1))});const Cn=computed(()=>$.draggable);useDraggable(At,Lt,Cn),onMounted(async()=>{await nextTick(),$.closeOnHashChange&&window.addEventListener("hashchange",En)}),onBeforeUnmount(()=>{$.closeOnHashChange&&window.removeEventListener("hashchange",En)});function En(){Ce.value&&(Ce.value=!1,nextTick(()=>{$e.action&&z("action",$e.action)}))}const $n=()=>{$.closeOnClickModal&&xn($e.distinguishCancelAndClose?"close":"cancel")},wn=useSameTarget($n),Tn=Fn=>{if($e.inputType!=="textarea")return Fn.preventDefault(),xn("confirm")},xn=Fn=>{var Dn;$.boxType==="prompt"&&Fn==="confirm"&&!kn()||($e.action=Fn,$e.beforeClose?(Dn=$e.beforeClose)==null||Dn.call($e,Fn,$e,En):En())},kn=()=>{if($.boxType==="prompt"){const Fn=$e.inputPattern;if(Fn&&!Fn.test($e.inputValue||""))return $e.editorErrorMessage=$e.inputErrorMessage||pe("el.messagebox.error"),$e.validateError=!0,!1;const Dn=$e.inputValidator;if(typeof Dn=="function"){const Nn=Dn($e.inputValue);if(Nn===!1)return $e.editorErrorMessage=$e.inputErrorMessage||pe("el.messagebox.error"),$e.validateError=!0,!1;if(typeof Nn=="string")return $e.editorErrorMessage=Nn,$e.validateError=!0,!1}}return $e.editorErrorMessage="",$e.validateError=!1,!0},An=()=>{const Fn=vn.value.$refs;return Fn.input||Fn.textarea},On=()=>{xn("close")},Mn=()=>{$.closeOnPressEscape&&On()};return $.lockScroll&&useLockscreen(Ce),useRestoreActive(Ce),{...toRefs($e),ns:ie,overlayEvent:wn,visible:Ce,hasMessage:ze,typeClass:xe,contentId:Ie,inputId:Ne,btnSize:le,iconComponent:Fe,confirmButtonClasses:bn,rootRef:At,focusStartRef:hn,headerRef:Lt,inputRef:vn,confirmRef:_n,doClose:En,handleClose:On,onCloseRequested:Mn,handleWrapperClick:$n,handleInputEnter:Tn,handleAction:xn,t:pe}}}),_hoisted_1$3=["aria-label","aria-describedby"],_hoisted_2$3=["aria-label"],_hoisted_3$3=["id"];function _sfc_render$1($,z,oe,ae,ie,le){const pe=resolveComponent("el-icon"),_e=resolveComponent("close"),Ce=resolveComponent("el-input"),$e=resolveComponent("el-button"),xe=resolveComponent("el-focus-trap"),Ie=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:z[11]||(z[11]=Ne=>$.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(Ie,{"z-index":$.zIndex,"overlay-class":[$.ns.is("message-box"),$.modalClass],mask:$.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":$.title,"aria-modal":"true","aria-describedby":$.showInput?void 0:$.contentId,class:normalizeClass(`${$.ns.namespace.value}-overlay-message-box`),onClick:z[8]||(z[8]=(...Ne)=>$.overlayEvent.onClick&&$.overlayEvent.onClick(...Ne)),onMousedown:z[9]||(z[9]=(...Ne)=>$.overlayEvent.onMousedown&&$.overlayEvent.onMousedown(...Ne)),onMouseup:z[10]||(z[10]=(...Ne)=>$.overlayEvent.onMouseup&&$.overlayEvent.onMouseup(...Ne))},[createVNode(xe,{loop:"",trapped:$.visible,"focus-trap-el":$.rootRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([$.ns.b(),$.customClass,$.ns.is("draggable",$.draggable),{[$.ns.m("center")]:$.center}]),style:normalizeStyle$1($.customStyle),tabindex:"-1",onClick:z[7]||(z[7]=withModifiers(()=>{},["stop"]))},[$.title!==null&&$.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass($.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.iconComponent&&$.center?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1($.title),1)],2),$.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass($.ns.e("headerbtn")),"aria-label":$.t("el.messagebox.close"),onClick:z[0]||(z[0]=Ne=>$.handleAction($.distinguishCancelAndClose?"close":"cancel")),onKeydown:z[1]||(z[1]=withKeys(withModifiers(Ne=>$.handleAction($.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(pe,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"])],42,_hoisted_2$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:$.contentId,class:normalizeClass($.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("container"))},[$.iconComponent&&!$.center&&$.hasMessage?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("message"))},[renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:1,for:$.showInput?$.inputId:void 0,innerHTML:$.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:0,for:$.showInput?$.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.dangerouslyUseHTMLString?"":$.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass($.ns.e("input"))},[createVNode(Ce,{id:$.inputId,ref:"inputRef",modelValue:$.inputValue,"onUpdate:modelValue":z[2]||(z[2]=Ne=>$.inputValue=Ne),type:$.inputType,placeholder:$.inputPlaceholder,"aria-invalid":$.validateError,class:normalizeClass({invalid:$.validateError}),onKeydown:withKeys($.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass($.ns.e("errormsg")),style:normalizeStyle$1({visibility:$.editorErrorMessage?"visible":"hidden"})},toDisplayString$1($.editorErrorMessage),7)],2),[[vShow,$.showInput]])],10,_hoisted_3$3),createBaseVNode("div",{class:normalizeClass($.ns.e("btns"))},[$.showCancelButton?(openBlock(),createBlock($e,{key:0,loading:$.cancelButtonLoading,class:normalizeClass([$.cancelButtonClass]),round:$.roundButton,size:$.btnSize,onClick:z[3]||(z[3]=Ne=>$.handleAction("cancel")),onKeydown:z[4]||(z[4]=withKeys(withModifiers(Ne=>$.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.cancelButtonText||$.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode($e,{ref:"confirmRef",type:"primary",loading:$.confirmButtonLoading,class:normalizeClass([$.confirmButtonClasses]),round:$.roundButton,disabled:$.confirmButtonDisabled,size:$.btnSize,onClick:z[5]||(z[5]=Ne=>$.handleAction("confirm")),onKeydown:z[6]||(z[6]=withKeys(withModifiers(Ne=>$.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.confirmButtonText||$.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,$.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,$.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=$=>{let z=document.body;return $.appendTo&&(isString$7($.appendTo)&&(z=document.querySelector($.appendTo)),isElement$2($.appendTo)&&(z=$.appendTo),isElement$2(z)||(z=document.body)),z},initInstance=($,z,oe=null)=>{const ae=createVNode(MessageBoxConstructor,$,isFunction$5($.message)||isVNode$1($.message)?{default:isFunction$5($.message)?$.message:()=>$.message}:null);return ae.appContext=oe,render$4(ae,z),getAppendToElement($).appendChild(z.firstElementChild),ae.component},genContainer=()=>document.createElement("div"),showMessage=($,z)=>{const oe=genContainer();$.onVanish=()=>{render$4(null,oe),messageInstance.delete(ie)},$.onAction=le=>{const pe=messageInstance.get(ie);let _e;$.showInput?_e={value:ie.inputValue,action:le}:_e=le,$.callback?$.callback(_e,ae.proxy):le==="cancel"||le==="close"?$.distinguishCancelAndClose&&le!=="cancel"?pe.reject("close"):pe.reject("cancel"):pe.resolve(_e)};const ae=initInstance($,oe,z),ie=ae.proxy;for(const le in $)hasOwn$4($,le)&&!hasOwn$4(ie.$props,le)&&(ie[le]=$[le]);return ie.visible=!0,ie};function MessageBox($,z=null){if(!isClient$2)return Promise.reject();let oe;return isString$7($)||isVNode$1($)?$={message:$}:oe=$.callback,new Promise((ae,ie)=>{const le=showMessage($,z??MessageBox._context);messageInstance.set(le,{options:$,callback:oe,resolve:ae,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($=>{MessageBox[$]=messageBoxFactory($)});function messageBoxFactory($){return(z,oe,ae,ie)=>{let le="";return isObject$8(oe)?(ae=oe,le=""):isUndefined$1(oe)?le="":le=oe,MessageBox(Object.assign({title:le,message:z,type:"",...MESSAGE_BOX_DEFAULT_OPTS[$]},ae,{boxType:$}),ie)}}MessageBox.close=()=>{messageInstance.forEach(($,z)=>{z.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=$=>{_MessageBox._context=$._context,$.config.globalProperties.$msgbox=_MessageBox,$.config.globalProperties.$messageBox=_MessageBox,$.config.globalProperties.$alert=_MessageBox.alert,$.config.globalProperties.$confirm=_MessageBox.confirm,$.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:{type:Number,default:0}}),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($,{expose:z}){const oe=$,{ns:ae,zIndex:ie}=useGlobalComponentSettings("notification"),{nextZIndex:le,currentZIndex:pe}=ie,{Close:_e}=CloseComponents,Ce=ref(!1);let $e;const xe=computed(()=>{const _n=oe.type;return _n&&TypeComponentsMap[oe.type]?ae.m(_n):""}),Ie=computed(()=>oe.type&&TypeComponentsMap[oe.type]||oe.icon),Ne=computed(()=>oe.position.endsWith("right")?"right":"left"),Fe=computed(()=>oe.position.startsWith("top")?"top":"bottom"),ze=computed(()=>({[Fe.value]:`${oe.offset}px`,zIndex:pe.value}));function At(){oe.duration>0&&({stop:$e}=useTimeoutFn$1(()=>{Ce.value&&hn()},oe.duration))}function Lt(){$e==null||$e()}function hn(){Ce.value=!1}function vn({code:_n}){_n===EVENT_CODE.delete||_n===EVENT_CODE.backspace?Lt():_n===EVENT_CODE.esc?Ce.value&&hn():At()}return onMounted(()=>{At(),le(),Ce.value=!0}),useEventListener$1(document,"keydown",vn),z({visible:Ce,close:hn}),(_n,bn)=>(openBlock(),createBlock(Transition,{name:unref(ae).b("fade"),onBeforeLeave:_n.onClose,onAfterLeave:bn[1]||(bn[1]=Cn=>_n.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:_n.id,class:normalizeClass([unref(ae).b(),_n.customClass,unref(Ne)]),style:normalizeStyle$1(unref(ze)),role:"alert",onMouseenter:Lt,onMouseleave:At,onClick:bn[0]||(bn[0]=(...Cn)=>_n.onClick&&_n.onClick(...Cn))},[unref(Ie)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ae).e("icon"),unref(xe)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ie))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ae).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(ae).e("title")),textContent:toDisplayString$1(_n.title)},null,10,_hoisted_2$2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ae).e("content")),style:normalizeStyle$1(_n.title?void 0:{margin:0})},[renderSlot(_n.$slots,"default",{},()=>[_n.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:_n.message},null,8,_hoisted_4$1)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$2,toDisplayString$1(_n.message),1))])],6),[[vShow,_n.message]]),_n.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ae).e("closeBtn")),onClick:withModifiers(hn,["stop"])},{default:withCtx(()=>[createVNode(unref(_e))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$2),[[vShow,Ce.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($={},z=null){if(!isClient$2)return{close:()=>{}};(typeof $=="string"||isVNode$1($))&&($={message:$});const oe=$.position||"top-right";let ae=$.offset||0;notifications[oe].forEach(({vm:xe})=>{var Ie;ae+=(((Ie=xe.el)==null?void 0:Ie.offsetHeight)||0)+GAP_SIZE}),ae+=GAP_SIZE;const ie=`notification_${seed++}`,le=$.onClose,pe={...$,offset:ae,id:ie,onClose:()=>{close(ie,oe,le)}};let _e=document.body;isElement$2($.appendTo)?_e=$.appendTo:isString$7($.appendTo)&&(_e=document.querySelector($.appendTo)),isElement$2(_e)||(_e=document.body);const Ce=document.createElement("div"),$e=createVNode(NotificationConstructor,pe,isVNode$1(pe.message)?{default:()=>pe.message}:null);return $e.appContext=z??notify._context,$e.props.onDestroy=()=>{render$4(null,Ce)},render$4($e,Ce),notifications[oe].push({vm:$e}),_e.appendChild(Ce.firstElementChild),{close:()=>{$e.component.exposed.visible.value=!1}}};notificationTypes.forEach($=>{notify[$]=(z={})=>((typeof z=="string"||isVNode$1(z))&&(z={message:z}),notify({...z,type:$}))});function close($,z,oe){const ae=notifications[z],ie=ae.findIndex(({vm:$e})=>{var xe;return((xe=$e.component)==null?void 0:xe.props.id)===$});if(ie===-1)return;const{vm:le}=ae[ie];if(!le)return;oe==null||oe(le);const pe=le.el.offsetHeight,_e=z.split("-")[0];ae.splice(ie,1);const Ce=ae.length;if(!(Ce<1))for(let $e=ie;$e<Ce;$e++){const{el:xe,component:Ie}=ae[$e].vm,Ne=Number.parseInt(xe.style[_e],10)-pe-GAP_SIZE;Ie.props.offset=Ne}}function closeAll(){for(const $ of Object.values(notifications))$.forEach(({vm:z})=>{z.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]),zhCn={};(function($){Object.defineProperty($,"__esModule",{value:!0});var z={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:"取消"}}};$.default=z})(zhCn);const zhLocale=getDefaultExportFromCjs(zhCn);var en={};(function($){Object.defineProperty($,"__esModule",{value:!0});var z={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"}}};$.default=z})(en);const enLocale=getDefaultExportFromCjs(en);var ot=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,$t$1=($,z)=>{for(var oe in z)ot($,oe,{get:z[oe],enumerable:!0})},rt$1=($,z,oe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let ie of Rt(z))!Dt.call($,ie)&&ie!==oe&&ot($,ie,{get:()=>z[ie],enumerable:!(ae=kt(z,ie))||ae.enumerable});return $},G=($,z,oe)=>(rt$1($,z,"default"),oe&&rt$1(oe,z,"default"));function it($){let z=$.split(","),oe=z[0].match(/:(.*?);/)[1],ae=window.atob(z[1]),ie=ae.length,le=new Uint8Array(ie);for(;ie--;)le[ie]=ae.charCodeAt(ie);return new Blob([le],{type:oe})}function at($,z,oe){return new Promise((ae,ie)=>{let le=document.createElement("CANVAS"),pe=le.getContext("2d"),_e=new Image;_e.crossOrigin="",_e.onload=function(){if(!le||!pe)return ie();le.height=_e.height,le.width=_e.width,pe.drawImage(_e,0,0);let Ce=le.toDataURL(z||"image/png",oe);le=null,ae(Ce)},_e.src=$})}var It=Object.prototype.toString;function L$1($,z){return It.call($)===`[object ${z}]`}function N($){return $!==null&&L$1($,"Object")}function k($){return typeof $<"u"}function lt$1($){return!k($)}function ft($){return $===null}function Pt($){return ft($)||lt$1($)}function Ut($){return J$1($)||S($)?$.length===0:$ instanceof Map||$ instanceof Set?$.size===0:N($)?Object.keys($).length===0:!1}function P$1($){return!!(Ut($)||Pt($))}function pt($){return L$1($,"Number")}function S($){return L$1($,"String")}function ut($){return typeof $=="function"}function Ae($){return L$1($,"Boolean")}function J$1($){return $&&Array.isArray($)}var K$1=typeof window>"u",Q=!K$1;function dt($){let z="^((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,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(z,"ig").test($)}function Ue($){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($)}function Be($){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($)}var j$2=($,z)=>!!($!=null&&$.className.match(new RegExp("(\\s|^)"+z+"(\\s|$)"))),qe=($,z,oe)=>{j$2($,z)||($.className+=" "+z),oe&&!j$2($,oe)&&($.className+=" "+oe)},Xe=($,z,oe)=>{if(j$2($,z)){let ae=new RegExp("(\\s|^)"+z+"(\\s|$)");$.className=$.className.replace(ae," ").trim()}if(oe&&j$2($,oe)){let ae=new RegExp("(\\s|^)"+oe+"(\\s|$)");$.className=$.className.replace(ae," ").trim()}},Ve=($,z,oe)=>{let ae=oe||document.body,{className:ie}=ae,le=ie.replace(z,"").trim().split(/\s+/).join(" ");ae.className=$?`${le} ${z}`:le},Bt=Object.prototype.toString;function Nt($,z){return $&&$.hasOwnProperty?$.hasOwnProperty(z):!1}function jt($,z,oe){if($)if($.forEach)$.forEach(z,oe);else for(let ae=0,ie=$.length;ae<ie;ae++)z.call(oe,$[ae],ae,$)}function Ht($,z,oe){if($)for(let ae in $)Nt($,ae)&&z.call(oe,$[ae],ae,$)}function tt($,z){let oe=$.__proto__.constructor;return z?new oe(z):new oe}function H$1($,z){return z?et($,z):$}function et($,z){if($)switch(Bt.call($)){case"[object Object]":{let oe=Object.create($.__proto__);return Ht($,function(ae,ie){oe[ie]=H$1(ae,z)}),oe}case"[object Date]":case"[object RegExp]":return tt($,$.valueOf());case"[object Array]":case"[object Arguments]":{let oe=[];return jt($,function(ae){oe.push(H$1(ae,z))}),oe}case"[object Set]":{let oe=tt($);return oe.forEach(function(ae){oe.add(H$1(ae,z))}),oe}case"[object Map]":{let oe=tt($);return oe.forEach(function(ae){oe.set(H$1(ae,z))}),oe}}return $}function Je($,z){return $&&et($,z)}function Ke($){return $&&et($,!0)}var tn=$=>{let z=($==null?void 0:$.type)??"rgb",oe=($==null?void 0:$.num)??0;if(oe===0)switch(z){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(z){case"rgb":let ae=[];for(let pe=0;pe<oe;pe++)ae.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return ae;case"hex":let ie=[];for(let pe=0;pe<oe;pe++)ie.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return ie;case"hsl":let le=[];for(let pe=0;pe<oe;pe++)le.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return le}},D$1=($=20)=>new Promise(z=>setTimeout(z,$)),Et=($,z=200,oe=!1)=>{let ae,ie=z,le;return function(){ae&&clearTimeout(ae),oe?(ae||$.call(le,...arguments),ae=setTimeout(()=>ae=null,ie)):ae=setTimeout(()=>$.call(le,...arguments),ie)}},Sn=($,z=1e3)=>{let oe;return function(){oe||(oe=setTimeout(()=>{$.call(void 0,...arguments),oe=null},z))}},Ln=()=>{let $=navigator.userAgent.toLowerCase(),z=$.match(/midp/i)=="midp",oe=$.match(/ucweb/i)=="ucweb",ae=$.match(/android/i)=="android",ie=$.match(/iphone os/i)=="iphone os",le=$.match(/windows ce/i)=="windows ce",pe=$.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",_e=$.match(/windows mobile/i)=="windows mobile";return z||oe||ae||ie||le||pe||_e},Tt=($,z="_blank")=>{let oe=document.createElement("a");oe.setAttribute("href",$),oe.setAttribute("target",z),oe.setAttribute("rel","noreferrer noopener"),oe.setAttribute("id","external");let ae=document.getElementById("external");ae&&document.body.removeChild(ae),document.body.appendChild(oe),oe.click(),oe.remove()};function In($,z,oe,ae){at($).then(ie=>{zt(ie,z,oe,ae)})}function zt($,z,oe,ae){let ie=it($);_t(ie,z,oe,ae)}function _t($,z,oe,ae){let ie=typeof ae<"u"?[ae,$]:[$],le=new Blob(ie,{type:oe||"application/octet-stream"}),pe=window.URL.createObjectURL(le),_e=document.createElement("a");_e.style.display="none",_e.href=pe,_e.setAttribute("download",z),typeof _e.download>"u"&&_e.setAttribute("target","_blank"),document.body.appendChild(_e),_e.click(),document.body.removeChild(_e),window.URL.revokeObjectURL(pe)}function Pn($,z,oe="_self"){let ae=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(ae||ie){let le=document.createElement("a");if(le.href=$,le.target=oe,le.download!==void 0&&(le.download=z||$.substring($.lastIndexOf("/")+1,$.length)),document.createEvent){let pe=document.createEvent("MouseEvents");return pe.initEvent("click",!0,!0),le.dispatchEvent(pe),!0}}return $.indexOf("?")===-1&&($+="?download"),Tt($,oe),!0}function Wt($,z){if(!$||!z||$.length!==z.length)return!1;for(let oe of Object.keys($))if(!Mt($[oe],z[oe]))return!1;return!0}function qt($,z){if(!$||!z)return!1;let{length:oe}=$;if(oe!==z.length)return!1;for(let ae=0;ae<oe;ae++)if(!Mt($[ae],z[ae]))return!1;return!0}function Mt($,z){let oe=Object.prototype.toString.call($);return oe!==Object.prototype.toString.call(z)?!1:oe==="[object Object]"?Wt($,z):oe==="[object Array]"?qt($,z):oe==="[object Function]"?$===z?!0:$.toString()===z.toString():$===z}var Hn=($,z)=>{if($.install=oe=>{for(let ae of[$,...Object.values(z??{})])oe.component(ae.name,ae)},z)for(let[oe,ae]of Object.entries(z))$[oe]=ae;return $},U=class{constructor($){ro(this,"storage");this.storage=$}setItem($,z){P$1(this.storage)||this.storage.setItem($,JSON.stringify(z))}getItem($){if(!P$1(this.storage))return JSON.parse(this.storage.getItem($))}removeItem($){P$1(this.storage)||this.storage.removeItem($)}clear(){P$1(this.storage)||this.storage.clear()}},q=class extends U{constructor($){super($)}},Kn=()=>Q?new q(window.localStorage):new q(""),Qn=()=>Q?new U(window.sessionStorage):new U("");function Xt($,z){return S(z)?$.substring(0,$.indexOf(z)):""}function fr($){if(!dt($))return console.error(`${$}不符合超链接规范`),{};let z=$.indexOf("?"),oe=$.slice(z+1).split("&"),ae={};for(let ie=0;ie<oe.length;ie++)ae[oe[ie].split("=")[0]]=oe[ie].split("=")[1];return ae}function br($,z){return $.every(oe=>z.some(ae=>ae===oe))}var yr=(...$)=>[...$].reduce((z,oe)=>z.filter(ae=>oe.includes(ae)));function wr($,z){let oe=[];for(let ae of $)ae[z]&&oe.push(ae[z]);return Array.from(new Set(oe))}var i={};$t$1(i,{Vue:()=>vue_runtime_esmBundler});G(i,vue_runtime_esmBundler);var ee=["class","style"],ne=/^on[A-Z]/;function re($){return Object.keys($).map(z=>[z,$[z]])}function vr($={}){let z=(0,i.getCurrentInstance)();if(!z)return{};let{excludeListeners:oe=!1,excludeKeys:ae=[]}=$,ie=(0,i.shallowRef)({}),le=ae.concat(ee);return z.attrs=(0,i.reactive)(z.attrs),(0,i.watchEffect)(()=>{let pe=re(z.attrs).reduce((_e,[Ce,$e])=>(!le.includes(Ce)&&!(oe&&ne.test(Ce))&&(_e[Ce]=$e),_e),{});ie.value=pe}),ie}function O($){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)($)}var Br=()=>{let $=(0,i.ref)(!1),z,oe=()=>{$.value=document.documentElement.classList.contains("dark")};return O(()=>{z.takeRecords(),z.disconnect()}),(0,i.onBeforeMount)(()=>{oe(),z=new MutationObserver(oe),z.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:$}};function Ct(){let{appContext:{config:{globalProperties:$}}}=(0,i.getCurrentInstance)();return $}var Zr=($,z)=>{let oe=(z==null?void 0:z.theme)??(0,i.ref)("default"),ae=(z==null?void 0:z.tooltipId)??"tooltipElement",ie=Ct().$echarts,le=null,pe=(0,i.ref)({}),_e=(0,i.ref)(),Ce=(0,i.computed)(()=>oe.value!=="dark"?pe.value:{backgroundColor:"transparent",...pe.value});function $e(Tn){let xn=(0,i.unref)($);!xn||!(0,i.unref)(xn)||(le=ie.init(xn,Tn))}function xe(Tn,...xn){var kn;if(pe.value=Tn,_e.value=xn,((kn=(0,i.unref)($))==null?void 0:kn.offsetHeight)===0){D$1().then(()=>xe((0,i.unref)(Ce),...xn));return}(0,i.nextTick)(()=>{D$1().then(()=>{!le&&$e(oe.value),(Tn.clear??!0)&&Ie(),le==null||le.setOption((0,i.unref)(Ce)),xn&&xn.map(An=>{(An==null?void 0:An.type)!=="zrender"&&typeof(An==null?void 0:An.callback)=="function"&&(le==null||le.on(An==null?void 0:An.name,An!=null&&An.query?An==null?void 0:An.query:"",On=>{An==null||An.callback(On)})),(An==null?void 0:An.type)==="zrender"&&typeof(An==null?void 0:An.callback)=="function"&&(le==null||le.getZr().on(An==null?void 0:An.name,On=>{On.target||(An==null||An.callback(On))}))}),Tn!=null&&Tn.addTooltip&&$n(Tn.addTooltip)})})}function Ie(){le&&le.clear()}function Ne(){le.resize()}function Fe(Tn){let xn=(Tn==null?void 0:Tn.type)??"default",kn=(Tn==null?void 0:Tn.opts)??{};le.showLoading(xn,kn)}function ze(){le.hideLoading()}function At(Tn){le.appendData(Tn)}function Lt(){return le.getWidth()}function hn(){return le.getHeight()}function vn(){return le||$e(oe.value),le}function _n(){return le.getDom()}function bn(){return le.getOption()}function Cn(Tn){return le.getDataURL(Tn)}function En(Tn){return le.getConnectedDataURL(Tn)}function $n(Tn){if(!Tn)return;let xn=document.querySelector("html");if(!document.getElementById(ae)){let On=document.createElement("div");On.setAttribute("id",ae),On.style.display="block",xn.appendChild(On)}let kn=document.querySelector(`#${ae}`),An=On=>{if((On==null?void 0:On.targetType)!=="axisLabel")return;let Mn=`
|
||
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;
|
||
`;kn.style.cssText=Mn,kn.innerHTML=On==null?void 0:On.value,xn.onmousemove=Fn=>{let Dn=Fn.pageX-10,Nn=Fn.pageY+15;kn.style.top=Nn+"px",kn.style.left=Dn+"px"}};le==null||le.on("mouseover",On=>{(Tn==="x"&&On.componentType=="xAxis"||Tn==="y"&&On.componentType=="yAxis"||Tn.toString()==="true"&&On.componentType.includes("Axis"))&&An(On)}),le==null||le.on("mouseout",()=>{xn.onmousemove=null,kn.style.cssText="display:none"})}(0,i.watch)(()=>oe.value,Tn=>{le&&(le.dispose(),$e(Tn),xe(pe.value,..._e.value))});function wn(){var Tn;!le||D$1(((Tn=pe.value)==null?void 0:Tn.delay)??300).then(()=>{Ne()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",wn)})}),O(()=>{var Tn;window.removeEventListener("resize",wn),le&&(le.dispose(),le=null,(Tn=document.querySelector(`#${ae}`))==null||Tn.remove())}),{echarts:ie,clear:Ie,resize:Ne,getDom:_n,getWidth:Lt,getOption:bn,getHeight:hn,addTooltip:$n,getDataURL:Cn,setOptions:xe,appendData:At,getInstance:vn,showLoading:Fe,hideLoading:ze,getConnectedDataURL:En}},se=Symbol("watermark-dom"),oo=($=(0,i.ref)(document.body))=>{let z=se.toString(),oe=(0,i.shallowRef)(),ae=()=>{let Ie=(0,i.unref)(oe);oe.value=void 0;let Ne=(0,i.unref)($);!Ne||Ie&&Ne.removeChild(Ie)};function ie(Ie,Ne){let Fe=document.createElement("canvas"),ze=(Ne==null?void 0:Ne.width)??250,At=(Ne==null?void 0:Ne.height)??100;Object.assign(Fe,{width:ze,height:At});let Lt=Fe.getContext("2d");if(Lt){if(Lt.rotate(((Ne==null?void 0:Ne.rotate)??-10*Math.PI)/120),Lt.font=(Ne==null?void 0:Ne.font)??"15px Reggae One",(Ne==null?void 0:Ne.gradient)&&J$1(Ne==null?void 0:Ne.gradient)){let hn=Lt.createLinearGradient(0,0,ze,0);Ne==null||Ne.gradient.forEach(vn=>{hn.addColorStop(vn.value,vn.color)}),Lt.fillStyle=hn}else Lt.fillStyle=(Ne==null?void 0:Ne.fillStyle)??"rgba(0, 0, 0, 0.15)";if(Lt.textAlign="left",Lt.textBaseline="middle",Ne!=null&&Ne.globalAlpha&&(Lt.globalAlpha=Ne.globalAlpha),Ne==null?void 0:Ne.shadowConfig){let{shadowConfig:hn}=Ne;Lt.shadowBlur=hn[0],Lt.shadowColor=(hn==null?void 0:hn[1])??"#000000",Lt.shadowOffsetX=(hn==null?void 0:hn[2])??0,Lt.shadowOffsetY=(hn==null?void 0:hn[3])??0}Lt.fillText(Ie,ze/((Ne==null?void 0:Ne.fillTextWidth)??20),At/((Ne==null?void 0:Ne.fillTextHeight)??2))}return Fe.toDataURL("image/png")}function le(Ie={}){let Ne=(0,i.unref)(oe);!Ne||(k(Ie.width)&&(Ne.style.width=`${Ie.width}px`),k(Ie.height)&&(Ne.style.height=`${Ie.height}px`),k(Ie.str)&&(Ne.style.background=`url(${ie(Ie.str,Ie.attr)}) left top repeat`))}let pe=Et(()=>{let Ie=(0,i.unref)($);if(!Ie)return;let{clientHeight:Ne,clientWidth:Fe}=Ie;le({height:Ne,width:Fe})}),_e=(Ie,Ne)=>{var hn;if((0,i.unref)(oe))return le({str:Ie,attr:Ne}),z;let Fe=document.createElement("div");oe.value=Fe,Fe.id=z,Fe.style.pointerEvents="none",Fe.style.top="0px",Fe.style.left="0px",Fe.style.position="absolute",Fe.style.zIndex=(Ne==null?void 0:Ne.zIndex)??"100000";let ze=(0,i.unref)($);if(!ze)return z;let{clientHeight:At,clientWidth:Lt}=ze;return le({str:Ie,width:Lt,height:At,attr:Ne}),(hn=ze==null?void 0:ze.style)!=null&&hn.position||(ze.style.position="relative"),ze.appendChild(Fe),z};function Ce(Ie,{str:Ne,attr:Fe}){Ie[0].removedNodes[0]&&Ie[0].removedNodes[0].id===z&&(oe.value=void 0,_e(Ne,Fe))}function $e(Ie,Ne){let Fe={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(ze=>Ce(ze,{str:Ie,attr:Ne})).observe((0,i.unref)($),Fe)}function xe(Ie,Ne){_e(Ie,Ne),window.addEventListener("resize",pe),Ne!=null&&Ne.forever&&$e(Ie,Ne),(0,i.getCurrentInstance)()&&ae&&ae()}return O(()=>{window.removeEventListener("resize",pe)}),{clear:ae,setWatermark:xe}};const data$1={width:24,height:24,body:'<path fill="currentColor" d="M16 3h6v6h-2V5h-4V3ZM2 3h6v2H4v4H2V3Zm18 16v-4h2v6h-6v-2h4ZM4 19h4v2H2v-6h2v4Z"/>'},data={width:24,height:24,body:'<path fill="currentColor" d="M18 7h4v2h-6V3h2v4ZM8 9H2V7h4V3h2v6Zm10 8v4h-2v-6h6v2h-4ZM8 15v6H6v-4H2v-2h6Z"/>'},_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($){const z=ref(!1),oe=computed(()=>pe=>{var _e;return((_e=pe==null?void 0:pe.footerButtons)==null?void 0:_e.length)>0?pe.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:Ce,index:$e}})=>{const xe=()=>closeDialog(Ce,$e,{command:"cancel"});Ce!=null&&Ce.beforeCancel&&ut(Ce==null?void 0:Ce.beforeCancel)?Ce.beforeCancel(xe,{options:Ce,index:$e}):xe()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:Ce,index:$e}})=>{const xe=()=>closeDialog(Ce,$e,{command:"sure"});Ce!=null&&Ce.beforeSure&&ut(Ce==null?void 0:Ce.beforeSure)?Ce.beforeSure(xe,{options:Ce,index:$e}):xe()}}]}),ae=computed(()=>["el-icon","el-dialog__close","-translate-x-2","cursor-pointer","hover:!text-[red]"]);function ie(pe,_e,Ce){if(z.value=(_e==null?void 0:_e.fullscreen)??!1,_e!=null&&_e[pe]&&ut(_e==null?void 0:_e[pe]))return _e==null?void 0:_e[pe]({options:_e,index:Ce})}function le(pe,_e,Ce={command:"close"}){closeDialog(pe,_e,Ce),ie("close",pe,_e)}return(pe,_e)=>{const Ce=resolveComponent("IconifyIconOffline"),$e=resolveComponent("el-button"),xe=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),(Ie,Ne)=>(openBlock(),createBlock(xe,mergeProps({class:"pure-dialog",key:Ne},Ie,{modelValue:Ie.visible,"onUpdate:modelValue":Fe=>Ie.visible=Fe,fullscreen:z.value?!0:!!(Ie!=null&&Ie.fullscreen),onClose:Fe=>le(Ie,Ne),onOpened:Fe=>ie("open",Ie,Ne),onOpenAutoFocus:Fe=>ie("openAutoFocus",Ie,Ne),onCloseAutoFocus:Fe=>ie("closeAutoFocus",Ie,Ne)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.contentRenderer({options:Ie,index:Ne})),mergeProps(Ie==null?void 0:Ie.props,{onClose:Fe=>le(Ie,Ne,Fe)}),null,16,["onClose"]))]),_:2},[Ie!=null&&Ie.fullscreenIcon||Ie!=null&&Ie.headerRenderer?{name:"header",fn:withCtx(({close:Fe,titleId:ze,titleClass:At})=>[Ie!=null&&Ie.fullscreenIcon?(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("span",{id:ze,class:normalizeClass(At)},toDisplayString$1(Ie==null?void 0:Ie.title),11,_hoisted_2$1),Ie!=null&&Ie.fullscreen?createCommentVNode("",!0):(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(ae.value),onClick:_e[0]||(_e[0]=Lt=>z.value=!z.value)},[createVNode(Ce,{class:"pure-dialog-svg",icon:Ie!=null&&Ie.fullscreen||z.value?unref(data):unref(data$1)},null,8,["icon"])],2))])):(openBlock(),createBlock(resolveDynamicComponent(Ie==null?void 0:Ie.headerRenderer({close:Fe,titleId:ze,titleClass:At})),{key:1}))]),key:"0"}:void 0,Ie!=null&&Ie.hideFooter?void 0:{name:"footer",fn:withCtx(()=>[Ie!=null&&Ie.footerRenderer?(openBlock(),createBlock(resolveDynamicComponent(Ie==null?void 0:Ie.footerRenderer({options:Ie,index:Ne})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_3$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.value(Ie),(Fe,ze)=>(openBlock(),createBlock($e,mergeProps({key:ze},Fe,{onClick:At=>Fe.btnClick({dialog:{options:Ie,index:Ne},button:{btn:Fe,index:ze}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(Fe==null?void 0:Fe.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","fullscreen","onClose","onOpened","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose$1($){return getCurrentScope()?(onScopeDispose($),!0):!1}function toValue($){return typeof $=="function"?$():unref($)}const isClient$1=typeof window<"u",noop$5=()=>{},isIOS=getIsIOS();function getIsIOS(){var $;return isClient$1&&(($=window==null?void 0:window.navigator)==null?void 0:$.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper($,z){function oe(...ae){return new Promise((ie,le)=>{Promise.resolve($(()=>z.apply(this,ae),{fn:z,thisArg:this,args:ae})).then(ie).catch(le)})}return oe}function debounceFilter($,z={}){let oe,ae,ie=noop$5;const le=_e=>{clearTimeout(_e),ie(),ie=noop$5};return _e=>{const Ce=toValue($),$e=toValue(z.maxWait);return oe&&le(oe),Ce<=0||$e!==void 0&&$e<=0?(ae&&(le(ae),ae=null),Promise.resolve(_e())):new Promise((xe,Ie)=>{ie=z.rejectOnCancel?Ie:xe,$e&&!ae&&(ae=setTimeout(()=>{oe&&le(oe),ae=null,xe(_e())},$e)),oe=setTimeout(()=>{ae&&le(ae),ae=null,xe(_e())},Ce)})}}function toRef(...$){if($.length!==1)return toRef$1(...$);const z=$[0];return typeof z=="function"?readonly(customRef(()=>({get:z,set:noop$5}))):ref(z)}function useDebounceFn($,z=200,oe={}){return createFilterWrapper(debounceFilter(z,oe),$)}function tryOnMounted($,z=!0){getCurrentInstance()?onMounted($):z?$():nextTick($)}function tryOnUnmounted$1($){getCurrentInstance()&&onUnmounted($)}function useIntervalFn($,z=1e3,oe={}){const{immediate:ae=!0,immediateCallback:ie=!1}=oe;let le=null;const pe=ref(!1);function _e(){le&&(clearInterval(le),le=null)}function Ce(){pe.value=!1,_e()}function $e(){const xe=toValue(z);xe<=0||(pe.value=!0,ie&&$(),_e(),le=setInterval($,xe))}if(ae&&isClient$1&&$e(),isRef(z)||typeof z=="function"){const xe=watch(z,()=>{pe.value&&isClient$1&&$e()});tryOnScopeDispose$1(xe)}return tryOnScopeDispose$1(Ce),{isActive:pe,pause:Ce,resume:$e}}function useTimeoutFn($,z,oe={}){const{immediate:ae=!0}=oe,ie=ref(!1);let le=null;function pe(){le&&(clearTimeout(le),le=null)}function _e(){ie.value=!1,pe()}function Ce(...$e){pe(),ie.value=!0,le=setTimeout(()=>{ie.value=!1,le=null,$(...$e)},toValue(z))}return ae&&(ie.value=!0,isClient$1&&Ce()),tryOnScopeDispose$1(_e),{isPending:readonly(ie),start:Ce,stop:_e}}const dialogStore=ref([]),addDialog=$=>{const z=()=>dialogStore.value.push(Object.assign($,{visible:!0}));$!=null&&$.openDelay?useTimeoutFn(()=>{z()},$.openDelay):z()},closeDialog=($,z,oe)=>{dialogStore.value.splice(z,1),$.closeCallBack&&$.closeCallBack({options:$,index:z,args:oe})},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Hn(_sfc_main$1),_sfc_main=defineComponent({name:"app",components:{[ElConfigProvider.name]:ElConfigProvider,ReDialog},computed:{currentLocale(){var $;return(($=this.$storage.locale)==null?void 0:$.locale)==="zh"?zhLocale:enLocale}}}),_export_sfc=($,z)=>{const oe=$.__vccOpts||$;for(const[ae,ie]of z)oe[ae]=ie;return oe};function _sfc_render($,z,oe,ae,ie,le){const pe=resolveComponent("router-view"),_e=resolveComponent("ReDialog"),Ce=resolveComponent("el-config-provider");return openBlock(),createBlock(Ce,{locale:$.currentLocale},{default:withCtx(()=>[createVNode(pe),createVNode(_e)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function($){return"/vue-pure-admin/"+$},seen={},__vitePreload=function(z,oe,ae){if(!oe||oe.length===0)return z();const ie=document.getElementsByTagName("link");return Promise.all(oe.map(le=>{if(le=assetsURL(le),le in seen)return;seen[le]=!0;const pe=le.endsWith(".css"),_e=pe?'[rel="stylesheet"]':"";if(!!ae)for(let xe=ie.length-1;xe>=0;xe--){const Ie=ie[xe];if(Ie.href===le&&(!pe||Ie.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${le}"]${_e}`))return;const $e=document.createElement("link");if($e.rel=pe?"stylesheet":scriptRel,pe||($e.as="script",$e.crossOrigin=""),$e.href=le,document.head.appendChild($e),pe)return new Promise((xe,Ie)=>{$e.addEventListener("load",xe),$e.addEventListener("error",()=>Ie(new Error(`Unable to preload CSS for ${le}`)))})})).then(()=>z())},resource$1={buttons:{hsLoginOut:$=>{const{normalize:z}=$;return z(["LoginOut"])},hsfullscreen:$=>{const{normalize:z}=$;return z(["FullScreen"])},hsexitfullscreen:$=>{const{normalize:z}=$;return z(["ExitFullscreen"])},hsrefreshRoute:$=>{const{normalize:z}=$;return z(["RefreshRoute"])},hslogin:$=>{const{normalize:z}=$;return z(["Login"])},hsadd:$=>{const{normalize:z}=$;return z(["Add"])},hsmark:$=>{const{normalize:z}=$;return z(["Mark/Cancel"])},hssave:$=>{const{normalize:z}=$;return z(["Save"])},hssearch:$=>{const{normalize:z}=$;return z(["Search"])},hsexpendAll:$=>{const{normalize:z}=$;return z(["Expand All"])},hscollapseAll:$=>{const{normalize:z}=$;return z(["Collapse All"])},hssystemSet:$=>{const{normalize:z}=$;return z(["Open ProjectConfig"])},hsdelete:$=>{const{normalize:z}=$;return z(["Delete"])},hsreload:$=>{const{normalize:z}=$;return z(["Reload"])},hscloseCurrentTab:$=>{const{normalize:z}=$;return z(["Close CurrentTab"])},hscloseLeftTabs:$=>{const{normalize:z}=$;return z(["Close LeftTabs"])},hscloseRightTabs:$=>{const{normalize:z}=$;return z(["Close RightTabs"])},hscloseOtherTabs:$=>{const{normalize:z}=$;return z(["Close OtherTabs"])},hscloseAllTabs:$=>{const{normalize:z}=$;return z(["Close AllTabs"])},hswholeFullScreen:$=>{const{normalize:z}=$;return z(["FullScreen"])},hswholeExitFullScreen:$=>{const{normalize:z}=$;return z(["ExitFull"])},hscontentFullScreen:$=>{const{normalize:z}=$;return z(["Content FullScreen"])},hscontentExitFullScreen:$=>{const{normalize:z}=$;return z(["Content ExitFullScreen"])}},menus:{hshome:$=>{const{normalize:z}=$;return z(["Home"])},hslogin:$=>{const{normalize:z}=$;return z(["Login"])},hsempty:$=>{const{normalize:z}=$;return z(["Empty Page"])},hssysManagement:$=>{const{normalize:z}=$;return z(["System Manage"])},hsUser:$=>{const{normalize:z}=$;return z(["User Manage"])},hsRole:$=>{const{normalize:z}=$;return z(["Role Manage"])},hsDept:$=>{const{normalize:z}=$;return z(["Dept Manage"])},hseditor:$=>{const{normalize:z}=$;return z(["Editor"])},hsabnormal:$=>{const{normalize:z}=$;return z(["Abnormal Page"])},hsfourZeroFour:$=>{const{normalize:z}=$;return z(["404"])},hsfourZeroOne:$=>{const{normalize:z}=$;return z(["403"])},hsFive:$=>{const{normalize:z}=$;return z(["500"])},hscomponents:$=>{const{normalize:z}=$;return z(["Components"])},hsdialog:$=>{const{normalize:z}=$;return z(["Dialog Components"])},hsmessage:$=>{const{normalize:z}=$;return z(["Message Tips Components"])},hsvideo:$=>{const{normalize:z}=$;return z(["Video Components"])},hssegmented:$=>{const{normalize:z}=$;return z(["Segmented Components"])},hswaterfall:$=>{const{normalize:z}=$;return z(["Waterfall Components"])},hsmap:$=>{const{normalize:z}=$;return z(["Map Components"])},hsdraggable:$=>{const{normalize:z}=$;return z(["Draggable Components"])},hssplitPane:$=>{const{normalize:z}=$;return z(["Split Pane"])},hsbutton:$=>{const{normalize:z}=$;return z(["Button Components"])},hscropping:$=>{const{normalize:z}=$;return z(["Picture Cropping"])},hscountTo:$=>{const{normalize:z}=$;return z(["Digital Animation"])},hsselector:$=>{const{normalize:z}=$;return z(["Selector Components"])},hsflowChart:$=>{const{normalize:z}=$;return z(["Flow Chart"])},hsseamless:$=>{const{normalize:z}=$;return z(["Seamless Scroll"])},hscontextmenu:$=>{const{normalize:z}=$;return z(["Context Menu"])},hstypeit:$=>{const{normalize:z}=$;return z(["Typeit Components"])},hsjsoneditor:$=>{const{normalize:z}=$;return z(["JSON Editor"])},hsmenus:$=>{const{normalize:z}=$;return z(["MultiLevel Menu"])},hsmenu1:$=>{const{normalize:z}=$;return z(["Menu1"])},"hsmenu1-1":$=>{const{normalize:z}=$;return z(["Menu1-1"])},"hsmenu1-2":$=>{const{normalize:z}=$;return z(["Menu1-2"])},"hsmenu1-2-1":$=>{const{normalize:z}=$;return z(["Menu1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:z}=$;return z(["Menu1-2-2"])},"hsmenu1-3":$=>{const{normalize:z}=$;return z(["Menu1-3"])},hsmenu2:$=>{const{normalize:z}=$;return z(["Menu2"])},permission:$=>{const{normalize:z}=$;return z(["Permission Manage"])},permissionPage:$=>{const{normalize:z}=$;return z(["Page Permission"])},permissionButton:$=>{const{normalize:z}=$;return z(["Button Permission"])},hstabs:$=>{const{normalize:z}=$;return z(["Tabs Operate"])},hsguide:$=>{const{normalize:z}=$;return z(["Guide"])},hsAble:$=>{const{normalize:z}=$;return z(["Able"])},hsMenuTree:$=>{const{normalize:z}=$;return z(["Menu Tree"])},hsWatermark:$=>{const{normalize:z}=$;return z(["Water Mark"])},hsPrint:$=>{const{normalize:z}=$;return z(["Print"])},hsDownload:$=>{const{normalize:z}=$;return z(["Download"])},hsExternalPage:$=>{const{normalize:z}=$;return z(["External Page"])},hsPureDocument:$=>{const{normalize:z}=$;return z(["Pure Doc(Embedded)"])},externalLink:$=>{const{normalize:z}=$;return z(["Pure Doc(External)"])},hsEpDocument:$=>{const{normalize:z}=$;return z(["Element Plus Doc(Embedded)"])},hsVueDocument:$=>{const{normalize:z}=$;return z(["Vue3 Doc(Embedded)"])},hsViteDocument:$=>{const{normalize:z}=$;return z(["Vite Doc(Embedded)"])},hsPiniaDocument:$=>{const{normalize:z}=$;return z(["Pinia Doc(Embedded)"])},hsRouterDocument:$=>{const{normalize:z}=$;return z(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:$=>{const{normalize:z}=$;return z(["Tailwindcss Doc(Embedded)"])},hsAbout:$=>{const{normalize:z}=$;return z(["About"])},hsResult:$=>{const{normalize:z}=$;return z(["Result Page"])},hsSuccess:$=>{const{normalize:z}=$;return z(["Success Page"])},hsFail:$=>{const{normalize:z}=$;return z(["Fail Page"])},hsIconSelect:$=>{const{normalize:z}=$;return z(["Icon Select"])},hsTimeline:$=>{const{normalize:z}=$;return z(["Time Line"])},hsLineTree:$=>{const{normalize:z}=$;return z(["LineTree"])},hsList:$=>{const{normalize:z}=$;return z(["List Page"])},hsListCard:$=>{const{normalize:z}=$;return z(["Card List Page"])},hsDebounce:$=>{const{normalize:z}=$;return z(["Debounce & Throttle"])},hsFormDesign:$=>{const{normalize:z}=$;return z(["Form Design"])},hsBarcode:$=>{const{normalize:z}=$;return z(["Barcode"])},hsQrcode:$=>{const{normalize:z}=$;return z(["Qrcode"])},hsCascader:$=>{const{normalize:z}=$;return z(["Area Cascader"])},hsSwiper:$=>{const{normalize:z}=$;return z(["Swiper Plugin"])},hsVirtualList:$=>{const{normalize:z}=$;return z(["Virtual List"])},hsPdf:$=>{const{normalize:z}=$;return z(["PDF Preview"])},hsExecl:$=>{const{normalize:z}=$;return z(["Export Excel"])},hsInfiniteScroll:$=>{const{normalize:z}=$;return z(["Table Infinite Scroll"])},hsdanmaku:$=>{const{normalize:z}=$;return z(["Danmaku Components"])},hsPureTableBase:$=>{const{normalize:z}=$;return z(["Base Usage"])},hsPureTableHigh:$=>{const{normalize:z}=$;return z(["High Usage"])},hsTree:$=>{const{normalize:z}=$;return z(["Big Data Tree"])},hsMenuoverflow:$=>{const{normalize:z}=$;return z(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:$=>{const{normalize:z}=$;return z(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:$=>{const{normalize:z}=$;return z(["Loading..."])}},login:{username:$=>{const{normalize:z}=$;return z(["Username"])},password:$=>{const{normalize:z}=$;return z(["Password"])},verifyCode:$=>{const{normalize:z}=$;return z(["VerifyCode"])},remember:$=>{const{normalize:z}=$;return z(["Remember Password"])},sure:$=>{const{normalize:z}=$;return z(["Sure Password"])},forget:$=>{const{normalize:z}=$;return z(["Forget Password?"])},login:$=>{const{normalize:z}=$;return z(["Login"])},thirdLogin:$=>{const{normalize:z}=$;return z(["Third Login"])},phoneLogin:$=>{const{normalize:z}=$;return z(["Phone Login"])},qRCodeLogin:$=>{const{normalize:z}=$;return z(["QRCode Login"])},register:$=>{const{normalize:z}=$;return z(["Register"])},weChatLogin:$=>{const{normalize:z}=$;return z(["WeChat Login"])},alipayLogin:$=>{const{normalize:z}=$;return z(["Alipay Login"])},qqLogin:$=>{const{normalize:z}=$;return z(["QQ Login"])},weiboLogin:$=>{const{normalize:z}=$;return z(["Weibo Login"])},phone:$=>{const{normalize:z}=$;return z(["Phone"])},smsVerifyCode:$=>{const{normalize:z}=$;return z(["SMS VerifyCode"])},back:$=>{const{normalize:z}=$;return z(["Back"])},test:$=>{const{normalize:z}=$;return z(["Mock Test"])},tip:$=>{const{normalize:z}=$;return z(['After scanning the code, click "Confirm" to complete the login'])},definite:$=>{const{normalize:z}=$;return z(["Definite"])},loginSuccess:$=>{const{normalize:z}=$;return z(["Login Success"])},registerSuccess:$=>{const{normalize:z}=$;return z(["Regist Success"])},tickPrivacy:$=>{const{normalize:z}=$;return z(["Please tick Privacy Policy"])},readAccept:$=>{const{normalize:z}=$;return z(["I have read it carefully and accept"])},privacyPolicy:$=>{const{normalize:z}=$;return z(["Privacy Policy"])},getVerifyCode:$=>{const{normalize:z}=$;return z(["Get VerifyCode"])},info:$=>{const{normalize:z}=$;return z(["Seconds"])},usernameReg:$=>{const{normalize:z}=$;return z(["Please enter username"])},passwordReg:$=>{const{normalize:z}=$;return z(["Please enter password"])},verifyCodeReg:$=>{const{normalize:z}=$;return z(["Please enter verify code"])},verifyCodeCorrectReg:$=>{const{normalize:z}=$;return z(["Please enter correct verify code"])},verifyCodeSixReg:$=>{const{normalize:z}=$;return z(["Please enter a 6-digit verify code"])},phoneReg:$=>{const{normalize:z}=$;return z(["Please enter the phone"])},phoneCorrectReg:$=>{const{normalize:z}=$;return z(["Please enter the correct phone number format"])},passwordRuleReg:$=>{const{normalize:z}=$;return z(["The password format should be any combination of 8-18 digits"])},passwordSureReg:$=>{const{normalize:z}=$;return z(["Please enter confirm password"])},passwordDifferentReg:$=>{const{normalize:z}=$;return z(["The two passwords do not match!"])},passwordUpdateReg:$=>{const{normalize:z}=$;return z(["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:$=>{const{normalize:z}=$;return z(["退出系统"])},hsfullscreen:$=>{const{normalize:z}=$;return z(["全屏"])},hsexitfullscreen:$=>{const{normalize:z}=$;return z(["退出全屏"])},hsrefreshRoute:$=>{const{normalize:z}=$;return z(["刷新路由"])},hslogin:$=>{const{normalize:z}=$;return z(["登录"])},hsadd:$=>{const{normalize:z}=$;return z(["新增"])},hsmark:$=>{const{normalize:z}=$;return z(["标记/取消"])},hssave:$=>{const{normalize:z}=$;return z(["保存"])},hssearch:$=>{const{normalize:z}=$;return z(["搜索"])},hsexpendAll:$=>{const{normalize:z}=$;return z(["全部展开"])},hscollapseAll:$=>{const{normalize:z}=$;return z(["全部折叠"])},hssystemSet:$=>{const{normalize:z}=$;return z(["打开项目配置"])},hsdelete:$=>{const{normalize:z}=$;return z(["删除"])},hsreload:$=>{const{normalize:z}=$;return z(["重新加载"])},hscloseCurrentTab:$=>{const{normalize:z}=$;return z(["关闭当前标签页"])},hscloseLeftTabs:$=>{const{normalize:z}=$;return z(["关闭左侧标签页"])},hscloseRightTabs:$=>{const{normalize:z}=$;return z(["关闭右侧标签页"])},hscloseOtherTabs:$=>{const{normalize:z}=$;return z(["关闭其他标签页"])},hscloseAllTabs:$=>{const{normalize:z}=$;return z(["关闭全部标签页"])},hswholeFullScreen:$=>{const{normalize:z}=$;return z(["全屏"])},hswholeExitFullScreen:$=>{const{normalize:z}=$;return z(["退出全屏"])},hscontentFullScreen:$=>{const{normalize:z}=$;return z(["内容区全屏"])},hscontentExitFullScreen:$=>{const{normalize:z}=$;return z(["内容区退出全屏"])}},menus:{hshome:$=>{const{normalize:z}=$;return z(["首页"])},hslogin:$=>{const{normalize:z}=$;return z(["登录"])},hsempty:$=>{const{normalize:z}=$;return z(["无Layout页"])},hssysManagement:$=>{const{normalize:z}=$;return z(["系统管理"])},hsUser:$=>{const{normalize:z}=$;return z(["用户管理"])},hsRole:$=>{const{normalize:z}=$;return z(["角色管理"])},hsDept:$=>{const{normalize:z}=$;return z(["部门管理"])},hseditor:$=>{const{normalize:z}=$;return z(["编辑器"])},hsabnormal:$=>{const{normalize:z}=$;return z(["异常页面"])},hsfourZeroFour:$=>{const{normalize:z}=$;return z(["404"])},hsfourZeroOne:$=>{const{normalize:z}=$;return z(["403"])},hsFive:$=>{const{normalize:z}=$;return z(["500"])},hscomponents:$=>{const{normalize:z}=$;return z(["组件"])},hsdialog:$=>{const{normalize:z}=$;return z(["函数式弹框组件"])},hsmessage:$=>{const{normalize:z}=$;return z(["消息提示组件"])},hsvideo:$=>{const{normalize:z}=$;return z(["视频组件"])},hssegmented:$=>{const{normalize:z}=$;return z(["分段控制器组件"])},hswaterfall:$=>{const{normalize:z}=$;return z(["瀑布流组件"])},hsmap:$=>{const{normalize:z}=$;return z(["地图组件"])},hsdraggable:$=>{const{normalize:z}=$;return z(["拖拽组件"])},hssplitPane:$=>{const{normalize:z}=$;return z(["切割面板"])},hsbutton:$=>{const{normalize:z}=$;return z(["按钮组件"])},hscropping:$=>{const{normalize:z}=$;return z(["图片裁剪"])},hscountTo:$=>{const{normalize:z}=$;return z(["数字动画"])},hsselector:$=>{const{normalize:z}=$;return z(["选择器组件"])},hsflowChart:$=>{const{normalize:z}=$;return z(["流程图"])},hsseamless:$=>{const{normalize:z}=$;return z(["无缝滚动"])},hscontextmenu:$=>{const{normalize:z}=$;return z(["右键菜单"])},hstypeit:$=>{const{normalize:z}=$;return z(["打字机组件"])},hsjsoneditor:$=>{const{normalize:z}=$;return z(["JSON编辑器"])},hsmenus:$=>{const{normalize:z}=$;return z(["多级菜单"])},hsmenu1:$=>{const{normalize:z}=$;return z(["菜单1"])},"hsmenu1-1":$=>{const{normalize:z}=$;return z(["菜单1-1"])},"hsmenu1-2":$=>{const{normalize:z}=$;return z(["菜单1-2"])},"hsmenu1-2-1":$=>{const{normalize:z}=$;return z(["菜单1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:z}=$;return z(["菜单1-2-2"])},"hsmenu1-3":$=>{const{normalize:z}=$;return z(["菜单1-3"])},hsmenu2:$=>{const{normalize:z}=$;return z(["菜单2"])},permission:$=>{const{normalize:z}=$;return z(["权限管理"])},permissionPage:$=>{const{normalize:z}=$;return z(["页面权限"])},permissionButton:$=>{const{normalize:z}=$;return z(["按钮权限"])},hstabs:$=>{const{normalize:z}=$;return z(["标签页操作"])},hsguide:$=>{const{normalize:z}=$;return z(["引导页"])},hsAble:$=>{const{normalize:z}=$;return z(["功能"])},hsMenuTree:$=>{const{normalize:z}=$;return z(["菜单树结构"])},hsWatermark:$=>{const{normalize:z}=$;return z(["水印"])},hsPrint:$=>{const{normalize:z}=$;return z(["打印"])},hsDownload:$=>{const{normalize:z}=$;return z(["下载"])},hsExternalPage:$=>{const{normalize:z}=$;return z(["外部页面"])},hsPureDocument:$=>{const{normalize:z}=$;return z(["平台文档(内嵌)"])},externalLink:$=>{const{normalize:z}=$;return z(["平台文档(外链)"])},hsEpDocument:$=>{const{normalize:z}=$;return z(["Element Plus 文档(内嵌)"])},hsVueDocument:$=>{const{normalize:z}=$;return z(["Vue3 文档(内嵌)"])},hsViteDocument:$=>{const{normalize:z}=$;return z(["Vite 文档(内嵌)"])},hsPiniaDocument:$=>{const{normalize:z}=$;return z(["Pinia 文档(内嵌)"])},hsRouterDocument:$=>{const{normalize:z}=$;return z(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:$=>{const{normalize:z}=$;return z(["Tailwindcss 文档(内嵌)"])},hsAbout:$=>{const{normalize:z}=$;return z(["关于"])},hsResult:$=>{const{normalize:z}=$;return z(["结果页面"])},hsSuccess:$=>{const{normalize:z}=$;return z(["成功页面"])},hsFail:$=>{const{normalize:z}=$;return z(["失败页面"])},hsIconSelect:$=>{const{normalize:z}=$;return z(["图标选择器"])},hsTimeline:$=>{const{normalize:z}=$;return z(["时间线"])},hsLineTree:$=>{const{normalize:z}=$;return z(["树形连接线"])},hsList:$=>{const{normalize:z}=$;return z(["列表页"])},hsListCard:$=>{const{normalize:z}=$;return z(["卡片列表页"])},hsDebounce:$=>{const{normalize:z}=$;return z(["防抖节流"])},hsFormDesign:$=>{const{normalize:z}=$;return z(["表单设计器"])},hsBarcode:$=>{const{normalize:z}=$;return z(["条形码"])},hsQrcode:$=>{const{normalize:z}=$;return z(["二维码"])},hsCascader:$=>{const{normalize:z}=$;return z(["区域级联选择器"])},hsSwiper:$=>{const{normalize:z}=$;return z(["Swiper插件"])},hsVirtualList:$=>{const{normalize:z}=$;return z(["虚拟列表"])},hsPdf:$=>{const{normalize:z}=$;return z(["PDF预览"])},hsExecl:$=>{const{normalize:z}=$;return z(["导出Excel"])},hsInfiniteScroll:$=>{const{normalize:z}=$;return z(["表格无限滚动"])},hsdanmaku:$=>{const{normalize:z}=$;return z(["弹幕组件"])},hsPureTableBase:$=>{const{normalize:z}=$;return z(["基础用法(23个示例)"])},hsPureTableHigh:$=>{const{normalize:z}=$;return z(["高级用法(10个示例)"])},hsTree:$=>{const{normalize:z}=$;return z(["大数据树业务组件"])},hsMenuoverflow:$=>{const{normalize:z}=$;return z(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:$=>{const{normalize:z}=$;return z(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:$=>{const{normalize:z}=$;return z(["加载中..."])}},login:{username:$=>{const{normalize:z}=$;return z(["账号"])},password:$=>{const{normalize:z}=$;return z(["密码"])},verifyCode:$=>{const{normalize:z}=$;return z(["验证码"])},remember:$=>{const{normalize:z}=$;return z(["记住密码"])},sure:$=>{const{normalize:z}=$;return z(["确认密码"])},forget:$=>{const{normalize:z}=$;return z(["忘记密码?"])},login:$=>{const{normalize:z}=$;return z(["登录"])},thirdLogin:$=>{const{normalize:z}=$;return z(["第三方登录"])},phoneLogin:$=>{const{normalize:z}=$;return z(["手机登录"])},qRCodeLogin:$=>{const{normalize:z}=$;return z(["二维码登录"])},register:$=>{const{normalize:z}=$;return z(["注册"])},weChatLogin:$=>{const{normalize:z}=$;return z(["微信登录"])},alipayLogin:$=>{const{normalize:z}=$;return z(["支付宝登录"])},qqLogin:$=>{const{normalize:z}=$;return z(["QQ登录"])},weiboLogin:$=>{const{normalize:z}=$;return z(["微博登录"])},phone:$=>{const{normalize:z}=$;return z(["手机号码"])},smsVerifyCode:$=>{const{normalize:z}=$;return z(["短信验证码"])},back:$=>{const{normalize:z}=$;return z(["返回"])},test:$=>{const{normalize:z}=$;return z(["模拟测试"])},tip:$=>{const{normalize:z}=$;return z(['扫码后点击"确认",即可完成登录'])},definite:$=>{const{normalize:z}=$;return z(["确定"])},loginSuccess:$=>{const{normalize:z}=$;return z(["登录成功"])},registerSuccess:$=>{const{normalize:z}=$;return z(["注册成功"])},tickPrivacy:$=>{const{normalize:z}=$;return z(["请勾选隐私政策"])},readAccept:$=>{const{normalize:z}=$;return z(["我已仔细阅读并接受"])},privacyPolicy:$=>{const{normalize:z}=$;return z(["《隐私政策》"])},getVerifyCode:$=>{const{normalize:z}=$;return z(["获取验证码"])},info:$=>{const{normalize:z}=$;return z(["秒后重新获取"])},usernameReg:$=>{const{normalize:z}=$;return z(["请输入账号"])},passwordReg:$=>{const{normalize:z}=$;return z(["请输入密码"])},verifyCodeReg:$=>{const{normalize:z}=$;return z(["请输入验证码"])},verifyCodeCorrectReg:$=>{const{normalize:z}=$;return z(["请输入正确的验证码"])},verifyCodeSixReg:$=>{const{normalize:z}=$;return z(["请输入6位数字验证码"])},phoneReg:$=>{const{normalize:z}=$;return z(["请输入手机号码"])},phoneCorrectReg:$=>{const{normalize:z}=$;return z(["请输入正确的手机号码格式"])},passwordRuleReg:$=>{const{normalize:z}=$;return z(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:$=>{const{normalize:z}=$;return z(["请输入确认密码"])},passwordDifferentReg:$=>{const{normalize:z}=$;return z(["两次密码不一致!"])},passwordUpdateReg:$=>{const{normalize:z}=$;return z(["修改密码成功"])}}},__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=$=>hasSymbol?Symbol($):$,generateFormatCacheKey=($,z,oe)=>friendlyJSONstringify({l:$,k:z,s:oe}),friendlyJSONstringify=$=>JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$4=$=>typeof $=="number"&&isFinite($),isDate$2=$=>toTypeString($)==="[object Date]",isRegExp$4=$=>toTypeString($)==="[object RegExp]",isEmptyObject=$=>isPlainObject$2($)&&Object.keys($).length===0;function warn$1($,z){typeof console<"u"&&(console.warn("[intlify] "+$),z&&console.warn(z.stack))}const assign$4=Object.assign;function escapeHtml($){return $.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn$3($,z){return hasOwnProperty$1.call($,z)}const isArray$9=Array.isArray,isFunction$2=$=>typeof $=="function",isString$5=$=>typeof $=="string",isBoolean$2=$=>typeof $=="boolean",isObject$6=$=>$!==null&&typeof $=="object",objectToString$1=Object.prototype.toString,toTypeString=$=>objectToString$1.call($),isPlainObject$2=$=>toTypeString($)==="[object Object]",toDisplayString=$=>$==null?"":isArray$9($)||isPlainObject$2($)&&$.toString===objectToString$1?JSON.stringify($,null,2):String($);/*!
|
||
* 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($,z,oe={}){const{domain:ae,messages:ie,args:le}=oe,pe=$,_e=new SyntaxError(String(pe));return _e.code=$,z&&(_e.location=z),_e.domain=ae,_e}/*!
|
||
* 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($){return literalValueRE.test($)}function stripQuotes($){const z=$.charCodeAt(0),oe=$.charCodeAt($.length-1);return z===oe&&(z===34||z===39)?$.slice(1,-1):$}function getPathCharType($){if($==null)return"o";switch($.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return $;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($){const z=$.trim();return $.charAt(0)==="0"&&isNaN(parseInt($))?!1:isLiteral(z)?stripQuotes(z):"*"+z}function parse$5($){const z=[];let oe=-1,ae=0,ie=0,le,pe,_e,Ce,$e,xe,Ie;const Ne=[];Ne[0]=()=>{pe===void 0?pe=_e:pe+=_e},Ne[1]=()=>{pe!==void 0&&(z.push(pe),pe=void 0)},Ne[2]=()=>{Ne[0](),ie++},Ne[3]=()=>{if(ie>0)ie--,ae=4,Ne[0]();else{if(ie=0,pe===void 0||(pe=formatSubPath(pe),pe===!1))return!1;Ne[1]()}};function Fe(){const ze=$[oe+1];if(ae===5&&ze==="'"||ae===6&&ze==='"')return oe++,_e="\\"+ze,Ne[0](),!0}for(;ae!==null;)if(oe++,le=$[oe],!(le==="\\"&&Fe())){if(Ce=getPathCharType(le),Ie=pathStateMachine[ae],$e=Ie[Ce]||Ie.l||8,$e===8||(ae=$e[0],$e[1]!==void 0&&(xe=Ne[$e[1]],xe&&(_e=le,xe()===!1))))return;if(ae===7)return z}}const cache=new Map;function resolveWithKeyValue($,z){return isObject$6($)?$[z]:null}function resolveValue($,z){if(!isObject$6($))return null;let oe=cache.get(z);if(oe||(oe=parse$5(z),oe&&cache.set(z,oe)),!oe)return null;const ae=oe.length;let ie=$,le=0;for(;le<ae;){const pe=ie[oe[le]];if(pe===void 0)return null;ie=pe,le++}return ie}const DEFAULT_MODIFIER=$=>$,DEFAULT_MESSAGE=$=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=$=>$.length===0?"":$.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault($,z){return $=Math.abs($),z===2?$?$>1?1:0:1:$?Math.min($,2):0}function getPluralIndex($){const z=isNumber$4($.pluralIndex)?$.pluralIndex:-1;return $.named&&(isNumber$4($.named.count)||isNumber$4($.named.n))?isNumber$4($.named.count)?$.named.count:isNumber$4($.named.n)?$.named.n:z:z}function normalizeNamed($,z){z.count||(z.count=$),z.n||(z.n=$)}function createMessageContext($={}){const z=$.locale,oe=getPluralIndex($),ae=isObject$6($.pluralRules)&&isString$5(z)&&isFunction$2($.pluralRules[z])?$.pluralRules[z]:pluralDefault,ie=isObject$6($.pluralRules)&&isString$5(z)&&isFunction$2($.pluralRules[z])?pluralDefault:void 0,le=hn=>hn[ae(oe,hn.length,ie)],pe=$.list||[],_e=hn=>pe[hn],Ce=$.named||{};isNumber$4($.pluralIndex)&&normalizeNamed(oe,Ce);const $e=hn=>Ce[hn];function xe(hn){const vn=isFunction$2($.messages)?$.messages(hn):isObject$6($.messages)?$.messages[hn]:!1;return vn||($.parent?$.parent.message(hn):DEFAULT_MESSAGE)}const Ie=hn=>$.modifiers?$.modifiers[hn]:DEFAULT_MODIFIER,Ne=isPlainObject$2($.processor)&&isFunction$2($.processor.normalize)?$.processor.normalize:DEFAULT_NORMALIZE,Fe=isPlainObject$2($.processor)&&isFunction$2($.processor.interpolate)?$.processor.interpolate:DEFAULT_INTERPOLATE,ze=isPlainObject$2($.processor)&&isString$5($.processor.type)?$.processor.type:DEFAULT_MESSAGE_DATA_TYPE,Lt={list:_e,named:$e,plural:le,linked:(hn,...vn)=>{const[_n,bn]=vn;let Cn="text",En="";vn.length===1?isObject$6(_n)?(En=_n.modifier||En,Cn=_n.type||Cn):isString$5(_n)&&(En=_n||En):vn.length===2&&(isString$5(_n)&&(En=_n||En),isString$5(bn)&&(Cn=bn||Cn));let $n=xe(hn)(Lt);return Cn==="vnode"&&isArray$9($n)&&En&&($n=$n[0]),En?Ie(En)($n,Cn):$n},message:xe,type:ze,interpolate:Fe,normalize:Ne};return Lt}function fallbackWithSimple($,z,oe){return[...new Set([oe,...isArray$9(z)?z:isObject$6(z)?Object.keys(z):isString$5(z)?[z]:[oe]])]}function fallbackWithLocaleChain($,z,oe){const ae=isString$5(oe)?oe:DEFAULT_LOCALE$1,ie=$;ie.__localeChainCache||(ie.__localeChainCache=new Map);let le=ie.__localeChainCache.get(ae);if(!le){le=[];let pe=[oe];for(;isArray$9(pe);)pe=appendBlockToChain(le,pe,z);const _e=isArray$9(z)||!isPlainObject$2(z)?z:z.default?z.default:null;pe=isString$5(_e)?[_e]:_e,isArray$9(pe)&&appendBlockToChain(le,pe,!1),ie.__localeChainCache.set(ae,le)}return le}function appendBlockToChain($,z,oe){let ae=!0;for(let ie=0;ie<z.length&&isBoolean$2(ae);ie++){const le=z[ie];isString$5(le)&&(ae=appendLocaleToChain($,z[ie],oe))}return ae}function appendLocaleToChain($,z,oe){let ae;const ie=z.split("-");do{const le=ie.join("-");ae=appendItemToChain($,le,oe),ie.splice(-1,1)}while(ie.length&&ae===!0);return ae}function appendItemToChain($,z,oe){let ae=!1;if(!$.includes(z)&&(ae=!0,z)){ae=z[z.length-1]!=="!";const ie=z.replace(/!/g,"");$.push(ie),(isArray$9(oe)||isPlainObject$2(oe))&&oe[ie]&&(ae=oe[ie])}return ae}const VERSION$2="9.2.2",NOT_REOSLVED=-1,DEFAULT_LOCALE$1="en-US",MISSING_RESOLVE_VALUE="",capitalize=$=>`${$.charAt(0).toLocaleUpperCase()}${$.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:($,z)=>z==="text"&&isString$5($)?$.toUpperCase():z==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toUpperCase():$,lower:($,z)=>z==="text"&&isString$5($)?$.toLowerCase():z==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toLowerCase():$,capitalize:($,z)=>z==="text"&&isString$5($)?capitalize($):z==="vnode"&&isObject$6($)&&"__v_isVNode"in $?capitalize($.children):$}}let _compiler,_resolver;function registerMessageResolver($){_resolver=$}let _fallbacker;function registerLocaleFallbacker($){_fallbacker=$}let _cid=0;function createCoreContext($={}){const z=isString$5($.version)?$.version:VERSION$2,oe=isString$5($.locale)?$.locale:DEFAULT_LOCALE$1,ae=isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||isString$5($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:oe,ie=isPlainObject$2($.messages)?$.messages:{[oe]:{}},le=isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[oe]:{}},pe=isPlainObject$2($.numberFormats)?$.numberFormats:{[oe]:{}},_e=assign$4({},$.modifiers||{},getDefaultLinkedModifiers()),Ce=$.pluralRules||{},$e=isFunction$2($.missing)?$.missing:null,xe=isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ie=isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Ne=!!$.fallbackFormat,Fe=!!$.unresolving,ze=isFunction$2($.postTranslation)?$.postTranslation:null,At=isPlainObject$2($.processor)?$.processor:null,Lt=isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,hn=!!$.escapeParameter,vn=isFunction$2($.messageCompiler)?$.messageCompiler:_compiler,_n=isFunction$2($.messageResolver)?$.messageResolver:_resolver||resolveWithKeyValue,bn=isFunction$2($.localeFallbacker)?$.localeFallbacker:_fallbacker||fallbackWithSimple,Cn=isObject$6($.fallbackContext)?$.fallbackContext:void 0,En=isFunction$2($.onWarn)?$.onWarn:warn$1,$n=$,wn=isObject$6($n.__datetimeFormatters)?$n.__datetimeFormatters:new Map,Tn=isObject$6($n.__numberFormatters)?$n.__numberFormatters:new Map,xn=isObject$6($n.__meta)?$n.__meta:{};_cid++;const kn={version:z,cid:_cid,locale:oe,fallbackLocale:ae,messages:ie,modifiers:_e,pluralRules:Ce,missing:$e,missingWarn:xe,fallbackWarn:Ie,fallbackFormat:Ne,unresolving:Fe,postTranslation:ze,processor:At,warnHtmlMessage:Lt,escapeParameter:hn,messageCompiler:vn,messageResolver:_n,localeFallbacker:bn,fallbackContext:Cn,onWarn:En,__meta:xn};return kn.datetimeFormats=le,kn.numberFormats=pe,kn.__datetimeFormatters=wn,kn.__numberFormatters=Tn,kn}function handleMissing($,z,oe,ae,ie){const{missing:le,onWarn:pe}=$;if(le!==null){const _e=le($,oe,z,ie);return isString$5(_e)?_e:z}else return z}function updateFallbackLocale($,z,oe){const ae=$;ae.__localeChainCache=new Map,$.localeFallbacker($,oe,z)}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($){return createCompileError($,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=$=>isFunction$2($);function translate$1($,...z){const{fallbackFormat:oe,postTranslation:ae,unresolving:ie,messageCompiler:le,fallbackLocale:pe,messages:_e}=$,[Ce,$e]=parseTranslateArgs(...z),xe=isBoolean$2($e.missingWarn)?$e.missingWarn:$.missingWarn,Ie=isBoolean$2($e.fallbackWarn)?$e.fallbackWarn:$.fallbackWarn,Ne=isBoolean$2($e.escapeParameter)?$e.escapeParameter:$.escapeParameter,Fe=!!$e.resolvedMessage,ze=isString$5($e.default)||isBoolean$2($e.default)?isBoolean$2($e.default)?le?Ce:()=>Ce:$e.default:oe?le?Ce:()=>Ce:"",At=oe||ze!=="",Lt=isString$5($e.locale)?$e.locale:$.locale;Ne&&escapeParams($e);let[hn,vn,_n]=Fe?[Ce,Lt,_e[Lt]||{}]:resolveMessageFormat($,Ce,Lt,pe,Ie,xe),bn=hn,Cn=Ce;if(!Fe&&!(isString$5(bn)||isMessageFunction(bn))&&At&&(bn=ze,Cn=bn),!Fe&&(!(isString$5(bn)||isMessageFunction(bn))||!isString$5(vn)))return ie?NOT_REOSLVED:Ce;let En=!1;const $n=()=>{En=!0},wn=isMessageFunction(bn)?bn:compileMessageFormat($,Ce,vn,bn,Cn,$n);if(En)return bn;const Tn=getMessageContextOptions($,vn,_n,$e),xn=createMessageContext(Tn),kn=evaluateMessage($,wn,xn);return ae?ae(kn,Ce):kn}function escapeParams($){isArray$9($.list)?$.list=$.list.map(z=>isString$5(z)?escapeHtml(z):z):isObject$6($.named)&&Object.keys($.named).forEach(z=>{isString$5($.named[z])&&($.named[z]=escapeHtml($.named[z]))})}function resolveMessageFormat($,z,oe,ae,ie,le){const{messages:pe,onWarn:_e,messageResolver:Ce,localeFallbacker:$e}=$,xe=$e($,ae,oe);let Ie={},Ne,Fe=null;const ze="translate";for(let At=0;At<xe.length&&(Ne=xe[At],Ie=pe[Ne]||{},(Fe=Ce(Ie,z))===null&&(Fe=Ie[z]),!(isString$5(Fe)||isFunction$2(Fe)));At++){const Lt=handleMissing($,z,Ne,le,ze);Lt!==z&&(Fe=Lt)}return[Fe,Ne,Ie]}function compileMessageFormat($,z,oe,ae,ie,le){const{messageCompiler:pe,warnHtmlMessage:_e}=$;if(isMessageFunction(ae)){const $e=ae;return $e.locale=$e.locale||oe,$e.key=$e.key||z,$e}if(pe==null){const $e=()=>ae;return $e.locale=oe,$e.key=z,$e}const Ce=pe(ae,getCompileOptions($,oe,ie,ae,_e,le));return Ce.locale=oe,Ce.key=z,Ce.source=ae,Ce}function evaluateMessage($,z,oe){return z(oe)}function parseTranslateArgs(...$){const[z,oe,ae]=$,ie={};if(!isString$5(z)&&!isNumber$4(z)&&!isMessageFunction(z))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const le=isNumber$4(z)?String(z):(isMessageFunction(z),z);return isNumber$4(oe)?ie.plural=oe:isString$5(oe)?ie.default=oe:isPlainObject$2(oe)&&!isEmptyObject(oe)?ie.named=oe:isArray$9(oe)&&(ie.list=oe),isNumber$4(ae)?ie.plural=ae:isString$5(ae)?ie.default=ae:isPlainObject$2(ae)&&assign$4(ie,ae),[le,ie]}function getCompileOptions($,z,oe,ae,ie,le){return{warnHtmlMessage:ie,onError:pe=>{throw le&&le(pe),pe},onCacheKey:pe=>generateFormatCacheKey(z,oe,pe)}}function getMessageContextOptions($,z,oe,ae){const{modifiers:ie,pluralRules:le,messageResolver:pe,fallbackLocale:_e,fallbackWarn:Ce,missingWarn:$e,fallbackContext:xe}=$,Ne={locale:z,modifiers:ie,pluralRules:le,messages:Fe=>{let ze=pe(oe,Fe);if(ze==null&&xe){const[,,At]=resolveMessageFormat(xe,Fe,z,_e,Ce,$e);ze=pe(At,Fe)}if(isString$5(ze)){let At=!1;const hn=compileMessageFormat($,Fe,z,ze,Fe,()=>{At=!0});return At?NOOP_MESSAGE_FUNCTION:hn}else return isMessageFunction(ze)?ze:NOOP_MESSAGE_FUNCTION}};return $.processor&&(Ne.processor=$.processor),ae.list&&(Ne.list=ae.list),ae.named&&(Ne.named=ae.named),isNumber$4(ae.plural)&&(Ne.pluralIndex=ae.plural),Ne}function datetime($,...z){const{datetimeFormats:oe,unresolving:ae,fallbackLocale:ie,onWarn:le,localeFallbacker:pe}=$,{__datetimeFormatters:_e}=$,[Ce,$e,xe,Ie]=parseDateTimeArgs(...z),Ne=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn;isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn;const Fe=!!xe.part,ze=isString$5(xe.locale)?xe.locale:$.locale,At=pe($,ie,ze);if(!isString$5(Ce)||Ce==="")return new Intl.DateTimeFormat(ze,Ie).format($e);let Lt={},hn,vn=null;const _n="datetime format";for(let En=0;En<At.length&&(hn=At[En],Lt=oe[hn]||{},vn=Lt[Ce],!isPlainObject$2(vn));En++)handleMissing($,Ce,hn,Ne,_n);if(!isPlainObject$2(vn)||!isString$5(hn))return ae?NOT_REOSLVED:Ce;let bn=`${hn}__${Ce}`;isEmptyObject(Ie)||(bn=`${bn}__${JSON.stringify(Ie)}`);let Cn=_e.get(bn);return Cn||(Cn=new Intl.DateTimeFormat(hn,assign$4({},vn,Ie)),_e.set(bn,Cn)),Fe?Cn.formatToParts($e):Cn.format($e)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...$){const[z,oe,ae,ie]=$,le={};let pe={},_e;if(isString$5(z)){const Ce=z.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!Ce)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const $e=Ce[3]?Ce[3].trim().startsWith("T")?`${Ce[1].trim()}${Ce[3].trim()}`:`${Ce[1].trim()}T${Ce[3].trim()}`:Ce[1].trim();_e=new Date($e);try{_e.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$2(z)){if(isNaN(z.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);_e=z}else if(isNumber$4(z))_e=z;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$5(oe)?le.key=oe:isPlainObject$2(oe)&&Object.keys(oe).forEach(Ce=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(Ce)?pe[Ce]=oe[Ce]:le[Ce]=oe[Ce]}),isString$5(ae)?le.locale=ae:isPlainObject$2(ae)&&(pe=ae),isPlainObject$2(ie)&&(pe=ie),[le.key||"",_e,le,pe]}function clearDateTimeFormat($,z,oe){const ae=$;for(const ie in oe){const le=`${z}__${ie}`;ae.__datetimeFormatters.has(le)&&ae.__datetimeFormatters.delete(le)}}function number$2($,...z){const{numberFormats:oe,unresolving:ae,fallbackLocale:ie,onWarn:le,localeFallbacker:pe}=$,{__numberFormatters:_e}=$,[Ce,$e,xe,Ie]=parseNumberArgs(...z),Ne=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn;isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn;const Fe=!!xe.part,ze=isString$5(xe.locale)?xe.locale:$.locale,At=pe($,ie,ze);if(!isString$5(Ce)||Ce==="")return new Intl.NumberFormat(ze,Ie).format($e);let Lt={},hn,vn=null;const _n="number format";for(let En=0;En<At.length&&(hn=At[En],Lt=oe[hn]||{},vn=Lt[Ce],!isPlainObject$2(vn));En++)handleMissing($,Ce,hn,Ne,_n);if(!isPlainObject$2(vn)||!isString$5(hn))return ae?NOT_REOSLVED:Ce;let bn=`${hn}__${Ce}`;isEmptyObject(Ie)||(bn=`${bn}__${JSON.stringify(Ie)}`);let Cn=_e.get(bn);return Cn||(Cn=new Intl.NumberFormat(hn,assign$4({},vn,Ie)),_e.set(bn,Cn)),Fe?Cn.formatToParts($e):Cn.format($e)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...$){const[z,oe,ae,ie]=$,le={};let pe={};if(!isNumber$4(z))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const _e=z;return isString$5(oe)?le.key=oe:isPlainObject$2(oe)&&Object.keys(oe).forEach(Ce=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(Ce)?pe[Ce]=oe[Ce]:le[Ce]=oe[Ce]}),isString$5(ae)?le.locale=ae:isPlainObject$2(ae)&&(pe=ae),isPlainObject$2(ie)&&(pe=ie),[le.key||"",_e,le,pe]}function clearNumberFormat($,z,oe){const ae=$;for(const ie in oe){const le=`${z}__${ie}`;ae.__numberFormatters.has(le)&&ae.__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($,...z){return createCompileError($,null,void 0)}const TransrateVNodeSymbol=makeSymbol("__transrateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");function handleFlatJson($){if(!isObject$6($))return $;for(const z in $)if(hasOwn$3($,z))if(!z.includes("."))isObject$6($[z])&&handleFlatJson($[z]);else{const oe=z.split("."),ae=oe.length-1;let ie=$;for(let le=0;le<ae;le++)oe[le]in ie||(ie[oe[le]]={}),ie=ie[oe[le]];ie[oe[ae]]=$[z],delete $[z],isObject$6(ie[oe[ae]])&&handleFlatJson(ie[oe[ae]])}return $}function getLocaleMessages($,z){const{messages:oe,__i18n:ae,messageResolver:ie,flatJson:le}=z,pe=isPlainObject$2(oe)?oe:isArray$9(ae)?{}:{[$]:{}};if(isArray$9(ae)&&ae.forEach(_e=>{if("locale"in _e&&"resource"in _e){const{locale:Ce,resource:$e}=_e;Ce?(pe[Ce]=pe[Ce]||{},deepCopy($e,pe[Ce])):deepCopy($e,pe)}else isString$5(_e)&&deepCopy(JSON.parse(_e),pe)}),ie==null&&le)for(const _e in pe)hasOwn$3(pe,_e)&&handleFlatJson(pe[_e]);return pe}const isNotObjectOrIsArray=$=>!isObject$6($)||isArray$9($);function deepCopy($,z){if(isNotObjectOrIsArray($)||isNotObjectOrIsArray(z))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const oe in $)hasOwn$3($,oe)&&(isNotObjectOrIsArray($[oe])||isNotObjectOrIsArray(z[oe])?z[oe]=$[oe]:deepCopy($[oe],z[oe]))}function getComponentOptions($){return $.type}function adjustI18nResources($,z,oe){let ae=isObject$6(z.messages)?z.messages:{};"__i18nGlobal"in oe&&(ae=getLocaleMessages($.locale.value,{messages:ae,__i18n:oe.__i18nGlobal}));const ie=Object.keys(ae);ie.length&&ie.forEach(le=>{$.mergeLocaleMessage(le,ae[le])});{if(isObject$6(z.datetimeFormats)){const le=Object.keys(z.datetimeFormats);le.length&&le.forEach(pe=>{$.mergeDateTimeFormat(pe,z.datetimeFormats[pe])})}if(isObject$6(z.numberFormats)){const le=Object.keys(z.numberFormats);le.length&&le.forEach(pe=>{$.mergeNumberFormat(pe,z.numberFormats[pe])})}}}function createTextNode($){return createVNode(Text$1,null,$,0)}let composerID=0;function defineCoreMissingHandler($){return(z,oe,ae,ie)=>$(oe,ae,getCurrentInstance()||void 0,ie)}function createComposer($={},z){const{__root:oe}=$,ae=oe===void 0;let ie=isBoolean$2($.inheritLocale)?$.inheritLocale:!0;const le=ref(oe&&ie?oe.locale.value:isString$5($.locale)?$.locale:DEFAULT_LOCALE$1),pe=ref(oe&&ie?oe.fallbackLocale.value:isString$5($.fallbackLocale)||isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:le.value),_e=ref(getLocaleMessages(le.value,$)),Ce=ref(isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[le.value]:{}}),$e=ref(isPlainObject$2($.numberFormats)?$.numberFormats:{[le.value]:{}});let xe=oe?oe.missingWarn:isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ie=oe?oe.fallbackWarn:isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Ne=oe?oe.fallbackRoot:isBoolean$2($.fallbackRoot)?$.fallbackRoot:!0,Fe=!!$.fallbackFormat,ze=isFunction$2($.missing)?$.missing:null,At=isFunction$2($.missing)?defineCoreMissingHandler($.missing):null,Lt=isFunction$2($.postTranslation)?$.postTranslation:null,hn=oe?oe.warnHtmlMessage:isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,vn=!!$.escapeParameter;const _n=oe?oe.modifiers:isPlainObject$2($.modifiers)?$.modifiers:{};let bn=$.pluralRules||oe&&oe.pluralRules,Cn;Cn=(()=>{const sr={version:VERSION$1,locale:le.value,fallbackLocale:pe.value,messages:_e.value,modifiers:_n,pluralRules:bn,missing:At===null?void 0:At,missingWarn:xe,fallbackWarn:Ie,fallbackFormat:Fe,unresolving:!0,postTranslation:Lt===null?void 0:Lt,warnHtmlMessage:hn,escapeParameter:vn,messageResolver:$.messageResolver,__meta:{framework:"vue"}};return sr.datetimeFormats=Ce.value,sr.numberFormats=$e.value,sr.__datetimeFormatters=isPlainObject$2(Cn)?Cn.__datetimeFormatters:void 0,sr.__numberFormatters=isPlainObject$2(Cn)?Cn.__numberFormatters:void 0,createCoreContext(sr)})(),updateFallbackLocale(Cn,le.value,pe.value);function $n(){return[le.value,pe.value,_e.value,Ce.value,$e.value]}const wn=computed({get:()=>le.value,set:sr=>{le.value=sr,Cn.locale=le.value}}),Tn=computed({get:()=>pe.value,set:sr=>{pe.value=sr,Cn.fallbackLocale=pe.value,updateFallbackLocale(Cn,le.value,sr)}}),xn=computed(()=>_e.value),kn=computed(()=>Ce.value),An=computed(()=>$e.value);function On(){return isFunction$2(Lt)?Lt:null}function Mn(sr){Lt=sr,Cn.postTranslation=sr}function Fn(){return ze}function Dn(sr){sr!==null&&(At=defineCoreMissingHandler(sr)),ze=sr,Cn.missing=At}const Nn=(sr,cr,hr,Ar,Dr,Lr)=>{$n();let Mr;if(Mr=sr(Cn),isNumber$4(Mr)&&Mr===NOT_REOSLVED){const[Er,$r]=cr();return oe&&Ne?Ar(oe):Dr(Er)}else{if(Lr(Mr))return Mr;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Vn(...sr){return Nn(cr=>Reflect.apply(translate$1,null,[cr,...sr]),()=>parseTranslateArgs(...sr),"translate",cr=>Reflect.apply(cr.t,cr,[...sr]),cr=>cr,cr=>isString$5(cr))}function Bn(...sr){const[cr,hr,Ar]=sr;if(Ar&&!isObject$6(Ar))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Vn(cr,hr,assign$4({resolvedMessage:!0},Ar||{}))}function zn(...sr){return Nn(cr=>Reflect.apply(datetime,null,[cr,...sr]),()=>parseDateTimeArgs(...sr),"datetime format",cr=>Reflect.apply(cr.d,cr,[...sr]),()=>MISSING_RESOLVE_VALUE,cr=>isString$5(cr))}function Xn(...sr){return Nn(cr=>Reflect.apply(number$2,null,[cr,...sr]),()=>parseNumberArgs(...sr),"number format",cr=>Reflect.apply(cr.n,cr,[...sr]),()=>MISSING_RESOLVE_VALUE,cr=>isString$5(cr))}function Un(sr){return sr.map(cr=>isString$5(cr)||isNumber$4(cr)||isBoolean$2(cr)?createTextNode(String(cr)):cr)}const lr={normalize:Un,interpolate:sr=>sr,type:"vnode"};function _r(...sr){return Nn(cr=>{let hr;const Ar=cr;try{Ar.processor=lr,hr=Reflect.apply(translate$1,null,[Ar,...sr])}finally{Ar.processor=null}return hr},()=>parseTranslateArgs(...sr),"translate",cr=>cr[TransrateVNodeSymbol](...sr),cr=>[createTextNode(cr)],cr=>isArray$9(cr))}function ir(...sr){return Nn(cr=>Reflect.apply(number$2,null,[cr,...sr]),()=>parseNumberArgs(...sr),"number format",cr=>cr[NumberPartsSymbol](...sr),()=>[],cr=>isString$5(cr)||isArray$9(cr))}function qn(...sr){return Nn(cr=>Reflect.apply(datetime,null,[cr,...sr]),()=>parseDateTimeArgs(...sr),"datetime format",cr=>cr[DatetimePartsSymbol](...sr),()=>[],cr=>isString$5(cr)||isArray$9(cr))}function Yn(sr){bn=sr,Cn.pluralRules=bn}function Wn(sr,cr){const hr=isString$5(cr)?cr:le.value,Ar=Gn(hr);return Cn.messageResolver(Ar,sr)!==null}function tr(sr){let cr=null;const hr=fallbackWithLocaleChain(Cn,pe.value,le.value);for(let Ar=0;Ar<hr.length;Ar++){const Dr=_e.value[hr[Ar]]||{},Lr=Cn.messageResolver(Dr,sr);if(Lr!=null){cr=Lr;break}}return cr}function pr(sr){const cr=tr(sr);return cr??(oe?oe.tm(sr)||{}:{})}function Gn(sr){return _e.value[sr]||{}}function Zn(sr,cr){_e.value[sr]=cr,Cn.messages=_e.value}function rr(sr,cr){_e.value[sr]=_e.value[sr]||{},deepCopy(cr,_e.value[sr]),Cn.messages=_e.value}function mr(sr){return Ce.value[sr]||{}}function Sr(sr,cr){Ce.value[sr]=cr,Cn.datetimeFormats=Ce.value,clearDateTimeFormat(Cn,sr,cr)}function ar(sr,cr){Ce.value[sr]=assign$4(Ce.value[sr]||{},cr),Cn.datetimeFormats=Ce.value,clearDateTimeFormat(Cn,sr,cr)}function xr(sr){return $e.value[sr]||{}}function gr(sr,cr){$e.value[sr]=cr,Cn.numberFormats=$e.value,clearNumberFormat(Cn,sr,cr)}function Pr(sr,cr){$e.value[sr]=assign$4($e.value[sr]||{},cr),Cn.numberFormats=$e.value,clearNumberFormat(Cn,sr,cr)}composerID++,oe&&inBrowser&&(watch(oe.locale,sr=>{ie&&(le.value=sr,Cn.locale=sr,updateFallbackLocale(Cn,le.value,pe.value))}),watch(oe.fallbackLocale,sr=>{ie&&(pe.value=sr,Cn.fallbackLocale=sr,updateFallbackLocale(Cn,le.value,pe.value))}));const dr={id:composerID,locale:wn,fallbackLocale:Tn,get inheritLocale(){return ie},set inheritLocale(sr){ie=sr,sr&&oe&&(le.value=oe.locale.value,pe.value=oe.fallbackLocale.value,updateFallbackLocale(Cn,le.value,pe.value))},get availableLocales(){return Object.keys(_e.value).sort()},messages:xn,get modifiers(){return _n},get pluralRules(){return bn||{}},get isGlobal(){return ae},get missingWarn(){return xe},set missingWarn(sr){xe=sr,Cn.missingWarn=xe},get fallbackWarn(){return Ie},set fallbackWarn(sr){Ie=sr,Cn.fallbackWarn=Ie},get fallbackRoot(){return Ne},set fallbackRoot(sr){Ne=sr},get fallbackFormat(){return Fe},set fallbackFormat(sr){Fe=sr,Cn.fallbackFormat=Fe},get warnHtmlMessage(){return hn},set warnHtmlMessage(sr){hn=sr,Cn.warnHtmlMessage=sr},get escapeParameter(){return vn},set escapeParameter(sr){vn=sr,Cn.escapeParameter=sr},t:Vn,getLocaleMessage:Gn,setLocaleMessage:Zn,mergeLocaleMessage:rr,getPostTranslationHandler:On,setPostTranslationHandler:Mn,getMissingHandler:Fn,setMissingHandler:Dn,[SetPluralRulesSymbol]:Yn};return dr.datetimeFormats=kn,dr.numberFormats=An,dr.rt=Bn,dr.te=Wn,dr.tm=pr,dr.d=zn,dr.n=Xn,dr.getDateTimeFormat=mr,dr.setDateTimeFormat=Sr,dr.mergeDateTimeFormat=ar,dr.getNumberFormat=xr,dr.setNumberFormat=gr,dr.mergeNumberFormat=Pr,dr[InejctWithOption]=$.__injectWithOption,dr[TransrateVNodeSymbol]=_r,dr[DatetimePartsSymbol]=qn,dr[NumberPartsSymbol]=ir,dr}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:$=>$==="parent"||$==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:$},z){return z.length===1&&z[0]==="default"?($.default?$.default():[]).reduce((ae,ie)=>ae=[...ae,...isArray$9(ie.children)?ie.children:[ie]],[]):z.reduce((oe,ae)=>{const ie=$[ae];return ie&&(oe[ae]=ie()),oe},{})}function getFragmentableTag($){return Fragment}const Translation={name:"i18n-t",props:assign$4({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:$=>isNumber$4($)||!isNaN($)}},baseFormatProps),setup($,z){const{slots:oe,attrs:ae}=z,ie=$.i18n||useI18n$1({useScope:$.scope,__useComponent:!0});return()=>{const le=Object.keys(oe).filter(Ie=>Ie!=="_"),pe={};$.locale&&(pe.locale=$.locale),$.plural!==void 0&&(pe.plural=isString$5($.plural)?+$.plural:$.plural);const _e=getInterpolateArg(z,le),Ce=ie[TransrateVNodeSymbol]($.keypath,_e,pe),$e=assign$4({},ae),xe=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(xe,$e,Ce)}}};function isVNode($){return isArray$9($)&&!isString$5($[0])}function renderFormatter($,z,oe,ae){const{slots:ie,attrs:le}=z;return()=>{const pe={part:!0};let _e={};$.locale&&(pe.locale=$.locale),isString$5($.format)?pe.key=$.format:isObject$6($.format)&&(isString$5($.format.key)&&(pe.key=$.format.key),_e=Object.keys($.format).reduce((Ne,Fe)=>oe.includes(Fe)?assign$4({},Ne,{[Fe]:$.format[Fe]}):Ne,{}));const Ce=ae($.value,pe,_e);let $e=[pe.key];isArray$9(Ce)?$e=Ce.map((Ne,Fe)=>{const ze=ie[Ne.type],At=ze?ze({[Ne.type]:Ne.value,index:Fe,parts:Ce}):[Ne.value];return isVNode(At)&&(At[0].key=`${Ne.type}-${Fe}`),At}):isString$5(Ce)&&($e=[Ce]);const xe=assign$4({},le),Ie=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ie,xe,$e)}}const NumberFormat={name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,z){const oe=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,z,NUMBER_FORMAT_OPTIONS_KEYS,(...ae)=>oe[NumberPartsSymbol](...ae))}},DatetimeFormat={name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,z){const oe=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,z,DATETIME_FORMAT_OPTIONS_KEYS,(...ae)=>oe[DatetimePartsSymbol](...ae))}};function getComposer$2($,z){const oe=$;if($.mode==="composition")return oe.__getInstance(z)||$.global;{const ae=oe.__getInstance(z);return ae!=null?ae.__composer:$.global.__composer}}function vTDirective($){const z=pe=>{const{instance:_e,modifiers:Ce,value:$e}=pe;if(!_e||!_e.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const xe=getComposer$2($,_e.$),Ie=parseValue($e);return[Reflect.apply(xe.t,xe,[...makeParams(Ie)]),xe]};return{created:(pe,_e)=>{const[Ce,$e]=z(_e);inBrowser&&$.global===$e&&(pe.__i18nWatcher=watch($e.locale,()=>{_e.instance&&_e.instance.$forceUpdate()})),pe.__composer=$e,pe.textContent=Ce},unmounted:pe=>{inBrowser&&pe.__i18nWatcher&&(pe.__i18nWatcher(),pe.__i18nWatcher=void 0,delete pe.__i18nWatcher),pe.__composer&&(pe.__composer=void 0,delete pe.__composer)},beforeUpdate:(pe,{value:_e})=>{if(pe.__composer){const Ce=pe.__composer,$e=parseValue(_e);pe.textContent=Reflect.apply(Ce.t,Ce,[...makeParams($e)])}},getSSRProps:pe=>{const[_e]=z(pe);return{textContent:_e}}}}function parseValue($){if(isString$5($))return{path:$};if(isPlainObject$2($)){if(!("path"in $))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return $}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams($){const{path:z,locale:oe,args:ae,choice:ie,plural:le}=$,pe={},_e=ae||{};return isString$5(oe)&&(pe.locale=oe),isNumber$4(ie)&&(pe.plural=ie),isNumber$4(le)&&(pe.plural=le),[z,_e,pe]}function apply($,z,...oe){const ae=isPlainObject$2(oe[0])?oe[0]:{},ie=!!ae.useI18nComponentName;(isBoolean$2(ae.globalInstall)?ae.globalInstall:!0)&&($.component(ie?"i18n":Translation.name,Translation),$.component(NumberFormat.name,NumberFormat),$.component(DatetimeFormat.name,DatetimeFormat)),$.directive("t",vTDirective(z))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n($={},z){const oe=isBoolean$2($.globalInjection)?$.globalInjection:!0,ae=!0,ie=new Map,[le,pe]=createGlobal($),_e=makeSymbol("");function Ce(Ie){return ie.get(Ie)||null}function $e(Ie,Ne){ie.set(Ie,Ne)}function xe(Ie){ie.delete(Ie)}{const Ie={get mode(){return"composition"},get allowComposition(){return ae},async install(Ne,...Fe){Ne.__VUE_I18N_SYMBOL__=_e,Ne.provide(Ne.__VUE_I18N_SYMBOL__,Ie),oe&&injectGlobalFields(Ne,Ie.global),apply(Ne,Ie,...Fe);const ze=Ne.unmount;Ne.unmount=()=>{Ie.dispose(),ze()}},get global(){return pe},dispose(){le.stop()},__instances:ie,__getInstance:Ce,__setInstance:$e,__deleteInstance:xe};return Ie}}function useI18n$1($={}){const z=getCurrentInstance();if(z==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!z.isCE&&z.appContext.app!=null&&!z.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const oe=getI18nInstance(z),ae=getGlobalComposer(oe),ie=getComponentOptions(z),le=getScope($,ie);if(le==="global")return adjustI18nResources(ae,$,ie),ae;if(le==="parent"){let Ce=getComposer(oe,z,$.__useComponent);return Ce==null&&(Ce=ae),Ce}const pe=oe;let _e=pe.__getInstance(z);if(_e==null){const Ce=assign$4({},$);"__i18n"in ie&&(Ce.__i18n=ie.__i18n),ae&&(Ce.__root=ae),_e=createComposer(Ce),setupLifeCycle(pe,z),pe.__setInstance(z,_e)}return _e}function createGlobal($,z,oe){const ae=effectScope();{const ie=ae.run(()=>createComposer($));if(ie==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[ae,ie]}}function getI18nInstance($){{const z=inject($.isCE?I18nInjectionKey:$.appContext.app.__VUE_I18N_SYMBOL__);if(!z)throw createI18nError($.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return z}}function getScope($,z){return isEmptyObject($)?"__i18n"in z?"local":"global":$.useScope?$.useScope:"local"}function getGlobalComposer($){return $.mode==="composition"?$.global:$.global.__composer}function getComposer($,z,oe=!1){let ae=null;const ie=z.root;let le=z.parent;for(;le!=null;){const pe=$;if($.mode==="composition"&&(ae=pe.__getInstance(le)),ae!=null||ie===le)break;le=le.parent}return ae}function setupLifeCycle($,z,oe){onMounted(()=>{},z),onUnmounted(()=>{$.__deleteInstance(z)},z)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields($,z){const oe=Object.create(null);globalExportProps.forEach(ae=>{const ie=Object.getOwnPropertyDescriptor(z,ae);if(!ie)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const le=isRef(ie.value)?{get(){return ie.value.value},set(pe){ie.value.value=pe}}:{get(){return ie.get&&ie.get()}};Object.defineProperty(oe,ae,le)}),$.config.globalProperties.$i18n=oe,globalExportMethods.forEach(ae=>{const ie=Object.getOwnPropertyDescriptor(z,ae);if(!ie||!ie.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty($.config.globalProperties,`$${ae}`,ie)})}registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);function bind$4($,z){return function(){return $.apply(z,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=($=>z=>{const oe=toString$1.call(z);return $[oe]||($[oe]=oe.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=$=>($=$.toLowerCase(),z=>kindOf(z)===$),typeOfTest=$=>z=>typeof z===$,{isArray:isArray$8}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1($){return $!==null&&!isUndefined($)&&$.constructor!==null&&!isUndefined($.constructor)&&isFunction$1($.constructor.isBuffer)&&$.constructor.isBuffer($)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView($){let z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView($):z=$&&$.buffer&&isArrayBuffer($.buffer),z}const isString$4=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$3=typeOfTest("number"),isObject$5=$=>$!==null&&typeof $=="object",isBoolean$1=$=>$===!0||$===!1,isPlainObject$1=$=>{if(kindOf($)!=="object")return!1;const z=getPrototypeOf($);return(z===null||z===Object.prototype||Object.getPrototypeOf(z)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=$=>isObject$5($)&&isFunction$1($.pipe),isFormData=$=>{let z;return $&&(typeof FormData=="function"&&$ instanceof FormData||isFunction$1($.append)&&((z=kindOf($))==="formdata"||z==="object"&&isFunction$1($.toString)&&$.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=$=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$2($,z,{allOwnKeys:oe=!1}={}){if($===null||typeof $>"u")return;let ae,ie;if(typeof $!="object"&&($=[$]),isArray$8($))for(ae=0,ie=$.length;ae<ie;ae++)z.call(null,$[ae],ae,$);else{const le=oe?Object.getOwnPropertyNames($):Object.keys($),pe=le.length;let _e;for(ae=0;ae<pe;ae++)_e=le[ae],z.call(null,$[_e],_e,$)}}function findKey($,z){z=z.toLowerCase();const oe=Object.keys($);let ae=oe.length,ie;for(;ae-- >0;)if(ie=oe[ae],z===ie.toLowerCase())return ie;return null}const _global$1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=$=>!isUndefined($)&&$!==_global$1;function merge$2(){const{caseless:$}=isContextDefined(this)&&this||{},z={},oe=(ae,ie)=>{const le=$&&findKey(z,ie)||ie;isPlainObject$1(z[le])&&isPlainObject$1(ae)?z[le]=merge$2(z[le],ae):isPlainObject$1(ae)?z[le]=merge$2({},ae):isArray$8(ae)?z[le]=ae.slice():z[le]=ae};for(let ae=0,ie=arguments.length;ae<ie;ae++)arguments[ae]&&forEach$2(arguments[ae],oe);return z}const extend$1=($,z,oe,{allOwnKeys:ae}={})=>(forEach$2(z,(ie,le)=>{oe&&isFunction$1(ie)?$[le]=bind$4(ie,oe):$[le]=ie},{allOwnKeys:ae}),$),stripBOM=$=>($.charCodeAt(0)===65279&&($=$.slice(1)),$),inherits$1=($,z,oe,ae)=>{$.prototype=Object.create(z.prototype,ae),$.prototype.constructor=$,Object.defineProperty($,"super",{value:z.prototype}),oe&&Object.assign($.prototype,oe)},toFlatObject=($,z,oe,ae)=>{let ie,le,pe;const _e={};if(z=z||{},$==null)return z;do{for(ie=Object.getOwnPropertyNames($),le=ie.length;le-- >0;)pe=ie[le],(!ae||ae(pe,$,z))&&!_e[pe]&&(z[pe]=$[pe],_e[pe]=!0);$=oe!==!1&&getPrototypeOf($)}while($&&(!oe||oe($,z))&&$!==Object.prototype);return z},endsWith=($,z,oe)=>{$=String($),(oe===void 0||oe>$.length)&&(oe=$.length),oe-=z.length;const ae=$.indexOf(z,oe);return ae!==-1&&ae===oe},toArray$1=$=>{if(!$)return null;if(isArray$8($))return $;let z=$.length;if(!isNumber$3(z))return null;const oe=new Array(z);for(;z-- >0;)oe[z]=$[z];return oe},isTypedArray$1=($=>z=>$&&z instanceof $)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=($,z)=>{const ae=($&&$[Symbol.iterator]).call($);let ie;for(;(ie=ae.next())&&!ie.done;){const le=ie.value;z.call($,le[0],le[1])}},matchAll=($,z)=>{let oe;const ae=[];for(;(oe=$.exec(z))!==null;)ae.push(oe);return ae},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=$=>$.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(oe,ae,ie){return ae.toUpperCase()+ie}),hasOwnProperty=(({hasOwnProperty:$})=>(z,oe)=>$.call(z,oe))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=($,z)=>{const oe=Object.getOwnPropertyDescriptors($),ae={};forEach$2(oe,(ie,le)=>{z(ie,le,$)!==!1&&(ae[le]=ie)}),Object.defineProperties($,ae)},freezeMethods=$=>{reduceDescriptors($,(z,oe)=>{if(isFunction$1($)&&["arguments","caller","callee"].indexOf(oe)!==-1)return!1;const ae=$[oe];if(isFunction$1(ae)){if(z.enumerable=!1,"writable"in z){z.writable=!1;return}z.set||(z.set=()=>{throw Error("Can not rewrite read-only method '"+oe+"'")})}})},toObjectSet=($,z)=>{const oe={},ae=ie=>{ie.forEach(le=>{oe[le]=!0})};return isArray$8($)?ae($):ae(String($).split(z)),oe},noop$4=()=>{},toFiniteNumber=($,z)=>($=+$,Number.isFinite($)?$:z),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=($=16,z=ALPHABET.ALPHA_DIGIT)=>{let oe="";const{length:ae}=z;for(;$--;)oe+=z[Math.random()*ae|0];return oe};function isSpecCompliantForm($){return!!($&&isFunction$1($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])}const toJSONObject=$=>{const z=new Array(10),oe=(ae,ie)=>{if(isObject$5(ae)){if(z.indexOf(ae)>=0)return;if(!("toJSON"in ae)){z[ie]=ae;const le=isArray$8(ae)?[]:{};return forEach$2(ae,(pe,_e)=>{const Ce=oe(pe,ie+1);!isUndefined(Ce)&&(le[_e]=Ce)}),z[ie]=void 0,le}}return ae};return oe($,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=$=>$&&(isObject$5($)||isFunction$1($))&&isFunction$1($.then)&&isFunction$1($.catch),utils$8={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$4,isNumber:isNumber$3,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:forEach$2,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$4,toFiniteNumber,findKey,global:_global$1,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError($,z,oe,ae,ie){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=$,this.name="AxiosError",z&&(this.code=z),oe&&(this.config=oe),ae&&(this.request=ae),ie&&(this.response=ie)}utils$8.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$8.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($=>{descriptors[$]={value:$}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=($,z,oe,ae,ie,le)=>{const pe=Object.create(prototype$1);return utils$8.toFlatObject($,pe,function(Ce){return Ce!==Error.prototype},_e=>_e!=="isAxiosError"),AxiosError.call(pe,$.message,z,oe,ae,ie),pe.cause=$,pe.name=$.name,le&&Object.assign(pe,le),pe};const httpAdapter=null;function isVisitable($){return utils$8.isPlainObject($)||utils$8.isArray($)}function removeBrackets($){return utils$8.endsWith($,"[]")?$.slice(0,-2):$}function renderKey($,z,oe){return $?$.concat(z).map(function(ie,le){return ie=removeBrackets(ie),!oe&&le?"["+ie+"]":ie}).join(oe?".":""):z}function isFlatArray($){return utils$8.isArray($)&&!$.some(isVisitable)}const predicates=utils$8.toFlatObject(utils$8,{},null,function(z){return/^is[A-Z]/.test(z)});function toFormData($,z,oe){if(!utils$8.isObject($))throw new TypeError("target must be an object");z=z||new FormData,oe=utils$8.toFlatObject(oe,{metaTokens:!0,dots:!1,indexes:!1},!1,function(At,Lt){return!utils$8.isUndefined(Lt[At])});const ae=oe.metaTokens,ie=oe.visitor||xe,le=oe.dots,pe=oe.indexes,Ce=(oe.Blob||typeof Blob<"u"&&Blob)&&utils$8.isSpecCompliantForm(z);if(!utils$8.isFunction(ie))throw new TypeError("visitor must be a function");function $e(ze){if(ze===null)return"";if(utils$8.isDate(ze))return ze.toISOString();if(!Ce&&utils$8.isBlob(ze))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$8.isArrayBuffer(ze)||utils$8.isTypedArray(ze)?Ce&&typeof Blob=="function"?new Blob([ze]):Buffer.from(ze):ze}function xe(ze,At,Lt){let hn=ze;if(ze&&!Lt&&typeof ze=="object"){if(utils$8.endsWith(At,"{}"))At=ae?At:At.slice(0,-2),ze=JSON.stringify(ze);else if(utils$8.isArray(ze)&&isFlatArray(ze)||(utils$8.isFileList(ze)||utils$8.endsWith(At,"[]"))&&(hn=utils$8.toArray(ze)))return At=removeBrackets(At),hn.forEach(function(_n,bn){!(utils$8.isUndefined(_n)||_n===null)&&z.append(pe===!0?renderKey([At],bn,le):pe===null?At:At+"[]",$e(_n))}),!1}return isVisitable(ze)?!0:(z.append(renderKey(Lt,At,le),$e(ze)),!1)}const Ie=[],Ne=Object.assign(predicates,{defaultVisitor:xe,convertValue:$e,isVisitable});function Fe(ze,At){if(!utils$8.isUndefined(ze)){if(Ie.indexOf(ze)!==-1)throw Error("Circular reference detected in "+At.join("."));Ie.push(ze),utils$8.forEach(ze,function(hn,vn){(!(utils$8.isUndefined(hn)||hn===null)&&ie.call(z,hn,utils$8.isString(vn)?vn.trim():vn,At,Ne))===!0&&Fe(hn,At?At.concat(vn):[vn])}),Ie.pop()}}if(!utils$8.isObject($))throw new TypeError("data must be an object");return Fe($),z}function encode$2($){const z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(ae){return z[ae]})}function AxiosURLSearchParams($,z){this._pairs=[],$&&toFormData($,this,z)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(z,oe){this._pairs.push([z,oe])};prototype.toString=function(z){const oe=z?function(ae){return z.call(this,ae,encode$2)}:encode$2;return this._pairs.map(function(ie){return oe(ie[0])+"="+oe(ie[1])},"").join("&")};function encode$1($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL($,z,oe){if(!z)return $;const ae=oe&&oe.encode||encode$1,ie=oe&&oe.serialize;let le;if(ie?le=ie(z,oe):le=utils$8.isURLSearchParams(z)?z.toString():new AxiosURLSearchParams(z,oe).toString(ae),le){const pe=$.indexOf("#");pe!==-1&&($=$.slice(0,pe)),$+=($.indexOf("?")===-1?"?":"&")+le}return $}class InterceptorManager{constructor(){this.handlers=[]}use(z,oe,ae){return this.handlers.push({fulfilled:z,rejected:oe,synchronous:ae?ae.synchronous:!1,runWhen:ae?ae.runWhen:null}),this.handlers.length-1}eject(z){this.handlers[z]&&(this.handlers[z]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(z){utils$8.forEach(this.handlers,function(ae){ae!==null&&z(ae)})}}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 $;return typeof navigator<"u"&&(($=navigator.product)==="ReactNative"||$==="NativeScript"||$==="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($,z){return toFormData($,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(oe,ae,ie,le){return platform$1.isNode&&utils$8.isBuffer(oe)?(this.append(ae,oe.toString("base64")),!1):le.defaultVisitor.apply(this,arguments)}},z))}function parsePropPath($){return utils$8.matchAll(/\w+|\[(\w*)]/g,$).map(z=>z[0]==="[]"?"":z[1]||z[0])}function arrayToObject$1($){const z={},oe=Object.keys($);let ae;const ie=oe.length;let le;for(ae=0;ae<ie;ae++)le=oe[ae],z[le]=$[le];return z}function formDataToJSON($){function z(oe,ae,ie,le){let pe=oe[le++];const _e=Number.isFinite(+pe),Ce=le>=oe.length;return pe=!pe&&utils$8.isArray(ie)?ie.length:pe,Ce?(utils$8.hasOwnProp(ie,pe)?ie[pe]=[ie[pe],ae]:ie[pe]=ae,!_e):((!ie[pe]||!utils$8.isObject(ie[pe]))&&(ie[pe]=[]),z(oe,ae,ie[pe],le)&&utils$8.isArray(ie[pe])&&(ie[pe]=arrayToObject$1(ie[pe])),!_e)}if(utils$8.isFormData($)&&utils$8.isFunction($.entries)){const oe={};return utils$8.forEachEntry($,(ae,ie)=>{z(parsePropPath(ae),ie,oe,0)}),oe}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely($,z,oe){if(utils$8.isString($))try{return(z||JSON.parse)($),utils$8.trim($)}catch(ae){if(ae.name!=="SyntaxError")throw ae}return(oe||JSON.stringify)($)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(z,oe){const ae=oe.getContentType()||"",ie=ae.indexOf("application/json")>-1,le=utils$8.isObject(z);if(le&&utils$8.isHTMLForm(z)&&(z=new FormData(z)),utils$8.isFormData(z))return ie&&ie?JSON.stringify(formDataToJSON(z)):z;if(utils$8.isArrayBuffer(z)||utils$8.isBuffer(z)||utils$8.isStream(z)||utils$8.isFile(z)||utils$8.isBlob(z))return z;if(utils$8.isArrayBufferView(z))return z.buffer;if(utils$8.isURLSearchParams(z))return oe.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),z.toString();let _e;if(le){if(ae.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(z,this.formSerializer).toString();if((_e=utils$8.isFileList(z))||ae.indexOf("multipart/form-data")>-1){const Ce=this.env&&this.env.FormData;return toFormData(_e?{"files[]":z}:z,Ce&&new Ce,this.formSerializer)}}return le||ie?(oe.setContentType("application/json",!1),stringifySafely(z)):z}],transformResponse:[function(z){const oe=this.transitional||defaults$3.transitional,ae=oe&&oe.forcedJSONParsing,ie=this.responseType==="json";if(z&&utils$8.isString(z)&&(ae&&!this.responseType||ie)){const pe=!(oe&&oe.silentJSONParsing)&&ie;try{return JSON.parse(z)}catch(_e){if(pe)throw _e.name==="SyntaxError"?AxiosError.from(_e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_e}}return z}],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(z){return z>=200&&z<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$8.forEach(["delete","get","head"],function(z){defaults$3.headers[z]={}});utils$8.forEach(["post","put","patch"],function(z){defaults$3.headers[z]=utils$8.merge(DEFAULT_CONTENT_TYPE)});const defaults$4=defaults$3,ignoreDuplicateOf=utils$8.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=$=>{const z={};let oe,ae,ie;return $&&$.split(`
|
||
`).forEach(function(pe){ie=pe.indexOf(":"),oe=pe.substring(0,ie).trim().toLowerCase(),ae=pe.substring(ie+1).trim(),!(!oe||z[oe]&&ignoreDuplicateOf[oe])&&(oe==="set-cookie"?z[oe]?z[oe].push(ae):z[oe]=[ae]:z[oe]=z[oe]?z[oe]+", "+ae:ae)}),z},$internals=Symbol("internals");function normalizeHeader($){return $&&String($).trim().toLowerCase()}function normalizeValue($){return $===!1||$==null?$:utils$8.isArray($)?$.map(normalizeValue):String($)}function parseTokens($){const z=Object.create(null),oe=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ae;for(;ae=oe.exec($);)z[ae[1]]=ae[2];return z}const isValidHeaderName=$=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function matchHeaderValue($,z,oe,ae,ie){if(utils$8.isFunction(ae))return ae.call(this,z,oe);if(ie&&(z=oe),!!utils$8.isString(z)){if(utils$8.isString(ae))return z.indexOf(ae)!==-1;if(utils$8.isRegExp(ae))return ae.test(z)}}function formatHeader($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(z,oe,ae)=>oe.toUpperCase()+ae)}function buildAccessors($,z){const oe=utils$8.toCamelCase(" "+z);["get","set","has"].forEach(ae=>{Object.defineProperty($,ae+oe,{value:function(ie,le,pe){return this[ae].call(this,z,ie,le,pe)},configurable:!0})})}class AxiosHeaders{constructor(z){z&&this.set(z)}set(z,oe,ae){const ie=this;function le(_e,Ce,$e){const xe=normalizeHeader(Ce);if(!xe)throw new Error("header name must be a non-empty string");const Ie=utils$8.findKey(ie,xe);(!Ie||ie[Ie]===void 0||$e===!0||$e===void 0&&ie[Ie]!==!1)&&(ie[Ie||Ce]=normalizeValue(_e))}const pe=(_e,Ce)=>utils$8.forEach(_e,($e,xe)=>le($e,xe,Ce));return utils$8.isPlainObject(z)||z instanceof this.constructor?pe(z,oe):utils$8.isString(z)&&(z=z.trim())&&!isValidHeaderName(z)?pe(parseHeaders(z),oe):z!=null&&le(oe,z,ae),this}get(z,oe){if(z=normalizeHeader(z),z){const ae=utils$8.findKey(this,z);if(ae){const ie=this[ae];if(!oe)return ie;if(oe===!0)return parseTokens(ie);if(utils$8.isFunction(oe))return oe.call(this,ie,ae);if(utils$8.isRegExp(oe))return oe.exec(ie);throw new TypeError("parser must be boolean|regexp|function")}}}has(z,oe){if(z=normalizeHeader(z),z){const ae=utils$8.findKey(this,z);return!!(ae&&this[ae]!==void 0&&(!oe||matchHeaderValue(this,this[ae],ae,oe)))}return!1}delete(z,oe){const ae=this;let ie=!1;function le(pe){if(pe=normalizeHeader(pe),pe){const _e=utils$8.findKey(ae,pe);_e&&(!oe||matchHeaderValue(ae,ae[_e],_e,oe))&&(delete ae[_e],ie=!0)}}return utils$8.isArray(z)?z.forEach(le):le(z),ie}clear(z){const oe=Object.keys(this);let ae=oe.length,ie=!1;for(;ae--;){const le=oe[ae];(!z||matchHeaderValue(this,this[le],le,z,!0))&&(delete this[le],ie=!0)}return ie}normalize(z){const oe=this,ae={};return utils$8.forEach(this,(ie,le)=>{const pe=utils$8.findKey(ae,le);if(pe){oe[pe]=normalizeValue(ie),delete oe[le];return}const _e=z?formatHeader(le):String(le).trim();_e!==le&&delete oe[le],oe[_e]=normalizeValue(ie),ae[_e]=!0}),this}concat(...z){return this.constructor.concat(this,...z)}toJSON(z){const oe=Object.create(null);return utils$8.forEach(this,(ae,ie)=>{ae!=null&&ae!==!1&&(oe[ie]=z&&utils$8.isArray(ae)?ae.join(", "):ae)}),oe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([z,oe])=>z+": "+oe).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(z){return z instanceof this?z:new this(z)}static concat(z,...oe){const ae=new this(z);return oe.forEach(ie=>ae.set(ie)),ae}static accessor(z){const ae=(this[$internals]=this[$internals]={accessors:{}}).accessors,ie=this.prototype;function le(pe){const _e=normalizeHeader(pe);ae[_e]||(buildAccessors(ie,pe),ae[_e]=!0)}return utils$8.isArray(z)?z.forEach(le):le(z),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$8.freezeMethods(AxiosHeaders.prototype);utils$8.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData($,z){const oe=this||defaults$4,ae=z||oe,ie=AxiosHeaders$1.from(ae.headers);let le=ae.data;return utils$8.forEach($,function(_e){le=_e.call(oe,le,ie.normalize(),z?z.status:void 0)}),ie.normalize(),le}function isCancel($){return!!($&&$.__CANCEL__)}function CanceledError($,z,oe){AxiosError.call(this,$??"canceled",AxiosError.ERR_CANCELED,z,oe),this.name="CanceledError"}utils$8.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle($,z,oe){const ae=oe.config.validateStatus;!oe.status||!ae||ae(oe.status)?$(oe):z(new AxiosError("Request failed with status code "+oe.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(oe.status/100)-4],oe.config,oe.request,oe))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function(oe,ae,ie,le,pe,_e){const Ce=[];Ce.push(oe+"="+encodeURIComponent(ae)),utils$8.isNumber(ie)&&Ce.push("expires="+new Date(ie).toGMTString()),utils$8.isString(le)&&Ce.push("path="+le),utils$8.isString(pe)&&Ce.push("domain="+pe),_e===!0&&Ce.push("secure"),document.cookie=Ce.join("; ")},read:function(oe){const ae=document.cookie.match(new RegExp("(^|;\\s*)("+oe+")=([^;]*)"));return ae?decodeURIComponent(ae[3]):null},remove:function(oe){this.write(oe,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function combineURLs($,z){return z?$.replace(/\/+$/,"")+"/"+z.replace(/^\/+/,""):$}function buildFullPath($,z){return $&&!isAbsoluteURL(z)?combineURLs($,z):z}const isURLSameOrigin=platform$1.isStandardBrowserEnv?function(){const z=/(msie|trident)/i.test(navigator.userAgent),oe=document.createElement("a");let ae;function ie(le){let pe=le;return z&&(oe.setAttribute("href",pe),pe=oe.href),oe.setAttribute("href",pe),{href:oe.href,protocol:oe.protocol?oe.protocol.replace(/:$/,""):"",host:oe.host,search:oe.search?oe.search.replace(/^\?/,""):"",hash:oe.hash?oe.hash.replace(/^#/,""):"",hostname:oe.hostname,port:oe.port,pathname:oe.pathname.charAt(0)==="/"?oe.pathname:"/"+oe.pathname}}return ae=ie(window.location.href),function(pe){const _e=utils$8.isString(pe)?ie(pe):pe;return _e.protocol===ae.protocol&&_e.host===ae.host}}():function(){return function(){return!0}}();function parseProtocol($){const z=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return z&&z[1]||""}function speedometer($,z){$=$||10;const oe=new Array($),ae=new Array($);let ie=0,le=0,pe;return z=z!==void 0?z:1e3,function(Ce){const $e=Date.now(),xe=ae[le];pe||(pe=$e),oe[ie]=Ce,ae[ie]=$e;let Ie=le,Ne=0;for(;Ie!==ie;)Ne+=oe[Ie++],Ie=Ie%$;if(ie=(ie+1)%$,ie===le&&(le=(le+1)%$),$e-pe<z)return;const Fe=xe&&$e-xe;return Fe?Math.round(Ne*1e3/Fe):void 0}}function progressEventReducer($,z){let oe=0;const ae=speedometer(50,250);return ie=>{const le=ie.loaded,pe=ie.lengthComputable?ie.total:void 0,_e=le-oe,Ce=ae(_e),$e=le<=pe;oe=le;const xe={loaded:le,total:pe,progress:pe?le/pe:void 0,bytes:_e,rate:Ce||void 0,estimated:Ce&&pe&&$e?(pe-le)/Ce:void 0,event:ie};xe[z?"download":"upload"]=!0,$(xe)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function($){return new Promise(function(oe,ae){let ie=$.data;const le=AxiosHeaders$1.from($.headers).normalize(),pe=$.responseType;let _e;function Ce(){$.cancelToken&&$.cancelToken.unsubscribe(_e),$.signal&&$.signal.removeEventListener("abort",_e)}utils$8.isFormData(ie)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?le.setContentType(!1):le.setContentType("multipart/form-data;",!1));let $e=new XMLHttpRequest;if($.auth){const Fe=$.auth.username||"",ze=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";le.set("Authorization","Basic "+btoa(Fe+":"+ze))}const xe=buildFullPath($.baseURL,$.url);$e.open($.method.toUpperCase(),buildURL(xe,$.params,$.paramsSerializer),!0),$e.timeout=$.timeout;function Ie(){if(!$e)return;const Fe=AxiosHeaders$1.from("getAllResponseHeaders"in $e&&$e.getAllResponseHeaders()),At={data:!pe||pe==="text"||pe==="json"?$e.responseText:$e.response,status:$e.status,statusText:$e.statusText,headers:Fe,config:$,request:$e};settle(function(hn){oe(hn),Ce()},function(hn){ae(hn),Ce()},At),$e=null}if("onloadend"in $e?$e.onloadend=Ie:$e.onreadystatechange=function(){!$e||$e.readyState!==4||$e.status===0&&!($e.responseURL&&$e.responseURL.indexOf("file:")===0)||setTimeout(Ie)},$e.onabort=function(){$e&&(ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,$,$e)),$e=null)},$e.onerror=function(){ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,$e)),$e=null},$e.ontimeout=function(){let ze=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";const At=$.transitional||transitionalDefaults;$.timeoutErrorMessage&&(ze=$.timeoutErrorMessage),ae(new AxiosError(ze,At.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,$,$e)),$e=null},platform$1.isStandardBrowserEnv){const Fe=($.withCredentials||isURLSameOrigin(xe))&&$.xsrfCookieName&&cookies.read($.xsrfCookieName);Fe&&le.set($.xsrfHeaderName,Fe)}ie===void 0&&le.setContentType(null),"setRequestHeader"in $e&&utils$8.forEach(le.toJSON(),function(ze,At){$e.setRequestHeader(At,ze)}),utils$8.isUndefined($.withCredentials)||($e.withCredentials=!!$.withCredentials),pe&&pe!=="json"&&($e.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&$e.addEventListener("progress",progressEventReducer($.onDownloadProgress,!0)),typeof $.onUploadProgress=="function"&&$e.upload&&$e.upload.addEventListener("progress",progressEventReducer($.onUploadProgress)),($.cancelToken||$.signal)&&(_e=Fe=>{$e&&(ae(!Fe||Fe.type?new CanceledError(null,$,$e):Fe),$e.abort(),$e=null)},$.cancelToken&&$.cancelToken.subscribe(_e),$.signal&&($.signal.aborted?_e():$.signal.addEventListener("abort",_e)));const Ne=parseProtocol(xe);if(Ne&&platform$1.protocols.indexOf(Ne)===-1){ae(new AxiosError("Unsupported protocol "+Ne+":",AxiosError.ERR_BAD_REQUEST,$));return}$e.send(ie||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$8.forEach(knownAdapters,($,z)=>{if($){try{Object.defineProperty($,"name",{value:z})}catch{}Object.defineProperty($,"adapterName",{value:z})}});const adapters={getAdapter:$=>{$=utils$8.isArray($)?$:[$];const{length:z}=$;let oe,ae;for(let ie=0;ie<z&&(oe=$[ie],!(ae=utils$8.isString(oe)?knownAdapters[oe.toLowerCase()]:oe));ie++);if(!ae)throw ae===!1?new AxiosError(`Adapter ${oe} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(utils$8.hasOwnProp(knownAdapters,oe)?`Adapter '${oe}' is not available in the build`:`Unknown adapter '${oe}'`);if(!utils$8.isFunction(ae))throw new TypeError("adapter is not a function");return ae},adapters:knownAdapters};function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new CanceledError(null,$)}function dispatchRequest($){return throwIfCancellationRequested($),$.headers=AxiosHeaders$1.from($.headers),$.data=transformData.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1&&$.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter($.adapter||defaults$4.adapter)($).then(function(ae){return throwIfCancellationRequested($),ae.data=transformData.call($,$.transformResponse,ae),ae.headers=AxiosHeaders$1.from(ae.headers),ae},function(ae){return isCancel(ae)||(throwIfCancellationRequested($),ae&&ae.response&&(ae.response.data=transformData.call($,$.transformResponse,ae.response),ae.response.headers=AxiosHeaders$1.from(ae.response.headers))),Promise.reject(ae)})}const headersToObject=$=>$ instanceof AxiosHeaders$1?$.toJSON():$;function mergeConfig($,z){z=z||{};const oe={};function ae($e,xe,Ie){return utils$8.isPlainObject($e)&&utils$8.isPlainObject(xe)?utils$8.merge.call({caseless:Ie},$e,xe):utils$8.isPlainObject(xe)?utils$8.merge({},xe):utils$8.isArray(xe)?xe.slice():xe}function ie($e,xe,Ie){if(utils$8.isUndefined(xe)){if(!utils$8.isUndefined($e))return ae(void 0,$e,Ie)}else return ae($e,xe,Ie)}function le($e,xe){if(!utils$8.isUndefined(xe))return ae(void 0,xe)}function pe($e,xe){if(utils$8.isUndefined(xe)){if(!utils$8.isUndefined($e))return ae(void 0,$e)}else return ae(void 0,xe)}function _e($e,xe,Ie){if(Ie in z)return ae($e,xe);if(Ie in $)return ae(void 0,$e)}const Ce={url:le,method:le,data:le,baseURL:pe,transformRequest:pe,transformResponse:pe,paramsSerializer:pe,timeout:pe,timeoutMessage:pe,withCredentials:pe,adapter:pe,responseType:pe,xsrfCookieName:pe,xsrfHeaderName:pe,onUploadProgress:pe,onDownloadProgress:pe,decompress:pe,maxContentLength:pe,maxBodyLength:pe,beforeRedirect:pe,transport:pe,httpAgent:pe,httpsAgent:pe,cancelToken:pe,socketPath:pe,responseEncoding:pe,validateStatus:_e,headers:($e,xe)=>ie(headersToObject($e),headersToObject(xe),!0)};return utils$8.forEach(Object.keys(Object.assign({},$,z)),function(xe){const Ie=Ce[xe]||ie,Ne=Ie($[xe],z[xe],xe);utils$8.isUndefined(Ne)&&Ie!==_e||(oe[xe]=Ne)}),oe}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach(($,z)=>{validators$1[$]=function(ae){return typeof ae===$||"a"+(z<1?"n ":" ")+$}});const deprecatedWarnings={};validators$1.transitional=function(z,oe,ae){function ie(le,pe){return"[Axios v"+VERSION+"] Transitional option '"+le+"'"+pe+(ae?". "+ae:"")}return(le,pe,_e)=>{if(z===!1)throw new AxiosError(ie(pe," has been removed"+(oe?" in "+oe:"")),AxiosError.ERR_DEPRECATED);return oe&&!deprecatedWarnings[pe]&&(deprecatedWarnings[pe]=!0,console.warn(ie(pe," has been deprecated since v"+oe+" and will be removed in the near future"))),z?z(le,pe,_e):!0}};function assertOptions($,z,oe){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ae=Object.keys($);let ie=ae.length;for(;ie-- >0;){const le=ae[ie],pe=z[le];if(pe){const _e=$[le],Ce=_e===void 0||pe(_e,le,$);if(Ce!==!0)throw new AxiosError("option "+le+" must be "+Ce,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(oe!==!0)throw new AxiosError("Unknown option "+le,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(z){this.defaults=z,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(z,oe){typeof z=="string"?(oe=oe||{},oe.url=z):oe=z||{},oe=mergeConfig(this.defaults,oe);const{transitional:ae,paramsSerializer:ie,headers:le}=oe;ae!==void 0&&validator.assertOptions(ae,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ie!=null&&(utils$8.isFunction(ie)?oe.paramsSerializer={serialize:ie}:validator.assertOptions(ie,{encode:validators.function,serialize:validators.function},!0)),oe.method=(oe.method||this.defaults.method||"get").toLowerCase();let pe;pe=le&&utils$8.merge(le.common,le[oe.method]),pe&&utils$8.forEach(["delete","get","head","post","put","patch","common"],ze=>{delete le[ze]}),oe.headers=AxiosHeaders$1.concat(pe,le);const _e=[];let Ce=!0;this.interceptors.request.forEach(function(At){typeof At.runWhen=="function"&&At.runWhen(oe)===!1||(Ce=Ce&&At.synchronous,_e.unshift(At.fulfilled,At.rejected))});const $e=[];this.interceptors.response.forEach(function(At){$e.push(At.fulfilled,At.rejected)});let xe,Ie=0,Ne;if(!Ce){const ze=[dispatchRequest.bind(this),void 0];for(ze.unshift.apply(ze,_e),ze.push.apply(ze,$e),Ne=ze.length,xe=Promise.resolve(oe);Ie<Ne;)xe=xe.then(ze[Ie++],ze[Ie++]);return xe}Ne=_e.length;let Fe=oe;for(Ie=0;Ie<Ne;){const ze=_e[Ie++],At=_e[Ie++];try{Fe=ze(Fe)}catch(Lt){At.call(this,Lt);break}}try{xe=dispatchRequest.call(this,Fe)}catch(ze){return Promise.reject(ze)}for(Ie=0,Ne=$e.length;Ie<Ne;)xe=xe.then($e[Ie++],$e[Ie++]);return xe}getUri(z){z=mergeConfig(this.defaults,z);const oe=buildFullPath(z.baseURL,z.url);return buildURL(oe,z.params,z.paramsSerializer)}}utils$8.forEach(["delete","get","head","options"],function(z){Axios.prototype[z]=function(oe,ae){return this.request(mergeConfig(ae||{},{method:z,url:oe,data:(ae||{}).data}))}});utils$8.forEach(["post","put","patch"],function(z){function oe(ae){return function(le,pe,_e){return this.request(mergeConfig(_e||{},{method:z,headers:ae?{"Content-Type":"multipart/form-data"}:{},url:le,data:pe}))}}Axios.prototype[z]=oe(),Axios.prototype[z+"Form"]=oe(!0)});const Axios$1=Axios;class CancelToken{constructor(z){if(typeof z!="function")throw new TypeError("executor must be a function.");let oe;this.promise=new Promise(function(le){oe=le});const ae=this;this.promise.then(ie=>{if(!ae._listeners)return;let le=ae._listeners.length;for(;le-- >0;)ae._listeners[le](ie);ae._listeners=null}),this.promise.then=ie=>{let le;const pe=new Promise(_e=>{ae.subscribe(_e),le=_e}).then(ie);return pe.cancel=function(){ae.unsubscribe(le)},pe},z(function(le,pe,_e){ae.reason||(ae.reason=new CanceledError(le,pe,_e),oe(ae.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(z){if(this.reason){z(this.reason);return}this._listeners?this._listeners.push(z):this._listeners=[z]}unsubscribe(z){if(!this._listeners)return;const oe=this._listeners.indexOf(z);oe!==-1&&this._listeners.splice(oe,1)}static source(){let z;return{token:new CancelToken(function(ie){z=ie}),cancel:z}}}const CancelToken$1=CancelToken;function spread($){return function(oe){return $.apply(null,oe)}}function isAxiosError($){return utils$8.isObject($)&&$.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(([$,z])=>{HttpStatusCode[z]=$});const HttpStatusCode$1=HttpStatusCode;function createInstance($){const z=new Axios$1($),oe=bind$4(Axios$1.prototype.request,z);return utils$8.extend(oe,Axios$1.prototype,z,{allOwnKeys:!0}),utils$8.extend(oe,z,null,{allOwnKeys:!0}),oe.create=function(ie){return createInstance(mergeConfig($,ie))},oe}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(z){return Promise.all(z)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=$=>formDataToJSON(utils$8.isHTMLForm($)?new FormData($):$);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=$=>{config=Object.assign(config,$)},getConfig=$=>{if(typeof $=="string"){const z=$.split(".");if(z&&z.length){let oe=config;return z.forEach(ae=>{oe&&typeof oe[ae]<"u"?oe=oe[ae]:oe=null}),oe}}return config},getServerConfig=async $=>($.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:z})=>{let oe=$.config.globalProperties.$config;return $&&oe&&typeof z=="object"&&(oe=Object.assign(oe,z),$.config.globalProperties.$config=oe,setConfig(oe)),oe}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n($="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(([z,oe])=>[z.match(/([A-Za-z0-9-_]+)\./i)[1],oe.default]))[$]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n($=""){var oe;if(!$)return"";if(typeof $=="object"){const ae=i18n.global.locale;return $[ae==null?void 0:ae.value]}const z=(oe=$.match(/(\S*)\./))==null?void 0:oe[1];return z&&Object.keys(siphonI18n("zh-CN")).includes(z)||!z&&Object.keys(siphonI18n("zh-CN")).includes($)?i18n.global.t.call(i18n.global.locale,$):$}const $t=$=>$;var Qo;const i18n=createI18n({legacy:!1,locale:((Qo=Kn().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:Qo.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n($){$.use(i18n)}const home$1=0,doc=1,utils$7=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/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark-7aa63401.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-67aba2ff.js"),["static/js/print-67aba2ff.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-35e38023.js","static/js/app-2c822755.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-e2a278e9.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-8fcec301.js"),["static/js/icon-select-8fcec301.js","static/css/icon-select-f6ac52ad.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-20851b74.js"),["static/js/timeline-20851b74.js","static/js/index-e00e2602.js","static/css/index-18417f34.css","static/js/hooks-47b97b33.js","static/js/iphone-bcaa848c.js","static/css/timeline-12434188.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-0cb7dc11.js"),["static/js/menu-tree-0cb7dc11.js","static/js/hooks-47b97b33.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-46c89679.js"),["static/js/line-tree-46c89679.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-977f18e0.js"),["static/js/debounce-977f18e0.js","static/js/message-e6e365bf.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-0f97f402.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-4c59c224.js"),["static/js/qrcode-4c59c224.js","static/js/message-e6e365bf.js","static/js/index-a7bad971.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader-a398d9cd.js"),["static/js/cascader-a398d9cd.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-818d0cd5.js"),["static/js/swiper-818d0cd5.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-d9e3c002.js"),["static/js/index-d9e3c002.js","static/js/vertical-9949cca4.js","static/js/vue-virtual-scroller.esm-ac296170.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-af5a3726.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf-b55b75ce.js"),["static/js/pdf-b55b75ce.js","static/js/vue.runtime.esm-bundler-2aa5afab.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-74cd163c.js"),["static/js/execl-74cd163c.js","static/js/xlsx-e927f539.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-cd887682.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}}]},__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("./index-22cd95b9.js"),["static/js/index-22cd95b9.js","static/js/columns-9e7e3b78.js","static/css/index-cb8197dd.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/video",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"Dialog",component:()=>__vitePreload(()=>import("./index-26a72cca.js"),["static/js/index-26a72cca.js","static/js/message-e6e365bf.js","static/js/form.vue_vue_type_script_setup_true_lang-84d16574.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("./index-e3245e3e.js"),["static/js/index-e3245e3e.js","static/js/message-e6e365bf.js","static/js/hooks-47b97b33.js","static/js/check-3815600c.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/segmented",name:"Segmented",component:()=>__vitePreload(()=>import("./index-2ce26a3b.js"),["static/js/index-2ce26a3b.js","static/js/message-e6e365bf.js","static/js/home-filled-05cc090c.js","static/js/hooks-47b97b33.js","static/css/index-fa517f4b.css"]),meta:{title:$t("menus.hssegmented"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/waterfall",name:"Waterfall",component:()=>__vitePreload(()=>import("./index-541dd466.js"),["static/js/index-541dd466.js","static/js/back_top-cbe59047.js","static/css/index-d102724b.css"]),meta:{title:$t("menus.hswaterfall"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/video",name:"Video",component:()=>__vitePreload(()=>import("./index-5679ddd6.js"),["static/js/index-5679ddd6.js","static/js/hooks-47b97b33.js","static/css/index-11b4621f.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"Map",component:()=>__vitePreload(()=>import("./index-9b83880f.js"),["static/js/index-9b83880f.js","static/css/index-d504fa9c.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-95460b0c.js"),["static/js/index-95460b0c.js","static/js/sortable.esm-679e0872.js","static/js/app-2c822755.js","static/js/hooks-47b97b33.js","static/css/index-b2ddca14.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-349725f0.js"),["static/js/index-349725f0.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"Button",component:()=>__vitePreload(()=>import("./index-d9fe707f.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-5a891c2f.js"),["static/js/index-5a891c2f.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-68c31dba.js"),["static/js/index-68c31dba.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-171d3e19.js"),["static/js/index-171d3e19.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-1155c1a2.js"),["static/js/index-1155c1a2.js","static/js/index-20b90cee.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-8bdb57ca.js"),["static/js/index-8bdb57ca.js","static/js/basic-66d61a16.js","static/js/index.esm-5113fb74.js","static/css/basic-d842f1a0.css","static/js/menuGroup-8c7c4e25.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-d25cba3e.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index-73cb0a1e.js"),["static/js/index-73cb0a1e.js","static/js/index-01416050.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-41622e89.js"),["static/js/index-41622e89.js","static/js/styles-3f4f2d5e.js","static/js/vue.runtime.esm-bundler-2aa5afab.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-f934c7c0.js"),["static/js/index-f934c7c0.js","static/css/index-14392f45.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("./index-d4bd3586.js"),["static/js/index-d4bd3586.js","static/js/hooks-47b97b33.js","static/js/edit-d219f0c6.js","static/css/index-f38a3df6.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-b2e67115.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-a48c13b1.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-6725eca8.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("./index-c0dcec26.js"),["static/js/index-c0dcec26.js","static/js/hooks-47b97b33.js","static/js/styles-3f4f2d5e.js","static/js/vue.runtime.esm-bundler-2aa5afab.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.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-49201d53.js"),["static/js/frameView-49201d53.js","static/css/frameView-ed080731.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("./index-60c7eb9e.js"),["static/js/index-60c7eb9e.js","static/css/index-38ef32bb.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("./index-dccd5eb2.js"),["static/js/index-dccd5eb2.js","static/js/menu-a4fe64fb.js","static/js/edit-d219f0c6.js","static/js/set-up-e6942411.js","static/js/home-filled-05cc090c.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-b4e9c3d9.js","static/js/app-2c822755.js","static/js/epTheme-8be6290d.js","static/js/hooks-47b97b33.js","static/js/index-20b90cee.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/js/back_top-cbe59047.js","static/css/index-9ec9a9c1.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("./index-ea785ea7.js"),["static/js/index-ea785ea7.js","static/js/Bar.vue_vue_type_script_setup_true_lang-cd93e600.js","static/js/app-2c822755.js","static/js/Pie.vue_vue_type_script_setup_true_lang-0f1dfa14.js","static/js/Line.vue_vue_type_script_setup_true_lang-35e38023.js","static/js/index-01416050.js","static/js/index-20b90cee.js","static/js/Github.vue_vue_type_script_setup_true_lang-2d4c3078.js","static/js/columns-ef76d9a9.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-e00e2602.js","static/css/index-18417f34.css","static/css/index-76b99267.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("./index-00e9fc60.js"),["static/js/index-00e9fc60.js","static/js/Card-ebfc92c1.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-e6e365bf.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-e9838997.js","static/js/hooks-47b97b33.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.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("./index-1fb18c7d.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("./index-90dd8109.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("./index-4ba3c90c.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("./index-71daf1f4.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("./index-56973358.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-1dbd68b4.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-49201d53.js"),["static/js/frameView-49201d53.js","static/css/frameView-ed080731.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($,z){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView-49201d53.js"),["static/js/frameView-49201d53.js","static/css/frameView-ed080731.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-49201d53.js"),["static/js/frameView-49201d53.js","static/css/frameView-ed080731.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$7},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-41fe1fe5.js"),["static/js/success-41fe1fe5.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-b9a7eecc.js"),["static/js/fail-b9a7eecc.js","static/js/columns-09bdd76b.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.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("./index-e2171acc.js"),["static/js/index-e2171acc.js","static/js/list-4d647718.js","static/js/base.vue_vue_type_script_setup_true_lang-185bcc5b.js","static/js/data-5208a047.js","static/js/stripe.vue_vue_type_script_setup_true_lang-c0a35138.js","static/js/border.vue_vue_type_script_setup_true_lang-8a297b5e.js","static/js/status.vue_vue_type_style_index_0_lang-2ca35ef3.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-9df9df5e.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5c604312.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-db73faf3.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-6f52e2eb.js","static/js/radio.vue_vue_type_script_setup_true_lang-2ecb3a49.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-67656f37.js","static/js/sortable.vue_vue_type_script_setup_true_lang-f68b451a.js","static/js/filters.vue_vue_type_script_setup_true_lang-f245da04.js","static/js/index.vue_vue_type_script_setup_true_lang-0d384020.js","static/js/columns-b89e49b0.js","static/js/message-e6e365bf.js","static/js/index.vue_vue_type_script_setup_true_lang-2fa6755e.js","static/js/columns-28b47a22.js","static/js/expand.vue_vue_type_script_setup_true_lang-3d81dd2b.js","static/js/tree.vue_vue_type_script_setup_true_lang-f4746ea9.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-cef1c6c2.js","static/js/merge.vue_vue_type_script_setup_true_lang-e20c991c.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-c37e85c7.js","static/js/layout.vue_vue_type_script_setup_true_lang-9f590848.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-b55a768c.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c5855999.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-0e53a8cc.js"),["static/js/high-0e53a8cc.js","static/js/list-071710ff.js","static/js/index.vue_vue_type_script_setup_true_lang-eaec8c84.js","static/js/columns-d5598001.js","static/js/data-b773037a.js","static/js/index.vue_vue_type_script_setup_true_lang-b7589ea4.js","static/js/columns-01373f81.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-ab7da5a7.js","static/js/columns-ee2085a5.js","static/js/index.vue_vue_type_script_setup_true_lang-8e94f9eb.js","static/js/columns-53f3efec.js","static/js/message-e6e365bf.js","static/js/index.vue_vue_type_script_setup_true_lang-218d3451.js","static/js/columns-f4bdbbab.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-a0a2ea18.js","static/js/columns-81eb1784.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-5573b118.js","static/js/columns-7bc1ada8.js","static/js/index.vue_vue_type_script_setup_true_lang-2e08a252.js","static/js/columns-d323691e.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-42e4100e.js","static/js/columns-0c66f27d.js","static/js/index-20b90cee.js","static/js/index.vue_vue_type_script_setup_true_lang-5b80f491.js","static/js/index.vue_vue_type_script_setup_true_lang-d808ba9d.js","static/js/columns-0196fa7c.js","static/js/index.vue_vue_type_script_setup_true_lang-83d93c8a.js","static/js/columns-50e1c67e.js","static/css/high-5bc3f1f1.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($){for(var z=1;z<arguments.length;z++){var oe=arguments[z];for(var ae in oe)$[ae]=oe[ae]}return $}var defaultConverter={read:function($){return $[0]==='"'&&($=$.slice(1,-1)),$.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function($){return encodeURIComponent($).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$2($,z){function oe(ie,le,pe){if(!(typeof document>"u")){pe=assign$3({},z,pe),typeof pe.expires=="number"&&(pe.expires=new Date(Date.now()+pe.expires*864e5)),pe.expires&&(pe.expires=pe.expires.toUTCString()),ie=encodeURIComponent(ie).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var _e="";for(var Ce in pe)pe[Ce]&&(_e+="; "+Ce,pe[Ce]!==!0&&(_e+="="+pe[Ce].split(";")[0]));return document.cookie=ie+"="+$.write(le,ie)+_e}}function ae(ie){if(!(typeof document>"u"||arguments.length&&!ie)){for(var le=document.cookie?document.cookie.split("; "):[],pe={},_e=0;_e<le.length;_e++){var Ce=le[_e].split("="),$e=Ce.slice(1).join("=");try{var xe=decodeURIComponent(Ce[0]);if(pe[xe]=$.read($e,xe),ie===xe)break}catch{}}return ie?pe[ie]:pe}}return Object.create({set:oe,get:ae,remove:function(ie,le){oe(ie,"",assign$3({},le,{expires:-1}))},withAttributes:function(ie){return init$2(this.converter,assign$3({},this.attributes,ie))},withConverter:function(ie){return init$2(assign$3({},this.converter,ie),this.attributes)}},{attributes:{value:Object.freeze(z)},converter:{value:Object.freeze($)}})}var api=init$2(defaultConverter,{path:"/"});/*!
|
||
* pinia v2.0.36
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let activePinia;const setActivePinia=$=>activePinia=$,piniaSymbol=Symbol();function isPlainObject($){return $&&typeof $=="object"&&Object.prototype.toString.call($)==="[object Object]"&&typeof $.toJSON!="function"}var MutationType;(function($){$.direct="direct",$.patchObject="patch object",$.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const $=effectScope(!0),z=$.run(()=>ref({}));let oe=[],ae=[];const ie=markRaw({install(le){setActivePinia(ie),ie._a=le,le.provide(piniaSymbol,ie),le.config.globalProperties.$pinia=ie,ae.forEach(pe=>oe.push(pe)),ae=[]},use(le){return!this._a&&!isVue2?ae.push(le):oe.push(le),this},_p:oe,_a:null,_e:$,_s:new Map,state:z});return ie}const noop$3=()=>{};function addSubscription($,z,oe,ae=noop$3){$.push(z);const ie=()=>{const le=$.indexOf(z);le>-1&&($.splice(le,1),ae())};return!oe&&getCurrentScope()&&onScopeDispose(ie),ie}function triggerSubscriptions($,...z){$.slice().forEach(oe=>{oe(...z)})}function mergeReactiveObjects($,z){$ instanceof Map&&z instanceof Map&&z.forEach((oe,ae)=>$.set(ae,oe)),$ instanceof Set&&z instanceof Set&&z.forEach($.add,$);for(const oe in z){if(!z.hasOwnProperty(oe))continue;const ae=z[oe],ie=$[oe];isPlainObject(ie)&&isPlainObject(ae)&&$.hasOwnProperty(oe)&&!isRef(ae)&&!isReactive(ae)?$[oe]=mergeReactiveObjects(ie,ae):$[oe]=ae}return $}const skipHydrateSymbol=Symbol();function shouldHydrate($){return!isPlainObject($)||!$.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed($){return!!(isRef($)&&$.effect)}function createOptionsStore($,z,oe,ae){const{state:ie,actions:le,getters:pe}=z,_e=oe.state.value[$];let Ce;function $e(){_e||(oe.state.value[$]=ie?ie():{});const xe=toRefs(oe.state.value[$]);return assign$2(xe,le,Object.keys(pe||{}).reduce((Ie,Ne)=>(Ie[Ne]=markRaw(computed(()=>{setActivePinia(oe);const Fe=oe._s.get($);return pe[Ne].call(Fe,Fe)})),Ie),{}))}return Ce=createSetupStore($,$e,z,oe,ae,!0),Ce}function createSetupStore($,z,oe={},ae,ie,le){let pe;const _e=assign$2({actions:{}},oe),Ce={deep:!0};let $e,xe,Ie=markRaw([]),Ne=markRaw([]),Fe;const ze=ae.state.value[$];!le&&!ze&&(ae.state.value[$]={}),ref({});let At;function Lt($n){let wn;$e=xe=!1,typeof $n=="function"?($n(ae.state.value[$]),wn={type:MutationType.patchFunction,storeId:$,events:Fe}):(mergeReactiveObjects(ae.state.value[$],$n),wn={type:MutationType.patchObject,payload:$n,storeId:$,events:Fe});const Tn=At=Symbol();nextTick().then(()=>{At===Tn&&($e=!0)}),xe=!0,triggerSubscriptions(Ie,wn,ae.state.value[$])}const hn=le?function(){const{state:wn}=oe,Tn=wn?wn():{};this.$patch(xn=>{assign$2(xn,Tn)})}:noop$3;function vn(){pe.stop(),Ie=[],Ne=[],ae._s.delete($)}function _n($n,wn){return function(){setActivePinia(ae);const Tn=Array.from(arguments),xn=[],kn=[];function An(Fn){xn.push(Fn)}function On(Fn){kn.push(Fn)}triggerSubscriptions(Ne,{args:Tn,name:$n,store:Cn,after:An,onError:On});let Mn;try{Mn=wn.apply(this&&this.$id===$?this:Cn,Tn)}catch(Fn){throw triggerSubscriptions(kn,Fn),Fn}return Mn instanceof Promise?Mn.then(Fn=>(triggerSubscriptions(xn,Fn),Fn)).catch(Fn=>(triggerSubscriptions(kn,Fn),Promise.reject(Fn))):(triggerSubscriptions(xn,Mn),Mn)}}const bn={_p:ae,$id:$,$onAction:addSubscription.bind(null,Ne),$patch:Lt,$reset:hn,$subscribe($n,wn={}){const Tn=addSubscription(Ie,$n,wn.detached,()=>xn()),xn=pe.run(()=>watch(()=>ae.state.value[$],kn=>{(wn.flush==="sync"?xe:$e)&&$n({storeId:$,type:MutationType.direct,events:Fe},kn)},assign$2({},Ce,wn)));return Tn},$dispose:vn},Cn=reactive(bn);ae._s.set($,Cn);const En=ae._e.run(()=>(pe=effectScope(),pe.run(()=>z())));for(const $n in En){const wn=En[$n];if(isRef(wn)&&!isComputed(wn)||isReactive(wn))le||(ze&&shouldHydrate(wn)&&(isRef(wn)?wn.value=ze[$n]:mergeReactiveObjects(wn,ze[$n])),ae.state.value[$][$n]=wn);else if(typeof wn=="function"){const Tn=_n($n,wn);En[$n]=Tn,_e.actions[$n]=wn}}return assign$2(Cn,En),assign$2(toRaw(Cn),En),Object.defineProperty(Cn,"$state",{get:()=>ae.state.value[$],set:$n=>{Lt(wn=>{assign$2(wn,$n)})}}),ae._p.forEach($n=>{assign$2(Cn,pe.run(()=>$n({store:Cn,app:ae._a,pinia:ae,options:_e})))}),ze&&le&&oe.hydrate&&oe.hydrate(Cn.$state,ze),$e=!0,xe=!0,Cn}function defineStore($,z,oe){let ae,ie;const le=typeof z=="function";typeof $=="string"?(ae=$,ie=le?oe:z):(ie=$,ae=$.id);function pe(_e,Ce){const $e=getCurrentInstance();return _e=_e||$e&&inject(piniaSymbol,null),_e&&setActivePinia(_e),_e=activePinia,_e._s.has(ae)||(le?createSetupStore(ae,z,ie,_e):createOptionsStore(ae,ie,_e)),_e._s.get(ae)}return pe.$id=ae,pe}function storeToRefs($){{$=toRaw($);const z={};for(const oe in $){const ae=$[oe];(isRef(ae)||isReactive(ae))&&(z[oe]=toRef$1($,oe))}return z}}const store=createPinia();function setupStore($){$.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",parentPath:"/",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 z={},oe=Symbol("test"),ae=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(ae)!=="[object Symbol]")return!1;var ie=42;z[oe]=ie;for(oe in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var le=Object.getOwnPropertySymbols(z);if(le.length!==1||le[0]!==oe||!Object.prototype.propertyIsEnumerable.call(z,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var pe=Object.getOwnPropertyDescriptor(z,oe);if(pe.value!==ie||pe.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()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(z){var oe=this;if(typeof oe!="function"||toStr$1.call(oe)!==funcType)throw new TypeError(ERROR_MESSAGE+oe);for(var ae=slice$1.call(arguments,1),ie,le=function(){if(this instanceof ie){var xe=oe.apply(this,ae.concat(slice$1.call(arguments)));return Object(xe)===xe?xe:this}else return oe.apply(z,ae.concat(slice$1.call(arguments)))},pe=Math.max(0,oe.length-ae.length),_e=[],Ce=0;Ce<pe;Ce++)_e.push("$"+Ce);if(ie=Function("binder","return function ("+_e.join(",")+"){ return binder.apply(this,arguments); }")(le),oe.prototype){var $e=function(){};$e.prototype=oe.prototype,ie.prototype=new $e,$e.prototype=null}return ie},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function($){try{return $Function('"use strict"; return ('+$+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function($){return $.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?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([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?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?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?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};try{null.error}catch($){var errorProto=getProto(getProto($));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function $(z){var oe;if(z==="%AsyncFunction%")oe=getEvalledConstructor("async function () {}");else if(z==="%GeneratorFunction%")oe=getEvalledConstructor("function* () {}");else if(z==="%AsyncGeneratorFunction%")oe=getEvalledConstructor("async function* () {}");else if(z==="%AsyncGenerator%"){var ae=$("%AsyncGeneratorFunction%");ae&&(oe=ae.prototype)}else if(z==="%AsyncIteratorPrototype%"){var ie=$("%AsyncGenerator%");ie&&(oe=getProto(ie.prototype))}return INTRINSICS[z]=oe,oe},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(z){var oe=$strSlice(z,0,1),ae=$strSlice(z,-1);if(oe==="%"&&ae!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(ae==="%"&&oe!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var ie=[];return $replace$1(z,rePropName,function(le,pe,_e,Ce){ie[ie.length]=_e?$replace$1(Ce,reEscapeChar,"$1"):pe||le}),ie},getBaseIntrinsic=function(z,oe){var ae=z,ie;if(hasOwn$2(LEGACY_ALIASES,ae)&&(ie=LEGACY_ALIASES[ae],ae="%"+ie[0]+"%"),hasOwn$2(INTRINSICS,ae)){var le=INTRINSICS[ae];if(le===needsEval&&(le=doEval(ae)),typeof le>"u"&&!oe)throw new $TypeError$1("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:ie,name:ae,value:le}}throw new $SyntaxError("intrinsic "+z+" does not exist!")},getIntrinsic=function(z,oe){if(typeof z!="string"||z.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,z)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ae=stringToPath(z),ie=ae.length>0?ae[0]:"",le=getBaseIntrinsic("%"+ie+"%",oe),pe=le.name,_e=le.value,Ce=!1,$e=le.alias;$e&&(ie=$e[0],$spliceApply(ae,$concat$1([0,1],$e)));for(var xe=1,Ie=!0;xe<ae.length;xe+=1){var Ne=ae[xe],Fe=$strSlice(Ne,0,1),ze=$strSlice(Ne,-1);if((Fe==='"'||Fe==="'"||Fe==="`"||ze==='"'||ze==="'"||ze==="`")&&Fe!==ze)throw new $SyntaxError("property names with quotes must have matching quotes");if((Ne==="constructor"||!Ie)&&(Ce=!0),ie+="."+Ne,pe="%"+ie+"%",hasOwn$2(INTRINSICS,pe))_e=INTRINSICS[pe];else if(_e!=null){if(!(Ne in _e)){if(!oe)throw new $TypeError$1("base intrinsic for "+z+" exists, but the property is not available.");return}if($gOPD&&xe+1>=ae.length){var At=$gOPD(_e,Ne);Ie=!!At,Ie&&"get"in At&&!("originalValue"in At.get)?_e=At.get:_e=_e[Ne]}else Ie=hasOwn$2(_e,Ne),_e=_e[Ne];Ie&&!Ce&&(INTRINSICS[pe]=_e)}}return _e},callBind$1={exports:{}};(function($){var z=functionBind,oe=getIntrinsic,ae=oe("%Function.prototype.apply%"),ie=oe("%Function.prototype.call%"),le=oe("%Reflect.apply%",!0)||z.call(ie,ae),pe=oe("%Object.getOwnPropertyDescriptor%",!0),_e=oe("%Object.defineProperty%",!0),Ce=oe("%Math.max%");if(_e)try{_e({},"a",{value:1})}catch{_e=null}$.exports=function(Ie){var Ne=le(z,ie,arguments);if(pe&&_e){var Fe=pe(Ne,"length");Fe.configurable&&_e(Ne,"length",{value:1+Ce(0,Ie.length-(arguments.length-1))})}return Ne};var $e=function(){return le(z,ae,arguments)};_e?_e($.exports,"apply",{value:$e}):$.exports.apply=$e})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(z,oe){var ae=GetIntrinsic$1(z,!!oe);return typeof ae=="function"&&$indexOf(z,".prototype.")>-1?callBind(ae):ae};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($){return $.__proto__}:null);function addNumericSeparator($,z){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||$test.call(/e/,z))return z;var oe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var ae=$<0?-$floor(-$):$floor($);if(ae!==$){var ie=String(ae),le=$slice.call(z,ie.length+1);return $replace.call(ie,oe,"$&_")+"."+$replace.call($replace.call(le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(z,oe,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function $(z,oe,ae,ie){var le=oe||{};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 pe=has$4(le,"customInspect")?le.customInspect:!0;if(typeof pe!="boolean"&&pe!=="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 _e=le.numericSeparator;if(typeof z>"u")return"undefined";if(z===null)return"null";if(typeof z=="boolean")return z?"true":"false";if(typeof z=="string")return inspectString(z,le);if(typeof z=="number"){if(z===0)return 1/0/z>0?"0":"-0";var Ce=String(z);return _e?addNumericSeparator(z,Ce):Ce}if(typeof z=="bigint"){var $e=String(z)+"n";return _e?addNumericSeparator(z,$e):$e}var xe=typeof le.depth>"u"?5:le.depth;if(typeof ae>"u"&&(ae=0),ae>=xe&&xe>0&&typeof z=="object")return isArray$7(z)?"[Array]":"[Object]";var Ie=getIndent(le,ae);if(typeof ie>"u")ie=[];else if(indexOf$1(ie,z)>=0)return"[Circular]";function Ne(On,Mn,Fn){if(Mn&&(ie=$arrSlice.call(ie),ie.push(Mn)),Fn){var Dn={depth:le.depth};return has$4(le,"quoteStyle")&&(Dn.quoteStyle=le.quoteStyle),$(On,Dn,ae+1,ie)}return $(On,le,ae+1,ie)}if(typeof z=="function"&&!isRegExp$2(z)){var Fe=nameOf(z),ze=arrObjKeys(z,Ne);return"[Function"+(Fe?": "+Fe:" (anonymous)")+"]"+(ze.length>0?" { "+$join.call(ze,", ")+" }":"")}if(isSymbol(z)){var At=hasShammedSymbols?$replace.call(String(z),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(z);return typeof z=="object"&&!hasShammedSymbols?markBoxed(At):At}if(isElement$1(z)){for(var Lt="<"+$toLowerCase.call(String(z.nodeName)),hn=z.attributes||[],vn=0;vn<hn.length;vn++)Lt+=" "+hn[vn].name+"="+wrapQuotes(quote(hn[vn].value),"double",le);return Lt+=">",z.childNodes&&z.childNodes.length&&(Lt+="..."),Lt+="</"+$toLowerCase.call(String(z.nodeName))+">",Lt}if(isArray$7(z)){if(z.length===0)return"[]";var _n=arrObjKeys(z,Ne);return Ie&&!singleLineValues(_n)?"["+indentedJoin(_n,Ie)+"]":"[ "+$join.call(_n,", ")+" ]"}if(isError(z)){var bn=arrObjKeys(z,Ne);return!("cause"in Error.prototype)&&"cause"in z&&!isEnumerable.call(z,"cause")?"{ ["+String(z)+"] "+$join.call($concat.call("[cause]: "+Ne(z.cause),bn),", ")+" }":bn.length===0?"["+String(z)+"]":"{ ["+String(z)+"] "+$join.call(bn,", ")+" }"}if(typeof z=="object"&&pe){if(inspectSymbol&&typeof z[inspectSymbol]=="function"&&utilInspect)return utilInspect(z,{depth:xe-ae});if(pe!=="symbol"&&typeof z.inspect=="function")return z.inspect()}if(isMap(z)){var Cn=[];return mapForEach&&mapForEach.call(z,function(On,Mn){Cn.push(Ne(Mn,z,!0)+" => "+Ne(On,z))}),collectionOf("Map",mapSize.call(z),Cn,Ie)}if(isSet(z)){var En=[];return setForEach&&setForEach.call(z,function(On){En.push(Ne(On,z))}),collectionOf("Set",setSize.call(z),En,Ie)}if(isWeakMap(z))return weakCollectionOf("WeakMap");if(isWeakSet(z))return weakCollectionOf("WeakSet");if(isWeakRef(z))return weakCollectionOf("WeakRef");if(isNumber$2(z))return markBoxed(Ne(Number(z)));if(isBigInt(z))return markBoxed(Ne(bigIntValueOf.call(z)));if(isBoolean(z))return markBoxed(booleanValueOf.call(z));if(isString$3(z))return markBoxed(Ne(String(z)));if(!isDate(z)&&!isRegExp$2(z)){var $n=arrObjKeys(z,Ne),wn=gPO?gPO(z)===Object.prototype:z instanceof Object||z.constructor===Object,Tn=z instanceof Object?"":"null prototype",xn=!wn&&toStringTag&&Object(z)===z&&toStringTag in z?$slice.call(toStr(z),8,-1):Tn?"Object":"",kn=wn||typeof z.constructor!="function"?"":z.constructor.name?z.constructor.name+" ":"",An=kn+(xn||Tn?"["+$join.call($concat.call([],xn||[],Tn||[]),": ")+"] ":"");return $n.length===0?An+"{}":Ie?An+"{"+indentedJoin($n,Ie)+"}":An+"{ "+$join.call($n,", ")+" }"}return String(z)};function wrapQuotes($,z,oe){var ae=(oe.quoteStyle||z)==="double"?'"':"'";return ae+$+ae}function quote($){return $replace.call(String($),/"/g,""")}function isArray$7($){return toStr($)==="[object Array]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isDate($){return toStr($)==="[object Date]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isRegExp$2($){return toStr($)==="[object RegExp]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isError($){return toStr($)==="[object Error]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isString$3($){return toStr($)==="[object String]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isNumber$2($){return toStr($)==="[object Number]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isBoolean($){return toStr($)==="[object Boolean]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isSymbol($){if(hasShammedSymbols)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!symToString)return!1;try{return symToString.call($),!0}catch{}return!1}function isBigInt($){if(!$||typeof $!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call($),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function($){return $ in this};function has$4($,z){return hasOwn$1.call($,z)}function toStr($){return objectToString.call($)}function nameOf($){if($.name)return $.name;var z=$match.call(functionToString.call($),/^function\s*([\w$]+)/);return z?z[1]:null}function indexOf$1($,z){if($.indexOf)return $.indexOf(z);for(var oe=0,ae=$.length;oe<ae;oe++)if($[oe]===z)return oe;return-1}function isMap($){if(!mapSize||!$||typeof $!="object")return!1;try{mapSize.call($);try{setSize.call($)}catch{return!0}return $ instanceof Map}catch{}return!1}function isWeakMap($){if(!weakMapHas||!$||typeof $!="object")return!1;try{weakMapHas.call($,weakMapHas);try{weakSetHas.call($,weakSetHas)}catch{return!0}return $ instanceof WeakMap}catch{}return!1}function isWeakRef($){if(!weakRefDeref||!$||typeof $!="object")return!1;try{return weakRefDeref.call($),!0}catch{}return!1}function isSet($){if(!setSize||!$||typeof $!="object")return!1;try{setSize.call($);try{mapSize.call($)}catch{return!0}return $ instanceof Set}catch{}return!1}function isWeakSet($){if(!weakSetHas||!$||typeof $!="object")return!1;try{weakSetHas.call($,weakSetHas);try{weakMapHas.call($,weakMapHas)}catch{return!0}return $ instanceof WeakSet}catch{}return!1}function isElement$1($){return!$||typeof $!="object"?!1:typeof HTMLElement<"u"&&$ instanceof HTMLElement?!0:typeof $.nodeName=="string"&&typeof $.getAttribute=="function"}function inspectString($,z){if($.length>z.maxStringLength){var oe=$.length-z.maxStringLength,ae="... "+oe+" more character"+(oe>1?"s":"");return inspectString($slice.call($,0,z.maxStringLength),z)+ae}var ie=$replace.call($replace.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ie,"single",z)}function lowbyte($){var z=$.charCodeAt(0),oe={8:"b",9:"t",10:"n",12:"f",13:"r"}[z];return oe?"\\"+oe:"\\x"+(z<16?"0":"")+$toUpperCase.call(z.toString(16))}function markBoxed($){return"Object("+$+")"}function weakCollectionOf($){return $+" { ? }"}function collectionOf($,z,oe,ae){var ie=ae?indentedJoin(oe,ae):$join.call(oe,", ");return $+" ("+z+") {"+ie+"}"}function singleLineValues($){for(var z=0;z<$.length;z++)if(indexOf$1($[z],`
|
||
`)>=0)return!1;return!0}function getIndent($,z){var oe;if($.indent===" ")oe=" ";else if(typeof $.indent=="number"&&$.indent>0)oe=$join.call(Array($.indent+1)," ");else return null;return{base:oe,prev:$join.call(Array(z+1),oe)}}function indentedJoin($,z){if($.length===0)return"";var oe=`
|
||
`+z.prev+z.base;return oe+$join.call($,","+oe)+`
|
||
`+z.prev}function arrObjKeys($,z){var oe=isArray$7($),ae=[];if(oe){ae.length=$.length;for(var ie=0;ie<$.length;ie++)ae[ie]=has$4($,ie)?z($[ie],$):""}var le=typeof gOPS=="function"?gOPS($):[],pe;if(hasShammedSymbols){pe={};for(var _e=0;_e<le.length;_e++)pe["$"+le[_e]]=le[_e]}for(var Ce in $)has$4($,Ce)&&(oe&&String(Number(Ce))===Ce&&Ce<$.length||hasShammedSymbols&&pe["$"+Ce]instanceof Symbol||($test.call(/[^\w$]/,Ce)?ae.push(z(Ce,$)+": "+z($[Ce],$)):ae.push(Ce+": "+z($[Ce],$))));if(typeof gOPS=="function")for(var $e=0;$e<le.length;$e++)isEnumerable.call($,le[$e])&&ae.push("["+z(le[$e])+"]: "+z($[le[$e]],$));return ae}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function($,z){for(var oe=$,ae;(ae=oe.next)!==null;oe=ae)if(ae.key===z)return oe.next=ae.next,ae.next=$.next,$.next=ae,ae},listGet=function($,z){var oe=listGetNode($,z);return oe&&oe.value},listSet=function($,z,oe){var ae=listGetNode($,z);ae?ae.value=oe:$.next={key:z,next:$.next,value:oe}},listHas=function($,z){return!!listGetNode($,z)},sideChannel=function(){var z,oe,ae,ie={assert:function(le){if(!ie.has(le))throw new $TypeError("Side channel does not contain "+inspect(le))},get:function(le){if($WeakMap&&le&&(typeof le=="object"||typeof le=="function")){if(z)return $weakMapGet(z,le)}else if($Map){if(oe)return $mapGet(oe,le)}else if(ae)return listGet(ae,le)},has:function(le){if($WeakMap&&le&&(typeof le=="object"||typeof le=="function")){if(z)return $weakMapHas(z,le)}else if($Map){if(oe)return $mapHas(oe,le)}else if(ae)return listHas(ae,le);return!1},set:function(le,pe){$WeakMap&&le&&(typeof le=="object"||typeof le=="function")?(z||(z=new $WeakMap),$weakMapSet(z,le,pe)):$Map?(oe||(oe=new $Map),$mapSet(oe,le,pe)):(ae||(ae={key:{},next:null}),listSet(ae,le,pe))}};return ie},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function($){return replace.call($,percentTwenties,"+")},RFC3986:function($){return String($)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$3=Object.prototype.hasOwnProperty,isArray$6=Array.isArray,hexTable=function(){for(var $=[],z=0;z<256;++z)$.push("%"+((z<16?"0":"")+z.toString(16)).toUpperCase());return $}(),compactQueue=function(z){for(;z.length>1;){var oe=z.pop(),ae=oe.obj[oe.prop];if(isArray$6(ae)){for(var ie=[],le=0;le<ae.length;++le)typeof ae[le]<"u"&&ie.push(ae[le]);oe.obj[oe.prop]=ie}}},arrayToObject=function(z,oe){for(var ae=oe&&oe.plainObjects?Object.create(null):{},ie=0;ie<z.length;++ie)typeof z[ie]<"u"&&(ae[ie]=z[ie]);return ae},merge$1=function $(z,oe,ae){if(!oe)return z;if(typeof oe!="object"){if(isArray$6(z))z.push(oe);else if(z&&typeof z=="object")(ae&&(ae.plainObjects||ae.allowPrototypes)||!has$3.call(Object.prototype,oe))&&(z[oe]=!0);else return[z,oe];return z}if(!z||typeof z!="object")return[z].concat(oe);var ie=z;return isArray$6(z)&&!isArray$6(oe)&&(ie=arrayToObject(z,ae)),isArray$6(z)&&isArray$6(oe)?(oe.forEach(function(le,pe){if(has$3.call(z,pe)){var _e=z[pe];_e&&typeof _e=="object"&&le&&typeof le=="object"?z[pe]=$(_e,le,ae):z.push(le)}else z[pe]=le}),z):Object.keys(oe).reduce(function(le,pe){var _e=oe[pe];return has$3.call(le,pe)?le[pe]=$(le[pe],_e,ae):le[pe]=_e,le},ie)},assign$1=function(z,oe){return Object.keys(oe).reduce(function(ae,ie){return ae[ie]=oe[ie],ae},z)},decode$2=function($,z,oe){var ae=$.replace(/\+/g," ");if(oe==="iso-8859-1")return ae.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(ae)}catch{return ae}},encode=function(z,oe,ae,ie,le){if(z.length===0)return z;var pe=z;if(typeof z=="symbol"?pe=Symbol.prototype.toString.call(z):typeof z!="string"&&(pe=String(z)),ae==="iso-8859-1")return escape(pe).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var _e="",Ce=0;Ce<pe.length;++Ce){var $e=pe.charCodeAt(Ce);if($e===45||$e===46||$e===95||$e===126||$e>=48&&$e<=57||$e>=65&&$e<=90||$e>=97&&$e<=122||le===formats$2.RFC1738&&($e===40||$e===41)){_e+=pe.charAt(Ce);continue}if($e<128){_e=_e+hexTable[$e];continue}if($e<2048){_e=_e+(hexTable[192|$e>>6]+hexTable[128|$e&63]);continue}if($e<55296||$e>=57344){_e=_e+(hexTable[224|$e>>12]+hexTable[128|$e>>6&63]+hexTable[128|$e&63]);continue}Ce+=1,$e=65536+(($e&1023)<<10|pe.charCodeAt(Ce)&1023),_e+=hexTable[240|$e>>18]+hexTable[128|$e>>12&63]+hexTable[128|$e>>6&63]+hexTable[128|$e&63]}return _e},compact=function(z){for(var oe=[{obj:{o:z},prop:"o"}],ae=[],ie=0;ie<oe.length;++ie)for(var le=oe[ie],pe=le.obj[le.prop],_e=Object.keys(pe),Ce=0;Ce<_e.length;++Ce){var $e=_e[Ce],xe=pe[$e];typeof xe=="object"&&xe!==null&&ae.indexOf(xe)===-1&&(oe.push({obj:pe,prop:$e}),ae.push(xe))}return compactQueue(oe),z},isRegExp$1=function(z){return Object.prototype.toString.call(z)==="[object RegExp]"},isBuffer=function(z){return!z||typeof z!="object"?!1:!!(z.constructor&&z.constructor.isBuffer&&z.constructor.isBuffer(z))},combine=function(z,oe){return[].concat(z,oe)},maybeMap=function(z,oe){if(isArray$6(z)){for(var ae=[],ie=0;ie<z.length;ie+=1)ae.push(oe(z[ie]));return ae}return oe(z)},utils$6={arrayToObject,assign:assign$1,combine,compact,decode:decode$2,encode,isBuffer,isRegExp:isRegExp$1,maybeMap,merge:merge$1},getSideChannel=sideChannel,utils$5=utils$6,formats$1=formats$3,has$2=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(z){return z+"[]"},comma:"comma",indices:function(z,oe){return z+"["+oe+"]"},repeat:function(z){return z}},isArray$5=Array.isArray,push$1=Array.prototype.push,pushToArray=function($,z){push$1.apply($,isArray$5(z)?z:[z])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$2={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$5.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(z){return toISO.call(z)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(z){return typeof z=="string"||typeof z=="number"||typeof z=="boolean"||typeof z=="symbol"||typeof z=="bigint"},sentinel={},stringify$2=function $(z,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie,Ne,Fe,ze,At,Lt){for(var hn=z,vn=Lt,_n=0,bn=!1;(vn=vn.get(sentinel))!==void 0&&!bn;){var Cn=vn.get(z);if(_n+=1,typeof Cn<"u"){if(Cn===_n)throw new RangeError("Cyclic object value");bn=!0}typeof vn.get(sentinel)>"u"&&(_n=0)}if(typeof Ce=="function"?hn=Ce(oe,hn):hn instanceof Date?hn=Ie(hn):ae==="comma"&&isArray$5(hn)&&(hn=utils$5.maybeMap(hn,function(Dn){return Dn instanceof Date?Ie(Dn):Dn})),hn===null){if(le)return _e&&!ze?_e(oe,defaults$2.encoder,At,"key",Ne):oe;hn=""}if(isNonNullishPrimitive(hn)||utils$5.isBuffer(hn)){if(_e){var En=ze?oe:_e(oe,defaults$2.encoder,At,"key",Ne);return[Fe(En)+"="+Fe(_e(hn,defaults$2.encoder,At,"value",Ne))]}return[Fe(oe)+"="+Fe(String(hn))]}var $n=[];if(typeof hn>"u")return $n;var wn;if(ae==="comma"&&isArray$5(hn))ze&&_e&&(hn=utils$5.maybeMap(hn,_e)),wn=[{value:hn.length>0?hn.join(",")||null:void 0}];else if(isArray$5(Ce))wn=Ce;else{var Tn=Object.keys(hn);wn=$e?Tn.sort($e):Tn}for(var xn=ie&&isArray$5(hn)&&hn.length===1?oe+"[]":oe,kn=0;kn<wn.length;++kn){var An=wn[kn],On=typeof An=="object"&&typeof An.value<"u"?An.value:hn[An];if(!(pe&&On===null)){var Mn=isArray$5(hn)?typeof ae=="function"?ae(xn,An):xn:xn+(xe?"."+An:"["+An+"]");Lt.set(z,_n);var Fn=getSideChannel();Fn.set(sentinel,Lt),pushToArray($n,$(On,Mn,ae,ie,le,pe,ae==="comma"&&ze&&isArray$5(hn)?null:_e,Ce,$e,xe,Ie,Ne,Fe,ze,At,Fn))}}return $n},normalizeStringifyOptions=function(z){if(!z)return defaults$2;if(z.encoder!==null&&typeof z.encoder<"u"&&typeof z.encoder!="function")throw new TypeError("Encoder has to be a function.");var oe=z.charset||defaults$2.charset;if(typeof z.charset<"u"&&z.charset!=="utf-8"&&z.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var ae=formats$1.default;if(typeof z.format<"u"){if(!has$2.call(formats$1.formatters,z.format))throw new TypeError("Unknown format option provided.");ae=z.format}var ie=formats$1.formatters[ae],le=defaults$2.filter;return(typeof z.filter=="function"||isArray$5(z.filter))&&(le=z.filter),{addQueryPrefix:typeof z.addQueryPrefix=="boolean"?z.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof z.allowDots>"u"?defaults$2.allowDots:!!z.allowDots,charset:oe,charsetSentinel:typeof z.charsetSentinel=="boolean"?z.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof z.delimiter>"u"?defaults$2.delimiter:z.delimiter,encode:typeof z.encode=="boolean"?z.encode:defaults$2.encode,encoder:typeof z.encoder=="function"?z.encoder:defaults$2.encoder,encodeValuesOnly:typeof z.encodeValuesOnly=="boolean"?z.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:le,format:ae,formatter:ie,serializeDate:typeof z.serializeDate=="function"?z.serializeDate:defaults$2.serializeDate,skipNulls:typeof z.skipNulls=="boolean"?z.skipNulls:defaults$2.skipNulls,sort:typeof z.sort=="function"?z.sort:null,strictNullHandling:typeof z.strictNullHandling=="boolean"?z.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function($,z){var oe=$,ae=normalizeStringifyOptions(z),ie,le;typeof ae.filter=="function"?(le=ae.filter,oe=le("",oe)):isArray$5(ae.filter)&&(le=ae.filter,ie=le);var pe=[];if(typeof oe!="object"||oe===null)return"";var _e;z&&z.arrayFormat in arrayPrefixGenerators?_e=z.arrayFormat:z&&"indices"in z?_e=z.indices?"indices":"repeat":_e="indices";var Ce=arrayPrefixGenerators[_e];if(z&&"commaRoundTrip"in z&&typeof z.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var $e=Ce==="comma"&&z&&z.commaRoundTrip;ie||(ie=Object.keys(oe)),ae.sort&&ie.sort(ae.sort);for(var xe=getSideChannel(),Ie=0;Ie<ie.length;++Ie){var Ne=ie[Ie];ae.skipNulls&&oe[Ne]===null||pushToArray(pe,stringify$2(oe[Ne],Ne,Ce,$e,ae.strictNullHandling,ae.skipNulls,ae.encode?ae.encoder:null,ae.filter,ae.sort,ae.allowDots,ae.serializeDate,ae.format,ae.formatter,ae.encodeValuesOnly,ae.charset,xe))}var Fe=pe.join(ae.delimiter),ze=ae.addQueryPrefix===!0?"?":"";return ae.charsetSentinel&&(ae.charset==="iso-8859-1"?ze+="utf8=%26%2310003%3B&":ze+="utf8=%E2%9C%93&"),Fe.length>0?ze+Fe:""},utils$4=utils$6,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$4.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function($){return $.replace(/&#(\d+);/g,function(z,oe){return String.fromCharCode(parseInt(oe,10))})},parseArrayValue=function($,z){return $&&typeof $=="string"&&z.comma&&$.indexOf(",")>-1?$.split(","):$},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(z,oe){var ae={},ie=oe.ignoreQueryPrefix?z.replace(/^\?/,""):z,le=oe.parameterLimit===1/0?void 0:oe.parameterLimit,pe=ie.split(oe.delimiter,le),_e=-1,Ce,$e=oe.charset;if(oe.charsetSentinel)for(Ce=0;Ce<pe.length;++Ce)pe[Ce].indexOf("utf8=")===0&&(pe[Ce]===charsetSentinel?$e="utf-8":pe[Ce]===isoSentinel&&($e="iso-8859-1"),_e=Ce,Ce=pe.length);for(Ce=0;Ce<pe.length;++Ce)if(Ce!==_e){var xe=pe[Ce],Ie=xe.indexOf("]="),Ne=Ie===-1?xe.indexOf("="):Ie+1,Fe,ze;Ne===-1?(Fe=oe.decoder(xe,defaults$1.decoder,$e,"key"),ze=oe.strictNullHandling?null:""):(Fe=oe.decoder(xe.slice(0,Ne),defaults$1.decoder,$e,"key"),ze=utils$4.maybeMap(parseArrayValue(xe.slice(Ne+1),oe),function(At){return oe.decoder(At,defaults$1.decoder,$e,"value")})),ze&&oe.interpretNumericEntities&&$e==="iso-8859-1"&&(ze=interpretNumericEntities(ze)),xe.indexOf("[]=")>-1&&(ze=isArray$4(ze)?[ze]:ze),has$1.call(ae,Fe)?ae[Fe]=utils$4.combine(ae[Fe],ze):ae[Fe]=ze}return ae},parseObject=function($,z,oe,ae){for(var ie=ae?z:parseArrayValue(z,oe),le=$.length-1;le>=0;--le){var pe,_e=$[le];if(_e==="[]"&&oe.parseArrays)pe=[].concat(ie);else{pe=oe.plainObjects?Object.create(null):{};var Ce=_e.charAt(0)==="["&&_e.charAt(_e.length-1)==="]"?_e.slice(1,-1):_e,$e=parseInt(Ce,10);!oe.parseArrays&&Ce===""?pe={0:ie}:!isNaN($e)&&_e!==Ce&&String($e)===Ce&&$e>=0&&oe.parseArrays&&$e<=oe.arrayLimit?(pe=[],pe[$e]=ie):Ce!=="__proto__"&&(pe[Ce]=ie)}ie=pe}return ie},parseKeys=function(z,oe,ae,ie){if(z){var le=ae.allowDots?z.replace(/\.([^.[]+)/g,"[$1]"):z,pe=/(\[[^[\]]*])/,_e=/(\[[^[\]]*])/g,Ce=ae.depth>0&&pe.exec(le),$e=Ce?le.slice(0,Ce.index):le,xe=[];if($e){if(!ae.plainObjects&&has$1.call(Object.prototype,$e)&&!ae.allowPrototypes)return;xe.push($e)}for(var Ie=0;ae.depth>0&&(Ce=_e.exec(le))!==null&&Ie<ae.depth;){if(Ie+=1,!ae.plainObjects&&has$1.call(Object.prototype,Ce[1].slice(1,-1))&&!ae.allowPrototypes)return;xe.push(Ce[1])}return Ce&&xe.push("["+le.slice(Ce.index)+"]"),parseObject(xe,oe,ae,ie)}},normalizeParseOptions=function(z){if(!z)return defaults$1;if(z.decoder!==null&&z.decoder!==void 0&&typeof z.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof z.charset<"u"&&z.charset!=="utf-8"&&z.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var oe=typeof z.charset>"u"?defaults$1.charset:z.charset;return{allowDots:typeof z.allowDots>"u"?defaults$1.allowDots:!!z.allowDots,allowPrototypes:typeof z.allowPrototypes=="boolean"?z.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof z.allowSparse=="boolean"?z.allowSparse:defaults$1.allowSparse,arrayLimit:typeof z.arrayLimit=="number"?z.arrayLimit:defaults$1.arrayLimit,charset:oe,charsetSentinel:typeof z.charsetSentinel=="boolean"?z.charsetSentinel:defaults$1.charsetSentinel,comma:typeof z.comma=="boolean"?z.comma:defaults$1.comma,decoder:typeof z.decoder=="function"?z.decoder:defaults$1.decoder,delimiter:typeof z.delimiter=="string"||utils$4.isRegExp(z.delimiter)?z.delimiter:defaults$1.delimiter,depth:typeof z.depth=="number"||z.depth===!1?+z.depth:defaults$1.depth,ignoreQueryPrefix:z.ignoreQueryPrefix===!0,interpretNumericEntities:typeof z.interpretNumericEntities=="boolean"?z.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof z.parameterLimit=="number"?z.parameterLimit:defaults$1.parameterLimit,parseArrays:z.parseArrays!==!1,plainObjects:typeof z.plainObjects=="boolean"?z.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof z.strictNullHandling=="boolean"?z.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function($,z){var oe=normalizeParseOptions(z);if($===""||$===null||typeof $>"u")return oe.plainObjects?Object.create(null):{};for(var ae=typeof $=="string"?parseValues($,oe):$,ie=oe.plainObjects?Object.create(null):{},le=Object.keys(ae),pe=0;pe<le.length;++pe){var _e=le[pe],Ce=parseKeys(_e,ae[_e],oe,typeof $=="string");ie=utils$4.merge(ie,Ce,oe)}return oe.allowSparse===!0?ie:utils$4.compact(ie)},stringify$1=stringify_1,parse$3=parse$4,formats=formats$3,lib={formats,parse:parse$3,stringify:stringify$1},nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT */(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe={};oe.version="0.2.0";var ae=oe.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};oe.configure=function(ze){var At,Lt;for(At in ze)Lt=ze[At],Lt!==void 0&&ze.hasOwnProperty(At)&&(ae[At]=Lt);return this},oe.status=null,oe.set=function(ze){var At=oe.isStarted();ze=ie(ze,ae.minimum,1),oe.status=ze===1?null:ze;var Lt=oe.render(!At),hn=Lt.querySelector(ae.barSelector),vn=ae.speed,_n=ae.easing;return Lt.offsetWidth,_e(function(bn){ae.positionUsing===""&&(ae.positionUsing=oe.getPositioningCSS()),Ce(hn,pe(ze,vn,_n)),ze===1?(Ce(Lt,{transition:"none",opacity:1}),Lt.offsetWidth,setTimeout(function(){Ce(Lt,{transition:"all "+vn+"ms linear",opacity:0}),setTimeout(function(){oe.remove(),bn()},vn)},vn)):setTimeout(bn,vn)}),this},oe.isStarted=function(){return typeof oe.status=="number"},oe.start=function(){oe.status||oe.set(0);var ze=function(){setTimeout(function(){oe.status&&(oe.trickle(),ze())},ae.trickleSpeed)};return ae.trickle&&ze(),this},oe.done=function(ze){return!ze&&!oe.status?this:oe.inc(.3+.5*Math.random()).set(1)},oe.inc=function(ze){var At=oe.status;return At?(typeof ze!="number"&&(ze=(1-At)*ie(Math.random()*At,.1,.95)),At=ie(At+ze,0,.994),oe.set(At)):oe.start()},oe.trickle=function(){return oe.inc(Math.random()*ae.trickleRate)},function(){var ze=0,At=0;oe.promise=function(Lt){return!Lt||Lt.state()==="resolved"?this:(At===0&&oe.start(),ze++,At++,Lt.always(function(){At--,At===0?(ze=0,oe.done()):oe.set((ze-At)/ze)}),this)}}(),oe.render=function(ze){if(oe.isRendered())return document.getElementById("nprogress");xe(document.documentElement,"nprogress-busy");var At=document.createElement("div");At.id="nprogress",At.innerHTML=ae.template;var Lt=At.querySelector(ae.barSelector),hn=ze?"-100":le(oe.status||0),vn=document.querySelector(ae.parent),_n;return Ce(Lt,{transition:"all 0 linear",transform:"translate3d("+hn+"%,0,0)"}),ae.showSpinner||(_n=At.querySelector(ae.spinnerSelector),_n&&Fe(_n)),vn!=document.body&&xe(vn,"nprogress-custom-parent"),vn.appendChild(At),At},oe.remove=function(){Ie(document.documentElement,"nprogress-busy"),Ie(document.querySelector(ae.parent),"nprogress-custom-parent");var ze=document.getElementById("nprogress");ze&&Fe(ze)},oe.isRendered=function(){return!!document.getElementById("nprogress")},oe.getPositioningCSS=function(){var ze=document.body.style,At="WebkitTransform"in ze?"Webkit":"MozTransform"in ze?"Moz":"msTransform"in ze?"ms":"OTransform"in ze?"O":"";return At+"Perspective"in ze?"translate3d":At+"Transform"in ze?"translate":"margin"};function ie(ze,At,Lt){return ze<At?At:ze>Lt?Lt:ze}function le(ze){return(-1+ze)*100}function pe(ze,At,Lt){var hn;return ae.positionUsing==="translate3d"?hn={transform:"translate3d("+le(ze)+"%,0,0)"}:ae.positionUsing==="translate"?hn={transform:"translate("+le(ze)+"%,0)"}:hn={"margin-left":le(ze)+"%"},hn.transition="all "+At+"ms "+Lt,hn}var _e=function(){var ze=[];function At(){var Lt=ze.shift();Lt&&Lt(At)}return function(Lt){ze.push(Lt),ze.length==1&&At()}}(),Ce=function(){var ze=["Webkit","O","Moz","ms"],At={};function Lt(bn){return bn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Cn,En){return En.toUpperCase()})}function hn(bn){var Cn=document.body.style;if(bn in Cn)return bn;for(var En=ze.length,$n=bn.charAt(0).toUpperCase()+bn.slice(1),wn;En--;)if(wn=ze[En]+$n,wn in Cn)return wn;return bn}function vn(bn){return bn=Lt(bn),At[bn]||(At[bn]=hn(bn))}function _n(bn,Cn,En){Cn=vn(Cn),bn.style[Cn]=En}return function(bn,Cn){var En=arguments,$n,wn;if(En.length==2)for($n in Cn)wn=Cn[$n],wn!==void 0&&Cn.hasOwnProperty($n)&&_n(bn,$n,wn);else _n(bn,En[1],En[2])}}();function $e(ze,At){var Lt=typeof ze=="string"?ze:Ne(ze);return Lt.indexOf(" "+At+" ")>=0}function xe(ze,At){var Lt=Ne(ze),hn=Lt+At;$e(Lt,At)||(ze.className=hn.substring(1))}function Ie(ze,At){var Lt=Ne(ze),hn;$e(ze,At)&&(hn=Lt.replace(" "+At+" "," "),ze.className=hn.substring(1,hn.length-1))}function Ne(ze){return(" "+(ze.className||"")+" ").replace(/\s+/gi," ")}function Fe(ze){ze&&ze.parentNode&&ze.parentNode.removeChild(ze)}return oe})})(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}},eo=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(z){return new Promise(oe=>{eo.requests.push(ae=>{z.headers.Authorization=formatToken(ae),oe(z)})})}httpInterceptorsRequest(){eo.axiosInstance.interceptors.request.use(async z=>(NProgress.start(),typeof z.beforeRequestCallback=="function"?(z.beforeRequestCallback(z),z):eo.initConfig.beforeRequestCallback?(eo.initConfig.beforeRequestCallback(z),z):["/refreshToken","/login"].some(ae=>z.url.indexOf(ae)>-1)?z:new Promise(ae=>{const ie=getToken();if(ie){const le=new Date().getTime();parseInt(ie.expires)-le<=0?(eo.isRefreshing||(eo.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:ie.refreshToken}).then(_e=>{const Ce=_e.data.accessToken;z.headers.Authorization=formatToken(Ce),eo.requests.forEach($e=>$e(Ce)),eo.requests=[]}).finally(()=>{eo.isRefreshing=!1})),ae(eo.retryOriginalRequest(z))):(z.headers.Authorization=formatToken(ie.accessToken),ae(z))}else ae(z)})),z=>Promise.reject(z))}httpInterceptorsResponse(){eo.axiosInstance.interceptors.response.use(oe=>{const ae=oe.config;return NProgress.done(),typeof ae.beforeResponseCallback=="function"?(ae.beforeResponseCallback(oe),oe.data):(eo.initConfig.beforeResponseCallback&&eo.initConfig.beforeResponseCallback(oe),oe.data)},oe=>{const ae=oe;return ae.isCancelRequest=axios$1.isCancel(ae),NProgress.done(),Promise.reject(ae)})}request(z,oe,ae,ie){const le={method:z,url:oe,...ae,...ie};return new Promise((pe,_e)=>{eo.axiosInstance.request(le).then(Ce=>{pe(Ce)}).catch(Ce=>{_e(Ce)})})}post(z,oe,ae){return this.request("post",z,oe,ae)}get(z,oe,ae){return this.request("get",z,oe,ae)}};let PureHttp=eo;ro(PureHttp,"requests",[]),ro(PureHttp,"isRefreshing",!1),ro(PureHttp,"initConfig",{}),ro(PureHttp,"axiosInstance",axios$1.create(defaultConfig$1));const http=new PureHttp,getLogin=$=>http.request("post","/login",{data:$}),refreshTokenApi=$=>http.request("post","/refreshToken",{data:$}),useMultiTagsStore=defineStore({id:"pure-multiTags",state:()=>{var $,z;return{multiTags:($=Kn().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&$.multiTagsCache?Kn().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(z=Kn().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:z.multiTagsCache}},getters:{getMultiTagsCache($){return $.multiTagsCache}},actions:{multiTagsCacheChange($){this.multiTagsCache=$,$?Kn().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):Kn().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache($){this.getMultiTagsCache&&Kn().setItem(`${responsiveStorageNameSpace()}tags`,$)},handleTags($,z,oe){var ae,ie,le,pe,_e;switch($){case"equal":this.multiTags=z,this.tagsCache(this.multiTags);break;case"push":{const Ce=z;if((ae=Ce==null?void 0:Ce.meta)!=null&&ae.hiddenTag||dt(Ce==null?void 0:Ce.name)||((ie=Ce==null?void 0:Ce.meta)==null?void 0:ie.title.length)===0||Ae((le=Ce==null?void 0:Ce.meta)==null?void 0:le.showLink)&&!((pe=Ce==null?void 0:Ce.meta)!=null&&pe.showLink))return;const $e=Ce.path,xe=this.multiTags.some(ze=>ze.path===$e),Ie=this.multiTags.some(ze=>Mt(ze==null?void 0:ze.query,Ce==null?void 0:Ce.query)),Ne=this.multiTags.some(ze=>Mt(ze==null?void 0:ze.params,Ce==null?void 0:Ce.params));if(xe&&Ie&&Ne)return;const Fe=((_e=Ce==null?void 0:Ce.meta)==null?void 0:_e.dynamicLevel)??-1;if(Fe>0&&this.multiTags.filter(ze=>(ze==null?void 0:ze.path)===$e).length>=Fe){const ze=this.multiTags.findIndex(At=>(At==null?void 0:At.path)===$e);ze!==-1&&this.multiTags.splice(ze,1)}this.multiTags.push(z),this.tagsCache(this.multiTags)}break;case"splice":if(oe)this.multiTags.splice(oe==null?void 0:oe.startIndex,oe==null?void 0:oe.length);else{const Ce=this.multiTags.findIndex($e=>$e.path===z);if(Ce===-1)return;this.multiTags.splice(Ce,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 $,z;return{username:(($=Qn().getItem(sessionKey))==null?void 0:$.username)??"",roles:((z=Qn().getItem(sessionKey))==null?void 0:z.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME($){this.username=$},SET_ROLES($){this.roles=$},SET_VERIFYCODE($){this.verifyCode=$},SET_CURRENTPAGE($){this.currentPage=$},async loginByUsername($){return new Promise((z,oe)=>{getLogin($).then(ae=>{ae&&(setToken(ae.data),z(ae))}).catch(ae=>{oe(ae)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken($){return new Promise((z,oe)=>{refreshTokenApi($).then(ae=>{ae&&(setToken(ae.data),z(ae))}).catch(ae=>{oe(ae)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):Qn().getItem(sessionKey)}function setToken($){var pe,_e;let z=0;const{accessToken:oe,refreshToken:ae}=$;z=new Date($.expires).getTime();const ie=JSON.stringify({accessToken:oe,expires:z});z>0?api.set(TokenKey,ie,{expires:(z-Date.now())/864e5}):api.set(TokenKey,ie);function le(Ce,$e){useUserStoreHook().SET_USERNAME(Ce),useUserStoreHook().SET_ROLES($e),Qn().setItem(sessionKey,{refreshToken:ae,expires:z,username:Ce,roles:$e})}if($.username&&$.roles){const{username:Ce,roles:$e}=$;le(Ce,$e)}else{const Ce=((pe=Qn().getItem(sessionKey))==null?void 0:pe.username)??"",$e=((_e=Qn().getItem(sessionKey))==null?void 0:_e.roles)??[];le(Ce,$e)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=$=>"Bearer "+$;(function(){const $=fr(location.href),z=["username","roles","accessToken"],oe=z.length;if(Object.keys($).length!==oe)return;let ae=[],ie=0;for(;ie<oe;)Object.keys($).includes(z[ie])&&ae.length<=oe?ae.push(z[ie]):ae=[],ie++;if(ae.length===oe){removeToken(),setToken($),delete $.roles,delete $.accessToken;const le=`${location.origin}${location.pathname}${Xt(location.hash,"?")}?${JSON.stringify($).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(le)}else return})();/*!
|
||
* vue-router v4.2.0
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const isBrowser$1=typeof window<"u";function isESModule($){return $.__esModule||$[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams($,z){const oe={};for(const ae in z){const ie=z[ae];oe[ae]=isArray$3(ie)?ie.map($):$(ie)}return oe}const noop$2=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=$=>$.replace(TRAILING_SLASH_RE,"");function parseURL($,z,oe="/"){let ae,ie={},le="",pe="";const _e=z.indexOf("#");let Ce=z.indexOf("?");return _e<Ce&&_e>=0&&(Ce=-1),Ce>-1&&(ae=z.slice(0,Ce),le=z.slice(Ce+1,_e>-1?_e:z.length),ie=$(le)),_e>-1&&(ae=ae||z.slice(0,_e),pe=z.slice(_e,z.length)),ae=resolveRelativePath(ae??z,oe),{fullPath:ae+(le&&"?")+le+pe,path:ae,query:ie,hash:pe}}function stringifyURL($,z){const oe=z.query?$(z.query):"";return z.path+(oe&&"?")+oe+(z.hash||"")}function stripBase($,z){return!z||!$.toLowerCase().startsWith(z.toLowerCase())?$:$.slice(z.length)||"/"}function isSameRouteLocation($,z,oe){const ae=z.matched.length-1,ie=oe.matched.length-1;return ae>-1&&ae===ie&&isSameRouteRecord(z.matched[ae],oe.matched[ie])&&isSameRouteLocationParams(z.params,oe.params)&&$(z.query)===$(oe.query)&&z.hash===oe.hash}function isSameRouteRecord($,z){return($.aliasOf||$)===(z.aliasOf||z)}function isSameRouteLocationParams($,z){if(Object.keys($).length!==Object.keys(z).length)return!1;for(const oe in $)if(!isSameRouteLocationParamsValue($[oe],z[oe]))return!1;return!0}function isSameRouteLocationParamsValue($,z){return isArray$3($)?isEquivalentArray($,z):isArray$3(z)?isEquivalentArray(z,$):$===z}function isEquivalentArray($,z){return isArray$3(z)?$.length===z.length&&$.every((oe,ae)=>oe===z[ae]):$.length===1&&$[0]===z}function resolveRelativePath($,z){if($.startsWith("/"))return $;if(!$)return z;const oe=z.split("/"),ae=$.split("/"),ie=ae[ae.length-1];(ie===".."||ie===".")&&ae.push("");let le=oe.length-1,pe,_e;for(pe=0;pe<ae.length;pe++)if(_e=ae[pe],_e!==".")if(_e==="..")le>1&&le--;else break;return oe.slice(0,le).join("/")+"/"+ae.slice(pe-(pe===ae.length?1:0)).join("/")}var NavigationType;(function($){$.pop="pop",$.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function($){$.back="back",$.forward="forward",$.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase($){if(!$)if(isBrowser$1){const z=document.querySelector("base");$=z&&z.getAttribute("href")||"/",$=$.replace(/^\w+:\/\/[^\/]+/,"")}else $="/";return $[0]!=="/"&&$[0]!=="#"&&($="/"+$),removeTrailingSlash($)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref($,z){return $.replace(BEFORE_HASH_RE,"#")+z}function getElementPosition($,z){const oe=document.documentElement.getBoundingClientRect(),ae=$.getBoundingClientRect();return{behavior:z.behavior,left:ae.left-oe.left-(z.left||0),top:ae.top-oe.top-(z.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition($){let z;if("el"in $){const oe=$.el,ae=typeof oe=="string"&&oe.startsWith("#"),ie=typeof oe=="string"?ae?document.getElementById(oe.slice(1)):document.querySelector(oe):oe;if(!ie)return;z=getElementPosition(ie,$)}else z=$;"scrollBehavior"in document.documentElement.style?window.scrollTo(z):window.scrollTo(z.left!=null?z.left:window.pageXOffset,z.top!=null?z.top:window.pageYOffset)}function getScrollKey($,z){return(history.state?history.state.position-z:-1)+$}const scrollPositions=new Map;function saveScrollPosition($,z){scrollPositions.set($,z)}function getSavedScrollPosition($){const z=scrollPositions.get($);return scrollPositions.delete($),z}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation($,z){const{pathname:oe,search:ae,hash:ie}=z,le=$.indexOf("#");if(le>-1){let _e=ie.includes($.slice(le))?$.slice(le).length:1,Ce=ie.slice(_e);return Ce[0]!=="/"&&(Ce="/"+Ce),stripBase(Ce,"")}return stripBase(oe,$)+ae+ie}function useHistoryListeners($,z,oe,ae){let ie=[],le=[],pe=null;const _e=({state:Ne})=>{const Fe=createCurrentLocation($,location),ze=oe.value,At=z.value;let Lt=0;if(Ne){if(oe.value=Fe,z.value=Ne,pe&&pe===ze){pe=null;return}Lt=At?Ne.position-At.position:0}else ae(Fe);ie.forEach(hn=>{hn(oe.value,ze,{delta:Lt,type:NavigationType.pop,direction:Lt?Lt>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function Ce(){pe=oe.value}function $e(Ne){ie.push(Ne);const Fe=()=>{const ze=ie.indexOf(Ne);ze>-1&&ie.splice(ze,1)};return le.push(Fe),Fe}function xe(){const{history:Ne}=window;Ne.state&&Ne.replaceState(assign({},Ne.state,{scroll:computeScrollPosition()}),"")}function Ie(){for(const Ne of le)Ne();le=[],window.removeEventListener("popstate",_e),window.removeEventListener("beforeunload",xe)}return window.addEventListener("popstate",_e),window.addEventListener("beforeunload",xe,{passive:!0}),{pauseListeners:Ce,listen:$e,destroy:Ie}}function buildState($,z,oe,ae=!1,ie=!1){return{back:$,current:z,forward:oe,replaced:ae,position:window.history.length,scroll:ie?computeScrollPosition():null}}function useHistoryStateNavigation($){const{history:z,location:oe}=window,ae={value:createCurrentLocation($,oe)},ie={value:z.state};ie.value||le(ae.value,{back:null,current:ae.value,forward:null,position:z.length-1,replaced:!0,scroll:null},!0);function le(Ce,$e,xe){const Ie=$.indexOf("#"),Ne=Ie>-1?(oe.host&&document.querySelector("base")?$:$.slice(Ie))+Ce:createBaseLocation()+$+Ce;try{z[xe?"replaceState":"pushState"]($e,"",Ne),ie.value=$e}catch(Fe){console.error(Fe),oe[xe?"replace":"assign"](Ne)}}function pe(Ce,$e){const xe=assign({},z.state,buildState(ie.value.back,Ce,ie.value.forward,!0),$e,{position:ie.value.position});le(Ce,xe,!0),ae.value=Ce}function _e(Ce,$e){const xe=assign({},ie.value,z.state,{forward:Ce,scroll:computeScrollPosition()});le(xe.current,xe,!0);const Ie=assign({},buildState(ae.value,Ce,null),{position:xe.position+1},$e);le(Ce,Ie,!1),ae.value=Ce}return{location:ae,state:ie,push:_e,replace:pe}}function createWebHistory($){$=normalizeBase($);const z=useHistoryStateNavigation($),oe=useHistoryListeners($,z.state,z.location,z.replace);function ae(le,pe=!0){pe||oe.pauseListeners(),history.go(le)}const ie=assign({location:"",base:$,go:ae,createHref:createHref.bind(null,$)},z,oe);return Object.defineProperty(ie,"location",{enumerable:!0,get:()=>z.location.value}),Object.defineProperty(ie,"state",{enumerable:!0,get:()=>z.state.value}),ie}function createWebHashHistory($){return $=location.host?$||location.pathname+location.search:"",$.includes("#")||($+="#"),createWebHistory($)}function isRouteLocation($){return typeof $=="string"||$&&typeof $=="object"}function isRouteName($){return typeof $=="string"||typeof $=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function($){$[$.aborted=4]="aborted",$[$.cancelled=8]="cancelled",$[$.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError($,z){return assign(new Error,{type:$,[NavigationFailureSymbol]:!0},z)}function isNavigationFailure($,z){return $ instanceof Error&&NavigationFailureSymbol in $&&(z==null||!!($.type&z))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser($,z){const oe=assign({},BASE_PATH_PARSER_OPTIONS,z),ae=[];let ie=oe.start?"^":"";const le=[];for(const $e of $){const xe=$e.length?[]:[90];oe.strict&&!$e.length&&(ie+="/");for(let Ie=0;Ie<$e.length;Ie++){const Ne=$e[Ie];let Fe=40+(oe.sensitive?.25:0);if(Ne.type===0)Ie||(ie+="/"),ie+=Ne.value.replace(REGEX_CHARS_RE,"\\$&"),Fe+=40;else if(Ne.type===1){const{value:ze,repeatable:At,optional:Lt,regexp:hn}=Ne;le.push({name:ze,repeatable:At,optional:Lt});const vn=hn||BASE_PARAM_PATTERN;if(vn!==BASE_PARAM_PATTERN){Fe+=10;try{new RegExp(`(${vn})`)}catch(bn){throw new Error(`Invalid custom RegExp for param "${ze}" (${vn}): `+bn.message)}}let _n=At?`((?:${vn})(?:/(?:${vn}))*)`:`(${vn})`;Ie||(_n=Lt&&$e.length<2?`(?:/${_n})`:"/"+_n),Lt&&(_n+="?"),ie+=_n,Fe+=20,Lt&&(Fe+=-8),At&&(Fe+=-20),vn===".*"&&(Fe+=-50)}xe.push(Fe)}ae.push(xe)}if(oe.strict&&oe.end){const $e=ae.length-1;ae[$e][ae[$e].length-1]+=.7000000000000001}oe.strict||(ie+="/?"),oe.end?ie+="$":oe.strict&&(ie+="(?:/|$)");const pe=new RegExp(ie,oe.sensitive?"":"i");function _e($e){const xe=$e.match(pe),Ie={};if(!xe)return null;for(let Ne=1;Ne<xe.length;Ne++){const Fe=xe[Ne]||"",ze=le[Ne-1];Ie[ze.name]=Fe&&ze.repeatable?Fe.split("/"):Fe}return Ie}function Ce($e){let xe="",Ie=!1;for(const Ne of $){(!Ie||!xe.endsWith("/"))&&(xe+="/"),Ie=!1;for(const Fe of Ne)if(Fe.type===0)xe+=Fe.value;else if(Fe.type===1){const{value:ze,repeatable:At,optional:Lt}=Fe,hn=ze in $e?$e[ze]:"";if(isArray$3(hn)&&!At)throw new Error(`Provided param "${ze}" is an array but it is not repeatable (* or + modifiers)`);const vn=isArray$3(hn)?hn.join("/"):hn;if(!vn)if(Lt)Ne.length<2&&(xe.endsWith("/")?xe=xe.slice(0,-1):Ie=!0);else throw new Error(`Missing required param "${ze}"`);xe+=vn}}return xe||"/"}return{re:pe,score:ae,keys:le,parse:_e,stringify:Ce}}function compareScoreArray($,z){let oe=0;for(;oe<$.length&&oe<z.length;){const ae=z[oe]-$[oe];if(ae)return ae;oe++}return $.length<z.length?$.length===1&&$[0]===40+40?-1:1:$.length>z.length?z.length===1&&z[0]===40+40?1:-1:0}function comparePathParserScore($,z){let oe=0;const ae=$.score,ie=z.score;for(;oe<ae.length&&oe<ie.length;){const le=compareScoreArray(ae[oe],ie[oe]);if(le)return le;oe++}if(Math.abs(ie.length-ae.length)===1){if(isLastScoreNegative(ae))return 1;if(isLastScoreNegative(ie))return-1}return ie.length-ae.length}function isLastScoreNegative($){const z=$[$.length-1];return $.length>0&&z[z.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath($){if(!$)return[[]];if($==="/")return[[ROOT_TOKEN]];if(!$.startsWith("/"))throw new Error(`Invalid path "${$}"`);function z(Fe){throw new Error(`ERR (${oe})/"${$e}": ${Fe}`)}let oe=0,ae=oe;const ie=[];let le;function pe(){le&&ie.push(le),le=[]}let _e=0,Ce,$e="",xe="";function Ie(){$e&&(oe===0?le.push({type:0,value:$e}):oe===1||oe===2||oe===3?(le.length>1&&(Ce==="*"||Ce==="+")&&z(`A repeatable param (${$e}) must be alone in its segment. eg: '/:ids+.`),le.push({type:1,value:$e,regexp:xe,repeatable:Ce==="*"||Ce==="+",optional:Ce==="*"||Ce==="?"})):z("Invalid state to consume buffer"),$e="")}function Ne(){$e+=Ce}for(;_e<$.length;){if(Ce=$[_e++],Ce==="\\"&&oe!==2){ae=oe,oe=4;continue}switch(oe){case 0:Ce==="/"?($e&&Ie(),pe()):Ce===":"?(Ie(),oe=1):Ne();break;case 4:Ne(),oe=ae;break;case 1:Ce==="("?oe=2:VALID_PARAM_RE.test(Ce)?Ne():(Ie(),oe=0,Ce!=="*"&&Ce!=="?"&&Ce!=="+"&&_e--);break;case 2:Ce===")"?xe[xe.length-1]=="\\"?xe=xe.slice(0,-1)+Ce:oe=3:xe+=Ce;break;case 3:Ie(),oe=0,Ce!=="*"&&Ce!=="?"&&Ce!=="+"&&_e--,xe="";break;default:z("Unknown state");break}}return oe===2&&z(`Unfinished custom RegExp for param "${$e}"`),Ie(),pe(),ie}function createRouteRecordMatcher($,z,oe){const ae=tokensToParser(tokenizePath($.path),oe),ie=assign(ae,{record:$,parent:z,children:[],alias:[]});return z&&!ie.record.aliasOf==!z.record.aliasOf&&z.children.push(ie),ie}function createRouterMatcher($,z){const oe=[],ae=new Map;z=mergeOptions({strict:!1,end:!0,sensitive:!1},z);function ie(xe){return ae.get(xe)}function le(xe,Ie,Ne){const Fe=!Ne,ze=normalizeRouteRecord(xe);ze.aliasOf=Ne&&Ne.record;const At=mergeOptions(z,xe),Lt=[ze];if("alias"in xe){const _n=typeof xe.alias=="string"?[xe.alias]:xe.alias;for(const bn of _n)Lt.push(assign({},ze,{components:Ne?Ne.record.components:ze.components,path:bn,aliasOf:Ne?Ne.record:ze}))}let hn,vn;for(const _n of Lt){const{path:bn}=_n;if(Ie&&bn[0]!=="/"){const Cn=Ie.record.path,En=Cn[Cn.length-1]==="/"?"":"/";_n.path=Ie.record.path+(bn&&En+bn)}if(hn=createRouteRecordMatcher(_n,Ie,At),Ne?Ne.alias.push(hn):(vn=vn||hn,vn!==hn&&vn.alias.push(hn),Fe&&xe.name&&!isAliasRecord(hn)&&pe(xe.name)),ze.children){const Cn=ze.children;for(let En=0;En<Cn.length;En++)le(Cn[En],hn,Ne&&Ne.children[En])}Ne=Ne||hn,(hn.record.components&&Object.keys(hn.record.components).length||hn.record.name||hn.record.redirect)&&Ce(hn)}return vn?()=>{pe(vn)}:noop$2}function pe(xe){if(isRouteName(xe)){const Ie=ae.get(xe);Ie&&(ae.delete(xe),oe.splice(oe.indexOf(Ie),1),Ie.children.forEach(pe),Ie.alias.forEach(pe))}else{const Ie=oe.indexOf(xe);Ie>-1&&(oe.splice(Ie,1),xe.record.name&&ae.delete(xe.record.name),xe.children.forEach(pe),xe.alias.forEach(pe))}}function _e(){return oe}function Ce(xe){let Ie=0;for(;Ie<oe.length&&comparePathParserScore(xe,oe[Ie])>=0&&(xe.record.path!==oe[Ie].record.path||!isRecordChildOf(xe,oe[Ie]));)Ie++;oe.splice(Ie,0,xe),xe.record.name&&!isAliasRecord(xe)&&ae.set(xe.record.name,xe)}function $e(xe,Ie){let Ne,Fe={},ze,At;if("name"in xe&&xe.name){if(Ne=ae.get(xe.name),!Ne)throw createRouterError(1,{location:xe});At=Ne.record.name,Fe=assign(paramsFromLocation(Ie.params,Ne.keys.filter(vn=>!vn.optional).map(vn=>vn.name)),xe.params&¶msFromLocation(xe.params,Ne.keys.map(vn=>vn.name))),ze=Ne.stringify(Fe)}else if("path"in xe)ze=xe.path,Ne=oe.find(vn=>vn.re.test(ze)),Ne&&(Fe=Ne.parse(ze),At=Ne.record.name);else{if(Ne=Ie.name?ae.get(Ie.name):oe.find(vn=>vn.re.test(Ie.path)),!Ne)throw createRouterError(1,{location:xe,currentLocation:Ie});At=Ne.record.name,Fe=assign({},Ie.params,xe.params),ze=Ne.stringify(Fe)}const Lt=[];let hn=Ne;for(;hn;)Lt.unshift(hn.record),hn=hn.parent;return{name:At,path:ze,params:Fe,matched:Lt,meta:mergeMetaFields(Lt)}}return $.forEach(xe=>le(xe)),{addRoute:le,resolve:$e,removeRoute:pe,getRoutes:_e,getRecordMatcher:ie}}function paramsFromLocation($,z){const oe={};for(const ae of z)ae in $&&(oe[ae]=$[ae]);return oe}function normalizeRouteRecord($){return{path:$.path,redirect:$.redirect,name:$.name,meta:$.meta||{},aliasOf:void 0,beforeEnter:$.beforeEnter,props:normalizeRecordProps($),children:$.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in $?$.components||null:$.component&&{default:$.component}}}function normalizeRecordProps($){const z={},oe=$.props||!1;if("component"in $)z.default=oe;else for(const ae in $.components)z[ae]=typeof oe=="boolean"?oe:oe[ae];return z}function isAliasRecord($){for(;$;){if($.record.aliasOf)return!0;$=$.parent}return!1}function mergeMetaFields($){return $.reduce((z,oe)=>assign(z,oe.meta),{})}function mergeOptions($,z){const oe={};for(const ae in $)oe[ae]=ae in z?z[ae]:$[ae];return oe}function isRecordChildOf($,z){return z.children.some(oe=>oe===$||isRecordChildOf($,oe))}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($){return encodeURI(""+$).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash($){return commonEncode($).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue($){return commonEncode($).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($){return encodeQueryValue($).replace(EQUAL_RE,"%3D")}function encodePath($){return commonEncode($).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam($){return $==null?"":encodePath($).replace(SLASH_RE,"%2F")}function decode$1($){try{return decodeURIComponent(""+$)}catch{}return""+$}function parseQuery($){const z={};if($===""||$==="?")return z;const ae=($[0]==="?"?$.slice(1):$).split("&");for(let ie=0;ie<ae.length;++ie){const le=ae[ie].replace(PLUS_RE," "),pe=le.indexOf("="),_e=decode$1(pe<0?le:le.slice(0,pe)),Ce=pe<0?null:decode$1(le.slice(pe+1));if(_e in z){let $e=z[_e];isArray$3($e)||($e=z[_e]=[$e]),$e.push(Ce)}else z[_e]=Ce}return z}function stringifyQuery($){let z="";for(let oe in $){const ae=$[oe];if(oe=encodeQueryKey(oe),ae==null){ae!==void 0&&(z+=(z.length?"&":"")+oe);continue}(isArray$3(ae)?ae.map(le=>le&&encodeQueryValue(le)):[ae&&encodeQueryValue(ae)]).forEach(le=>{le!==void 0&&(z+=(z.length?"&":"")+oe,le!=null&&(z+="="+le))})}return z}function normalizeQuery($){const z={};for(const oe in $){const ae=$[oe];ae!==void 0&&(z[oe]=isArray$3(ae)?ae.map(ie=>ie==null?null:""+ie):ae==null?ae:""+ae)}return z}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let $=[];function z(ae){return $.push(ae),()=>{const ie=$.indexOf(ae);ie>-1&&$.splice(ie,1)}}function oe(){$=[]}return{add:z,list:()=>$,reset:oe}}function guardToPromiseFn($,z,oe,ae,ie){const le=ae&&(ae.enterCallbacks[ie]=ae.enterCallbacks[ie]||[]);return()=>new Promise((pe,_e)=>{const Ce=Ie=>{Ie===!1?_e(createRouterError(4,{from:oe,to:z})):Ie instanceof Error?_e(Ie):isRouteLocation(Ie)?_e(createRouterError(2,{from:z,to:Ie})):(le&&ae.enterCallbacks[ie]===le&&typeof Ie=="function"&&le.push(Ie),pe())},$e=$.call(ae&&ae.instances[ie],z,oe,Ce);let xe=Promise.resolve($e);$.length<3&&(xe=xe.then(Ce)),xe.catch(Ie=>_e(Ie))})}function extractComponentsGuards($,z,oe,ae){const ie=[];for(const le of $)for(const pe in le.components){let _e=le.components[pe];if(!(z!=="beforeRouteEnter"&&!le.instances[pe]))if(isRouteComponent(_e)){const $e=(_e.__vccOpts||_e)[z];$e&&ie.push(guardToPromiseFn($e,oe,ae,le,pe))}else{let Ce=_e();ie.push(()=>Ce.then($e=>{if(!$e)return Promise.reject(new Error(`Couldn't resolve component "${pe}" at "${le.path}"`));const xe=isESModule($e)?$e.default:$e;le.components[pe]=xe;const Ne=(xe.__vccOpts||xe)[z];return Ne&&guardToPromiseFn(Ne,oe,ae,le,pe)()}))}}return ie}function isRouteComponent($){return typeof $=="object"||"displayName"in $||"props"in $||"__vccOpts"in $}function useLink($){const z=inject(routerKey),oe=inject(routeLocationKey),ae=computed(()=>z.resolve(unref($.to))),ie=computed(()=>{const{matched:Ce}=ae.value,{length:$e}=Ce,xe=Ce[$e-1],Ie=oe.matched;if(!xe||!Ie.length)return-1;const Ne=Ie.findIndex(isSameRouteRecord.bind(null,xe));if(Ne>-1)return Ne;const Fe=getOriginalPath(Ce[$e-2]);return $e>1&&getOriginalPath(xe)===Fe&&Ie[Ie.length-1].path!==Fe?Ie.findIndex(isSameRouteRecord.bind(null,Ce[$e-2])):Ne}),le=computed(()=>ie.value>-1&&includesParams(oe.params,ae.value.params)),pe=computed(()=>ie.value>-1&&ie.value===oe.matched.length-1&&isSameRouteLocationParams(oe.params,ae.value.params));function _e(Ce={}){return guardEvent(Ce)?z[unref($.replace)?"replace":"push"](unref($.to)).catch(noop$2):Promise.resolve()}return{route:ae,href:computed(()=>ae.value.href),isActive:le,isExactActive:pe,navigate:_e}}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($,{slots:z}){const oe=reactive(useLink($)),{options:ae}=inject(routerKey),ie=computed(()=>({[getLinkClass($.activeClass,ae.linkActiveClass,"router-link-active")]:oe.isActive,[getLinkClass($.exactActiveClass,ae.linkExactActiveClass,"router-link-exact-active")]:oe.isExactActive}));return()=>{const le=z.default&&z.default(oe);return $.custom?le:h$3("a",{"aria-current":oe.isExactActive?$.ariaCurrentValue:null,href:oe.href,onClick:oe.navigate,class:ie.value},le)}}}),RouterLink=RouterLinkImpl;function guardEvent($){if(!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)&&!$.defaultPrevented&&!($.button!==void 0&&$.button!==0)){if($.currentTarget&&$.currentTarget.getAttribute){const z=$.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(z))return}return $.preventDefault&&$.preventDefault(),!0}}function includesParams($,z){for(const oe in z){const ae=z[oe],ie=$[oe];if(typeof ae=="string"){if(ae!==ie)return!1}else if(!isArray$3(ie)||ie.length!==ae.length||ae.some((le,pe)=>le!==ie[pe]))return!1}return!0}function getOriginalPath($){return $?$.aliasOf?$.aliasOf.path:$.path:""}const getLinkClass=($,z,oe)=>$??z??oe,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup($,{attrs:z,slots:oe}){const ae=inject(routerViewLocationKey),ie=computed(()=>$.route||ae.value),le=inject(viewDepthKey,0),pe=computed(()=>{let $e=unref(le);const{matched:xe}=ie.value;let Ie;for(;(Ie=xe[$e])&&!Ie.components;)$e++;return $e}),_e=computed(()=>ie.value.matched[pe.value]);provide(viewDepthKey,computed(()=>pe.value+1)),provide(matchedRouteKey,_e),provide(routerViewLocationKey,ie);const Ce=ref();return watch(()=>[Ce.value,_e.value,$.name],([$e,xe,Ie],[Ne,Fe,ze])=>{xe&&(xe.instances[Ie]=$e,Fe&&Fe!==xe&&$e&&$e===Ne&&(xe.leaveGuards.size||(xe.leaveGuards=Fe.leaveGuards),xe.updateGuards.size||(xe.updateGuards=Fe.updateGuards))),$e&&xe&&(!Fe||!isSameRouteRecord(xe,Fe)||!Ne)&&(xe.enterCallbacks[Ie]||[]).forEach(At=>At($e))},{flush:"post"}),()=>{const $e=ie.value,xe=$.name,Ie=_e.value,Ne=Ie&&Ie.components[xe];if(!Ne)return normalizeSlot(oe.default,{Component:Ne,route:$e});const Fe=Ie.props[xe],ze=Fe?Fe===!0?$e.params:typeof Fe=="function"?Fe($e):Fe:null,Lt=h$3(Ne,assign({},ze,z,{onVnodeUnmounted:hn=>{hn.component.isUnmounted&&(Ie.instances[xe]=null)},ref:Ce}));return normalizeSlot(oe.default,{Component:Lt,route:$e})||Lt}}});function normalizeSlot($,z){if(!$)return null;const oe=$(z);return oe.length===1?oe[0]:oe}const RouterView=RouterViewImpl;function createRouter($){const z=createRouterMatcher($.routes,$),oe=$.parseQuery||parseQuery,ae=$.stringifyQuery||stringifyQuery,ie=$.history,le=useCallbacks(),pe=useCallbacks(),_e=useCallbacks(),Ce=shallowRef(START_LOCATION_NORMALIZED);let $e=START_LOCATION_NORMALIZED;isBrowser$1&&$.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const xe=applyToParams.bind(null,qn=>""+qn),Ie=applyToParams.bind(null,encodeParam),Ne=applyToParams.bind(null,decode$1);function Fe(qn,Yn){let Wn,tr;return isRouteName(qn)?(Wn=z.getRecordMatcher(qn),tr=Yn):tr=qn,z.addRoute(tr,Wn)}function ze(qn){const Yn=z.getRecordMatcher(qn);Yn&&z.removeRoute(Yn)}function At(){return z.getRoutes().map(qn=>qn.record)}function Lt(qn){return!!z.getRecordMatcher(qn)}function hn(qn,Yn){if(Yn=assign({},Yn||Ce.value),typeof qn=="string"){const rr=parseURL(oe,qn,Yn.path),mr=z.resolve({path:rr.path},Yn),Sr=ie.createHref(rr.fullPath);return assign(rr,mr,{params:Ne(mr.params),hash:decode$1(rr.hash),redirectedFrom:void 0,href:Sr})}let Wn;if("path"in qn)Wn=assign({},qn,{path:parseURL(oe,qn.path,Yn.path).path});else{const rr=assign({},qn.params);for(const mr in rr)rr[mr]==null&&delete rr[mr];Wn=assign({},qn,{params:Ie(rr)}),Yn.params=Ie(Yn.params)}const tr=z.resolve(Wn,Yn),pr=qn.hash||"";tr.params=xe(Ne(tr.params));const Gn=stringifyURL(ae,assign({},qn,{hash:encodeHash(pr),path:tr.path})),Zn=ie.createHref(Gn);return assign({fullPath:Gn,hash:pr,query:ae===stringifyQuery?normalizeQuery(qn.query):qn.query||{}},tr,{redirectedFrom:void 0,href:Zn})}function vn(qn){return typeof qn=="string"?parseURL(oe,qn,Ce.value.path):assign({},qn)}function _n(qn,Yn){if($e!==qn)return createRouterError(8,{from:Yn,to:qn})}function bn(qn){return $n(qn)}function Cn(qn){return bn(assign(vn(qn),{replace:!0}))}function En(qn){const Yn=qn.matched[qn.matched.length-1];if(Yn&&Yn.redirect){const{redirect:Wn}=Yn;let tr=typeof Wn=="function"?Wn(qn):Wn;return typeof tr=="string"&&(tr=tr.includes("?")||tr.includes("#")?tr=vn(tr):{path:tr},tr.params={}),assign({query:qn.query,hash:qn.hash,params:"path"in tr?{}:qn.params},tr)}}function $n(qn,Yn){const Wn=$e=hn(qn),tr=Ce.value,pr=qn.state,Gn=qn.force,Zn=qn.replace===!0,rr=En(Wn);if(rr)return $n(assign(vn(rr),{state:typeof rr=="object"?assign({},pr,rr.state):pr,force:Gn,replace:Zn}),Yn||Wn);const mr=Wn;mr.redirectedFrom=Yn;let Sr;return!Gn&&isSameRouteLocation(ae,tr,Wn)&&(Sr=createRouterError(16,{to:mr,from:tr}),Xn(tr,tr,!0,!1)),(Sr?Promise.resolve(Sr):xn(mr,tr)).catch(ar=>isNavigationFailure(ar)?isNavigationFailure(ar,2)?ar:zn(ar):Vn(ar,mr,tr)).then(ar=>{if(ar){if(isNavigationFailure(ar,2))return $n(assign({replace:Zn},vn(ar.to),{state:typeof ar.to=="object"?assign({},pr,ar.to.state):pr,force:Gn}),Yn||mr)}else ar=An(mr,tr,!0,Zn,pr);return kn(mr,tr,ar),ar})}function wn(qn,Yn){const Wn=_n(qn,Yn);return Wn?Promise.reject(Wn):Promise.resolve()}function Tn(qn){const Yn=lr.values().next().value;return Yn&&typeof Yn.runWithContext=="function"?Yn.runWithContext(qn):qn()}function xn(qn,Yn){let Wn;const[tr,pr,Gn]=extractChangingRecords(qn,Yn);Wn=extractComponentsGuards(tr.reverse(),"beforeRouteLeave",qn,Yn);for(const rr of tr)rr.leaveGuards.forEach(mr=>{Wn.push(guardToPromiseFn(mr,qn,Yn))});const Zn=wn.bind(null,qn,Yn);return Wn.push(Zn),ir(Wn).then(()=>{Wn=[];for(const rr of le.list())Wn.push(guardToPromiseFn(rr,qn,Yn));return Wn.push(Zn),ir(Wn)}).then(()=>{Wn=extractComponentsGuards(pr,"beforeRouteUpdate",qn,Yn);for(const rr of pr)rr.updateGuards.forEach(mr=>{Wn.push(guardToPromiseFn(mr,qn,Yn))});return Wn.push(Zn),ir(Wn)}).then(()=>{Wn=[];for(const rr of qn.matched)if(rr.beforeEnter&&!Yn.matched.includes(rr))if(isArray$3(rr.beforeEnter))for(const mr of rr.beforeEnter)Wn.push(guardToPromiseFn(mr,qn,Yn));else Wn.push(guardToPromiseFn(rr.beforeEnter,qn,Yn));return Wn.push(Zn),ir(Wn)}).then(()=>(qn.matched.forEach(rr=>rr.enterCallbacks={}),Wn=extractComponentsGuards(Gn,"beforeRouteEnter",qn,Yn),Wn.push(Zn),ir(Wn))).then(()=>{Wn=[];for(const rr of pe.list())Wn.push(guardToPromiseFn(rr,qn,Yn));return Wn.push(Zn),ir(Wn)}).catch(rr=>isNavigationFailure(rr,8)?rr:Promise.reject(rr))}function kn(qn,Yn,Wn){for(const tr of _e.list())Tn(()=>tr(qn,Yn,Wn))}function An(qn,Yn,Wn,tr,pr){const Gn=_n(qn,Yn);if(Gn)return Gn;const Zn=Yn===START_LOCATION_NORMALIZED,rr=isBrowser$1?history.state:{};Wn&&(tr||Zn?ie.replace(qn.fullPath,assign({scroll:Zn&&rr&&rr.scroll},pr)):ie.push(qn.fullPath,pr)),Ce.value=qn,Xn(qn,Yn,Wn,Zn),zn()}let On;function Mn(){On||(On=ie.listen((qn,Yn,Wn)=>{if(!_r.listening)return;const tr=hn(qn),pr=En(tr);if(pr){$n(assign(pr,{replace:!0}),tr).catch(noop$2);return}$e=tr;const Gn=Ce.value;isBrowser$1&&saveScrollPosition(getScrollKey(Gn.fullPath,Wn.delta),computeScrollPosition()),xn(tr,Gn).catch(Zn=>isNavigationFailure(Zn,12)?Zn:isNavigationFailure(Zn,2)?($n(Zn.to,tr).then(rr=>{isNavigationFailure(rr,20)&&!Wn.delta&&Wn.type===NavigationType.pop&&ie.go(-1,!1)}).catch(noop$2),Promise.reject()):(Wn.delta&&ie.go(-Wn.delta,!1),Vn(Zn,tr,Gn))).then(Zn=>{Zn=Zn||An(tr,Gn,!1),Zn&&(Wn.delta&&!isNavigationFailure(Zn,8)?ie.go(-Wn.delta,!1):Wn.type===NavigationType.pop&&isNavigationFailure(Zn,20)&&ie.go(-1,!1)),kn(tr,Gn,Zn)}).catch(noop$2)}))}let Fn=useCallbacks(),Dn=useCallbacks(),Nn;function Vn(qn,Yn,Wn){zn(qn);const tr=Dn.list();return tr.length?tr.forEach(pr=>pr(qn,Yn,Wn)):console.error(qn),Promise.reject(qn)}function Bn(){return Nn&&Ce.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((qn,Yn)=>{Fn.add([qn,Yn])})}function zn(qn){return Nn||(Nn=!qn,Mn(),Fn.list().forEach(([Yn,Wn])=>qn?Wn(qn):Yn()),Fn.reset()),qn}function Xn(qn,Yn,Wn,tr){const{scrollBehavior:pr}=$;if(!isBrowser$1||!pr)return Promise.resolve();const Gn=!Wn&&getSavedScrollPosition(getScrollKey(qn.fullPath,0))||(tr||!Wn)&&history.state&&history.state.scroll||null;return nextTick().then(()=>pr(qn,Yn,Gn)).then(Zn=>Zn&&scrollToPosition(Zn)).catch(Zn=>Vn(Zn,qn,Yn))}const Un=qn=>ie.go(qn);let Jn;const lr=new Set,_r={currentRoute:Ce,listening:!0,addRoute:Fe,removeRoute:ze,hasRoute:Lt,getRoutes:At,resolve:hn,options:$,push:bn,replace:Cn,go:Un,back:()=>Un(-1),forward:()=>Un(1),beforeEach:le.add,beforeResolve:pe.add,afterEach:_e.add,onError:Dn.add,isReady:Bn,install(qn){const Yn=this;qn.component("RouterLink",RouterLink),qn.component("RouterView",RouterView),qn.config.globalProperties.$router=Yn,Object.defineProperty(qn.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(Ce)}),isBrowser$1&&!Jn&&Ce.value===START_LOCATION_NORMALIZED&&(Jn=!0,bn(ie.location).catch(pr=>{}));const Wn={};for(const pr in START_LOCATION_NORMALIZED)Wn[pr]=computed(()=>Ce.value[pr]);qn.provide(routerKey,Yn),qn.provide(routeLocationKey,reactive(Wn)),qn.provide(routerViewLocationKey,Ce);const tr=qn.unmount;lr.add(qn),qn.unmount=function(){lr.delete(qn),lr.size<1&&($e=START_LOCATION_NORMALIZED,On&&On(),On=null,Ce.value=START_LOCATION_NORMALIZED,Jn=!1,Nn=!1),tr()}}};function ir(qn){return qn.reduce((Yn,Wn)=>Yn.then(()=>Tn(Wn)),Promise.resolve())}return _r}function extractChangingRecords($,z){const oe=[],ae=[],ie=[],le=Math.max(z.matched.length,$.matched.length);for(let pe=0;pe<le;pe++){const _e=z.matched[pe];_e&&($.matched.find($e=>isSameRouteRecord($e,_e))?ae.push(_e):oe.push(_e));const Ce=$.matched[pe];Ce&&(z.matched.find($e=>isSameRouteRecord($e,Ce))||ie.push(Ce))}return[oe,ae,ie]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const extractPathList=$=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];const z=[];for(const oe of $)oe.children&&oe.children.length>0&&extractPathList(oe.children),z.push(oe.uniqueId);return z},deleteChildren=($,z=[])=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const[oe,ae]of $.entries())ae.children&&ae.children.length===1&&delete ae.children,ae.id=oe,ae.parentId=z.length?z[z.length-1]:null,ae.pathList=[...z,ae.id],ae.uniqueId=ae.pathList.length>1?ae.pathList.join("-"):ae.pathList[0],ae.children&&ae.children.length>0&&deleteChildren(ae.children,ae.pathList);return $},buildHierarchyTree=($,z=[])=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];for(const[oe,ae]of $.entries())ae.id=oe,ae.parentId=z.length?z[z.length-1]:null,ae.pathList=[...z,ae.id],ae.children&&ae.children.length>0&&buildHierarchyTree(ae.children,ae.pathList);return $},getNodeByUniqueId=($,z)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];const oe=$.find(ie=>ie.uniqueId===z);if(oe)return oe;const ae=$.filter(ie=>ie.children).map(ie=>ie.children).flat(1);return getNodeByUniqueId(ae,z)},appendFieldByUniqueId=($,z,oe)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const ae of $){const ie=ae.children&&ae.children.length>0;ae.uniqueId===z&&Object.prototype.toString.call(oe)==="[object Object]"&&Object.assign(ae,oe),ie&&appendFieldByUniqueId(ae.children,z,oe)}return $},handleTree=($,z,oe,ae)=>{if(!Array.isArray($))return console.warn("data must be an array"),[];const ie={id:z||"id",parentId:oe||"parentId",childrenList:ae||"children"},le={},pe={},_e=[];for(const $e of $){const xe=$e[ie.parentId];le[xe]==null&&(le[xe]=[]),pe[$e[ie.id]]=$e,le[xe].push($e)}for(const $e of $){const xe=$e[ie.parentId];pe[xe]==null&&_e.push($e)}for(const $e of _e)Ce($e);function Ce($e){if(le[$e[ie.id]]!==null&&($e[ie.childrenList]=le[$e[ie.id]]),$e[ie.childrenList])for(const xe of $e[ie.childrenList])Ce(xe)}return _e},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-49201d53.js"),["static/js/frameView-49201d53.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-0f97f402.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-a398d9cd.js"),["static/js/cascader-a398d9cd.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-977f18e0.js"),["static/js/debounce-977f18e0.js","static/js/message-e6e365bf.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-e2a278e9.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-74cd163c.js"),["static/js/execl-74cd163c.js","static/js/xlsx-e927f539.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-8fcec301.js"),["static/js/icon-select-8fcec301.js","static/css/icon-select-f6ac52ad.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-cd887682.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-46c89679.js"),["static/js/line-tree-46c89679.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-0cb7dc11.js"),["static/js/menu-tree-0cb7dc11.js","static/js/hooks-47b97b33.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-b55b75ce.js"),["static/js/pdf-b55b75ce.js","static/js/vue.runtime.esm-bundler-2aa5afab.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-67aba2ff.js"),["static/js/print-67aba2ff.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-35e38023.js","static/js/app-2c822755.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-4c59c224.js"),["static/js/qrcode-4c59c224.js","static/js/message-e6e365bf.js","static/js/index-a7bad971.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-818d0cd5.js"),["static/js/swiper-818d0cd5.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-20851b74.js"),["static/js/timeline-20851b74.js","static/js/index-e00e2602.js","static/css/index-18417f34.css","static/js/hooks-47b97b33.js","static/js/iphone-bcaa848c.js","static/css/timeline-12434188.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-af5a3726.js"),["static/js/horizontal-af5a3726.js","static/js/vue-virtual-scroller.esm-ac296170.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-d9e3c002.js"),["static/js/index-d9e3c002.js","static/js/vertical-9949cca4.js","static/js/vue-virtual-scroller.esm-ac296170.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-af5a3726.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-9949cca4.js"),["static/js/vertical-9949cca4.js","static/js/vue-virtual-scroller.esm-ac296170.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-7aa63401.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-9e7e3b78.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-22cd95b9.js"),["static/js/index-22cd95b9.js","static/js/columns-9e7e3b78.js","static/css/index-cb8197dd.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-d9fe707f.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-66d61a16.js"),["static/js/basic-66d61a16.js","static/js/index.esm-5113fb74.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-8bdb57ca.js"),["static/js/index-8bdb57ca.js","static/js/basic-66d61a16.js","static/js/index.esm-5113fb74.js","static/css/basic-d842f1a0.css","static/js/menuGroup-8c7c4e25.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-d25cba3e.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-d25cba3e.js"),["static/js/menuDynamic-d25cba3e.js","static/js/index.esm-5113fb74.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-8c7c4e25.js"),["static/js/menuGroup-8c7c4e25.js","static/js/index.esm-5113fb74.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-68c31dba.js"),["static/js/index-68c31dba.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-5a891c2f.js"),["static/js/index-5a891c2f.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-f934c7c0.js"),["static/js/index-f934c7c0.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-518e216f.js"),["static/js/form-518e216f.js","static/js/form.vue_vue_type_script_setup_true_lang-84d16574.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-26a72cca.js"),["static/js/index-26a72cca.js","static/js/message-e6e365bf.js","static/js/form.vue_vue_type_script_setup_true_lang-84d16574.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-95460b0c.js"),["static/js/index-95460b0c.js","static/js/sortable.esm-679e0872.js","static/js/app-2c822755.js","static/js/hooks-47b97b33.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-41622e89.js"),["static/js/index-41622e89.js","static/js/styles-3f4f2d5e.js","static/js/vue.runtime.esm-bundler-2aa5afab.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-9b83880f.js"),["static/js/index-9b83880f.js","static/css/index-d504fa9c.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-e3245e3e.js"),["static/js/index-e3245e3e.js","static/js/message-e6e365bf.js","static/js/hooks-47b97b33.js","static/js/check-3815600c.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-1155c1a2.js"),["static/js/index-1155c1a2.js","static/js/index-20b90cee.js","static/css/index-53a917f7.css"]),"/src/views/components/segmented/index.vue":()=>__vitePreload(()=>import("./index-2ce26a3b.js"),["static/js/index-2ce26a3b.js","static/js/message-e6e365bf.js","static/js/home-filled-05cc090c.js","static/js/hooks-47b97b33.js","static/css/index-fa517f4b.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-171d3e19.js"),["static/js/index-171d3e19.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-349725f0.js"),["static/js/index-349725f0.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-73cb0a1e.js"),["static/js/index-73cb0a1e.js","static/js/index-01416050.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-5679ddd6.js"),["static/js/index-5679ddd6.js","static/js/hooks-47b97b33.js","static/css/index-11b4621f.css"]),"/src/views/components/waterfall/index.vue":()=>__vitePreload(()=>import("./index-541dd466.js"),["static/js/index-541dd466.js","static/js/back_top-cbe59047.js","static/css/index-d102724b.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-d4bd3586.js"),["static/js/index-d4bd3586.js","static/js/hooks-47b97b33.js","static/js/edit-d219f0c6.js","static/css/index-f38a3df6.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-da66504e.js"),["static/js/index-da66504e.js","static/css/index-18755a0a.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-b2e67115.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-a48c13b1.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-6725eca8.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-c0dcec26.js"),["static/js/index-c0dcec26.js","static/js/hooks-47b97b33.js","static/js/styles-3f4f2d5e.js","static/js/vue.runtime.esm-bundler-2aa5afab.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-60c7eb9e.js"),["static/js/index-60c7eb9e.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-ebfc92c1.js"),["static/js/Card-ebfc92c1.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-4ea5f728.js"),["static/js/DialogForm-4ea5f728.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-e9838997.js","static/js/message-e6e365bf.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-00e9fc60.js"),["static/js/index-00e9fc60.js","static/js/Card-ebfc92c1.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-e6e365bf.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-e9838997.js","static/js/hooks-47b97b33.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-2c4ba2ed.js"),["static/js/phone-2c4ba2ed.js","static/js/phone.vue_vue_type_script_setup_true_lang-9620fcd3.js","static/js/motion-3a6f9742.js","static/js/message-e6e365bf.js","static/js/verifyCode-41d10693.js","static/js/hooks-47b97b33.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-56704dcd.js"),["static/js/qrCode-56704dcd.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-c513d394.js","static/js/motion-3a6f9742.js","static/js/index-a7bad971.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-b3a62cd7.js"),["static/js/regist-b3a62cd7.js","static/js/regist.vue_vue_type_script_setup_true_lang-1f032e39.js","static/js/motion-3a6f9742.js","static/js/message-e6e365bf.js","static/js/verifyCode-41d10693.js","static/js/hooks-47b97b33.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update-6b3a5329.js"),["static/js/update-6b3a5329.js","static/js/update.vue_vue_type_script_setup_true_lang-eee45ed3.js","static/js/motion-3a6f9742.js","static/js/message-e6e365bf.js","static/js/verifyCode-41d10693.js","static/js/hooks-47b97b33.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-a183ddcb.js"),["static/js/index-a183ddcb.js","static/js/motion-3a6f9742.js","static/js/message-e6e365bf.js","static/js/verifyCode-41d10693.js","static/js/phone.vue_vue_type_script_setup_true_lang-9620fcd3.js","static/js/hooks-47b97b33.js","static/js/iphone-bcaa848c.js","static/js/index-01416050.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-c513d394.js","static/js/index-a7bad971.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-1f032e39.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-eee45ed3.js","static/js/dark-b4e9c3d9.js","static/js/app-2c822755.js","static/js/epTheme-8be6290d.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-1fb18c7d.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-90dd8109.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-4ba3c90c.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-71daf1f4.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-56973358.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-1dbd68b4.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-026ff537.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-aeba3bd8.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-04266df1.js"),["static/js/base-04266df1.js","static/js/base.vue_vue_type_script_setup_true_lang-185bcc5b.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-33a93502.js"),["static/js/border-33a93502.js","static/js/border.vue_vue_type_script_setup_true_lang-8a297b5e.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-b89e49b0.js"),["static/js/columns-b89e49b0.js","static/js/message-e6e365bf.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-8bafc816.js"),["static/js/index-8bafc816.js","static/js/index.vue_vue_type_script_setup_true_lang-0d384020.js","static/js/columns-b89e49b0.js","static/js/message-e6e365bf.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-28616db8.js"),["static/js/customIndex-28616db8.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-c37e85c7.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-8c55e09c.js"),["static/js/expand-8c55e09c.js","static/js/expand.vue_vue_type_script_setup_true_lang-3d81dd2b.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-64bc6393.js"),["static/js/filters-64bc6393.js","static/js/filters.vue_vue_type_script_setup_true_lang-f245da04.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-9d1ca957.js"),["static/js/fixColumn-9d1ca957.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5c604312.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-ce9f7b41.js"),["static/js/fixHeader-ce9f7b41.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-9df9df5e.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-6e0bfff7.js"),["static/js/fluidHeight-6e0bfff7.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-db73faf3.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-e989ea87.js"),["static/js/groupHeader-e989ea87.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-6f52e2eb.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-28b47a22.js"),["static/js/columns-28b47a22.js","static/js/message-e6e365bf.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-9c9d8865.js"),["static/js/index-9c9d8865.js","static/js/index.vue_vue_type_script_setup_true_lang-2fa6755e.js","static/js/columns-28b47a22.js","static/js/message-e6e365bf.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-b944070e.js"),["static/js/imgPreview-b944070e.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c5855999.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-990044bd.js"),["static/js/layout-990044bd.js","static/js/layout.vue_vue_type_script_setup_true_lang-9f590848.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-4d647718.js"),["static/js/list-4d647718.js","static/js/base.vue_vue_type_script_setup_true_lang-185bcc5b.js","static/js/data-5208a047.js","static/js/stripe.vue_vue_type_script_setup_true_lang-c0a35138.js","static/js/border.vue_vue_type_script_setup_true_lang-8a297b5e.js","static/js/status.vue_vue_type_style_index_0_lang-2ca35ef3.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-9df9df5e.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5c604312.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-db73faf3.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-6f52e2eb.js","static/js/radio.vue_vue_type_script_setup_true_lang-2ecb3a49.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-67656f37.js","static/js/sortable.vue_vue_type_script_setup_true_lang-f68b451a.js","static/js/filters.vue_vue_type_script_setup_true_lang-f245da04.js","static/js/index.vue_vue_type_script_setup_true_lang-0d384020.js","static/js/columns-b89e49b0.js","static/js/message-e6e365bf.js","static/js/index.vue_vue_type_script_setup_true_lang-2fa6755e.js","static/js/columns-28b47a22.js","static/js/expand.vue_vue_type_script_setup_true_lang-3d81dd2b.js","static/js/tree.vue_vue_type_script_setup_true_lang-f4746ea9.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-cef1c6c2.js","static/js/merge.vue_vue_type_script_setup_true_lang-e20c991c.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-c37e85c7.js","static/js/layout.vue_vue_type_script_setup_true_lang-9f590848.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-b55a768c.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c5855999.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-678d9569.js"),["static/js/merge-678d9569.js","static/js/merge.vue_vue_type_script_setup_true_lang-e20c991c.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-c2a69942.js"),["static/js/multipleChoice-c2a69942.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-67656f37.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-2fb42567.js"),["static/js/nestProp-2fb42567.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-b55a768c.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-1b1462aa.js"),["static/js/radio-1b1462aa.js","static/js/radio.vue_vue_type_script_setup_true_lang-2ecb3a49.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-2d702820.js"),["static/js/sortable-2d702820.js","static/js/sortable.vue_vue_type_script_setup_true_lang-f68b451a.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-c08f802d.js"),["static/js/status-c08f802d.js","static/js/status.vue_vue_type_style_index_0_lang-2ca35ef3.js","static/js/data-5208a047.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-37c6e3eb.js"),["static/js/stripe-37c6e3eb.js","static/js/stripe.vue_vue_type_script_setup_true_lang-c0a35138.js","static/js/data-5208a047.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-9d4b809d.js"),["static/js/totalRow-9d4b809d.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-cef1c6c2.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-da2ba305.js"),["static/js/tree-da2ba305.js","static/js/tree.vue_vue_type_script_setup_true_lang-f4746ea9.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-0e53a8cc.js"),["static/js/high-0e53a8cc.js","static/js/list-071710ff.js","static/js/index.vue_vue_type_script_setup_true_lang-eaec8c84.js","static/js/columns-d5598001.js","static/js/data-b773037a.js","static/js/index.vue_vue_type_script_setup_true_lang-b7589ea4.js","static/js/columns-01373f81.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-ab7da5a7.js","static/js/columns-ee2085a5.js","static/js/index.vue_vue_type_script_setup_true_lang-8e94f9eb.js","static/js/columns-53f3efec.js","static/js/message-e6e365bf.js","static/js/index.vue_vue_type_script_setup_true_lang-218d3451.js","static/js/columns-f4bdbbab.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-a0a2ea18.js","static/js/columns-81eb1784.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-5573b118.js","static/js/columns-7bc1ada8.js","static/js/index.vue_vue_type_script_setup_true_lang-2e08a252.js","static/js/columns-d323691e.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-42e4100e.js","static/js/columns-0c66f27d.js","static/js/index-20b90cee.js","static/js/index.vue_vue_type_script_setup_true_lang-5b80f491.js","static/js/index.vue_vue_type_script_setup_true_lang-d808ba9d.js","static/js/columns-0196fa7c.js","static/js/index.vue_vue_type_script_setup_true_lang-83d93c8a.js","static/js/columns-50e1c67e.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-53f3efec.js"),["static/js/columns-53f3efec.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-d199185f.js"),["static/js/index-d199185f.js","static/js/index.vue_vue_type_script_setup_true_lang-8e94f9eb.js","static/js/columns-53f3efec.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-ee2085a5.js"),["static/js/columns-ee2085a5.js","static/js/sortable.esm-679e0872.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-0dfdabe2.js"),["static/js/index-0dfdabe2.js","static/js/index.vue_vue_type_script_setup_true_lang-ab7da5a7.js","static/js/columns-ee2085a5.js","static/js/sortable.esm-679e0872.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-01373f81.js"),["static/js/columns-01373f81.js","static/js/sortable.esm-679e0872.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-7b26395f.js"),["static/js/index-7b26395f.js","static/js/index.vue_vue_type_script_setup_true_lang-b7589ea4.js","static/js/columns-01373f81.js","static/js/sortable.esm-679e0872.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-0c66f27d.js"),["static/js/columns-0c66f27d.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js","static/js/index-20b90cee.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-56baed3d.js"),["static/js/index-56baed3d.js","static/js/index.vue_vue_type_script_setup_true_lang-42e4100e.js","static/js/columns-0c66f27d.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js","static/js/index-20b90cee.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-81eb1784.js"),["static/js/columns-81eb1784.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-ef929d9d.js"),["static/js/index-ef929d9d.js","static/js/index.vue_vue_type_script_setup_true_lang-a0a2ea18.js","static/js/columns-81eb1784.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-f4bdbbab.js"),["static/js/columns-f4bdbbab.js","static/js/xlsx-e927f539.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-dea08f2d.js"),["static/js/index-dea08f2d.js","static/js/index.vue_vue_type_script_setup_true_lang-218d3451.js","static/js/columns-f4bdbbab.js","static/js/xlsx-e927f539.js","static/js/data-b773037a.js","static/js/message-e6e365bf.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-071710ff.js"),["static/js/list-071710ff.js","static/js/index.vue_vue_type_script_setup_true_lang-eaec8c84.js","static/js/columns-d5598001.js","static/js/data-b773037a.js","static/js/index.vue_vue_type_script_setup_true_lang-b7589ea4.js","static/js/columns-01373f81.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-ab7da5a7.js","static/js/columns-ee2085a5.js","static/js/index.vue_vue_type_script_setup_true_lang-8e94f9eb.js","static/js/columns-53f3efec.js","static/js/message-e6e365bf.js","static/js/index.vue_vue_type_script_setup_true_lang-218d3451.js","static/js/columns-f4bdbbab.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-a0a2ea18.js","static/js/columns-81eb1784.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-5573b118.js","static/js/columns-7bc1ada8.js","static/js/index.vue_vue_type_script_setup_true_lang-2e08a252.js","static/js/columns-d323691e.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-42e4100e.js","static/js/columns-0c66f27d.js","static/js/index-20b90cee.js","static/js/index.vue_vue_type_script_setup_true_lang-5b80f491.js","static/js/index.vue_vue_type_script_setup_true_lang-d808ba9d.js","static/js/columns-0196fa7c.js","static/js/index.vue_vue_type_script_setup_true_lang-83d93c8a.js","static/js/columns-50e1c67e.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-d5598001.js"),["static/js/columns-d5598001.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-2f38d4ed.js"),["static/js/index-2f38d4ed.js","static/js/index.vue_vue_type_script_setup_true_lang-eaec8c84.js","static/js/columns-d5598001.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-d323691e.js"),["static/js/columns-d323691e.js","static/js/print-a6e42845.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-b6741add.js"),["static/js/index-b6741add.js","static/js/index.vue_vue_type_script_setup_true_lang-2e08a252.js","static/js/columns-d323691e.js","static/js/print-a6e42845.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-7cddc388.js"),["static/js/index-7cddc388.js","static/js/index.vue_vue_type_script_setup_true_lang-5b80f491.js","static/js/index.vue_vue_type_script_setup_true_lang-d808ba9d.js","static/js/columns-0196fa7c.js","static/js/message-e6e365bf.js","static/js/data-b773037a.js","static/js/index.vue_vue_type_script_setup_true_lang-83d93c8a.js","static/js/columns-50e1c67e.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-50e1c67e.js"),["static/js/columns-50e1c67e.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-9fa5c9dd.js"),["static/js/index-9fa5c9dd.js","static/js/index.vue_vue_type_script_setup_true_lang-83d93c8a.js","static/js/columns-50e1c67e.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-0196fa7c.js"),["static/js/columns-0196fa7c.js","static/js/message-e6e365bf.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-6c681421.js"),["static/js/index-6c681421.js","static/js/index.vue_vue_type_script_setup_true_lang-d808ba9d.js","static/js/columns-0196fa7c.js","static/js/message-e6e365bf.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-7bc1ada8.js"),["static/js/columns-7bc1ada8.js","static/js/data-b773037a.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-2ff85c9f.js"),["static/js/index-2ff85c9f.js","static/js/index.vue_vue_type_script_setup_true_lang-5573b118.js","static/js/columns-7bc1ada8.js","static/js/data-b773037a.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-e2171acc.js"),["static/js/index-e2171acc.js","static/js/list-4d647718.js","static/js/base.vue_vue_type_script_setup_true_lang-185bcc5b.js","static/js/data-5208a047.js","static/js/stripe.vue_vue_type_script_setup_true_lang-c0a35138.js","static/js/border.vue_vue_type_script_setup_true_lang-8a297b5e.js","static/js/status.vue_vue_type_style_index_0_lang-2ca35ef3.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-9df9df5e.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5c604312.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-db73faf3.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-6f52e2eb.js","static/js/radio.vue_vue_type_script_setup_true_lang-2ecb3a49.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-67656f37.js","static/js/sortable.vue_vue_type_script_setup_true_lang-f68b451a.js","static/js/filters.vue_vue_type_script_setup_true_lang-f245da04.js","static/js/index.vue_vue_type_script_setup_true_lang-0d384020.js","static/js/columns-b89e49b0.js","static/js/message-e6e365bf.js","static/js/index.vue_vue_type_script_setup_true_lang-2fa6755e.js","static/js/columns-28b47a22.js","static/js/expand.vue_vue_type_script_setup_true_lang-3d81dd2b.js","static/js/tree.vue_vue_type_script_setup_true_lang-f4746ea9.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-cef1c6c2.js","static/js/merge.vue_vue_type_script_setup_true_lang-e20c991c.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-c37e85c7.js","static/js/layout.vue_vue_type_script_setup_true_lang-9f590848.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-b55a768c.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c5855999.js","static/css/index-c6b6432d.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-09bdd76b.js"),["static/js/columns-09bdd76b.js","static/js/arrow-right-s-line-2977cc7e.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-b9a7eecc.js"),["static/js/fail-b9a7eecc.js","static/js/columns-09bdd76b.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-41fe1fe5.js"),["static/js/success-41fe1fe5.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-93071d1a.js"),["static/js/form-93071d1a.js","static/js/form.vue_vue_type_script_setup_true_lang-d150defb.js"]),"/src/views/system/dept/hook.tsx":()=>__vitePreload(()=>import("./hook-eb85c050.js"),["static/js/hook-eb85c050.js","static/js/form.vue_vue_type_script_setup_true_lang-d150defb.js","static/js/message-e6e365bf.js","static/js/system-c8ecea94.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-99deced5.js"),["static/js/index-99deced5.js","static/js/hook-eb85c050.js","static/js/form.vue_vue_type_script_setup_true_lang-d150defb.js","static/js/message-e6e365bf.js","static/js/system-c8ecea94.js","static/js/refresh-592a466a.js","static/js/epTheme-8be6290d.js","static/js/sortable.esm-679e0872.js","static/js/hooks-47b97b33.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/system/role/hook.tsx":()=>__vitePreload(()=>import("./hook-7d80010d.js"),["static/js/hook-7d80010d.js","static/js/message-e6e365bf.js","static/js/system-c8ecea94.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-ac9d8cbf.js"),["static/js/index-ac9d8cbf.js","static/js/hook-7d80010d.js","static/js/message-e6e365bf.js","static/js/system-c8ecea94.js","static/js/refresh-592a466a.js","static/js/epTheme-8be6290d.js","static/js/sortable.esm-679e0872.js","static/js/hooks-47b97b33.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/menu-a4fe64fb.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-9f62158a.css"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-1e16cf07.js"),["static/js/hook-1e16cf07.js","static/js/message-e6e365bf.js","static/js/system-c8ecea94.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-feb7780c.js"),["static/js/index-feb7780c.js","static/js/tree-f1ade09a.js","static/js/system-c8ecea94.js","static/js/hooks-47b97b33.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css","static/js/hook-1e16cf07.js","static/js/message-e6e365bf.js","static/js/refresh-592a466a.js","static/js/epTheme-8be6290d.js","static/js/sortable.esm-679e0872.js","static/js/admin-line-92b9acda.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-7734e749.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-f1ade09a.js"),["static/js/tree-f1ade09a.js","static/js/system-c8ecea94.js","static/js/hooks-47b97b33.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index-8fca0909.js"),["static/js/index-8fca0909.js","static/js/hooks-c3262da4.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-0d60ab48.js"),["static/js/params-detail-0d60ab48.js","static/js/hooks-c3262da4.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-5e1b35b2.js"),["static/js/query-detail-5e1b35b2.js","static/js/hooks-c3262da4.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-58b16cfb.js"),["static/js/Bar-58b16cfb.js","static/js/Bar.vue_vue_type_script_setup_true_lang-cd93e600.js","static/js/app-2c822755.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-b5f74acc.js"),["static/js/Github-b5f74acc.js","static/js/Github.vue_vue_type_script_setup_true_lang-2d4c3078.js","static/js/columns-ef76d9a9.js","static/js/index-01416050.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line-9b115fe4.js"),["static/js/Line-9b115fe4.js","static/js/Line.vue_vue_type_script_setup_true_lang-35e38023.js","static/js/app-2c822755.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-b0282524.js"),["static/js/Pie-b0282524.js","static/js/Pie.vue_vue_type_script_setup_true_lang-0f1dfa14.js","static/js/app-2c822755.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-ef76d9a9.js"),["static/js/columns-ef76d9a9.js","static/js/index-01416050.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index-ea785ea7.js"),["static/js/index-ea785ea7.js","static/js/Bar.vue_vue_type_script_setup_true_lang-cd93e600.js","static/js/app-2c822755.js","static/js/Pie.vue_vue_type_script_setup_true_lang-0f1dfa14.js","static/js/Line.vue_vue_type_script_setup_true_lang-35e38023.js","static/js/index-01416050.js","static/js/index-20b90cee.js","static/js/Github.vue_vue_type_script_setup_true_lang-2d4c3078.js","static/js/columns-ef76d9a9.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-e00e2602.js","static/css/index-18417f34.css","static/css/index-76b99267.css"])});function handRank($){const{name:z,path:oe,parentId:ae,meta:ie}=$;return P$1(ae)?!!(P$1(ie==null?void 0:ie.rank)||(ie==null?void 0:ie.rank)===0&&z!=="Home"&&oe!=="/"):!1}function ascending($){return $.forEach((z,oe)=>{handRank(z)&&(z.meta.rank=oe+2)}),$.sort((z,oe)=>(z==null?void 0:z.meta.rank)-(oe==null?void 0:oe.meta.rank))}function filterTree($){const z=Ke($).filter(oe=>{var ae;return((ae=oe.meta)==null?void 0:ae.showLink)!==!1});return z.forEach(oe=>oe.children&&(oe.children=filterTree(oe.children))),z}function filterChildrenTree($){const z=Ke($).filter(oe=>{var ae;return((ae=oe==null?void 0:oe.children)==null?void 0:ae.length)!==0});return z.forEach(oe=>oe.children&&(oe.children=filterTree(oe.children))),z}function isOneOfArray($,z){return Array.isArray($)&&Array.isArray(z)?yr($,z).length>0:!0}function filterNoPermissionTree($){var ae;const z=((ae=Qn().getItem(sessionKey))==null?void 0:ae.roles)??[],oe=Ke($).filter(ie=>{var le;return isOneOfArray((le=ie.meta)==null?void 0:le.roles,z)});return oe.forEach(ie=>ie.children&&(ie.children=filterNoPermissionTree(ie.children))),filterChildrenTree(oe)}function getParentPaths($,z,oe="path"){function ae(ie,le,pe){for(let _e=0;_e<ie.length;_e++){const Ce=ie[_e];if(Ce[oe]===le)return pe;if(!(!Ce.children||!Ce.children.length)){if(pe.push(Ce.path),ae(Ce.children,le,pe).length)return pe;pe.pop()}}return[]}return ae(z,$,[])}function findRouteByPath($,z){let oe=z.find(ae=>ae.path==$);if(oe)return isProxy(oe)?toRaw(oe):oe;for(let ae=0;ae<z.length;ae++)if(z[ae].children instanceof Array&&z[ae].children.length>0&&(oe=findRouteByPath($,z[ae].children),oe))return isProxy(oe)?toRaw(oe):oe;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes($){$.length===0||formatFlatteningRoutes(addAsyncRoutes($)).map(z=>{if(router.options.routes[0].children.findIndex(oe=>oe.path===z.path)===-1){router.options.routes[0].children.push(z),ascending(router.options.routes[0].children),router.hasRoute(z==null?void 0:z.name)||router.addRoute(z);const oe=router.getRoutes().find(ae=>ae.path==="/");router.addRoute(oe)}}),usePermissionStoreHook().handleWholeMenus($),addPathMatch()}function initRouter(){var $;if(($=getConfig())!=null&&$.CachingAsyncRoutes){const z="async-routes",oe=Qn().getItem(z);return oe&&(oe==null?void 0:oe.length)>0?new Promise(ae=>{handleAsyncRoutes(oe),ae(router)}):new Promise(ae=>{getAsyncRoutes().then(({data:ie})=>{handleAsyncRoutes(Ke(ie)),Qn().setItem(z,ie),ae(router)})})}else return new Promise(z=>{getAsyncRoutes().then(({data:oe})=>{handleAsyncRoutes(Ke(oe)),z(router)})})}function formatFlatteningRoutes($){if($.length===0)return $;let z=buildHierarchyTree($);for(let oe=0;oe<z.length;oe++)z[oe].children&&(z=z.slice(0,oe+1).concat(z[oe].children,z.slice(oe+1)));return z}function formatTwoStageRoutes($){if($.length===0)return $;const z=[];return $.forEach(oe=>{var ae;oe.path==="/"?z.push({component:oe.component,name:oe.name,path:oe.path,redirect:oe.redirect,meta:oe.meta,children:[]}):(ae=z[0])==null||ae.children.push({...oe})}),z}function handleAliveRoute({name:$},z){switch(z){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:$});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:$});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:$});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:$}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:$})},100)}}function addAsyncRoutes($){if(!$||!$.length)return;const z=Object.keys(modulesRoutes);return $.forEach(oe=>{var ae;if(oe.meta.backstage=!0,oe!=null&&oe.children&&oe.children.length&&!oe.redirect&&(oe.redirect=oe.children[0].path),oe!=null&&oe.children&&oe.children.length&&!oe.name&&(oe.name=oe.children[0].name+"Parent"),(ae=oe.meta)!=null&&ae.frameSrc)oe.component=IFrame;else{const ie=oe!=null&&oe.component?z.findIndex(le=>le.includes(oe.component)):z.findIndex(le=>le.includes(oe.path));oe.component=modulesRoutes[z[ie]]}oe!=null&&oe.children&&oe.children.length&&addAsyncRoutes(oe.children)}),$}function getHistoryMode($){const z=$.split(","),oe=z[0],ae=z[1];if(z.length===1){if(oe==="hash")return createWebHashHistory("");if(oe==="h5")return createWebHistory("")}else if(z.length===2){if(oe==="hash")return createWebHashHistory(ae);if(oe==="h5")return createWebHistory(ae)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth($){if(!$)return!1;const z=getAuths();return z?!!(S($)?z.includes($):br($,z)):!1}function getTopMenu($=!1){var oe;const z=(oe=usePermissionStoreHook().wholeMenus[0])==null?void 0:oe.children[0];return $&&useMultiTagsStoreHook().handleTags("push",z),z}const usePermissionStore=defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus($){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat($))))},cacheOperate({mode:$,name:z}){const oe=this.cachePageList.findIndex(ae=>ae===z);switch($){case"refresh":this.cachePageList=this.cachePageList.filter(ae=>ae!==z);break;case"add":this.cachePageList.push(z);break;case"delete":oe!==-1&&this.cachePageList.splice(oe,1);break}(()=>{let ae=this.cachePageList.length;const ie=wr(useMultiTagsStoreHook().multiTags,"name");for(;ae>0;)ie.findIndex(le=>le===this.cachePageList[ae-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[ae-1]),1),ae--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-dccd5eb2.js"),["static/js/index-dccd5eb2.js","static/js/menu-a4fe64fb.js","static/js/edit-d219f0c6.js","static/js/set-up-e6942411.js","static/js/home-filled-05cc090c.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-b4e9c3d9.js","static/js/app-2c822755.js","static/js/epTheme-8be6290d.js","static/js/hooks-47b97b33.js","static/js/index-20b90cee.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/js/back_top-cbe59047.js","static/css/index-9ec9a9c1.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-a183ddcb.js"),["static/js/index-a183ddcb.js","static/js/motion-3a6f9742.js","static/js/message-e6e365bf.js","static/js/verifyCode-41d10693.js","static/js/phone.vue_vue_type_script_setup_true_lang-9620fcd3.js","static/js/hooks-47b97b33.js","static/js/iphone-bcaa848c.js","static/js/index-01416050.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-c513d394.js","static/js/index-a7bad971.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-1f032e39.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-eee45ed3.js","static/js/dark-b4e9c3d9.js","static/js/app-2c822755.js","static/js/epTheme-8be6290d.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.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-981cba09.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-da66504e.js"),["static/js/index-da66504e.js","static/css/index-18755a0a.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($=>{routes.push(modules$1[$].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))),constantMenus=ascending(routes.flat(1/0)).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map($=>remainingRouter[$].path),router=createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior($,z,oe){return new Promise(ae=>{if(oe)return oe;if(z.meta.saveSrollTop){const ie=document.documentElement.scrollTop||document.body.scrollTop;ae({left:0,top:ie})}})}});function resetRouter(){router.getRoutes().forEach($=>{const{name:z,meta:oe}=$;z&&router.hasRoute(z)&&(oe!=null&&oe.backstage)&&(router.removeRoute(z),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(($,z,oe)=>{var pe,_e,Ce;(pe=$.meta)!=null&&pe.keepAlive&&(handleAliveRoute($,"add"),(z.name===void 0||z.name==="Redirect")&&handleAliveRoute($));const ae=Qn().getItem(sessionKey);NProgress.start();const ie=dt($==null?void 0:$.name);ie||$.matched.some($e=>{if(!$e.meta.title)return"";const xe=getConfig().Title;xe?document.title=`${transformI18n($e.meta.title)} | ${xe}`:document.title=transformI18n($e.meta.title)});function le(){whiteList.includes($.fullPath)?oe(z.fullPath):oe()}ae?((_e=$.meta)!=null&&_e.roles&&!isOneOfArray((Ce=$.meta)==null?void 0:Ce.roles,ae==null?void 0:ae.roles)&&oe({path:"/error/403"}),VITE_HIDE_HOME==="true"&&$.fullPath==="/welcome"&&oe({path:"/error/404"}),z!=null&&z.name?ie?(Tt($==null?void 0:$.name),NProgress.done()):le():(usePermissionStoreHook().wholeMenus.length===0&&$.path!=="/login"&&initRouter().then($e=>{var xe;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:Ie}=$,Ne=findRouteByPath(Ie,$e.options.routes[0].children);getTopMenu(!0),Ne&&((xe=Ne.meta)!=null&&xe.title)&&useMultiTagsStoreHook().handleTags("push",{path:Ne.path,name:Ne.name,meta:Ne.meta})}$e.push($.fullPath)}),le())):$.path!=="/login"?whiteList.indexOf($.path)!==-1?oe():oe({path:"/login"}):oe()});router.afterEach(()=>{NProgress.done()});var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=$=>typeof $=="number",isString$2=$=>typeof $=="string",isObject$4=$=>toString.call($)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tryOnScopeDispose($){return getCurrentScope()?(onScopeDispose($),!0):!1}function tryOnUnmounted($){getCurrentInstance()&&onUnmounted($)}function unrefElement($){var z;const oe=unref($);return(z=oe==null?void 0:oe.$el)!=null?z:oe}const defaultWindow=isClient?window:void 0;function useEventListener(...$){let z,oe,ae,ie;if(isString$2($[0])?([oe,ae,ie]=$,z=defaultWindow):[z,oe,ae,ie]=$,!z)return noop$1;let le=noop$1;const pe=watch(()=>unrefElement(z),Ce=>{le(),Ce&&(Ce.addEventListener(oe,ae,ie),le=()=>{Ce.removeEventListener(oe,ae,ie),le=noop$1})},{immediate:!0,flush:"post"}),_e=()=>{pe(),le()};return tryOnScopeDispose(_e),_e}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};function useIntersectionObserver($,z,oe={}){const{root:ae,rootMargin:ie="0px",threshold:le=.1,window:pe=defaultWindow}=oe,_e=pe&&"IntersectionObserver"in pe;let Ce=noop$1;const $e=_e?watch(()=>({el:unrefElement($),root:unrefElement(ae)}),({el:Ie,root:Ne})=>{if(Ce(),!Ie)return;const Fe=new IntersectionObserver(z,{root:Ne,rootMargin:ie,threshold:le});Fe.observe(Ie),Ce=()=>{Fe.disconnect(),Ce=noop$1}},{immediate:!0,flush:"post"}):noop$1,xe=()=>{Ce(),$e()};return tryOnScopeDispose(xe),{isSupported:_e,stop:xe}}var SwipeDirection;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?$=>window.requestAnimationFrame($):$=>setTimeout(()=>$(getCurrentTime()),defaultTimestep);function createRenderStep($){let z=[],oe=[],ae=0,ie=!1,le=!1;const pe=new WeakSet,_e={schedule:(Ce,$e=!1,xe=!1)=>{const Ie=xe&&ie,Ne=Ie?z:oe;return $e&&pe.add(Ce),Ne.indexOf(Ce)===-1&&(Ne.push(Ce),Ie&&ie&&(ae=z.length)),Ce},cancel:Ce=>{const $e=oe.indexOf(Ce);$e!==-1&&oe.splice($e,1),pe.delete(Ce)},process:Ce=>{if(ie){le=!0;return}if(ie=!0,[z,oe]=[oe,z],oe.length=0,ae=z.length,ae)for(let $e=0;$e<ae;$e++){const xe=z[$e];xe(Ce),pe.has(xe)&&(_e.schedule(xe),$())}ie=!1,le&&(le=!1,_e.process(Ce))}};return _e}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce(($,z)=>($[z]=createRenderStep(()=>runNextFrame=!0),$),{}),sync=stepsOrder.reduce(($,z)=>{const oe=steps[z];return $[z]=(ae,ie=!1,le=!1)=>(runNextFrame||startLoop(),oe.schedule(ae,ie,le)),$},{}),cancelSync=stepsOrder.reduce(($,z)=>($[z]=steps[z].cancel,$),{});stepsOrder.reduce(($,z)=>($[z]=()=>steps[z].process(frame),$),{});const processStep=$=>steps[$].process(frame),processFrame=$=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min($-frame.timestamp,maxElapsed),1),frame.timestamp=$,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest($,z){var oe={};for(var ae in $)Object.prototype.hasOwnProperty.call($,ae)&&z.indexOf(ae)<0&&(oe[ae]=$[ae]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ae=Object.getOwnPropertySymbols($);ie<ae.length;ie++)z.indexOf(ae[ie])<0&&Object.prototype.propertyIsEnumerable.call($,ae[ie])&&(oe[ae[ie]]=$[ae[ie]]);return oe}var warning=function(){},invariant=function(){};const clamp$2=($,z,oe)=>Math.min(Math.max(oe,$),z),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:z=.25,velocity:oe=0,mass:ae=1}){let ie,le;warning($<=maxDuration*1e3);let pe=1-z;pe=clamp$2(minDamping,maxDamping,pe),$=clamp$2(minDuration,maxDuration,$/1e3),pe<1?(ie=$e=>{const xe=$e*pe,Ie=xe*$,Ne=xe-oe,Fe=calcAngularFreq($e,pe),ze=Math.exp(-Ie);return safeMin-Ne/Fe*ze},le=$e=>{const Ie=$e*pe*$,Ne=Ie*oe+oe,Fe=Math.pow(pe,2)*Math.pow($e,2)*$,ze=Math.exp(-Ie),At=calcAngularFreq(Math.pow($e,2),pe);return(-ie($e)+safeMin>0?-1:1)*((Ne-Fe)*ze)/At}):(ie=$e=>{const xe=Math.exp(-$e*$),Ie=($e-oe)*$+1;return-safeMin+xe*Ie},le=$e=>{const xe=Math.exp(-$e*$),Ie=(oe-$e)*($*$);return xe*Ie});const _e=5/$,Ce=approximateRoot(ie,le,_e);if($=$*1e3,isNaN(Ce))return{stiffness:100,damping:10,duration:$};{const $e=Math.pow(Ce,2)*ae;return{stiffness:$e,damping:pe*2*Math.sqrt(ae*$e),duration:$}}}const rootIterations=12;function approximateRoot($,z,oe){let ae=oe;for(let ie=1;ie<rootIterations;ie++)ae=ae-$(ae)/z(ae);return ae}function calcAngularFreq($,z){return $*Math.sqrt(1-z*z)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType($,z){return z.some(oe=>$[oe]!==void 0)}function getSpringOptions($){let z=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},$);if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const oe=findSpring($);z=Object.assign(Object.assign(Object.assign({},z),oe),{velocity:0,mass:1}),z.isResolvedFromDuration=!0}return z}function spring($){var{from:z=0,to:oe=1,restSpeed:ae=2,restDelta:ie}=$,le=__rest($,["from","to","restSpeed","restDelta"]);const pe={done:!1,value:z};let{stiffness:_e,damping:Ce,mass:$e,velocity:xe,duration:Ie,isResolvedFromDuration:Ne}=getSpringOptions(le),Fe=zero,ze=zero;function At(){const Lt=xe?-(xe/1e3):0,hn=oe-z,vn=Ce/(2*Math.sqrt(_e*$e)),_n=Math.sqrt(_e/$e)/1e3;if(ie===void 0&&(ie=Math.min(Math.abs(oe-z)/100,.4)),vn<1){const bn=calcAngularFreq(_n,vn);Fe=Cn=>{const En=Math.exp(-vn*_n*Cn);return oe-En*((Lt+vn*_n*hn)/bn*Math.sin(bn*Cn)+hn*Math.cos(bn*Cn))},ze=Cn=>{const En=Math.exp(-vn*_n*Cn);return vn*_n*En*(Math.sin(bn*Cn)*(Lt+vn*_n*hn)/bn+hn*Math.cos(bn*Cn))-En*(Math.cos(bn*Cn)*(Lt+vn*_n*hn)-bn*hn*Math.sin(bn*Cn))}}else if(vn===1)Fe=bn=>oe-Math.exp(-_n*bn)*(hn+(Lt+_n*hn)*bn);else{const bn=_n*Math.sqrt(vn*vn-1);Fe=Cn=>{const En=Math.exp(-vn*_n*Cn),$n=Math.min(bn*Cn,300);return oe-En*((Lt+vn*_n*hn)*Math.sinh($n)+bn*hn*Math.cosh($n))/bn}}}return At(),{next:Lt=>{const hn=Fe(Lt);if(Ne)pe.done=Lt>=Ie;else{const vn=ze(Lt)*1e3,_n=Math.abs(vn)<=ae,bn=Math.abs(oe-hn)<=ie;pe.done=_n&&bn}return pe.value=pe.done?oe:hn,pe},flipTarget:()=>{xe=-xe,[z,oe]=[oe,z],At()}}}spring.needsInterpolation=($,z)=>typeof $=="string"||typeof z=="string";const zero=$=>0,progress=($,z,oe)=>{const ae=z-$;return ae===0?1:(oe-$)/ae},mix=($,z,oe)=>-oe*$+oe*z+$,clamp$1=($,z)=>oe=>Math.max(Math.min(oe,z),$),sanitize=$=>$%1?Number($.toFixed(5)):$,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($){return typeof $=="string"}const number$1={test:$=>typeof $=="number",parse:parseFloat,transform:$=>$},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=$=>({test:z=>isString$1(z)&&z.endsWith($)&&z.split(" ").length===1,parse:parseFloat,transform:z=>`${z}${$}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:$=>percent.parse($)/100,transform:$=>percent.transform($*100)}),isColorString=($,z)=>oe=>!!(isString$1(oe)&&singleColorRegex.test(oe)&&oe.startsWith($)||z&&Object.prototype.hasOwnProperty.call(oe,z)),splitColor=($,z,oe)=>ae=>{if(!isString$1(ae))return ae;const[ie,le,pe,_e]=ae.match(floatRegex);return{[$]:parseFloat(ie),[z]:parseFloat(le),[oe]:parseFloat(pe),alpha:_e!==void 0?parseFloat(_e):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:z,lightness:oe,alpha:ae=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(z))+", "+percent.transform(sanitize(oe))+", "+sanitize(alpha.transform(ae))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:$=>Math.round(clampRgbUnit($))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:$,green:z,blue:oe,alpha:ae=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(z)+", "+rgbUnit.transform(oe)+", "+sanitize(alpha.transform(ae))+")"};function parseHex($){let z="",oe="",ae="",ie="";return $.length>5?(z=$.substr(1,2),oe=$.substr(3,2),ae=$.substr(5,2),ie=$.substr(7,2)):(z=$.substr(1,1),oe=$.substr(2,1),ae=$.substr(3,1),ie=$.substr(4,1),z+=z,oe+=oe,ae+=ae,ie+=ie),{red:parseInt(z,16),green:parseInt(oe,16),blue:parseInt(ae,16),alpha:ie?parseInt(ie,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:$=>rgba.test($)||hex.test($)||hsla.test($),parse:$=>rgba.test($)?rgba.parse($):hsla.test($)?hsla.parse($):hex.parse($),transform:$=>isString$1($)?$:$.hasOwnProperty("red")?rgba.transform($):hsla.transform($)},colorToken="${c}",numberToken="${n}";function test($){var z,oe,ae,ie;return isNaN($)&&isString$1($)&&((oe=(z=$.match(floatRegex))===null||z===void 0?void 0:z.length)!==null&&oe!==void 0?oe:0)+((ie=(ae=$.match(colorRegex))===null||ae===void 0?void 0:ae.length)!==null&&ie!==void 0?ie:0)>0}function analyse$1($){typeof $=="number"&&($=`${$}`);const z=[];let oe=0;const ae=$.match(colorRegex);ae&&(oe=ae.length,$=$.replace(colorRegex,colorToken),z.push(...ae.map(color$1.parse)));const ie=$.match(floatRegex);return ie&&($=$.replace(floatRegex,numberToken),z.push(...ie.map(number$1.parse))),{values:z,numColors:oe,tokenised:$}}function parse$2($){return analyse$1($).values}function createTransformer($){const{values:z,numColors:oe,tokenised:ae}=analyse$1($),ie=z.length;return le=>{let pe=ae;for(let _e=0;_e<ie;_e++)pe=pe.replace(_e<oe?colorToken:numberToken,_e<oe?color$1.transform(le[_e]):sanitize(le[_e]));return pe}}const convertNumbersToZero=$=>typeof $=="number"?0:$;function getAnimatableNone$1($){const z=parse$2($);return createTransformer($)(z.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter($){let[z,oe]=$.slice(0,-1).split("(");if(z==="drop-shadow")return $;const[ae]=oe.match(floatRegex)||[];if(!ae)return $;const ie=oe.replace(ae,"");let le=maxDefaults.has(z)?1:0;return ae!==oe&&(le*=100),z+"("+le+ie+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:$=>{const z=$.match(functionRegex);return z?z.map(applyDefaultFilter).join(" "):$}});function hueToRgb($,z,oe){return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?$+(z-$)*6*oe:oe<1/2?z:oe<2/3?$+(z-$)*(2/3-oe)*6:$}function hslaToRgba({hue:$,saturation:z,lightness:oe,alpha:ae}){$/=360,z/=100,oe/=100;let ie=0,le=0,pe=0;if(!z)ie=le=pe=oe;else{const _e=oe<.5?oe*(1+z):oe+z-oe*z,Ce=2*oe-_e;ie=hueToRgb(Ce,_e,$+1/3),le=hueToRgb(Ce,_e,$),pe=hueToRgb(Ce,_e,$-1/3)}return{red:Math.round(ie*255),green:Math.round(le*255),blue:Math.round(pe*255),alpha:ae}}const mixLinearColor=($,z,oe)=>{const ae=$*$,ie=z*z;return Math.sqrt(Math.max(0,oe*(ie-ae)+ae))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(z=>z.test($)),mixColor=($,z)=>{let oe=getColorType($),ae=getColorType(z),ie=oe.parse($),le=ae.parse(z);oe===hsla&&(ie=hslaToRgba(ie),oe=rgba),ae===hsla&&(le=hslaToRgba(le),ae=rgba);const pe=Object.assign({},ie);return _e=>{for(const Ce in pe)Ce!=="alpha"&&(pe[Ce]=mixLinearColor(ie[Ce],le[Ce],_e));return pe.alpha=mix(ie.alpha,le.alpha,_e),oe.transform(pe)}},isNum=$=>typeof $=="number",combineFunctions=($,z)=>oe=>z($(oe)),pipe=(...$)=>$.reduce(combineFunctions);function getMixer($,z){return isNum($)?oe=>mix($,z,oe):color$1.test($)?mixColor($,z):mixComplex($,z)}const mixArray=($,z)=>{const oe=[...$],ae=oe.length,ie=$.map((le,pe)=>getMixer(le,z[pe]));return le=>{for(let pe=0;pe<ae;pe++)oe[pe]=ie[pe](le);return oe}},mixObject=($,z)=>{const oe=Object.assign(Object.assign({},$),z),ae={};for(const ie in oe)$[ie]!==void 0&&z[ie]!==void 0&&(ae[ie]=getMixer($[ie],z[ie]));return ie=>{for(const le in ae)oe[le]=ae[le](ie);return oe}};function analyse($){const z=complex.parse($),oe=z.length;let ae=0,ie=0,le=0;for(let pe=0;pe<oe;pe++)ae||typeof z[pe]=="number"?ae++:z[pe].hue!==void 0?le++:ie++;return{parsed:z,numNumbers:ae,numRGB:ie,numHSL:le}}const mixComplex=($,z)=>{const oe=complex.createTransformer(z),ae=analyse($),ie=analyse(z);return ae.numHSL===ie.numHSL&&ae.numRGB===ie.numRGB&&ae.numNumbers>=ie.numNumbers?pipe(mixArray(ae.parsed,ie.parsed),oe):pe=>`${pe>0?z:$}`},mixNumber=($,z)=>oe=>mix($,z,oe);function detectMixerFactory($){if(typeof $=="number")return mixNumber;if(typeof $=="string")return color$1.test($)?mixColor:mixComplex;if(Array.isArray($))return mixArray;if(typeof $=="object")return mixObject}function createMixers($,z,oe){const ae=[],ie=oe||detectMixerFactory($[0]),le=$.length-1;for(let pe=0;pe<le;pe++){let _e=ie($[pe],$[pe+1]);if(z){const Ce=Array.isArray(z)?z[pe]:z;_e=pipe(Ce,_e)}ae.push(_e)}return ae}function fastInterpolate([$,z],[oe]){return ae=>oe(progress($,z,ae))}function slowInterpolate($,z){const oe=$.length,ae=oe-1;return ie=>{let le=0,pe=!1;if(ie<=$[0]?pe=!0:ie>=$[ae]&&(le=ae-1,pe=!0),!pe){let Ce=1;for(;Ce<oe&&!($[Ce]>ie||Ce===ae);Ce++);le=Ce-1}const _e=progress($[le],$[le+1],ie);return z[le](_e)}}function interpolate($,z,{clamp:oe=!0,ease:ae,mixer:ie}={}){const le=$.length;invariant(le===z.length),invariant(!ae||!Array.isArray(ae)||ae.length===le-1),$[0]>$[le-1]&&($=[].concat($),z=[].concat(z),$.reverse(),z.reverse());const pe=createMixers(z,ae,ie),_e=le===2?fastInterpolate($,pe):slowInterpolate($,pe);return oe?Ce=>_e(clamp$2($[0],$[le-1],Ce)):_e}const reverseEasing=$=>z=>1-$(1-z),mirrorEasing=$=>z=>z<=.5?$(2*z)/2:(2-$(2*(1-z)))/2,createExpoIn=$=>z=>Math.pow(z,$),createBackIn=$=>z=>z*z*(($+1)*z-$),createAnticipate=$=>{const z=createBackIn($);return oe=>(oe*=2)<1?.5*z(oe):.5*(2-Math.pow(2,-10*(oe-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=$=>$,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=$=>1-Math.sin(Math.acos($)),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=$=>{if($===1||$===0)return $;const z=$*$;return $<BOUNCE_FIRST_THRESHOLD?7.5625*z:$<BOUNCE_SECOND_THRESHOLD?9.075*z-9.9*$+3.4:$<BOUNCE_THIRD_THRESHOLD?ca*z-cb*$+cc:10.8*$*$-20.52*$+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=$=>$<.5?.5*(1-bounceOut(1-$*2)):.5*bounceOut($*2-1)+.5;function defaultEasing($,z){return $.map(()=>z||easeInOut).splice(0,$.length-1)}function defaultOffset($){const z=$.length;return $.map((oe,ae)=>ae!==0?ae/(z-1):0)}function convertOffsetToTimes($,z){return $.map(oe=>oe*z)}function keyframes$1({from:$=0,to:z=1,ease:oe,offset:ae,duration:ie=300}){const le={done:!1,value:$},pe=Array.isArray(z)?z:[$,z],_e=convertOffsetToTimes(ae&&ae.length===pe.length?ae:defaultOffset(pe),ie);function Ce(){return interpolate(_e,pe,{ease:Array.isArray(oe)?oe:defaultEasing(pe,oe)})}let $e=Ce();return{next:xe=>(le.value=$e(xe),le.done=xe>=ie,le),flipTarget:()=>{pe.reverse(),$e=Ce()}}}function decay({velocity:$=0,from:z=0,power:oe=.8,timeConstant:ae=350,restDelta:ie=.5,modifyTarget:le}){const pe={done:!1,value:z};let _e=oe*$;const Ce=z+_e,$e=le===void 0?Ce:le(Ce);return $e!==Ce&&(_e=$e-z),{next:xe=>{const Ie=-_e*Math.exp(-xe/ae);return pe.done=!(Ie>ie||Ie<-ie),pe.value=pe.done?$e:$e+Ie,pe},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions($){if(Array.isArray($.to))return keyframes$1;if(types[$.type])return types[$.type];const z=new Set(Object.keys($));return z.has("ease")||z.has("duration")&&!z.has("dampingRatio")?keyframes$1:z.has("dampingRatio")||z.has("stiffness")||z.has("mass")||z.has("damping")||z.has("restSpeed")||z.has("restDelta")?spring:keyframes$1}function loopElapsed($,z,oe=0){return $-z-oe}function reverseElapsed($,z,oe=0,ae=!0){return ae?loopElapsed(z+-$,z,oe):z-($-z)+oe}function hasRepeatDelayElapsed($,z,oe,ae){return ae?$>=z+oe:$<=-oe}const framesync=$=>{const z=({delta:oe})=>$(oe);return{start:()=>sync.update(z,!0),stop:()=>cancelSync.update(z)}};function animate($){var z,oe,{from:ae,autoplay:ie=!0,driver:le=framesync,elapsed:pe=0,repeat:_e=0,repeatType:Ce="loop",repeatDelay:$e=0,onPlay:xe,onStop:Ie,onComplete:Ne,onRepeat:Fe,onUpdate:ze}=$,At=__rest($,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:Lt}=At,hn,vn=0,_n=At.duration,bn,Cn=!1,En=!0,$n;const wn=detectAnimationFromOptions(At);!((oe=(z=wn).needsInterpolation)===null||oe===void 0)&&oe.call(z,ae,Lt)&&($n=interpolate([0,100],[ae,Lt],{clamp:!1}),ae=0,Lt=100);const Tn=wn(Object.assign(Object.assign({},At),{from:ae,to:Lt}));function xn(){vn++,Ce==="reverse"?(En=vn%2===0,pe=reverseElapsed(pe,_n,$e,En)):(pe=loopElapsed(pe,_n,$e),Ce==="mirror"&&Tn.flipTarget()),Cn=!1,Fe&&Fe()}function kn(){hn.stop(),Ne&&Ne()}function An(Mn){if(En||(Mn=-Mn),pe+=Mn,!Cn){const Fn=Tn.next(Math.max(0,pe));bn=Fn.value,$n&&(bn=$n(bn)),Cn=En?Fn.done:pe<=0}ze==null||ze(bn),Cn&&(vn===0&&(_n??(_n=pe)),vn<_e?hasRepeatDelayElapsed(pe,_n,$e,En)&&xn():kn())}function On(){xe==null||xe(),hn=le(An),hn.start()}return ie&&On(),{stop:()=>{Ie==null||Ie(),hn.stop()}}}function velocityPerSecond($,z){return z?$*(1e3/z):0}function inertia({from:$=0,velocity:z=0,min:oe,max:ae,power:ie=.8,timeConstant:le=750,bounceStiffness:pe=500,bounceDamping:_e=10,restDelta:Ce=1,modifyTarget:$e,driver:xe,onUpdate:Ie,onComplete:Ne,onStop:Fe}){let ze;function At(_n){return oe!==void 0&&_n<oe||ae!==void 0&&_n>ae}function Lt(_n){return oe===void 0?ae:ae===void 0||Math.abs(oe-_n)<Math.abs(ae-_n)?oe:ae}function hn(_n){ze==null||ze.stop(),ze=animate(Object.assign(Object.assign({},_n),{driver:xe,onUpdate:bn=>{var Cn;Ie==null||Ie(bn),(Cn=_n.onUpdate)===null||Cn===void 0||Cn.call(_n,bn)},onComplete:Ne,onStop:Fe}))}function vn(_n){hn(Object.assign({type:"spring",stiffness:pe,damping:_e,restDelta:Ce},_n))}if(At($))vn({from:$,velocity:z,to:Lt($)});else{let _n=ie*z+$;typeof $e<"u"&&(_n=$e(_n));const bn=Lt(_n),Cn=bn===oe?-1:1;let En,$n;const wn=Tn=>{En=$n,$n=Tn,z=velocityPerSecond(Tn-En,getFrameData().delta),(Cn===1&&Tn>bn||Cn===-1&&Tn<bn)&&vn({from:Tn,to:bn,velocity:z})};hn({type:"decay",from:$,velocity:z,timeConstant:le,power:ie,restDelta:Ce,modifyTarget:$e,onUpdate:At(_n)?wn:void 0})}return{stop:()=>ze==null?void 0:ze.stop()}}const a=($,z)=>1-3*z+3*$,b=($,z)=>3*z-6*$,c$1=$=>3*$,calcBezier=($,z,oe)=>((a(z,oe)*$+b(z,oe))*$+c$1(z))*$,getSlope=($,z,oe)=>3*a(z,oe)*$*$+2*b(z,oe)*$+c$1(z),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide($,z,oe,ae,ie){let le,pe,_e=0;do pe=z+(oe-z)/2,le=calcBezier(pe,ae,ie)-$,le>0?oe=pe:z=pe;while(Math.abs(le)>subdivisionPrecision&&++_e<subdivisionMaxIterations);return pe}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate($,z,oe,ae){for(let ie=0;ie<newtonIterations;++ie){const le=getSlope(z,oe,ae);if(le===0)return z;const pe=calcBezier(z,oe,ae)-$;z-=pe/le}return z}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier($,z,oe,ae){if($===z&&oe===ae)return linear;const ie=new Float32Array(kSplineTableSize);for(let pe=0;pe<kSplineTableSize;++pe)ie[pe]=calcBezier(pe*kSampleStepSize,$,oe);function le(pe){let _e=0,Ce=1;const $e=kSplineTableSize-1;for(;Ce!==$e&&ie[Ce]<=pe;++Ce)_e+=kSampleStepSize;--Ce;const xe=(pe-ie[Ce])/(ie[Ce+1]-ie[Ce]),Ie=_e+xe*kSampleStepSize,Ne=getSlope(Ie,$,oe);return Ne>=newtonMinSlope?newtonRaphsonIterate(pe,Ie,$,oe):Ne===0?Ie:binarySubdivide(pe,_e,_e+kSampleStepSize,$,oe)}return pe=>pe===0||pe===1?pe:calcBezier(le(pe),z,ae)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(z){return this.subscriptions.add(z),()=>this.subscriptions.delete(z)}notify(z,oe,ae){if(this.subscriptions.size)for(const ie of this.subscriptions)ie(z,oe,ae)}clear(){this.subscriptions.clear()}}const isFloat=$=>!isNaN(parseFloat($));class MotionValue{constructor(z){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=oe=>{this.prev=this.current,this.current=oe;const{delta:ae,timestamp:ie}=getFrameData();this.lastUpdated!==ie&&(this.timeDelta=ae,this.lastUpdated=ie),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:oe})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),oe!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=z,this.canTrackVelocity=isFloat(this.current)}onChange(z){return this.updateSubscribers.add(z)}clearListeners(){this.updateSubscribers.clear()}set(z){this.updateAndNotify(z)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(z){return this.stop(),new Promise(oe=>{const{stop:ae}=z(oe);this.stopAnimation=ae}).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($){return new MotionValue($)}const{isArray:isArray$2}=Array;function useMotionValues(){const $=ref({}),z=ae=>{const ie=le=>{$.value[le]&&($.value[le].stop(),$.value[le].destroy(),del($.value,le))};ae?isArray$2(ae)?ae.forEach(ie):ie(ae):Object.keys($.value).forEach(ie)},oe=(ae,ie,le)=>{if($.value[ae])return $.value[ae];const pe=getMotionValue(ie);return pe.onChange(_e=>{set$3(le,ae,_e)}),set$3($.value,ae,pe),pe};return tryOnUnmounted(z),{motionValues:$,get:oe,stop:z}}const isKeyframesTarget=$=>Array.isArray($),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=$=>({type:"keyframes",duration:800,values:$}),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},getDefaultTransition=($,z)=>{let oe;return isKeyframesTarget(z)?oe=keyframes:oe=defaultTransitions[$]||defaultTransitions.default,{to:z,...oe(z)}},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=$=>valueTypes[$],getValueAsType=($,z)=>z&&typeof $=="number"&&z.transform?z.transform($):$;function getAnimatableNone($,z){let oe=getValueType($);return oe!==filter$1&&(oe=complex),oe.getAnimatableNone?oe.getAnimatableNone(z):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=$=>{if(Array.isArray($)){const[z,oe,ae,ie]=$;return cubicBezier(z,oe,ae,ie)}else if(typeof $=="string")return easingLookup[$];return $},isEasingArray=$=>Array.isArray($)&&typeof $[0]!="number",isAnimatable=($,z)=>$==="zIndex"?!1:!!(typeof z=="number"||Array.isArray(z)||typeof z=="string"&&complex.test(z)&&!z.startsWith("url("));function hydrateKeyframes($){return Array.isArray($.to)&&$.to[0]===null&&($.to=[...$.to],$.to[0]=$.from),$}function convertTransitionToAnimationOptions({ease:$,times:z,delay:oe,...ae}){const ie={...ae};return z&&(ie.offset=z),$&&(ie.ease=isEasingArray($)?$.map(easingDefinitionToFunction):easingDefinitionToFunction($)),oe&&(ie.elapsed=-oe),ie}function getPopmotionAnimationOptions($,z,oe){return Array.isArray(z.to)&&($.duration||($.duration=800)),hydrateKeyframes(z),isTransitionDefined($)||($={...$,...getDefaultTransition(oe,z.to)}),{...z,...convertTransitionToAnimationOptions($)}}function isTransitionDefined({delay:$,repeat:z,repeatType:oe,repeatDelay:ae,from:ie,...le}){return!!Object.keys(le).length}function getValueTransition($,z){return $[z]||$.default||$}function getAnimation($,z,oe,ae,ie){const le=getValueTransition(ae,$);let pe=le.from===null||le.from===void 0?z.get():le.from;const _e=isAnimatable($,oe);pe==="none"&&_e&&typeof oe=="string"&&(pe=getAnimatableNone($,oe));const Ce=isAnimatable($,pe);function $e(Ie){const Ne={from:pe,to:oe,velocity:ae.velocity?ae.velocity:z.getVelocity(),onUpdate:Fe=>z.set(Fe)};return le.type==="inertia"||le.type==="decay"?inertia({...Ne,...le}):animate({...getPopmotionAnimationOptions(le,Ne,$),onUpdate:Fe=>{Ne.onUpdate(Fe),le.onUpdate&&le.onUpdate(Fe)},onComplete:()=>{ae.onComplete&&ae.onComplete(),ie&&ie(),Ie&&Ie()}})}function xe(Ie){return z.set(oe),ae.onComplete&&ae.onComplete(),ie&&ie(),Ie&&Ie(),{stop:()=>{}}}return!Ce||!_e||le.type===!1?xe:$e}function useMotionTransitions(){const{motionValues:$,stop:z,get:oe}=useMotionValues();return{motionValues:$,stop:z,push:(ie,le,pe,_e={},Ce)=>{const $e=pe[ie],xe=oe(ie,$e,pe);if(_e&&_e.immediate){xe.set(le);return}const Ie=getAnimation(ie,xe,le,_e,Ce);xe.start(Ie)}}}function useMotionControls($,z={},{motionValues:oe,push:ae,stop:ie}=useMotionTransitions()){const le=unref(z),pe=ref(!1),_e=watch(oe,Ne=>{pe.value=Object.values(Ne).filter(Fe=>Fe.isAnimating()).length>0},{immediate:!0,deep:!0}),Ce=Ne=>{if(!le||!le[Ne])throw new Error(`The variant ${Ne} does not exist.`);return le[Ne]},$e=Ne=>(typeof Ne=="string"&&(Ne=Ce(Ne)),Promise.all(Object.entries(Ne).map(([Fe,ze])=>{if(Fe!=="transition")return new Promise(At=>{ae(Fe,ze,$,Ne.transition||getDefaultTransition(Fe,Ne[Fe]),At)})}).filter(Boolean)));return{isAnimating:pe,apply:$e,set:Ne=>{const Fe=isObject$4(Ne)?Ne:Ce(Ne);Object.entries(Fe).forEach(([ze,At])=>{ze!=="transition"&&ae(ze,At,$,{immediate:!0})})},stopTransitions:()=>{_e(),ie()},leave:async Ne=>{let Fe;if(le&&(le.leave&&(Fe=le.leave),!le.leave&&le.initial&&(Fe=le.initial)),!Fe){Ne();return}await $e(Fe),Ne()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:$,state:z,variants:oe,apply:ae}){const ie=unref(oe),le=[],pe=(...ze)=>{const At=useEventListener.apply(null,ze);return le.push(At),At},_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=computed(()=>{let ze=[];return ie&&(ie.hovered&&(ze=[...ze,...Object.keys(ie.hovered)]),ie.tapped&&(ze=[...ze,...Object.keys(ie.tapped)]),ie.focused&&(ze=[...ze,...Object.keys(ie.focused)])),ze}),Ie=computed(()=>{const ze={};Object.assign(ze,z.value),_e.value&&ie.hovered&&Object.assign(ze,ie.hovered),Ce.value&&ie.tapped&&Object.assign(ze,ie.tapped),$e.value&&ie.focused&&Object.assign(ze,ie.focused);for(const At in ze)xe.value.includes(At)||delete ze[At];return ze});ie.hovered&&(pe($,"mouseenter",()=>{_e.value=!0}),pe($,"mouseleave",()=>{_e.value=!1,Ce.value=!1}),pe($,"mouseout",()=>{_e.value=!1,Ce.value=!1})),ie.tapped&&(supportsMouseEvents()&&(pe($,"mousedown",()=>{Ce.value=!0}),pe($,"mouseup",()=>{Ce.value=!1})),supportsPointerEvents()&&(pe($,"pointerdown",()=>{Ce.value=!0}),pe($,"pointerup",()=>{Ce.value=!1})),supportsTouchEvents()&&(pe($,"touchstart",()=>{Ce.value=!0}),pe($,"touchend",()=>{Ce.value=!1}))),ie.focused&&(pe($,"focus",()=>{$e.value=!0}),pe($,"blur",()=>{$e.value=!1}));const Ne=watch(Ie,ae);return{stop:()=>{le.forEach(ze=>ze()),Ne()}}}function registerLifeCycleHooks({set:$,target:z,variants:oe,variant:ae}){const ie=unref(oe);return{stop:watch(()=>z,()=>{ie&&(ie.initial&&$("initial"),ie.enter&&(ae.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:$,apply:z}){return{stop:watch($,ae=>{ae&&z(ae)},{immediate:!0})}}function registerVisibilityHooks({target:$,variants:z,variant:oe}){const ae=unref(z);let ie=noop$1;if(ae&&(ae.visible||ae.visibleOnce)){const{stop:le}=useIntersectionObserver($,([{isIntersecting:pe}])=>{ae.visible?pe?oe.value="visible":oe.value="initial":ae.visibleOnce&&(pe?oe.value!=="visibleOnce"&&(oe.value="visibleOnce"):oe.value||(oe.value="initial"))});ie=le}return{stop:ie}}function useMotionFeatures($,z={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const oe=ref([]);if(z.lifeCycleHooks){const{stop:ie}=registerLifeCycleHooks($);oe.value.push(ie)}if(z.syncVariants){const{stop:ie}=registerVariantsSync($);oe.value.push(ie)}if(z.visibilityHooks){const{stop:ie}=registerVisibilityHooks($);oe.value.push(ie)}if(z.eventListeners){const{stop:ie}=registerEventListeners($);oe.value.push(ie)}const ae=()=>oe.value.forEach(ie=>ie());return tryOnUnmounted(ae),{stop:ae}}function reactiveStyle($={}){const z=reactive({...$}),oe=ref({});return watch(z,()=>{const ae={};for(const[ie,le]of Object.entries(z)){const pe=getValueType(ie),_e=getValueAsType(le,pe);ae[ie]=_e}oe.value=ae},{immediate:!0,deep:!0}),{state:z,style:oe}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach($=>{transformAxes.forEach(z=>{const oe=$+z;transformProps.push(oe)})});const transformPropSet=new Set(transformProps);function isTransformProp($){return transformPropSet.has($)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp($){return transformOriginProps.has($)}function splitValues($){const z={},oe={};return Object.entries($).forEach(([ae,ie])=>{isTransformProp(ae)||isTransformOriginProp(ae)?z[ae]=ie:oe[ae]=ie}),{transform:z,style:oe}}function useElementStyle($,z){let oe,ae;const{state:ie,style:le}=reactiveStyle(),pe=watch(()=>unrefElement($),$e=>{if($e){ae=$e;for(const xe of Object.keys(valueTypes))$e.style[xe]===null||$e.style[xe]===""||isTransformProp(xe)||isTransformOriginProp(xe)||set$3(ie,xe,$e.style[xe]);oe&&Object.entries(oe).forEach(([xe,Ie])=>set$3($e.style,xe,Ie)),z&&z(ie)}},{immediate:!0}),_e=watch(le,$e=>{if(!ae){oe=$e;return}for(const xe in $e)set$3(ae.style,xe,$e[xe])},{immediate:!0});return{style:ie,stop:()=>{ae=void 0,oe=void 0,pe(),_e()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform($={},z=!0){const oe=reactive({...$}),ae=ref("");return watch(oe,ie=>{let le="",pe=!1;if(z&&(ie.x||ie.y||ie.z)){const _e=[ie.x||0,ie.y||0,ie.z||0].map(px.transform).join(",");le+=`translate3d(${_e}) `,pe=!0}for(const[_e,Ce]of Object.entries(ie)){if(z&&(_e==="x"||_e==="y"||_e==="z"))continue;const $e=getValueType(_e),xe=getValueAsType(Ce,$e);le+=`${translateAlias[_e]||_e}(${xe}) `}z&&!pe&&(le+="translateZ(0px) "),ae.value=le.trim()},{immediate:!0,deep:!0}),{state:oe,transform:ae}}function parseTransform($){const z=$.trim().split(/\) |\)/);if(z.length===1)return{};const oe=ae=>ae.endsWith("px")||ae.endsWith("deg")?parseFloat(ae):isNaN(Number(ae))?Number(ae):ae;return z.reduce((ae,ie)=>{if(!ie)return ae;const[le,pe]=ie.split("("),Ce=pe.split(",").map(xe=>oe(xe.endsWith(")")?xe.replace(")",""):xe.trim())),$e=Ce.length===1?Ce[0]:Ce;return{...ae,[le]:$e}},{})}function stateFromTransform($,z){Object.entries(parseTransform(z)).forEach(([oe,ae])=>{ae=parseFloat(ae);const ie=["x","y","z"];if(oe==="translate3d"){if(ae===0){ie.forEach(le=>{set$3($,le,0)});return}ae.forEach((le,pe)=>{set$3($,ie[pe],le)});return}if(oe==="translateX"){set$3($,"x",ae);return}if(oe==="translateY"){set$3($,"y",ae);return}if(oe==="translateZ"){set$3($,"z",ae);return}set$3($,oe,ae)})}function useElementTransform($,z){let oe,ae;const{state:ie,transform:le}=reactiveTransform(),pe=watch(()=>unrefElement($),$e=>{$e&&(ae=$e,$e.style.transform&&stateFromTransform(ie,$e.style.transform),oe&&($e.style.transform=oe),z&&z(ie))},{immediate:!0}),_e=watch(le,$e=>{if(!ae){oe=$e;return}ae.style.transform=$e},{immediate:!0});return{transform:ie,stop:()=>{oe=void 0,ae=void 0,pe(),_e()}}}function useMotionProperties($,z){const oe=reactive({}),ae=Ie=>{Object.entries(Ie).forEach(([Ne,Fe])=>{set$3(oe,Ne,Fe)})},{style:ie,stop:le}=useElementStyle($,ae),{transform:pe,stop:_e}=useElementTransform($,ae),Ce=watch(oe,Ie=>{Object.entries(Ie).forEach(([Ne,Fe])=>{const ze=isTransformProp(Ne)?pe:ie;ze[Ne]&&ze[Ne]===Fe||set$3(ze,Ne,Fe)})},{immediate:!0,deep:!0}),$e=watch(()=>unrefElement($),Ie=>{Ie&&z&&ae(z)},{immediate:!0});return{motionProperties:oe,style:ie,transform:pe,stop:()=>{le(),_e(),Ce(),$e()}}}function useMotionVariants($={}){const z=unref($),oe=ref();return{state:computed(()=>{if(oe.value)return z[oe.value]}),variant:oe}}function useMotion($,z={},oe){const{motionProperties:ae,stop:ie}=useMotionProperties($),{variant:le,state:pe}=useMotionVariants(z),_e=useMotionControls(ae,z),Ce={target:$,variant:le,variants:z,state:pe,motionProperties:ae,..._e,stop:(xe=!1)=>{}},{stop:$e}=useMotionFeatures(Ce,oe);return Ce.stop=(xe=!1)=>{const Ie=()=>{Ce.stopTransitions(),ie(),$e()};if(!xe&&z.value&&z.value.leave){const Ne=watch(Ce.isAnimating,Fe=>{Fe||(Ne(),Ie())})}else Ie()},tryOnUnmounted(()=>Ce.stop()),Ce}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=($,z)=>{const oe=$.props?$.props:$.data&&$.data.attrs?$.data.attrs:{};oe&&(oe.variants&&isObject$4(oe.variants)&&(z.value={...z.value,...oe.variants}),directivePropsKeys.forEach(ae=>{if(ae==="delay"){if(oe&&oe[ae]&&isNumber$1(oe[ae])){const ie=oe[ae];z&&z.value&&(z.value.enter&&(z.value.enter.transition||(z.value.enter.transition={}),z.value.enter.transition={...z.value.enter.transition,delay:ie}),z.value.visible&&(z.value.visible.transition||(z.value.visible.transition={}),z.value.visible.transition={...z.value.visible.transition,delay:ie}),z.value.visibleOnce&&(z.value.visibleOnce.transition||(z.value.visibleOnce.transition={}),z.value.visibleOnce.transition={...z.value.visibleOnce.transition,delay:ie}))}return}ae==="visible-once"&&(ae="visibleOnce"),oe&&oe[ae]&&isObject$4(oe[ae])&&(z.value[ae]=oe[ae])}))},directive=$=>{const z=(ae,ie,le)=>{const pe=ie.value&&typeof ie.value=="string"?ie.value:le.key;pe&&motionState[pe]&&motionState[pe].stop();const _e=ref($||{});typeof ie.value=="object"&&(_e.value=ie.value),resolveVariants(le,_e);const Ce=useMotion(ae,_e);ae.motionInstance=Ce,pe&&set$3(motionState,pe,Ce)},oe=ae=>{ae.motionInstance&&ae.motionInstance.stop()};return{created:z,unmounted:oe,bind:z,unbind:oe,getSSRProps(ae,ie){const{initial:le}=ae.value||ie.props||{};if(!le||Object.keys(le).length===0)return;const{transform:pe,style:_e}=splitValues(le),{transform:Ce}=reactiveTransform(pe),{style:$e}=reactiveStyle(_e);return Ce.value&&($e.value.transform=Ce.value),{style:$e.value}}}},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,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify($){const z="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",oe="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",ae=new RegExp(z.split("").join("|"),"g");return $.toString().replace(/[A-Z]/g,ie=>`-${ie}`).toLowerCase().replace(/\s+/g,"-").replace(ae,ie=>oe.charAt(z.indexOf(ie))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install($,z){if($.directive("motion",directive()),!z||z&&!z.excludePresets)for(const oe in presets){const ae=presets[oe];$.directive(`motion-${slugify(oe)}`,directive(ae))}if(z&&z.directives)for(const oe in z.directives){const ae=z.directives[oe];!ae.initial&&__DEV__&&console.warn(`Your directive v-motion-${oe} is missing initial variant!`),$.directive(`motion-${oe}`,directive(ae))}}};/*! *****************************************************************************
|
||
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($,z){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ae){oe.__proto__=ae}||function(oe,ae){for(var ie in ae)Object.prototype.hasOwnProperty.call(ae,ie)&&(oe[ie]=ae[ie])},extendStatics($,z)};function __extends($,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");extendStatics($,z);function oe(){this.constructor=$}$.prototype=z===null?Object.create(z):(oe.prototype=z.prototype,new oe)}var Browser=function(){function $(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return $}(),Env=function(){function $(){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 $}(),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($,z){var oe=z.browser,ae=$.match(/Firefox\/([\d.]+)/),ie=$.match(/MSIE\s([\d.]+)/)||$.match(/Trident\/.+?rv:(([\d.]+))/),le=$.match(/Edge?\/([\d.]+)/),pe=/micromessenger/i.test($);ae&&(oe.firefox=!0,oe.version=ae[1]),ie&&(oe.ie=!0,oe.version=ie[1]),le&&(oe.edge=!0,oe.version=le[1],oe.newEdge=+le[1].split(".")[0]>18),pe&&(oe.weChat=!0),z.svgSupported=typeof SVGRect<"u",z.touchEventsSupported="ontouchstart"in window&&!oe.ie&&!oe.edge,z.pointerEventsSupported="onpointerdown"in window&&(oe.edge||oe.ie&&+oe.version>=11),z.domSupported=typeof document<"u";var _e=document.documentElement.style;z.transform3dSupported=(oe.ie&&"transition"in _e||oe.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in _e)&&!("OTransition"in _e),z.transformSupported=z.transform3dSupported||oe.ie&&+oe.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($){var z={};if(typeof JSON>"u")return z;for(var oe=0;oe<$.length;oe++){var ae=String.fromCharCode(oe+32),ie=($.charCodeAt(oe)-OFFSET)/SCALE;z[ae]=ie}return z}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var $,z;return function(oe,ae){if(!$){var ie=platformApi.createCanvas();$=ie&&ie.getContext("2d")}if($)return z!==ae&&(z=$.font=ae||DEFAULT_FONT),$.measureText(oe);oe=oe||"",ae=ae||DEFAULT_FONT;var le=/(\d+)px/.exec(ae),pe=le&&+le[1]||DEFAULT_FONT_SIZE,_e=0;if(ae.indexOf("mono")>=0)_e=pe*oe.length;else for(var Ce=0;Ce<oe.length;Ce++){var $e=DEFAULT_TEXT_WIDTH_MAP[oe[Ce]];_e+=$e==null?pe:$e*pe}return{width:_e}}}(),loadImage:function($,z,oe){var ae=new Image;return ae.onload=z,ae.onerror=oe,ae.src=$,ae}};function setPlatformAPI($){for(var z in platformApi)$[z]&&(platformApi[z]=$[z])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function($,z){return $["[object "+z+"]"]=!0,$},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function($,z){return $["[object "+z+"Array]"]=!0,$},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=function(){}.constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var $=[],z=0;z<arguments.length;z++)$[z]=arguments[z];typeof console<"u"&&console.error.apply(console,$)}function clone$3($){if($==null||typeof $!="object")return $;var z=$,oe=objToString.call($);if(oe==="[object Array]"){if(!isPrimitive($)){z=[];for(var ae=0,ie=$.length;ae<ie;ae++)z[ae]=clone$3($[ae])}}else if(TYPED_ARRAY[oe]){if(!isPrimitive($)){var le=$.constructor;if(le.from)z=le.from($);else{z=new le($.length);for(var ae=0,ie=$.length;ae<ie;ae++)z[ae]=$[ae]}}}else if(!BUILTIN_OBJECT[oe]&&!isPrimitive($)&&!isDom($)){z={};for(var pe in $)$.hasOwnProperty(pe)&&pe!==protoKey&&(z[pe]=clone$3($[pe]))}return z}function merge($,z,oe){if(!isObject$3(z)||!isObject$3($))return oe?clone$3(z):$;for(var ae in z)if(z.hasOwnProperty(ae)&&ae!==protoKey){var ie=$[ae],le=z[ae];isObject$3(le)&&isObject$3(ie)&&!isArray$1(le)&&!isArray$1(ie)&&!isDom(le)&&!isDom(ie)&&!isBuiltInObject(le)&&!isBuiltInObject(ie)&&!isPrimitive(le)&&!isPrimitive(ie)?merge(ie,le,oe):(oe||!(ae in $))&&($[ae]=clone$3(z[ae]))}return $}function mergeAll($,z){for(var oe=$[0],ae=1,ie=$.length;ae<ie;ae++)oe=merge(oe,$[ae],z);return oe}function extend($,z){if(Object.assign)Object.assign($,z);else for(var oe in z)z.hasOwnProperty(oe)&&oe!==protoKey&&($[oe]=z[oe]);return $}function defaults($,z,oe){for(var ae=keys(z),ie=0;ie<ae.length;ie++){var le=ae[ie];(oe?z[le]!=null:$[le]==null)&&($[le]=z[le])}return $}var createCanvas=platformApi.createCanvas;function indexOf($,z){if($){if($.indexOf)return $.indexOf(z);for(var oe=0,ae=$.length;oe<ae;oe++)if($[oe]===z)return oe}return-1}function inherits($,z){var oe=$.prototype;function ae(){}ae.prototype=z.prototype,$.prototype=new ae;for(var ie in oe)oe.hasOwnProperty(ie)&&($.prototype[ie]=oe[ie]);$.prototype.constructor=$,$.superClass=z}function mixin($,z,oe){if($="prototype"in $?$.prototype:$,z="prototype"in z?z.prototype:z,Object.getOwnPropertyNames)for(var ae=Object.getOwnPropertyNames(z),ie=0;ie<ae.length;ie++){var le=ae[ie];le!=="constructor"&&(oe?z[le]!=null:$[le]==null)&&($[le]=z[le])}else defaults($,z,oe)}function isArrayLike($){return!$||typeof $=="string"?!1:typeof $.length=="number"}function each$c($,z,oe){if($&&z)if($.forEach&&$.forEach===nativeForEach)$.forEach(z,oe);else if($.length===+$.length)for(var ae=0,ie=$.length;ae<ie;ae++)z.call(oe,$[ae],ae,$);else for(var le in $)$.hasOwnProperty(le)&&z.call(oe,$[le],le,$)}function map$2($,z,oe){if(!$)return[];if(!z)return slice($);if($.map&&$.map===nativeMap)return $.map(z,oe);for(var ae=[],ie=0,le=$.length;ie<le;ie++)ae.push(z.call(oe,$[ie],ie,$));return ae}function reduce($,z,oe,ae){if($&&z){for(var ie=0,le=$.length;ie<le;ie++)oe=z.call(ae,oe,$[ie],ie,$);return oe}}function filter($,z,oe){if(!$)return[];if(!z)return slice($);if($.filter&&$.filter===nativeFilter)return $.filter(z,oe);for(var ae=[],ie=0,le=$.length;ie<le;ie++)z.call(oe,$[ie],ie,$)&&ae.push($[ie]);return ae}function find($,z,oe){if($&&z){for(var ae=0,ie=$.length;ae<ie;ae++)if(z.call(oe,$[ae],ae,$))return $[ae]}}function keys($){if(!$)return[];if(Object.keys)return Object.keys($);var z=[];for(var oe in $)$.hasOwnProperty(oe)&&z.push(oe);return z}function bindPolyfill($,z){for(var oe=[],ae=2;ae<arguments.length;ae++)oe[ae-2]=arguments[ae];return function(){return $.apply(z,oe.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1($){for(var z=[],oe=1;oe<arguments.length;oe++)z[oe-1]=arguments[oe];return function(){return $.apply(this,z.concat(nativeSlice.call(arguments)))}}function isArray$1($){return Array.isArray?Array.isArray($):objToString.call($)==="[object Array]"}function isFunction($){return typeof $=="function"}function isString($){return typeof $=="string"}function isStringSafe($){return objToString.call($)==="[object String]"}function isNumber($){return typeof $=="number"}function isObject$3($){var z=typeof $;return z==="function"||!!$&&z==="object"}function isBuiltInObject($){return!!BUILTIN_OBJECT[objToString.call($)]}function isTypedArray($){return!!TYPED_ARRAY[objToString.call($)]}function isDom($){return typeof $=="object"&&typeof $.nodeType=="number"&&typeof $.ownerDocument=="object"}function isGradientObject($){return $.colorStops!=null}function isImagePatternObject($){return $.image!=null}function isRegExp($){return objToString.call($)==="[object RegExp]"}function eqNaN($){return $!==$}function retrieve(){for(var $=[],z=0;z<arguments.length;z++)$[z]=arguments[z];for(var oe=0,ae=$.length;oe<ae;oe++)if($[oe]!=null)return $[oe]}function retrieve2($,z){return $??z}function retrieve3($,z,oe){return $??z??oe}function slice($){for(var z=[],oe=1;oe<arguments.length;oe++)z[oe-1]=arguments[oe];return nativeSlice.apply($,z)}function normalizeCssArray$1($){if(typeof $=="number")return[$,$,$,$];var z=$.length;return z===2?[$[0],$[1],$[0],$[1]]:z===3?[$[0],$[1],$[2],$[1]]:$}function assert($,z){if(!$)throw new Error(z)}function trim$1($){return $==null?null:typeof $.trim=="function"?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive($){$[primitiveKey]=!0}function isPrimitive($){return $[primitiveKey]}var MapPolyfill=function(){function $(){this.data={}}return $.prototype.delete=function(z){var oe=this.has(z);return oe&&delete this.data[z],oe},$.prototype.has=function(z){return this.data.hasOwnProperty(z)},$.prototype.get=function(z){return this.data[z]},$.prototype.set=function(z,oe){return this.data[z]=oe,this},$.prototype.keys=function(){return keys(this.data)},$.prototype.forEach=function(z){var oe=this.data;for(var ae in oe)oe.hasOwnProperty(ae)&&z(oe[ae],ae)},$}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function $(z){var oe=isArray$1(z);this.data=maybeNativeMap();var ae=this;z instanceof $?z.each(ie):z&&each$c(z,ie);function ie(le,pe){oe?ae.set(le,pe):ae.set(pe,le)}}return $.prototype.hasKey=function(z){return this.data.has(z)},$.prototype.get=function(z){return this.data.get(z)},$.prototype.set=function(z,oe){return this.data.set(z,oe),oe},$.prototype.each=function(z,oe){this.data.forEach(function(ae,ie){z.call(oe,ae,ie)})},$.prototype.keys=function(){var z=this.data.keys();return isNativeMapSupported?Array.from(z):z},$.prototype.removeKey=function(z){this.data.delete(z)},$}();function createHashMap($){return new HashMap($)}function concatArray($,z){for(var oe=new $.constructor($.length+z.length),ae=0;ae<$.length;ae++)oe[ae]=$[ae];for(var ie=$.length,ae=0;ae<z.length;ae++)oe[ae+ie]=z[ae];return oe}function createObject($,z){var oe;if(Object.create)oe=Object.create($);else{var ae=function(){};ae.prototype=$,oe=new ae}return z&&extend(oe,z),oe}function disableUserSelect($){var z=$.style;z.webkitUserSelect="none",z.userSelect="none",z.webkitTapHighlightColor="rgba(0,0,0,0)",z["-webkit-touch-callout"]="none"}function hasOwn($,z){return $.hasOwnProperty(z)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;const util$1=Object.freeze(Object.defineProperty({__proto__:null,HashMap,RADIAN_TO_DEGREE,assert,bind:bind$1,clone:clone$3,concatArray,createCanvas,createHashMap,createObject,curry:curry$1,defaults,disableUserSelect,each:each$c,eqNaN,extend,filter,find,guid,hasOwn,indexOf,inherits,isArray:isArray$1,isArrayLike,isBuiltInObject,isDom,isFunction,isGradientObject,isImagePatternObject,isNumber,isObject:isObject$3,isPrimitive,isRegExp,isString,isStringSafe,isTypedArray,keys,logError,map:map$2,merge,mergeAll,mixin,noop,normalizeCssArray:normalizeCssArray$1,reduce,retrieve,retrieve2,retrieve3,setAsPrimitive,slice,trim:trim$1},Symbol.toStringTag,{value:"Module"}));function create$1($,z){return $==null&&($=0),z==null&&(z=0),[$,z]}function copy$1($,z){return $[0]=z[0],$[1]=z[1],$}function clone$2($){return[$[0],$[1]]}function set$1($,z,oe){return $[0]=z,$[1]=oe,$}function add($,z,oe){return $[0]=z[0]+oe[0],$[1]=z[1]+oe[1],$}function scaleAndAdd($,z,oe,ae){return $[0]=z[0]+oe[0]*ae,$[1]=z[1]+oe[1]*ae,$}function sub($,z,oe){return $[0]=z[0]-oe[0],$[1]=z[1]-oe[1],$}function len($){return Math.sqrt(lenSquare($))}var length=len;function lenSquare($){return $[0]*$[0]+$[1]*$[1]}var lengthSquare=lenSquare;function mul$1($,z,oe){return $[0]=z[0]*oe[0],$[1]=z[1]*oe[1],$}function div($,z,oe){return $[0]=z[0]/oe[0],$[1]=z[1]/oe[1],$}function dot($,z){return $[0]*z[0]+$[1]*z[1]}function scale$2($,z,oe){return $[0]=z[0]*oe,$[1]=z[1]*oe,$}function normalize$1($,z){var oe=len(z);return oe===0?($[0]=0,$[1]=0):($[0]=z[0]/oe,$[1]=z[1]/oe),$}function distance($,z){return Math.sqrt(($[0]-z[0])*($[0]-z[0])+($[1]-z[1])*($[1]-z[1]))}var dist$1=distance;function distanceSquare($,z){return($[0]-z[0])*($[0]-z[0])+($[1]-z[1])*($[1]-z[1])}var distSquare=distanceSquare;function negate($,z){return $[0]=-z[0],$[1]=-z[1],$}function lerp$1($,z,oe,ae){return $[0]=z[0]+ae*(oe[0]-z[0]),$[1]=z[1]+ae*(oe[1]-z[1]),$}function applyTransform$1($,z,oe){var ae=z[0],ie=z[1];return $[0]=oe[0]*ae+oe[2]*ie+oe[4],$[1]=oe[1]*ae+oe[3]*ie+oe[5],$}function min$1($,z,oe){return $[0]=Math.min(z[0],oe[0]),$[1]=Math.min(z[1],oe[1]),$}function max$1($,z,oe){return $[0]=Math.max(z[0],oe[0]),$[1]=Math.max(z[1],oe[1]),$}const vector=Object.freeze(Object.defineProperty({__proto__:null,add,applyTransform:applyTransform$1,clone:clone$2,copy:copy$1,create:create$1,dist:dist$1,distSquare,distance,distanceSquare,div,dot,len,lenSquare,length,lengthSquare,lerp:lerp$1,max:max$1,min:min$1,mul:mul$1,negate,normalize:normalize$1,scale:scale$2,scaleAndAdd,set:set$1,sub},Symbol.toStringTag,{value:"Module"}));var Param=function(){function $(z,oe){this.target=z,this.topTarget=oe&&oe.topTarget}return $}(),Draggable=function(){function $(z){this.handler=z,z.on("mousedown",this._dragStart,this),z.on("mousemove",this._drag,this),z.on("mouseup",this._dragEnd,this)}return $.prototype._dragStart=function(z){for(var oe=z.target;oe&&!oe.draggable;)oe=oe.parent||oe.__hostTarget;oe&&(this._draggingTarget=oe,oe.dragging=!0,this._x=z.offsetX,this._y=z.offsetY,this.handler.dispatchToElement(new Param(oe,z),"dragstart",z.event))},$.prototype._drag=function(z){var oe=this._draggingTarget;if(oe){var ae=z.offsetX,ie=z.offsetY,le=ae-this._x,pe=ie-this._y;this._x=ae,this._y=ie,oe.drift(le,pe,z),this.handler.dispatchToElement(new Param(oe,z),"drag",z.event);var _e=this.handler.findHover(ae,ie,oe).target,Ce=this._dropTarget;this._dropTarget=_e,oe!==_e&&(Ce&&_e!==Ce&&this.handler.dispatchToElement(new Param(Ce,z),"dragleave",z.event),_e&&_e!==Ce&&this.handler.dispatchToElement(new Param(_e,z),"dragenter",z.event))}},$.prototype._dragEnd=function(z){var oe=this._draggingTarget;oe&&(oe.dragging=!1),this.handler.dispatchToElement(new Param(oe,z),"dragend",z.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,z),"drop",z.event),this._draggingTarget=null,this._dropTarget=null},$}();const Draggable$1=Draggable;var Eventful=function(){function $(z){z&&(this._$eventProcessor=z)}return $.prototype.on=function(z,oe,ae,ie){this._$handlers||(this._$handlers={});var le=this._$handlers;if(typeof oe=="function"&&(ie=ae,ae=oe,oe=null),!ae||!z)return this;var pe=this._$eventProcessor;oe!=null&&pe&&pe.normalizeQuery&&(oe=pe.normalizeQuery(oe)),le[z]||(le[z]=[]);for(var _e=0;_e<le[z].length;_e++)if(le[z][_e].h===ae)return this;var Ce={h:ae,query:oe,ctx:ie||this,callAtLast:ae.zrEventfulCallAtLast},$e=le[z].length-1,xe=le[z][$e];return xe&&xe.callAtLast?le[z].splice($e,0,Ce):le[z].push(Ce),this},$.prototype.isSilent=function(z){var oe=this._$handlers;return!oe||!oe[z]||!oe[z].length},$.prototype.off=function(z,oe){var ae=this._$handlers;if(!ae)return this;if(!z)return this._$handlers={},this;if(oe){if(ae[z]){for(var ie=[],le=0,pe=ae[z].length;le<pe;le++)ae[z][le].h!==oe&&ie.push(ae[z][le]);ae[z]=ie}ae[z]&&ae[z].length===0&&delete ae[z]}else delete ae[z];return this},$.prototype.trigger=function(z){for(var oe=[],ae=1;ae<arguments.length;ae++)oe[ae-1]=arguments[ae];if(!this._$handlers)return this;var ie=this._$handlers[z],le=this._$eventProcessor;if(ie)for(var pe=oe.length,_e=ie.length,Ce=0;Ce<_e;Ce++){var $e=ie[Ce];if(!(le&&le.filter&&$e.query!=null&&!le.filter(z,$e.query)))switch(pe){case 0:$e.h.call($e.ctx);break;case 1:$e.h.call($e.ctx,oe[0]);break;case 2:$e.h.call($e.ctx,oe[0],oe[1]);break;default:$e.h.apply($e.ctx,oe);break}}return le&&le.afterTrigger&&le.afterTrigger(z),this},$.prototype.triggerWithContext=function(z){for(var oe=[],ae=1;ae<arguments.length;ae++)oe[ae-1]=arguments[ae];if(!this._$handlers)return this;var ie=this._$handlers[z],le=this._$eventProcessor;if(ie)for(var pe=oe.length,_e=oe[pe-1],Ce=ie.length,$e=0;$e<Ce;$e++){var xe=ie[$e];if(!(le&&le.filter&&xe.query!=null&&!le.filter(z,xe.query)))switch(pe){case 0:xe.h.call(_e);break;case 1:xe.h.call(_e,oe[0]);break;case 2:xe.h.call(_e,oe[0],oe[1]);break;default:xe.h.apply(_e,oe.slice(1,pe-1));break}}return le&&le.afterTrigger&&le.afterTrigger(z),this},$}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant($,z,oe,ae,ie,le){var pe=ae+"-"+ie,_e=$.length;if(le.hasOwnProperty(pe))return le[pe];if(z===1){var Ce=Math.round(Math.log((1<<_e)-1&~ie)/LN2);return $[oe][Ce]}for(var $e=ae|1<<oe,xe=oe+1;ae&1<<xe;)xe++;for(var Ie=0,Ne=0,Fe=0;Ne<_e;Ne++){var ze=1<<Ne;ze&ie||(Ie+=(Fe%2?-1:1)*$[oe][Ne]*determinant($,z-1,xe,$e,ie|ze,le),Fe++)}return le[pe]=Ie,Ie}function buildTransformer($,z){var oe=[[$[0],$[1],1,0,0,0,-z[0]*$[0],-z[0]*$[1]],[0,0,0,$[0],$[1],1,-z[1]*$[0],-z[1]*$[1]],[$[2],$[3],1,0,0,0,-z[2]*$[2],-z[2]*$[3]],[0,0,0,$[2],$[3],1,-z[3]*$[2],-z[3]*$[3]],[$[4],$[5],1,0,0,0,-z[4]*$[4],-z[4]*$[5]],[0,0,0,$[4],$[5],1,-z[5]*$[4],-z[5]*$[5]],[$[6],$[7],1,0,0,0,-z[6]*$[6],-z[6]*$[7]],[0,0,0,$[6],$[7],1,-z[7]*$[6],-z[7]*$[7]]],ae={},ie=determinant(oe,8,0,0,0,ae);if(ie!==0){for(var le=[],pe=0;pe<8;pe++)for(var _e=0;_e<8;_e++)le[_e]==null&&(le[_e]=0),le[_e]+=((pe+_e)%2?-1:1)*determinant(oe,7,pe===0?1:0,1<<pe,1<<_e,ae)/ie*z[pe];return function(Ce,$e,xe){var Ie=$e*le[6]+xe*le[7]+1;Ce[0]=($e*le[0]+xe*le[1]+le[2])/Ie,Ce[1]=($e*le[3]+xe*le[4]+le[5])/Ie}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord($,z,oe,ae,ie){return transformCoordWithViewport(_calcOut$1,z,ae,ie,!0)&&transformCoordWithViewport($,oe,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport($,z,oe,ae,ie){if(z.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(z)){var le=z[EVENT_SAVED_PROP]||(z[EVENT_SAVED_PROP]={}),pe=prepareCoordMarkers(z,le),_e=preparePointerTransformer(pe,le,ie);if(_e)return _e($,oe,ae),!0}return!1}function prepareCoordMarkers($,z){var oe=z.markers;if(oe)return oe;oe=z.markers=[];for(var ae=["left","right"],ie=["top","bottom"],le=0;le<4;le++){var pe=document.createElement("div"),_e=pe.style,Ce=le%2,$e=(le>>1)%2;_e.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",ae[Ce]+":0",ie[$e]+":0",ae[1-Ce]+":auto",ie[1-$e]+":auto",""].join("!important;"),$.appendChild(pe),oe.push(pe)}return oe}function preparePointerTransformer($,z,oe){for(var ae=oe?"invTrans":"trans",ie=z[ae],le=z.srcCoords,pe=[],_e=[],Ce=!0,$e=0;$e<4;$e++){var xe=$[$e].getBoundingClientRect(),Ie=2*$e,Ne=xe.left,Fe=xe.top;pe.push(Ne,Fe),Ce=Ce&&le&&Ne===le[Ie]&&Fe===le[Ie+1],_e.push($[$e].offsetLeft,$[$e].offsetTop)}return Ce&&ie?ie:(z.srcCoords=pe,z[ae]=oe?buildTransformer(_e,pe):buildTransformer(pe,_e))}function isCanvasEl($){return $.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML($){return $==null?"":($+"").replace(replaceReg,function(z,oe){return replaceMap[oe]})}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($,z,oe,ae){return oe=oe||{},ae?calculateZrXY($,z,oe):firefoxNotSupportOffsetXY&&z.layerX!=null&&z.layerX!==z.offsetX?(oe.zrX=z.layerX,oe.zrY=z.layerY):z.offsetX!=null?(oe.zrX=z.offsetX,oe.zrY=z.offsetY):calculateZrXY($,z,oe),oe}function calculateZrXY($,z,oe){if(env$1.domSupported&&$.getBoundingClientRect){var ae=z.clientX,ie=z.clientY;if(isCanvasEl($)){var le=$.getBoundingClientRect();oe.zrX=ae-le.left,oe.zrY=ie-le.top;return}else if(transformCoordWithViewport(_calcOut,$,ae,ie)){oe.zrX=_calcOut[0],oe.zrY=_calcOut[1];return}}oe.zrX=oe.zrY=0}function getNativeEvent($){return $||window.event}function normalizeEvent($,z,oe){if(z=getNativeEvent(z),z.zrX!=null)return z;var ae=z.type,ie=ae&&ae.indexOf("touch")>=0;if(ie){var pe=ae!=="touchend"?z.targetTouches[0]:z.changedTouches[0];pe&&clientToLocal($,pe,z,oe)}else{clientToLocal($,z,z,oe);var le=getWheelDeltaMayPolyfill(z);z.zrDelta=le?le/120:-(z.detail||0)/3}var _e=z.button;return z.which==null&&_e!==void 0&&MOUSE_EVENT_REG.test(z.type)&&(z.which=_e&1?1:_e&2?3:_e&4?2:0),z}function getWheelDeltaMayPolyfill($){var z=$.wheelDelta;if(z)return z;var oe=$.deltaX,ae=$.deltaY;if(oe==null||ae==null)return z;var ie=Math.abs(ae!==0?ae:oe),le=ae>0?-1:ae<0?1:oe>0?-1:1;return 3*ie*le}function addEventListener($,z,oe,ae){$.addEventListener(z,oe,ae)}function removeEventListener($,z,oe,ae){$.removeEventListener(z,oe,ae)}var stop=function($){$.preventDefault(),$.stopPropagation(),$.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown($){return $.which===2||$.which===3}var GestureMgr=function(){function $(){this._track=[]}return $.prototype.recognize=function(z,oe,ae){return this._doTrack(z,oe,ae),this._recognize(z)},$.prototype.clear=function(){return this._track.length=0,this},$.prototype._doTrack=function(z,oe,ae){var ie=z.touches;if(ie){for(var le={points:[],touches:[],target:oe,event:z},pe=0,_e=ie.length;pe<_e;pe++){var Ce=ie[pe],$e=clientToLocal(ae,Ce,{});le.points.push([$e.zrX,$e.zrY]),le.touches.push(Ce)}this._track.push(le)}},$.prototype._recognize=function(z){for(var oe in recognizers)if(recognizers.hasOwnProperty(oe)){var ae=recognizers[oe](this._track,z);if(ae)return ae}},$}();function dist($){var z=$[1][0]-$[0][0],oe=$[1][1]-$[0][1];return Math.sqrt(z*z+oe*oe)}function center($){return[($[0][0]+$[1][0])/2,($[0][1]+$[1][1])/2]}var recognizers={pinch:function($,z){var oe=$.length;if(oe){var ae=($[oe-1]||{}).points,ie=($[oe-2]||{}).points||ae;if(ie&&ie.length>1&&ae&&ae.length>1){var le=dist(ae)/dist(ie);!isFinite(le)&&(le=1),z.pinchScale=le;var pe=center(ae);return z.pinchX=pe[0],z.pinchY=pe[1],{type:"pinch",target:$[0].target,event:z}}}}};function create(){return[1,0,0,1,0,0]}function identity($){return $[0]=1,$[1]=0,$[2]=0,$[3]=1,$[4]=0,$[5]=0,$}function copy($,z){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$[4]=z[4],$[5]=z[5],$}function mul($,z,oe){var ae=z[0]*oe[0]+z[2]*oe[1],ie=z[1]*oe[0]+z[3]*oe[1],le=z[0]*oe[2]+z[2]*oe[3],pe=z[1]*oe[2]+z[3]*oe[3],_e=z[0]*oe[4]+z[2]*oe[5]+z[4],Ce=z[1]*oe[4]+z[3]*oe[5]+z[5];return $[0]=ae,$[1]=ie,$[2]=le,$[3]=pe,$[4]=_e,$[5]=Ce,$}function translate($,z,oe){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$[4]=z[4]+oe[0],$[5]=z[5]+oe[1],$}function rotate($,z,oe){var ae=z[0],ie=z[2],le=z[4],pe=z[1],_e=z[3],Ce=z[5],$e=Math.sin(oe),xe=Math.cos(oe);return $[0]=ae*xe+pe*$e,$[1]=-ae*$e+pe*xe,$[2]=ie*xe+_e*$e,$[3]=-ie*$e+xe*_e,$[4]=xe*le+$e*Ce,$[5]=xe*Ce-$e*le,$}function scale$1($,z,oe){var ae=oe[0],ie=oe[1];return $[0]=z[0]*ae,$[1]=z[1]*ie,$[2]=z[2]*ae,$[3]=z[3]*ie,$[4]=z[4]*ae,$[5]=z[5]*ie,$}function invert($,z){var oe=z[0],ae=z[2],ie=z[4],le=z[1],pe=z[3],_e=z[5],Ce=oe*pe-le*ae;return Ce?(Ce=1/Ce,$[0]=pe*Ce,$[1]=-le*Ce,$[2]=-ae*Ce,$[3]=oe*Ce,$[4]=(ae*_e-pe*ie)*Ce,$[5]=(le*ie-oe*_e)*Ce,$):null}function clone$1($){var z=create();return copy(z,$),z}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function $(z,oe){this.x=z||0,this.y=oe||0}return $.prototype.copy=function(z){return this.x=z.x,this.y=z.y,this},$.prototype.clone=function(){return new $(this.x,this.y)},$.prototype.set=function(z,oe){return this.x=z,this.y=oe,this},$.prototype.equal=function(z){return z.x===this.x&&z.y===this.y},$.prototype.add=function(z){return this.x+=z.x,this.y+=z.y,this},$.prototype.scale=function(z){this.x*=z,this.y*=z},$.prototype.scaleAndAdd=function(z,oe){this.x+=z.x*oe,this.y+=z.y*oe},$.prototype.sub=function(z){return this.x-=z.x,this.y-=z.y,this},$.prototype.dot=function(z){return this.x*z.x+this.y*z.y},$.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},$.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},$.prototype.normalize=function(){var z=this.len();return this.x/=z,this.y/=z,this},$.prototype.distance=function(z){var oe=this.x-z.x,ae=this.y-z.y;return Math.sqrt(oe*oe+ae*ae)},$.prototype.distanceSquare=function(z){var oe=this.x-z.x,ae=this.y-z.y;return oe*oe+ae*ae},$.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},$.prototype.transform=function(z){if(z){var oe=this.x,ae=this.y;return this.x=z[0]*oe+z[2]*ae+z[4],this.y=z[1]*oe+z[3]*ae+z[5],this}},$.prototype.toArray=function(z){return z[0]=this.x,z[1]=this.y,z},$.prototype.fromArray=function(z){this.x=z[0],this.y=z[1]},$.set=function(z,oe,ae){z.x=oe,z.y=ae},$.copy=function(z,oe){z.x=oe.x,z.y=oe.y},$.len=function(z){return Math.sqrt(z.x*z.x+z.y*z.y)},$.lenSquare=function(z){return z.x*z.x+z.y*z.y},$.dot=function(z,oe){return z.x*oe.x+z.y*oe.y},$.add=function(z,oe,ae){z.x=oe.x+ae.x,z.y=oe.y+ae.y},$.sub=function(z,oe,ae){z.x=oe.x-ae.x,z.y=oe.y-ae.y},$.scale=function(z,oe,ae){z.x=oe.x*ae,z.y=oe.y*ae},$.scaleAndAdd=function(z,oe,ae,ie){z.x=oe.x+ae.x*ie,z.y=oe.y+ae.y*ie},$.lerp=function(z,oe,ae,ie){var le=1-ie;z.x=le*oe.x+ie*ae.x,z.y=le*oe.y+ie*ae.y},$}();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 $(z,oe,ae,ie){ae<0&&(z=z+ae,ae=-ae),ie<0&&(oe=oe+ie,ie=-ie),this.x=z,this.y=oe,this.width=ae,this.height=ie}return $.prototype.union=function(z){var oe=mathMin$8(z.x,this.x),ae=mathMin$8(z.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(z.x+z.width,this.x+this.width)-oe:this.width=z.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(z.y+z.height,this.y+this.height)-ae:this.height=z.height,this.x=oe,this.y=ae},$.prototype.applyTransform=function(z){$.applyTransform(this,this,z)},$.prototype.calculateTransform=function(z){var oe=this,ae=z.width/oe.width,ie=z.height/oe.height,le=create();return translate(le,le,[-oe.x,-oe.y]),scale$1(le,le,[ae,ie]),translate(le,le,[z.x,z.y]),le},$.prototype.intersect=function(z,oe){if(!z)return!1;z instanceof $||(z=$.create(z));var ae=this,ie=ae.x,le=ae.x+ae.width,pe=ae.y,_e=ae.y+ae.height,Ce=z.x,$e=z.x+z.width,xe=z.y,Ie=z.y+z.height,Ne=!(le<Ce||$e<ie||_e<xe||Ie<pe);if(oe){var Fe=1/0,ze=0,At=Math.abs(le-Ce),Lt=Math.abs($e-ie),hn=Math.abs(_e-xe),vn=Math.abs(Ie-pe),_n=Math.min(At,Lt),bn=Math.min(hn,vn);le<Ce||$e<ie?_n>ze&&(ze=_n,At<Lt?Point$1.set(maxTv$1,-At,0):Point$1.set(maxTv$1,Lt,0)):_n<Fe&&(Fe=_n,At<Lt?Point$1.set(minTv$1,At,0):Point$1.set(minTv$1,-Lt,0)),_e<xe||Ie<pe?bn>ze&&(ze=bn,hn<vn?Point$1.set(maxTv$1,0,-hn):Point$1.set(maxTv$1,0,vn)):_n<Fe&&(Fe=_n,hn<vn?Point$1.set(minTv$1,0,hn):Point$1.set(minTv$1,0,-vn))}return oe&&Point$1.copy(oe,Ne?minTv$1:maxTv$1),Ne},$.prototype.contain=function(z,oe){var ae=this;return z>=ae.x&&z<=ae.x+ae.width&&oe>=ae.y&&oe<=ae.y+ae.height},$.prototype.clone=function(){return new $(this.x,this.y,this.width,this.height)},$.prototype.copy=function(z){$.copy(this,z)},$.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},$.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$.prototype.isZero=function(){return this.width===0||this.height===0},$.create=function(z){return new $(z.x,z.y,z.width,z.height)},$.copy=function(z,oe){z.x=oe.x,z.y=oe.y,z.width=oe.width,z.height=oe.height},$.applyTransform=function(z,oe,ae){if(!ae){z!==oe&&$.copy(z,oe);return}if(ae[1]<1e-5&&ae[1]>-1e-5&&ae[2]<1e-5&&ae[2]>-1e-5){var ie=ae[0],le=ae[3],pe=ae[4],_e=ae[5];z.x=oe.x*ie+pe,z.y=oe.y*le+_e,z.width=oe.width*ie,z.height=oe.height*le,z.width<0&&(z.x+=z.width,z.width=-z.width),z.height<0&&(z.y+=z.height,z.height=-z.height);return}lt.x=lb.x=oe.x,lt.y=rt.y=oe.y,rb.x=rt.x=oe.x+oe.width,rb.y=lb.y=oe.y+oe.height,lt.transform(ae),rt.transform(ae),rb.transform(ae),lb.transform(ae),z.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),z.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var Ce=mathMax$8(lt.x,rb.x,lb.x,rt.x),$e=mathMax$8(lt.y,rb.y,lb.y,rt.y);z.width=Ce-z.x,z.height=$e-z.y},$}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket($,z,oe){return{type:$,event:oe,target:z.target,topTarget:z.topTarget,cancelBubble:!1,offsetX:oe.zrX,offsetY:oe.zrY,gestureEvent:oe.gestureEvent,pinchX:oe.pinchX,pinchY:oe.pinchY,pinchScale:oe.pinchScale,wheelDelta:oe.zrDelta,zrByTouch:oe.zrByTouch,which:oe.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.handler=null,oe}return z.prototype.dispose=function(){},z.prototype.setCursor=function(){},z}(Eventful$1),HoveredResult=function(){function $(z,oe){this.x=z,this.y=oe}return $}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function($){__extends(z,$);function z(oe,ae,ie,le,pe){var _e=$.call(this)||this;return _e._hovered=new HoveredResult(0,0),_e.storage=oe,_e.painter=ae,_e.painterRoot=le,_e._pointerSize=pe,ie=ie||new EmptyProxy,_e.proxy=null,_e.setHandlerProxy(ie),_e._draggingMgr=new Draggable$1(_e),_e}return z.prototype.setHandlerProxy=function(oe){this.proxy&&this.proxy.dispose(),oe&&(each$c(handlerNames,function(ae){oe.on&&oe.on(ae,this[ae],this)},this),oe.handler=this),this.proxy=oe},z.prototype.mousemove=function(oe){var ae=oe.zrX,ie=oe.zrY,le=isOutsideBoundary(this,ae,ie),pe=this._hovered,_e=pe.target;_e&&!_e.__zr&&(pe=this.findHover(pe.x,pe.y),_e=pe.target);var Ce=this._hovered=le?new HoveredResult(ae,ie):this.findHover(ae,ie),$e=Ce.target,xe=this.proxy;xe.setCursor&&xe.setCursor($e?$e.cursor:"default"),_e&&$e!==_e&&this.dispatchToElement(pe,"mouseout",oe),this.dispatchToElement(Ce,"mousemove",oe),$e&&$e!==_e&&this.dispatchToElement(Ce,"mouseover",oe)},z.prototype.mouseout=function(oe){var ae=oe.zrEventControl;ae!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",oe),ae!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:oe})},z.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},z.prototype.dispatch=function(oe,ae){var ie=this[oe];ie&&ie.call(this,ae)},z.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},z.prototype.setCursorStyle=function(oe){var ae=this.proxy;ae.setCursor&&ae.setCursor(oe)},z.prototype.dispatchToElement=function(oe,ae,ie){oe=oe||{};var le=oe.target;if(!(le&&le.silent)){for(var pe="on"+ae,_e=makeEventPacket(ae,oe,ie);le&&(le[pe]&&(_e.cancelBubble=!!le[pe].call(le,_e)),le.trigger(ae,_e),le=le.__hostTarget?le.__hostTarget:le.parent,!_e.cancelBubble););_e.cancelBubble||(this.trigger(ae,_e),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(Ce){typeof Ce[pe]=="function"&&Ce[pe].call(Ce,_e),Ce.trigger&&Ce.trigger(ae,_e)}))}},z.prototype.findHover=function(oe,ae,ie){var le=this.storage.getDisplayList(),pe=new HoveredResult(oe,ae);if(setHoverTarget(le,pe,oe,ae,ie),this._pointerSize&&!pe.target){for(var _e=[],Ce=this._pointerSize,$e=Ce/2,xe=new BoundingRect$1(oe-$e,ae-$e,Ce,Ce),Ie=le.length-1;Ie>=0;Ie--){var Ne=le[Ie];Ne!==ie&&!Ne.ignore&&!Ne.ignoreCoarsePointer&&(!Ne.parent||!Ne.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(Ne.getBoundingRect()),Ne.transform&&tmpRect$1.applyTransform(Ne.transform),tmpRect$1.intersect(xe)&&_e.push(Ne))}if(_e.length)for(var Fe=4,ze=Math.PI/12,At=Math.PI*2,Lt=0;Lt<$e;Lt+=Fe)for(var hn=0;hn<At;hn+=ze){var vn=oe+Lt*Math.cos(hn),_n=ae+Lt*Math.sin(hn);if(setHoverTarget(_e,pe,vn,_n,ie),pe.target)return pe}}return pe},z.prototype.processGesture=function(oe,ae){this._gestureMgr||(this._gestureMgr=new GestureMgr);var ie=this._gestureMgr;ae==="start"&&ie.clear();var le=ie.recognize(oe,this.findHover(oe.zrX,oe.zrY,null).target,this.proxy.dom);if(ae==="end"&&ie.clear(),le){var pe=le.type;oe.gestureEvent=pe;var _e=new HoveredResult;_e.target=le.target,this.dispatchToElement(_e,pe,le.event)}},z}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function($){Handler.prototype[$]=function(z){var oe=z.zrX,ae=z.zrY,ie=isOutsideBoundary(this,oe,ae),le,pe;if(($!=="mouseup"||!ie)&&(le=this.findHover(oe,ae),pe=le.target),$==="mousedown")this._downEl=pe,this._downPoint=[z.zrX,z.zrY],this._upEl=pe;else if($==="mouseup")this._upEl=pe;else if($==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[z.zrX,z.zrY])>4)return;this._downPoint=null}this.dispatchToElement(le,$,z)}});function isHover($,z,oe){if($[$.rectHover?"rectContain":"contain"](z,oe)){for(var ae=$,ie=void 0,le=!1;ae;){if(ae.ignoreClip&&(le=!0),!le){var pe=ae.getClipPath();if(pe&&!pe.contain(z,oe))return!1;ae.silent&&(ie=!0)}var _e=ae.__hostTarget;ae=_e||ae.parent}return ie?SILENT:!0}return!1}function setHoverTarget($,z,oe,ae,ie){for(var le=$.length-1;le>=0;le--){var pe=$[le],_e=void 0;if(pe!==ie&&!pe.ignore&&(_e=isHover(pe,oe,ae))&&(!z.topTarget&&(z.topTarget=pe),_e!==SILENT)){z.target=pe;break}}}function isOutsideBoundary($,z,oe){var ae=$.painter;return z<0||z>ae.getWidth()||oe<0||oe>ae.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength($){for(var z=0;$>=DEFAULT_MIN_MERGE;)z|=$&1,$>>=1;return $+z}function makeAscendingRun($,z,oe,ae){var ie=z+1;if(ie===oe)return 1;if(ae($[ie++],$[z])<0){for(;ie<oe&&ae($[ie],$[ie-1])<0;)ie++;reverseRun($,z,ie)}else for(;ie<oe&&ae($[ie],$[ie-1])>=0;)ie++;return ie-z}function reverseRun($,z,oe){for(oe--;z<oe;){var ae=$[z];$[z++]=$[oe],$[oe--]=ae}}function binaryInsertionSort($,z,oe,ae,ie){for(ae===z&&ae++;ae<oe;ae++){for(var le=$[ae],pe=z,_e=ae,Ce;pe<_e;)Ce=pe+_e>>>1,ie(le,$[Ce])<0?_e=Ce:pe=Ce+1;var $e=ae-pe;switch($e){case 3:$[pe+3]=$[pe+2];case 2:$[pe+2]=$[pe+1];case 1:$[pe+1]=$[pe];break;default:for(;$e>0;)$[pe+$e]=$[pe+$e-1],$e--}$[pe]=le}}function gallopLeft($,z,oe,ae,ie,le){var pe=0,_e=0,Ce=1;if(le($,z[oe+ie])>0){for(_e=ae-ie;Ce<_e&&le($,z[oe+ie+Ce])>0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e),pe+=ie,Ce+=ie}else{for(_e=ie+1;Ce<_e&&le($,z[oe+ie-Ce])<=0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e);var $e=pe;pe=ie-Ce,Ce=ie-$e}for(pe++;pe<Ce;){var xe=pe+(Ce-pe>>>1);le($,z[oe+xe])>0?pe=xe+1:Ce=xe}return Ce}function gallopRight($,z,oe,ae,ie,le){var pe=0,_e=0,Ce=1;if(le($,z[oe+ie])<0){for(_e=ie+1;Ce<_e&&le($,z[oe+ie-Ce])<0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e);var $e=pe;pe=ie-Ce,Ce=ie-$e}else{for(_e=ae-ie;Ce<_e&&le($,z[oe+ie+Ce])>=0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e),pe+=ie,Ce+=ie}for(pe++;pe<Ce;){var xe=pe+(Ce-pe>>>1);le($,z[oe+xe])<0?Ce=xe:pe=xe+1}return Ce}function TimSort($,z){var oe=DEFAULT_MIN_GALLOPING,ae,ie,le=0;$.length;var pe=[];ae=[],ie=[];function _e(Fe,ze){ae[le]=Fe,ie[le]=ze,le+=1}function Ce(){for(;le>1;){var Fe=le-2;if(Fe>=1&&ie[Fe-1]<=ie[Fe]+ie[Fe+1]||Fe>=2&&ie[Fe-2]<=ie[Fe]+ie[Fe-1])ie[Fe-1]<ie[Fe+1]&&Fe--;else if(ie[Fe]>ie[Fe+1])break;xe(Fe)}}function $e(){for(;le>1;){var Fe=le-2;Fe>0&&ie[Fe-1]<ie[Fe+1]&&Fe--,xe(Fe)}}function xe(Fe){var ze=ae[Fe],At=ie[Fe],Lt=ae[Fe+1],hn=ie[Fe+1];ie[Fe]=At+hn,Fe===le-3&&(ae[Fe+1]=ae[Fe+2],ie[Fe+1]=ie[Fe+2]),le--;var vn=gallopRight($[Lt],$,ze,At,0,z);ze+=vn,At-=vn,At!==0&&(hn=gallopLeft($[ze+At-1],$,Lt,hn,hn-1,z),hn!==0&&(At<=hn?Ie(ze,At,Lt,hn):Ne(ze,At,Lt,hn)))}function Ie(Fe,ze,At,Lt){var hn=0;for(hn=0;hn<ze;hn++)pe[hn]=$[Fe+hn];var vn=0,_n=At,bn=Fe;if($[bn++]=$[_n++],--Lt===0){for(hn=0;hn<ze;hn++)$[bn+hn]=pe[vn+hn];return}if(ze===1){for(hn=0;hn<Lt;hn++)$[bn+hn]=$[_n+hn];$[bn+Lt]=pe[vn];return}for(var Cn=oe,En,$n,wn;;){En=0,$n=0,wn=!1;do if(z($[_n],pe[vn])<0){if($[bn++]=$[_n++],$n++,En=0,--Lt===0){wn=!0;break}}else if($[bn++]=pe[vn++],En++,$n=0,--ze===1){wn=!0;break}while((En|$n)<Cn);if(wn)break;do{if(En=gallopRight($[_n],pe,vn,ze,0,z),En!==0){for(hn=0;hn<En;hn++)$[bn+hn]=pe[vn+hn];if(bn+=En,vn+=En,ze-=En,ze<=1){wn=!0;break}}if($[bn++]=$[_n++],--Lt===0){wn=!0;break}if($n=gallopLeft(pe[vn],$,_n,Lt,0,z),$n!==0){for(hn=0;hn<$n;hn++)$[bn+hn]=$[_n+hn];if(bn+=$n,_n+=$n,Lt-=$n,Lt===0){wn=!0;break}}if($[bn++]=pe[vn++],--ze===1){wn=!0;break}Cn--}while(En>=DEFAULT_MIN_GALLOPING||$n>=DEFAULT_MIN_GALLOPING);if(wn)break;Cn<0&&(Cn=0),Cn+=2}if(oe=Cn,oe<1&&(oe=1),ze===1){for(hn=0;hn<Lt;hn++)$[bn+hn]=$[_n+hn];$[bn+Lt]=pe[vn]}else{if(ze===0)throw new Error;for(hn=0;hn<ze;hn++)$[bn+hn]=pe[vn+hn]}}function Ne(Fe,ze,At,Lt){var hn=0;for(hn=0;hn<Lt;hn++)pe[hn]=$[At+hn];var vn=Fe+ze-1,_n=Lt-1,bn=At+Lt-1,Cn=0,En=0;if($[bn--]=$[vn--],--ze===0){for(Cn=bn-(Lt-1),hn=0;hn<Lt;hn++)$[Cn+hn]=pe[hn];return}if(Lt===1){for(bn-=ze,vn-=ze,En=bn+1,Cn=vn+1,hn=ze-1;hn>=0;hn--)$[En+hn]=$[Cn+hn];$[bn]=pe[_n];return}for(var $n=oe;;){var wn=0,Tn=0,xn=!1;do if(z(pe[_n],$[vn])<0){if($[bn--]=$[vn--],wn++,Tn=0,--ze===0){xn=!0;break}}else if($[bn--]=pe[_n--],Tn++,wn=0,--Lt===1){xn=!0;break}while((wn|Tn)<$n);if(xn)break;do{if(wn=ze-gallopRight(pe[_n],$,Fe,ze,ze-1,z),wn!==0){for(bn-=wn,vn-=wn,ze-=wn,En=bn+1,Cn=vn+1,hn=wn-1;hn>=0;hn--)$[En+hn]=$[Cn+hn];if(ze===0){xn=!0;break}}if($[bn--]=pe[_n--],--Lt===1){xn=!0;break}if(Tn=Lt-gallopLeft($[vn],pe,0,Lt,Lt-1,z),Tn!==0){for(bn-=Tn,_n-=Tn,Lt-=Tn,En=bn+1,Cn=_n+1,hn=0;hn<Tn;hn++)$[En+hn]=pe[Cn+hn];if(Lt<=1){xn=!0;break}}if($[bn--]=$[vn--],--ze===0){xn=!0;break}$n--}while(wn>=DEFAULT_MIN_GALLOPING||Tn>=DEFAULT_MIN_GALLOPING);if(xn)break;$n<0&&($n=0),$n+=2}if(oe=$n,oe<1&&(oe=1),Lt===1){for(bn-=ze,vn-=ze,En=bn+1,Cn=vn+1,hn=ze-1;hn>=0;hn--)$[En+hn]=$[Cn+hn];$[bn]=pe[_n]}else{if(Lt===0)throw new Error;for(Cn=bn-(Lt-1),hn=0;hn<Lt;hn++)$[Cn+hn]=pe[hn]}}return{mergeRuns:Ce,forceMergeRuns:$e,pushRun:_e}}function sort($,z,oe,ae){oe||(oe=0),ae||(ae=$.length);var ie=ae-oe;if(!(ie<2)){var le=0;if(ie<DEFAULT_MIN_MERGE){le=makeAscendingRun($,oe,ae,z),binaryInsertionSort($,oe,ae,oe+le,z);return}var pe=TimSort($,z),_e=minRunLength(ie);do{if(le=makeAscendingRun($,oe,ae,z),le<_e){var Ce=ie;Ce>_e&&(Ce=_e),binaryInsertionSort($,oe,oe+Ce,oe+le,z),le=Ce}pe.pushRun(oe,le),pe.mergeRuns(),ie-=le,oe+=le}while(ie!==0);pe.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($,z){return $.zlevel===z.zlevel?$.z===z.z?$.z2-z.z2:$.z-z.z:$.zlevel-z.zlevel}var Storage=function(){function $(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return $.prototype.traverse=function(z,oe){for(var ae=0;ae<this._roots.length;ae++)this._roots[ae].traverse(z,oe)},$.prototype.getDisplayList=function(z,oe){oe=oe||!1;var ae=this._displayList;return(z||!ae.length)&&this.updateDisplayList(oe),ae},$.prototype.updateDisplayList=function(z){this._displayListLen=0;for(var oe=this._roots,ae=this._displayList,ie=0,le=oe.length;ie<le;ie++)this._updateAndAddDisplayable(oe[ie],null,z);ae.length=this._displayListLen,sort(ae,shapeCompareFunc)},$.prototype._updateAndAddDisplayable=function(z,oe,ae){if(!(z.ignore&&!ae)){z.beforeUpdate(),z.update(),z.afterUpdate();var ie=z.getClipPath();if(z.ignoreClip)oe=null;else if(ie){oe?oe=oe.slice():oe=[];for(var le=ie,pe=z;le;)le.parent=pe,le.updateTransform(),oe.push(le),pe=le,le=le.getClipPath()}if(z.childrenRef){for(var _e=z.childrenRef(),Ce=0;Ce<_e.length;Ce++){var $e=_e[Ce];z.__dirty&&($e.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable($e,oe,ae)}z.__dirty=0}else{var xe=z;oe&&oe.length?xe.__clipPaths=oe:xe.__clipPaths&&xe.__clipPaths.length>0&&(xe.__clipPaths=[]),isNaN(xe.z)&&(logInvalidZError(),xe.z=0),isNaN(xe.z2)&&(logInvalidZError(),xe.z2=0),isNaN(xe.zlevel)&&(logInvalidZError(),xe.zlevel=0),this._displayList[this._displayListLen++]=xe}var Ie=z.getDecalElement&&z.getDecalElement();Ie&&this._updateAndAddDisplayable(Ie,oe,ae);var Ne=z.getTextGuideLine();Ne&&this._updateAndAddDisplayable(Ne,oe,ae);var Fe=z.getTextContent();Fe&&this._updateAndAddDisplayable(Fe,oe,ae)}},$.prototype.addRoot=function(z){z.__zr&&z.__zr.storage===this||this._roots.push(z)},$.prototype.delRoot=function(z){if(z instanceof Array){for(var oe=0,ae=z.length;oe<ae;oe++)this.delRoot(z[oe]);return}var ie=indexOf(this._roots,z);ie>=0&&this._roots.splice(ie,1)},$.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},$.prototype.getRoots=function(){return this._roots},$.prototype.dispose=function(){this._displayList=null,this._roots=null},$}();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($){return setTimeout($,16)};const requestAnimationFrame$2=requestAnimationFrame$1;var easingFuncs={linear:function($){return $},quadraticIn:function($){return $*$},quadraticOut:function($){return $*(2-$)},quadraticInOut:function($){return($*=2)<1?.5*$*$:-.5*(--$*($-2)-1)},cubicIn:function($){return $*$*$},cubicOut:function($){return--$*$*$+1},cubicInOut:function($){return($*=2)<1?.5*$*$*$:.5*(($-=2)*$*$+2)},quarticIn:function($){return $*$*$*$},quarticOut:function($){return 1- --$*$*$*$},quarticInOut:function($){return($*=2)<1?.5*$*$*$*$:-.5*(($-=2)*$*$*$-2)},quinticIn:function($){return $*$*$*$*$},quinticOut:function($){return--$*$*$*$*$+1},quinticInOut:function($){return($*=2)<1?.5*$*$*$*$*$:.5*(($-=2)*$*$*$*$+2)},sinusoidalIn:function($){return 1-Math.cos($*Math.PI/2)},sinusoidalOut:function($){return Math.sin($*Math.PI/2)},sinusoidalInOut:function($){return .5*(1-Math.cos(Math.PI*$))},exponentialIn:function($){return $===0?0:Math.pow(1024,$-1)},exponentialOut:function($){return $===1?1:1-Math.pow(2,-10*$)},exponentialInOut:function($){return $===0?0:$===1?1:($*=2)<1?.5*Math.pow(1024,$-1):.5*(-Math.pow(2,-10*($-1))+2)},circularIn:function($){return 1-Math.sqrt(1-$*$)},circularOut:function($){return Math.sqrt(1- --$*$)},circularInOut:function($){return($*=2)<1?-.5*(Math.sqrt(1-$*$)-1):.5*(Math.sqrt(1-($-=2)*$)+1)},elasticIn:function($){var z,oe=.1,ae=.4;return $===0?0:$===1?1:(!oe||oe<1?(oe=1,z=ae/4):z=ae*Math.asin(1/oe)/(2*Math.PI),-(oe*Math.pow(2,10*($-=1))*Math.sin(($-z)*(2*Math.PI)/ae)))},elasticOut:function($){var z,oe=.1,ae=.4;return $===0?0:$===1?1:(!oe||oe<1?(oe=1,z=ae/4):z=ae*Math.asin(1/oe)/(2*Math.PI),oe*Math.pow(2,-10*$)*Math.sin(($-z)*(2*Math.PI)/ae)+1)},elasticInOut:function($){var z,oe=.1,ae=.4;return $===0?0:$===1?1:(!oe||oe<1?(oe=1,z=ae/4):z=ae*Math.asin(1/oe)/(2*Math.PI),($*=2)<1?-.5*(oe*Math.pow(2,10*($-=1))*Math.sin(($-z)*(2*Math.PI)/ae)):oe*Math.pow(2,-10*($-=1))*Math.sin(($-z)*(2*Math.PI)/ae)*.5+1)},backIn:function($){var z=1.70158;return $*$*((z+1)*$-z)},backOut:function($){var z=1.70158;return--$*$*((z+1)*$+z)+1},backInOut:function($){var z=2.5949095;return($*=2)<1?.5*($*$*((z+1)*$-z)):.5*(($-=2)*$*((z+1)*$+z)+2)},bounceIn:function($){return 1-easingFuncs.bounceOut(1-$)},bounceOut:function($){return $<1/2.75?7.5625*$*$:$<2/2.75?7.5625*($-=1.5/2.75)*$+.75:$<2.5/2.75?7.5625*($-=2.25/2.75)*$+.9375:7.5625*($-=2.625/2.75)*$+.984375},bounceInOut:function($){return $<.5?easingFuncs.bounceIn($*2)*.5:easingFuncs.bounceOut($*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($){return $>-EPSILON$3&&$<EPSILON$3}function isNotAroundZero$1($){return $>EPSILON$3||$<-EPSILON$3}function cubicAt($,z,oe,ae,ie){var le=1-ie;return le*le*(le*$+3*ie*z)+ie*ie*(ie*ae+3*le*oe)}function cubicDerivativeAt($,z,oe,ae,ie){var le=1-ie;return 3*(((z-$)*le+2*(oe-z)*ie)*le+(ae-oe)*ie*ie)}function cubicRootAt($,z,oe,ae,ie,le){var pe=ae+3*(z-oe)-$,_e=3*(oe-z*2+$),Ce=3*(z-$),$e=$-ie,xe=_e*_e-3*pe*Ce,Ie=_e*Ce-9*pe*$e,Ne=Ce*Ce-3*_e*$e,Fe=0;if(isAroundZero(xe)&&isAroundZero(Ie))if(isAroundZero(_e))le[0]=0;else{var ze=-Ce/_e;ze>=0&&ze<=1&&(le[Fe++]=ze)}else{var At=Ie*Ie-4*xe*Ne;if(isAroundZero(At)){var Lt=Ie/xe,ze=-_e/pe+Lt,hn=-Lt/2;ze>=0&&ze<=1&&(le[Fe++]=ze),hn>=0&&hn<=1&&(le[Fe++]=hn)}else if(At>0){var vn=mathSqrt$3(At),_n=xe*_e+1.5*pe*(-Ie+vn),bn=xe*_e+1.5*pe*(-Ie-vn);_n<0?_n=-mathPow$2(-_n,ONE_THIRD):_n=mathPow$2(_n,ONE_THIRD),bn<0?bn=-mathPow$2(-bn,ONE_THIRD):bn=mathPow$2(bn,ONE_THIRD);var ze=(-_e-(_n+bn))/(3*pe);ze>=0&&ze<=1&&(le[Fe++]=ze)}else{var Cn=(2*xe*_e-3*pe*Ie)/(2*mathSqrt$3(xe*xe*xe)),En=Math.acos(Cn)/3,$n=mathSqrt$3(xe),wn=Math.cos(En),ze=(-_e-2*$n*wn)/(3*pe),hn=(-_e+$n*(wn+THREE_SQRT*Math.sin(En)))/(3*pe),Tn=(-_e+$n*(wn-THREE_SQRT*Math.sin(En)))/(3*pe);ze>=0&&ze<=1&&(le[Fe++]=ze),hn>=0&&hn<=1&&(le[Fe++]=hn),Tn>=0&&Tn<=1&&(le[Fe++]=Tn)}}return Fe}function cubicExtrema($,z,oe,ae,ie){var le=6*oe-12*z+6*$,pe=9*z+3*ae-3*$-9*oe,_e=3*z-3*$,Ce=0;if(isAroundZero(pe)){if(isNotAroundZero$1(le)){var $e=-_e/le;$e>=0&&$e<=1&&(ie[Ce++]=$e)}}else{var xe=le*le-4*pe*_e;if(isAroundZero(xe))ie[0]=-le/(2*pe);else if(xe>0){var Ie=mathSqrt$3(xe),$e=(-le+Ie)/(2*pe),Ne=(-le-Ie)/(2*pe);$e>=0&&$e<=1&&(ie[Ce++]=$e),Ne>=0&&Ne<=1&&(ie[Ce++]=Ne)}}return Ce}function cubicSubdivide($,z,oe,ae,ie,le){var pe=(z-$)*ie+$,_e=(oe-z)*ie+z,Ce=(ae-oe)*ie+oe,$e=(_e-pe)*ie+pe,xe=(Ce-_e)*ie+_e,Ie=(xe-$e)*ie+$e;le[0]=$,le[1]=pe,le[2]=$e,le[3]=Ie,le[4]=Ie,le[5]=xe,le[6]=Ce,le[7]=ae}function cubicProjectPoint($,z,oe,ae,ie,le,pe,_e,Ce,$e,xe){var Ie,Ne=.005,Fe=1/0,ze,At,Lt,hn;_v0[0]=Ce,_v0[1]=$e;for(var vn=0;vn<1;vn+=.05)_v1[0]=cubicAt($,oe,ie,pe,vn),_v1[1]=cubicAt(z,ae,le,_e,vn),Lt=distSquare(_v0,_v1),Lt<Fe&&(Ie=vn,Fe=Lt);Fe=1/0;for(var _n=0;_n<32&&!(Ne<EPSILON_NUMERIC);_n++)ze=Ie-Ne,At=Ie+Ne,_v1[0]=cubicAt($,oe,ie,pe,ze),_v1[1]=cubicAt(z,ae,le,_e,ze),Lt=distSquare(_v1,_v0),ze>=0&&Lt<Fe?(Ie=ze,Fe=Lt):(_v2[0]=cubicAt($,oe,ie,pe,At),_v2[1]=cubicAt(z,ae,le,_e,At),hn=distSquare(_v2,_v0),At<=1&&hn<Fe?(Ie=At,Fe=hn):Ne*=.5);return xe&&(xe[0]=cubicAt($,oe,ie,pe,Ie),xe[1]=cubicAt(z,ae,le,_e,Ie)),mathSqrt$3(Fe)}function cubicLength($,z,oe,ae,ie,le,pe,_e,Ce){for(var $e=$,xe=z,Ie=0,Ne=1/Ce,Fe=1;Fe<=Ce;Fe++){var ze=Fe*Ne,At=cubicAt($,oe,ie,pe,ze),Lt=cubicAt(z,ae,le,_e,ze),hn=At-$e,vn=Lt-xe;Ie+=Math.sqrt(hn*hn+vn*vn),$e=At,xe=Lt}return Ie}function quadraticAt($,z,oe,ae){var ie=1-ae;return ie*(ie*$+2*ae*z)+ae*ae*oe}function quadraticDerivativeAt($,z,oe,ae){return 2*((1-ae)*(z-$)+ae*(oe-z))}function quadraticRootAt($,z,oe,ae,ie){var le=$-2*z+oe,pe=2*(z-$),_e=$-ae,Ce=0;if(isAroundZero(le)){if(isNotAroundZero$1(pe)){var $e=-_e/pe;$e>=0&&$e<=1&&(ie[Ce++]=$e)}}else{var xe=pe*pe-4*le*_e;if(isAroundZero(xe)){var $e=-pe/(2*le);$e>=0&&$e<=1&&(ie[Ce++]=$e)}else if(xe>0){var Ie=mathSqrt$3(xe),$e=(-pe+Ie)/(2*le),Ne=(-pe-Ie)/(2*le);$e>=0&&$e<=1&&(ie[Ce++]=$e),Ne>=0&&Ne<=1&&(ie[Ce++]=Ne)}}return Ce}function quadraticExtremum($,z,oe){var ae=$+oe-2*z;return ae===0?.5:($-z)/ae}function quadraticSubdivide($,z,oe,ae,ie){var le=(z-$)*ae+$,pe=(oe-z)*ae+z,_e=(pe-le)*ae+le;ie[0]=$,ie[1]=le,ie[2]=_e,ie[3]=_e,ie[4]=pe,ie[5]=oe}function quadraticProjectPoint($,z,oe,ae,ie,le,pe,_e,Ce){var $e,xe=.005,Ie=1/0;_v0[0]=pe,_v0[1]=_e;for(var Ne=0;Ne<1;Ne+=.05){_v1[0]=quadraticAt($,oe,ie,Ne),_v1[1]=quadraticAt(z,ae,le,Ne);var Fe=distSquare(_v0,_v1);Fe<Ie&&($e=Ne,Ie=Fe)}Ie=1/0;for(var ze=0;ze<32&&!(xe<EPSILON_NUMERIC);ze++){var At=$e-xe,Lt=$e+xe;_v1[0]=quadraticAt($,oe,ie,At),_v1[1]=quadraticAt(z,ae,le,At);var Fe=distSquare(_v1,_v0);if(At>=0&&Fe<Ie)$e=At,Ie=Fe;else{_v2[0]=quadraticAt($,oe,ie,Lt),_v2[1]=quadraticAt(z,ae,le,Lt);var hn=distSquare(_v2,_v0);Lt<=1&&hn<Ie?($e=Lt,Ie=hn):xe*=.5}}return Ce&&(Ce[0]=quadraticAt($,oe,ie,$e),Ce[1]=quadraticAt(z,ae,le,$e)),mathSqrt$3(Ie)}function quadraticLength($,z,oe,ae,ie,le,pe){for(var _e=$,Ce=z,$e=0,xe=1/pe,Ie=1;Ie<=pe;Ie++){var Ne=Ie*xe,Fe=quadraticAt($,oe,ie,Ne),ze=quadraticAt(z,ae,le,Ne),At=Fe-_e,Lt=ze-Ce;$e+=Math.sqrt(At*At+Lt*Lt),_e=Fe,Ce=ze}return $e}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc($){var z=$&®exp.exec($);if(z){var oe=z[1].split(","),ae=+trim$1(oe[0]),ie=+trim$1(oe[1]),le=+trim$1(oe[2]),pe=+trim$1(oe[3]);if(isNaN(ae+ie+le+pe))return;var _e=[];return function(Ce){return Ce<=0?0:Ce>=1?1:cubicRootAt(0,ae,le,1,Ce,_e)&&cubicAt(0,ie,pe,1,_e[0])}}}var Clip=function(){function $(z){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=z.life||1e3,this._delay=z.delay||0,this.loop=z.loop||!1,this.onframe=z.onframe||noop,this.ondestroy=z.ondestroy||noop,this.onrestart=z.onrestart||noop,z.easing&&this.setEasing(z.easing)}return $.prototype.step=function(z,oe){if(this._inited||(this._startTime=z+this._delay,this._inited=!0),this._paused){this._pausedTime+=oe;return}var ae=this._life,ie=z-this._startTime-this._pausedTime,le=ie/ae;le<0&&(le=0),le=Math.min(le,1);var pe=this.easingFunc,_e=pe?pe(le):le;if(this.onframe(_e),le===1)if(this.loop){var Ce=ie%ae;this._startTime=z-Ce,this._pausedTime=0,this.onrestart()}else return!0;return!1},$.prototype.pause=function(){this._paused=!0},$.prototype.resume=function(){this._paused=!1},$.prototype.setEasing=function(z){this.easing=z,this.easingFunc=isFunction(z)?z:easingFuncs$1[z]||createCubicEasingFunc(z)},$}();const Clip$1=Clip;var Entry=function(){function $(z){this.value=z}return $}(),LinkedList=function(){function $(){this._len=0}return $.prototype.insert=function(z){var oe=new Entry(z);return this.insertEntry(oe),oe},$.prototype.insertEntry=function(z){this.head?(this.tail.next=z,z.prev=this.tail,z.next=null,this.tail=z):this.head=this.tail=z,this._len++},$.prototype.remove=function(z){var oe=z.prev,ae=z.next;oe?oe.next=ae:this.head=ae,ae?ae.prev=oe:this.tail=oe,z.next=z.prev=null,this._len--},$.prototype.len=function(){return this._len},$.prototype.clear=function(){this.head=this.tail=null,this._len=0},$}(),LRU=function(){function $(z){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=z}return $.prototype.put=function(z,oe){var ae=this._list,ie=this._map,le=null;if(ie[z]==null){var pe=ae.len(),_e=this._lastRemovedEntry;if(pe>=this._maxSize&&pe>0){var Ce=ae.head;ae.remove(Ce),delete ie[Ce.key],le=Ce.value,this._lastRemovedEntry=Ce}_e?_e.value=oe:_e=new Entry(oe),_e.key=z,ae.insertEntry(_e),ie[z]=_e}return le},$.prototype.get=function(z){var oe=this._map[z],ae=this._list;if(oe!=null)return oe!==ae.tail&&(ae.remove(oe),ae.insertEntry(oe)),oe.value},$.prototype.clear=function(){this._list.clear(),this._map={}},$.prototype.len=function(){return this._list.len()},$}();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($){return $=Math.round($),$<0?0:$>255?255:$}function clampCssAngle($){return $=Math.round($),$<0?0:$>360?360:$}function clampCssFloat($){return $<0?0:$>1?1:$}function parseCssInt($){var z=$;return z.length&&z.charAt(z.length-1)==="%"?clampCssByte(parseFloat(z)/100*255):clampCssByte(parseInt(z,10))}function parseCssFloat($){var z=$;return z.length&&z.charAt(z.length-1)==="%"?clampCssFloat(parseFloat(z)/100):clampCssFloat(parseFloat(z))}function cssHueToRgb($,z,oe){return oe<0?oe+=1:oe>1&&(oe-=1),oe*6<1?$+(z-$)*oe*6:oe*2<1?z:oe*3<2?$+(z-$)*(2/3-oe)*6:$}function lerpNumber($,z,oe){return $+(z-$)*oe}function setRgba($,z,oe,ae,ie){return $[0]=z,$[1]=oe,$[2]=ae,$[3]=ie,$}function copyRgba($,z){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache($,z){lastRemovedArr&©Rgba(lastRemovedArr,z),lastRemovedArr=colorCache.put($,lastRemovedArr||z.slice())}function parse$1($,z){if($){z=z||[];var oe=colorCache.get($);if(oe)return copyRgba(z,oe);$=$+"";var ae=$.replace(/ /g,"").toLowerCase();if(ae in kCSSColorTable)return copyRgba(z,kCSSColorTable[ae]),putToCache($,z),z;var ie=ae.length;if(ae.charAt(0)==="#"){if(ie===4||ie===5){var le=parseInt(ae.slice(1,4),16);if(!(le>=0&&le<=4095)){setRgba(z,0,0,0,1);return}return setRgba(z,(le&3840)>>4|(le&3840)>>8,le&240|(le&240)>>4,le&15|(le&15)<<4,ie===5?parseInt(ae.slice(4),16)/15:1),putToCache($,z),z}else if(ie===7||ie===9){var le=parseInt(ae.slice(1,7),16);if(!(le>=0&&le<=16777215)){setRgba(z,0,0,0,1);return}return setRgba(z,(le&16711680)>>16,(le&65280)>>8,le&255,ie===9?parseInt(ae.slice(7),16)/255:1),putToCache($,z),z}return}var pe=ae.indexOf("("),_e=ae.indexOf(")");if(pe!==-1&&_e+1===ie){var Ce=ae.substr(0,pe),$e=ae.substr(pe+1,_e-(pe+1)).split(","),xe=1;switch(Ce){case"rgba":if($e.length!==4)return $e.length===3?setRgba(z,+$e[0],+$e[1],+$e[2],1):setRgba(z,0,0,0,1);xe=parseCssFloat($e.pop());case"rgb":if($e.length>=3)return setRgba(z,parseCssInt($e[0]),parseCssInt($e[1]),parseCssInt($e[2]),$e.length===3?xe:parseCssFloat($e[3])),putToCache($,z),z;setRgba(z,0,0,0,1);return;case"hsla":if($e.length!==4){setRgba(z,0,0,0,1);return}return $e[3]=parseCssFloat($e[3]),hsla2rgba($e,z),putToCache($,z),z;case"hsl":if($e.length!==3){setRgba(z,0,0,0,1);return}return hsla2rgba($e,z),putToCache($,z),z;default:return}}setRgba(z,0,0,0,1)}}function hsla2rgba($,z){var oe=(parseFloat($[0])%360+360)%360/360,ae=parseCssFloat($[1]),ie=parseCssFloat($[2]),le=ie<=.5?ie*(ae+1):ie+ae-ie*ae,pe=ie*2-le;return z=z||[],setRgba(z,clampCssByte(cssHueToRgb(pe,le,oe+1/3)*255),clampCssByte(cssHueToRgb(pe,le,oe)*255),clampCssByte(cssHueToRgb(pe,le,oe-1/3)*255),1),$.length===4&&(z[3]=$[3]),z}function rgba2hsla($){if($){var z=$[0]/255,oe=$[1]/255,ae=$[2]/255,ie=Math.min(z,oe,ae),le=Math.max(z,oe,ae),pe=le-ie,_e=(le+ie)/2,Ce,$e;if(pe===0)Ce=0,$e=0;else{_e<.5?$e=pe/(le+ie):$e=pe/(2-le-ie);var xe=((le-z)/6+pe/2)/pe,Ie=((le-oe)/6+pe/2)/pe,Ne=((le-ae)/6+pe/2)/pe;z===le?Ce=Ne-Ie:oe===le?Ce=1/3+xe-Ne:ae===le&&(Ce=2/3+Ie-xe),Ce<0&&(Ce+=1),Ce>1&&(Ce-=1)}var Fe=[Ce*360,$e,_e];return $[3]!=null&&Fe.push($[3]),Fe}}function lift($,z){var oe=parse$1($);if(oe){for(var ae=0;ae<3;ae++)z<0?oe[ae]=oe[ae]*(1-z)|0:oe[ae]=(255-oe[ae])*z+oe[ae]|0,oe[ae]>255?oe[ae]=255:oe[ae]<0&&(oe[ae]=0);return stringify(oe,oe.length===4?"rgba":"rgb")}}function toHex($){var z=parse$1($);if(z)return((1<<24)+(z[0]<<16)+(z[1]<<8)+ +z[2]).toString(16).slice(1)}function fastLerp($,z,oe){if(!(!(z&&z.length)||!($>=0&&$<=1))){oe=oe||[];var ae=$*(z.length-1),ie=Math.floor(ae),le=Math.ceil(ae),pe=z[ie],_e=z[le],Ce=ae-ie;return oe[0]=clampCssByte(lerpNumber(pe[0],_e[0],Ce)),oe[1]=clampCssByte(lerpNumber(pe[1],_e[1],Ce)),oe[2]=clampCssByte(lerpNumber(pe[2],_e[2],Ce)),oe[3]=clampCssFloat(lerpNumber(pe[3],_e[3],Ce)),oe}}var fastMapToColor=fastLerp;function lerp($,z,oe){if(!(!(z&&z.length)||!($>=0&&$<=1))){var ae=$*(z.length-1),ie=Math.floor(ae),le=Math.ceil(ae),pe=parse$1(z[ie]),_e=parse$1(z[le]),Ce=ae-ie,$e=stringify([clampCssByte(lerpNumber(pe[0],_e[0],Ce)),clampCssByte(lerpNumber(pe[1],_e[1],Ce)),clampCssByte(lerpNumber(pe[2],_e[2],Ce)),clampCssFloat(lerpNumber(pe[3],_e[3],Ce))],"rgba");return oe?{color:$e,leftIndex:ie,rightIndex:le,value:ae}:$e}}var mapToColor=lerp;function modifyHSL($,z,oe,ae){var ie=parse$1($);if($)return ie=rgba2hsla(ie),z!=null&&(ie[0]=clampCssAngle(z)),oe!=null&&(ie[1]=parseCssFloat(oe)),ae!=null&&(ie[2]=parseCssFloat(ae)),stringify(hsla2rgba(ie),"rgba")}function modifyAlpha($,z){var oe=parse$1($);if(oe&&z!=null)return oe[3]=clampCssFloat(z),stringify(oe,"rgba")}function stringify($,z){if(!(!$||!$.length)){var oe=$[0]+","+$[1]+","+$[2];return(z==="rgba"||z==="hsva"||z==="hsla")&&(oe+=","+$[3]),z+"("+oe+")"}}function lum($,z){var oe=parse$1($);return oe?(.299*oe[0]+.587*oe[1]+.114*oe[2])*oe[3]/255+(1-oe[3])*z: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($){return $.type==="linear"}function isRadialGradient($){return $.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function($){return window.btoa(unescape(encodeURIComponent($)))}:typeof Buffer<"u"?function($){return Buffer.from($).toString("base64")}:function($){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1($,z,oe){return(z-$)*oe+$}function interpolate1DArray($,z,oe,ae){for(var ie=z.length,le=0;le<ie;le++)$[le]=interpolateNumber$1(z[le],oe[le],ae);return $}function interpolate2DArray($,z,oe,ae){for(var ie=z.length,le=ie&&z[0].length,pe=0;pe<ie;pe++){$[pe]||($[pe]=[]);for(var _e=0;_e<le;_e++)$[pe][_e]=interpolateNumber$1(z[pe][_e],oe[pe][_e],ae)}return $}function add1DArray($,z,oe,ae){for(var ie=z.length,le=0;le<ie;le++)$[le]=z[le]+oe[le]*ae;return $}function add2DArray($,z,oe,ae){for(var ie=z.length,le=ie&&z[0].length,pe=0;pe<ie;pe++){$[pe]||($[pe]=[]);for(var _e=0;_e<le;_e++)$[pe][_e]=z[pe][_e]+oe[pe][_e]*ae}return $}function fillColorStops($,z){for(var oe=$.length,ae=z.length,ie=oe>ae?z:$,le=Math.min(oe,ae),pe=ie[le-1]||{color:[0,0,0,0],offset:0},_e=le;_e<Math.max(oe,ae);_e++)ie.push({offset:pe.offset,color:pe.color.slice()})}function fillArray($,z,oe){var ae=$,ie=z;if(!(!ae.push||!ie.push)){var le=ae.length,pe=ie.length;if(le!==pe){var _e=le>pe;if(_e)ae.length=pe;else for(var Ce=le;Ce<pe;Ce++)ae.push(oe===1?ie[Ce]:arraySlice.call(ie[Ce]))}for(var $e=ae[0]&&ae[0].length,Ce=0;Ce<ae.length;Ce++)if(oe===1)isNaN(ae[Ce])&&(ae[Ce]=ie[Ce]);else for(var xe=0;xe<$e;xe++)isNaN(ae[Ce][xe])&&(ae[Ce][xe]=ie[Ce][xe])}}function cloneValue($){if(isArrayLike($)){var z=$.length;if(isArrayLike($[0])){for(var oe=[],ae=0;ae<z;ae++)oe.push(arraySlice.call($[ae]));return oe}return arraySlice.call($)}return $}function rgba2String($){return $[0]=Math.floor($[0])||0,$[1]=Math.floor($[1])||0,$[2]=Math.floor($[2])||0,$[3]=$[3]==null?1:$[3],"rgba("+$.join(",")+")"}function guessArrayDim($){return isArrayLike($&&$[0])?2:1}var VALUE_TYPE_NUMBER=0,VALUE_TYPE_1D_ARRAY=1,VALUE_TYPE_2D_ARRAY=2,VALUE_TYPE_COLOR=3,VALUE_TYPE_LINEAR_GRADIENT=4,VALUE_TYPE_RADIAL_GRADIENT=5,VALUE_TYPE_UNKOWN=6;function isGradientValueType($){return $===VALUE_TYPE_LINEAR_GRADIENT||$===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType($){return $===VALUE_TYPE_1D_ARRAY||$===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function $(z){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=z}return $.prototype.isFinished=function(){return this._finished},$.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},$.prototype.needsAnimate=function(){return this.keyframes.length>=1},$.prototype.getAdditiveTrack=function(){return this._additiveTrack},$.prototype.addKeyframe=function(z,oe,ae){this._needsSort=!0;var ie=this.keyframes,le=ie.length,pe=!1,_e=VALUE_TYPE_UNKOWN,Ce=oe;if(isArrayLike(oe)){var $e=guessArrayDim(oe);_e=$e,($e===1&&!isNumber(oe[0])||$e===2&&!isNumber(oe[0][0]))&&(pe=!0)}else if(isNumber(oe)&&!eqNaN(oe))_e=VALUE_TYPE_NUMBER;else if(isString(oe))if(!isNaN(+oe))_e=VALUE_TYPE_NUMBER;else{var xe=parse$1(oe);xe&&(Ce=xe,_e=VALUE_TYPE_COLOR)}else if(isGradientObject(oe)){var Ie=extend({},Ce);Ie.colorStops=map$2(oe.colorStops,function(Fe){return{offset:Fe.offset,color:parse$1(Fe.color)}}),isLinearGradient(oe)?_e=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(oe)&&(_e=VALUE_TYPE_RADIAL_GRADIENT),Ce=Ie}le===0?this.valType=_e:(_e!==this.valType||_e===VALUE_TYPE_UNKOWN)&&(pe=!0),this.discrete=this.discrete||pe;var Ne={time:z,value:Ce,rawValue:oe,percent:0};return ae&&(Ne.easing=ae,Ne.easingFunc=isFunction(ae)?ae:easingFuncs$1[ae]||createCubicEasingFunc(ae)),ie.push(Ne),Ne},$.prototype.prepare=function(z,oe){var ae=this.keyframes;this._needsSort&&ae.sort(function(At,Lt){return At.time-Lt.time});for(var ie=this.valType,le=ae.length,pe=ae[le-1],_e=this.discrete,Ce=isArrayValueType(ie),$e=isGradientValueType(ie),xe=0;xe<le;xe++){var Ie=ae[xe],Ne=Ie.value,Fe=pe.value;Ie.percent=Ie.time/z,_e||(Ce&&xe!==le-1?fillArray(Ne,Fe,ie):$e&&fillColorStops(Ne.colorStops,Fe.colorStops))}if(!_e&&ie!==VALUE_TYPE_RADIAL_GRADIENT&&oe&&this.needsAnimate()&&oe.needsAnimate()&&ie===oe.valType&&!oe._finished){this._additiveTrack=oe;for(var ze=ae[0].value,xe=0;xe<le;xe++)ie===VALUE_TYPE_NUMBER?ae[xe].additiveValue=ae[xe].value-ze:ie===VALUE_TYPE_COLOR?ae[xe].additiveValue=add1DArray([],ae[xe].value,ze,-1):isArrayValueType(ie)&&(ae[xe].additiveValue=ie===VALUE_TYPE_1D_ARRAY?add1DArray([],ae[xe].value,ze,-1):add2DArray([],ae[xe].value,ze,-1))}},$.prototype.step=function(z,oe){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var ae=this._additiveTrack!=null,ie=ae?"additiveValue":"value",le=this.valType,pe=this.keyframes,_e=pe.length,Ce=this.propName,$e=le===VALUE_TYPE_COLOR,xe,Ie=this._lastFr,Ne=Math.min,Fe,ze;if(_e===1)Fe=ze=pe[0];else{if(oe<0)xe=0;else if(oe<this._lastFrP){var At=Ne(Ie+1,_e-1);for(xe=At;xe>=0&&!(pe[xe].percent<=oe);xe--);xe=Ne(xe,_e-2)}else{for(xe=Ie;xe<_e&&!(pe[xe].percent>oe);xe++);xe=Ne(xe-1,_e-2)}ze=pe[xe+1],Fe=pe[xe]}if(Fe&&ze){this._lastFr=xe,this._lastFrP=oe;var Lt=ze.percent-Fe.percent,hn=Lt===0?1:Ne((oe-Fe.percent)/Lt,1);ze.easingFunc&&(hn=ze.easingFunc(hn));var vn=ae?this._additiveValue:$e?tmpRgba:z[Ce];if((isArrayValueType(le)||$e)&&!vn&&(vn=this._additiveValue=[]),this.discrete)z[Ce]=hn<1?Fe.rawValue:ze.rawValue;else if(isArrayValueType(le))le===VALUE_TYPE_1D_ARRAY?interpolate1DArray(vn,Fe[ie],ze[ie],hn):interpolate2DArray(vn,Fe[ie],ze[ie],hn);else if(isGradientValueType(le)){var _n=Fe[ie],bn=ze[ie],Cn=le===VALUE_TYPE_LINEAR_GRADIENT;z[Ce]={type:Cn?"linear":"radial",x:interpolateNumber$1(_n.x,bn.x,hn),y:interpolateNumber$1(_n.y,bn.y,hn),colorStops:map$2(_n.colorStops,function($n,wn){var Tn=bn.colorStops[wn];return{offset:interpolateNumber$1($n.offset,Tn.offset,hn),color:rgba2String(interpolate1DArray([],$n.color,Tn.color,hn))}}),global:bn.global},Cn?(z[Ce].x2=interpolateNumber$1(_n.x2,bn.x2,hn),z[Ce].y2=interpolateNumber$1(_n.y2,bn.y2,hn)):z[Ce].r=interpolateNumber$1(_n.r,bn.r,hn)}else if($e)interpolate1DArray(vn,Fe[ie],ze[ie],hn),ae||(z[Ce]=rgba2String(vn));else{var En=interpolateNumber$1(Fe[ie],ze[ie],hn);ae?this._additiveValue=En:z[Ce]=En}ae&&this._addToTarget(z)}}},$.prototype._addToTarget=function(z){var oe=this.valType,ae=this.propName,ie=this._additiveValue;oe===VALUE_TYPE_NUMBER?z[ae]=z[ae]+ie:oe===VALUE_TYPE_COLOR?(parse$1(z[ae],tmpRgba),add1DArray(tmpRgba,tmpRgba,ie,1),z[ae]=rgba2String(tmpRgba)):oe===VALUE_TYPE_1D_ARRAY?add1DArray(z[ae],z[ae],ie,1):oe===VALUE_TYPE_2D_ARRAY&&add2DArray(z[ae],z[ae],ie,1)},$}(),Animator=function(){function $(z,oe,ae,ie){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=z,this._loop=oe,oe&&ie){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=ie,this._allowDiscrete=ae}return $.prototype.getMaxTime=function(){return this._maxTime},$.prototype.getDelay=function(){return this._delay},$.prototype.getLoop=function(){return this._loop},$.prototype.getTarget=function(){return this._target},$.prototype.changeTarget=function(z){this._target=z},$.prototype.when=function(z,oe,ae){return this.whenWithKeys(z,oe,keys(oe),ae)},$.prototype.whenWithKeys=function(z,oe,ae,ie){for(var le=this._tracks,pe=0;pe<ae.length;pe++){var _e=ae[pe],Ce=le[_e];if(!Ce){Ce=le[_e]=new Track(_e);var $e=void 0,xe=this._getAdditiveTrack(_e);if(xe){var Ie=xe.keyframes,Ne=Ie[Ie.length-1];$e=Ne&&Ne.value,xe.valType===VALUE_TYPE_COLOR&&$e&&($e=rgba2String($e))}else $e=this._target[_e];if($e==null)continue;z>0&&Ce.addKeyframe(0,cloneValue($e),ie),this._trackKeys.push(_e)}Ce.addKeyframe(z,cloneValue(oe[_e]),ie)}return this._maxTime=Math.max(this._maxTime,z),this},$.prototype.pause=function(){this._clip.pause(),this._paused=!0},$.prototype.resume=function(){this._clip.resume(),this._paused=!1},$.prototype.isPaused=function(){return!!this._paused},$.prototype.duration=function(z){return this._maxTime=z,this._force=!0,this},$.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var z=this._doneCbs;if(z)for(var oe=z.length,ae=0;ae<oe;ae++)z[ae].call(this)},$.prototype._abortedCallback=function(){this._setTracksFinished();var z=this.animation,oe=this._abortedCbs;if(z&&z.removeClip(this._clip),this._clip=null,oe)for(var ae=0;ae<oe.length;ae++)oe[ae].call(this)},$.prototype._setTracksFinished=function(){for(var z=this._tracks,oe=this._trackKeys,ae=0;ae<oe.length;ae++)z[oe[ae]].setFinished()},$.prototype._getAdditiveTrack=function(z){var oe,ae=this._additiveAnimators;if(ae)for(var ie=0;ie<ae.length;ie++){var le=ae[ie].getTrack(z);le&&(oe=le)}return oe},$.prototype.start=function(z){if(!(this._started>0)){this._started=1;for(var oe=this,ae=[],ie=this._maxTime||0,le=0;le<this._trackKeys.length;le++){var pe=this._trackKeys[le],_e=this._tracks[pe],Ce=this._getAdditiveTrack(pe),$e=_e.keyframes,xe=$e.length;if(_e.prepare(ie,Ce),_e.needsAnimate())if(!this._allowDiscrete&&_e.discrete){var Ie=$e[xe-1];Ie&&(oe._target[_e.propName]=Ie.rawValue),_e.setFinished()}else ae.push(_e)}if(ae.length||this._force){var Ne=new Clip$1({life:ie,loop:this._loop,delay:this._delay||0,onframe:function(Fe){oe._started=2;var ze=oe._additiveAnimators;if(ze){for(var At=!1,Lt=0;Lt<ze.length;Lt++)if(ze[Lt]._clip){At=!0;break}At||(oe._additiveAnimators=null)}for(var Lt=0;Lt<ae.length;Lt++)ae[Lt].step(oe._target,Fe);var hn=oe._onframeCbs;if(hn)for(var Lt=0;Lt<hn.length;Lt++)hn[Lt](oe._target,Fe)},ondestroy:function(){oe._doneCallback()}});this._clip=Ne,this.animation&&this.animation.addClip(Ne),z&&Ne.setEasing(z)}else this._doneCallback();return this}},$.prototype.stop=function(z){if(this._clip){var oe=this._clip;z&&oe.onframe(1),this._abortedCallback()}},$.prototype.delay=function(z){return this._delay=z,this},$.prototype.during=function(z){return z&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(z)),this},$.prototype.done=function(z){return z&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(z)),this},$.prototype.aborted=function(z){return z&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(z)),this},$.prototype.getClip=function(){return this._clip},$.prototype.getTrack=function(z){return this._tracks[z]},$.prototype.getTracks=function(){var z=this;return map$2(this._trackKeys,function(oe){return z._tracks[oe]})},$.prototype.stopTracks=function(z,oe){if(!z.length||!this._clip)return!0;for(var ae=this._tracks,ie=this._trackKeys,le=0;le<z.length;le++){var pe=ae[z[le]];pe&&!pe.isFinished()&&(oe?pe.step(this._target,1):this._started===1&&pe.step(this._target,0),pe.setFinished())}for(var _e=!0,le=0;le<ie.length;le++)if(!ae[ie[le]].isFinished()){_e=!1;break}return _e&&this._abortedCallback(),_e},$.prototype.saveTo=function(z,oe,ae){if(z){oe=oe||this._trackKeys;for(var ie=0;ie<oe.length;ie++){var le=oe[ie],pe=this._tracks[le];if(!(!pe||pe.isFinished())){var _e=pe.keyframes,Ce=_e[ae?0:_e.length-1];Ce&&(z[le]=cloneValue(Ce.rawValue))}}}},$.prototype.__changeFinalValue=function(z,oe){oe=oe||keys(z);for(var ae=0;ae<oe.length;ae++){var ie=oe[ae],le=this._tracks[ie];if(le){var pe=le.keyframes;if(pe.length>1){var _e=pe.pop();le.addKeyframe(_e.time,z[ie]),le.prepare(this._maxTime,le.getAdditiveTrack())}}}},$}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae._running=!1,ae._time=0,ae._pausedTime=0,ae._pauseStart=0,ae._paused=!1,oe=oe||{},ae.stage=oe.stage||{},ae}return z.prototype.addClip=function(oe){oe.animation&&this.removeClip(oe),this._head?(this._tail.next=oe,oe.prev=this._tail,oe.next=null,this._tail=oe):this._head=this._tail=oe,oe.animation=this},z.prototype.addAnimator=function(oe){oe.animation=this;var ae=oe.getClip();ae&&this.addClip(ae)},z.prototype.removeClip=function(oe){if(oe.animation){var ae=oe.prev,ie=oe.next;ae?ae.next=ie:this._head=ie,ie?ie.prev=ae:this._tail=ae,oe.next=oe.prev=oe.animation=null}},z.prototype.removeAnimator=function(oe){var ae=oe.getClip();ae&&this.removeClip(ae),oe.animation=null},z.prototype.update=function(oe){for(var ae=getTime()-this._pausedTime,ie=ae-this._time,le=this._head;le;){var pe=le.next,_e=le.step(ae,ie);_e&&(le.ondestroy(),this.removeClip(le)),le=pe}this._time=ae,oe||(this.trigger("frame",ie),this.stage.update&&this.stage.update())},z.prototype._startLoop=function(){var oe=this;this._running=!0;function ae(){oe._running&&(requestAnimationFrame$2(ae),!oe._paused&&oe.update())}requestAnimationFrame$2(ae)},z.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},z.prototype.stop=function(){this._running=!1},z.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},z.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},z.prototype.clear=function(){for(var oe=this._head;oe;){var ae=oe.next;oe.prev=oe.next=oe.animation=null,oe=ae}this._head=this._tail=null},z.prototype.isFinished=function(){return this._head==null},z.prototype.animate=function(oe,ae){ae=ae||{},this.start();var ie=new Animator$1(oe,ae.loop);return this.addAnimator(ie),ie},z}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var $=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],z=["touchstart","touchend","touchmove"],oe={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},ae=map$2($,function(ie){var le=ie.replace("mouse","pointer");return oe.hasOwnProperty(le)?le:ie});return{mouse:$,touch:z,pointer:ae}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch($){var z=$.pointerType;return z==="pen"||z==="touch"}function setTouchTimer($){$.touching=!0,$.touchTimer!=null&&(clearTimeout($.touchTimer),$.touchTimer=null),$.touchTimer=setTimeout(function(){$.touching=!1,$.touchTimer=null},700)}function markTouch($){$&&($.zrByTouch=!0)}function normalizeGlobalEvent($,z){return normalizeEvent($.dom,new FakeGlobalEvent($,z),!0)}function isLocalEl($,z){for(var oe=z,ae=!1;oe&&oe.nodeType!==9&&!(ae=oe.domBelongToZr||oe!==z&&oe===$.painterRoot);)oe=oe.parentNode;return ae}var FakeGlobalEvent=function(){function $(z,oe){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=oe.type,this.target=this.currentTarget=z.dom,this.pointerType=oe.pointerType,this.clientX=oe.clientX,this.clientY=oe.clientY}return $}(),localDOMHandlers={mousedown:function($){$=normalizeEvent(this.dom,$),this.__mayPointerCapture=[$.zrX,$.zrY],this.trigger("mousedown",$)},mousemove:function($){$=normalizeEvent(this.dom,$);var z=this.__mayPointerCapture;z&&($.zrX!==z[0]||$.zrY!==z[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",$)},mouseup:function($){$=normalizeEvent(this.dom,$),this.__togglePointerCapture(!1),this.trigger("mouseup",$)},mouseout:function($){$=normalizeEvent(this.dom,$);var z=$.toElement||$.relatedTarget;isLocalEl(this,z)||(this.__pointerCapturing&&($.zrEventControl="no_globalout"),this.trigger("mouseout",$))},wheel:function($){wheelEventSupported=!0,$=normalizeEvent(this.dom,$),this.trigger("mousewheel",$)},mousewheel:function($){wheelEventSupported||($=normalizeEvent(this.dom,$),this.trigger("mousewheel",$))},touchstart:function($){$=normalizeEvent(this.dom,$),markTouch($),this.__lastTouchMoment=new Date,this.handler.processGesture($,"start"),localDOMHandlers.mousemove.call(this,$),localDOMHandlers.mousedown.call(this,$)},touchmove:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"change"),localDOMHandlers.mousemove.call(this,$)},touchend:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"end"),localDOMHandlers.mouseup.call(this,$),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,$)},pointerdown:function($){localDOMHandlers.mousedown.call(this,$)},pointermove:function($){isPointerFromTouch($)||localDOMHandlers.mousemove.call(this,$)},pointerup:function($){localDOMHandlers.mouseup.call(this,$)},pointerout:function($){isPointerFromTouch($)||localDOMHandlers.mouseout.call(this,$)}};each$c(["click","dblclick","contextmenu"],function($){localDOMHandlers[$]=function(z){z=normalizeEvent(this.dom,z),this.trigger($,z)}});var globalDOMHandlers={pointermove:function($){isPointerFromTouch($)||globalDOMHandlers.mousemove.call(this,$)},pointerup:function($){globalDOMHandlers.mouseup.call(this,$)},mousemove:function($){this.trigger("mousemove",$)},mouseup:function($){var z=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",$),z&&($.zrEventControl="only_globalout",this.trigger("mouseout",$))}};function mountLocalDOMEventListeners($,z){var oe=z.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(ae){mountSingleDOMEventListener(z,ae,function(ie){oe[ae].call($,ie)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(ae){mountSingleDOMEventListener(z,ae,function(ie){oe[ae].call($,ie),setTouchTimer(z)})}),each$c(localNativeListenerNames.mouse,function(ae){mountSingleDOMEventListener(z,ae,function(ie){ie=getNativeEvent(ie),z.touching||oe[ae].call($,ie)})}))}function mountGlobalDOMEventListeners($,z){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,oe):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,oe);function oe(ae){function ie(le){le=getNativeEvent(le),isLocalEl($,le.target)||(le=normalizeGlobalEvent($,le),z.domHandlers[ae].call($,le))}mountSingleDOMEventListener(z,ae,ie,{capture:!0})}}function mountSingleDOMEventListener($,z,oe,ae){$.mounted[z]=oe,$.listenerOpts[z]=ae,addEventListener($.domTarget,z,oe,ae)}function unmountDOMEventListeners($){var z=$.mounted;for(var oe in z)z.hasOwnProperty(oe)&&removeEventListener($.domTarget,oe,z[oe],$.listenerOpts[oe]);$.mounted={}}var DOMHandlerScope=function(){function $(z,oe){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=z,this.domHandlers=oe}return $}(),HandlerDomProxy=function($){__extends(z,$);function z(oe,ae){var ie=$.call(this)||this;return ie.__pointerCapturing=!1,ie.dom=oe,ie.painterRoot=ae,ie._localHandlerScope=new DOMHandlerScope(oe,localDOMHandlers),globalEventSupported&&(ie._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(ie,ie._localHandlerScope),ie}return z.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},z.prototype.setCursor=function(oe){this.dom.style&&(this.dom.style.cursor=oe||"default")},z.prototype.__togglePointerCapture=function(oe){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+oe){this.__pointerCapturing=oe;var ae=this._globalHandlerScope;oe?mountGlobalDOMEventListeners(this,ae):unmountDOMEventListeners(ae)}},z}(Eventful$1);const HandlerProxy=HandlerDomProxy;var dpr=1;env$1.hasGlobalWindow&&(dpr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var devicePixelRatio=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$2=5e-5;function isNotAroundZero($){return $>EPSILON$2||$<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function $(){}return $.prototype.getLocalTransform=function(z){return $.getLocalTransform(this,z)},$.prototype.setPosition=function(z){this.x=z[0],this.y=z[1]},$.prototype.setScale=function(z){this.scaleX=z[0],this.scaleY=z[1]},$.prototype.setSkew=function(z){this.skewX=z[0],this.skewY=z[1]},$.prototype.setOrigin=function(z){this.originX=z[0],this.originY=z[1]},$.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)},$.prototype.updateTransform=function(){var z=this.parent&&this.parent.transform,oe=this.needLocalTransform(),ae=this.transform;if(!(oe||z)){ae&&mIdentity(ae);return}ae=ae||create(),oe?this.getLocalTransform(ae):mIdentity(ae),z&&(oe?mul(ae,z,ae):copy(ae,z)),this.transform=ae,this._resolveGlobalScaleRatio(ae)},$.prototype._resolveGlobalScaleRatio=function(z){var oe=this.globalScaleRatio;if(oe!=null&&oe!==1){this.getGlobalScale(scaleTmp);var ae=scaleTmp[0]<0?-1:1,ie=scaleTmp[1]<0?-1:1,le=((scaleTmp[0]-ae)*oe+ae)/scaleTmp[0]||0,pe=((scaleTmp[1]-ie)*oe+ie)/scaleTmp[1]||0;z[0]*=le,z[1]*=le,z[2]*=pe,z[3]*=pe}this.invTransform=this.invTransform||create(),invert(this.invTransform,z)},$.prototype.getComputedTransform=function(){for(var z=this,oe=[];z;)oe.push(z),z=z.parent;for(;z=oe.pop();)z.updateTransform();return this.transform},$.prototype.setLocalTransform=function(z){if(z){var oe=z[0]*z[0]+z[1]*z[1],ae=z[2]*z[2]+z[3]*z[3],ie=Math.atan2(z[1],z[0]),le=Math.PI/2+ie-Math.atan2(z[3],z[2]);ae=Math.sqrt(ae)*Math.cos(le),oe=Math.sqrt(oe),this.skewX=le,this.skewY=0,this.rotation=-ie,this.x=+z[4],this.y=+z[5],this.scaleX=oe,this.scaleY=ae,this.originX=0,this.originY=0}},$.prototype.decomposeTransform=function(){if(this.transform){var z=this.parent,oe=this.transform;z&&z.transform&&(mul(tmpTransform,z.invTransform,oe),oe=tmpTransform);var ae=this.originX,ie=this.originY;(ae||ie)&&(originTransform[4]=ae,originTransform[5]=ie,mul(tmpTransform,oe,originTransform),tmpTransform[4]-=ae,tmpTransform[5]-=ie,oe=tmpTransform),this.setLocalTransform(oe)}},$.prototype.getGlobalScale=function(z){var oe=this.transform;return z=z||[],oe?(z[0]=Math.sqrt(oe[0]*oe[0]+oe[1]*oe[1]),z[1]=Math.sqrt(oe[2]*oe[2]+oe[3]*oe[3]),oe[0]<0&&(z[0]=-z[0]),oe[3]<0&&(z[1]=-z[1]),z):(z[0]=1,z[1]=1,z)},$.prototype.transformCoordToLocal=function(z,oe){var ae=[z,oe],ie=this.invTransform;return ie&&applyTransform$1(ae,ae,ie),ae},$.prototype.transformCoordToGlobal=function(z,oe){var ae=[z,oe],ie=this.transform;return ie&&applyTransform$1(ae,ae,ie),ae},$.prototype.getLineScale=function(){var z=this.transform;return z&&abs(z[0]-1)>1e-10&&abs(z[3]-1)>1e-10?Math.sqrt(abs(z[0]*z[3]-z[2]*z[1])):1},$.prototype.copyTransform=function(z){copyTransform(this,z)},$.getLocalTransform=function(z,oe){oe=oe||[];var ae=z.originX||0,ie=z.originY||0,le=z.scaleX,pe=z.scaleY,_e=z.anchorX,Ce=z.anchorY,$e=z.rotation||0,xe=z.x,Ie=z.y,Ne=z.skewX?Math.tan(z.skewX):0,Fe=z.skewY?Math.tan(-z.skewY):0;if(ae||ie||_e||Ce){var ze=ae+_e,At=ie+Ce;oe[4]=-ze*le-Ne*At*pe,oe[5]=-At*pe-Fe*ze*le}else oe[4]=oe[5]=0;return oe[0]=le,oe[3]=pe,oe[1]=Fe*le,oe[2]=Ne*pe,$e&&rotate(oe,oe,$e),oe[4]+=ae+xe,oe[5]+=ie+Ie,oe},$.initDefaultProps=function(){var z=$.prototype;z.scaleX=z.scaleY=z.globalScaleRatio=1,z.x=z.y=z.originX=z.originY=z.skewX=z.skewY=z.rotation=z.anchorX=z.anchorY=0}(),$}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform($,z){for(var oe=0;oe<TRANSFORMABLE_PROPS.length;oe++){var ae=TRANSFORMABLE_PROPS[oe];$[ae]=z[ae]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth($,z){z=z||DEFAULT_FONT;var oe=textWidthCache[z];oe||(oe=textWidthCache[z]=new LRU$1(500));var ae=oe.get($);return ae==null&&(ae=platformApi.measureText($,z).width,oe.put($,ae)),ae}function innerGetBoundingRect($,z,oe,ae){var ie=getWidth($,z),le=getLineHeight(z),pe=adjustTextX(0,ie,oe),_e=adjustTextY(0,le,ae),Ce=new BoundingRect$1(pe,_e,ie,le);return Ce}function getBoundingRect($,z,oe,ae){var ie=(($||"")+"").split(`
|
||
`),le=ie.length;if(le===1)return innerGetBoundingRect(ie[0],z,oe,ae);for(var pe=new BoundingRect$1(0,0,0,0),_e=0;_e<ie.length;_e++){var Ce=innerGetBoundingRect(ie[_e],z,oe,ae);_e===0?pe.copy(Ce):pe.union(Ce)}return pe}function adjustTextX($,z,oe){return oe==="right"?$-=z:oe==="center"&&($-=z/2),$}function adjustTextY($,z,oe){return oe==="middle"?$-=z/2:oe==="bottom"&&($-=z),$}function getLineHeight($){return getWidth("国",$)}function parsePercent$1($,z){return typeof $=="string"?$.lastIndexOf("%")>=0?parseFloat($)/100*z:parseFloat($):$}function calculateTextPosition($,z,oe){var ae=z.position||"inside",ie=z.distance!=null?z.distance:5,le=oe.height,pe=oe.width,_e=le/2,Ce=oe.x,$e=oe.y,xe="left",Ie="top";if(ae instanceof Array)Ce+=parsePercent$1(ae[0],oe.width),$e+=parsePercent$1(ae[1],oe.height),xe=null,Ie=null;else switch(ae){case"left":Ce-=ie,$e+=_e,xe="right",Ie="middle";break;case"right":Ce+=ie+pe,$e+=_e,Ie="middle";break;case"top":Ce+=pe/2,$e-=ie,xe="center",Ie="bottom";break;case"bottom":Ce+=pe/2,$e+=le+ie,xe="center";break;case"inside":Ce+=pe/2,$e+=_e,xe="center",Ie="middle";break;case"insideLeft":Ce+=ie,$e+=_e,Ie="middle";break;case"insideRight":Ce+=pe-ie,$e+=_e,xe="right",Ie="middle";break;case"insideTop":Ce+=pe/2,$e+=ie,xe="center";break;case"insideBottom":Ce+=pe/2,$e+=le-ie,xe="center",Ie="bottom";break;case"insideTopLeft":Ce+=ie,$e+=ie;break;case"insideTopRight":Ce+=pe-ie,$e+=ie,xe="right";break;case"insideBottomLeft":Ce+=ie,$e+=le-ie,Ie="bottom";break;case"insideBottomRight":Ce+=pe-ie,$e+=le-ie,xe="right",Ie="bottom";break}return $=$||{},$.x=Ce,$.y=$e,$.align=xe,$.verticalAlign=Ie,$}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function($,z){return $[z]=!0,$},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function $(z){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(z)}return $.prototype._init=function(z){this.attr(z)},$.prototype.drift=function(z,oe,ae){switch(this.draggable){case"horizontal":oe=0;break;case"vertical":z=0;break}var ie=this.transform;ie||(ie=this.transform=[1,0,0,1,0,0]),ie[4]+=z,ie[5]+=oe,this.decomposeTransform(),this.markRedraw()},$.prototype.beforeUpdate=function(){},$.prototype.afterUpdate=function(){},$.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},$.prototype.updateInnerText=function(z){var oe=this._textContent;if(oe&&(!oe.ignore||z)){this.textConfig||(this.textConfig={});var ae=this.textConfig,ie=ae.local,le=oe.innerTransformable,pe=void 0,_e=void 0,Ce=!1;le.parent=ie?this:null;var $e=!1;if(le.copyTransform(oe),ae.position!=null){var xe=tmpBoundingRect;ae.layoutRect?xe.copy(ae.layoutRect):xe.copy(this.getBoundingRect()),ie||xe.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,ae,xe):calculateTextPosition(tmpTextPosCalcRes,ae,xe),le.x=tmpTextPosCalcRes.x,le.y=tmpTextPosCalcRes.y,pe=tmpTextPosCalcRes.align,_e=tmpTextPosCalcRes.verticalAlign;var Ie=ae.origin;if(Ie&&ae.rotation!=null){var Ne=void 0,Fe=void 0;Ie==="center"?(Ne=xe.width*.5,Fe=xe.height*.5):(Ne=parsePercent$1(Ie[0],xe.width),Fe=parsePercent$1(Ie[1],xe.height)),$e=!0,le.originX=-le.x+Ne+(ie?0:xe.x),le.originY=-le.y+Fe+(ie?0:xe.y)}}ae.rotation!=null&&(le.rotation=ae.rotation);var ze=ae.offset;ze&&(le.x+=ze[0],le.y+=ze[1],$e||(le.originX=-ze[0],le.originY=-ze[1]));var At=ae.inside==null?typeof ae.position=="string"&&ae.position.indexOf("inside")>=0:ae.inside,Lt=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),hn=void 0,vn=void 0,_n=void 0;At&&this.canBeInsideText()?(hn=ae.insideFill,vn=ae.insideStroke,(hn==null||hn==="auto")&&(hn=this.getInsideTextFill()),(vn==null||vn==="auto")&&(vn=this.getInsideTextStroke(hn),_n=!0)):(hn=ae.outsideFill,vn=ae.outsideStroke,(hn==null||hn==="auto")&&(hn=this.getOutsideFill()),(vn==null||vn==="auto")&&(vn=this.getOutsideStroke(hn),_n=!0)),hn=hn||"#000",(hn!==Lt.fill||vn!==Lt.stroke||_n!==Lt.autoStroke||pe!==Lt.align||_e!==Lt.verticalAlign)&&(Ce=!0,Lt.fill=hn,Lt.stroke=vn,Lt.autoStroke=_n,Lt.align=pe,Lt.verticalAlign=_e,oe.setDefaultTextStyle(Lt)),oe.__dirty|=REDRAW_BIT,Ce&&oe.dirtyStyle(!0)}},$.prototype.canBeInsideText=function(){return!0},$.prototype.getInsideTextFill=function(){return"#fff"},$.prototype.getInsideTextStroke=function(z){return"#000"},$.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},$.prototype.getOutsideStroke=function(z){var oe=this.__zr&&this.__zr.getBackgroundColor(),ae=typeof oe=="string"&&parse$1(oe);ae||(ae=[255,255,255,1]);for(var ie=ae[3],le=this.__zr.isDarkMode(),pe=0;pe<3;pe++)ae[pe]=ae[pe]*ie+(le?0:255)*(1-ie);return ae[3]=1,stringify(ae,"rgba")},$.prototype.traverse=function(z,oe){},$.prototype.attrKV=function(z,oe){z==="textConfig"?this.setTextConfig(oe):z==="textContent"?this.setTextContent(oe):z==="clipPath"?this.setClipPath(oe):z==="extra"?(this.extra=this.extra||{},extend(this.extra,oe)):this[z]=oe},$.prototype.hide=function(){this.ignore=!0,this.markRedraw()},$.prototype.show=function(){this.ignore=!1,this.markRedraw()},$.prototype.attr=function(z,oe){if(typeof z=="string")this.attrKV(z,oe);else if(isObject$3(z))for(var ae=z,ie=keys(ae),le=0;le<ie.length;le++){var pe=ie[le];this.attrKV(pe,z[pe])}return this.markRedraw(),this},$.prototype.saveCurrentToNormalState=function(z){this._innerSaveToNormal(z);for(var oe=this._normalState,ae=0;ae<this.animators.length;ae++){var ie=this.animators[ae],le=ie.__fromStateTransition;if(!(ie.getLoop()||le&&le!==PRESERVED_NORMAL_STATE)){var pe=ie.targetName,_e=pe?oe[pe]:oe;ie.saveTo(_e)}}},$.prototype._innerSaveToNormal=function(z){var oe=this._normalState;oe||(oe=this._normalState={}),z.textConfig&&!oe.textConfig&&(oe.textConfig=this.textConfig),this._savePrimaryToNormal(z,oe,PRIMARY_STATES_KEYS$1)},$.prototype._savePrimaryToNormal=function(z,oe,ae){for(var ie=0;ie<ae.length;ie++){var le=ae[ie];z[le]!=null&&!(le in oe)&&(oe[le]=this[le])}},$.prototype.hasState=function(){return this.currentStates.length>0},$.prototype.getState=function(z){return this.states[z]},$.prototype.ensureState=function(z){var oe=this.states;return oe[z]||(oe[z]={}),oe[z]},$.prototype.clearStates=function(z){this.useState(PRESERVED_NORMAL_STATE,!1,z)},$.prototype.useState=function(z,oe,ae,ie){var le=z===PRESERVED_NORMAL_STATE,pe=this.hasState();if(!(!pe&&le)){var _e=this.currentStates,Ce=this.stateTransition;if(!(indexOf(_e,z)>=0&&(oe||_e.length===1))){var $e;if(this.stateProxy&&!le&&($e=this.stateProxy(z)),$e||($e=this.states&&this.states[z]),!$e&&!le){logError("State "+z+" not exists.");return}le||this.saveCurrentToNormalState($e);var xe=!!($e&&$e.hoverLayer||ie);xe&&this._toggleHoverLayerFlag(!0),this._applyStateObj(z,$e,this._normalState,oe,!ae&&!this.__inHover&&Ce&&Ce.duration>0,Ce);var Ie=this._textContent,Ne=this._textGuide;return Ie&&Ie.useState(z,oe,ae,xe),Ne&&Ne.useState(z,oe,ae,xe),le?(this.currentStates=[],this._normalState={}):oe?this.currentStates.push(z):this.currentStates=[z],this._updateAnimationTargets(),this.markRedraw(),!xe&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),$e}}},$.prototype.useStates=function(z,oe,ae){if(!z.length)this.clearStates();else{var ie=[],le=this.currentStates,pe=z.length,_e=pe===le.length;if(_e){for(var Ce=0;Ce<pe;Ce++)if(z[Ce]!==le[Ce]){_e=!1;break}}if(_e)return;for(var Ce=0;Ce<pe;Ce++){var $e=z[Ce],xe=void 0;this.stateProxy&&(xe=this.stateProxy($e,z)),xe||(xe=this.states[$e]),xe&&ie.push(xe)}var Ie=ie[pe-1],Ne=!!(Ie&&Ie.hoverLayer||ae);Ne&&this._toggleHoverLayerFlag(!0);var Fe=this._mergeStates(ie),ze=this.stateTransition;this.saveCurrentToNormalState(Fe),this._applyStateObj(z.join(","),Fe,this._normalState,!1,!oe&&!this.__inHover&&ze&&ze.duration>0,ze);var At=this._textContent,Lt=this._textGuide;At&&At.useStates(z,oe,Ne),Lt&&Lt.useStates(z,oe,Ne),this._updateAnimationTargets(),this.currentStates=z.slice(),this.markRedraw(),!Ne&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},$.prototype._updateAnimationTargets=function(){for(var z=0;z<this.animators.length;z++){var oe=this.animators[z];oe.targetName&&oe.changeTarget(this[oe.targetName])}},$.prototype.removeState=function(z){var oe=indexOf(this.currentStates,z);if(oe>=0){var ae=this.currentStates.slice();ae.splice(oe,1),this.useStates(ae)}},$.prototype.replaceState=function(z,oe,ae){var ie=this.currentStates.slice(),le=indexOf(ie,z),pe=indexOf(ie,oe)>=0;le>=0?pe?ie.splice(le,1):ie[le]=oe:ae&&!pe&&ie.push(oe),this.useStates(ie)},$.prototype.toggleState=function(z,oe){oe?this.useState(z,!0):this.removeState(z)},$.prototype._mergeStates=function(z){for(var oe={},ae,ie=0;ie<z.length;ie++){var le=z[ie];extend(oe,le),le.textConfig&&(ae=ae||{},extend(ae,le.textConfig))}return ae&&(oe.textConfig=ae),oe},$.prototype._applyStateObj=function(z,oe,ae,ie,le,pe){var _e=!(oe&&ie);oe&&oe.textConfig?(this.textConfig=extend({},ie?this.textConfig:ae.textConfig),extend(this.textConfig,oe.textConfig)):_e&&ae.textConfig&&(this.textConfig=ae.textConfig);for(var Ce={},$e=!1,xe=0;xe<PRIMARY_STATES_KEYS$1.length;xe++){var Ie=PRIMARY_STATES_KEYS$1[xe],Ne=le&&DEFAULT_ANIMATABLE_MAP[Ie];oe&&oe[Ie]!=null?Ne?($e=!0,Ce[Ie]=oe[Ie]):this[Ie]=oe[Ie]:_e&&ae[Ie]!=null&&(Ne?($e=!0,Ce[Ie]=ae[Ie]):this[Ie]=ae[Ie])}if(!le)for(var xe=0;xe<this.animators.length;xe++){var Fe=this.animators[xe],ze=Fe.targetName;Fe.getLoop()||Fe.__changeFinalValue(ze?(oe||ae)[ze]:oe||ae)}$e&&this._transitionState(z,Ce,pe)},$.prototype._attachComponent=function(z){if(!(z.__zr&&!z.__hostTarget)&&z!==this){var oe=this.__zr;oe&&z.addSelfToZr(oe),z.__zr=oe,z.__hostTarget=this}},$.prototype._detachComponent=function(z){z.__zr&&z.removeSelfFromZr(z.__zr),z.__zr=null,z.__hostTarget=null},$.prototype.getClipPath=function(){return this._clipPath},$.prototype.setClipPath=function(z){this._clipPath&&this._clipPath!==z&&this.removeClipPath(),this._attachComponent(z),this._clipPath=z,this.markRedraw()},$.prototype.removeClipPath=function(){var z=this._clipPath;z&&(this._detachComponent(z),this._clipPath=null,this.markRedraw())},$.prototype.getTextContent=function(){return this._textContent},$.prototype.setTextContent=function(z){var oe=this._textContent;oe!==z&&(oe&&oe!==z&&this.removeTextContent(),z.innerTransformable=new Transformable$1,this._attachComponent(z),this._textContent=z,this.markRedraw())},$.prototype.setTextConfig=function(z){this.textConfig||(this.textConfig={}),extend(this.textConfig,z),this.markRedraw()},$.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},$.prototype.removeTextContent=function(){var z=this._textContent;z&&(z.innerTransformable=null,this._detachComponent(z),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},$.prototype.getTextGuideLine=function(){return this._textGuide},$.prototype.setTextGuideLine=function(z){this._textGuide&&this._textGuide!==z&&this.removeTextGuideLine(),this._attachComponent(z),this._textGuide=z,this.markRedraw()},$.prototype.removeTextGuideLine=function(){var z=this._textGuide;z&&(this._detachComponent(z),this._textGuide=null,this.markRedraw())},$.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var z=this.__zr;z&&(this.__inHover?z.refreshHover():z.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},$.prototype.dirty=function(){this.markRedraw()},$.prototype._toggleHoverLayerFlag=function(z){this.__inHover=z;var oe=this._textContent,ae=this._textGuide;oe&&(oe.__inHover=z),ae&&(ae.__inHover=z)},$.prototype.addSelfToZr=function(z){if(this.__zr!==z){this.__zr=z;var oe=this.animators;if(oe)for(var ae=0;ae<oe.length;ae++)z.animation.addAnimator(oe[ae]);this._clipPath&&this._clipPath.addSelfToZr(z),this._textContent&&this._textContent.addSelfToZr(z),this._textGuide&&this._textGuide.addSelfToZr(z)}},$.prototype.removeSelfFromZr=function(z){if(this.__zr){this.__zr=null;var oe=this.animators;if(oe)for(var ae=0;ae<oe.length;ae++)z.animation.removeAnimator(oe[ae]);this._clipPath&&this._clipPath.removeSelfFromZr(z),this._textContent&&this._textContent.removeSelfFromZr(z),this._textGuide&&this._textGuide.removeSelfFromZr(z)}},$.prototype.animate=function(z,oe,ae){var ie=z?this[z]:this,le=new Animator$1(ie,oe,ae);return z&&(le.targetName=z),this.addAnimator(le,z),le},$.prototype.addAnimator=function(z,oe){var ae=this.__zr,ie=this;z.during(function(){ie.updateDuringAnimation(oe)}).done(function(){var le=ie.animators,pe=indexOf(le,z);pe>=0&&le.splice(pe,1)}),this.animators.push(z),ae&&ae.animation.addAnimator(z),ae&&ae.wakeUp()},$.prototype.updateDuringAnimation=function(z){this.markRedraw()},$.prototype.stopAnimation=function(z,oe){for(var ae=this.animators,ie=ae.length,le=[],pe=0;pe<ie;pe++){var _e=ae[pe];!z||z===_e.scope?_e.stop(oe):le.push(_e)}return this.animators=le,this},$.prototype.animateTo=function(z,oe,ae){animateTo(this,z,oe,ae)},$.prototype.animateFrom=function(z,oe,ae){animateTo(this,z,oe,ae,!0)},$.prototype._transitionState=function(z,oe,ae,ie){for(var le=animateTo(this,oe,ae,ie),pe=0;pe<le.length;pe++)le[pe].__fromStateTransition=z},$.prototype.getBoundingRect=function(){return null},$.prototype.getPaintRect=function(){return null},$.initDefaultProps=function(){var z=$.prototype;z.type="element",z.name="",z.ignore=z.silent=z.isGroup=z.draggable=z.dragging=z.ignoreClip=z.__inHover=!1,z.__dirty=REDRAW_BIT;function oe(ae,ie,le,pe){Object.defineProperty(z,ae,{get:function(){if(!this[ie]){var Ce=this[ie]=[];_e(this,Ce)}return this[ie]},set:function(Ce){this[le]=Ce[0],this[pe]=Ce[1],this[ie]=Ce,_e(this,Ce)}});function _e(Ce,$e){Object.defineProperty($e,0,{get:function(){return Ce[le]},set:function(xe){Ce[le]=xe}}),Object.defineProperty($e,1,{get:function(){return Ce[pe]},set:function(xe){Ce[pe]=xe}})}}Object.defineProperty&&(oe("position","_legacyPos","x","y"),oe("scale","_legacyScale","scaleX","scaleY"),oe("origin","_legacyOrigin","originX","originY"))}(),$}();mixin(Element$1,Eventful$1);mixin(Element$1,Transformable$1);function animateTo($,z,oe,ae,ie){oe=oe||{};var le=[];animateToShallow($,"",$,z,oe,ae,le,ie);var pe=le.length,_e=!1,Ce=oe.done,$e=oe.aborted,xe=function(){_e=!0,pe--,pe<=0&&(_e?Ce&&Ce():$e&&$e())},Ie=function(){pe--,pe<=0&&(_e?Ce&&Ce():$e&&$e())};pe||Ce&&Ce(),le.length>0&&oe.during&&le[0].during(function(ze,At){oe.during(At)});for(var Ne=0;Ne<le.length;Ne++){var Fe=le[Ne];xe&&Fe.done(xe),Ie&&Fe.aborted(Ie),oe.force&&Fe.duration(oe.duration),Fe.start(oe.easing)}return le}function copyArrShallow($,z,oe){for(var ae=0;ae<oe;ae++)$[ae]=z[ae]}function is2DArray($){return isArrayLike($[0])}function copyValue($,z,oe){if(isArrayLike(z[oe]))if(isArrayLike($[oe])||($[oe]=[]),isTypedArray(z[oe])){var ae=z[oe].length;$[oe].length!==ae&&($[oe]=new z[oe].constructor(ae),copyArrShallow($[oe],z[oe],ae))}else{var ie=z[oe],le=$[oe],pe=ie.length;if(is2DArray(ie))for(var _e=ie[0].length,Ce=0;Ce<pe;Ce++)le[Ce]?copyArrShallow(le[Ce],ie[Ce],_e):le[Ce]=Array.prototype.slice.call(ie[Ce]);else copyArrShallow(le,ie,pe);le.length=ie.length}else $[oe]=z[oe]}function isValueSame($,z){return $===z||isArrayLike($)&&isArrayLike(z)&&is1DArraySame($,z)}function is1DArraySame($,z){var oe=$.length;if(oe!==z.length)return!1;for(var ae=0;ae<oe;ae++)if($[ae]!==z[ae])return!1;return!0}function animateToShallow($,z,oe,ae,ie,le,pe,_e){for(var Ce=keys(ae),$e=ie.duration,xe=ie.delay,Ie=ie.additive,Ne=ie.setToFinal,Fe=!isObject$3(le),ze=$.animators,At=[],Lt=0;Lt<Ce.length;Lt++){var hn=Ce[Lt],vn=ae[hn];if(vn!=null&&oe[hn]!=null&&(Fe||le[hn]))if(isObject$3(vn)&&!isArrayLike(vn)&&!isGradientObject(vn)){if(z){_e||(oe[hn]=vn,$.updateDuringAnimation(z));continue}animateToShallow($,hn,oe[hn],vn,ie,le&&le[hn],pe,_e)}else At.push(hn);else _e||(oe[hn]=vn,$.updateDuringAnimation(z),At.push(hn))}var _n=At.length;if(!Ie&&_n)for(var bn=0;bn<ze.length;bn++){var Cn=ze[bn];if(Cn.targetName===z){var En=Cn.stopTracks(At);if(En){var $n=indexOf(ze,Cn);ze.splice($n,1)}}}if(ie.force||(At=filter(At,function(kn){return!isValueSame(ae[kn],oe[kn])}),_n=At.length),_n>0||ie.force&&!pe.length){var wn=void 0,Tn=void 0,xn=void 0;if(_e){Tn={},Ne&&(wn={});for(var bn=0;bn<_n;bn++){var hn=At[bn];Tn[hn]=oe[hn],Ne?wn[hn]=ae[hn]:oe[hn]=ae[hn]}}else if(Ne){xn={};for(var bn=0;bn<_n;bn++){var hn=At[bn];xn[hn]=cloneValue(oe[hn]),copyValue(oe,ae,hn)}}var Cn=new Animator$1(oe,!1,!1,Ie?filter(ze,function(An){return An.targetName===z}):null);Cn.targetName=z,ie.scope&&(Cn.scope=ie.scope),Ne&&wn&&Cn.whenWithKeys(0,wn,At),xn&&Cn.whenWithKeys(0,xn,At),Cn.whenWithKeys($e??500,_e?Tn:ae,At).delay(xe||0),$.addAnimator(Cn,z),pe.push(Cn)}}const Element$2=Element$1;var Group$2=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae.isGroup=!0,ae._children=[],ae.attr(oe),ae}return z.prototype.childrenRef=function(){return this._children},z.prototype.children=function(){return this._children.slice()},z.prototype.childAt=function(oe){return this._children[oe]},z.prototype.childOfName=function(oe){for(var ae=this._children,ie=0;ie<ae.length;ie++)if(ae[ie].name===oe)return ae[ie]},z.prototype.childCount=function(){return this._children.length},z.prototype.add=function(oe){return oe&&oe!==this&&oe.parent!==this&&(this._children.push(oe),this._doAdd(oe)),this},z.prototype.addBefore=function(oe,ae){if(oe&&oe!==this&&oe.parent!==this&&ae&&ae.parent===this){var ie=this._children,le=ie.indexOf(ae);le>=0&&(ie.splice(le,0,oe),this._doAdd(oe))}return this},z.prototype.replace=function(oe,ae){var ie=indexOf(this._children,oe);return ie>=0&&this.replaceAt(ae,ie),this},z.prototype.replaceAt=function(oe,ae){var ie=this._children,le=ie[ae];if(oe&&oe!==this&&oe.parent!==this&&oe!==le){ie[ae]=oe,le.parent=null;var pe=this.__zr;pe&&le.removeSelfFromZr(pe),this._doAdd(oe)}return this},z.prototype._doAdd=function(oe){oe.parent&&oe.parent.remove(oe),oe.parent=this;var ae=this.__zr;ae&&ae!==oe.__zr&&oe.addSelfToZr(ae),ae&&ae.refresh()},z.prototype.remove=function(oe){var ae=this.__zr,ie=this._children,le=indexOf(ie,oe);return le<0?this:(ie.splice(le,1),oe.parent=null,ae&&oe.removeSelfFromZr(ae),ae&&ae.refresh(),this)},z.prototype.removeAll=function(){for(var oe=this._children,ae=this.__zr,ie=0;ie<oe.length;ie++){var le=oe[ie];ae&&le.removeSelfFromZr(ae),le.parent=null}return oe.length=0,this},z.prototype.eachChild=function(oe,ae){for(var ie=this._children,le=0;le<ie.length;le++){var pe=ie[le];oe.call(ae,pe,le)}return this},z.prototype.traverse=function(oe,ae){for(var ie=0;ie<this._children.length;ie++){var le=this._children[ie],pe=oe.call(ae,le);le.isGroup&&!pe&&le.traverse(oe,ae)}return this},z.prototype.addSelfToZr=function(oe){$.prototype.addSelfToZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++){var ie=this._children[ae];ie.addSelfToZr(oe)}},z.prototype.removeSelfFromZr=function(oe){$.prototype.removeSelfFromZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++){var ie=this._children[ae];ie.removeSelfFromZr(oe)}},z.prototype.getBoundingRect=function(oe){for(var ae=new BoundingRect$1(0,0,0,0),ie=oe||this._children,le=[],pe=null,_e=0;_e<ie.length;_e++){var Ce=ie[_e];if(!(Ce.ignore||Ce.invisible)){var $e=Ce.getBoundingRect(),xe=Ce.getLocalTransform(le);xe?(BoundingRect$1.applyTransform(ae,$e,xe),pe=pe||ae.clone(),pe.union(ae)):(pe=pe||$e.clone(),pe.union($e))}}return pe||ae},z}(Element$2);Group$2.prototype.type="group";const Group$3=Group$2;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var painterCtors={},instances$1={};function delInstance($){delete instances$1[$]}function isDarkMode($){if(!$)return!1;if(typeof $=="string")return lum($,1)<DARK_MODE_THRESHOLD;if($.colorStops){for(var z=$.colorStops,oe=0,ae=z.length,ie=0;ie<ae;ie++)oe+=lum(z[ie].color,1);return oe/=ae,oe<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function $(z,oe,ae){var ie=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,ae=ae||{},this.dom=oe,this.id=z;var le=new Storage$1,pe=ae.renderer||"canvas";painterCtors[pe]||(pe=keys(painterCtors)[0]),ae.useDirtyRect=ae.useDirtyRect==null?!1:ae.useDirtyRect;var _e=new painterCtors[pe](oe,le,ae,z),Ce=ae.ssr||_e.ssrOnly;this.storage=le,this.painter=_e;var $e=!env$1.node&&!env$1.worker&&!Ce?new HandlerProxy(_e.getViewportRoot(),_e.root):null,xe=ae.useCoarsePointer,Ie=xe==null||xe==="auto"?env$1.touchEventsSupported:!!xe,Ne=44,Fe;Ie&&(Fe=retrieve2(ae.pointerSize,Ne)),this.handler=new Handler$1(le,_e,$e,_e.root,Fe),this.animation=new Animation$1({stage:{update:Ce?null:function(){return ie._flush(!0)}}}),Ce||this.animation.start()}return $.prototype.add=function(z){z&&(this.storage.addRoot(z),z.addSelfToZr(this),this.refresh())},$.prototype.remove=function(z){z&&(this.storage.delRoot(z),z.removeSelfFromZr(this),this.refresh())},$.prototype.configLayer=function(z,oe){this.painter.configLayer&&this.painter.configLayer(z,oe),this.refresh()},$.prototype.setBackgroundColor=function(z){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(z),this.refresh(),this._backgroundColor=z,this._darkMode=isDarkMode(z)},$.prototype.getBackgroundColor=function(){return this._backgroundColor},$.prototype.setDarkMode=function(z){this._darkMode=z},$.prototype.isDarkMode=function(){return this._darkMode},$.prototype.refreshImmediately=function(z){z||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},$.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},$.prototype.flush=function(){this._flush(!1)},$.prototype._flush=function(z){var oe,ae=getTime();this._needsRefresh&&(oe=!0,this.refreshImmediately(z)),this._needsRefreshHover&&(oe=!0,this.refreshHoverImmediately());var ie=getTime();oe?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:ie-ae})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},$.prototype.setSleepAfterStill=function(z){this._sleepAfterStill=z},$.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},$.prototype.refreshHover=function(){this._needsRefreshHover=!0},$.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},$.prototype.resize=function(z){z=z||{},this.painter.resize(z.width,z.height),this.handler.resize()},$.prototype.clearAnimation=function(){this.animation.clear()},$.prototype.getWidth=function(){return this.painter.getWidth()},$.prototype.getHeight=function(){return this.painter.getHeight()},$.prototype.setCursorStyle=function(z){this.handler.setCursorStyle(z)},$.prototype.findHover=function(z,oe){return this.handler.findHover(z,oe)},$.prototype.on=function(z,oe,ae){return this.handler.on(z,oe,ae),this},$.prototype.off=function(z,oe){this.handler.off(z,oe)},$.prototype.trigger=function(z,oe){this.handler.trigger(z,oe)},$.prototype.clear=function(){for(var z=this.storage.getRoots(),oe=0;oe<z.length;oe++)z[oe]instanceof Group$3&&z[oe].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},$.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,delInstance(this.id)},$}();function init$1($,z){var oe=new ZRender(guid(),$,z);return instances$1[oe.id]=oe,oe}function dispose$1($){$.dispose()}function disposeAll(){for(var $ in instances$1)instances$1.hasOwnProperty($)&&instances$1[$].dispose();instances$1={}}function getInstance($){return instances$1[$]}function registerPainter($,z){painterCtors[$]=z}var version$1="5.4.3";const zrender=Object.freeze(Object.defineProperty({__proto__:null,dispose:dispose$1,disposeAll,getInstance,init:init$1,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"}));var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim($){return $.replace(/^\s+|\s+$/g,"")}function linearMap$2($,z,oe,ae){var ie=z[0],le=z[1],pe=oe[0],_e=oe[1],Ce=le-ie,$e=_e-pe;if(Ce===0)return $e===0?pe:(pe+_e)/2;if(ae)if(Ce>0){if($<=ie)return pe;if($>=le)return _e}else{if($>=ie)return pe;if($<=le)return _e}else{if($===ie)return pe;if($===le)return _e}return($-ie)/Ce*$e+pe}function parsePercent($,z){switch($){case"center":case"middle":$="50%";break;case"left":case"top":$="0%";break;case"right":case"bottom":$="100%";break}return isString($)?_trim($).match(/%$/)?parseFloat($)/100*z:parseFloat($):$==null?NaN:+$}function round$1($,z,oe){return z==null&&(z=10),z=Math.min(Math.max(0,z),ROUND_SUPPORTED_PRECISION_MAX),$=(+$).toFixed(z),oe?$:+$}function asc$2($){return $.sort(function(z,oe){return z-oe}),$}function getPrecision($){if($=+$,isNaN($))return 0;if($>1e-14){for(var z=1,oe=0;oe<15;oe++,z*=10)if(Math.round($*z)/z===$)return oe}return getPrecisionSafe($)}function getPrecisionSafe($){var z=$.toString().toLowerCase(),oe=z.indexOf("e"),ae=oe>0?+z.slice(oe+1):0,ie=oe>0?oe:z.length,le=z.indexOf("."),pe=le<0?0:ie-1-le;return Math.max(0,pe-ae)}function getPixelPrecision($,z){var oe=Math.log,ae=Math.LN10,ie=Math.floor(oe($[1]-$[0])/ae),le=Math.round(oe(Math.abs(z[1]-z[0]))/ae),pe=Math.min(Math.max(-ie+le,0),20);return isFinite(pe)?pe:20}function getPercentWithPrecision($,z,oe){if(!$[z])return 0;var ae=getPercentSeats($,oe);return ae[z]||0}function getPercentSeats($,z){var oe=reduce($,function(Fe,ze){return Fe+(isNaN(ze)?0:ze)},0);if(oe===0)return[];for(var ae=Math.pow(10,z),ie=map$2($,function(Fe){return(isNaN(Fe)?0:Fe)/oe*ae*100}),le=ae*100,pe=map$2(ie,function(Fe){return Math.floor(Fe)}),_e=reduce(pe,function(Fe,ze){return Fe+ze},0),Ce=map$2(ie,function(Fe,ze){return Fe-pe[ze]});_e<le;){for(var $e=Number.NEGATIVE_INFINITY,xe=null,Ie=0,Ne=Ce.length;Ie<Ne;++Ie)Ce[Ie]>$e&&($e=Ce[Ie],xe=Ie);++pe[xe],Ce[xe]=0,++_e}return map$2(pe,function(Fe){return Fe/ae})}function addSafe($,z){var oe=Math.max(getPrecision($),getPrecision(z)),ae=$+z;return oe>ROUND_SUPPORTED_PRECISION_MAX?ae:round$1(ae,oe)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian($){var z=Math.PI*2;return($%z+z)%z}function isRadianAroundZero($){return $>-RADIAN_EPSILON&&$<RADIAN_EPSILON}var TIME_REG=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function parseDate($){if($ instanceof Date)return $;if(isString($)){var z=TIME_REG.exec($);if(!z)return new Date(NaN);if(z[8]){var oe=+z[4]||0;return z[8].toUpperCase()!=="Z"&&(oe-=+z[8].slice(0,3)),new Date(Date.UTC(+z[1],+(z[2]||1)-1,+z[3]||1,oe,+(z[5]||0),+z[6]||0,z[7]?+z[7].substring(0,3):0))}else return new Date(+z[1],+(z[2]||1)-1,+z[3]||1,+z[4]||0,+(z[5]||0),+z[6]||0,z[7]?+z[7].substring(0,3):0)}else if($==null)return new Date(NaN);return new Date(Math.round($))}function quantity($){return Math.pow(10,quantityExponent($))}function quantityExponent($){if($===0)return 0;var z=Math.floor(Math.log($)/Math.LN10);return $/Math.pow(10,z)>=10&&z++,z}function nice($,z){var oe=quantityExponent($),ae=Math.pow(10,oe),ie=$/ae,le;return z?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,$=le*ae,oe>=-20?+$.toFixed(oe<0?-oe:0):$}function quantile($,z){var oe=($.length-1)*z+1,ae=Math.floor(oe),ie=+$[ae-1],le=oe-ae;return le?ie+le*($[ae]-ie):ie}function reformIntervals($){$.sort(function(Ce,$e){return _e(Ce,$e,0)?-1:1});for(var z=-1/0,oe=1,ae=0;ae<$.length;){for(var ie=$[ae].interval,le=$[ae].close,pe=0;pe<2;pe++)ie[pe]<=z&&(ie[pe]=z,le[pe]=pe?1:1-oe),z=ie[pe],oe=le[pe];ie[0]===ie[1]&&le[0]*le[1]!==1?$.splice(ae,1):ae++}return $;function _e(Ce,$e,xe){return Ce.interval[xe]<$e.interval[xe]||Ce.interval[xe]===$e.interval[xe]&&(Ce.close[xe]-$e.close[xe]===(xe?-1:1)||!xe&&_e(Ce,$e,1))}}function numericToNumber($){var z=parseFloat($);return z==$&&(z!==0||!isString($)||$.indexOf("x")<=0)?z:NaN}function isNumeric($){return!isNaN(numericToNumber($))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor($,z){return z===0?$:getGreatestCommonDividor(z,$%z)}function getLeastCommonMultiple($,z){return $==null?z:z==null?$:$*z/getGreatestCommonDividor($,z)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console<"u"&&console.warn&&console.log;function outputLog($,z,oe){if(hasConsole){if(oe){if(storedLogs[z])return;storedLogs[z]=!0}console[$](ECHARTS_PREFIX+z)}}function warn($,z){outputLog("warn",$,z)}function throwError($){throw new Error($)}function interpolateNumber($,z,oe){return(z-$)*oe+$}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray($){return $ instanceof Array?$:$==null?[]:[$]}function defaultEmphasis($,z,oe){if($){$[z]=$[z]||{},$.emphasis=$.emphasis||{},$.emphasis[z]=$.emphasis[z]||{};for(var ae=0,ie=oe.length;ae<ie;ae++){var le=oe[ae];!$.emphasis[z].hasOwnProperty(le)&&$[z].hasOwnProperty(le)&&($.emphasis[z][le]=$[z][le])}}}var TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function getDataItemValue($){return isObject$3($)&&!isArray$1($)&&!($ instanceof Date)?$.value:$}function isDataItemOption($){return isObject$3($)&&!($ instanceof Array)}function mappingToExists($,z,oe){var ae=oe==="normalMerge",ie=oe==="replaceMerge",le=oe==="replaceAll";$=$||[],z=(z||[]).slice();var pe=createHashMap();each$c(z,function(Ce,$e){if(!isObject$3(Ce)){z[$e]=null;return}});var _e=prepareResult($,pe,oe);return(ae||ie)&&mappingById(_e,$,pe,z),ae&&mappingByName(_e,z),ae||ie?mappingByIndex(_e,z,ie):le&&mappingInReplaceAllMode(_e,z),makeIdAndName(_e),_e}function prepareResult($,z,oe){var ae=[];if(oe==="replaceAll")return ae;for(var ie=0;ie<$.length;ie++){var le=$[ie];le&&le.id!=null&&z.set(le.id,ie),ae.push({existing:oe==="replaceMerge"||isComponentIdInternal(le)?null:le,newOption:null,keyInfo:null,brandNew:null})}return ae}function mappingById($,z,oe,ae){each$c(ae,function(ie,le){if(!(!ie||ie.id==null)){var pe=makeComparableKey(ie.id),_e=oe.get(pe);if(_e!=null){var Ce=$[_e];assert(!Ce.newOption,'Duplicated option on id "'+pe+'".'),Ce.newOption=ie,Ce.existing=z[_e],ae[le]=null}}})}function mappingByName($,z){each$c(z,function(oe,ae){if(!(!oe||oe.name==null))for(var ie=0;ie<$.length;ie++){var le=$[ie].existing;if(!$[ie].newOption&&le&&(le.id==null||oe.id==null)&&!isComponentIdInternal(oe)&&!isComponentIdInternal(le)&&keyExistAndEqual("name",le,oe)){$[ie].newOption=oe,z[ae]=null;return}}})}function mappingByIndex($,z,oe){each$c(z,function(ae){if(ae){for(var ie,le=0;(ie=$[le])&&(ie.newOption||isComponentIdInternal(ie.existing)||ie.existing&&ae.id!=null&&!keyExistAndEqual("id",ae,ie.existing));)le++;ie?(ie.newOption=ae,ie.brandNew=oe):$.push({newOption:ae,brandNew:oe,existing:null,keyInfo:null}),le++}})}function mappingInReplaceAllMode($,z){each$c(z,function(oe){$.push({newOption:oe,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName($){var z=createHashMap();each$c($,function(oe){var ae=oe.existing;ae&&z.set(ae.id,oe)}),each$c($,function(oe){var ae=oe.newOption;assert(!ae||ae.id==null||!z.get(ae.id)||z.get(ae.id)===oe,"id duplicates: "+(ae&&ae.id)),ae&&ae.id!=null&&z.set(ae.id,oe),!oe.keyInfo&&(oe.keyInfo={})}),each$c($,function(oe,ae){var ie=oe.existing,le=oe.newOption,pe=oe.keyInfo;if(isObject$3(le)){if(pe.name=le.name!=null?makeComparableKey(le.name):ie?ie.name:DUMMY_COMPONENT_NAME_PREFIX+ae,ie)pe.id=makeComparableKey(ie.id);else if(le.id!=null)pe.id=makeComparableKey(le.id);else{var _e=0;do pe.id="\0"+pe.name+"\0"+_e++;while(z.get(pe.id))}z.set(pe.id,oe)}})}function keyExistAndEqual($,z,oe){var ae=convertOptionIdName(z[$],null),ie=convertOptionIdName(oe[$],null);return ae!=null&&ie!=null&&ae===ie}function makeComparableKey($){return convertOptionIdName($,"")}function convertOptionIdName($,z){return $==null?z:isString($)?$:isNumber($)||isStringSafe($)?$+"":z}function isNameSpecified($){var z=$.name;return!!(z&&z.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal($){return $&&$.id!=null&&makeComparableKey($.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId($){return INTERNAL_COMPONENT_ID_PREFIX+$}function setComponentTypeToKeyInfo($,z,oe){each$c($,function(ae){var ie=ae.newOption;isObject$3(ie)&&(ae.keyInfo.mainType=z,ae.keyInfo.subType=determineSubType(z,ie,ae.existing,oe))})}function determineSubType($,z,oe,ae){var ie=z.type?z.type:oe?oe.subType:ae.determineSubType($,z);return ie}function compressBatches($,z){var oe={},ae={};return ie($||[],oe),ie(z||[],ae,oe),[le(oe),le(ae)];function ie(pe,_e,Ce){for(var $e=0,xe=pe.length;$e<xe;$e++){var Ie=convertOptionIdName(pe[$e].seriesId,null);if(Ie==null)return;for(var Ne=normalizeToArray(pe[$e].dataIndex),Fe=Ce&&Ce[Ie],ze=0,At=Ne.length;ze<At;ze++){var Lt=Ne[ze];Fe&&Fe[Lt]?Fe[Lt]=null:(_e[Ie]||(_e[Ie]={}))[Lt]=1}}}function le(pe,_e){var Ce=[];for(var $e in pe)if(pe.hasOwnProperty($e)&&pe[$e]!=null)if(_e)Ce.push(+$e);else{var xe=le(pe[$e],!0);xe.length&&Ce.push({seriesId:$e,dataIndex:xe})}return Ce}}function queryDataIndex($,z){if(z.dataIndexInside!=null)return z.dataIndexInside;if(z.dataIndex!=null)return isArray$1(z.dataIndex)?map$2(z.dataIndex,function(oe){return $.indexOfRawIndex(oe)}):$.indexOfRawIndex(z.dataIndex);if(z.name!=null)return isArray$1(z.name)?map$2(z.name,function(oe){return $.indexOfName(oe)}):$.indexOfName(z.name)}function makeInner(){var $="__ec_inner_"+innerUniqueIndex++;return function(z){return z[$]||(z[$]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1($,z,oe){var ae=preParseFinder(z,oe),ie=ae.mainTypeSpecified,le=ae.queryOptionMap,pe=ae.others,_e=pe,Ce=oe?oe.defaultMainType:null;return!ie&&Ce&&le.set(Ce,{}),le.each(function($e,xe){var Ie=queryReferringComponents($,xe,$e,{useDefault:Ce===xe,enableAll:oe&&oe.enableAll!=null?oe.enableAll:!0,enableNone:oe&&oe.enableNone!=null?oe.enableNone:!0});_e[xe+"Models"]=Ie.models,_e[xe+"Model"]=Ie.models[0]}),_e}function preParseFinder($,z){var oe;if(isString($)){var ae={};ae[$+"Index"]=0,oe=ae}else oe=$;var ie=createHashMap(),le={},pe=!1;return each$c(oe,function(_e,Ce){if(Ce==="dataIndex"||Ce==="dataIndexInside"){le[Ce]=_e;return}var $e=Ce.match(/^(\w+)(Index|Id|Name)$/)||[],xe=$e[1],Ie=($e[2]||"").toLowerCase();if(!(!xe||!Ie||z&&z.includeMainTypes&&indexOf(z.includeMainTypes,xe)<0)){pe=pe||!!xe;var Ne=ie.get(xe)||ie.set(xe,{});Ne[Ie]=_e}}),{mainTypeSpecified:pe,queryOptionMap:ie,others:le}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents($,z,oe,ae){ae=ae||SINGLE_REFERRING;var ie=oe.index,le=oe.id,pe=oe.name,_e={models:null,specified:ie!=null||le!=null||pe!=null};if(!_e.specified){var Ce=void 0;return _e.models=ae.useDefault&&(Ce=$.getComponent(z))?[Ce]:[],_e}return ie==="none"||ie===!1?(assert(ae.enableNone,'`"none"` or `false` is not a valid value on index option.'),_e.models=[],_e):(ie==="all"&&(assert(ae.enableAll,'`"all"` is not a valid value on index option.'),ie=le=pe=null),_e.models=$.queryComponents({mainType:z,index:ie,id:le,name:pe}),_e)}function setAttribute($,z,oe){$.setAttribute?$.setAttribute(z,oe):$[z]=oe}function getAttribute($,z){return $.getAttribute?$.getAttribute(z):$[z]}function getTooltipRenderMode($){return $==="auto"?env$1.domSupported?"html":"richText":$||"html"}function interpolateRawValues($,z,oe,ae,ie){var le=z==null||z==="auto";if(ae==null)return ae;if(isNumber(ae)){var pe=interpolateNumber(oe||0,ae,ie);return round$1(pe,le?Math.max(getPrecision(oe||0),getPrecision(ae)):z)}else{if(isString(ae))return ie<1?oe:ae;for(var _e=[],Ce=oe,$e=ae,xe=Math.max(Ce?Ce.length:0,$e.length),Ie=0;Ie<xe;++Ie){var Ne=$.getDimensionInfo(Ie);if(Ne&&Ne.type==="ordinal")_e[Ie]=(ie<1&&Ce?Ce:$e)[Ie];else{var Fe=Ce&&Ce[Ie]?Ce[Ie]:0,ze=$e[Ie],pe=interpolateNumber(Fe,ze,ie);_e[Ie]=round$1(pe,le?Math.max(getPrecision(Fe),getPrecision(ze)):z)}}return _e}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType($){var z={main:"",sub:""};if($){var oe=$.split(TYPE_DELIMITER);z.main=oe[0]||"",z.sub=oe[1]||""}return z}function checkClassType($){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test($),'componentType "'+$+'" illegal')}function isExtendedClass($){return!!($&&$[IS_EXTENDED_CLASS])}function enableClassExtend($,z){$.$constructor=$,$.extend=function(oe){var ae=this,ie;return isESClass(ae)?ie=function(le){__extends(pe,le);function pe(){return le.apply(this,arguments)||this}return pe}(ae):(ie=function(){(oe.$constructor||ae).apply(this,arguments)},inherits(ie,this)),extend(ie.prototype,oe),ie[IS_EXTENDED_CLASS]=!0,ie.extend=this.extend,ie.superCall=superCall,ie.superApply=superApply,ie.superClass=ae,ie}}function isESClass($){return isFunction($)&&/^class\s/.test(Function.prototype.toString.call($))}function mountExtend($,z){$.extend=z.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck($){var z=["__\0is_clz",classBase++].join("_");$.prototype[z]=!0,$.isInstance=function(oe){return!!(oe&&oe[z])}}function superCall($,z){for(var oe=[],ae=2;ae<arguments.length;ae++)oe[ae-2]=arguments[ae];return this.superClass.prototype[z].apply($,oe)}function superApply($,z,oe){return this.superClass.prototype[z].apply($,oe)}function enableClassManagement($){var z={};$.registerClass=function(ae){var ie=ae.type||ae.prototype.type;if(ie){checkClassType(ie),ae.prototype.type=ie;var le=parseClassType(ie);if(!le.sub)z[le.main]=ae;else if(le.sub!==IS_CONTAINER){var pe=oe(le);pe[le.sub]=ae}}return ae},$.getClass=function(ae,ie,le){var pe=z[ae];if(pe&&pe[IS_CONTAINER]&&(pe=ie?pe[ie]:null),le&&!pe)throw new Error(ie?"Component "+ae+"."+(ie||"")+" is used but not imported.":ae+".type should be specified.");return pe},$.getClassesByMainType=function(ae){var ie=parseClassType(ae),le=[],pe=z[ie.main];return pe&&pe[IS_CONTAINER]?each$c(pe,function(_e,Ce){Ce!==IS_CONTAINER&&le.push(_e)}):le.push(pe),le},$.hasClass=function(ae){var ie=parseClassType(ae);return!!z[ie.main]},$.getAllClassMainTypes=function(){var ae=[];return each$c(z,function(ie,le){ae.push(le)}),ae},$.hasSubTypes=function(ae){var ie=parseClassType(ae),le=z[ie.main];return le&&le[IS_CONTAINER]};function oe(ae){var ie=z[ae.main];return(!ie||!ie[IS_CONTAINER])&&(ie=z[ae.main]={},ie[IS_CONTAINER]=!0),ie}}function makeStyleMapper($,z){for(var oe=0;oe<$.length;oe++)$[oe][1]||($[oe][1]=$[oe][0]);return z=z||!1,function(ae,ie,le){for(var pe={},_e=0;_e<$.length;_e++){var Ce=$[_e][1];if(!(ie&&indexOf(ie,Ce)>=0||le&&indexOf(le,Ce)<0)){var $e=ae.getShallow(Ce,z);$e!=null&&(pe[$[_e][0]]=$e)}}return pe}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function $(){}return $.prototype.getAreaStyle=function(z,oe){return getAreaStyle(this,z,oe)},$}(),globalImageCache=new LRU$1(50);function findExistImage($){if(typeof $=="string"){var z=globalImageCache.get($);return z&&z.image}else return $}function createOrUpdateImage($,z,oe,ae,ie){if($)if(typeof $=="string"){if(z&&z.__zrImageSrc===$||!oe)return z;var le=globalImageCache.get($),pe={hostEl:oe,cb:ae,cbPayload:ie};return le?(z=le.image,!isImageReady(z)&&le.pending.push(pe)):(z=platformApi.loadImage($,imageOnLoad,imageOnLoad),z.__zrImageSrc=$,globalImageCache.put($,z.__cachedImgObj={image:z,pending:[pe]})),z}else return $;else return z}function imageOnLoad(){var $=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var z=0;z<$.pending.length;z++){var oe=$.pending[z],ae=oe.cb;ae&&ae(this,oe.cbPayload),oe.hostEl.dirty()}$.pending.length=0}function isImageReady($){return $&&$.width&&$.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText($,z,oe,ae,ie){if(!z)return"";var le=($+"").split(`
|
||
`);ie=prepareTruncateOptions(z,oe,ae,ie);for(var pe=0,_e=le.length;pe<_e;pe++)le[pe]=truncateSingleLine(le[pe],ie);return le.join(`
|
||
`)}function prepareTruncateOptions($,z,oe,ae){ae=ae||{};var ie=extend({},ae);ie.font=z,oe=retrieve2(oe,"..."),ie.maxIterations=retrieve2(ae.maxIterations,2);var le=ie.minChar=retrieve2(ae.minChar,0);ie.cnCharWidth=getWidth("国",z);var pe=ie.ascCharWidth=getWidth("a",z);ie.placeholder=retrieve2(ae.placeholder,"");for(var _e=$=Math.max(0,$-1),Ce=0;Ce<le&&_e>=pe;Ce++)_e-=pe;var $e=getWidth(oe,z);return $e>_e&&(oe="",$e=0),_e=$-$e,ie.ellipsis=oe,ie.ellipsisWidth=$e,ie.contentWidth=_e,ie.containerWidth=$,ie}function truncateSingleLine($,z){var oe=z.containerWidth,ae=z.font,ie=z.contentWidth;if(!oe)return"";var le=getWidth($,ae);if(le<=oe)return $;for(var pe=0;;pe++){if(le<=ie||pe>=z.maxIterations){$+=z.ellipsis;break}var _e=pe===0?estimateLength($,ie,z.ascCharWidth,z.cnCharWidth):le>0?Math.floor($.length*ie/le):0;$=$.substr(0,_e),le=getWidth($,ae)}return $===""&&($=z.placeholder),$}function estimateLength($,z,oe,ae){for(var ie=0,le=0,pe=$.length;le<pe&&ie<z;le++){var _e=$.charCodeAt(le);ie+=0<=_e&&_e<=127?oe:ae}return le}function parsePlainText($,z){$!=null&&($+="");var oe=z.overflow,ae=z.padding,ie=z.font,le=oe==="truncate",pe=getLineHeight(ie),_e=retrieve2(z.lineHeight,pe),Ce=!!z.backgroundColor,$e=z.lineOverflow==="truncate",xe=z.width,Ie;xe!=null&&(oe==="break"||oe==="breakAll")?Ie=$?wrapText($,z.font,xe,oe==="breakAll",0).lines:[]:Ie=$?$.split(`
|
||
`):[];var Ne=Ie.length*_e,Fe=retrieve2(z.height,Ne);if(Ne>Fe&&$e){var ze=Math.floor(Fe/_e);Ie=Ie.slice(0,ze)}if($&&le&&xe!=null)for(var At=prepareTruncateOptions(xe,ie,z.ellipsis,{minChar:z.truncateMinChar,placeholder:z.placeholder}),Lt=0;Lt<Ie.length;Lt++)Ie[Lt]=truncateSingleLine(Ie[Lt],At);for(var hn=Fe,vn=0,Lt=0;Lt<Ie.length;Lt++)vn=Math.max(getWidth(Ie[Lt],ie),vn);xe==null&&(xe=vn);var _n=vn;return ae&&(hn+=ae[0]+ae[2],_n+=ae[1]+ae[3],xe+=ae[1]+ae[3]),Ce&&(_n=xe),{lines:Ie,height:Fe,outerWidth:_n,outerHeight:hn,lineHeight:_e,calculatedLineHeight:pe,contentWidth:vn,contentHeight:Ne,width:xe}}var RichTextToken=function(){function $(){}return $}(),RichTextLine=function(){function $(z){this.tokens=[],z&&(this.tokens=z)}return $}(),RichTextContentBlock=function(){function $(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return $}();function parseRichText($,z){var oe=new RichTextContentBlock;if($!=null&&($+=""),!$)return oe;for(var ae=z.width,ie=z.height,le=z.overflow,pe=(le==="break"||le==="breakAll")&&ae!=null?{width:ae,accumWidth:0,breakAll:le==="breakAll"}:null,_e=STYLE_REG.lastIndex=0,Ce;(Ce=STYLE_REG.exec($))!=null;){var $e=Ce.index;$e>_e&&pushTokens(oe,$.substring(_e,$e),z,pe),pushTokens(oe,Ce[2],z,pe,Ce[1]),_e=STYLE_REG.lastIndex}_e<$.length&&pushTokens(oe,$.substring(_e,$.length),z,pe);var xe=[],Ie=0,Ne=0,Fe=z.padding,ze=le==="truncate",At=z.lineOverflow==="truncate";function Lt(Vn,Bn,zn){Vn.width=Bn,Vn.lineHeight=zn,Ie+=zn,Ne=Math.max(Ne,Bn)}e:for(var hn=0;hn<oe.lines.length;hn++){for(var vn=oe.lines[hn],_n=0,bn=0,Cn=0;Cn<vn.tokens.length;Cn++){var En=vn.tokens[Cn],$n=En.styleName&&z.rich[En.styleName]||{},wn=En.textPadding=$n.padding,Tn=wn?wn[1]+wn[3]:0,xn=En.font=$n.font||z.font;En.contentHeight=getLineHeight(xn);var kn=retrieve2($n.height,En.contentHeight);if(En.innerHeight=kn,wn&&(kn+=wn[0]+wn[2]),En.height=kn,En.lineHeight=retrieve3($n.lineHeight,z.lineHeight,kn),En.align=$n&&$n.align||z.align,En.verticalAlign=$n&&$n.verticalAlign||"middle",At&&ie!=null&&Ie+En.lineHeight>ie){Cn>0?(vn.tokens=vn.tokens.slice(0,Cn),Lt(vn,bn,_n),oe.lines=oe.lines.slice(0,hn+1)):oe.lines=oe.lines.slice(0,hn);break e}var An=$n.width,On=An==null||An==="auto";if(typeof An=="string"&&An.charAt(An.length-1)==="%")En.percentWidth=An,xe.push(En),En.contentWidth=getWidth(En.text,xn);else{if(On){var Mn=$n.backgroundColor,Fn=Mn&&Mn.image;Fn&&(Fn=findExistImage(Fn),isImageReady(Fn)&&(En.width=Math.max(En.width,Fn.width*kn/Fn.height)))}var Dn=ze&&ae!=null?ae-bn:null;Dn!=null&&Dn<En.width?!On||Dn<Tn?(En.text="",En.width=En.contentWidth=0):(En.text=truncateText(En.text,Dn-Tn,xn,z.ellipsis,{minChar:z.truncateMinChar}),En.width=En.contentWidth=getWidth(En.text,xn)):En.contentWidth=getWidth(En.text,xn)}En.width+=Tn,bn+=En.width,$n&&(_n=Math.max(_n,En.lineHeight))}Lt(vn,bn,_n)}oe.outerWidth=oe.width=retrieve2(ae,Ne),oe.outerHeight=oe.height=retrieve2(ie,Ie),oe.contentHeight=Ie,oe.contentWidth=Ne,Fe&&(oe.outerWidth+=Fe[1]+Fe[3],oe.outerHeight+=Fe[0]+Fe[2]);for(var hn=0;hn<xe.length;hn++){var En=xe[hn],Nn=En.percentWidth;En.width=parseInt(Nn,10)/100*oe.width}return oe}function pushTokens($,z,oe,ae,ie){var le=z==="",pe=ie&&oe.rich[ie]||{},_e=$.lines,Ce=pe.font||oe.font,$e=!1,xe,Ie;if(ae){var Ne=pe.padding,Fe=Ne?Ne[1]+Ne[3]:0;if(pe.width!=null&&pe.width!=="auto"){var ze=parsePercent$1(pe.width,ae.width)+Fe;_e.length>0&&ze+ae.accumWidth>ae.width&&(xe=z.split(`
|
||
`),$e=!0),ae.accumWidth=ze}else{var At=wrapText(z,Ce,ae.width,ae.breakAll,ae.accumWidth);ae.accumWidth=At.accumWidth+Fe,Ie=At.linesWidths,xe=At.lines}}else xe=z.split(`
|
||
`);for(var Lt=0;Lt<xe.length;Lt++){var hn=xe[Lt],vn=new RichTextToken;if(vn.styleName=ie,vn.text=hn,vn.isLineHolder=!hn&&!le,typeof pe.width=="number"?vn.width=pe.width:vn.width=Ie?Ie[Lt]:getWidth(hn,Ce),!Lt&&!$e){var _n=(_e[_e.length-1]||(_e[0]=new RichTextLine)).tokens,bn=_n.length;bn===1&&_n[0].isLineHolder?_n[0]=vn:(hn||!bn||le)&&_n.push(vn)}else _e.push(new RichTextLine([vn]))}}function isAlphabeticLetter($){var z=$.charCodeAt(0);return z>=32&&z<=591||z>=880&&z<=4351||z>=4608&&z<=5119||z>=7680&&z<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function($,z){return $[z]=!0,$},{});function isWordBreakChar($){return isAlphabeticLetter($)?!!breakCharMap[$]:!0}function wrapText($,z,oe,ae,ie){for(var le=[],pe=[],_e="",Ce="",$e=0,xe=0,Ie=0;Ie<$.length;Ie++){var Ne=$.charAt(Ie);if(Ne===`
|
||
`){Ce&&(_e+=Ce,xe+=$e),le.push(_e),pe.push(xe),_e="",Ce="",$e=0,xe=0;continue}var Fe=getWidth(Ne,z),ze=ae?!1:!isWordBreakChar(Ne);if(le.length?xe+Fe>oe:ie+xe+Fe>oe){xe?(_e||Ce)&&(ze?(_e||(_e=Ce,Ce="",$e=0,xe=$e),le.push(_e),pe.push(xe-$e),Ce+=Ne,$e+=Fe,_e="",xe=$e):(Ce&&(_e+=Ce,Ce="",$e=0),le.push(_e),pe.push(xe),_e=Ne,xe=Fe)):ze?(le.push(Ce),pe.push($e),Ce=Ne,$e=Fe):(le.push(Ne),pe.push(Fe));continue}xe+=Fe,ze?(Ce+=Ne,$e+=Fe):(Ce&&(_e+=Ce,Ce="",$e=0),_e+=Ne)}return!le.length&&!_e&&(_e=$,Ce="",$e=0),Ce&&(_e+=Ce),_e&&(le.push(_e),pe.push(xe)),le.length===1&&(xe+=ie),{accumWidth:xe,lines:le,linesWidths:pe}}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($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype._init=function(oe){for(var ae=keys(oe),ie=0;ie<ae.length;ie++){var le=ae[ie];le==="style"?this.useStyle(oe[le]):$.prototype.attrKV.call(this,le,oe[le])}this.style||this.useStyle({})},z.prototype.beforeBrush=function(){},z.prototype.afterBrush=function(){},z.prototype.innerBeforeBrush=function(){},z.prototype.innerAfterBrush=function(){},z.prototype.shouldBePainted=function(oe,ae,ie,le){var pe=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,oe,ae)||pe&&!pe[0]&&!pe[3])return!1;if(ie&&this.__clipPaths){for(var _e=0;_e<this.__clipPaths.length;++_e)if(this.__clipPaths[_e].isZeroArea())return!1}if(le&&this.parent)for(var Ce=this.parent;Ce;){if(Ce.ignore)return!1;Ce=Ce.parent}return!0},z.prototype.contain=function(oe,ae){return this.rectContain(oe,ae)},z.prototype.traverse=function(oe,ae){oe.call(ae,this)},z.prototype.rectContain=function(oe,ae){var ie=this.transformCoordToLocal(oe,ae),le=this.getBoundingRect();return le.contain(ie[0],ie[1])},z.prototype.getPaintRect=function(){var oe=this._paintRect;if(!this._paintRect||this.__dirty){var ae=this.transform,ie=this.getBoundingRect(),le=this.style,pe=le.shadowBlur||0,_e=le.shadowOffsetX||0,Ce=le.shadowOffsetY||0;oe=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),ae?BoundingRect$1.applyTransform(oe,ie,ae):oe.copy(ie),(pe||_e||Ce)&&(oe.width+=pe*2+Math.abs(_e),oe.height+=pe*2+Math.abs(Ce),oe.x=Math.min(oe.x,oe.x+_e-pe),oe.y=Math.min(oe.y,oe.y+Ce-pe));var $e=this.dirtyRectTolerance;oe.isZero()||(oe.x=Math.floor(oe.x-$e),oe.y=Math.floor(oe.y-$e),oe.width=Math.ceil(oe.width+1+$e*2),oe.height=Math.ceil(oe.height+1+$e*2))}return oe},z.prototype.setPrevPaintRect=function(oe){oe?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(oe)):this._prevPaintRect=null},z.prototype.getPrevPaintRect=function(){return this._prevPaintRect},z.prototype.animateStyle=function(oe){return this.animate("style",oe)},z.prototype.updateDuringAnimation=function(oe){oe==="style"?this.dirtyStyle():this.markRedraw()},z.prototype.attrKV=function(oe,ae){oe!=="style"?$.prototype.attrKV.call(this,oe,ae):this.style?this.setStyle(ae):this.useStyle(ae)},z.prototype.setStyle=function(oe,ae){return typeof oe=="string"?this.style[oe]=ae:extend(this.style,oe),this.dirtyStyle(),this},z.prototype.dirtyStyle=function(oe){oe||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},z.prototype.dirty=function(){this.dirtyStyle()},z.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},z.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},z.prototype.createStyle=function(oe){return createObject(DEFAULT_COMMON_STYLE,oe)},z.prototype.useStyle=function(oe){oe[STYLE_MAGIC_KEY]||(oe=this.createStyle(oe)),this.__inHover?this.__hoverStyle=oe:this.style=oe,this.dirtyStyle()},z.prototype.isStyleObject=function(oe){return oe[STYLE_MAGIC_KEY]},z.prototype._innerSaveToNormal=function(oe){$.prototype._innerSaveToNormal.call(this,oe);var ae=this._normalState;oe.style&&!ae.style&&(ae.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(oe,ae,PRIMARY_STATES_KEYS)},z.prototype._applyStateObj=function(oe,ae,ie,le,pe,_e){$.prototype._applyStateObj.call(this,oe,ae,ie,le,pe,_e);var Ce=!(ae&&le),$e;if(ae&&ae.style?pe?le?$e=ae.style:($e=this._mergeStyle(this.createStyle(),ie.style),this._mergeStyle($e,ae.style)):($e=this._mergeStyle(this.createStyle(),le?this.style:ie.style),this._mergeStyle($e,ae.style)):Ce&&($e=ie.style),$e)if(pe){var xe=this.style;if(this.style=this.createStyle(Ce?{}:xe),Ce)for(var Ie=keys(xe),Ne=0;Ne<Ie.length;Ne++){var Fe=Ie[Ne];Fe in $e&&($e[Fe]=$e[Fe],this.style[Fe]=xe[Fe])}for(var ze=keys($e),Ne=0;Ne<ze.length;Ne++){var Fe=ze[Ne];this.style[Fe]=this.style[Fe]}this._transitionState(oe,{style:$e},_e,this.getAnimationStyleProps())}else this.useStyle($e);for(var At=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,Ne=0;Ne<At.length;Ne++){var Fe=At[Ne];ae&&ae[Fe]!=null?this[Fe]=ae[Fe]:Ce&&ie[Fe]!=null&&(this[Fe]=ie[Fe])}},z.prototype._mergeStates=function(oe){for(var ae=$.prototype._mergeStates.call(this,oe),ie,le=0;le<oe.length;le++){var pe=oe[le];pe.style&&(ie=ie||{},this._mergeStyle(ie,pe.style))}return ie&&(ae.style=ie),ae},z.prototype._mergeStyle=function(oe,ae){return extend(oe,ae),oe},z.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},z.initDefaultProps=function(){var oe=z.prototype;oe.type="displayable",oe.invisible=!1,oe.z=0,oe.z2=0,oe.zlevel=0,oe.culling=!1,oe.cursor="pointer",oe.rectHover=!1,oe.incremental=!1,oe._rect=null,oe.dirtyRectTolerance=0,oe.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),z}(Element$2),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled($,z,oe){return tmpRect.copy($.getBoundingRect()),$.transform&&tmpRect.applyTransform($.transform),viewRect.width=z,viewRect.height=oe,!tmpRect.intersect(viewRect)}const Displayable$1=Displayable;var mathMin$7=Math.min,mathMax$7=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$6=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine($,z,oe,ae,ie,le){ie[0]=mathMin$7($,oe),ie[1]=mathMin$7(z,ae),le[0]=mathMax$7($,oe),le[1]=mathMax$7(z,ae)}var xDim=[],yDim=[];function fromCubic($,z,oe,ae,ie,le,pe,_e,Ce,$e){var xe=cubicExtrema,Ie=cubicAt,Ne=xe($,oe,ie,pe,xDim);Ce[0]=1/0,Ce[1]=1/0,$e[0]=-1/0,$e[1]=-1/0;for(var Fe=0;Fe<Ne;Fe++){var ze=Ie($,oe,ie,pe,xDim[Fe]);Ce[0]=mathMin$7(ze,Ce[0]),$e[0]=mathMax$7(ze,$e[0])}Ne=xe(z,ae,le,_e,yDim);for(var Fe=0;Fe<Ne;Fe++){var At=Ie(z,ae,le,_e,yDim[Fe]);Ce[1]=mathMin$7(At,Ce[1]),$e[1]=mathMax$7(At,$e[1])}Ce[0]=mathMin$7($,Ce[0]),$e[0]=mathMax$7($,$e[0]),Ce[0]=mathMin$7(pe,Ce[0]),$e[0]=mathMax$7(pe,$e[0]),Ce[1]=mathMin$7(z,Ce[1]),$e[1]=mathMax$7(z,$e[1]),Ce[1]=mathMin$7(_e,Ce[1]),$e[1]=mathMax$7(_e,$e[1])}function fromQuadratic($,z,oe,ae,ie,le,pe,_e){var Ce=quadraticExtremum,$e=quadraticAt,xe=mathMax$7(mathMin$7(Ce($,oe,ie),1),0),Ie=mathMax$7(mathMin$7(Ce(z,ae,le),1),0),Ne=$e($,oe,ie,xe),Fe=$e(z,ae,le,Ie);pe[0]=mathMin$7($,ie,Ne),pe[1]=mathMin$7(z,le,Fe),_e[0]=mathMax$7($,ie,Ne),_e[1]=mathMax$7(z,le,Fe)}function fromArc($,z,oe,ae,ie,le,pe,_e,Ce){var $e=min$1,xe=max$1,Ie=Math.abs(ie-le);if(Ie%PI2$6<1e-4&&Ie>1e-4){_e[0]=$-oe,_e[1]=z-ae,Ce[0]=$+oe,Ce[1]=z+ae;return}if(start[0]=mathCos$3(ie)*oe+$,start[1]=mathSin$3(ie)*ae+z,end[0]=mathCos$3(le)*oe+$,end[1]=mathSin$3(le)*ae+z,$e(_e,start,end),xe(Ce,start,end),ie=ie%PI2$6,ie<0&&(ie=ie+PI2$6),le=le%PI2$6,le<0&&(le=le+PI2$6),ie>le&&!pe?le+=PI2$6:ie<le&&pe&&(ie+=PI2$6),pe){var Ne=le;le=ie,ie=Ne}for(var Fe=0;Fe<le;Fe+=Math.PI/2)Fe>ie&&(extremity[0]=mathCos$3(Fe)*oe+$,extremity[1]=mathSin$3(Fe)*ae+z,$e(_e,extremity,_e),xe(Ce,extremity,Ce))}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($){var z=Math.round($/PI$4*1e8)/1e8;return z%2*PI$4}function normalizeArcAngles($,z){var oe=modPI2($[0]);oe<0&&(oe+=PI2$5);var ae=oe-$[0],ie=$[1];ie+=ae,!z&&ie-oe>=PI2$5?ie=oe+PI2$5:z&&oe-ie>=PI2$5?ie=oe-PI2$5:!z&&oe>ie?ie=oe+(PI2$5-modPI2(oe-ie)):z&&oe<ie&&(ie=oe-(PI2$5-modPI2(ie-oe))),$[0]=oe,$[1]=ie}var PathProxy=function(){function $(z){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,z&&(this._saveData=!1),this._saveData&&(this.data=[])}return $.prototype.increaseVersion=function(){this._version++},$.prototype.getVersion=function(){return this._version},$.prototype.setScale=function(z,oe,ae){ae=ae||0,ae>0&&(this._ux=mathAbs$1(ae/devicePixelRatio/z)||0,this._uy=mathAbs$1(ae/devicePixelRatio/oe)||0)},$.prototype.setDPR=function(z){this.dpr=z},$.prototype.setContext=function(z){this._ctx=z},$.prototype.getContext=function(){return this._ctx},$.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},$.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},$.prototype.moveTo=function(z,oe){return this._drawPendingPt(),this.addData(CMD$2.M,z,oe),this._ctx&&this._ctx.moveTo(z,oe),this._x0=z,this._y0=oe,this._xi=z,this._yi=oe,this},$.prototype.lineTo=function(z,oe){var ae=mathAbs$1(z-this._xi),ie=mathAbs$1(oe-this._yi),le=ae>this._ux||ie>this._uy;if(this.addData(CMD$2.L,z,oe),this._ctx&&le&&this._ctx.lineTo(z,oe),le)this._xi=z,this._yi=oe,this._pendingPtDist=0;else{var pe=ae*ae+ie*ie;pe>this._pendingPtDist&&(this._pendingPtX=z,this._pendingPtY=oe,this._pendingPtDist=pe)}return this},$.prototype.bezierCurveTo=function(z,oe,ae,ie,le,pe){return this._drawPendingPt(),this.addData(CMD$2.C,z,oe,ae,ie,le,pe),this._ctx&&this._ctx.bezierCurveTo(z,oe,ae,ie,le,pe),this._xi=le,this._yi=pe,this},$.prototype.quadraticCurveTo=function(z,oe,ae,ie){return this._drawPendingPt(),this.addData(CMD$2.Q,z,oe,ae,ie),this._ctx&&this._ctx.quadraticCurveTo(z,oe,ae,ie),this._xi=ae,this._yi=ie,this},$.prototype.arc=function(z,oe,ae,ie,le,pe){this._drawPendingPt(),tmpAngles[0]=ie,tmpAngles[1]=le,normalizeArcAngles(tmpAngles,pe),ie=tmpAngles[0],le=tmpAngles[1];var _e=le-ie;return this.addData(CMD$2.A,z,oe,ae,ae,ie,_e,0,pe?0:1),this._ctx&&this._ctx.arc(z,oe,ae,ie,le,pe),this._xi=mathCos$2(le)*ae+z,this._yi=mathSin$2(le)*ae+oe,this},$.prototype.arcTo=function(z,oe,ae,ie,le){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(z,oe,ae,ie,le),this},$.prototype.rect=function(z,oe,ae,ie){return this._drawPendingPt(),this._ctx&&this._ctx.rect(z,oe,ae,ie),this.addData(CMD$2.R,z,oe,ae,ie),this},$.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var z=this._ctx,oe=this._x0,ae=this._y0;return z&&z.closePath(),this._xi=oe,this._yi=ae,this},$.prototype.fill=function(z){z&&z.fill(),this.toStatic()},$.prototype.stroke=function(z){z&&z.stroke(),this.toStatic()},$.prototype.len=function(){return this._len},$.prototype.setData=function(z){var oe=z.length;!(this.data&&this.data.length===oe)&&hasTypedArray&&(this.data=new Float32Array(oe));for(var ae=0;ae<oe;ae++)this.data[ae]=z[ae];this._len=oe},$.prototype.appendPath=function(z){z instanceof Array||(z=[z]);for(var oe=z.length,ae=0,ie=this._len,le=0;le<oe;le++)ae+=z[le].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(ie+ae));for(var le=0;le<oe;le++)for(var pe=z[le].data,_e=0;_e<pe.length;_e++)this.data[ie++]=pe[_e];this._len=ie},$.prototype.addData=function(z,oe,ae,ie,le,pe,_e,Ce,$e){if(this._saveData){var xe=this.data;this._len+arguments.length>xe.length&&(this._expandData(),xe=this.data);for(var Ie=0;Ie<arguments.length;Ie++)xe[this._len++]=arguments[Ie]}},$.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},$.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var z=[],oe=0;oe<this._len;oe++)z[oe]=this.data[oe];this.data=z}},$.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var z=this.data;z instanceof Array&&(z.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(z)))}},$.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 z=this.data,oe=0,ae=0,ie=0,le=0,pe;for(pe=0;pe<this._len;){var _e=z[pe++],Ce=pe===1;switch(Ce&&(oe=z[pe],ae=z[pe+1],ie=oe,le=ae),_e){case CMD$2.M:oe=ie=z[pe++],ae=le=z[pe++],min2[0]=ie,min2[1]=le,max2[0]=ie,max2[1]=le;break;case CMD$2.L:fromLine(oe,ae,z[pe],z[pe+1],min2,max2),oe=z[pe++],ae=z[pe++];break;case CMD$2.C:fromCubic(oe,ae,z[pe++],z[pe++],z[pe++],z[pe++],z[pe],z[pe+1],min2,max2),oe=z[pe++],ae=z[pe++];break;case CMD$2.Q:fromQuadratic(oe,ae,z[pe++],z[pe++],z[pe],z[pe+1],min2,max2),oe=z[pe++],ae=z[pe++];break;case CMD$2.A:var $e=z[pe++],xe=z[pe++],Ie=z[pe++],Ne=z[pe++],Fe=z[pe++],ze=z[pe++]+Fe;pe+=1;var At=!z[pe++];Ce&&(ie=mathCos$2(Fe)*Ie+$e,le=mathSin$2(Fe)*Ne+xe),fromArc($e,xe,Ie,Ne,Fe,ze,At,min2,max2),oe=mathCos$2(ze)*Ie+$e,ae=mathSin$2(ze)*Ne+xe;break;case CMD$2.R:ie=oe=z[pe++],le=ae=z[pe++];var Lt=z[pe++],hn=z[pe++];fromLine(ie,le,ie+Lt,le+hn,min2,max2);break;case CMD$2.Z:oe=ie,ae=le;break}min$1(min,min,min2),max$1(max,max,max2)}return pe===0&&(min[0]=min[1]=max[0]=max[1]=0),new BoundingRect$1(min[0],min[1],max[0]-min[0],max[1]-min[1])},$.prototype._calculateLength=function(){var z=this.data,oe=this._len,ae=this._ux,ie=this._uy,le=0,pe=0,_e=0,Ce=0;this._pathSegLen||(this._pathSegLen=[]);for(var $e=this._pathSegLen,xe=0,Ie=0,Ne=0;Ne<oe;){var Fe=z[Ne++],ze=Ne===1;ze&&(le=z[Ne],pe=z[Ne+1],_e=le,Ce=pe);var At=-1;switch(Fe){case CMD$2.M:le=_e=z[Ne++],pe=Ce=z[Ne++];break;case CMD$2.L:{var Lt=z[Ne++],hn=z[Ne++],vn=Lt-le,_n=hn-pe;(mathAbs$1(vn)>ae||mathAbs$1(_n)>ie||Ne===oe-1)&&(At=Math.sqrt(vn*vn+_n*_n),le=Lt,pe=hn);break}case CMD$2.C:{var bn=z[Ne++],Cn=z[Ne++],Lt=z[Ne++],hn=z[Ne++],En=z[Ne++],$n=z[Ne++];At=cubicLength(le,pe,bn,Cn,Lt,hn,En,$n,10),le=En,pe=$n;break}case CMD$2.Q:{var bn=z[Ne++],Cn=z[Ne++],Lt=z[Ne++],hn=z[Ne++];At=quadraticLength(le,pe,bn,Cn,Lt,hn,10),le=Lt,pe=hn;break}case CMD$2.A:var wn=z[Ne++],Tn=z[Ne++],xn=z[Ne++],kn=z[Ne++],An=z[Ne++],On=z[Ne++],Mn=On+An;Ne+=1,z[Ne++],ze&&(_e=mathCos$2(An)*xn+wn,Ce=mathSin$2(An)*kn+Tn),At=mathMax$6(xn,kn)*mathMin$6(PI2$5,Math.abs(On)),le=mathCos$2(Mn)*xn+wn,pe=mathSin$2(Mn)*kn+Tn;break;case CMD$2.R:{_e=le=z[Ne++],Ce=pe=z[Ne++];var Fn=z[Ne++],Dn=z[Ne++];At=Fn*2+Dn*2;break}case CMD$2.Z:{var vn=_e-le,_n=Ce-pe;At=Math.sqrt(vn*vn+_n*_n),le=_e,pe=Ce;break}}At>=0&&($e[Ie++]=At,xe+=At)}return this._pathLen=xe,xe},$.prototype.rebuildPath=function(z,oe){var ae=this.data,ie=this._ux,le=this._uy,pe=this._len,_e,Ce,$e,xe,Ie,Ne,Fe=oe<1,ze,At,Lt=0,hn=0,vn,_n=0,bn,Cn;if(!(Fe&&(this._pathSegLen||this._calculateLength(),ze=this._pathSegLen,At=this._pathLen,vn=oe*At,!vn)))e:for(var En=0;En<pe;){var $n=ae[En++],wn=En===1;switch(wn&&($e=ae[En],xe=ae[En+1],_e=$e,Ce=xe),$n!==CMD$2.L&&_n>0&&(z.lineTo(bn,Cn),_n=0),$n){case CMD$2.M:_e=$e=ae[En++],Ce=xe=ae[En++],z.moveTo($e,xe);break;case CMD$2.L:{Ie=ae[En++],Ne=ae[En++];var Tn=mathAbs$1(Ie-$e),xn=mathAbs$1(Ne-xe);if(Tn>ie||xn>le){if(Fe){var kn=ze[hn++];if(Lt+kn>vn){var An=(vn-Lt)/kn;z.lineTo($e*(1-An)+Ie*An,xe*(1-An)+Ne*An);break e}Lt+=kn}z.lineTo(Ie,Ne),$e=Ie,xe=Ne,_n=0}else{var On=Tn*Tn+xn*xn;On>_n&&(bn=Ie,Cn=Ne,_n=On)}break}case CMD$2.C:{var Mn=ae[En++],Fn=ae[En++],Dn=ae[En++],Nn=ae[En++],Vn=ae[En++],Bn=ae[En++];if(Fe){var kn=ze[hn++];if(Lt+kn>vn){var An=(vn-Lt)/kn;cubicSubdivide($e,Mn,Dn,Vn,An,tmpOutX),cubicSubdivide(xe,Fn,Nn,Bn,An,tmpOutY),z.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}Lt+=kn}z.bezierCurveTo(Mn,Fn,Dn,Nn,Vn,Bn),$e=Vn,xe=Bn;break}case CMD$2.Q:{var Mn=ae[En++],Fn=ae[En++],Dn=ae[En++],Nn=ae[En++];if(Fe){var kn=ze[hn++];if(Lt+kn>vn){var An=(vn-Lt)/kn;quadraticSubdivide($e,Mn,Dn,An,tmpOutX),quadraticSubdivide(xe,Fn,Nn,An,tmpOutY),z.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}Lt+=kn}z.quadraticCurveTo(Mn,Fn,Dn,Nn),$e=Dn,xe=Nn;break}case CMD$2.A:var zn=ae[En++],Xn=ae[En++],Un=ae[En++],Jn=ae[En++],lr=ae[En++],_r=ae[En++],ir=ae[En++],qn=!ae[En++],Yn=Un>Jn?Un:Jn,Wn=mathAbs$1(Un-Jn)>.001,tr=lr+_r,pr=!1;if(Fe){var kn=ze[hn++];Lt+kn>vn&&(tr=lr+_r*(vn-Lt)/kn,pr=!0),Lt+=kn}if(Wn&&z.ellipse?z.ellipse(zn,Xn,Un,Jn,ir,lr,tr,qn):z.arc(zn,Xn,Yn,lr,tr,qn),pr)break e;wn&&(_e=mathCos$2(lr)*Un+zn,Ce=mathSin$2(lr)*Jn+Xn),$e=mathCos$2(tr)*Un+zn,xe=mathSin$2(tr)*Jn+Xn;break;case CMD$2.R:_e=$e=ae[En],Ce=xe=ae[En+1],Ie=ae[En++],Ne=ae[En++];var Gn=ae[En++],Zn=ae[En++];if(Fe){var kn=ze[hn++];if(Lt+kn>vn){var rr=vn-Lt;z.moveTo(Ie,Ne),z.lineTo(Ie+mathMin$6(rr,Gn),Ne),rr-=Gn,rr>0&&z.lineTo(Ie+Gn,Ne+mathMin$6(rr,Zn)),rr-=Zn,rr>0&&z.lineTo(Ie+mathMax$6(Gn-rr,0),Ne+Zn),rr-=Gn,rr>0&&z.lineTo(Ie,Ne+mathMax$6(Zn-rr,0));break e}Lt+=kn}z.rect(Ie,Ne,Gn,Zn);break;case CMD$2.Z:if(Fe){var kn=ze[hn++];if(Lt+kn>vn){var An=(vn-Lt)/kn;z.lineTo($e*(1-An)+_e*An,xe*(1-An)+Ce*An);break e}Lt+=kn}z.closePath(),$e=_e,xe=Ce}}},$.prototype.clone=function(){var z=new $,oe=this.data;return z.data=oe.slice?oe.slice():Array.prototype.slice.call(oe),z._len=this._len,z},$.CMD=CMD$2,$.initDefaultProps=function(){var z=$.prototype;z._saveData=!0,z._ux=0,z._uy=0,z._pendingPtDist=0,z._version=0}(),$}();const PathProxy$1=PathProxy;function containStroke$4($,z,oe,ae,ie,le,pe){if(ie===0)return!1;var _e=ie,Ce=0,$e=$;if(pe>z+_e&&pe>ae+_e||pe<z-_e&&pe<ae-_e||le>$+_e&&le>oe+_e||le<$-_e&&le<oe-_e)return!1;if($!==oe)Ce=(z-ae)/($-oe),$e=($*ae-oe*z)/($-oe);else return Math.abs(le-$)<=_e/2;var xe=Ce*le-pe+$e,Ie=xe*xe/(Ce*Ce+1);return Ie<=_e/2*_e/2}function containStroke$3($,z,oe,ae,ie,le,pe,_e,Ce,$e,xe){if(Ce===0)return!1;var Ie=Ce;if(xe>z+Ie&&xe>ae+Ie&&xe>le+Ie&&xe>_e+Ie||xe<z-Ie&&xe<ae-Ie&&xe<le-Ie&&xe<_e-Ie||$e>$+Ie&&$e>oe+Ie&&$e>ie+Ie&&$e>pe+Ie||$e<$-Ie&&$e<oe-Ie&&$e<ie-Ie&&$e<pe-Ie)return!1;var Ne=cubicProjectPoint($,z,oe,ae,ie,le,pe,_e,$e,xe,null);return Ne<=Ie/2}function containStroke$2($,z,oe,ae,ie,le,pe,_e,Ce){if(pe===0)return!1;var $e=pe;if(Ce>z+$e&&Ce>ae+$e&&Ce>le+$e||Ce<z-$e&&Ce<ae-$e&&Ce<le-$e||_e>$+$e&&_e>oe+$e&&_e>ie+$e||_e<$-$e&&_e<oe-$e&&_e<ie-$e)return!1;var xe=quadraticProjectPoint($,z,oe,ae,ie,le,_e,Ce,null);return xe<=$e/2}var PI2$4=Math.PI*2;function normalizeRadian($){return $%=PI2$4,$<0&&($+=PI2$4),$}var PI2$3=Math.PI*2;function containStroke$1($,z,oe,ae,ie,le,pe,_e,Ce){if(pe===0)return!1;var $e=pe;_e-=$,Ce-=z;var xe=Math.sqrt(_e*_e+Ce*Ce);if(xe-$e>oe||xe+$e<oe)return!1;if(Math.abs(ae-ie)%PI2$3<1e-4)return!0;if(le){var Ie=ae;ae=normalizeRadian(ie),ie=normalizeRadian(Ie)}else ae=normalizeRadian(ae),ie=normalizeRadian(ie);ae>ie&&(ie+=PI2$3);var Ne=Math.atan2(Ce,_e);return Ne<0&&(Ne+=PI2$3),Ne>=ae&&Ne<=ie||Ne+PI2$3>=ae&&Ne+PI2$3<=ie}function windingLine($,z,oe,ae,ie,le){if(le>z&&le>ae||le<z&&le<ae||ae===z)return 0;var pe=(le-z)/(ae-z),_e=ae<z?1:-1;(pe===1||pe===0)&&(_e=ae<z?.5:-.5);var Ce=pe*(oe-$)+$;return Ce===ie?1/0:Ce>ie?_e:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1($,z){return Math.abs($-z)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var $=extrema[0];extrema[0]=extrema[1],extrema[1]=$}function windingCubic($,z,oe,ae,ie,le,pe,_e,Ce,$e){if($e>z&&$e>ae&&$e>le&&$e>_e||$e<z&&$e<ae&&$e<le&&$e<_e)return 0;var xe=cubicRootAt(z,ae,le,_e,$e,roots);if(xe===0)return 0;for(var Ie=0,Ne=-1,Fe=void 0,ze=void 0,At=0;At<xe;At++){var Lt=roots[At],hn=Lt===0||Lt===1?.5:1,vn=cubicAt($,oe,ie,pe,Lt);vn<Ce||(Ne<0&&(Ne=cubicExtrema(z,ae,le,_e,extrema),extrema[1]<extrema[0]&&Ne>1&&swapExtrema(),Fe=cubicAt(z,ae,le,_e,extrema[0]),Ne>1&&(ze=cubicAt(z,ae,le,_e,extrema[1]))),Ne===2?Lt<extrema[0]?Ie+=Fe<z?hn:-hn:Lt<extrema[1]?Ie+=ze<Fe?hn:-hn:Ie+=_e<ze?hn:-hn:Lt<extrema[0]?Ie+=Fe<z?hn:-hn:Ie+=_e<Fe?hn:-hn)}return Ie}function windingQuadratic($,z,oe,ae,ie,le,pe,_e){if(_e>z&&_e>ae&&_e>le||_e<z&&_e<ae&&_e<le)return 0;var Ce=quadraticRootAt(z,ae,le,_e,roots);if(Ce===0)return 0;var $e=quadraticExtremum(z,ae,le);if($e>=0&&$e<=1){for(var xe=0,Ie=quadraticAt(z,ae,le,$e),Ne=0;Ne<Ce;Ne++){var Fe=roots[Ne]===0||roots[Ne]===1?.5:1,ze=quadraticAt($,oe,ie,roots[Ne]);ze<pe||(roots[Ne]<$e?xe+=Ie<z?Fe:-Fe:xe+=le<Ie?Fe:-Fe)}return xe}else{var Fe=roots[0]===0||roots[0]===1?.5:1,ze=quadraticAt($,oe,ie,roots[0]);return ze<pe?0:le<z?Fe:-Fe}}function windingArc($,z,oe,ae,ie,le,pe,_e){if(_e-=z,_e>oe||_e<-oe)return 0;var Ce=Math.sqrt(oe*oe-_e*_e);roots[0]=-Ce,roots[1]=Ce;var $e=Math.abs(ae-ie);if($e<1e-4)return 0;if($e>=PI2$2-1e-4){ae=0,ie=PI2$2;var xe=le?1:-1;return pe>=roots[0]+$&&pe<=roots[1]+$?xe:0}if(ae>ie){var Ie=ae;ae=ie,ie=Ie}ae<0&&(ae+=PI2$2,ie+=PI2$2);for(var Ne=0,Fe=0;Fe<2;Fe++){var ze=roots[Fe];if(ze+$>pe){var At=Math.atan2(_e,ze),xe=le?1:-1;At<0&&(At=PI2$2+At),(At>=ae&&At<=ie||At+PI2$2>=ae&&At+PI2$2<=ie)&&(At>Math.PI/2&&At<Math.PI*1.5&&(xe=-xe),Ne+=xe)}}return Ne}function containPath($,z,oe,ae,ie){for(var le=$.data,pe=$.len(),_e=0,Ce=0,$e=0,xe=0,Ie=0,Ne,Fe,ze=0;ze<pe;){var At=le[ze++],Lt=ze===1;switch(At===CMD$1.M&&ze>1&&(oe||(_e+=windingLine(Ce,$e,xe,Ie,ae,ie))),Lt&&(Ce=le[ze],$e=le[ze+1],xe=Ce,Ie=$e),At){case CMD$1.M:xe=le[ze++],Ie=le[ze++],Ce=xe,$e=Ie;break;case CMD$1.L:if(oe){if(containStroke$4(Ce,$e,le[ze],le[ze+1],z,ae,ie))return!0}else _e+=windingLine(Ce,$e,le[ze],le[ze+1],ae,ie)||0;Ce=le[ze++],$e=le[ze++];break;case CMD$1.C:if(oe){if(containStroke$3(Ce,$e,le[ze++],le[ze++],le[ze++],le[ze++],le[ze],le[ze+1],z,ae,ie))return!0}else _e+=windingCubic(Ce,$e,le[ze++],le[ze++],le[ze++],le[ze++],le[ze],le[ze+1],ae,ie)||0;Ce=le[ze++],$e=le[ze++];break;case CMD$1.Q:if(oe){if(containStroke$2(Ce,$e,le[ze++],le[ze++],le[ze],le[ze+1],z,ae,ie))return!0}else _e+=windingQuadratic(Ce,$e,le[ze++],le[ze++],le[ze],le[ze+1],ae,ie)||0;Ce=le[ze++],$e=le[ze++];break;case CMD$1.A:var hn=le[ze++],vn=le[ze++],_n=le[ze++],bn=le[ze++],Cn=le[ze++],En=le[ze++];ze+=1;var $n=!!(1-le[ze++]);Ne=Math.cos(Cn)*_n+hn,Fe=Math.sin(Cn)*bn+vn,Lt?(xe=Ne,Ie=Fe):_e+=windingLine(Ce,$e,Ne,Fe,ae,ie);var wn=(ae-hn)*bn/_n+hn;if(oe){if(containStroke$1(hn,vn,bn,Cn,Cn+En,$n,z,wn,ie))return!0}else _e+=windingArc(hn,vn,bn,Cn,Cn+En,$n,wn,ie);Ce=Math.cos(Cn+En)*_n+hn,$e=Math.sin(Cn+En)*bn+vn;break;case CMD$1.R:xe=Ce=le[ze++],Ie=$e=le[ze++];var Tn=le[ze++],xn=le[ze++];if(Ne=xe+Tn,Fe=Ie+xn,oe){if(containStroke$4(xe,Ie,Ne,Ie,z,ae,ie)||containStroke$4(Ne,Ie,Ne,Fe,z,ae,ie)||containStroke$4(Ne,Fe,xe,Fe,z,ae,ie)||containStroke$4(xe,Fe,xe,Ie,z,ae,ie))return!0}else _e+=windingLine(Ne,Ie,Ne,Fe,ae,ie),_e+=windingLine(xe,Fe,xe,Ie,ae,ie);break;case CMD$1.Z:if(oe){if(containStroke$4(Ce,$e,xe,Ie,z,ae,ie))return!0}else _e+=windingLine(Ce,$e,xe,Ie,ae,ie);Ce=xe,$e=Ie;break}}return!oe&&!isAroundEqual$1($e,Ie)&&(_e+=windingLine(Ce,$e,xe,Ie,ae,ie)||0),_e!==0}function contain$2($,z,oe){return containPath($,0,!1,z,oe)}function containStroke($,z,oe,ae){return containPath($,z,!0,oe,ae)}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($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.update=function(){var oe=this;$.prototype.update.call(this);var ae=this.style;if(ae.decal){var ie=this._decalEl=this._decalEl||new z;ie.buildPath===z.prototype.buildPath&&(ie.buildPath=function(Ce){oe.buildPath(Ce,oe.shape)}),ie.silent=!0;var le=ie.style;for(var pe in ae)le[pe]!==ae[pe]&&(le[pe]=ae[pe]);le.fill=ae.fill?ae.decal:null,le.decal=null,le.shadowColor=null,ae.strokeFirst&&(le.stroke=null);for(var _e=0;_e<pathCopyParams.length;++_e)ie[pathCopyParams[_e]]=this[pathCopyParams[_e]];ie.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},z.prototype.getDecalElement=function(){return this._decalEl},z.prototype._init=function(oe){var ae=keys(oe);this.shape=this.getDefaultShape();var ie=this.getDefaultStyle();ie&&this.useStyle(ie);for(var le=0;le<ae.length;le++){var pe=ae[le],_e=oe[pe];pe==="style"?this.style?extend(this.style,_e):this.useStyle(_e):pe==="shape"?extend(this.shape,_e):$.prototype.attrKV.call(this,pe,_e)}this.style||this.useStyle({})},z.prototype.getDefaultStyle=function(){return null},z.prototype.getDefaultShape=function(){return{}},z.prototype.canBeInsideText=function(){return this.hasFill()},z.prototype.getInsideTextFill=function(){var oe=this.style.fill;if(oe!=="none"){if(isString(oe)){var ae=lum(oe,0);return ae>.5?DARK_LABEL_COLOR:ae>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(oe)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},z.prototype.getInsideTextStroke=function(oe){var ae=this.style.fill;if(isString(ae)){var ie=this.__zr,le=!!(ie&&ie.isDarkMode()),pe=lum(oe,0)<DARK_MODE_THRESHOLD;if(le===pe)return ae}},z.prototype.buildPath=function(oe,ae,ie){},z.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},z.prototype.getUpdatedPathProxy=function(oe){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,oe),this.path},z.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},z.prototype.hasStroke=function(){var oe=this.style,ae=oe.stroke;return!(ae==null||ae==="none"||!(oe.lineWidth>0))},z.prototype.hasFill=function(){var oe=this.style,ae=oe.fill;return ae!=null&&ae!=="none"},z.prototype.getBoundingRect=function(){var oe=this._rect,ae=this.style,ie=!oe;if(ie){var le=!1;this.path||(le=!0,this.createPathProxy());var pe=this.path;(le||this.__dirty&SHAPE_CHANGED_BIT)&&(pe.beginPath(),this.buildPath(pe,this.shape,!1),this.pathUpdated()),oe=pe.getBoundingRect()}if(this._rect=oe,this.hasStroke()&&this.path&&this.path.len()>0){var _e=this._rectStroke||(this._rectStroke=oe.clone());if(this.__dirty||ie){_e.copy(oe);var Ce=ae.strokeNoScale?this.getLineScale():1,$e=ae.lineWidth;if(!this.hasFill()){var xe=this.strokeContainThreshold;$e=Math.max($e,xe??4)}Ce>1e-10&&(_e.width+=$e/Ce,_e.height+=$e/Ce,_e.x-=$e/Ce/2,_e.y-=$e/Ce/2)}return _e}return oe},z.prototype.contain=function(oe,ae){var ie=this.transformCoordToLocal(oe,ae),le=this.getBoundingRect(),pe=this.style;if(oe=ie[0],ae=ie[1],le.contain(oe,ae)){var _e=this.path;if(this.hasStroke()){var Ce=pe.lineWidth,$e=pe.strokeNoScale?this.getLineScale():1;if($e>1e-10&&(this.hasFill()||(Ce=Math.max(Ce,this.strokeContainThreshold)),containStroke(_e,Ce/$e,oe,ae)))return!0}if(this.hasFill())return contain$2(_e,oe,ae)}return!1},z.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},z.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},z.prototype.animateShape=function(oe){return this.animate("shape",oe)},z.prototype.updateDuringAnimation=function(oe){oe==="style"?this.dirtyStyle():oe==="shape"?this.dirtyShape():this.markRedraw()},z.prototype.attrKV=function(oe,ae){oe==="shape"?this.setShape(ae):$.prototype.attrKV.call(this,oe,ae)},z.prototype.setShape=function(oe,ae){var ie=this.shape;return ie||(ie=this.shape={}),typeof oe=="string"?ie[oe]=ae:extend(ie,oe),this.dirtyShape(),this},z.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},z.prototype.createStyle=function(oe){return createObject(DEFAULT_PATH_STYLE,oe)},z.prototype._innerSaveToNormal=function(oe){$.prototype._innerSaveToNormal.call(this,oe);var ae=this._normalState;oe.shape&&!ae.shape&&(ae.shape=extend({},this.shape))},z.prototype._applyStateObj=function(oe,ae,ie,le,pe,_e){$.prototype._applyStateObj.call(this,oe,ae,ie,le,pe,_e);var Ce=!(ae&&le),$e;if(ae&&ae.shape?pe?le?$e=ae.shape:($e=extend({},ie.shape),extend($e,ae.shape)):($e=extend({},le?this.shape:ie.shape),extend($e,ae.shape)):Ce&&($e=ie.shape),$e)if(pe){this.shape=extend({},this.shape);for(var xe={},Ie=keys($e),Ne=0;Ne<Ie.length;Ne++){var Fe=Ie[Ne];typeof $e[Fe]=="object"?this.shape[Fe]=$e[Fe]:xe[Fe]=$e[Fe]}this._transitionState(oe,{shape:xe},_e)}else this.shape=$e,this.dirtyShape()},z.prototype._mergeStates=function(oe){for(var ae=$.prototype._mergeStates.call(this,oe),ie,le=0;le<oe.length;le++){var pe=oe[le];pe.shape&&(ie=ie||{},this._mergeStyle(ie,pe.shape))}return ie&&(ae.shape=ie),ae},z.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},z.prototype.isZeroArea=function(){return!1},z.extend=function(oe){var ae=function(le){__extends(pe,le);function pe(_e){var Ce=le.call(this,_e)||this;return oe.init&&oe.init.call(Ce,_e),Ce}return pe.prototype.getDefaultStyle=function(){return clone$3(oe.style)},pe.prototype.getDefaultShape=function(){return clone$3(oe.shape)},pe}(z);for(var ie in oe)typeof oe[ie]=="function"&&(ae.prototype[ie]=oe[ie]);return ae},z.initDefaultProps=function(){var oe=z.prototype;oe.type="path",oe.strokeContainThreshold=5,oe.segmentIgnoreThreshold=0,oe.subPixelOptimize=!1,oe.autoBatch=!1,oe.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),z}(Displayable$1);const Path$1=Path;var DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.hasStroke=function(){var oe=this.style,ae=oe.stroke;return ae!=null&&ae!=="none"&&oe.lineWidth>0},z.prototype.hasFill=function(){var oe=this.style,ae=oe.fill;return ae!=null&&ae!=="none"},z.prototype.createStyle=function(oe){return createObject(DEFAULT_TSPAN_STYLE,oe)},z.prototype.setBoundingRect=function(oe){this._rect=oe},z.prototype.getBoundingRect=function(){var oe=this.style;if(!this._rect){var ae=oe.text;ae!=null?ae+="":ae="";var ie=getBoundingRect(ae,oe.font,oe.textAlign,oe.textBaseline);if(ie.x+=oe.x||0,ie.y+=oe.y||0,this.hasStroke()){var le=oe.lineWidth;ie.x-=le/2,ie.y-=le/2,ie.width+=le,ie.height+=le}this._rect=ie}return this._rect},z.initDefaultProps=function(){var oe=z.prototype;oe.dirtyRectTolerance=10}(),z}(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($){return!!($&&typeof $!="string"&&$.width&&$.height)}var ZRImage=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.createStyle=function(oe){return createObject(DEFAULT_IMAGE_STYLE,oe)},z.prototype._getSize=function(oe){var ae=this.style,ie=ae[oe];if(ie!=null)return ie;var le=isImageLike(ae.image)?ae.image:this.__image;if(!le)return 0;var pe=oe==="width"?"height":"width",_e=ae[pe];return _e==null?le[oe]:le[oe]/le[pe]*_e},z.prototype.getWidth=function(){return this._getSize("width")},z.prototype.getHeight=function(){return this._getSize("height")},z.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},z.prototype.getBoundingRect=function(){var oe=this.style;return this._rect||(this._rect=new BoundingRect$1(oe.x||0,oe.y||0,this.getWidth(),this.getHeight())),this._rect},z}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2($,z){var oe=z.x,ae=z.y,ie=z.width,le=z.height,pe=z.r,_e,Ce,$e,xe;ie<0&&(oe=oe+ie,ie=-ie),le<0&&(ae=ae+le,le=-le),typeof pe=="number"?_e=Ce=$e=xe=pe:pe instanceof Array?pe.length===1?_e=Ce=$e=xe=pe[0]:pe.length===2?(_e=$e=pe[0],Ce=xe=pe[1]):pe.length===3?(_e=pe[0],Ce=xe=pe[1],$e=pe[2]):(_e=pe[0],Ce=pe[1],$e=pe[2],xe=pe[3]):_e=Ce=$e=xe=0;var Ie;_e+Ce>ie&&(Ie=_e+Ce,_e*=ie/Ie,Ce*=ie/Ie),$e+xe>ie&&(Ie=$e+xe,$e*=ie/Ie,xe*=ie/Ie),Ce+$e>le&&(Ie=Ce+$e,Ce*=le/Ie,$e*=le/Ie),_e+xe>le&&(Ie=_e+xe,_e*=le/Ie,xe*=le/Ie),$.moveTo(oe+_e,ae),$.lineTo(oe+ie-Ce,ae),Ce!==0&&$.arc(oe+ie-Ce,ae+Ce,Ce,-Math.PI/2,0),$.lineTo(oe+ie,ae+le-$e),$e!==0&&$.arc(oe+ie-$e,ae+le-$e,$e,0,Math.PI/2),$.lineTo(oe+xe,ae+le),xe!==0&&$.arc(oe+xe,ae+le-xe,xe,Math.PI/2,Math.PI),$.lineTo(oe,ae+_e),_e!==0&&$.arc(oe+_e,ae+_e,_e,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1($,z,oe){if(z){var ae=z.x1,ie=z.x2,le=z.y1,pe=z.y2;$.x1=ae,$.x2=ie,$.y1=le,$.y2=pe;var _e=oe&&oe.lineWidth;return _e&&(round(ae*2)===round(ie*2)&&($.x1=$.x2=subPixelOptimize$1(ae,_e,!0)),round(le*2)===round(pe*2)&&($.y1=$.y2=subPixelOptimize$1(le,_e,!0))),$}}function subPixelOptimizeRect$1($,z,oe){if(z){var ae=z.x,ie=z.y,le=z.width,pe=z.height;$.x=ae,$.y=ie,$.width=le,$.height=pe;var _e=oe&&oe.lineWidth;return _e&&($.x=subPixelOptimize$1(ae,_e,!0),$.y=subPixelOptimize$1(ie,_e,!0),$.width=Math.max(subPixelOptimize$1(ae+le,_e,!1)-$.x,le===0?0:1),$.height=Math.max(subPixelOptimize$1(ie+pe,_e,!1)-$.y,pe===0?0:1)),$}}function subPixelOptimize$1($,z,oe){if(!z)return $;var ae=round($*2);return(ae+round(z))%2===0?ae/2:(ae+(oe?1:-1))/2}var RectShape=function(){function $(){this.x=0,this.y=0,this.width=0,this.height=0}return $}(),subPixelOptimizeOutputShape$1={},Rect$1=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new RectShape},z.prototype.buildPath=function(oe,ae){var ie,le,pe,_e;if(this.subPixelOptimize){var Ce=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,ae,this.style);ie=Ce.x,le=Ce.y,pe=Ce.width,_e=Ce.height,Ce.r=ae.r,ae=Ce}else ie=ae.x,le=ae.y,pe=ae.width,_e=ae.height;ae.r?buildPath$2(oe,ae):oe.rect(ie,le,pe,_e)},z.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},z}(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($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae.type="text",ae._children=[],ae._defaultStyle=DEFAULT_RICH_TEXT_COLOR,ae.attr(oe),ae}return z.prototype.childrenRef=function(){return this._children},z.prototype.update=function(){$.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var oe=0;oe<this._children.length;oe++){var ae=this._children[oe];ae.zlevel=this.zlevel,ae.z=this.z,ae.z2=this.z2,ae.culling=this.culling,ae.cursor=this.cursor,ae.invisible=this.invisible}},z.prototype.updateTransform=function(){var oe=this.innerTransformable;oe?(oe.updateTransform(),oe.transform&&(this.transform=oe.transform)):$.prototype.updateTransform.call(this)},z.prototype.getLocalTransform=function(oe){var ae=this.innerTransformable;return ae?ae.getLocalTransform(oe):$.prototype.getLocalTransform.call(this,oe)},z.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),$.prototype.getComputedTransform.call(this)},z.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},z.prototype.addSelfToZr=function(oe){$.prototype.addSelfToZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++)this._children[ae].__zr=oe},z.prototype.removeSelfFromZr=function(oe){$.prototype.removeSelfFromZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++)this._children[ae].__zr=null},z.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var oe=new BoundingRect$1(0,0,0,0),ae=this._children,ie=[],le=null,pe=0;pe<ae.length;pe++){var _e=ae[pe],Ce=_e.getBoundingRect(),$e=_e.getLocalTransform(ie);$e?(oe.copy(Ce),oe.applyTransform($e),le=le||oe.clone(),le.union(oe)):(le=le||Ce.clone(),le.union(Ce))}this._rect=le||oe}return this._rect},z.prototype.setDefaultTextStyle=function(oe){this._defaultStyle=oe||DEFAULT_RICH_TEXT_COLOR},z.prototype.setTextContent=function(oe){},z.prototype._mergeStyle=function(oe,ae){if(!ae)return oe;var ie=ae.rich,le=oe.rich||ie&&{};return extend(oe,ae),ie&&le?(this._mergeRich(le,ie),oe.rich=le):le&&(oe.rich=le),oe},z.prototype._mergeRich=function(oe,ae){for(var ie=keys(ae),le=0;le<ie.length;le++){var pe=ie[le];oe[pe]=oe[pe]||{},extend(oe[pe],ae[pe])}},z.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},z.prototype._getOrCreateChild=function(oe){var ae=this._children[this._childCursor];return(!ae||!(ae instanceof oe))&&(ae=new oe),this._children[this._childCursor++]=ae,ae.__zr=this.__zr,ae.parent=this,ae},z.prototype._updatePlainTexts=function(){var oe=this.style,ae=oe.font||DEFAULT_FONT,ie=oe.padding,le=getStyleText(oe),pe=parsePlainText(le,oe),_e=needDrawBackground(oe),Ce=!!oe.backgroundColor,$e=pe.outerHeight,xe=pe.outerWidth,Ie=pe.contentWidth,Ne=pe.lines,Fe=pe.lineHeight,ze=this._defaultStyle,At=oe.x||0,Lt=oe.y||0,hn=oe.align||ze.align||"left",vn=oe.verticalAlign||ze.verticalAlign||"top",_n=At,bn=adjustTextY(Lt,pe.contentHeight,vn);if(_e||ie){var Cn=adjustTextX(At,xe,hn),En=adjustTextY(Lt,$e,vn);_e&&this._renderBackground(oe,oe,Cn,En,xe,$e)}bn+=Fe/2,ie&&(_n=getTextXForPadding(At,hn,ie),vn==="top"?bn+=ie[0]:vn==="bottom"&&(bn-=ie[2]));for(var $n=0,wn=!1,Tn=getFill("fill"in oe?oe.fill:(wn=!0,ze.fill)),xn=getStroke("stroke"in oe?oe.stroke:!Ce&&(!ze.autoStroke||wn)?($n=DEFAULT_STROKE_LINE_WIDTH,ze.stroke):null),kn=oe.textShadowBlur>0,An=oe.width!=null&&(oe.overflow==="truncate"||oe.overflow==="break"||oe.overflow==="breakAll"),On=pe.calculatedLineHeight,Mn=0;Mn<Ne.length;Mn++){var Fn=this._getOrCreateChild(TSpan$1),Dn=Fn.createStyle();Fn.useStyle(Dn),Dn.text=Ne[Mn],Dn.x=_n,Dn.y=bn,hn&&(Dn.textAlign=hn),Dn.textBaseline="middle",Dn.opacity=oe.opacity,Dn.strokeFirst=!0,kn&&(Dn.shadowBlur=oe.textShadowBlur||0,Dn.shadowColor=oe.textShadowColor||"transparent",Dn.shadowOffsetX=oe.textShadowOffsetX||0,Dn.shadowOffsetY=oe.textShadowOffsetY||0),Dn.stroke=xn,Dn.fill=Tn,xn&&(Dn.lineWidth=oe.lineWidth||$n,Dn.lineDash=oe.lineDash,Dn.lineDashOffset=oe.lineDashOffset||0),Dn.font=ae,setSeparateFont(Dn,oe),bn+=Fe,An&&Fn.setBoundingRect(new BoundingRect$1(adjustTextX(Dn.x,oe.width,Dn.textAlign),adjustTextY(Dn.y,On,Dn.textBaseline),Ie,On))}},z.prototype._updateRichTexts=function(){var oe=this.style,ae=getStyleText(oe),ie=parseRichText(ae,oe),le=ie.width,pe=ie.outerWidth,_e=ie.outerHeight,Ce=oe.padding,$e=oe.x||0,xe=oe.y||0,Ie=this._defaultStyle,Ne=oe.align||Ie.align,Fe=oe.verticalAlign||Ie.verticalAlign,ze=adjustTextX($e,pe,Ne),At=adjustTextY(xe,_e,Fe),Lt=ze,hn=At;Ce&&(Lt+=Ce[3],hn+=Ce[0]);var vn=Lt+le;needDrawBackground(oe)&&this._renderBackground(oe,oe,ze,At,pe,_e);for(var _n=!!oe.backgroundColor,bn=0;bn<ie.lines.length;bn++){for(var Cn=ie.lines[bn],En=Cn.tokens,$n=En.length,wn=Cn.lineHeight,Tn=Cn.width,xn=0,kn=Lt,An=vn,On=$n-1,Mn=void 0;xn<$n&&(Mn=En[xn],!Mn.align||Mn.align==="left");)this._placeToken(Mn,oe,wn,hn,kn,"left",_n),Tn-=Mn.width,kn+=Mn.width,xn++;for(;On>=0&&(Mn=En[On],Mn.align==="right");)this._placeToken(Mn,oe,wn,hn,An,"right",_n),Tn-=Mn.width,An-=Mn.width,On--;for(kn+=(le-(kn-Lt)-(vn-An)-Tn)/2;xn<=On;)Mn=En[xn],this._placeToken(Mn,oe,wn,hn,kn+Mn.width/2,"center",_n),kn+=Mn.width,xn++;hn+=wn}},z.prototype._placeToken=function(oe,ae,ie,le,pe,_e,Ce){var $e=ae.rich[oe.styleName]||{};$e.text=oe.text;var xe=oe.verticalAlign,Ie=le+ie/2;xe==="top"?Ie=le+oe.height/2:xe==="bottom"&&(Ie=le+ie-oe.height/2);var Ne=!oe.isLineHolder&&needDrawBackground($e);Ne&&this._renderBackground($e,ae,_e==="right"?pe-oe.width:_e==="center"?pe-oe.width/2:pe,Ie-oe.height/2,oe.width,oe.height);var Fe=!!$e.backgroundColor,ze=oe.textPadding;ze&&(pe=getTextXForPadding(pe,_e,ze),Ie-=oe.height/2-ze[0]-oe.innerHeight/2);var At=this._getOrCreateChild(TSpan$1),Lt=At.createStyle();At.useStyle(Lt);var hn=this._defaultStyle,vn=!1,_n=0,bn=getFill("fill"in $e?$e.fill:"fill"in ae?ae.fill:(vn=!0,hn.fill)),Cn=getStroke("stroke"in $e?$e.stroke:"stroke"in ae?ae.stroke:!Fe&&!Ce&&(!hn.autoStroke||vn)?(_n=DEFAULT_STROKE_LINE_WIDTH,hn.stroke):null),En=$e.textShadowBlur>0||ae.textShadowBlur>0;Lt.text=oe.text,Lt.x=pe,Lt.y=Ie,En&&(Lt.shadowBlur=$e.textShadowBlur||ae.textShadowBlur||0,Lt.shadowColor=$e.textShadowColor||ae.textShadowColor||"transparent",Lt.shadowOffsetX=$e.textShadowOffsetX||ae.textShadowOffsetX||0,Lt.shadowOffsetY=$e.textShadowOffsetY||ae.textShadowOffsetY||0),Lt.textAlign=_e,Lt.textBaseline="middle",Lt.font=oe.font||DEFAULT_FONT,Lt.opacity=retrieve3($e.opacity,ae.opacity,1),setSeparateFont(Lt,$e),Cn&&(Lt.lineWidth=retrieve3($e.lineWidth,ae.lineWidth,_n),Lt.lineDash=retrieve2($e.lineDash,ae.lineDash),Lt.lineDashOffset=ae.lineDashOffset||0,Lt.stroke=Cn),bn&&(Lt.fill=bn);var $n=oe.contentWidth,wn=oe.contentHeight;At.setBoundingRect(new BoundingRect$1(adjustTextX(Lt.x,$n,Lt.textAlign),adjustTextY(Lt.y,wn,Lt.textBaseline),$n,wn))},z.prototype._renderBackground=function(oe,ae,ie,le,pe,_e){var Ce=oe.backgroundColor,$e=oe.borderWidth,xe=oe.borderColor,Ie=Ce&&Ce.image,Ne=Ce&&!Ie,Fe=oe.borderRadius,ze=this,At,Lt;if(Ne||oe.lineHeight||$e&&xe){At=this._getOrCreateChild(Rect$2),At.useStyle(At.createStyle()),At.style.fill=null;var hn=At.shape;hn.x=ie,hn.y=le,hn.width=pe,hn.height=_e,hn.r=Fe,At.dirtyShape()}if(Ne){var vn=At.style;vn.fill=Ce||null,vn.fillOpacity=retrieve2(oe.fillOpacity,1)}else if(Ie){Lt=this._getOrCreateChild(ZRImage$1),Lt.onload=function(){ze.dirtyStyle()};var _n=Lt.style;_n.image=Ce.image,_n.x=ie,_n.y=le,_n.width=pe,_n.height=_e}if($e&&xe){var vn=At.style;vn.lineWidth=$e,vn.stroke=xe,vn.strokeOpacity=retrieve2(oe.strokeOpacity,1),vn.lineDash=oe.borderDash,vn.lineDashOffset=oe.borderDashOffset||0,At.strokeContainThreshold=0,At.hasFill()&&At.hasStroke()&&(vn.strokeFirst=!0,vn.lineWidth*=2)}var bn=(At||Lt).style;bn.shadowBlur=oe.shadowBlur||0,bn.shadowColor=oe.shadowColor||"transparent",bn.shadowOffsetX=oe.shadowOffsetX||0,bn.shadowOffsetY=oe.shadowOffsetY||0,bn.opacity=retrieve3(oe.opacity,ae.opacity,1)},z.makeFont=function(oe){var ae="";return hasSeparateFont(oe)&&(ae=[oe.fontStyle,oe.fontWeight,parseFontSize(oe.fontSize),oe.fontFamily||"sans-serif"].join(" ")),ae&&trim$1(ae)||oe.textFont||oe.font},z}(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($){return typeof $=="string"&&($.indexOf("px")!==-1||$.indexOf("rem")!==-1||$.indexOf("em")!==-1)?$:isNaN(+$)?DEFAULT_FONT_SIZE+"px":$+"px"}function setSeparateFont($,z){for(var oe=0;oe<FONT_PARTS.length;oe++){var ae=FONT_PARTS[oe],ie=z[ae];ie!=null&&($[ae]=ie)}}function hasSeparateFont($){return $.fontSize!=null||$.fontFamily||$.fontWeight}function normalizeTextStyle($){return normalizeStyle($),each$c($.rich,normalizeStyle),$}function normalizeStyle($){if($){$.font=ZRText.makeFont($);var z=$.align;z==="middle"&&(z="center"),$.align=z==null||VALID_TEXT_ALIGN[z]?z:"left";var oe=$.verticalAlign;oe==="center"&&(oe="middle"),$.verticalAlign=oe==null||VALID_TEXT_VERTICAL_ALIGN[oe]?oe:"top";var ae=$.padding;ae&&($.padding=normalizeCssArray$1($.padding))}}function getStroke($,z){return $==null||z<=0||$==="transparent"||$==="none"?null:$.image||$.colorStops?"#000":$}function getFill($){return $==null||$==="none"?null:$.image||$.colorStops?"#000":$}function getTextXForPadding($,z,oe){return z==="right"?$-oe[1]:z==="center"?$+oe[3]/2-oe[1]/2:$+oe[3]}function getStyleText($){var z=$.text;return z!=null&&(z+=""),z}function needDrawBackground($){return!!($.backgroundColor||$.lineHeight||$.borderWidth&&$.borderColor)}const ZRText$1=ZRText;var getECData=makeInner(),setCommonECData=function($,z,oe,ae){if(ae){var ie=getECData(ae);ie.dataIndex=oe,ie.dataType=z,ie.seriesIndex=$,ae.type==="group"&&ae.traverse(function(le){var pe=getECData(le);pe.seriesIndex=$,pe.dataIndex=oe,pe.dataType=z})}},_highlightNextDigit=1,_highlightKeyMap={},getSavedStates=makeInner(),getComponentStates=makeInner(),HOVER_STATE_NORMAL=0,HOVER_STATE_BLUR=1,HOVER_STATE_EMPHASIS=2,SPECIAL_STATES=["emphasis","blur","select"],DISPLAY_STATES=["normal","emphasis","blur","select"],Z2_EMPHASIS_LIFT=10,Z2_SELECT_LIFT=9,HIGHLIGHT_ACTION_TYPE="highlight",DOWNPLAY_ACTION_TYPE="downplay",SELECT_ACTION_TYPE="select",UNSELECT_ACTION_TYPE="unselect",TOGGLE_SELECT_ACTION_TYPE="toggleSelect";function hasFillOrStroke($){return $!=null&&$!=="none"}var liftedColorCache=new LRU$1(100);function liftColor($){if(isString($)){var z=liftedColorCache.get($);return z||(z=lift($,-.1),liftedColorCache.put($,z)),z}else if(isGradientObject($)){var oe=extend({},$);return oe.colorStops=map$2($.colorStops,function(ae){return{offset:ae.offset,color:lift(ae.color,-.1)}}),oe}return $}function doChangeHoverState($,z,oe){$.onHoverStateChange&&($.hoverState||0)!==oe&&$.onHoverStateChange(z),$.hoverState=oe}function singleEnterEmphasis($){doChangeHoverState($,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis($){$.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState($,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur($){doChangeHoverState($,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur($){$.hoverState===HOVER_STATE_BLUR&&doChangeHoverState($,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect($){$.selected=!0}function singleLeaveSelect($){$.selected=!1}function updateElementState($,z,oe){z($,oe)}function traverseUpdateState($,z,oe){updateElementState($,z,oe),$.isGroup&&$.traverse(function(ae){updateElementState(ae,z,oe)})}function setStatesFlag($,z){switch(z){case"emphasis":$.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":$.hoverState=HOVER_STATE_NORMAL;break;case"blur":$.hoverState=HOVER_STATE_BLUR;break;case"select":$.selected=!0}}function getFromStateStyle($,z,oe,ae){for(var ie=$.style,le={},pe=0;pe<z.length;pe++){var _e=z[pe],Ce=ie[_e];le[_e]=Ce??(ae&&ae[_e])}for(var pe=0;pe<$.animators.length;pe++){var $e=$.animators[pe];$e.__fromStateTransition&&$e.__fromStateTransition.indexOf(oe)<0&&$e.targetName==="style"&&$e.saveTo(le,z)}return le}function createEmphasisDefaultState($,z,oe,ae){var ie=oe&&indexOf(oe,"select")>=0,le=!1;if($ instanceof Path$1){var pe=getSavedStates($),_e=ie&&pe.selectFill||pe.normalFill,Ce=ie&&pe.selectStroke||pe.normalStroke;if(hasFillOrStroke(_e)||hasFillOrStroke(Ce)){ae=ae||{};var $e=ae.style||{};$e.fill==="inherit"?(le=!0,ae=extend({},ae),$e=extend({},$e),$e.fill=_e):!hasFillOrStroke($e.fill)&&hasFillOrStroke(_e)?(le=!0,ae=extend({},ae),$e=extend({},$e),$e.fill=liftColor(_e)):!hasFillOrStroke($e.stroke)&&hasFillOrStroke(Ce)&&(le||(ae=extend({},ae),$e=extend({},$e)),$e.stroke=liftColor(Ce)),ae.style=$e}}if(ae&&ae.z2==null){le||(ae=extend({},ae));var xe=$.z2EmphasisLift;ae.z2=$.z2+(xe??Z2_EMPHASIS_LIFT)}return ae}function createSelectDefaultState($,z,oe){if(oe&&oe.z2==null){oe=extend({},oe);var ae=$.z2SelectLift;oe.z2=$.z2+(ae??Z2_SELECT_LIFT)}return oe}function createBlurDefaultState($,z,oe){var ae=indexOf($.currentStates,z)>=0,ie=$.style.opacity,le=ae?null:getFromStateStyle($,["opacity"],z,{opacity:1});oe=oe||{};var pe=oe.style||{};return pe.opacity==null&&(oe=extend({},oe),pe=extend({opacity:ae?ie:le.opacity*.1},pe),oe.style=pe),oe}function elementStateProxy($,z){var oe=this.states[$];if(this.style){if($==="emphasis")return createEmphasisDefaultState(this,$,z,oe);if($==="blur")return createBlurDefaultState(this,$,oe);if($==="select")return createSelectDefaultState(this,$,oe)}return oe}function setDefaultStateProxy($){$.stateProxy=elementStateProxy;var z=$.getTextContent(),oe=$.getTextGuideLine();z&&(z.stateProxy=elementStateProxy),oe&&(oe.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver($,z){!shouldSilent($,z)&&!$.__highByOuter&&traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut($,z){!shouldSilent($,z)&&!$.__highByOuter&&traverseUpdateState($,singleLeaveEmphasis)}function enterEmphasis($,z){$.__highByOuter|=1<<(z||0),traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasis($,z){!($.__highByOuter&=~(1<<(z||0)))&&traverseUpdateState($,singleLeaveEmphasis)}function enterBlur($){traverseUpdateState($,singleEnterBlur)}function leaveBlur($){traverseUpdateState($,singleLeaveBlur)}function enterSelect($){traverseUpdateState($,singleEnterSelect)}function leaveSelect($){traverseUpdateState($,singleLeaveSelect)}function shouldSilent($,z){return $.__highDownSilentOnTouch&&z.zrByTouch}function allLeaveBlur($){var z=$.getModel(),oe=[],ae=[];z.eachComponent(function(ie,le){var pe=getComponentStates(le),_e=ie==="series",Ce=_e?$.getViewOfSeriesModel(le):$.getViewOfComponentModel(le);!_e&&ae.push(Ce),pe.isBlured&&(Ce.group.traverse(function($e){singleLeaveBlur($e)}),_e&&oe.push(le)),pe.isBlured=!1}),each$c(ae,function(ie){ie&&ie.toggleBlurSeries&&ie.toggleBlurSeries(oe,!1,z)})}function blurSeries($,z,oe,ae){var ie=ae.getModel();oe=oe||"coordinateSystem";function le($e,xe){for(var Ie=0;Ie<xe.length;Ie++){var Ne=$e.getItemGraphicEl(xe[Ie]);Ne&&leaveBlur(Ne)}}if($!=null&&!(!z||z==="none")){var pe=ie.getSeriesByIndex($),_e=pe.coordinateSystem;_e&&_e.master&&(_e=_e.master);var Ce=[];ie.eachSeries(function($e){var xe=pe===$e,Ie=$e.coordinateSystem;Ie&&Ie.master&&(Ie=Ie.master);var Ne=Ie&&_e?Ie===_e:xe;if(!(oe==="series"&&!xe||oe==="coordinateSystem"&&!Ne||z==="series"&&xe)){var Fe=ae.getViewOfSeriesModel($e);if(Fe.group.traverse(function(Lt){singleEnterBlur(Lt)}),isArrayLike(z))le($e.getData(),z);else if(isObject$3(z))for(var ze=keys(z),At=0;At<ze.length;At++)le($e.getData(ze[At]),z[ze[At]]);Ce.push($e),getComponentStates($e).isBlured=!0}}),ie.eachComponent(function($e,xe){if($e!=="series"){var Ie=ae.getViewOfComponentModel(xe);Ie&&Ie.toggleBlurSeries&&Ie.toggleBlurSeries(Ce,!0,ie)}})}}function blurComponent($,z,oe){if(!($==null||z==null)){var ae=oe.getModel().getComponent($,z);if(ae){getComponentStates(ae).isBlured=!0;var ie=oe.getViewOfComponentModel(ae);!ie||!ie.focusBlurEnabled||ie.group.traverse(function(le){singleEnterBlur(le)})}}}function blurSeriesFromHighlightPayload($,z,oe){var ae=$.seriesIndex,ie=$.getData(z.dataType);if(ie){var le=queryDataIndex(ie,z);le=(isArray$1(le)?le[0]:le)||0;var pe=ie.getItemGraphicEl(le);if(!pe)for(var _e=ie.count(),Ce=0;!pe&&Ce<_e;)pe=ie.getItemGraphicEl(Ce++);if(pe){var $e=getECData(pe);blurSeries(ae,$e.focus,$e.blurScope,oe)}else{var xe=$.get(["emphasis","focus"]),Ie=$.get(["emphasis","blurScope"]);xe!=null&&blurSeries(ae,xe,Ie,oe)}}}function findComponentHighDownDispatchers($,z,oe,ae){var ie={focusSelf:!1,dispatchers:null};if($==null||$==="series"||z==null||oe==null)return ie;var le=ae.getModel().getComponent($,z);if(!le)return ie;var pe=ae.getViewOfComponentModel(le);if(!pe||!pe.findHighDownDispatchers)return ie;for(var _e=pe.findHighDownDispatchers(oe),Ce,$e=0;$e<_e.length;$e++)if(getECData(_e[$e]).focus==="self"){Ce=!0;break}return{focusSelf:Ce,dispatchers:_e}}function handleGlobalMouseOverForHighDown($,z,oe){var ae=getECData($),ie=findComponentHighDownDispatchers(ae.componentMainType,ae.componentIndex,ae.componentHighDownName,oe),le=ie.dispatchers,pe=ie.focusSelf;le?(pe&&blurComponent(ae.componentMainType,ae.componentIndex,oe),each$c(le,function(_e){return enterEmphasisWhenMouseOver(_e,z)})):(blurSeries(ae.seriesIndex,ae.focus,ae.blurScope,oe),ae.focus==="self"&&blurComponent(ae.componentMainType,ae.componentIndex,oe),enterEmphasisWhenMouseOver($,z))}function handleGlobalMouseOutForHighDown($,z,oe){allLeaveBlur(oe);var ae=getECData($),ie=findComponentHighDownDispatchers(ae.componentMainType,ae.componentIndex,ae.componentHighDownName,oe).dispatchers;ie?each$c(ie,function(le){return leaveEmphasisWhenMouseOut(le,z)}):leaveEmphasisWhenMouseOut($,z)}function toggleSelectionFromPayload($,z,oe){if(isSelectChangePayload(z)){var ae=z.dataType,ie=$.getData(ae),le=queryDataIndex(ie,z);isArray$1(le)||(le=[le]),$[z.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":z.type===SELECT_ACTION_TYPE?"select":"unselect"](le,ae)}}function updateSeriesElementSelection($){var z=$.getAllData();each$c(z,function(oe){var ae=oe.data,ie=oe.type;ae.eachItemGraphicEl(function(le,pe){$.isSelected(pe,ie)?enterSelect(le):leaveSelect(le)})})}function getAllSelectedIndices($){var z=[];return $.eachSeries(function(oe){var ae=oe.getAllData();each$c(ae,function(ie){ie.data;var le=ie.type,pe=oe.getSelectedDataIndices();if(pe.length>0){var _e={dataIndex:pe,seriesIndex:oe.seriesIndex};le!=null&&(_e.dataType=le),z.push(_e)}})}),z}function enableHoverEmphasis($,z,oe){setAsHighDownDispatcher($,!0),traverseUpdateState($,setDefaultStateProxy),enableHoverFocus($,z,oe)}function disableHoverEmphasis($){setAsHighDownDispatcher($,!1)}function toggleHoverEmphasis($,z,oe,ae){ae?disableHoverEmphasis($):enableHoverEmphasis($,z,oe)}function enableHoverFocus($,z,oe){var ae=getECData($);z!=null?(ae.focus=z,ae.blurScope=oe):ae.focus&&(ae.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel($,z,oe,ae){oe=oe||"itemStyle";for(var ie=0;ie<OTHER_STATES.length;ie++){var le=OTHER_STATES[ie],pe=z.getModel([le,oe]),_e=$.ensureState(le);_e.style=ae?ae(pe):pe[defaultStyleGetterMap[oe]]()}}function setAsHighDownDispatcher($,z){var oe=z===!1,ae=$;$.highDownSilentOnTouch&&(ae.__highDownSilentOnTouch=$.highDownSilentOnTouch),(!oe||ae.__highDownDispatcher)&&(ae.__highByOuter=ae.__highByOuter||0,ae.__highDownDispatcher=!oe)}function isHighDownDispatcher($){return!!($&&$.__highDownDispatcher)}function getHighlightDigit($){var z=_highlightKeyMap[$];return z==null&&_highlightNextDigit<=32&&(z=_highlightKeyMap[$]=_highlightNextDigit++),z}function isSelectChangePayload($){var z=$.type;return z===SELECT_ACTION_TYPE||z===UNSELECT_ACTION_TYPE||z===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload($){var z=$.type;return z===HIGHLIGHT_ACTION_TYPE||z===DOWNPLAY_ACTION_TYPE}function savePathStates($){var z=getSavedStates($);z.normalFill=$.style.fill,z.normalStroke=$.style.stroke;var oe=$.states.select||{};z.selectFill=oe.style&&oe.style.fill||null,z.selectStroke=oe.style&&oe.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath($,z){if(z){var oe=$.data,ae=$.len(),ie,le,pe,_e,Ce,$e,xe=CMD.M,Ie=CMD.C,Ne=CMD.L,Fe=CMD.R,ze=CMD.A,At=CMD.Q;for(pe=0,_e=0;pe<ae;){switch(ie=oe[pe++],_e=pe,le=0,ie){case xe:le=1;break;case Ne:le=1;break;case Ie:le=3;break;case At:le=2;break;case ze:var Lt=z[4],hn=z[5],vn=mathSqrt$2(z[0]*z[0]+z[1]*z[1]),_n=mathSqrt$2(z[2]*z[2]+z[3]*z[3]),bn=mathAtan2(-z[1]/_n,z[0]/vn);oe[pe]*=vn,oe[pe++]+=Lt,oe[pe]*=_n,oe[pe++]+=hn,oe[pe++]*=vn,oe[pe++]*=_n,oe[pe++]+=bn,oe[pe++]+=bn,pe+=2,_e=pe;break;case Fe:$e[0]=oe[pe++],$e[1]=oe[pe++],applyTransform$1($e,$e,z),oe[_e++]=$e[0],oe[_e++]=$e[1],$e[0]+=oe[pe++],$e[1]+=oe[pe++],applyTransform$1($e,$e,z),oe[_e++]=$e[0],oe[_e++]=$e[1]}for(Ce=0;Ce<le;Ce++){var Cn=points[Ce];Cn[0]=oe[pe++],Cn[1]=oe[pe++],applyTransform$1(Cn,Cn,z),oe[_e++]=Cn[0],oe[_e++]=Cn[1]}}$.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag($){return Math.sqrt($[0]*$[0]+$[1]*$[1])}function vRatio($,z){return($[0]*z[0]+$[1]*z[1])/(vMag($)*vMag(z))}function vAngle($,z){return($[0]*z[1]<$[1]*z[0]?-1:1)*Math.acos(vRatio($,z))}function processArc($,z,oe,ae,ie,le,pe,_e,Ce,$e,xe){var Ie=Ce*(PI$3/180),Ne=mathCos$1(Ie)*($-oe)/2+mathSin$1(Ie)*(z-ae)/2,Fe=-1*mathSin$1(Ie)*($-oe)/2+mathCos$1(Ie)*(z-ae)/2,ze=Ne*Ne/(pe*pe)+Fe*Fe/(_e*_e);ze>1&&(pe*=mathSqrt$1(ze),_e*=mathSqrt$1(ze));var At=(ie===le?-1:1)*mathSqrt$1((pe*pe*(_e*_e)-pe*pe*(Fe*Fe)-_e*_e*(Ne*Ne))/(pe*pe*(Fe*Fe)+_e*_e*(Ne*Ne)))||0,Lt=At*pe*Fe/_e,hn=At*-_e*Ne/pe,vn=($+oe)/2+mathCos$1(Ie)*Lt-mathSin$1(Ie)*hn,_n=(z+ae)/2+mathSin$1(Ie)*Lt+mathCos$1(Ie)*hn,bn=vAngle([1,0],[(Ne-Lt)/pe,(Fe-hn)/_e]),Cn=[(Ne-Lt)/pe,(Fe-hn)/_e],En=[(-1*Ne-Lt)/pe,(-1*Fe-hn)/_e],$n=vAngle(Cn,En);if(vRatio(Cn,En)<=-1&&($n=PI$3),vRatio(Cn,En)>=1&&($n=0),$n<0){var wn=Math.round($n/PI$3*1e6)/1e6;$n=PI$3*2+wn%2*PI$3}xe.addData($e,vn,_n,pe,_e,bn,$n,Ie,le)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString($){var z=new PathProxy$1;if(!$)return z;var oe=0,ae=0,ie=oe,le=ae,pe,_e=PathProxy$1.CMD,Ce=$.match(commandReg);if(!Ce)return z;for(var $e=0;$e<Ce.length;$e++){for(var xe=Ce[$e],Ie=xe.charAt(0),Ne=void 0,Fe=xe.match(numberReg)||[],ze=Fe.length,At=0;At<ze;At++)Fe[At]=parseFloat(Fe[At]);for(var Lt=0;Lt<ze;){var hn=void 0,vn=void 0,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=oe,Tn=ae,xn=void 0,kn=void 0;switch(Ie){case"l":oe+=Fe[Lt++],ae+=Fe[Lt++],Ne=_e.L,z.addData(Ne,oe,ae);break;case"L":oe=Fe[Lt++],ae=Fe[Lt++],Ne=_e.L,z.addData(Ne,oe,ae);break;case"m":oe+=Fe[Lt++],ae+=Fe[Lt++],Ne=_e.M,z.addData(Ne,oe,ae),ie=oe,le=ae,Ie="l";break;case"M":oe=Fe[Lt++],ae=Fe[Lt++],Ne=_e.M,z.addData(Ne,oe,ae),ie=oe,le=ae,Ie="L";break;case"h":oe+=Fe[Lt++],Ne=_e.L,z.addData(Ne,oe,ae);break;case"H":oe=Fe[Lt++],Ne=_e.L,z.addData(Ne,oe,ae);break;case"v":ae+=Fe[Lt++],Ne=_e.L,z.addData(Ne,oe,ae);break;case"V":ae=Fe[Lt++],Ne=_e.L,z.addData(Ne,oe,ae);break;case"C":Ne=_e.C,z.addData(Ne,Fe[Lt++],Fe[Lt++],Fe[Lt++],Fe[Lt++],Fe[Lt++],Fe[Lt++]),oe=Fe[Lt-2],ae=Fe[Lt-1];break;case"c":Ne=_e.C,z.addData(Ne,Fe[Lt++]+oe,Fe[Lt++]+ae,Fe[Lt++]+oe,Fe[Lt++]+ae,Fe[Lt++]+oe,Fe[Lt++]+ae),oe+=Fe[Lt-2],ae+=Fe[Lt-1];break;case"S":hn=oe,vn=ae,xn=z.len(),kn=z.data,pe===_e.C&&(hn+=oe-kn[xn-4],vn+=ae-kn[xn-3]),Ne=_e.C,wn=Fe[Lt++],Tn=Fe[Lt++],oe=Fe[Lt++],ae=Fe[Lt++],z.addData(Ne,hn,vn,wn,Tn,oe,ae);break;case"s":hn=oe,vn=ae,xn=z.len(),kn=z.data,pe===_e.C&&(hn+=oe-kn[xn-4],vn+=ae-kn[xn-3]),Ne=_e.C,wn=oe+Fe[Lt++],Tn=ae+Fe[Lt++],oe+=Fe[Lt++],ae+=Fe[Lt++],z.addData(Ne,hn,vn,wn,Tn,oe,ae);break;case"Q":wn=Fe[Lt++],Tn=Fe[Lt++],oe=Fe[Lt++],ae=Fe[Lt++],Ne=_e.Q,z.addData(Ne,wn,Tn,oe,ae);break;case"q":wn=Fe[Lt++]+oe,Tn=Fe[Lt++]+ae,oe+=Fe[Lt++],ae+=Fe[Lt++],Ne=_e.Q,z.addData(Ne,wn,Tn,oe,ae);break;case"T":hn=oe,vn=ae,xn=z.len(),kn=z.data,pe===_e.Q&&(hn+=oe-kn[xn-4],vn+=ae-kn[xn-3]),oe=Fe[Lt++],ae=Fe[Lt++],Ne=_e.Q,z.addData(Ne,hn,vn,oe,ae);break;case"t":hn=oe,vn=ae,xn=z.len(),kn=z.data,pe===_e.Q&&(hn+=oe-kn[xn-4],vn+=ae-kn[xn-3]),oe+=Fe[Lt++],ae+=Fe[Lt++],Ne=_e.Q,z.addData(Ne,hn,vn,oe,ae);break;case"A":_n=Fe[Lt++],bn=Fe[Lt++],Cn=Fe[Lt++],En=Fe[Lt++],$n=Fe[Lt++],wn=oe,Tn=ae,oe=Fe[Lt++],ae=Fe[Lt++],Ne=_e.A,processArc(wn,Tn,oe,ae,En,$n,_n,bn,Cn,Ne,z);break;case"a":_n=Fe[Lt++],bn=Fe[Lt++],Cn=Fe[Lt++],En=Fe[Lt++],$n=Fe[Lt++],wn=oe,Tn=ae,oe+=Fe[Lt++],ae+=Fe[Lt++],Ne=_e.A,processArc(wn,Tn,oe,ae,En,$n,_n,bn,Cn,Ne,z);break}}(Ie==="z"||Ie==="Z")&&(Ne=_e.Z,z.addData(Ne),oe=ie,ae=le),pe=Ne}return z.toStatic(),z}var SVGPath=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.applyTransform=function(oe){},z}(Path$1);function isPathProxy($){return $.setData!=null}function createPathOptions($,z){var oe=createPathProxyFromString($),ae=extend({},z);return ae.buildPath=function(ie){if(isPathProxy(ie)){ie.setData(oe.data);var le=ie.getContext();le&&ie.rebuildPath(le,1)}else{var le=ie;oe.rebuildPath(le,1)}},ae.applyTransform=function(ie){transformPath(oe,ie),this.dirtyShape()},ae}function createFromString($,z){return new SVGPath(createPathOptions($,z))}function extendFromString($,z){var oe=createPathOptions($,z),ae=function(ie){__extends(le,ie);function le(pe){var _e=ie.call(this,pe)||this;return _e.applyTransform=oe.applyTransform,_e.buildPath=oe.buildPath,_e}return le}(SVGPath);return ae}function mergePath$1($,z){for(var oe=[],ae=$.length,ie=0;ie<ae;ie++){var le=$[ie];oe.push(le.getUpdatedPathProxy(!0))}var pe=new Path$1(z);return pe.createPathProxy(),pe.buildPath=function(_e){if(isPathProxy(_e)){_e.appendPath(oe);var Ce=_e.getContext();Ce&&_e.rebuildPath(Ce,1)}},pe}var CircleShape=function(){function $(){this.cx=0,this.cy=0,this.r=0}return $}(),Circle=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new CircleShape},z.prototype.buildPath=function(oe,ae){oe.moveTo(ae.cx+ae.r,ae.cy),oe.arc(ae.cx,ae.cy,ae.r,0,Math.PI*2)},z}(Path$1);Circle.prototype.type="circle";const Circle$1=Circle;var EllipseShape=function(){function $(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return $}(),Ellipse=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new EllipseShape},z.prototype.buildPath=function(oe,ae){var ie=.5522848,le=ae.cx,pe=ae.cy,_e=ae.rx,Ce=ae.ry,$e=_e*ie,xe=Ce*ie;oe.moveTo(le-_e,pe),oe.bezierCurveTo(le-_e,pe-xe,le-$e,pe-Ce,le,pe-Ce),oe.bezierCurveTo(le+$e,pe-Ce,le+_e,pe-xe,le+_e,pe),oe.bezierCurveTo(le+_e,pe+xe,le+$e,pe+Ce,le,pe+Ce),oe.bezierCurveTo(le-$e,pe+Ce,le-_e,pe+xe,le-_e,pe),oe.closePath()},z}(Path$1);Ellipse.prototype.type="ellipse";const Ellipse$1=Ellipse;var PI$2=Math.PI,PI2$1=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$5=Math.max,mathMin$5=Math.min,e=1e-4;function intersect($,z,oe,ae,ie,le,pe,_e){var Ce=oe-$,$e=ae-z,xe=pe-ie,Ie=_e-le,Ne=Ie*Ce-xe*$e;if(!(Ne*Ne<e))return Ne=(xe*(z-le)-Ie*($-ie))/Ne,[$+Ne*Ce,z+Ne*$e]}function computeCornerTangents($,z,oe,ae,ie,le,pe){var _e=$-oe,Ce=z-ae,$e=(pe?le:-le)/mathSqrt(_e*_e+Ce*Ce),xe=$e*Ce,Ie=-$e*_e,Ne=$+xe,Fe=z+Ie,ze=oe+xe,At=ae+Ie,Lt=(Ne+ze)/2,hn=(Fe+At)/2,vn=ze-Ne,_n=At-Fe,bn=vn*vn+_n*_n,Cn=ie-le,En=Ne*At-ze*Fe,$n=(_n<0?-1:1)*mathSqrt(mathMax$5(0,Cn*Cn*bn-En*En)),wn=(En*_n-vn*$n)/bn,Tn=(-En*vn-_n*$n)/bn,xn=(En*_n+vn*$n)/bn,kn=(-En*vn+_n*$n)/bn,An=wn-Lt,On=Tn-hn,Mn=xn-Lt,Fn=kn-hn;return An*An+On*On>Mn*Mn+Fn*Fn&&(wn=xn,Tn=kn),{cx:wn,cy:Tn,x0:-xe,y0:-Ie,x1:wn*(ie/Cn-1),y1:Tn*(ie/Cn-1)}}function normalizeCornerRadius($){var z;if(isArray$1($)){var oe=$.length;if(!oe)return $;oe===1?z=[$[0],$[0],0,0]:oe===2?z=[$[0],$[0],$[1],$[1]]:oe===3?z=$.concat($[2]):z=$}else z=[$,$,$,$];return z}function buildPath$1($,z){var oe,ae=mathMax$5(z.r,0),ie=mathMax$5(z.r0||0,0),le=ae>0,pe=ie>0;if(!(!le&&!pe)){if(le||(ae=ie,ie=0),ie>ae){var _e=ae;ae=ie,ie=_e}var Ce=z.startAngle,$e=z.endAngle;if(!(isNaN(Ce)||isNaN($e))){var xe=z.cx,Ie=z.cy,Ne=!!z.clockwise,Fe=mathAbs($e-Ce),ze=Fe>PI2$1&&Fe%PI2$1;if(ze>e&&(Fe=ze),!(ae>e))$.moveTo(xe,Ie);else if(Fe>PI2$1-e)$.moveTo(xe+ae*mathCos(Ce),Ie+ae*mathSin(Ce)),$.arc(xe,Ie,ae,Ce,$e,!Ne),ie>e&&($.moveTo(xe+ie*mathCos($e),Ie+ie*mathSin($e)),$.arc(xe,Ie,ie,$e,Ce,Ne));else{var At=void 0,Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=void 0,Tn=void 0,xn=void 0,kn=void 0,An=void 0,On=void 0,Mn=void 0,Fn=ae*mathCos(Ce),Dn=ae*mathSin(Ce),Nn=ie*mathCos($e),Vn=ie*mathSin($e),Bn=Fe>e;if(Bn){var zn=z.cornerRadius;zn&&(oe=normalizeCornerRadius(zn),At=oe[0],Lt=oe[1],hn=oe[2],vn=oe[3]);var Xn=mathAbs(ae-ie)/2;if(_n=mathMin$5(Xn,hn),bn=mathMin$5(Xn,vn),Cn=mathMin$5(Xn,At),En=mathMin$5(Xn,Lt),Tn=$n=mathMax$5(_n,bn),xn=wn=mathMax$5(Cn,En),($n>e||wn>e)&&(kn=ae*mathCos($e),An=ae*mathSin($e),On=ie*mathCos(Ce),Mn=ie*mathSin(Ce),Fe<PI$2)){var Un=intersect(Fn,Dn,On,Mn,kn,An,Nn,Vn);if(Un){var Jn=Fn-Un[0],lr=Dn-Un[1],_r=kn-Un[0],ir=An-Un[1],qn=1/mathSin(mathACos((Jn*_r+lr*ir)/(mathSqrt(Jn*Jn+lr*lr)*mathSqrt(_r*_r+ir*ir)))/2),Yn=mathSqrt(Un[0]*Un[0]+Un[1]*Un[1]);Tn=mathMin$5($n,(ae-Yn)/(qn+1)),xn=mathMin$5(wn,(ie-Yn)/(qn-1))}}}if(!Bn)$.moveTo(xe+Fn,Ie+Dn);else if(Tn>e){var Wn=mathMin$5(hn,Tn),tr=mathMin$5(vn,Tn),pr=computeCornerTangents(On,Mn,Fn,Dn,ae,Wn,Ne),Gn=computeCornerTangents(kn,An,Nn,Vn,ae,tr,Ne);$.moveTo(xe+pr.cx+pr.x0,Ie+pr.cy+pr.y0),Tn<$n&&Wn===tr?$.arc(xe+pr.cx,Ie+pr.cy,Tn,mathATan2(pr.y0,pr.x0),mathATan2(Gn.y0,Gn.x0),!Ne):(Wn>0&&$.arc(xe+pr.cx,Ie+pr.cy,Wn,mathATan2(pr.y0,pr.x0),mathATan2(pr.y1,pr.x1),!Ne),$.arc(xe,Ie,ae,mathATan2(pr.cy+pr.y1,pr.cx+pr.x1),mathATan2(Gn.cy+Gn.y1,Gn.cx+Gn.x1),!Ne),tr>0&&$.arc(xe+Gn.cx,Ie+Gn.cy,tr,mathATan2(Gn.y1,Gn.x1),mathATan2(Gn.y0,Gn.x0),!Ne))}else $.moveTo(xe+Fn,Ie+Dn),$.arc(xe,Ie,ae,Ce,$e,!Ne);if(!(ie>e)||!Bn)$.lineTo(xe+Nn,Ie+Vn);else if(xn>e){var Wn=mathMin$5(At,xn),tr=mathMin$5(Lt,xn),pr=computeCornerTangents(Nn,Vn,kn,An,ie,-tr,Ne),Gn=computeCornerTangents(Fn,Dn,On,Mn,ie,-Wn,Ne);$.lineTo(xe+pr.cx+pr.x0,Ie+pr.cy+pr.y0),xn<wn&&Wn===tr?$.arc(xe+pr.cx,Ie+pr.cy,xn,mathATan2(pr.y0,pr.x0),mathATan2(Gn.y0,Gn.x0),!Ne):(tr>0&&$.arc(xe+pr.cx,Ie+pr.cy,tr,mathATan2(pr.y0,pr.x0),mathATan2(pr.y1,pr.x1),!Ne),$.arc(xe,Ie,ie,mathATan2(pr.cy+pr.y1,pr.cx+pr.x1),mathATan2(Gn.cy+Gn.y1,Gn.cx+Gn.x1),Ne),Wn>0&&$.arc(xe+Gn.cx,Ie+Gn.cy,Wn,mathATan2(Gn.y1,Gn.x1),mathATan2(Gn.y0,Gn.x0),!Ne))}else $.lineTo(xe+Nn,Ie+Vn),$.arc(xe,Ie,ie,$e,Ce,Ne)}$.closePath()}}}var SectorShape=function(){function $(){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 $}(),Sector=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new SectorShape},z.prototype.buildPath=function(oe,ae){buildPath$1(oe,ae)},z.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},z}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return $}(),Ring=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new RingShape},z.prototype.buildPath=function(oe,ae){var ie=ae.cx,le=ae.cy,pe=Math.PI*2;oe.moveTo(ie+ae.r,le),oe.arc(ie,le,ae.r,0,pe,!1),oe.moveTo(ie+ae.r0,le),oe.arc(ie,le,ae.r0,0,pe,!0)},z}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier($,z,oe,ae){var ie=[],le=[],pe=[],_e=[],Ce,$e,xe,Ie;if(ae){xe=[1/0,1/0],Ie=[-1/0,-1/0];for(var Ne=0,Fe=$.length;Ne<Fe;Ne++)min$1(xe,xe,$[Ne]),max$1(Ie,Ie,$[Ne]);min$1(xe,xe,ae[0]),max$1(Ie,Ie,ae[1])}for(var Ne=0,Fe=$.length;Ne<Fe;Ne++){var ze=$[Ne];if(oe)Ce=$[Ne?Ne-1:Fe-1],$e=$[(Ne+1)%Fe];else if(Ne===0||Ne===Fe-1){ie.push(clone$2($[Ne]));continue}else Ce=$[Ne-1],$e=$[Ne+1];sub(le,$e,Ce),scale$2(le,le,z);var At=distance(ze,Ce),Lt=distance(ze,$e),hn=At+Lt;hn!==0&&(At/=hn,Lt/=hn),scale$2(pe,le,-At),scale$2(_e,le,Lt);var vn=add([],ze,pe),_n=add([],ze,_e);ae&&(max$1(vn,vn,xe),min$1(vn,vn,Ie),max$1(_n,_n,xe),min$1(_n,_n,Ie)),ie.push(vn),ie.push(_n)}return oe&&ie.push(ie.shift()),ie}function buildPath($,z,oe){var ae=z.smooth,ie=z.points;if(ie&&ie.length>=2){if(ae){var le=smoothBezier(ie,ae,oe,z.smoothConstraint);$.moveTo(ie[0][0],ie[0][1]);for(var pe=ie.length,_e=0;_e<(oe?pe:pe-1);_e++){var Ce=le[_e*2],$e=le[_e*2+1],xe=ie[(_e+1)%pe];$.bezierCurveTo(Ce[0],Ce[1],$e[0],$e[1],xe[0],xe[1])}}else{$.moveTo(ie[0][0],ie[0][1]);for(var _e=1,Ie=ie.length;_e<Ie;_e++)$.lineTo(ie[_e][0],ie[_e][1])}oe&&$.closePath()}}var PolygonShape=function(){function $(){this.points=null,this.smooth=0,this.smoothConstraint=null}return $}(),Polygon=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new PolygonShape},z.prototype.buildPath=function(oe,ae){buildPath(oe,ae,!0)},z}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function $(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return $}(),Polyline=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new PolylineShape},z.prototype.buildPath=function(oe,ae){buildPath(oe,ae,!1)},z}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function $(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return $}(),Line=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new LineShape},z.prototype.buildPath=function(oe,ae){var ie,le,pe,_e;if(this.subPixelOptimize){var Ce=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,ae,this.style);ie=Ce.x1,le=Ce.y1,pe=Ce.x2,_e=Ce.y2}else ie=ae.x1,le=ae.y1,pe=ae.x2,_e=ae.y2;var $e=ae.percent;$e!==0&&(oe.moveTo(ie,le),$e<1&&(pe=ie*(1-$e)+pe*$e,_e=le*(1-$e)+_e*$e),oe.lineTo(pe,_e))},z.prototype.pointAt=function(oe){var ae=this.shape;return[ae.x1*(1-oe)+ae.x2*oe,ae.y1*(1-oe)+ae.y2*oe]},z}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function $(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return $}();function someVectorAt($,z,oe){var ae=$.cpx2,ie=$.cpy2;return ae!=null||ie!=null?[(oe?cubicDerivativeAt:cubicAt)($.x1,$.cpx1,$.cpx2,$.x2,z),(oe?cubicDerivativeAt:cubicAt)($.y1,$.cpy1,$.cpy2,$.y2,z)]:[(oe?quadraticDerivativeAt:quadraticAt)($.x1,$.cpx1,$.x2,z),(oe?quadraticDerivativeAt:quadraticAt)($.y1,$.cpy1,$.y2,z)]}var BezierCurve=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new BezierCurveShape},z.prototype.buildPath=function(oe,ae){var ie=ae.x1,le=ae.y1,pe=ae.x2,_e=ae.y2,Ce=ae.cpx1,$e=ae.cpy1,xe=ae.cpx2,Ie=ae.cpy2,Ne=ae.percent;Ne!==0&&(oe.moveTo(ie,le),xe==null||Ie==null?(Ne<1&&(quadraticSubdivide(ie,Ce,pe,Ne,out),Ce=out[1],pe=out[2],quadraticSubdivide(le,$e,_e,Ne,out),$e=out[1],_e=out[2]),oe.quadraticCurveTo(Ce,$e,pe,_e)):(Ne<1&&(cubicSubdivide(ie,Ce,xe,pe,Ne,out),Ce=out[1],xe=out[2],pe=out[3],cubicSubdivide(le,$e,Ie,_e,Ne,out),$e=out[1],Ie=out[2],_e=out[3]),oe.bezierCurveTo(Ce,$e,xe,Ie,pe,_e)))},z.prototype.pointAt=function(oe){return someVectorAt(this.shape,oe,!1)},z.prototype.tangentAt=function(oe){var ae=someVectorAt(this.shape,oe,!0);return normalize$1(ae,ae)},z}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),Arc=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new ArcShape},z.prototype.buildPath=function(oe,ae){var ie=ae.cx,le=ae.cy,pe=Math.max(ae.r,0),_e=ae.startAngle,Ce=ae.endAngle,$e=ae.clockwise,xe=Math.cos(_e),Ie=Math.sin(_e);oe.moveTo(xe*pe+ie,Ie*pe+le),oe.arc(ie,le,pe,_e,Ce,!$e)},z}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="compound",oe}return z.prototype._updatePathDirty=function(){for(var oe=this.shape.paths,ae=this.shapeChanged(),ie=0;ie<oe.length;ie++)ae=ae||oe[ie].shapeChanged();ae&&this.dirtyShape()},z.prototype.beforeBrush=function(){this._updatePathDirty();for(var oe=this.shape.paths||[],ae=this.getGlobalScale(),ie=0;ie<oe.length;ie++)oe[ie].path||oe[ie].createPathProxy(),oe[ie].path.setScale(ae[0],ae[1],oe[ie].segmentIgnoreThreshold)},z.prototype.buildPath=function(oe,ae){for(var ie=ae.paths||[],le=0;le<ie.length;le++)ie[le].buildPath(oe,ie[le].shape,!0)},z.prototype.afterBrush=function(){for(var oe=this.shape.paths||[],ae=0;ae<oe.length;ae++)oe[ae].pathUpdated()},z.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},z}(Path$1);const CompoundPath$1=CompoundPath;var Gradient=function(){function $(z){this.colorStops=z||[]}return $.prototype.addColorStop=function(z,oe){this.colorStops.push({offset:z,color:oe})},$}();const Gradient$1=Gradient;var LinearGradient=function($){__extends(z,$);function z(oe,ae,ie,le,pe,_e){var Ce=$.call(this,pe)||this;return Ce.x=oe??0,Ce.y=ae??0,Ce.x2=ie??1,Ce.y2=le??0,Ce.type="linear",Ce.global=_e||!1,Ce}return z}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function($){__extends(z,$);function z(oe,ae,ie,le,pe){var _e=$.call(this,le)||this;return _e.x=oe??.5,_e.y=ae??.5,_e.r=ie??.5,_e.type="radial",_e.global=pe||!1,_e}return z}(Gradient$1);const RadialGradient$1=RadialGradient;var extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function $(z,oe){this._corners=[],this._axes=[],this._origin=[0,0];for(var ae=0;ae<4;ae++)this._corners[ae]=new Point$1;for(var ae=0;ae<2;ae++)this._axes[ae]=new Point$1;z&&this.fromBoundingRect(z,oe)}return $.prototype.fromBoundingRect=function(z,oe){var ae=this._corners,ie=this._axes,le=z.x,pe=z.y,_e=le+z.width,Ce=pe+z.height;if(ae[0].set(le,pe),ae[1].set(_e,pe),ae[2].set(_e,Ce),ae[3].set(le,Ce),oe)for(var $e=0;$e<4;$e++)ae[$e].transform(oe);Point$1.sub(ie[0],ae[1],ae[0]),Point$1.sub(ie[1],ae[3],ae[0]),ie[0].normalize(),ie[1].normalize();for(var $e=0;$e<2;$e++)this._origin[$e]=ie[$e].dot(ae[0])},$.prototype.intersect=function(z,oe){var ae=!0,ie=!oe;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,z,minTv,maxTv,ie,1)&&(ae=!1,ie)||!this._intersectCheckOneSide(z,this,minTv,maxTv,ie,-1)&&(ae=!1,ie)||ie||Point$1.copy(oe,ae?minTv:maxTv),ae},$.prototype._intersectCheckOneSide=function(z,oe,ae,ie,le,pe){for(var _e=!0,Ce=0;Ce<2;Ce++){var $e=this._axes[Ce];if(this._getProjMinMaxOnAxis(Ce,z._corners,extent),this._getProjMinMaxOnAxis(Ce,oe._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(_e=!1,le)return _e;var xe=Math.abs(extent2[0]-extent[1]),Ie=Math.abs(extent[0]-extent2[1]);Math.min(xe,Ie)>ie.len()&&(xe<Ie?Point$1.scale(ie,$e,-xe*pe):Point$1.scale(ie,$e,Ie*pe))}else if(ae){var xe=Math.abs(extent2[0]-extent[1]),Ie=Math.abs(extent[0]-extent2[1]);Math.min(xe,Ie)<ae.len()&&(xe<Ie?Point$1.scale(ae,$e,xe*pe):Point$1.scale(ae,$e,-Ie*pe))}}return _e},$.prototype._getProjMinMaxOnAxis=function(z,oe,ae){for(var ie=this._axes[z],le=this._origin,pe=oe[0].dot(ie)+le[z],_e=pe,Ce=pe,$e=1;$e<oe.length;$e++){var xe=oe[$e].dot(ie)+le[z];_e=Math.min(xe,_e),Ce=Math.max(xe,Ce)}ae[0]=_e,ae[1]=Ce},$}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.notClear=!0,oe.incremental=!0,oe._displayables=[],oe._temporaryDisplayables=[],oe._cursor=0,oe}return z.prototype.traverse=function(oe,ae){oe.call(ae,this)},z.prototype.useStyle=function(){this.style={}},z.prototype.getCursor=function(){return this._cursor},z.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},z.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},z.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},z.prototype.addDisplayable=function(oe,ae){ae?this._temporaryDisplayables.push(oe):this._displayables.push(oe),this.markRedraw()},z.prototype.addDisplayables=function(oe,ae){ae=ae||!1;for(var ie=0;ie<oe.length;ie++)this.addDisplayable(oe[ie],ae)},z.prototype.getDisplayables=function(){return this._displayables},z.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},z.prototype.eachPendingDisplayable=function(oe){for(var ae=this._cursor;ae<this._displayables.length;ae++)oe&&oe(this._displayables[ae]);for(var ae=0;ae<this._temporaryDisplayables.length;ae++)oe&&oe(this._temporaryDisplayables[ae])},z.prototype.update=function(){this.updateTransform();for(var oe=this._cursor;oe<this._displayables.length;oe++){var ae=this._displayables[oe];ae.parent=this,ae.update(),ae.parent=null}for(var oe=0;oe<this._temporaryDisplayables.length;oe++){var ae=this._temporaryDisplayables[oe];ae.parent=this,ae.update(),ae.parent=null}},z.prototype.getBoundingRect=function(){if(!this._rect){for(var oe=new BoundingRect$1(1/0,1/0,-1/0,-1/0),ae=0;ae<this._displayables.length;ae++){var ie=this._displayables[ae],le=ie.getBoundingRect().clone();ie.needLocalTransform()&&le.applyTransform(ie.getLocalTransform(m$2)),oe.union(le)}this._rect=oe}return this._rect},z.prototype.contain=function(oe,ae){var ie=this.transformCoordToLocal(oe,ae),le=this.getBoundingRect();if(le.contain(ie[0],ie[1]))for(var pe=0;pe<this._displayables.length;pe++){var _e=this._displayables[pe];if(_e.contain(oe,ae))return!0}return!1},z}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig($,z,oe,ae,ie){var le;if(z&&z.ecModel){var pe=z.ecModel.getUpdatePayload();le=pe&&pe.animation}var _e=z&&z.isAnimationEnabled(),Ce=$==="update";if(_e){var $e=void 0,xe=void 0,Ie=void 0;ae?($e=retrieve2(ae.duration,200),xe=retrieve2(ae.easing,"cubicOut"),Ie=0):($e=z.getShallow(Ce?"animationDurationUpdate":"animationDuration"),xe=z.getShallow(Ce?"animationEasingUpdate":"animationEasing"),Ie=z.getShallow(Ce?"animationDelayUpdate":"animationDelay")),le&&(le.duration!=null&&($e=le.duration),le.easing!=null&&(xe=le.easing),le.delay!=null&&(Ie=le.delay)),isFunction(Ie)&&(Ie=Ie(oe,ie)),isFunction($e)&&($e=$e(oe));var Ne={duration:$e||0,delay:Ie,easing:xe};return Ne}else return null}function animateOrSetProps($,z,oe,ae,ie,le,pe){var _e=!1,Ce;isFunction(ie)?(pe=le,le=ie,ie=null):isObject$3(ie)&&(le=ie.cb,pe=ie.during,_e=ie.isFrom,Ce=ie.removeOpt,ie=ie.dataIndex);var $e=$==="leave";$e||z.stopAnimation("leave");var xe=getAnimationConfig($,ae,ie,$e?Ce||{}:null,ae&&ae.getAnimationDelayParams?ae.getAnimationDelayParams(z,ie):null);if(xe&&xe.duration>0){var Ie=xe.duration,Ne=xe.delay,Fe=xe.easing,ze={duration:Ie,delay:Ne||0,easing:Fe,done:le,force:!!le||!!pe,setToFinal:!$e,scope:$,during:pe};_e?z.animateFrom(oe,ze):z.animateTo(oe,ze)}else z.stopAnimation(),!_e&&z.attr(oe),pe&&pe(1),le&&le()}function updateProps$1($,z,oe,ae,ie,le){animateOrSetProps("update",$,z,oe,ae,ie,le)}function initProps($,z,oe,ae,ie,le){animateOrSetProps("enter",$,z,oe,ae,ie,le)}function isElementRemoved($){if(!$.__zr)return!0;for(var z=0;z<$.animators.length;z++){var oe=$.animators[z];if(oe.scope==="leave")return!0}return!1}function removeElement($,z,oe,ae,ie,le){isElementRemoved($)||animateOrSetProps("leave",$,z,oe,ae,ie,le)}function fadeOutDisplayable($,z,oe,ae){$.removeTextContent(),$.removeTextGuideLine(),removeElement($,{style:{opacity:0}},z,oe,ae)}function removeElementWithFadeOut($,z,oe){function ae(){$.parent&&$.parent.remove($)}$.isGroup?$.traverse(function(ie){ie.isGroup||fadeOutDisplayable(ie,z,oe,ae)}):fadeOutDisplayable($,z,oe,ae)}function saveOldStyle($){transitionStore($).oldStyle=$.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape($){return Path$1.extend($)}var extendPathFromString=extendFromString;function extendPath($,z){return extendPathFromString($,z)}function registerShape($,z){_customShapeMap[$]=z}function getShapeClass($){if(_customShapeMap.hasOwnProperty($))return _customShapeMap[$]}function makePath($,z,oe,ae){var ie=createFromString($,z);return oe&&(ae==="center"&&(oe=centerGraphic(oe,ie.getBoundingRect())),resizePath(ie,oe)),ie}function makeImage($,z,oe){var ae=new ZRImage$1({style:{image:$,x:z.x,y:z.y,width:z.width,height:z.height},onload:function(ie){if(oe==="center"){var le={width:ie.width,height:ie.height};ae.setStyle(centerGraphic(z,le))}}});return ae}function centerGraphic($,z){var oe=z.width/z.height,ae=$.height*oe,ie;ae<=$.width?ie=$.height:(ae=$.width,ie=ae/oe);var le=$.x+$.width/2,pe=$.y+$.height/2;return{x:le-ae/2,y:pe-ie/2,width:ae,height:ie}}var mergePath=mergePath$1;function resizePath($,z){if($.applyTransform){var oe=$.getBoundingRect(),ae=oe.calculateTransform(z);$.applyTransform(ae)}}function subPixelOptimizeLine($,z){return subPixelOptimizeLine$1($,$,{lineWidth:z}),$}function subPixelOptimizeRect($){return subPixelOptimizeRect$1($.shape,$.shape,$.style),$}var subPixelOptimize=subPixelOptimize$1;function getTransform$1($,z){for(var oe=identity([]);$&&$!==z;)mul(oe,$.getLocalTransform(),oe),$=$.parent;return oe}function applyTransform($,z,oe){return z&&!isArrayLike(z)&&(z=Transformable$1.getLocalTransform(z)),oe&&(z=invert([],z)),applyTransform$1([],$,z)}function transformDirection($,z,oe){var ae=z[4]===0||z[5]===0||z[0]===0?1:Math.abs(2*z[4]/z[0]),ie=z[4]===0||z[5]===0||z[2]===0?1:Math.abs(2*z[4]/z[2]),le=[$==="left"?-ae:$==="right"?ae:0,$==="top"?-ie:$==="bottom"?ie:0];return le=applyTransform(le,z,oe),Math.abs(le[0])>Math.abs(le[1])?le[0]>0?"right":"left":le[1]>0?"bottom":"top"}function isNotGroup($){return!$.isGroup}function isPath($){return $.shape!=null}function groupTransition($,z,oe){if(!$||!z)return;function ae(pe){var _e={};return pe.traverse(function(Ce){isNotGroup(Ce)&&Ce.anid&&(_e[Ce.anid]=Ce)}),_e}function ie(pe){var _e={x:pe.x,y:pe.y,rotation:pe.rotation};return isPath(pe)&&(_e.shape=extend({},pe.shape)),_e}var le=ae($);z.traverse(function(pe){if(isNotGroup(pe)&&pe.anid){var _e=le[pe.anid];if(_e){var Ce=ie(pe);pe.attr(ie(_e)),updateProps$1(pe,Ce,oe,getECData(pe).dataIndex)}}})}function clipPointsByRect($,z){return map$2($,function(oe){var ae=oe[0];ae=mathMax$4(ae,z.x),ae=mathMin$4(ae,z.x+z.width);var ie=oe[1];return ie=mathMax$4(ie,z.y),ie=mathMin$4(ie,z.y+z.height),[ae,ie]})}function clipRectByRect($,z){var oe=mathMax$4($.x,z.x),ae=mathMin$4($.x+$.width,z.x+z.width),ie=mathMax$4($.y,z.y),le=mathMin$4($.y+$.height,z.y+z.height);if(ae>=oe&&le>=ie)return{x:oe,y:ie,width:ae-oe,height:le-ie}}function createIcon($,z,oe){var ae=extend({rectHover:!0},z),ie=ae.style={strokeNoScale:!0};if(oe=oe||{x:-1,y:-1,width:2,height:2},$)return $.indexOf("image://")===0?(ie.image=$.slice(8),defaults(ie,oe),new ZRImage$1(ae)):makePath($.replace("path://",""),ae,oe,"center")}function linePolygonIntersect($,z,oe,ae,ie){for(var le=0,pe=ie[ie.length-1];le<ie.length;le++){var _e=ie[le];if(lineLineIntersect($,z,oe,ae,_e[0],_e[1],pe[0],pe[1]))return!0;pe=_e}}function lineLineIntersect($,z,oe,ae,ie,le,pe,_e){var Ce=oe-$,$e=ae-z,xe=pe-ie,Ie=_e-le,Ne=crossProduct2d(xe,Ie,Ce,$e);if(nearZero(Ne))return!1;var Fe=$-ie,ze=z-le,At=crossProduct2d(Fe,ze,Ce,$e)/Ne;if(At<0||At>1)return!1;var Lt=crossProduct2d(Fe,ze,xe,Ie)/Ne;return!(Lt<0||Lt>1)}function crossProduct2d($,z,oe,ae){return $*ae-oe*z}function nearZero($){return $<=1e-6&&$>=-1e-6}function setTooltipConfig($){var z=$.itemTooltipOption,oe=$.componentModel,ae=$.itemName,ie=isString(z)?{formatter:z}:z,le=oe.mainType,pe=oe.componentIndex,_e={componentType:le,name:ae,$vars:["name"]};_e[le+"Index"]=pe;var Ce=$.formatterParamsExtra;Ce&&each$c(keys(Ce),function(xe){hasOwn(_e,xe)||(_e[xe]=Ce[xe],_e.$vars.push(xe))});var $e=getECData($.el);$e.componentMainType=le,$e.componentIndex=pe,$e.tooltipConfig={name:ae,option:defaults({content:ae,formatterParams:_e},ie)}}function traverseElement($,z){var oe;$.isGroup&&(oe=z($)),oe||$.traverse(z)}function traverseElements($,z){if($)if(isArray$1($))for(var oe=0;oe<$.length;oe++)traverseElement($[oe],z);else traverseElement($,z)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$1);registerShape("rect",Rect$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=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,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText($,z){for(var oe=0;oe<SPECIAL_STATES.length;oe++){var ae=SPECIAL_STATES[oe],ie=z[ae],le=$.ensureState(ae);le.style=le.style||{},le.style.text=ie}var pe=$.currentStates.slice();$.clearStates(!0),$.setStyle({text:z.normal}),$.useStates(pe,!0)}function getLabelText($,z,oe){var ae=$.labelFetcher,ie=$.labelDataIndex,le=$.labelDimIndex,pe=z.normal,_e;ae&&(_e=ae.getFormattedLabel(ie,"normal",null,le,pe&&pe.get("formatter"),oe!=null?{interpolatedValue:oe}:null)),_e==null&&(_e=isFunction($.defaultText)?$.defaultText(ie,$,oe):$.defaultText);for(var Ce={normal:_e},$e=0;$e<SPECIAL_STATES.length;$e++){var xe=SPECIAL_STATES[$e],Ie=z[xe];Ce[xe]=retrieve2(ae?ae.getFormattedLabel(ie,xe,null,le,Ie&&Ie.get("formatter")):null,_e)}return Ce}function setLabelStyle($,z,oe,ae){oe=oe||EMPTY_OBJ;for(var ie=$ instanceof ZRText$1,le=!1,pe=0;pe<DISPLAY_STATES.length;pe++){var _e=z[DISPLAY_STATES[pe]];if(_e&&_e.getShallow("show")){le=!0;break}}var Ce=ie?$:$.getTextContent();if(le){ie||(Ce||(Ce=new ZRText$1,$.setTextContent(Ce)),$.stateProxy&&(Ce.stateProxy=$.stateProxy));var $e=getLabelText(oe,z),xe=z.normal,Ie=!!xe.getShallow("show"),Ne=createTextStyle$1(xe,ae&&ae.normal,oe,!1,!ie);Ne.text=$e.normal,ie||$.setTextConfig(createTextConfig(xe,oe,!1));for(var pe=0;pe<SPECIAL_STATES.length;pe++){var Fe=SPECIAL_STATES[pe],_e=z[Fe];if(_e){var ze=Ce.ensureState(Fe),At=!!retrieve2(_e.getShallow("show"),Ie);if(At!==Ie&&(ze.ignore=!At),ze.style=createTextStyle$1(_e,ae&&ae[Fe],oe,!0,!ie),ze.style.text=$e[Fe],!ie){var Lt=$.ensureState(Fe);Lt.textConfig=createTextConfig(_e,oe,!0)}}}Ce.silent=!!xe.getShallow("silent"),Ce.style.x!=null&&(Ne.x=Ce.style.x),Ce.style.y!=null&&(Ne.y=Ce.style.y),Ce.ignore=!Ie,Ce.useStyle(Ne),Ce.dirty(),oe.enableTextSetter&&(labelInner(Ce).setLabelText=function(hn){var vn=getLabelText(oe,z,hn);setLabelText(Ce,vn)})}else Ce&&(Ce.ignore=!0);$.dirty()}function getLabelStatesModels($,z){z=z||"label";for(var oe={normal:$.getModel(z)},ae=0;ae<SPECIAL_STATES.length;ae++){var ie=SPECIAL_STATES[ae];oe[ie]=$.getModel([ie,z])}return oe}function createTextStyle$1($,z,oe,ae,ie){var le={};return setTextStyleCommon(le,$,oe,ae,ie),z&&extend(le,z),le}function createTextConfig($,z,oe){z=z||{};var ae={},ie,le=$.getShallow("rotate"),pe=retrieve2($.getShallow("distance"),oe?null:5),_e=$.getShallow("offset");return ie=$.getShallow("position")||(oe?null:"inside"),ie==="outside"&&(ie=z.defaultOutsidePosition||"top"),ie!=null&&(ae.position=ie),_e!=null&&(ae.offset=_e),le!=null&&(le*=Math.PI/180,ae.rotation=le),pe!=null&&(ae.distance=pe),ae.outsideFill=$.get("color")==="inherit"?z.inheritColor||null:"auto",ae}function setTextStyleCommon($,z,oe,ae,ie){oe=oe||EMPTY_OBJ;var le=z.ecModel,pe=le&&le.option.textStyle,_e=getRichItemNames(z),Ce;if(_e){Ce={};for(var $e in _e)if(_e.hasOwnProperty($e)){var xe=z.getModel(["rich",$e]);setTokenTextStyle(Ce[$e]={},xe,pe,oe,ae,ie,!1,!0)}}Ce&&($.rich=Ce);var Ie=z.get("overflow");Ie&&($.overflow=Ie);var Ne=z.get("minMargin");Ne!=null&&($.margin=Ne),setTokenTextStyle($,z,pe,oe,ae,ie,!0,!1)}function getRichItemNames($){for(var z;$&&$!==$.ecModel;){var oe=($.option||EMPTY_OBJ).rich;if(oe){z=z||{};for(var ae=keys(oe),ie=0;ie<ae.length;ie++){var le=ae[ie];z[le]=1}}$=$.parentModel}return z}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle($,z,oe,ae,ie,le,pe,_e){oe=!ie&&oe||EMPTY_OBJ;var Ce=ae&&ae.inheritColor,$e=z.getShallow("color"),xe=z.getShallow("textBorderColor"),Ie=retrieve2(z.getShallow("opacity"),oe.opacity);($e==="inherit"||$e==="auto")&&(Ce?$e=Ce:$e=null),(xe==="inherit"||xe==="auto")&&(Ce?xe=Ce:xe=null),le||($e=$e||oe.color,xe=xe||oe.textBorderColor),$e!=null&&($.fill=$e),xe!=null&&($.stroke=xe);var Ne=retrieve2(z.getShallow("textBorderWidth"),oe.textBorderWidth);Ne!=null&&($.lineWidth=Ne);var Fe=retrieve2(z.getShallow("textBorderType"),oe.textBorderType);Fe!=null&&($.lineDash=Fe);var ze=retrieve2(z.getShallow("textBorderDashOffset"),oe.textBorderDashOffset);ze!=null&&($.lineDashOffset=ze),!ie&&Ie==null&&!_e&&(Ie=ae&&ae.defaultOpacity),Ie!=null&&($.opacity=Ie),!ie&&!le&&$.fill==null&&ae.inheritColor&&($.fill=ae.inheritColor);for(var At=0;At<TEXT_PROPS_WITH_GLOBAL.length;At++){var Lt=TEXT_PROPS_WITH_GLOBAL[At],hn=retrieve2(z.getShallow(Lt),oe[Lt]);hn!=null&&($[Lt]=hn)}for(var At=0;At<TEXT_PROPS_SELF.length;At++){var Lt=TEXT_PROPS_SELF[At],hn=z.getShallow(Lt);hn!=null&&($[Lt]=hn)}if($.verticalAlign==null){var vn=z.getShallow("baseline");vn!=null&&($.verticalAlign=vn)}if(!pe||!ae.disableBox){for(var At=0;At<TEXT_PROPS_BOX.length;At++){var Lt=TEXT_PROPS_BOX[At],hn=z.getShallow(Lt);hn!=null&&($[Lt]=hn)}var _n=z.getShallow("borderType");_n!=null&&($.borderDash=_n),($.backgroundColor==="auto"||$.backgroundColor==="inherit")&&Ce&&($.backgroundColor=Ce),($.borderColor==="auto"||$.borderColor==="inherit")&&Ce&&($.borderColor=Ce)}}function getFont($,z){var oe=z&&z.getModel("textStyle");return trim$1([$.fontStyle||oe&&oe.getShallow("fontStyle")||"",$.fontWeight||oe&&oe.getShallow("fontWeight")||"",($.fontSize||oe&&oe.getShallow("fontSize")||12)+"px",$.fontFamily||oe&&oe.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation($,z,oe,ae){if($){var ie=labelInner($);ie.prevValue=ie.value,ie.value=oe;var le=z.normal;ie.valueAnimation=le.get("valueAnimation"),ie.valueAnimation&&(ie.precision=le.get("precision"),ie.defaultInterpolatedText=ae,ie.statesModels=z)}}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function $(){}return $.prototype.getTextColor=function(z){var oe=this.ecModel;return this.getShallow("color")||(!z&&oe?oe.get(PATH_COLOR):null)},$.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},$.prototype.getTextRect=function(z){for(var oe={text:z,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},ae=0;ae<textStyleParams.length;ae++)oe[textStyleParams[ae]]=this.getShallow(textStyleParams[ae]);return tmpText.useStyle(oe),tmpText.update(),tmpText.getBoundingRect()},$}();const TextStyleMixin$1=TextStyleMixin;var LINE_STYLE_KEY_MAP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],getLineStyle=makeStyleMapper(LINE_STYLE_KEY_MAP),LineStyleMixin=function(){function $(){}return $.prototype.getLineStyle=function(z){return getLineStyle(this,z)},$}(),ITEM_STYLE_KEY_MAP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],getItemStyle=makeStyleMapper(ITEM_STYLE_KEY_MAP),ItemStyleMixin=function(){function $(){}return $.prototype.getItemStyle=function(z,oe){return getItemStyle(this,z,oe)},$}(),Model=function(){function $(z,oe,ae){this.parentModel=oe,this.ecModel=ae,this.option=z}return $.prototype.init=function(z,oe,ae){},$.prototype.mergeOption=function(z,oe){merge(this.option,z,!0)},$.prototype.get=function(z,oe){return z==null?this.option:this._doGet(this.parsePath(z),!oe&&this.parentModel)},$.prototype.getShallow=function(z,oe){var ae=this.option,ie=ae==null?ae:ae[z];if(ie==null&&!oe){var le=this.parentModel;le&&(ie=le.getShallow(z))}return ie},$.prototype.getModel=function(z,oe){var ae=z!=null,ie=ae?this.parsePath(z):null,le=ae?this._doGet(ie):this.option;return oe=oe||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(ie)),new $(le,oe,this.ecModel)},$.prototype.isEmpty=function(){return this.option==null},$.prototype.restoreData=function(){},$.prototype.clone=function(){var z=this.constructor;return new z(clone$3(this.option))},$.prototype.parsePath=function(z){return typeof z=="string"?z.split("."):z},$.prototype.resolveParentPath=function(z){return z},$.prototype.isAnimationEnabled=function(){if(!env$1.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},$.prototype._doGet=function(z,oe){var ae=this.option;if(!z)return ae;for(var ie=0;ie<z.length&&!(z[ie]&&(ae=ae&&typeof ae=="object"?ae[z[ie]]:null,ae==null));ie++);return ae==null&&oe&&(ae=oe._doGet(this.resolveParentPath(z),oe.parentModel)),ae},$}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);const Model$1=Model;var base=Math.round(Math.random()*10);function getUID($){return[$||"",base++].join("_")}function enableSubTypeDefaulter($){var z={};$.registerSubTypeDefaulter=function(oe,ae){var ie=parseClassType(oe);z[ie.main]=ae},$.determineSubType=function(oe,ae){var ie=ae.type;if(!ie){var le=parseClassType(oe).main;$.hasSubTypes(oe)&&z[le]&&(ie=z[le](ae))}return ie}}function enableTopologicalTravel($,z){$.topologicalTravel=function(le,pe,_e,Ce){if(!le.length)return;var $e=oe(pe),xe=$e.graph,Ie=$e.noEntryList,Ne={};for(each$c(le,function(vn){Ne[vn]=!0});Ie.length;){var Fe=Ie.pop(),ze=xe[Fe],At=!!Ne[Fe];At&&(_e.call(Ce,Fe,ze.originalDeps.slice()),delete Ne[Fe]),each$c(ze.successor,At?hn:Lt)}each$c(Ne,function(){var vn="";throw new Error(vn)});function Lt(vn){xe[vn].entryCount--,xe[vn].entryCount===0&&Ie.push(vn)}function hn(vn){Ne[vn]=!0,Lt(vn)}};function oe(le){var pe={},_e=[];return each$c(le,function(Ce){var $e=ae(pe,Ce),xe=$e.originalDeps=z(Ce),Ie=ie(xe,le);$e.entryCount=Ie.length,$e.entryCount===0&&_e.push(Ce),each$c(Ie,function(Ne){indexOf($e.predecessor,Ne)<0&&$e.predecessor.push(Ne);var Fe=ae(pe,Ne);indexOf(Fe.successor,Ne)<0&&Fe.successor.push(Ce)})}),{graph:pe,noEntryList:_e}}function ae(le,pe){return le[pe]||(le[pe]={predecessor:[],successor:[]}),le[pe]}function ie(le,pe){var _e=[];return each$c(le,function(Ce){indexOf(pe,Ce)>=0&&_e.push(Ce)}),_e}}function inheritDefaultOption($,z){return merge(merge({},$,!0),z,!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 $=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return $.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale($,z){$=$.toUpperCase(),localeModels[$]=new Model$1(z),localeStorage[$]=z}function createLocaleObject($){if(isString($)){var z=localeStorage[$.toUpperCase()]||{};return $===LOCALE_ZH||$===LOCALE_EN?clone$3(z):merge(clone$3(z),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3($),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel($){return localeModels[$]}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($,z){return $+="","0000".substr(0,z-$.length)+$}function getPrimaryTimeUnit($){switch($){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return $}}function isPrimaryTimeUnit($){return $===getPrimaryTimeUnit($)}function getDefaultFormatPrecisionOfInterval($){switch($){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1($,z,oe,ae){var ie=parseDate($),le=ie[fullYearGetterName(oe)](),pe=ie[monthGetterName(oe)]()+1,_e=Math.floor((pe-1)/3)+1,Ce=ie[dateGetterName(oe)](),$e=ie["get"+(oe?"UTC":"")+"Day"](),xe=ie[hoursGetterName(oe)](),Ie=(xe-1)%12+1,Ne=ie[minutesGetterName(oe)](),Fe=ie[secondsGetterName(oe)](),ze=ie[millisecondsGetterName(oe)](),At=ae instanceof Model$1?ae:getLocaleModel(ae||SYSTEM_LANG)||getDefaultLocaleModel(),Lt=At.getModel("time"),hn=Lt.get("month"),vn=Lt.get("monthAbbr"),_n=Lt.get("dayOfWeek"),bn=Lt.get("dayOfWeekAbbr");return(z||"").replace(/{yyyy}/g,le+"").replace(/{yy}/g,le%100+"").replace(/{Q}/g,_e+"").replace(/{MMMM}/g,hn[pe-1]).replace(/{MMM}/g,vn[pe-1]).replace(/{MM}/g,pad(pe,2)).replace(/{M}/g,pe+"").replace(/{dd}/g,pad(Ce,2)).replace(/{d}/g,Ce+"").replace(/{eeee}/g,_n[$e]).replace(/{ee}/g,bn[$e]).replace(/{e}/g,$e+"").replace(/{HH}/g,pad(xe,2)).replace(/{H}/g,xe+"").replace(/{hh}/g,pad(Ie+"",2)).replace(/{h}/g,Ie+"").replace(/{mm}/g,pad(Ne,2)).replace(/{m}/g,Ne+"").replace(/{ss}/g,pad(Fe,2)).replace(/{s}/g,Fe+"").replace(/{SSS}/g,pad(ze,3)).replace(/{S}/g,ze+"")}function leveledFormat($,z,oe,ae,ie){var le=null;if(isString(oe))le=oe;else if(isFunction(oe))le=oe($.value,z,{level:$.level});else{var pe=extend({},defaultLeveledFormatter);if($.level>0)for(var _e=0;_e<primaryTimeUnits.length;++_e)pe[primaryTimeUnits[_e]]="{primary|"+pe[primaryTimeUnits[_e]]+"}";var Ce=oe?oe.inherit===!1?oe:defaults(oe,pe):pe,$e=getUnitFromValue($.value,ie);if(Ce[$e])le=Ce[$e];else if(Ce.inherit){for(var xe=timeUnits.indexOf($e),_e=xe-1;_e>=0;--_e)if(Ce[$e]){le=Ce[$e];break}le=le||pe.none}if(isArray$1(le)){var Ie=$.level==null?0:$.level>=0?$.level:le.length+$.level;Ie=Math.min(Ie,le.length-1),le=le[Ie]}}return format$1(new Date($.value),le,ie,ae)}function getUnitFromValue($,z){var oe=parseDate($),ae=oe[monthGetterName(z)]()+1,ie=oe[dateGetterName(z)](),le=oe[hoursGetterName(z)](),pe=oe[minutesGetterName(z)](),_e=oe[secondsGetterName(z)](),Ce=oe[millisecondsGetterName(z)](),$e=Ce===0,xe=$e&&_e===0,Ie=xe&&pe===0,Ne=Ie&&le===0,Fe=Ne&&ie===1,ze=Fe&&ae===1;return ze?"year":Fe?"month":Ne?"day":Ie?"hour":xe?"minute":$e?"second":"millisecond"}function getUnitValue($,z,oe){var ae=isNumber($)?parseDate($):$;switch(z=z||getUnitFromValue($,oe),z){case"year":return ae[fullYearGetterName(oe)]();case"half-year":return ae[monthGetterName(oe)]()>=6?1:0;case"quarter":return Math.floor((ae[monthGetterName(oe)]()+1)/4);case"month":return ae[monthGetterName(oe)]();case"day":return ae[dateGetterName(oe)]();case"half-day":return ae[hoursGetterName(oe)]()/24;case"hour":return ae[hoursGetterName(oe)]();case"minute":return ae[minutesGetterName(oe)]();case"second":return ae[secondsGetterName(oe)]();case"millisecond":return ae[millisecondsGetterName(oe)]()}}function fullYearGetterName($){return $?"getUTCFullYear":"getFullYear"}function monthGetterName($){return $?"getUTCMonth":"getMonth"}function dateGetterName($){return $?"getUTCDate":"getDate"}function hoursGetterName($){return $?"getUTCHours":"getHours"}function minutesGetterName($){return $?"getUTCMinutes":"getMinutes"}function secondsGetterName($){return $?"getUTCSeconds":"getSeconds"}function millisecondsGetterName($){return $?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName($){return $?"setUTCFullYear":"setFullYear"}function monthSetterName($){return $?"setUTCMonth":"setMonth"}function dateSetterName($){return $?"setUTCDate":"setDate"}function hoursSetterName($){return $?"setUTCHours":"setHours"}function minutesSetterName($){return $?"setUTCMinutes":"setMinutes"}function secondsSetterName($){return $?"setUTCSeconds":"setSeconds"}function millisecondsSetterName($){return $?"setUTCMilliseconds":"setMilliseconds"}function getTextRect($,z,oe,ae,ie,le,pe,_e){var Ce=new ZRText$1({style:{text:$,font:z,align:oe,verticalAlign:ae,padding:ie,rich:le,overflow:pe?"truncate":null,lineHeight:_e}});return Ce.getBoundingRect()}function addCommas($){if(!isNumeric($))return isString($)?$:"-";var z=($+"").split(".");return z[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(z.length>1?"."+z[1]:"")}function toCamelCase($,z){return $=($||"").toLowerCase().replace(/-(.)/g,function(oe,ae){return ae.toUpperCase()}),z&&$&&($=$.charAt(0).toUpperCase()+$.slice(1)),$}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable($,z,oe){var ae="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function ie(xe){return xe&&trim$1(xe)?xe:"-"}function le(xe){return!!(xe!=null&&!isNaN(xe)&&isFinite(xe))}var pe=z==="time",_e=$ instanceof Date;if(pe||_e){var Ce=pe?parseDate($):$;if(isNaN(+Ce)){if(_e)return"-"}else return format$1(Ce,ae,oe)}if(z==="ordinal")return isStringSafe($)?ie($):isNumber($)&&le($)?$+"":"-";var $e=numericToNumber($);return le($e)?addCommas($e):isStringSafe($)?ie($):typeof $=="boolean"?$+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function($,z){return"{"+$+(z??"")+"}"};function formatTpl($,z,oe){isArray$1(z)||(z=[z]);var ae=z.length;if(!ae)return"";for(var ie=z[0].$vars||[],le=0;le<ie.length;le++){var pe=TPL_VAR_ALIAS[le];$=$.replace(wrapVar(pe),wrapVar(pe,0))}for(var _e=0;_e<ae;_e++)for(var Ce=0;Ce<ie.length;Ce++){var $e=z[_e][ie[Ce]];$=$.replace(wrapVar(TPL_VAR_ALIAS[Ce],_e),oe?encodeHTML($e):$e)}return $}function getTooltipMarker($,z){var oe=isString($)?{color:$,extraCssText:z}:$||{},ae=oe.color,ie=oe.type;z=oe.extraCssText;var le=oe.renderMode||"html";if(!ae)return"";if(le==="html")return ie==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(ae)+";"+(z||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(ae)+";"+(z||"")+'"></span>';var pe=oe.markerId||"markerX";return{renderMode:le,content:"{"+pe+"|} ",style:ie==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:ae}:{width:10,height:10,borderRadius:5,backgroundColor:ae}}}function formatTime($,z,oe){($==="week"||$==="month"||$==="quarter"||$==="half-year"||$==="year")&&($=`MM-dd
|
||
yyyy`);var ae=parseDate(z),ie=oe?"getUTC":"get",le=ae[ie+"FullYear"](),pe=ae[ie+"Month"]()+1,_e=ae[ie+"Date"](),Ce=ae[ie+"Hours"](),$e=ae[ie+"Minutes"](),xe=ae[ie+"Seconds"](),Ie=ae[ie+"Milliseconds"]();return $=$.replace("MM",pad(pe,2)).replace("M",pe).replace("yyyy",le).replace("yy",pad(le%100+"",2)).replace("dd",pad(_e,2)).replace("d",_e).replace("hh",pad(Ce,2)).replace("h",Ce).replace("mm",pad($e,2)).replace("m",$e).replace("ss",pad(xe,2)).replace("s",xe).replace("SSS",pad(Ie,3)),$}function capitalFirst($){return $&&$.charAt(0).toUpperCase()+$.substr(1)}function convertToColorString($,z){return z=z||"transparent",isString($)?$:isObject$3($)&&$.colorStops&&($.colorStops[0]||{}).color||z}function windowOpen($,z){if(z==="_blank"||z==="blank"){var oe=window.open();oe.opener=null,oe.location.href=$}else window.open($,z)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout($,z,oe,ae,ie){var le=0,pe=0;ae==null&&(ae=1/0),ie==null&&(ie=1/0);var _e=0;z.eachChild(function(Ce,$e){var xe=Ce.getBoundingRect(),Ie=z.childAt($e+1),Ne=Ie&&Ie.getBoundingRect(),Fe,ze;if($==="horizontal"){var At=xe.width+(Ne?-Ne.x+xe.x:0);Fe=le+At,Fe>ae||Ce.newline?(le=0,Fe=At,pe+=_e+oe,_e=xe.height):_e=Math.max(_e,xe.height)}else{var Lt=xe.height+(Ne?-Ne.y+xe.y:0);ze=pe+Lt,ze>ie||Ce.newline?(le+=_e+oe,pe=0,ze=Lt,_e=xe.width):_e=Math.max(_e,xe.width)}Ce.newline||(Ce.x=le,Ce.y=pe,Ce.markRedraw(),$==="horizontal"?le=Fe+oe:pe=ze+oe)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect($,z,oe){oe=normalizeCssArray(oe||0);var ae=z.width,ie=z.height,le=parsePercent($.left,ae),pe=parsePercent($.top,ie),_e=parsePercent($.right,ae),Ce=parsePercent($.bottom,ie),$e=parsePercent($.width,ae),xe=parsePercent($.height,ie),Ie=oe[2]+oe[0],Ne=oe[1]+oe[3],Fe=$.aspect;switch(isNaN($e)&&($e=ae-_e-Ne-le),isNaN(xe)&&(xe=ie-Ce-Ie-pe),Fe!=null&&(isNaN($e)&&isNaN(xe)&&(Fe>ae/ie?$e=ae*.8:xe=ie*.8),isNaN($e)&&($e=Fe*xe),isNaN(xe)&&(xe=$e/Fe)),isNaN(le)&&(le=ae-_e-$e-Ne),isNaN(pe)&&(pe=ie-Ce-xe-Ie),$.left||$.right){case"center":le=ae/2-$e/2-oe[3];break;case"right":le=ae-$e-Ne;break}switch($.top||$.bottom){case"middle":case"center":pe=ie/2-xe/2-oe[0];break;case"bottom":pe=ie-xe-Ie;break}le=le||0,pe=pe||0,isNaN($e)&&($e=ae-Ne-le-(_e||0)),isNaN(xe)&&(xe=ie-Ie-pe-(Ce||0));var ze=new BoundingRect$1(le+oe[3],pe+oe[0],$e,xe);return ze.margin=oe,ze}function positionElement($,z,oe,ae,ie,le){var pe=!ie||!ie.hv||ie.hv[0],_e=!ie||!ie.hv||ie.hv[1],Ce=ie&&ie.boundingMode||"all";if(le=le||$,le.x=$.x,le.y=$.y,!pe&&!_e)return!1;var $e;if(Ce==="raw")$e=$.type==="group"?new BoundingRect$1(0,0,+z.width||0,+z.height||0):$.getBoundingRect();else if($e=$.getBoundingRect(),$.needLocalTransform()){var xe=$.getLocalTransform();$e=$e.clone(),$e.applyTransform(xe)}var Ie=getLayoutRect(defaults({width:$e.width,height:$e.height},z),oe,ae),Ne=pe?Ie.x-$e.x:0,Fe=_e?Ie.y-$e.y:0;return Ce==="raw"?(le.x=Ne,le.y=Fe):(le.x+=Ne,le.y+=Fe),le===$&&$.markRedraw(),!0}function fetchLayoutMode($){var z=$.layoutMode||$.constructor.layoutMode;return isObject$3(z)?z:z?{type:z}:null}function mergeLayoutParam($,z,oe){var ae=oe&&oe.ignoreSize;!isArray$1(ae)&&(ae=[ae,ae]);var ie=pe(HV_NAMES[0],0),le=pe(HV_NAMES[1],1);$e(HV_NAMES[0],$,ie),$e(HV_NAMES[1],$,le);function pe(xe,Ie){var Ne={},Fe=0,ze={},At=0,Lt=2;if(each$b(xe,function(_n){ze[_n]=$[_n]}),each$b(xe,function(_n){_e(z,_n)&&(Ne[_n]=ze[_n]=z[_n]),Ce(Ne,_n)&&Fe++,Ce(ze,_n)&&At++}),ae[Ie])return Ce(z,xe[1])?ze[xe[2]]=null:Ce(z,xe[2])&&(ze[xe[1]]=null),ze;if(At===Lt||!Fe)return ze;if(Fe>=Lt)return Ne;for(var hn=0;hn<xe.length;hn++){var vn=xe[hn];if(!_e(Ne,vn)&&_e($,vn)){Ne[vn]=$[vn];break}}return Ne}function _e(xe,Ie){return xe.hasOwnProperty(Ie)}function Ce(xe,Ie){return xe[Ie]!=null&&xe[Ie]!=="auto"}function $e(xe,Ie,Ne){each$b(xe,function(Fe){Ie[Fe]=Ne[Fe]})}}function getLayoutParams($){return copyLayoutParams({},$)}function copyLayoutParams($,z){return z&&$&&each$b(LOCATION_PARAMS,function(oe){z.hasOwnProperty(oe)&&($[oe]=z[oe])}),$}var inner$c=makeInner(),ComponentModel=function($){__extends(z,$);function z(oe,ae,ie){var le=$.call(this,oe,ae,ie)||this;return le.uid=getUID("ec_cpt_model"),le}return z.prototype.init=function(oe,ae,ie){this.mergeDefaultAndTheme(oe,ie)},z.prototype.mergeDefaultAndTheme=function(oe,ae){var ie=fetchLayoutMode(this),le=ie?getLayoutParams(oe):{},pe=ae.getTheme();merge(oe,pe.get(this.mainType)),merge(oe,this.getDefaultOption()),ie&&mergeLayoutParam(oe,le,ie)},z.prototype.mergeOption=function(oe,ae){merge(this.option,oe,!0);var ie=fetchLayoutMode(this);ie&&mergeLayoutParam(this.option,oe,ie)},z.prototype.optionUpdated=function(oe,ae){},z.prototype.getDefaultOption=function(){var oe=this.constructor;if(!isExtendedClass(oe))return oe.defaultOption;var ae=inner$c(this);if(!ae.defaultOption){for(var ie=[],le=oe;le;){var pe=le.prototype.defaultOption;pe&&ie.push(pe),le=le.superClass}for(var _e={},Ce=ie.length-1;Ce>=0;Ce--)_e=merge(_e,ie[Ce],!0);ae.defaultOption=_e}return ae.defaultOption},z.prototype.getReferringComponents=function(oe,ae){var ie=oe+"Index",le=oe+"Id";return queryReferringComponents(this.ecModel,oe,{index:this.get(ie,!0),id:this.get(le,!0)},ae)},z.prototype.getBoxLayoutParams=function(){var oe=this;return{left:oe.get("left"),top:oe.get("top"),right:oe.get("right"),bottom:oe.get("bottom"),width:oe.get("width"),height:oe.get("height")}},z.prototype.getZLevelKey=function(){return""},z.prototype.setZLevel=function(oe){this.option.zlevel=oe},z.protoInitialize=function(){var oe=z.prototype;oe.type="component",oe.id="",oe.name="",oe.mainType="",oe.subType="",oe.componentIndex=0}(),z}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies($){var z=[];return each$c(ComponentModel.getClassesByMainType($),function(oe){z=z.concat(oe.dependencies||oe.prototype.dependencies||[])}),z=map$2(z,function(oe){return parseClassType(oe).main}),$!=="dataset"&&indexOf(z,"dataset")<=0&&z.unshift("dataset"),z}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($){innerGlobalModel($).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys($,z,oe){var ae={},ie=querySeriesUpstreamDatasetModel(z);if(!ie||!$)return ae;var le=[],pe=[],_e=z.ecModel,Ce=innerGlobalModel(_e).datasetMap,$e=ie.uid+"_"+oe.seriesLayoutBy,xe,Ie;$=$.slice(),each$c($,function(At,Lt){var hn=isObject$3(At)?At:$[Lt]={name:At};hn.type==="ordinal"&&xe==null&&(xe=Lt,Ie=ze(hn)),ae[hn.name]=[]});var Ne=Ce.get($e)||Ce.set($e,{categoryWayDim:Ie,valueWayDim:0});each$c($,function(At,Lt){var hn=At.name,vn=ze(At);if(xe==null){var _n=Ne.valueWayDim;Fe(ae[hn],_n,vn),Fe(pe,_n,vn),Ne.valueWayDim+=vn}else if(xe===Lt)Fe(ae[hn],0,vn),Fe(le,0,vn);else{var _n=Ne.categoryWayDim;Fe(ae[hn],_n,vn),Fe(pe,_n,vn),Ne.categoryWayDim+=vn}});function Fe(At,Lt,hn){for(var vn=0;vn<hn;vn++)At.push(Lt+vn)}function ze(At){var Lt=At.dimsDef;return Lt?Lt.length:1}return le.length&&(ae.itemName=le),pe.length&&(ae.seriesName=pe),ae}function makeSeriesEncodeForNameBased($,z,oe){var ae={},ie=querySeriesUpstreamDatasetModel($);if(!ie)return ae;var le=z.sourceFormat,pe=z.dimensionsDefine,_e;(le===SOURCE_FORMAT_OBJECT_ROWS||le===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(pe,function(xe,Ie){(isObject$3(xe)?xe.name:xe)==="name"&&(_e=Ie)});var Ce=function(){for(var xe={},Ie={},Ne=[],Fe=0,ze=Math.min(5,oe);Fe<ze;Fe++){var At=doGuessOrdinal(z.data,le,z.seriesLayoutBy,pe,z.startIndex,Fe);Ne.push(At);var Lt=At===BE_ORDINAL.Not;if(Lt&&xe.v==null&&Fe!==_e&&(xe.v=Fe),(xe.n==null||xe.n===xe.v||!Lt&&Ne[xe.n]===BE_ORDINAL.Not)&&(xe.n=Fe),hn(xe)&&Ne[xe.n]!==BE_ORDINAL.Not)return xe;Lt||(At===BE_ORDINAL.Might&&Ie.v==null&&Fe!==_e&&(Ie.v=Fe),(Ie.n==null||Ie.n===Ie.v)&&(Ie.n=Fe))}function hn(vn){return vn.v!=null&&vn.n!=null}return hn(xe)?xe:hn(Ie)?Ie:null}();if(Ce){ae.value=[Ce.v];var $e=_e??Ce.n;ae.itemName=[$e],ae.seriesName=[$e]}return ae}function querySeriesUpstreamDatasetModel($){var z=$.get("data",!0);if(!z)return queryReferringComponents($.ecModel,"dataset",{index:$.get("datasetIndex",!0),id:$.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels($){return!$.get("transform",!0)&&!$.get("fromTransformResult",!0)?[]:queryReferringComponents($.ecModel,"dataset",{index:$.get("fromDatasetIndex",!0),id:$.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal($,z){return doGuessOrdinal($.data,$.sourceFormat,$.seriesLayoutBy,$.dimensionsDefine,$.startIndex,z)}function doGuessOrdinal($,z,oe,ae,ie,le){var pe,_e=5;if(isTypedArray($))return BE_ORDINAL.Not;var Ce,$e;if(ae){var xe=ae[le];isObject$3(xe)?(Ce=xe.name,$e=xe.type):isString(xe)&&(Ce=xe)}if($e!=null)return $e==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(z===SOURCE_FORMAT_ARRAY_ROWS){var Ie=$;if(oe===SERIES_LAYOUT_BY_ROW){for(var Ne=Ie[le],Fe=0;Fe<(Ne||[]).length&&Fe<_e;Fe++)if((pe=bn(Ne[ie+Fe]))!=null)return pe}else for(var Fe=0;Fe<Ie.length&&Fe<_e;Fe++){var ze=Ie[ie+Fe];if(ze&&(pe=bn(ze[le]))!=null)return pe}}else if(z===SOURCE_FORMAT_OBJECT_ROWS){var At=$;if(!Ce)return BE_ORDINAL.Not;for(var Fe=0;Fe<At.length&&Fe<_e;Fe++){var Lt=At[Fe];if(Lt&&(pe=bn(Lt[Ce]))!=null)return pe}}else if(z===SOURCE_FORMAT_KEYED_COLUMNS){var hn=$;if(!Ce)return BE_ORDINAL.Not;var Ne=hn[Ce];if(!Ne||isTypedArray(Ne))return BE_ORDINAL.Not;for(var Fe=0;Fe<Ne.length&&Fe<_e;Fe++)if((pe=bn(Ne[Fe]))!=null)return pe}else if(z===SOURCE_FORMAT_ORIGINAL)for(var vn=$,Fe=0;Fe<vn.length&&Fe<_e;Fe++){var Lt=vn[Fe],_n=getDataItemValue(Lt);if(!isArray$1(_n))return BE_ORDINAL.Not;if((pe=bn(_n[le]))!=null)return pe}function bn(Cn){var En=isString(Cn);if(Cn!=null&&isFinite(Cn)&&Cn!=="")return En?BE_ORDINAL.Might:BE_ORDINAL.Not;if(En&&Cn!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator($,z){assert(internalOptionCreatorMap.get($)==null&&z),internalOptionCreatorMap.set($,z)}function concatInternalOptions($,z,oe){var ae=internalOptionCreatorMap.get(z);if(!ae)return oe;var ie=ae($);return ie?oe.concat(ie):oe}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function $(){}return $.prototype.getColorFromPalette=function(z,oe,ae){var ie=normalizeToArray(this.get("color",!0)),le=this.get("colorLayer",!0);return getFromPalette(this,innerColor,ie,le,z,oe,ae)},$.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},$}();function getNearestPalette($,z){for(var oe=$.length,ae=0;ae<oe;ae++)if($[ae].length>z)return $[ae];return $[oe-1]}function getFromPalette($,z,oe,ae,ie,le,pe){le=le||$;var _e=z(le),Ce=_e.paletteIdx||0,$e=_e.paletteNameMap=_e.paletteNameMap||{};if($e.hasOwnProperty(ie))return $e[ie];var xe=pe==null||!ae?oe:getNearestPalette(ae,pe);if(xe=xe||oe,!(!xe||!xe.length)){var Ie=xe[Ce];return ie&&($e[ie]=Ie),_e.paletteIdx=(Ce+1)%xe.length,Ie}}function clearPalette($,z){z($).paletteIdx=0,z($).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(oe,ae,ie,le,pe,_e){le=le||{},this.option=null,this._theme=new Model$1(le),this._locale=new Model$1(pe),this._optionManager=_e},z.prototype.setOption=function(oe,ae,ie){var le=normalizeSetOptionInput(ae);this._optionManager.setOption(oe,ie,le),this._resetOption(null,le)},z.prototype.resetOption=function(oe,ae){return this._resetOption(oe,normalizeSetOptionInput(ae))},z.prototype._resetOption=function(oe,ae){var ie=!1,le=this._optionManager;if(!oe||oe==="recreate"){var pe=le.mountOption(oe==="recreate");!this.option||oe==="recreate"?initBase(this,pe):(this.restoreData(),this._mergeOption(pe,ae)),ie=!0}if((oe==="timeline"||oe==="media")&&this.restoreData(),!oe||oe==="recreate"||oe==="timeline"){var _e=le.getTimelineOption(this);_e&&(ie=!0,this._mergeOption(_e,ae))}if(!oe||oe==="recreate"||oe==="media"){var Ce=le.getMediaOption(this);Ce.length&&each$c(Ce,function($e){ie=!0,this._mergeOption($e,ae)},this)}return ie},z.prototype.mergeOption=function(oe){this._mergeOption(oe,null)},z.prototype._mergeOption=function(oe,ae){var ie=this.option,le=this._componentsMap,pe=this._componentsCount,_e=[],Ce=createHashMap(),$e=ae&&ae.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(oe,function(Ie,Ne){Ie!=null&&(ComponentModel$1.hasClass(Ne)?Ne&&(_e.push(Ne),Ce.set(Ne,!0)):ie[Ne]=ie[Ne]==null?clone$3(Ie):merge(ie[Ne],Ie,!0))}),$e&&$e.each(function(Ie,Ne){ComponentModel$1.hasClass(Ne)&&!Ce.get(Ne)&&(_e.push(Ne),Ce.set(Ne,!0))}),ComponentModel$1.topologicalTravel(_e,ComponentModel$1.getAllClassMainTypes(),xe,this);function xe(Ie){var Ne=concatInternalOptions(this,Ie,normalizeToArray(oe[Ie])),Fe=le.get(Ie),ze=Fe?$e&&$e.get(Ie)?"replaceMerge":"normalMerge":"replaceAll",At=mappingToExists(Fe,Ne,ze);setComponentTypeToKeyInfo(At,Ie,ComponentModel$1),ie[Ie]=null,le.set(Ie,null),pe.set(Ie,0);var Lt=[],hn=[],vn=0,_n;each$c(At,function(bn,Cn){var En=bn.existing,$n=bn.newOption;if(!$n)En&&(En.mergeOption({},this),En.optionUpdated({},!1));else{var wn=Ie==="series",Tn=ComponentModel$1.getClass(Ie,bn.keyInfo.subType,!wn);if(!Tn)return;if(Ie==="tooltip"){if(_n)return;_n=!0}if(En&&En.constructor===Tn)En.name=bn.keyInfo.name,En.mergeOption($n,this),En.optionUpdated($n,!1);else{var xn=extend({componentIndex:Cn},bn.keyInfo);En=new Tn($n,this,this,xn),extend(En,xn),bn.brandNew&&(En.__requireNewView=!0),En.init($n,this,this),En.optionUpdated(null,!0)}}En?(Lt.push(En.option),hn.push(En),vn++):(Lt.push(void 0),hn.push(void 0))},this),ie[Ie]=Lt,le.set(Ie,hn),pe.set(Ie,vn),Ie==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},z.prototype.getOption=function(){var oe=clone$3(this.option);return each$c(oe,function(ae,ie){if(ComponentModel$1.hasClass(ie)){for(var le=normalizeToArray(ae),pe=le.length,_e=!1,Ce=pe-1;Ce>=0;Ce--)le[Ce]&&!isComponentIdInternal(le[Ce])?_e=!0:(le[Ce]=null,!_e&&pe--);le.length=pe,oe[ie]=le}}),delete oe[OPTION_INNER_KEY],oe},z.prototype.getTheme=function(){return this._theme},z.prototype.getLocaleModel=function(){return this._locale},z.prototype.setUpdatePayload=function(oe){this._payload=oe},z.prototype.getUpdatePayload=function(){return this._payload},z.prototype.getComponent=function(oe,ae){var ie=this._componentsMap.get(oe);if(ie){var le=ie[ae||0];if(le)return le;if(ae==null){for(var pe=0;pe<ie.length;pe++)if(ie[pe])return ie[pe]}}},z.prototype.queryComponents=function(oe){var ae=oe.mainType;if(!ae)return[];var ie=oe.index,le=oe.id,pe=oe.name,_e=this._componentsMap.get(ae);if(!_e||!_e.length)return[];var Ce;return ie!=null?(Ce=[],each$c(normalizeToArray(ie),function($e){_e[$e]&&Ce.push(_e[$e])})):le!=null?Ce=queryByIdOrName("id",le,_e):pe!=null?Ce=queryByIdOrName("name",pe,_e):Ce=filter(_e,function($e){return!!$e}),filterBySubType(Ce,oe)},z.prototype.findComponents=function(oe){var ae=oe.query,ie=oe.mainType,le=_e(ae),pe=le?this.queryComponents(le):filter(this._componentsMap.get(ie),function($e){return!!$e});return Ce(filterBySubType(pe,oe));function _e($e){var xe=ie+"Index",Ie=ie+"Id",Ne=ie+"Name";return $e&&($e[xe]!=null||$e[Ie]!=null||$e[Ne]!=null)?{mainType:ie,index:$e[xe],id:$e[Ie],name:$e[Ne]}:null}function Ce($e){return oe.filter?filter($e,oe.filter):$e}},z.prototype.eachComponent=function(oe,ae,ie){var le=this._componentsMap;if(isFunction(oe)){var pe=ae,_e=oe;le.each(function(Ie,Ne){for(var Fe=0;Ie&&Fe<Ie.length;Fe++){var ze=Ie[Fe];ze&&_e.call(pe,Ne,ze,ze.componentIndex)}})}else for(var Ce=isString(oe)?le.get(oe):isObject$3(oe)?this.findComponents(oe):null,$e=0;Ce&&$e<Ce.length;$e++){var xe=Ce[$e];xe&&ae.call(ie,xe,xe.componentIndex)}},z.prototype.getSeriesByName=function(oe){var ae=convertOptionIdName(oe,null);return filter(this._componentsMap.get("series"),function(ie){return!!ie&&ae!=null&&ie.name===ae})},z.prototype.getSeriesByIndex=function(oe){return this._componentsMap.get("series")[oe]},z.prototype.getSeriesByType=function(oe){return filter(this._componentsMap.get("series"),function(ae){return!!ae&&ae.subType===oe})},z.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(oe){return!!oe})},z.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},z.prototype.eachSeries=function(oe,ae){assertSeriesInitialized(this),each$c(this._seriesIndices,function(ie){var le=this._componentsMap.get("series")[ie];oe.call(ae,le,ie)},this)},z.prototype.eachRawSeries=function(oe,ae){each$c(this._componentsMap.get("series"),function(ie){ie&&oe.call(ae,ie,ie.componentIndex)})},z.prototype.eachSeriesByType=function(oe,ae,ie){assertSeriesInitialized(this),each$c(this._seriesIndices,function(le){var pe=this._componentsMap.get("series")[le];pe.subType===oe&&ae.call(ie,pe,le)},this)},z.prototype.eachRawSeriesByType=function(oe,ae,ie){return each$c(this.getSeriesByType(oe),ae,ie)},z.prototype.isSeriesFiltered=function(oe){return assertSeriesInitialized(this),this._seriesIndicesMap.get(oe.componentIndex)==null},z.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},z.prototype.filterSeries=function(oe,ae){assertSeriesInitialized(this);var ie=[];each$c(this._seriesIndices,function(le){var pe=this._componentsMap.get("series")[le];oe.call(ae,pe,le)&&ie.push(le)},this),this._seriesIndices=ie,this._seriesIndicesMap=createHashMap(ie)},z.prototype.restoreData=function(oe){reCreateSeriesIndices(this);var ae=this._componentsMap,ie=[];ae.each(function(le,pe){ComponentModel$1.hasClass(pe)&&ie.push(pe)}),ComponentModel$1.topologicalTravel(ie,ComponentModel$1.getAllClassMainTypes(),function(le){each$c(ae.get(le),function(pe){pe&&(le!=="series"||!isNotTargetSeries(pe,oe))&&pe.restoreData()})})},z.internalField=function(){reCreateSeriesIndices=function(oe){var ae=oe._seriesIndices=[];each$c(oe._componentsMap.get("series"),function(ie){ie&&ae.push(ie.componentIndex)}),oe._seriesIndicesMap=createHashMap(ae)},assertSeriesInitialized=function(oe){},initBase=function(oe,ae){oe.option={},oe.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,oe._componentsMap=createHashMap({series:[]}),oe._componentsCount=createHashMap();var ie=ae.aria;isObject$3(ie)&&ie.enabled==null&&(ie.enabled=!0),mergeTheme(ae,oe._theme.option),merge(ae,globalDefault,!1),oe._mergeOption(ae,null)}}(),z}(Model$1);function isNotTargetSeries($,z){if(z){var oe=z.seriesIndex,ae=z.seriesId,ie=z.seriesName;return oe!=null&&$.componentIndex!==oe||ae!=null&&$.id!==ae||ie!=null&&$.name!==ie}}function mergeTheme($,z){var oe=$.color&&!$.colorLayer;each$c(z,function(ae,ie){ie==="colorLayer"&&oe||ComponentModel$1.hasClass(ie)||(typeof ae=="object"?$[ie]=$[ie]?merge($[ie],ae,!1):clone$3(ae):$[ie]==null&&($[ie]=ae))})}function queryByIdOrName($,z,oe){if(isArray$1(z)){var ae=createHashMap();return each$c(z,function(le){if(le!=null){var pe=convertOptionIdName(le,null);pe!=null&&ae.set(le,!0)}}),filter(oe,function(le){return le&&ae.get(le[$])})}else{var ie=convertOptionIdName(z,null);return filter(oe,function(le){return le&&ie!=null&&le[$]===ie})}}function filterBySubType($,z){return z.hasOwnProperty("subType")?filter($,function(oe){return oe&&oe.subType===z.subType}):$}function normalizeSetOptionInput($){var z=createHashMap();return $&&each$c(normalizeToArray($.replaceMerge),function(oe){z.set(oe,!0)}),{replaceMergeMainTypeMap:z}}mixin(GlobalModel,PaletteMixin);const GlobalModel$1=GlobalModel;var availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function $(z){each$c(availableMethods,function(oe){this[oe]=bind$1(z[oe],z)},this)}return $}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function $(){this._coordinateSystems=[]}return $.prototype.create=function(z,oe){var ae=[];each$c(coordinateSystemCreators,function(ie,le){var pe=ie.create(z,oe);ae=ae.concat(pe||[])}),this._coordinateSystems=ae},$.prototype.update=function(z,oe){each$c(this._coordinateSystems,function(ae){ae.update&&ae.update(z,oe)})},$.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},$.register=function(z,oe){coordinateSystemCreators[z]=oe},$.get=function(z){return coordinateSystemCreators[z]},$}();const CoordinateSystem=CoordinateSystemManager;var QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function $(z){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=z}return $.prototype.setOption=function(z,oe,ae){z&&(each$c(normalizeToArray(z.series),function(pe){pe&&pe.data&&isTypedArray(pe.data)&&setAsPrimitive(pe.data)}),each$c(normalizeToArray(z.dataset),function(pe){pe&&pe.source&&isTypedArray(pe.source)&&setAsPrimitive(pe.source)})),z=clone$3(z);var ie=this._optionBackup,le=parseRawOption(z,oe,!ie);this._newBaseOption=le.baseOption,ie?(le.timelineOptions.length&&(ie.timelineOptions=le.timelineOptions),le.mediaList.length&&(ie.mediaList=le.mediaList),le.mediaDefault&&(ie.mediaDefault=le.mediaDefault)):this._optionBackup=le},$.prototype.mountOption=function(z){var oe=this._optionBackup;return this._timelineOptions=oe.timelineOptions,this._mediaList=oe.mediaList,this._mediaDefault=oe.mediaDefault,this._currentMediaIndices=[],clone$3(z?oe.baseOption:this._newBaseOption)},$.prototype.getTimelineOption=function(z){var oe,ae=this._timelineOptions;if(ae.length){var ie=z.getComponent("timeline");ie&&(oe=clone$3(ae[ie.getCurrentIndex()]))}return oe},$.prototype.getMediaOption=function(z){var oe=this._api.getWidth(),ae=this._api.getHeight(),ie=this._mediaList,le=this._mediaDefault,pe=[],_e=[];if(!ie.length&&!le)return _e;for(var Ce=0,$e=ie.length;Ce<$e;Ce++)applyMediaQuery(ie[Ce].query,oe,ae)&&pe.push(Ce);return!pe.length&&le&&(pe=[-1]),pe.length&&!indicesEquals(pe,this._currentMediaIndices)&&(_e=map$2(pe,function(xe){return clone$3(xe===-1?le.option:ie[xe].option)})),this._currentMediaIndices=pe,_e},$}();function parseRawOption($,z,oe){var ae=[],ie,le,pe=$.baseOption,_e=$.timeline,Ce=$.options,$e=$.media,xe=!!$.media,Ie=!!(Ce||_e||pe&&pe.timeline);pe?(le=pe,le.timeline||(le.timeline=_e)):((Ie||xe)&&($.options=$.media=null),le=$),xe&&isArray$1($e)&&each$c($e,function(Fe){Fe&&Fe.option&&(Fe.query?ae.push(Fe):ie||(ie=Fe))}),Ne(le),each$c(Ce,function(Fe){return Ne(Fe)}),each$c(ae,function(Fe){return Ne(Fe.option)});function Ne(Fe){each$c(z,function(ze){ze(Fe,oe)})}return{baseOption:le,timelineOptions:Ce||[],mediaDefault:ie,mediaList:ae}}function applyMediaQuery($,z,oe){var ae={width:z,height:oe,aspectratio:z/oe},ie=!0;return each$c($,function(le,pe){var _e=pe.match(QUERY_REG);if(!(!_e||!_e[1]||!_e[2])){var Ce=_e[1],$e=_e[2].toLowerCase();compare(ae[$e],le,Ce)||(ie=!1)}}),ie}function compare($,z,oe){return oe==="min"?$>=z:oe==="max"?$<=z:$===z}function indicesEquals($,z){return $.join(",")===z.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($){var z=$&&$.itemStyle;if(z)for(var oe=0,ae=POSSIBLE_STYLES.length;oe<ae;oe++){var ie=POSSIBLE_STYLES[oe],le=z.normal,pe=z.emphasis;le&&le[ie]&&($[ie]=$[ie]||{},$[ie].normal?merge($[ie].normal,le[ie]):$[ie].normal=le[ie],le[ie]=null),pe&&pe[ie]&&($[ie]=$[ie]||{},$[ie].emphasis?merge($[ie].emphasis,pe[ie]):$[ie].emphasis=pe[ie],pe[ie]=null)}}function convertNormalEmphasis($,z,oe){if($&&$[z]&&($[z].normal||$[z].emphasis)){var ae=$[z].normal,ie=$[z].emphasis;ae&&(oe?($[z].normal=$[z].emphasis=null,defaults($[z],ae)):$[z]=ae),ie&&($.emphasis=$.emphasis||{},$.emphasis[z]=ie,ie.focus&&($.emphasis.focus=ie.focus),ie.blurScope&&($.emphasis.blurScope=ie.blurScope))}}function removeEC3NormalStatus($){convertNormalEmphasis($,"itemStyle"),convertNormalEmphasis($,"lineStyle"),convertNormalEmphasis($,"areaStyle"),convertNormalEmphasis($,"label"),convertNormalEmphasis($,"labelLine"),convertNormalEmphasis($,"upperLabel"),convertNormalEmphasis($,"edgeLabel")}function compatTextStyle($,z){var oe=isObject$2($)&&$[z],ae=isObject$2(oe)&&oe.textStyle;if(ae)for(var ie=0,le=TEXT_STYLE_OPTIONS.length;ie<le;ie++){var pe=TEXT_STYLE_OPTIONS[ie];ae.hasOwnProperty(pe)&&(oe[pe]=ae[pe])}}function compatEC3CommonStyles($){$&&(removeEC3NormalStatus($),compatTextStyle($,"label"),$.emphasis&&compatTextStyle($.emphasis,"label"))}function processSeries($){if(isObject$2($)){compatEC2ItemStyle($),removeEC3NormalStatus($),compatTextStyle($,"label"),compatTextStyle($,"upperLabel"),compatTextStyle($,"edgeLabel"),$.emphasis&&(compatTextStyle($.emphasis,"label"),compatTextStyle($.emphasis,"upperLabel"),compatTextStyle($.emphasis,"edgeLabel"));var z=$.markPoint;z&&(compatEC2ItemStyle(z),compatEC3CommonStyles(z));var oe=$.markLine;oe&&(compatEC2ItemStyle(oe),compatEC3CommonStyles(oe));var ae=$.markArea;ae&&compatEC3CommonStyles(ae);var ie=$.data;if($.type==="graph"){ie=ie||$.nodes;var le=$.links||$.edges;if(le&&!isTypedArray(le))for(var pe=0;pe<le.length;pe++)compatEC3CommonStyles(le[pe]);each$c($.categories,function($e){removeEC3NormalStatus($e)})}if(ie&&!isTypedArray(ie))for(var pe=0;pe<ie.length;pe++)compatEC3CommonStyles(ie[pe]);if(z=$.markPoint,z&&z.data)for(var _e=z.data,pe=0;pe<_e.length;pe++)compatEC3CommonStyles(_e[pe]);if(oe=$.markLine,oe&&oe.data)for(var Ce=oe.data,pe=0;pe<Ce.length;pe++)isArray$1(Ce[pe])?(compatEC3CommonStyles(Ce[pe][0]),compatEC3CommonStyles(Ce[pe][1])):compatEC3CommonStyles(Ce[pe]);$.type==="gauge"?(compatTextStyle($,"axisLabel"),compatTextStyle($,"title"),compatTextStyle($,"detail")):$.type==="treemap"?(convertNormalEmphasis($.breadcrumb,"itemStyle"),each$c($.levels,function($e){removeEC3NormalStatus($e)})):$.type==="tree"&&removeEC3NormalStatus($.leaves)}}function toArr($){return isArray$1($)?$:$?[$]:[]}function toObj($){return(isArray$1($)?$[0]:$)||{}}function globalCompatStyle($,z){each$a(toArr($.series),function(ae){isObject$2(ae)&&processSeries(ae)});var oe=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];z&&oe.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(oe,function(ae){each$a(toArr($[ae]),function(ie){ie&&(compatTextStyle(ie,"axisLabel"),compatTextStyle(ie.axisPointer,"label"))})}),each$a(toArr($.parallel),function(ae){var ie=ae&&ae.parallelAxisDefault;compatTextStyle(ie,"axisLabel"),compatTextStyle(ie&&ie.axisPointer,"label")}),each$a(toArr($.calendar),function(ae){convertNormalEmphasis(ae,"itemStyle"),compatTextStyle(ae,"dayLabel"),compatTextStyle(ae,"monthLabel"),compatTextStyle(ae,"yearLabel")}),each$a(toArr($.radar),function(ae){compatTextStyle(ae,"name"),ae.name&&ae.axisName==null&&(ae.axisName=ae.name,delete ae.name),ae.nameGap!=null&&ae.axisNameGap==null&&(ae.axisNameGap=ae.nameGap,delete ae.nameGap)}),each$a(toArr($.geo),function(ae){isObject$2(ae)&&(compatEC3CommonStyles(ae),each$a(toArr(ae.regions),function(ie){compatEC3CommonStyles(ie)}))}),each$a(toArr($.timeline),function(ae){compatEC3CommonStyles(ae),convertNormalEmphasis(ae,"label"),convertNormalEmphasis(ae,"itemStyle"),convertNormalEmphasis(ae,"controlStyle",!0);var ie=ae.data;isArray$1(ie)&&each$c(ie,function(le){isObject$3(le)&&(convertNormalEmphasis(le,"label"),convertNormalEmphasis(le,"itemStyle"))})}),each$a(toArr($.toolbox),function(ae){convertNormalEmphasis(ae,"iconStyle"),each$a(ae.feature,function(ie){convertNormalEmphasis(ie,"iconStyle")})}),compatTextStyle(toObj($.axisPointer),"label"),compatTextStyle(toObj($.tooltip).axisPointer,"label")}function get($,z){for(var oe=z.split(","),ae=$,ie=0;ie<oe.length&&(ae=ae&&ae[oe[ie]],ae!=null);ie++);return ae}function set($,z,oe,ae){for(var ie=z.split(","),le=$,pe,_e=0;_e<ie.length-1;_e++)pe=ie[_e],le[pe]==null&&(le[pe]={}),le=le[pe];(ae||le[ie[_e]]==null)&&(le[ie[_e]]=oe)}function compatLayoutProperties($){$&&each$c(LAYOUT_PROPERTIES,function(z){z[0]in $&&!(z[1]in $)&&($[z[1]]=$[z[0]])})}var LAYOUT_PROPERTIES=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],COMPATITABLE_COMPONENTS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],BAR_ITEM_STYLE_MAP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function compatBarItemStyle($){var z=$&&$.itemStyle;if(z)for(var oe=0;oe<BAR_ITEM_STYLE_MAP.length;oe++){var ae=BAR_ITEM_STYLE_MAP[oe][1],ie=BAR_ITEM_STYLE_MAP[oe][0];z[ae]!=null&&(z[ie]=z[ae])}}function compatPieLabel($){$&&$.alignTo==="edge"&&$.margin!=null&&$.edgeDistance==null&&($.edgeDistance=$.margin)}function compatSunburstState($){$&&$.downplay&&!$.blur&&($.blur=$.downplay)}function compatGraphFocus($){$&&$.focusNodeAdjacency!=null&&($.emphasis=$.emphasis||{},$.emphasis.focus==null&&($.emphasis.focus="adjacency"))}function traverseTree($,z){if($)for(var oe=0;oe<$.length;oe++)z($[oe]),$[oe]&&traverseTree($[oe].children,z)}function globalBackwardCompat($,z){globalCompatStyle($,z),$.series=normalizeToArray($.series),each$c($.series,function(oe){if(isObject$3(oe)){var ae=oe.type;if(ae==="line")oe.clipOverflow!=null&&(oe.clip=oe.clipOverflow);else if(ae==="pie"||ae==="gauge"){oe.clockWise!=null&&(oe.clockwise=oe.clockWise),compatPieLabel(oe.label);var ie=oe.data;if(ie&&!isTypedArray(ie))for(var le=0;le<ie.length;le++)compatPieLabel(ie[le]);oe.hoverOffset!=null&&(oe.emphasis=oe.emphasis||{},(oe.emphasis.scaleSize=null)&&(oe.emphasis.scaleSize=oe.hoverOffset))}else if(ae==="gauge"){var pe=get(oe,"pointer.color");pe!=null&&set(oe,"itemStyle.color",pe)}else if(ae==="bar"){compatBarItemStyle(oe),compatBarItemStyle(oe.backgroundStyle),compatBarItemStyle(oe.emphasis);var ie=oe.data;if(ie&&!isTypedArray(ie))for(var le=0;le<ie.length;le++)typeof ie[le]=="object"&&(compatBarItemStyle(ie[le]),compatBarItemStyle(ie[le]&&ie[le].emphasis))}else if(ae==="sunburst"){var _e=oe.highlightPolicy;_e&&(oe.emphasis=oe.emphasis||{},oe.emphasis.focus||(oe.emphasis.focus=_e)),compatSunburstState(oe),traverseTree(oe.data,compatSunburstState)}else ae==="graph"||ae==="sankey"?compatGraphFocus(oe):ae==="map"&&(oe.mapType&&!oe.map&&(oe.map=oe.mapType),oe.mapLocation&&defaults(oe,oe.mapLocation));oe.hoverAnimation!=null&&(oe.emphasis=oe.emphasis||{},oe.emphasis&&oe.emphasis.scale==null&&(oe.emphasis.scale=oe.hoverAnimation)),compatLayoutProperties(oe)}}),$.dataRange&&($.visualMap=$.dataRange),each$c(COMPATITABLE_COMPONENTS,function(oe){var ae=$[oe];ae&&(isArray$1(ae)||(ae=[ae]),each$c(ae,function(ie){compatLayoutProperties(ie)}))})}function dataStack$1($){var z=createHashMap();$.eachSeries(function(oe){var ae=oe.get("stack");if(ae){var ie=z.get(ae)||z.set(ae,[]),le=oe.getData(),pe={stackResultDimension:le.getCalculationInfo("stackResultDimension"),stackedOverDimension:le.getCalculationInfo("stackedOverDimension"),stackedDimension:le.getCalculationInfo("stackedDimension"),stackedByDimension:le.getCalculationInfo("stackedByDimension"),isStackedByIndex:le.getCalculationInfo("isStackedByIndex"),data:le,seriesModel:oe};if(!pe.stackedDimension||!(pe.isStackedByIndex||pe.stackedByDimension))return;ie.length&&le.setCalculationInfo("stackedOnSeries",ie[ie.length-1].seriesModel),ie.push(pe)}}),z.each(calculateStack)}function calculateStack($){each$c($,function(z,oe){var ae=[],ie=[NaN,NaN],le=[z.stackResultDimension,z.stackedOverDimension],pe=z.data,_e=z.isStackedByIndex,Ce=z.seriesModel.get("stackStrategy")||"samesign";pe.modify(le,function($e,xe,Ie){var Ne=pe.get(z.stackedDimension,Ie);if(isNaN(Ne))return ie;var Fe,ze;_e?ze=pe.getRawIndex(Ie):Fe=pe.get(z.stackedByDimension,Ie);for(var At=NaN,Lt=oe-1;Lt>=0;Lt--){var hn=$[Lt];if(_e||(ze=hn.data.rawIndexOf(hn.stackedByDimension,Fe)),ze>=0){var vn=hn.data.getByRawIndex(hn.stackResultDimension,ze);if(Ce==="all"||Ce==="positive"&&vn>0||Ce==="negative"&&vn<0||Ce==="samesign"&&Ne>=0&&vn>0||Ce==="samesign"&&Ne<=0&&vn<0){Ne=addSafe(Ne,vn),At=vn;break}}}return ae[0]=Ne,ae[1]=At,ae})})}var SourceImpl=function(){function $(z){this.data=z.data||(z.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=z.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=z.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=z.startIndex||0,this.dimensionsDetectedCount=z.dimensionsDetectedCount,this.metaRawOption=z.metaRawOption;var oe=this.dimensionsDefine=z.dimensionsDefine;if(oe)for(var ae=0;ae<oe.length;ae++){var ie=oe[ae];ie.type==null&&guessOrdinal(this,ae)===BE_ORDINAL.Must&&(ie.type="ordinal")}}return $}();function isSourceInstance($){return $ instanceof SourceImpl}function createSource($,z,oe){oe=oe||detectSourceFormat($);var ae=z.seriesLayoutBy,ie=determineSourceDimensions($,oe,ae,z.sourceHeader,z.dimensions),le=new SourceImpl({data:$,sourceFormat:oe,seriesLayoutBy:ae,dimensionsDefine:ie.dimensionsDefine,startIndex:ie.startIndex,dimensionsDetectedCount:ie.dimensionsDetectedCount,metaRawOption:clone$3(z)});return le}function createSourceFromSeriesDataOption($){return new SourceImpl({data:$,sourceFormat:isTypedArray($)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow($){return new SourceImpl({data:$.data,sourceFormat:$.sourceFormat,seriesLayoutBy:$.seriesLayoutBy,dimensionsDefine:clone$3($.dimensionsDefine),startIndex:$.startIndex,dimensionsDetectedCount:$.dimensionsDetectedCount})}function detectSourceFormat($){var z=SOURCE_FORMAT_UNKNOWN;if(isTypedArray($))z=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1($)){$.length===0&&(z=SOURCE_FORMAT_ARRAY_ROWS);for(var oe=0,ae=$.length;oe<ae;oe++){var ie=$[oe];if(ie!=null){if(isArray$1(ie)){z=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(ie)){z=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3($)){for(var le in $)if(hasOwn($,le)&&isArrayLike($[le])){z=SOURCE_FORMAT_KEYED_COLUMNS;break}}return z}function determineSourceDimensions($,z,oe,ae,ie){var le,pe;if(!$)return{dimensionsDefine:normalizeDimensionsOption(ie),startIndex:pe,dimensionsDetectedCount:le};if(z===SOURCE_FORMAT_ARRAY_ROWS){var _e=$;ae==="auto"||ae==null?arrayRowsTravelFirst(function($e){$e!=null&&$e!=="-"&&(isString($e)?pe==null&&(pe=1):pe=0)},oe,_e,10):pe=isNumber(ae)?ae:ae?1:0,!ie&&pe===1&&(ie=[],arrayRowsTravelFirst(function($e,xe){ie[xe]=$e!=null?$e+"":""},oe,_e,1/0)),le=ie?ie.length:oe===SERIES_LAYOUT_BY_ROW?_e.length:_e[0]?_e[0].length:null}else if(z===SOURCE_FORMAT_OBJECT_ROWS)ie||(ie=objectRowsCollectDimensions($));else if(z===SOURCE_FORMAT_KEYED_COLUMNS)ie||(ie=[],each$c($,function($e,xe){ie.push(xe)}));else if(z===SOURCE_FORMAT_ORIGINAL){var Ce=getDataItemValue($[0]);le=isArray$1(Ce)&&Ce.length||1}return{startIndex:pe,dimensionsDefine:normalizeDimensionsOption(ie),dimensionsDetectedCount:le}}function objectRowsCollectDimensions($){for(var z=0,oe;z<$.length&&!(oe=$[z++]););if(oe)return keys(oe)}function normalizeDimensionsOption($){if($){var z=createHashMap();return map$2($,function(oe,ae){oe=isObject$3(oe)?oe:{name:oe};var ie={name:oe.name,displayName:oe.displayName,type:oe.type};if(ie.name==null)return ie;ie.name+="",ie.displayName==null&&(ie.displayName=ie.name);var le=z.get(ie.name);return le?ie.name+="-"+le.count++:z.set(ie.name,{count:1}),ie})}}function arrayRowsTravelFirst($,z,oe,ae){if(z===SERIES_LAYOUT_BY_ROW)for(var ie=0;ie<oe.length&&ie<ae;ie++)$(oe[ie]?oe[ie][0]:null,ie);else for(var le=oe[0]||[],ie=0;ie<le.length&&ie<ae;ie++)$(le[ie],ie)}function shouldRetrieveDataByName($){var z=$.sourceFormat;return z===SOURCE_FORMAT_OBJECT_ROWS||z===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function $(z,oe){var ae=isSourceInstance(z)?z:createSourceFromSeriesDataOption(z);this._source=ae;var ie=this._data=ae.data;ae.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=oe,this._data=ie),mountMethods(this,ie,ae)}return $.prototype.getSource=function(){return this._source},$.prototype.count=function(){return 0},$.prototype.getItem=function(z,oe){},$.prototype.appendData=function(z){},$.prototype.clean=function(){},$.protoInitialize=function(){var z=$.prototype;z.pure=!1,z.persistent=!0}(),$.internalField=function(){var z;mountMethods=function(pe,_e,Ce){var $e=Ce.sourceFormat,xe=Ce.seriesLayoutBy,Ie=Ce.startIndex,Ne=Ce.dimensionsDefine,Fe=providerMethods[getMethodMapKey($e,xe)];if(extend(pe,Fe),$e===SOURCE_FORMAT_TYPED_ARRAY)pe.getItem=oe,pe.count=ie,pe.fillStorage=ae;else{var ze=getRawSourceItemGetter($e,xe);pe.getItem=bind$1(ze,null,_e,Ie,Ne);var At=getRawSourceDataCounter($e,xe);pe.count=bind$1(At,null,_e,Ie,Ne)}};var oe=function(pe,_e){pe=pe-this._offset,_e=_e||[];for(var Ce=this._data,$e=this._dimSize,xe=$e*pe,Ie=0;Ie<$e;Ie++)_e[Ie]=Ce[xe+Ie];return _e},ae=function(pe,_e,Ce,$e){for(var xe=this._data,Ie=this._dimSize,Ne=0;Ne<Ie;Ne++){for(var Fe=$e[Ne],ze=Fe[0]==null?1/0:Fe[0],At=Fe[1]==null?-1/0:Fe[1],Lt=_e-pe,hn=Ce[Ne],vn=0;vn<Lt;vn++){var _n=xe[vn*Ie+Ne];hn[pe+vn]=_n,_n<ze&&(ze=_n),_n>At&&(At=_n)}Fe[0]=ze,Fe[1]=At}},ie=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(z={},z[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:le},z[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},z[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:le},z[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(pe){var _e=this._data;each$c(pe,function(Ce,$e){for(var xe=_e[$e]||(_e[$e]=[]),Ie=0;Ie<(Ce||[]).length;Ie++)xe.push(Ce[Ie])})}},z[SOURCE_FORMAT_ORIGINAL]={appendData:le},z[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(pe){this._data=pe},clean:function(){this._offset+=this.count(),this._data=null}},z);function le(pe){for(var _e=0;_e<pe.length;_e++)this._data.push(pe[_e])}}(),$}(),getItemSimply=function($,z,oe,ae){return $[ae]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,z,oe,ae){return $[ae+z]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,z,oe,ae,ie){ae+=z;for(var le=ie||[],pe=$,_e=0;_e<pe.length;_e++){var Ce=pe[_e];le[_e]=Ce?Ce[ae]:null}return le},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function($,z,oe,ae,ie){for(var le=ie||[],pe=0;pe<oe.length;pe++){var _e=oe[pe].name,Ce=$[_e];le[pe]=Ce?Ce[ae]:null}return le},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter($,z){var oe=rawSourceItemGetterMap[getMethodMapKey($,z)];return oe}var countSimply=function($,z,oe){return $.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,z,oe){return Math.max(0,$.length-z)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,z,oe){var ae=$[0];return ae?Math.max(0,ae.length-z):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function($,z,oe){var ae=oe[0].name,ie=$[ae];return ie?ie.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter($,z){var oe=rawSourceDataCounterMap[getMethodMapKey($,z)];return oe}var getRawValueSimply=function($,z,oe){return $[z]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function($,z,oe){return $[oe]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function($,z,oe){var ae=getDataItemValue($);return ae instanceof Array?ae[z]:ae},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter($){var z=rawSourceValueGetterMap[$];return z}function getMethodMapKey($,z){return $===SOURCE_FORMAT_ARRAY_ROWS?$+"_"+z:$}function retrieveRawValue($,z,oe){if($){var ae=$.getRawDataItem(z);if(ae!=null){var ie=$.getStore(),le=ie.getSource().sourceFormat;if(oe!=null){var pe=$.getDimensionIndex(oe),_e=ie.getDimensionProperty(pe);return getRawSourceValueGetter(le)(ae,pe,_e)}else{var Ce=ae;return le===SOURCE_FORMAT_ORIGINAL&&(Ce=getDataItemValue(ae)),Ce}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function $(){}return $.prototype.getDataParams=function(z,oe){var ae=this.getData(oe),ie=this.getRawValue(z,oe),le=ae.getRawIndex(z),pe=ae.getName(z),_e=ae.getRawDataItem(z),Ce=ae.getItemVisual(z,"style"),$e=Ce&&Ce[ae.getItemVisual(z,"drawType")||"fill"],xe=Ce&&Ce.stroke,Ie=this.mainType,Ne=Ie==="series",Fe=ae.userOutput&&ae.userOutput.get();return{componentType:Ie,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:Ne?this.subType:null,seriesIndex:this.seriesIndex,seriesId:Ne?this.id:null,seriesName:Ne?this.name:null,name:pe,dataIndex:le,data:_e,dataType:oe,value:ie,color:$e,borderColor:xe,dimensionNames:Fe?Fe.fullDimensions:null,encode:Fe?Fe.encode:null,$vars:["seriesName","name","value"]}},$.prototype.getFormattedLabel=function(z,oe,ae,ie,le,pe){oe=oe||"normal";var _e=this.getData(ae),Ce=this.getDataParams(z,ae);if(pe&&(Ce.value=pe.interpolatedValue),ie!=null&&isArray$1(Ce.value)&&(Ce.value=Ce.value[ie]),!le){var $e=_e.getItemModel(z);le=$e.get(oe==="normal"?["label","formatter"]:[oe,"label","formatter"])}if(isFunction(le))return Ce.status=oe,Ce.dimensionIndex=ie,le(Ce);if(isString(le)){var xe=formatTpl(le,Ce);return xe.replace(DIMENSION_LABEL_REG,function(Ie,Ne){var Fe=Ne.length,ze=Ne;ze.charAt(0)==="["&&ze.charAt(Fe-1)==="]"&&(ze=+ze.slice(1,Fe-1));var At=retrieveRawValue(_e,z,ze);if(pe&&isArray$1(pe.interpolatedValue)){var Lt=_e.getDimensionIndex(ze);Lt>=0&&(At=pe.interpolatedValue[Lt])}return At!=null?At+"":""})}},$.prototype.getRawValue=function(z,oe){return retrieveRawValue(this.getData(oe),z)},$.prototype.formatTooltip=function(z,oe,ae){},$}();function normalizeTooltipFormatResult($){var z,oe;return isObject$3($)?$.type&&(oe=$):z=$,{text:z,frag:oe}}function createTask($){return new Task($)}var Task=function(){function $(z){z=z||{},this._reset=z.reset,this._plan=z.plan,this._count=z.count,this._onDirty=z.onDirty,this._dirty=!0}return $.prototype.perform=function(z){var oe=this._upstream,ae=z&&z.skip;if(this._dirty&&oe){var ie=this.context;ie.data=ie.outputData=oe.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var le;this._plan&&!ae&&(le=this._plan(this.context));var pe=xe(this._modBy),_e=this._modDataCount||0,Ce=xe(z&&z.modBy),$e=z&&z.modDataCount||0;(pe!==Ce||_e!==$e)&&(le="reset");function xe(vn){return!(vn>=1)&&(vn=1),vn}var Ie;(this._dirty||le==="reset")&&(this._dirty=!1,Ie=this._doReset(ae)),this._modBy=Ce,this._modDataCount=$e;var Ne=z&&z.step;if(oe?this._dueEnd=oe._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var Fe=this._dueIndex,ze=Math.min(Ne!=null?this._dueIndex+Ne:1/0,this._dueEnd);if(!ae&&(Ie||Fe<ze)){var At=this._progress;if(isArray$1(At))for(var Lt=0;Lt<At.length;Lt++)this._doProgress(At[Lt],Fe,ze,Ce,$e);else this._doProgress(At,Fe,ze,Ce,$e)}this._dueIndex=ze;var hn=this._settedOutputEnd!=null?this._settedOutputEnd:ze;this._outputDueEnd=hn}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},$.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},$.prototype._doProgress=function(z,oe,ae,ie,le){iterator.reset(oe,ae,ie,le),this._callingProgress=z,this._callingProgress({start:oe,end:ae,count:ae-oe,next:iterator.next},this.context)},$.prototype._doReset=function(z){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var oe,ae;!z&&this._reset&&(oe=this._reset(this.context),oe&&oe.progress&&(ae=oe.forceFirstProgress,oe=oe.progress),isArray$1(oe)&&!oe.length&&(oe=null)),this._progress=oe,this._modBy=this._modDataCount=null;var ie=this._downstream;return ie&&ie.dirty(),ae},$.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},$.prototype.pipe=function(z){(this._downstream!==z||this._dirty)&&(this._downstream=z,z._upstream=this,z.dirty())},$.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},$.prototype.getUpstream=function(){return this._upstream},$.prototype.getDownstream=function(){return this._downstream},$.prototype.setOutputEnd=function(z){this._outputDueEnd=this._settedOutputEnd=z},$}(),iterator=function(){var $,z,oe,ae,ie,le={reset:function(Ce,$e,xe,Ie){z=Ce,$=$e,oe=xe,ae=Ie,ie=Math.ceil(ae/oe),le.next=oe>1&&ae>0?_e:pe}};return le;function pe(){return z<$?z++:null}function _e(){var Ce=z%ie*oe+Math.ceil(z/ie),$e=z>=$?null:Ce<ae?Ce:z;return z++,$e}}();function parseDataValue($,z){var oe=z&&z.type;return oe==="ordinal"?$:(oe==="time"&&!isNumber($)&&$!=null&&$!=="-"&&($=+parseDate($)),$==null||$===""?NaN:+$)}createHashMap({number:function($){return parseFloat($)},time:function($){return+parseDate($)},trim:function($){return isString($)?trim$1($):$}});var SortOrderComparator=function(){function $(z,oe){var ae=z==="desc";this._resultLT=ae?1:-1,oe==null&&(oe=ae?"min":"max"),this._incomparable=oe==="min"?-1/0:1/0}return $.prototype.evaluate=function(z,oe){var ae=isNumber(z)?z:numericToNumber(z),ie=isNumber(oe)?oe:numericToNumber(oe),le=isNaN(ae),pe=isNaN(ie);if(le&&(ae=this._incomparable),pe&&(ie=this._incomparable),le&&pe){var _e=isString(z),Ce=isString(oe);_e&&(ae=Ce?z:0),Ce&&(ie=_e?oe:0)}return ae<ie?this._resultLT:ae>ie?-this._resultLT:0},$}(),ExternalSource=function(){function $(){}return $.prototype.getRawData=function(){throw new Error("not supported")},$.prototype.getRawDataItem=function(z){throw new Error("not supported")},$.prototype.cloneRawData=function(){},$.prototype.getDimensionInfo=function(z){},$.prototype.cloneAllDimensionInfo=function(){},$.prototype.count=function(){},$.prototype.retrieveValue=function(z,oe){},$.prototype.retrieveValueFromItem=function(z,oe){},$.prototype.convertValue=function(z,oe){return parseDataValue(z,oe)},$}();function createExternalSource($,z){var oe=new ExternalSource,ae=$.data,ie=oe.sourceFormat=$.sourceFormat,le=$.startIndex,pe="";$.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(pe);var _e=[],Ce={},$e=$.dimensionsDefine;if($e)each$c($e,function(At,Lt){var hn=At.name,vn={index:Lt,name:hn,displayName:At.displayName};if(_e.push(vn),hn!=null){var _n="";hasOwn(Ce,hn)&&throwError(_n),Ce[hn]=vn}});else for(var xe=0;xe<$.dimensionsDetectedCount;xe++)_e.push({index:xe});var Ie=getRawSourceItemGetter(ie,SERIES_LAYOUT_BY_COLUMN);z.__isBuiltIn&&(oe.getRawDataItem=function(At){return Ie(ae,le,_e,At)},oe.getRawData=bind$1(getRawData,null,$)),oe.cloneRawData=bind$1(cloneRawData,null,$);var Ne=getRawSourceDataCounter(ie,SERIES_LAYOUT_BY_COLUMN);oe.count=bind$1(Ne,null,ae,le,_e);var Fe=getRawSourceValueGetter(ie);oe.retrieveValue=function(At,Lt){var hn=Ie(ae,le,_e,At);return ze(hn,Lt)};var ze=oe.retrieveValueFromItem=function(At,Lt){if(At!=null){var hn=_e[Lt];if(hn)return Fe(At,Lt,hn.name)}};return oe.getDimensionInfo=bind$1(getDimensionInfo,null,_e,Ce),oe.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,_e),oe}function getRawData($){var z=$.sourceFormat;if(!isSupportedSourceFormat(z)){var oe="";throwError(oe)}return $.data}function cloneRawData($){var z=$.sourceFormat,oe=$.data;if(!isSupportedSourceFormat(z)){var ae="";throwError(ae)}if(z===SOURCE_FORMAT_ARRAY_ROWS){for(var ie=[],le=0,pe=oe.length;le<pe;le++)ie.push(oe[le].slice());return ie}else if(z===SOURCE_FORMAT_OBJECT_ROWS){for(var ie=[],le=0,pe=oe.length;le<pe;le++)ie.push(extend({},oe[le]));return ie}}function getDimensionInfo($,z,oe){if(oe!=null){if(isNumber(oe)||!isNaN(oe)&&!hasOwn(z,oe))return $[oe];if(hasOwn(z,oe))return z[oe]}}function cloneAllDimensionInfo($){return clone$3($)}var externalTransformMap=createHashMap();function registerExternalTransform($){$=clone$3($);var z=$.type,oe="";z||throwError(oe);var ae=z.split(":");ae.length!==2&&throwError(oe);var ie=!1;ae[0]==="echarts"&&(z=ae[1],ie=!0),$.__isBuiltIn=ie,externalTransformMap.set(z,$)}function applyDataTransform($,z,oe){var ae=normalizeToArray($),ie=ae.length,le="";ie||throwError(le);for(var pe=0,_e=ie;pe<_e;pe++){var Ce=ae[pe];z=applySingleDataTransform(Ce,z),pe!==_e-1&&(z.length=Math.max(z.length,1))}return z}function applySingleDataTransform($,z,oe,ae){var ie="";z.length||throwError(ie),isObject$3($)||throwError(ie);var le=$.type,pe=externalTransformMap.get(le);pe||throwError(ie);var _e=map$2(z,function($e){return createExternalSource($e,pe)}),Ce=normalizeToArray(pe.transform({upstream:_e[0],upstreamList:_e,config:clone$3($.config)}));return map$2(Ce,function($e,xe){var Ie="";isObject$3($e)||throwError(Ie),$e.data||throwError(Ie);var Ne=detectSourceFormat($e.data);isSupportedSourceFormat(Ne)||throwError(Ie);var Fe,ze=z[0];if(ze&&xe===0&&!$e.dimensions){var At=ze.startIndex;At&&($e.data=ze.data.slice(0,At).concat($e.data)),Fe={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:At,dimensions:ze.metaRawOption.dimensions}}else Fe={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:$e.dimensions};return createSource($e.data,Fe,null)})}function isSupportedSourceFormat($){return $===SOURCE_FORMAT_ARRAY_ROWS||$===SOURCE_FORMAT_OBJECT_ROWS}var UNDEFINED="undefined",CtorUint32Array=typeof Uint32Array===UNDEFINED?Array:Uint32Array,CtorUint16Array=typeof Uint16Array===UNDEFINED?Array:Uint16Array,CtorInt32Array$1=typeof Int32Array===UNDEFINED?Array:Int32Array,CtorFloat64Array=typeof Float64Array===UNDEFINED?Array:Float64Array,dataCtors={float:CtorFloat64Array,int:CtorInt32Array$1,ordinal:Array,number:Array,time:CtorFloat64Array},defaultDimValueGetters;function getIndicesCtor($){return $>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk($){var z=$.constructor;return z===Array?$.slice():new z($)}function prepareStore($,z,oe,ae,ie){var le=dataCtors[oe||"float"];if(ie){var pe=$[z],_e=pe&&pe.length;if(_e!==ae){for(var Ce=new le(ae),$e=0;$e<_e;$e++)Ce[$e]=pe[$e];$[z]=Ce}}else $[z]=new le(ae)}var DataStore=function(){function $(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return $.prototype.initData=function(z,oe,ae){this._provider=z,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var ie=z.getSource(),le=this.defaultDimValueGetter=defaultDimValueGetters[ie.sourceFormat];this._dimValueGetter=ae||le,this._rawExtent=[],shouldRetrieveDataByName(ie),this._dimensions=map$2(oe,function(pe){return{type:pe.type,property:pe.property}}),this._initDataFromProvider(0,z.count())},$.prototype.getProvider=function(){return this._provider},$.prototype.getSource=function(){return this._provider.getSource()},$.prototype.ensureCalculationDimension=function(z,oe){var ae=this._calcDimNameToIdx,ie=this._dimensions,le=ae.get(z);if(le!=null){if(ie[le].type===oe)return le}else le=ie.length;return ie[le]={type:oe},ae.set(z,le),this._chunks[le]=new dataCtors[oe||"float"](this._rawCount),this._rawExtent[le]=getInitialExtent(),le},$.prototype.collectOrdinalMeta=function(z,oe){var ae=this._chunks[z],ie=this._dimensions[z],le=this._rawExtent,pe=ie.ordinalOffset||0,_e=ae.length;pe===0&&(le[z]=getInitialExtent());for(var Ce=le[z],$e=pe;$e<_e;$e++){var xe=ae[$e]=oe.parseAndCollect(ae[$e]);isNaN(xe)||(Ce[0]=Math.min(xe,Ce[0]),Ce[1]=Math.max(xe,Ce[1]))}ie.ordinalMeta=oe,ie.ordinalOffset=_e,ie.type="ordinal"},$.prototype.getOrdinalMeta=function(z){var oe=this._dimensions[z],ae=oe.ordinalMeta;return ae},$.prototype.getDimensionProperty=function(z){var oe=this._dimensions[z];return oe&&oe.property},$.prototype.appendData=function(z){var oe=this._provider,ae=this.count();oe.appendData(z);var ie=oe.count();return oe.persistent||(ie+=ae),ae<ie&&this._initDataFromProvider(ae,ie,!0),[ae,ie]},$.prototype.appendValues=function(z,oe){for(var ae=this._chunks,ie=this._dimensions,le=ie.length,pe=this._rawExtent,_e=this.count(),Ce=_e+Math.max(z.length,oe||0),$e=0;$e<le;$e++){var xe=ie[$e];prepareStore(ae,$e,xe.type,Ce,!0)}for(var Ie=[],Ne=_e;Ne<Ce;Ne++)for(var Fe=Ne-_e,ze=0;ze<le;ze++){var xe=ie[ze],At=defaultDimValueGetters.arrayRows.call(this,z[Fe]||Ie,xe.property,Fe,ze);ae[ze][Ne]=At;var Lt=pe[ze];At<Lt[0]&&(Lt[0]=At),At>Lt[1]&&(Lt[1]=At)}return this._rawCount=this._count=Ce,{start:_e,end:Ce}},$.prototype._initDataFromProvider=function(z,oe,ae){for(var ie=this._provider,le=this._chunks,pe=this._dimensions,_e=pe.length,Ce=this._rawExtent,$e=map$2(pe,function(vn){return vn.property}),xe=0;xe<_e;xe++){var Ie=pe[xe];Ce[xe]||(Ce[xe]=getInitialExtent()),prepareStore(le,xe,Ie.type,oe,ae)}if(ie.fillStorage)ie.fillStorage(z,oe,le,Ce);else for(var Ne=[],Fe=z;Fe<oe;Fe++){Ne=ie.getItem(Fe,Ne);for(var ze=0;ze<_e;ze++){var At=le[ze],Lt=this._dimValueGetter(Ne,$e[ze],Fe,ze);At[Fe]=Lt;var hn=Ce[ze];Lt<hn[0]&&(hn[0]=Lt),Lt>hn[1]&&(hn[1]=Lt)}}!ie.persistent&&ie.clean&&ie.clean(),this._rawCount=this._count=oe,this._extent=[]},$.prototype.count=function(){return this._count},$.prototype.get=function(z,oe){if(!(oe>=0&&oe<this._count))return NaN;var ae=this._chunks[z];return ae?ae[this.getRawIndex(oe)]:NaN},$.prototype.getValues=function(z,oe){var ae=[],ie=[];if(oe==null){oe=z,z=[];for(var le=0;le<this._dimensions.length;le++)ie.push(le)}else ie=z;for(var le=0,pe=ie.length;le<pe;le++)ae.push(this.get(ie[le],oe));return ae},$.prototype.getByRawIndex=function(z,oe){if(!(oe>=0&&oe<this._rawCount))return NaN;var ae=this._chunks[z];return ae?ae[oe]:NaN},$.prototype.getSum=function(z){var oe=this._chunks[z],ae=0;if(oe)for(var ie=0,le=this.count();ie<le;ie++){var pe=this.get(z,ie);isNaN(pe)||(ae+=pe)}return ae},$.prototype.getMedian=function(z){var oe=[];this.each([z],function(le){isNaN(le)||oe.push(le)});var ae=oe.sort(function(le,pe){return le-pe}),ie=this.count();return ie===0?0:ie%2===1?ae[(ie-1)/2]:(ae[ie/2]+ae[ie/2-1])/2},$.prototype.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var oe=this._indices,ae=oe[z];if(ae!=null&&ae<this._count&&ae===z)return z;for(var ie=0,le=this._count-1;ie<=le;){var pe=(ie+le)/2|0;if(oe[pe]<z)ie=pe+1;else if(oe[pe]>z)le=pe-1;else return pe}return-1},$.prototype.indicesOfNearest=function(z,oe,ae){var ie=this._chunks,le=ie[z],pe=[];if(!le)return pe;ae==null&&(ae=1/0);for(var _e=1/0,Ce=-1,$e=0,xe=0,Ie=this.count();xe<Ie;xe++){var Ne=this.getRawIndex(xe),Fe=oe-le[Ne],ze=Math.abs(Fe);ze<=ae&&((ze<_e||ze===_e&&Fe>=0&&Ce<0)&&(_e=ze,Ce=Fe,$e=0),Fe===Ce&&(pe[$e++]=xe))}return pe.length=$e,pe},$.prototype.getIndices=function(){var z,oe=this._indices;if(oe){var ae=oe.constructor,ie=this._count;if(ae===Array){z=new ae(ie);for(var le=0;le<ie;le++)z[le]=oe[le]}else z=new ae(oe.buffer,0,ie)}else{var ae=getIndicesCtor(this._rawCount);z=new ae(this.count());for(var le=0;le<z.length;le++)z[le]=le}return z},$.prototype.filter=function(z,oe){if(!this._count)return this;for(var ae=this.clone(),ie=ae.count(),le=getIndicesCtor(ae._rawCount),pe=new le(ie),_e=[],Ce=z.length,$e=0,xe=z[0],Ie=ae._chunks,Ne=0;Ne<ie;Ne++){var Fe=void 0,ze=ae.getRawIndex(Ne);if(Ce===0)Fe=oe(Ne);else if(Ce===1){var At=Ie[xe][ze];Fe=oe(At,Ne)}else{for(var Lt=0;Lt<Ce;Lt++)_e[Lt]=Ie[z[Lt]][ze];_e[Lt]=Ne,Fe=oe.apply(null,_e)}Fe&&(pe[$e++]=ze)}return $e<ie&&(ae._indices=pe),ae._count=$e,ae._extent=[],ae._updateGetRawIdx(),ae},$.prototype.selectRange=function(z){var oe=this.clone(),ae=oe._count;if(!ae)return this;var ie=keys(z),le=ie.length;if(!le)return this;var pe=oe.count(),_e=getIndicesCtor(oe._rawCount),Ce=new _e(pe),$e=0,xe=ie[0],Ie=z[xe][0],Ne=z[xe][1],Fe=oe._chunks,ze=!1;if(!oe._indices){var At=0;if(le===1){for(var Lt=Fe[ie[0]],hn=0;hn<ae;hn++){var vn=Lt[hn];(vn>=Ie&&vn<=Ne||isNaN(vn))&&(Ce[$e++]=At),At++}ze=!0}else if(le===2){for(var Lt=Fe[ie[0]],_n=Fe[ie[1]],bn=z[ie[1]][0],Cn=z[ie[1]][1],hn=0;hn<ae;hn++){var vn=Lt[hn],En=_n[hn];(vn>=Ie&&vn<=Ne||isNaN(vn))&&(En>=bn&&En<=Cn||isNaN(En))&&(Ce[$e++]=At),At++}ze=!0}}if(!ze)if(le===1)for(var hn=0;hn<pe;hn++){var $n=oe.getRawIndex(hn),vn=Fe[ie[0]][$n];(vn>=Ie&&vn<=Ne||isNaN(vn))&&(Ce[$e++]=$n)}else for(var hn=0;hn<pe;hn++){for(var wn=!0,$n=oe.getRawIndex(hn),Tn=0;Tn<le;Tn++){var xn=ie[Tn],vn=Fe[xn][$n];(vn<z[xn][0]||vn>z[xn][1])&&(wn=!1)}wn&&(Ce[$e++]=oe.getRawIndex(hn))}return $e<pe&&(oe._indices=Ce),oe._count=$e,oe._extent=[],oe._updateGetRawIdx(),oe},$.prototype.map=function(z,oe){var ae=this.clone(z);return this._updateDims(ae,z,oe),ae},$.prototype.modify=function(z,oe){this._updateDims(this,z,oe)},$.prototype._updateDims=function(z,oe,ae){for(var ie=z._chunks,le=[],pe=oe.length,_e=z.count(),Ce=[],$e=z._rawExtent,xe=0;xe<oe.length;xe++)$e[oe[xe]]=getInitialExtent();for(var Ie=0;Ie<_e;Ie++){for(var Ne=z.getRawIndex(Ie),Fe=0;Fe<pe;Fe++)Ce[Fe]=ie[oe[Fe]][Ne];Ce[pe]=Ie;var ze=ae&&ae.apply(null,Ce);if(ze!=null){typeof ze!="object"&&(le[0]=ze,ze=le);for(var xe=0;xe<ze.length;xe++){var At=oe[xe],Lt=ze[xe],hn=$e[At],vn=ie[At];vn&&(vn[Ne]=Lt),Lt<hn[0]&&(hn[0]=Lt),Lt>hn[1]&&(hn[1]=Lt)}}}},$.prototype.lttbDownSample=function(z,oe){var ae=this.clone([z],!0),ie=ae._chunks,le=ie[z],pe=this.count(),_e=0,Ce=Math.floor(1/oe),$e=this.getRawIndex(0),xe,Ie,Ne,Fe=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(pe/Ce)+2)*2,pe));Fe[_e++]=$e;for(var ze=1;ze<pe-1;ze+=Ce){for(var At=Math.min(ze+Ce,pe-1),Lt=Math.min(ze+Ce*2,pe),hn=(Lt+At)/2,vn=0,_n=At;_n<Lt;_n++){var bn=this.getRawIndex(_n),Cn=le[bn];isNaN(Cn)||(vn+=Cn)}vn/=Lt-At;var En=ze,$n=Math.min(ze+Ce,pe),wn=ze-1,Tn=le[$e];xe=-1,Ne=En;for(var xn=-1,kn=0,_n=En;_n<$n;_n++){var bn=this.getRawIndex(_n),Cn=le[bn];if(isNaN(Cn)){kn++,xn<0&&(xn=bn);continue}Ie=Math.abs((wn-hn)*(Cn-Tn)-(wn-_n)*(vn-Tn)),Ie>xe&&(xe=Ie,Ne=bn)}kn>0&&kn<$n-En&&(Fe[_e++]=Math.min(xn,Ne),Ne=Math.max(xn,Ne)),Fe[_e++]=Ne,$e=Ne}return Fe[_e++]=this.getRawIndex(pe-1),ae._count=_e,ae._indices=Fe,ae.getRawIndex=this._getRawIdx,ae},$.prototype.downSample=function(z,oe,ae,ie){for(var le=this.clone([z],!0),pe=le._chunks,_e=[],Ce=Math.floor(1/oe),$e=pe[z],xe=this.count(),Ie=le._rawExtent[z]=getInitialExtent(),Ne=new(getIndicesCtor(this._rawCount))(Math.ceil(xe/Ce)),Fe=0,ze=0;ze<xe;ze+=Ce){Ce>xe-ze&&(Ce=xe-ze,_e.length=Ce);for(var At=0;At<Ce;At++){var Lt=this.getRawIndex(ze+At);_e[At]=$e[Lt]}var hn=ae(_e),vn=this.getRawIndex(Math.min(ze+ie(_e,hn)||0,xe-1));$e[vn]=hn,hn<Ie[0]&&(Ie[0]=hn),hn>Ie[1]&&(Ie[1]=hn),Ne[Fe++]=vn}return le._count=Fe,le._indices=Ne,le._updateGetRawIdx(),le},$.prototype.each=function(z,oe){if(this._count)for(var ae=z.length,ie=this._chunks,le=0,pe=this.count();le<pe;le++){var _e=this.getRawIndex(le);switch(ae){case 0:oe(le);break;case 1:oe(ie[z[0]][_e],le);break;case 2:oe(ie[z[0]][_e],ie[z[1]][_e],le);break;default:for(var Ce=0,$e=[];Ce<ae;Ce++)$e[Ce]=ie[z[Ce]][_e];$e[Ce]=le,oe.apply(null,$e)}}},$.prototype.getDataExtent=function(z){var oe=this._chunks[z],ae=getInitialExtent();if(!oe)return ae;var ie=this.count(),le=!this._indices,pe;if(le)return this._rawExtent[z].slice();if(pe=this._extent[z],pe)return pe.slice();pe=ae;for(var _e=pe[0],Ce=pe[1],$e=0;$e<ie;$e++){var xe=this.getRawIndex($e),Ie=oe[xe];Ie<_e&&(_e=Ie),Ie>Ce&&(Ce=Ie)}return pe=[_e,Ce],this._extent[z]=pe,pe},$.prototype.getRawDataItem=function(z){var oe=this.getRawIndex(z);if(this._provider.persistent)return this._provider.getItem(oe);for(var ae=[],ie=this._chunks,le=0;le<ie.length;le++)ae.push(ie[le][oe]);return ae},$.prototype.clone=function(z,oe){var ae=new $,ie=this._chunks,le=z&&reduce(z,function(_e,Ce){return _e[Ce]=!0,_e},{});if(le)for(var pe=0;pe<ie.length;pe++)ae._chunks[pe]=le[pe]?cloneChunk(ie[pe]):ie[pe];else ae._chunks=ie;return this._copyCommonProps(ae),oe||(ae._indices=this._cloneIndices()),ae._updateGetRawIdx(),ae},$.prototype._copyCommonProps=function(z){z._count=this._count,z._rawCount=this._rawCount,z._provider=this._provider,z._dimensions=this._dimensions,z._extent=clone$3(this._extent),z._rawExtent=clone$3(this._rawExtent)},$.prototype._cloneIndices=function(){if(this._indices){var z=this._indices.constructor,oe=void 0;if(z===Array){var ae=this._indices.length;oe=new z(ae);for(var ie=0;ie<ae;ie++)oe[ie]=this._indices[ie]}else oe=new z(this._indices);return oe}return null},$.prototype._getRawIdxIdentity=function(z){return z},$.prototype._getRawIdx=function(z){return z<this._count&&z>=0?this._indices[z]:-1},$.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},$.internalField=function(){function z(oe,ae,ie,le){return parseDataValue(oe[le],this._dimensions[le])}defaultDimValueGetters={arrayRows:z,objectRows:function(oe,ae,ie,le){return parseDataValue(oe[ae],this._dimensions[le])},keyedColumns:z,original:function(oe,ae,ie,le){var pe=oe&&(oe.value==null?oe:oe.value);return parseDataValue(pe instanceof Array?pe[le]:pe,this._dimensions[le])},typedArray:function(oe,ae,ie,le){return oe[le]}}}(),$}();const DataStore$1=DataStore;var SourceManager=function(){function $(z){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=z}return $.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},$.prototype._setLocalSource=function(z,oe){this._sourceList=z,this._upstreamSignList=oe,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},$.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},$.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},$.prototype._createSource=function(){this._setLocalSource([],[]);var z=this._sourceHost,oe=this._getUpstreamSourceManagers(),ae=!!oe.length,ie,le;if(isSeries(z)){var pe=z,_e=void 0,Ce=void 0,$e=void 0;if(ae){var xe=oe[0];xe.prepareSource(),$e=xe.getSource(),_e=$e.data,Ce=$e.sourceFormat,le=[xe._getVersionSign()]}else _e=pe.get("data",!0),Ce=isTypedArray(_e)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,le=[];var Ie=this._getSourceMetaRawOption()||{},Ne=$e&&$e.metaRawOption||{},Fe=retrieve2(Ie.seriesLayoutBy,Ne.seriesLayoutBy)||null,ze=retrieve2(Ie.sourceHeader,Ne.sourceHeader),At=retrieve2(Ie.dimensions,Ne.dimensions),Lt=Fe!==Ne.seriesLayoutBy||!!ze!=!!Ne.sourceHeader||At;ie=Lt?[createSource(_e,{seriesLayoutBy:Fe,sourceHeader:ze,dimensions:At},Ce)]:[]}else{var hn=z;if(ae){var vn=this._applyTransform(oe);ie=vn.sourceList,le=vn.upstreamSignList}else{var _n=hn.get("source",!0);ie=[createSource(_n,this._getSourceMetaRawOption(),null)],le=[]}}this._setLocalSource(ie,le)},$.prototype._applyTransform=function(z){var oe=this._sourceHost,ae=oe.get("transform",!0),ie=oe.get("fromTransformResult",!0);if(ie!=null){var le="";z.length!==1&&doThrow(le)}var pe,_e=[],Ce=[];return each$c(z,function($e){$e.prepareSource();var xe=$e.getSource(ie||0),Ie="";ie!=null&&!xe&&doThrow(Ie),_e.push(xe),Ce.push($e._getVersionSign())}),ae?pe=applyDataTransform(ae,_e,{datasetIndex:oe.componentIndex}):ie!=null&&(pe=[cloneSourceShallow(_e[0])]),{sourceList:pe,upstreamSignList:Ce}},$.prototype._isDirty=function(){if(this._dirty)return!0;for(var z=this._getUpstreamSourceManagers(),oe=0;oe<z.length;oe++){var ae=z[oe];if(ae._isDirty()||this._upstreamSignList[oe]!==ae._getVersionSign())return!0}},$.prototype.getSource=function(z){z=z||0;var oe=this._sourceList[z];if(!oe){var ae=this._getUpstreamSourceManagers();return ae[0]&&ae[0].getSource(z)}return oe},$.prototype.getSharedDataStore=function(z){var oe=z.makeStoreSchema();return this._innerGetDataStore(oe.dimensions,z.source,oe.hash)},$.prototype._innerGetDataStore=function(z,oe,ae){var ie=0,le=this._storeList,pe=le[ie];pe||(pe=le[ie]={});var _e=pe[ae];if(!_e){var Ce=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&Ce?_e=Ce._innerGetDataStore(z,oe,ae):(_e=new DataStore$1,_e.initData(new DefaultDataProvider(oe,z.length),z)),pe[ae]=_e}return _e},$.prototype._getUpstreamSourceManagers=function(){var z=this._sourceHost;if(isSeries(z)){var oe=querySeriesUpstreamDatasetModel(z);return oe?[oe.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(z),function(ae){return ae.getSourceManager()})},$.prototype._getSourceMetaRawOption=function(){var z=this._sourceHost,oe,ae,ie;if(isSeries(z))oe=z.get("seriesLayoutBy",!0),ae=z.get("sourceHeader",!0),ie=z.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var le=z;oe=le.get("seriesLayoutBy",!0),ae=le.get("sourceHeader",!0),ie=le.get("dimensions",!0)}return{seriesLayoutBy:oe,sourceHeader:ae,dimensions:ie}},$}();function isSeries($){return $.mainType==="series"}function doThrow($){throw new Error($)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle($,z){var oe=$.color||"#6e7079",ae=$.fontSize||12,ie=$.fontWeight||"400",le=$.color||"#464646",pe=$.fontSize||14,_e=$.fontWeight||"900";return z==="html"?{nameStyle:"font-size:"+encodeHTML(ae+"")+"px;color:"+encodeHTML(oe)+";font-weight:"+encodeHTML(ie+""),valueStyle:"font-size:"+encodeHTML(pe+"")+"px;color:"+encodeHTML(le)+";font-weight:"+encodeHTML(_e+"")}:{nameStyle:{fontSize:ae,fill:oe,fontWeight:ie},valueStyle:{fontSize:pe,fill:le,fontWeight:_e}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function createTooltipMarkup($,z){return z.type=$,z}function isSectionFragment($){return $.type==="section"}function getBuilder($){return isSectionFragment($)?buildSection:buildNameValue}function getBlockGapLevel($){if(isSectionFragment($)){var z=0,oe=$.blocks.length,ae=oe>1||oe>0&&!$.noHeader;return each$c($.blocks,function(ie){var le=getBlockGapLevel(ie);le>=z&&(z=le+ +(ae&&(!le||isSectionFragment(ie)&&!ie.noHeader)))}),z}return 0}function buildSection($,z,oe,ae){var ie=z.noHeader,le=getGap(getBlockGapLevel(z)),pe=[],_e=z.blocks||[];assert(!_e||isArray$1(_e)),_e=_e||[];var Ce=$.orderMode;if(z.sortBlocks&&Ce){_e=_e.slice();var $e={valueAsc:"asc",valueDesc:"desc"};if(hasOwn($e,Ce)){var xe=new SortOrderComparator($e[Ce],null);_e.sort(function(ze,At){return xe.evaluate(ze.sortParam,At.sortParam)})}else Ce==="seriesDesc"&&_e.reverse()}each$c(_e,function(ze,At){var Lt=z.valueFormatter,hn=getBuilder(ze)(Lt?extend(extend({},$),{valueFormatter:Lt}):$,ze,At>0?le.html:0,ae);hn!=null&&pe.push(hn)});var Ie=$.renderMode==="richText"?pe.join(le.richText):wrapBlockHTML(pe.join(""),ie?oe:le.html);if(ie)return Ie;var Ne=makeValueReadable(z.header,"ordinal",$.useUTC),Fe=getTooltipTextStyle(ae,$.renderMode).nameStyle;return $.renderMode==="richText"?wrapInlineNameRichText($,Ne,Fe)+le.richText+Ie:wrapBlockHTML('<div style="'+Fe+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(Ne)+"</div>"+Ie,oe)}function buildNameValue($,z,oe,ae){var ie=$.renderMode,le=z.noName,pe=z.noValue,_e=!z.markerType,Ce=z.name,$e=$.useUTC,xe=z.valueFormatter||$.valueFormatter||function(bn){return bn=isArray$1(bn)?bn:[bn],map$2(bn,function(Cn,En){return makeValueReadable(Cn,isArray$1(Fe)?Fe[En]:Fe,$e)})};if(!(le&&pe)){var Ie=_e?"":$.markupStyleCreator.makeTooltipMarker(z.markerType,z.markerColor||"#333",ie),Ne=le?"":makeValueReadable(Ce,"ordinal",$e),Fe=z.valueType,ze=pe?[]:xe(z.value),At=!_e||!le,Lt=!_e&&le,hn=getTooltipTextStyle(ae,ie),vn=hn.nameStyle,_n=hn.valueStyle;return ie==="richText"?(_e?"":Ie)+(le?"":wrapInlineNameRichText($,Ne,vn))+(pe?"":wrapInlineValueRichText($,ze,At,Lt,_n)):wrapBlockHTML((_e?"":Ie)+(le?"":wrapInlineNameHTML(Ne,!_e,vn))+(pe?"":wrapInlineValueHTML(ze,At,Lt,_n)),oe)}}function buildTooltipMarkup($,z,oe,ae,ie,le){if($){var pe=getBuilder($),_e={useUTC:ie,renderMode:oe,orderMode:ae,markupStyleCreator:z,valueFormatter:$.valueFormatter};return pe(_e,$,0,le)}}function getGap($){return{html:HTML_GAPS[$],richText:RICH_TEXT_GAPS[$]}}function wrapBlockHTML($,z){var oe='<div style="clear:both"></div>',ae="margin: "+z+"px 0 0";return'<div style="'+ae+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+$+oe+"</div>"}function wrapInlineNameHTML($,z,oe){var ae=z?"margin-left:2px":"";return'<span style="'+oe+";"+ae+'">'+encodeHTML($)+"</span>"}function wrapInlineValueHTML($,z,oe,ae){var ie=oe?"10px":"20px",le=z?"float:right;margin-left:"+ie:"";return $=isArray$1($)?$:[$],'<span style="'+le+";"+ae+'">'+map$2($,function(pe){return encodeHTML(pe)}).join(" ")+"</span>"}function wrapInlineNameRichText($,z,oe){return $.markupStyleCreator.wrapRichTextStyle(z,oe)}function wrapInlineValueRichText($,z,oe,ae,ie){var le=[ie],pe=ae?10:20;return oe&&le.push({padding:[0,0,0,pe],align:"right"}),$.markupStyleCreator.wrapRichTextStyle(isArray$1(z)?z.join(" "):z,le)}function retrieveVisualColorForTooltipMarker($,z){var oe=$.getData().getItemVisual(z,"style"),ae=oe[$.visualDrawType];return convertToColorString(ae)}function getPaddingFromTooltipModel($,z){var oe=$.get("padding");return oe??(z==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function $(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return $.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},$.prototype.makeTooltipMarker=function(z,oe,ae){var ie=ae==="richText"?this._generateStyleName():null,le=getTooltipMarker({color:oe,type:z,renderMode:ae,markerId:ie});return isString(le)?le:(this.richTextStyles[ie]=le.style,le.content)},$.prototype.wrapRichTextStyle=function(z,oe){var ae={};isArray$1(oe)?each$c(oe,function(le){return extend(ae,le)}):extend(ae,oe);var ie=this._generateStyleName();return this.richTextStyles[ie]=ae,"{"+ie+"|"+z+"}"},$}();function defaultSeriesFormatTooltip($){var z=$.series,oe=$.dataIndex,ae=$.multipleSeries,ie=z.getData(),le=ie.mapDimensionsAll("defaultedTooltip"),pe=le.length,_e=z.getRawValue(oe),Ce=isArray$1(_e),$e=retrieveVisualColorForTooltipMarker(z,oe),xe,Ie,Ne,Fe;if(pe>1||Ce&&!pe){var ze=formatTooltipArrayValue(_e,z,oe,le,$e);xe=ze.inlineValues,Ie=ze.inlineValueTypes,Ne=ze.blocks,Fe=ze.inlineValues[0]}else if(pe){var At=ie.getDimensionInfo(le[0]);Fe=xe=retrieveRawValue(ie,oe,le[0]),Ie=At.type}else Fe=xe=Ce?_e[0]:_e;var Lt=isNameSpecified(z),hn=Lt&&z.name||"",vn=ie.getName(oe),_n=ae?hn:vn;return createTooltipMarkup("section",{header:hn,noHeader:ae||!Lt,sortParam:Fe,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:$e,name:_n,noName:!trim$1(_n),value:xe,valueType:Ie})].concat(Ne||[])})}function formatTooltipArrayValue($,z,oe,ae,ie){var le=z.getData(),pe=reduce($,function(Ie,Ne,Fe){var ze=le.getDimensionInfo(Fe);return Ie=Ie||ze&&ze.tooltip!==!1&&ze.displayName!=null},!1),_e=[],Ce=[],$e=[];ae.length?each$c(ae,function(Ie){xe(retrieveRawValue(le,oe,Ie),Ie)}):each$c($,xe);function xe(Ie,Ne){var Fe=le.getDimensionInfo(Ne);!Fe||Fe.otherDims.tooltip===!1||(pe?$e.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:ie,name:Fe.displayName,value:Ie,valueType:Fe.type})):(_e.push(Ie),Ce.push(Fe.type)))}return{inlineValues:_e,inlineValueTypes:Ce,blocks:$e}}var inner$b=makeInner();function getSelectionKey($,z){return $.getName(z)||$.getId(z)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe._selectedDataIndicesMap={},oe}return z.prototype.init=function(oe,ae,ie){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(oe,ie);var le=inner$b(this).sourceManager=new SourceManager(this);le.prepareSource();var pe=this.getInitialData(oe,ie);wrapData(pe,this),this.dataTask.context.data=pe,inner$b(this).dataBeforeProcessed=pe,autoSeriesName(this),this._initSelectedMapFromData(pe)},z.prototype.mergeDefaultAndTheme=function(oe,ae){var ie=fetchLayoutMode(this),le=ie?getLayoutParams(oe):{},pe=this.subType;ComponentModel$1.hasClass(pe)&&(pe+="Series"),merge(oe,ae.getTheme().get(this.subType)),merge(oe,this.getDefaultOption()),defaultEmphasis(oe,"label",["show"]),this.fillDataTextStyle(oe.data),ie&&mergeLayoutParam(oe,le,ie)},z.prototype.mergeOption=function(oe,ae){oe=merge(this.option,oe,!0),this.fillDataTextStyle(oe.data);var ie=fetchLayoutMode(this);ie&&mergeLayoutParam(this.option,oe,ie);var le=inner$b(this).sourceManager;le.dirty(),le.prepareSource();var pe=this.getInitialData(oe,ae);wrapData(pe,this),this.dataTask.dirty(),this.dataTask.context.data=pe,inner$b(this).dataBeforeProcessed=pe,autoSeriesName(this),this._initSelectedMapFromData(pe)},z.prototype.fillDataTextStyle=function(oe){if(oe&&!isTypedArray(oe))for(var ae=["show"],ie=0;ie<oe.length;ie++)oe[ie]&&oe[ie].label&&defaultEmphasis(oe[ie],"label",ae)},z.prototype.getInitialData=function(oe,ae){},z.prototype.appendData=function(oe){var ae=this.getRawData();ae.appendData(oe.data)},z.prototype.getData=function(oe){var ae=getCurrentTask(this);if(ae){var ie=ae.context.data;return oe==null?ie:ie.getLinkedData(oe)}else return inner$b(this).data},z.prototype.getAllData=function(){var oe=this.getData();return oe&&oe.getLinkedDataAll?oe.getLinkedDataAll():[{data:oe}]},z.prototype.setData=function(oe){var ae=getCurrentTask(this);if(ae){var ie=ae.context;ie.outputData=oe,ae!==this.dataTask&&(ie.data=oe)}inner$b(this).data=oe},z.prototype.getEncode=function(){var oe=this.get("encode",!0);if(oe)return createHashMap(oe)},z.prototype.getSourceManager=function(){return inner$b(this).sourceManager},z.prototype.getSource=function(){return this.getSourceManager().getSource()},z.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},z.prototype.getColorBy=function(){var oe=this.get("colorBy");return oe||"series"},z.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},z.prototype.getBaseAxis=function(){var oe=this.coordinateSystem;return oe&&oe.getBaseAxis&&oe.getBaseAxis()},z.prototype.formatTooltip=function(oe,ae,ie){return defaultSeriesFormatTooltip({series:this,dataIndex:oe,multipleSeries:ae})},z.prototype.isAnimationEnabled=function(){var oe=this.ecModel;if(env$1.node&&!(oe&&oe.ssr))return!1;var ae=this.getShallow("animation");return ae&&this.getData().count()>this.getShallow("animationThreshold")&&(ae=!1),!!ae},z.prototype.restoreData=function(){this.dataTask.dirty()},z.prototype.getColorFromPalette=function(oe,ae,ie){var le=this.ecModel,pe=PaletteMixin.prototype.getColorFromPalette.call(this,oe,ae,ie);return pe||(pe=le.getColorFromPalette(oe,ae,ie)),pe},z.prototype.coordDimToDataDim=function(oe){return this.getRawData().mapDimensionsAll(oe)},z.prototype.getProgressive=function(){return this.get("progressive")},z.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},z.prototype.select=function(oe,ae){this._innerSelect(this.getData(ae),oe)},z.prototype.unselect=function(oe,ae){var ie=this.option.selectedMap;if(ie){var le=this.option.selectedMode,pe=this.getData(ae);if(le==="series"||ie==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var _e=0;_e<oe.length;_e++){var Ce=oe[_e],$e=getSelectionKey(pe,Ce);ie[$e]=!1,this._selectedDataIndicesMap[$e]=-1}}},z.prototype.toggleSelect=function(oe,ae){for(var ie=[],le=0;le<oe.length;le++)ie[0]=oe[le],this.isSelected(oe[le],ae)?this.unselect(ie,ae):this.select(ie,ae)},z.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var oe=this._selectedDataIndicesMap,ae=keys(oe),ie=[],le=0;le<ae.length;le++){var pe=oe[ae[le]];pe>=0&&ie.push(pe)}return ie},z.prototype.isSelected=function(oe,ae){var ie=this.option.selectedMap;if(!ie)return!1;var le=this.getData(ae);return(ie==="all"||ie[getSelectionKey(le,oe)])&&!le.getItemModel(oe).get(["select","disabled"])},z.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var oe=this.option.universalTransition;return oe?oe===!0?!0:oe&&oe.enabled:!1},z.prototype._innerSelect=function(oe,ae){var ie,le,pe=this.option,_e=pe.selectedMode,Ce=ae.length;if(!(!_e||!Ce)){if(_e==="series")pe.selectedMap="all";else if(_e==="multiple"){isObject$3(pe.selectedMap)||(pe.selectedMap={});for(var $e=pe.selectedMap,xe=0;xe<Ce;xe++){var Ie=ae[xe],Ne=getSelectionKey(oe,Ie);$e[Ne]=!0,this._selectedDataIndicesMap[Ne]=oe.getRawIndex(Ie)}}else if(_e==="single"||_e===!0){var Fe=ae[Ce-1],Ne=getSelectionKey(oe,Fe);pe.selectedMap=(ie={},ie[Ne]=!0,ie),this._selectedDataIndicesMap=(le={},le[Ne]=oe.getRawIndex(Fe),le)}}},z.prototype._initSelectedMapFromData=function(oe){if(!this.option.selectedMap){var ae=[];oe.hasItemOption&&oe.each(function(ie){var le=oe.getRawDataItem(ie);le&&le.selected&&ae.push(ie)}),ae.length>0&&this._innerSelect(oe,ae)}},z.registerClass=function(oe){return ComponentModel$1.registerClass(oe)},z.protoInitialize=function(){var oe=z.prototype;oe.type="series.__base__",oe.seriesIndex=0,oe.ignoreStyleOnData=!1,oe.hasSymbolVisual=!1,oe.defaultSymbol="circle",oe.visualStyleAccessPath="itemStyle",oe.visualDrawType="fill"}(),z}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName($){var z=$.name;isNameSpecified($)||($.name=getSeriesAutoName($)||z)}function getSeriesAutoName($){var z=$.getRawData(),oe=z.mapDimensionsAll("seriesName"),ae=[];return each$c(oe,function(ie){var le=z.getDimensionInfo(ie);le.displayName&&ae.push(le.displayName)}),ae.join(" ")}function dataTaskCount($){return $.model.getRawData().count()}function dataTaskReset($){var z=$.model;return z.setData(z.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress($,z){z.outputData&&$.end>z.outputData.count()&&z.model.getRawData().cloneShallow(z.outputData)}function wrapData($,z){each$c(concatArray($.CHANGABLE_METHODS,$.DOWNSAMPLE_METHODS),function(oe){$.wrapMethod(oe,curry$1(onDataChange,z))})}function onDataChange($,z){var oe=getCurrentTask($);return oe&&oe.setOutputEnd((z||this).count()),z}function getCurrentTask($){var z=($.ecModel||{}).scheduler,oe=z&&z.getPipeline($.uid);if(oe){var ae=oe.currentTask;if(ae){var ie=ae.agentStubMap;ie&&(ae=ie.get($.uid))}return ae}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewComponent")}return $.prototype.init=function(z,oe){},$.prototype.render=function(z,oe,ae,ie){},$.prototype.dispose=function(z,oe){},$.prototype.updateView=function(z,oe,ae,ie){},$.prototype.updateLayout=function(z,oe,ae,ie){},$.prototype.updateVisual=function(z,oe,ae,ie){},$.prototype.toggleBlurSeries=function(z,oe,ae){},$.prototype.eachRendered=function(z){var oe=this.group;oe&&oe.traverse(z)},$}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var $=makeInner();return function(z){var oe=$(z),ae=z.pipelineContext,ie=!!oe.large,le=!!oe.progressiveRender,pe=oe.large=!!(ae&&ae.large),_e=oe.progressiveRender=!!(ae&&ae.progressiveRender);return(ie!==pe||le!==_e)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return $.prototype.init=function(z,oe){},$.prototype.render=function(z,oe,ae,ie){},$.prototype.highlight=function(z,oe,ae,ie){var le=z.getData(ie&&ie.dataType);le&&toggleHighlight(le,ie,"emphasis")},$.prototype.downplay=function(z,oe,ae,ie){var le=z.getData(ie&&ie.dataType);le&&toggleHighlight(le,ie,"normal")},$.prototype.remove=function(z,oe){this.group.removeAll()},$.prototype.dispose=function(z,oe){},$.prototype.updateView=function(z,oe,ae,ie){this.render(z,oe,ae,ie)},$.prototype.updateLayout=function(z,oe,ae,ie){this.render(z,oe,ae,ie)},$.prototype.updateVisual=function(z,oe,ae,ie){this.render(z,oe,ae,ie)},$.prototype.eachRendered=function(z){traverseElements(this.group,z)},$.markUpdateMethod=function(z,oe){inner$a(z).updateMethod=oe},$.protoInitialize=function(){var z=$.prototype;z.type="chart"}(),$}();function elSetState($,z,oe){$&&isHighDownDispatcher($)&&(z==="emphasis"?enterEmphasis:leaveEmphasis)($,oe)}function toggleHighlight($,z,oe){var ae=queryDataIndex($,z),ie=z&&z.highlightKey!=null?getHighlightDigit(z.highlightKey):null;ae!=null?each$c(normalizeToArray(ae),function(le){elSetState($.getItemGraphicEl(le),oe,ie)}):$.eachItemGraphicEl(function(le){elSetState(le,oe,ie)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan($){return renderPlanner($.model)}function renderTaskReset($){var z=$.model,oe=$.ecModel,ae=$.api,ie=$.payload,le=z.pipelineContext.progressiveRender,pe=$.view,_e=ie&&inner$a(ie).updateMethod,Ce=le?"incrementalPrepareRender":_e&&pe[_e]?_e:"render";return Ce!=="render"&&pe[Ce](z,oe,ae,ie),progressMethodMap[Ce]}var progressMethodMap={incrementalPrepareRender:{progress:function($,z){z.view.incrementalRender($,z.model,z.ecModel,z.api,z.payload)}},render:{forceFirstProgress:!0,progress:function($,z){z.view.render(z.model,z.ecModel,z.api,z.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle($,z,oe){var ae,ie=0,le=0,pe=null,_e,Ce,$e,xe;z=z||0;function Ie(){le=new Date().getTime(),pe=null,$.apply(Ce,$e||[])}var Ne=function(){for(var Fe=[],ze=0;ze<arguments.length;ze++)Fe[ze]=arguments[ze];ae=new Date().getTime(),Ce=this,$e=Fe;var At=xe||z,Lt=xe||oe;xe=null,_e=ae-(Lt?ie:le)-At,clearTimeout(pe),Lt?pe=setTimeout(Ie,At):_e>=0?Ie():pe=setTimeout(Ie,-_e),ie=ae};return Ne.clear=function(){pe&&(clearTimeout(pe),pe=null)},Ne.debounceNextCall=function(Fe){xe=Fe},Ne}function createOrUpdate($,z,oe,ae){var ie=$[z];if(ie){var le=ie[ORIGIN_METHOD]||ie,pe=ie[THROTTLE_TYPE],_e=ie[RATE];if(_e!==oe||pe!==ae){if(oe==null||!ae)return $[z]=le;ie=$[z]=throttle(le,oe,ae==="debounce"),ie[ORIGIN_METHOD]=le,ie[THROTTLE_TYPE]=ae,ie[RATE]=oe}return ie}}function clear$1($,z){var oe=$[z];oe&&oe[ORIGIN_METHOD]&&(oe.clear&&oe.clear(),$[z]=oe[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($,z){var oe=$.visualStyleMapper||defaultStyleMappers[z];return oe||(console.warn("Unknown style type '"+z+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey($,z){var oe=$.visualDrawType||defaultColorKey[z];return oe||(console.warn("Unknown style type '"+z+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){var oe=$.getData(),ae=$.visualStyleAccessPath||"itemStyle",ie=$.getModel(ae),le=getStyleMapper($,ae),pe=le(ie),_e=ie.getShallow("decal");_e&&(oe.setVisual("decal",_e),_e.dirty=!0);var Ce=getDefaultColorKey($,ae),$e=pe[Ce],xe=isFunction($e)?$e:null,Ie=pe.fill==="auto"||pe.stroke==="auto";if(!pe[Ce]||xe||Ie){var Ne=$.getColorFromPalette($.name,null,z.getSeriesCount());pe[Ce]||(pe[Ce]=Ne,oe.setVisual("colorFromPalette",!0)),pe.fill=pe.fill==="auto"||isFunction(pe.fill)?Ne:pe.fill,pe.stroke=pe.stroke==="auto"||isFunction(pe.stroke)?Ne:pe.stroke}if(oe.setVisual("style",pe),oe.setVisual("drawType",Ce),!z.isSeriesFiltered($)&&xe)return oe.setVisual("colorFromPalette",!1),{dataEach:function(Fe,ze){var At=$.getDataParams(ze),Lt=extend({},pe);Lt[Ce]=xe(At),Fe.setItemVisual(ze,"style",Lt)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){if(!($.ignoreStyleOnData||z.isSeriesFiltered($))){var oe=$.getData(),ae=$.visualStyleAccessPath||"itemStyle",ie=getStyleMapper($,ae),le=oe.getVisual("drawType");return{dataEach:oe.hasItemOption?function(pe,_e){var Ce=pe.getRawDataItem(_e);if(Ce&&Ce[ae]){sharedModel.option=Ce[ae];var $e=ie(sharedModel),xe=pe.ensureUniqueItemVisual(_e,"style");extend(xe,$e),sharedModel.option.decal&&(pe.setItemVisual(_e,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),le in $e&&pe.setItemVisual(_e,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function($){var z=createHashMap();$.eachSeries(function(oe){var ae=oe.getColorBy();if(!oe.isColorBySeries()){var ie=oe.type+"-"+ae,le=z.get(ie);le||(le={},z.set(ie,le)),inner$9(oe).scope=le}}),$.eachSeries(function(oe){if(!(oe.isColorBySeries()||$.isSeriesFiltered(oe))){var ae=oe.getRawData(),ie={},le=oe.getData(),pe=inner$9(oe).scope,_e=oe.visualStyleAccessPath||"itemStyle",Ce=getDefaultColorKey(oe,_e);le.each(function($e){var xe=le.getRawIndex($e);ie[xe]=$e}),ae.each(function($e){var xe=ie[$e],Ie=le.getItemVisual(xe,"colorFromPalette");if(Ie){var Ne=le.ensureUniqueItemVisual(xe,"style"),Fe=ae.getName($e)||$e+"",ze=ae.count();Ne[Ce]=oe.getColorFromPalette(Fe,pe,ze)}})}})}},PI$1=Math.PI;function defaultLoading($,z){z=z||{},defaults(z,{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 oe=new Group$3,ae=new Rect$2({style:{fill:z.maskColor},zlevel:z.zlevel,z:1e4});oe.add(ae);var ie=new ZRText$1({style:{text:z.text,fill:z.textColor,fontSize:z.fontSize,fontWeight:z.fontWeight,fontStyle:z.fontStyle,fontFamily:z.fontFamily},zlevel:z.zlevel,z:10001}),le=new Rect$2({style:{fill:"none"},textContent:ie,textConfig:{position:"right",distance:10},zlevel:z.zlevel,z:10001});oe.add(le);var pe;return z.showSpinner&&(pe=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:z.spinnerRadius},style:{stroke:z.color,lineCap:"round",lineWidth:z.lineWidth},zlevel:z.zlevel,z:10001}),pe.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),pe.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),oe.add(pe)),oe.resize=function(){var _e=ie.getBoundingRect().width,Ce=z.showSpinner?z.spinnerRadius:0,$e=($.getWidth()-Ce*2-(z.showSpinner&&_e?10:0)-_e)/2-(z.showSpinner&&_e?0:5+_e/2)+(z.showSpinner?0:_e/2)+(_e?0:Ce),xe=$.getHeight()/2;z.showSpinner&&pe.setShape({cx:$e,cy:xe}),le.setShape({x:$e-Ce,y:xe-Ce,width:Ce*2,height:Ce*2}),ae.setShape({x:0,y:0,width:$.getWidth(),height:$.getHeight()})},oe.resize(),oe}var Scheduler=function(){function $(z,oe,ae,ie){this._stageTaskMap=createHashMap(),this.ecInstance=z,this.api=oe,ae=this._dataProcessorHandlers=ae.slice(),ie=this._visualHandlers=ie.slice(),this._allHandlers=ae.concat(ie)}return $.prototype.restoreData=function(z,oe){z.restoreData(oe),this._stageTaskMap.each(function(ae){var ie=ae.overallTask;ie&&ie.dirty()})},$.prototype.getPerformArgs=function(z,oe){if(z.__pipeline){var ae=this._pipelineMap.get(z.__pipeline.id),ie=ae.context,le=!oe&&ae.progressiveEnabled&&(!ie||ie.progressiveRender)&&z.__idxInPipeline>ae.blockIndex,pe=le?ae.step:null,_e=ie&&ie.modDataCount,Ce=_e!=null?Math.ceil(_e/pe):null;return{step:pe,modBy:Ce,modDataCount:_e}}},$.prototype.getPipeline=function(z){return this._pipelineMap.get(z)},$.prototype.updateStreamModes=function(z,oe){var ae=this._pipelineMap.get(z.uid),ie=z.getData(),le=ie.count(),pe=ae.progressiveEnabled&&oe.incrementalPrepareRender&&le>=ae.threshold,_e=z.get("large")&&le>=z.get("largeThreshold"),Ce=z.get("progressiveChunkMode")==="mod"?le:null;z.pipelineContext=ae.context={progressiveRender:pe,modDataCount:Ce,large:_e}},$.prototype.restorePipelines=function(z){var oe=this,ae=oe._pipelineMap=createHashMap();z.eachSeries(function(ie){var le=ie.getProgressive(),pe=ie.uid;ae.set(pe,{id:pe,head:null,tail:null,threshold:ie.getProgressiveThreshold(),progressiveEnabled:le&&!(ie.preventIncremental&&ie.preventIncremental()),blockIndex:-1,step:Math.round(le||700),count:0}),oe._pipe(ie,ie.dataTask)})},$.prototype.prepareStageTasks=function(){var z=this._stageTaskMap,oe=this.api.getModel(),ae=this.api;each$c(this._allHandlers,function(ie){var le=z.get(ie.uid)||z.set(ie.uid,{}),pe="";assert(!(ie.reset&&ie.overallReset),pe),ie.reset&&this._createSeriesStageTask(ie,le,oe,ae),ie.overallReset&&this._createOverallStageTask(ie,le,oe,ae)},this)},$.prototype.prepareView=function(z,oe,ae,ie){var le=z.renderTask,pe=le.context;pe.model=oe,pe.ecModel=ae,pe.api=ie,le.__block=!z.incrementalPrepareRender,this._pipe(oe,le)},$.prototype.performDataProcessorTasks=function(z,oe){this._performStageTasks(this._dataProcessorHandlers,z,oe,{block:!0})},$.prototype.performVisualTasks=function(z,oe,ae){this._performStageTasks(this._visualHandlers,z,oe,ae)},$.prototype._performStageTasks=function(z,oe,ae,ie){ie=ie||{};var le=!1,pe=this;each$c(z,function(Ce,$e){if(!(ie.visualType&&ie.visualType!==Ce.visualType)){var xe=pe._stageTaskMap.get(Ce.uid),Ie=xe.seriesTaskMap,Ne=xe.overallTask;if(Ne){var Fe,ze=Ne.agentStubMap;ze.each(function(Lt){_e(ie,Lt)&&(Lt.dirty(),Fe=!0)}),Fe&&Ne.dirty(),pe.updatePayload(Ne,ae);var At=pe.getPerformArgs(Ne,ie.block);ze.each(function(Lt){Lt.perform(At)}),Ne.perform(At)&&(le=!0)}else Ie&&Ie.each(function(Lt,hn){_e(ie,Lt)&&Lt.dirty();var vn=pe.getPerformArgs(Lt,ie.block);vn.skip=!Ce.performRawSeries&&oe.isSeriesFiltered(Lt.context.model),pe.updatePayload(Lt,ae),Lt.perform(vn)&&(le=!0)})}});function _e(Ce,$e){return Ce.setDirty&&(!Ce.dirtyMap||Ce.dirtyMap.get($e.__pipeline.id))}this.unfinished=le||this.unfinished},$.prototype.performSeriesTasks=function(z){var oe;z.eachSeries(function(ae){oe=ae.dataTask.perform()||oe}),this.unfinished=oe||this.unfinished},$.prototype.plan=function(){this._pipelineMap.each(function(z){var oe=z.tail;do{if(oe.__block){z.blockIndex=oe.__idxInPipeline;break}oe=oe.getUpstream()}while(oe)})},$.prototype.updatePayload=function(z,oe){oe!=="remain"&&(z.context.payload=oe)},$.prototype._createSeriesStageTask=function(z,oe,ae,ie){var le=this,pe=oe.seriesTaskMap,_e=oe.seriesTaskMap=createHashMap(),Ce=z.seriesType,$e=z.getTargetSeries;z.createOnAllSeries?ae.eachRawSeries(xe):Ce?ae.eachRawSeriesByType(Ce,xe):$e&&$e(ae,ie).each(xe);function xe(Ie){var Ne=Ie.uid,Fe=_e.set(Ne,pe&&pe.get(Ne)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));Fe.context={model:Ie,ecModel:ae,api:ie,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:le},le._pipe(Ie,Fe)}},$.prototype._createOverallStageTask=function(z,oe,ae,ie){var le=this,pe=oe.overallTask=oe.overallTask||createTask({reset:overallTaskReset});pe.context={ecModel:ae,api:ie,overallReset:z.overallReset,scheduler:le};var _e=pe.agentStubMap,Ce=pe.agentStubMap=createHashMap(),$e=z.seriesType,xe=z.getTargetSeries,Ie=!0,Ne=!1,Fe="";assert(!z.createOnAllSeries,Fe),$e?ae.eachRawSeriesByType($e,ze):xe?xe(ae,ie).each(ze):(Ie=!1,each$c(ae.getSeries(),ze));function ze(At){var Lt=At.uid,hn=Ce.set(Lt,_e&&_e.get(Lt)||(Ne=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));hn.context={model:At,overallProgress:Ie},hn.agent=pe,hn.__block=Ie,le._pipe(At,hn)}Ne&&pe.dirty()},$.prototype._pipe=function(z,oe){var ae=z.uid,ie=this._pipelineMap.get(ae);!ie.head&&(ie.head=oe),ie.tail&&ie.tail.pipe(oe),ie.tail=oe,oe.__idxInPipeline=ie.count++,oe.__pipeline=ie},$.wrapStageHandler=function(z,oe){return isFunction(z)&&(z={overallReset:z,seriesType:detectSeriseType(z)}),z.uid=getUID("stageHandler"),oe&&(z.visualType=oe),z},$}();function overallTaskReset($){$.overallReset($.ecModel,$.api,$.payload)}function stubReset($){return $.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan($){return $.plan?$.plan($.model,$.ecModel,$.api,$.payload):null}function seriesTaskReset($){$.useClearVisual&&$.data.clearAllVisual();var z=$.resetDefines=normalizeToArray($.reset($.model,$.ecModel,$.api,$.payload));return z.length>1?map$2(z,function(oe,ae){return makeSeriesTaskProgress(ae)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress($){return function(z,oe){var ae=oe.data,ie=oe.resetDefines[$];if(ie&&ie.dataEach)for(var le=z.start;le<z.end;le++)ie.dataEach(ae,le);else ie&&ie.progress&&ie.progress(z,ae)}}function seriesTaskCount($){return $.data.count()}function detectSeriseType($){seriesType=null;try{$(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function($){seriesType=$};ecModelMock.eachComponent=function($){$.mainType==="series"&&$.subType&&(seriesType=$.subType)};function mockMethods($,z){for(var oe in z.prototype)$[oe]=noop}const Scheduler$1=Scheduler;var colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]};var contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;const darkTheme=theme;var ECEventProcessor=function(){function $(){}return $.prototype.normalizeQuery=function(z){var oe={},ae={},ie={};if(isString(z)){var le=parseClassType(z);oe.mainType=le.main||null,oe.subType=le.sub||null}else{var pe=["Index","Name","Id"],_e={name:1,dataIndex:1,dataType:1};each$c(z,function(Ce,$e){for(var xe=!1,Ie=0;Ie<pe.length;Ie++){var Ne=pe[Ie],Fe=$e.lastIndexOf(Ne);if(Fe>0&&Fe===$e.length-Ne.length){var ze=$e.slice(0,Fe);ze!=="data"&&(oe.mainType=ze,oe[Ne.toLowerCase()]=Ce,xe=!0)}}_e.hasOwnProperty($e)&&(ae[$e]=Ce,xe=!0),xe||(ie[$e]=Ce)})}return{cptQuery:oe,dataQuery:ae,otherQuery:ie}},$.prototype.filter=function(z,oe){var ae=this.eventInfo;if(!ae)return!0;var ie=ae.targetEl,le=ae.packedEvent,pe=ae.model,_e=ae.view;if(!pe||!_e)return!0;var Ce=oe.cptQuery,$e=oe.dataQuery;return xe(Ce,pe,"mainType")&&xe(Ce,pe,"subType")&&xe(Ce,pe,"index","componentIndex")&&xe(Ce,pe,"name")&&xe(Ce,pe,"id")&&xe($e,le,"name")&&xe($e,le,"dataIndex")&&xe($e,le,"dataType")&&(!_e.filterForExposedEvent||_e.filterForExposedEvent(z,oe.otherQuery,ie,le));function xe(Ie,Ne,Fe,ze){return Ie[Fe]==null||Ne[ze||Fe]===Ie[Fe]}},$.prototype.afterTrigger=function(){this.eventInfo=null},$}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){var oe=$.getData();if($.legendIcon&&oe.setVisual("legendIcon",$.legendIcon),!$.hasSymbolVisual)return;for(var ae={},ie={},le=!1,pe=0;pe<SYMBOL_PROPS_WITH_CB.length;pe++){var _e=SYMBOL_PROPS_WITH_CB[pe],Ce=$.get(_e);isFunction(Ce)?(le=!0,ie[_e]=Ce):ae[_e]=Ce}if(ae.symbol=ae.symbol||$.defaultSymbol,oe.setVisual(extend({legendIcon:$.legendIcon||ae.symbol,symbolKeepAspect:$.get("symbolKeepAspect")},ae)),z.isSeriesFiltered($))return;var $e=keys(ie);function xe(Ie,Ne){for(var Fe=$.getRawValue(Ne),ze=$.getDataParams(Ne),At=0;At<$e.length;At++){var Lt=$e[At];Ie.setItemVisual(Ne,Lt,ie[Lt](Fe,ze))}}return{dataEach:le?xe:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){if(!$.hasSymbolVisual||z.isSeriesFiltered($))return;var oe=$.getData();function ae(ie,le){for(var pe=ie.getItemModel(le),_e=0;_e<SYMBOL_PROPS.length;_e++){var Ce=SYMBOL_PROPS[_e],$e=pe.getShallow(Ce,!0);$e!=null&&ie.setItemVisual(le,Ce,$e)}}return{dataEach:oe.hasItemOption?ae:null}}};function getItemVisualFromData($,z,oe){switch(oe){case"color":var ae=$.getItemVisual(z,"style");return ae[$.getVisual("drawType")];case"opacity":return $.getItemVisual(z,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getItemVisual(z,oe)}}function getVisualFromData($,z){switch(z){case"color":var oe=$.getVisual("style");return oe[$.getVisual("drawType")];case"opacity":return $.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getVisual(z)}}function setItemVisualFromData($,z,oe,ae){switch(oe){case"color":var ie=$.ensureUniqueItemVisual(z,"style");ie[$.getVisual("drawType")]=ae,$.setItemVisual(z,"colorFromPalette",!1);break;case"opacity":$.ensureUniqueItemVisual(z,"style").opacity=ae;break;case"symbol":case"symbolSize":case"liftZ":$.setItemVisual(z,oe,ae);break}}function createLegacyDataSelectAction($,z){function oe(ae,ie){var le=[];return ae.eachComponent({mainType:"series",subType:$,query:ie},function(pe){le.push(pe.seriesIndex)}),le}each$c([[$+"ToggleSelect","toggleSelect"],[$+"Select","select"],[$+"UnSelect","unselect"]],function(ae){z(ae[0],function(ie,le,pe){ie=extend({},ie),pe.dispatchAction(extend(ie,{type:ae[1],seriesIndex:oe(le,ie)}))})})}function handleSeriesLegacySelectEvents($,z,oe,ae,ie){var le=$+z;oe.isSilent(le)||ae.eachComponent({mainType:"series",subType:"pie"},function(pe){for(var _e=pe.seriesIndex,Ce=pe.option.selectedMap,$e=ie.selected,xe=0;xe<$e.length;xe++)if($e[xe].seriesIndex===_e){var Ie=pe.getData(),Ne=queryDataIndex(Ie,ie.fromActionPayload);oe.trigger(le,{type:le,seriesId:pe.id,name:isArray$1(Ne)?Ie.getName(Ne[0]):Ie.getName(Ne),selected:isString(Ce)?Ce:extend({},Ce)})}})}function handleLegacySelectEvents($,z,oe){$.on("selectchanged",function(ae){var ie=oe.getModel();ae.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",z,ie,ae),handleSeriesLegacySelectEvents("pie","selectchanged",z,ie,ae)):ae.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",z,ie,ae),handleSeriesLegacySelectEvents("pie","selected",z,ie,ae)):ae.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",z,ie,ae),handleSeriesLegacySelectEvents("pie","unselected",z,ie,ae))})}function findEventDispatcher($,z,oe){for(var ae;$&&!(z($)&&(ae=$,oe));)$=$.__hostTarget||$.parent;return ae}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function $(){this._id="__ec_inner_"+wmUniqueIndex++}return $.prototype.get=function(z){return this._guard(z)[this._id]},$.prototype.set=function(z,oe){var ae=this._guard(z);return supportDefineProperty?Object.defineProperty(ae,this._id,{value:oe,enumerable:!1,configurable:!0}):ae[this._id]=oe,this},$.prototype.delete=function(z){return this.has(z)?(delete this._guard(z)[this._id],!0):!1},$.prototype.has=function(z){return!!this._guard(z)[this._id]},$.prototype._guard=function(z){if(z!==Object(z))throw TypeError("Value of WeakMap is not a non-null object.");return z},$}();const WeakMap$2=WeakMap$1;var Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,z){var oe=z.cx,ae=z.cy,ie=z.width/2,le=z.height/2;$.moveTo(oe,ae-le),$.lineTo(oe+ie,ae+le),$.lineTo(oe-ie,ae+le),$.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,z){var oe=z.cx,ae=z.cy,ie=z.width/2,le=z.height/2;$.moveTo(oe,ae-le),$.lineTo(oe+ie,ae),$.lineTo(oe,ae+le),$.lineTo(oe-ie,ae),$.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function($,z){var oe=z.x,ae=z.y,ie=z.width/5*3,le=Math.max(ie,z.height),pe=ie/2,_e=pe*pe/(le-pe),Ce=ae-le+pe+_e,$e=Math.asin(_e/pe),xe=Math.cos($e)*pe,Ie=Math.sin($e),Ne=Math.cos($e),Fe=pe*.6,ze=pe*.7;$.moveTo(oe-xe,Ce+_e),$.arc(oe,Ce,pe,Math.PI-$e,Math.PI*2+$e),$.bezierCurveTo(oe+xe-Ie*Fe,Ce+_e+Ne*Fe,oe,ae-ze,oe,ae),$.bezierCurveTo(oe,ae-ze,oe-xe+Ie*Fe,Ce+_e+Ne*Fe,oe-xe,Ce+_e),$.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function($,z){var oe=z.height,ae=z.width,ie=z.x,le=z.y,pe=ae/3*2;$.moveTo(ie,le),$.lineTo(ie+pe,le+oe),$.lineTo(ie,le+oe/4*3),$.lineTo(ie-pe,le+oe),$.lineTo(ie,le),$.closePath()}}),symbolCtors={line:Line$1,rect:Rect$2,roundRect:Rect$2,square:Rect$2,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function($,z,oe,ae,ie){ie.x1=$,ie.y1=z+ae/2,ie.x2=$+oe,ie.y2=z+ae/2},rect:function($,z,oe,ae,ie){ie.x=$,ie.y=z,ie.width=oe,ie.height=ae},roundRect:function($,z,oe,ae,ie){ie.x=$,ie.y=z,ie.width=oe,ie.height=ae,ie.r=Math.min(oe,ae)/4},square:function($,z,oe,ae,ie){var le=Math.min(oe,ae);ie.x=$,ie.y=z,ie.width=le,ie.height=le},circle:function($,z,oe,ae,ie){ie.cx=$+oe/2,ie.cy=z+ae/2,ie.r=Math.min(oe,ae)/2},diamond:function($,z,oe,ae,ie){ie.cx=$+oe/2,ie.cy=z+ae/2,ie.width=oe,ie.height=ae},pin:function($,z,oe,ae,ie){ie.x=$+oe/2,ie.y=z+ae/2,ie.width=oe,ie.height=ae},arrow:function($,z,oe,ae,ie){ie.x=$+oe/2,ie.y=z+ae/2,ie.width=oe,ie.height=ae},triangle:function($,z,oe,ae,ie){ie.cx=$+oe/2,ie.cy=z+ae/2,ie.width=oe,ie.height=ae}},symbolBuildProxies={};each$c(symbolCtors,function($,z){symbolBuildProxies[z]=new $});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function($,z,oe){var ae=calculateTextPosition($,z,oe),ie=this.shape;return ie&&ie.symbolType==="pin"&&z.position==="inside"&&(ae.y=oe.y+oe.height*.4),ae},buildPath:function($,z,oe){var ae=z.symbolType;if(ae!=="none"){var ie=symbolBuildProxies[ae];ie||(ae="rect",ie=symbolBuildProxies[ae]),symbolShapeMakers[ae](z.x,z.y,z.width,z.height,ie.shape),ie.buildPath($,ie.shape,oe)}}});function symbolPathSetColor($,z){if(this.type!=="image"){var oe=this.style;this.__isEmptyBrush?(oe.stroke=$,oe.fill=z||"#fff",oe.lineWidth=2):this.shape.symbolType==="line"?oe.stroke=$:oe.fill=$,this.markRedraw()}}function createSymbol($,z,oe,ae,ie,le,pe){var _e=$.indexOf("empty")===0;_e&&($=$.substr(5,1).toLowerCase()+$.substr(6));var Ce;return $.indexOf("image://")===0?Ce=makeImage($.slice(8),new BoundingRect$1(z,oe,ae,ie),pe?"center":"cover"):$.indexOf("path://")===0?Ce=makePath($.slice(7),{},new BoundingRect$1(z,oe,ae,ie),pe?"center":"cover"):Ce=new SymbolClz$1({shape:{symbolType:$,x:z,y:oe,width:ae,height:ie}}),Ce.__isEmptyBrush=_e,Ce.setColor=symbolPathSetColor,le&&Ce.setColor(le),Ce}function normalizeSymbolSize($){return isArray$1($)||($=[+$,+$]),[$[0]||0,$[1]||0]}function normalizeSymbolOffset($,z){if($!=null)return isArray$1($)||($=[$,$]),[parsePercent($[0],z[0])||0,parsePercent(retrieve2($[1],$[0]),z[1])||0]}function isSafeNum($){return isFinite($)}function createLinearGradient($,z,oe){var ae=z.x==null?0:z.x,ie=z.x2==null?1:z.x2,le=z.y==null?0:z.y,pe=z.y2==null?0:z.y2;z.global||(ae=ae*oe.width+oe.x,ie=ie*oe.width+oe.x,le=le*oe.height+oe.y,pe=pe*oe.height+oe.y),ae=isSafeNum(ae)?ae:0,ie=isSafeNum(ie)?ie:1,le=isSafeNum(le)?le:0,pe=isSafeNum(pe)?pe:0;var _e=$.createLinearGradient(ae,le,ie,pe);return _e}function createRadialGradient($,z,oe){var ae=oe.width,ie=oe.height,le=Math.min(ae,ie),pe=z.x==null?.5:z.x,_e=z.y==null?.5:z.y,Ce=z.r==null?.5:z.r;z.global||(pe=pe*ae+oe.x,_e=_e*ie+oe.y,Ce=Ce*le),pe=isSafeNum(pe)?pe:.5,_e=isSafeNum(_e)?_e:.5,Ce=Ce>=0&&isSafeNum(Ce)?Ce:.5;var $e=$.createRadialGradient(pe,_e,0,pe,_e,Ce);return $e}function getCanvasGradient($,z,oe){for(var ae=z.type==="radial"?createRadialGradient($,z,oe):createLinearGradient($,z,oe),ie=z.colorStops,le=0;le<ie.length;le++)ae.addColorStop(ie[le].offset,ie[le].color);return ae}function isClipPathChanged($,z){if($===z||!$&&!z)return!1;if(!$||!z||$.length!==z.length)return!0;for(var oe=0;oe<$.length;oe++)if($[oe]!==z[oe])return!0;return!1}function parseInt10($){return parseInt($,10)}function getSize$1($,z,oe){var ae=["width","height"][z],ie=["clientWidth","clientHeight"][z],le=["paddingLeft","paddingTop"][z],pe=["paddingRight","paddingBottom"][z];if(oe[ae]!=null&&oe[ae]!=="auto")return parseFloat(oe[ae]);var _e=document.defaultView.getComputedStyle($);return($[ie]||parseInt10(_e[ae])||parseInt10($.style[ae]))-(parseInt10(_e[le])||0)-(parseInt10(_e[pe])||0)|0}function normalizeLineDash($,z){return!$||$==="solid"||!(z>0)?null:$==="dashed"?[4*z,2*z]:$==="dotted"?[z]:isNumber($)?[$]:isArray$1($)?$:null}function getLineDash($){var z=$.style,oe=z.lineDash&&z.lineWidth>0&&normalizeLineDash(z.lineDash,z.lineWidth),ae=z.lineDashOffset;if(oe){var ie=z.strokeNoScale&&$.getLineScale?$.getLineScale():1;ie&&ie!==1&&(oe=map$2(oe,function(le){return le/ie}),ae/=ie)}return[oe,ae]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke($){var z=$.stroke;return!(z==null||z==="none"||!($.lineWidth>0))}function isValidStrokeFillStyle($){return typeof $=="string"&&$!=="none"}function styleHasFill($){var z=$.fill;return z!=null&&z!=="none"}function doFillPath($,z){if(z.fillOpacity!=null&&z.fillOpacity!==1){var oe=$.globalAlpha;$.globalAlpha=z.fillOpacity*z.opacity,$.fill(),$.globalAlpha=oe}else $.fill()}function doStrokePath($,z){if(z.strokeOpacity!=null&&z.strokeOpacity!==1){var oe=$.globalAlpha;$.globalAlpha=z.strokeOpacity*z.opacity,$.stroke(),$.globalAlpha=oe}else $.stroke()}function createCanvasPattern($,z,oe){var ae=createOrUpdateImage(z.image,z.__image,oe);if(isImageReady(ae)){var ie=$.createPattern(ae,z.repeat||"repeat");if(typeof DOMMatrix=="function"&&ie&&ie.setTransform){var le=new DOMMatrix;le.translateSelf(z.x||0,z.y||0),le.rotateSelf(0,0,(z.rotation||0)*RADIAN_TO_DEGREE),le.scaleSelf(z.scaleX||1,z.scaleY||1),ie.setTransform(le)}return ie}}function brushPath($,z,oe,ae){var ie,le=styleHasStroke(oe),pe=styleHasFill(oe),_e=oe.strokePercent,Ce=_e<1,$e=!z.path;(!z.silent||Ce)&&$e&&z.createPathProxy();var xe=z.path||pathProxyForDraw,Ie=z.__dirty;if(!ae){var Ne=oe.fill,Fe=oe.stroke,ze=pe&&!!Ne.colorStops,At=le&&!!Fe.colorStops,Lt=pe&&!!Ne.image,hn=le&&!!Fe.image,vn=void 0,_n=void 0,bn=void 0,Cn=void 0,En=void 0;(ze||At)&&(En=z.getBoundingRect()),ze&&(vn=Ie?getCanvasGradient($,Ne,En):z.__canvasFillGradient,z.__canvasFillGradient=vn),At&&(_n=Ie?getCanvasGradient($,Fe,En):z.__canvasStrokeGradient,z.__canvasStrokeGradient=_n),Lt&&(bn=Ie||!z.__canvasFillPattern?createCanvasPattern($,Ne,z):z.__canvasFillPattern,z.__canvasFillPattern=bn),hn&&(Cn=Ie||!z.__canvasStrokePattern?createCanvasPattern($,Fe,z):z.__canvasStrokePattern,z.__canvasStrokePattern=bn),ze?$.fillStyle=vn:Lt&&(bn?$.fillStyle=bn:pe=!1),At?$.strokeStyle=_n:hn&&(Cn?$.strokeStyle=Cn:le=!1)}var $n=z.getGlobalScale();xe.setScale($n[0],$n[1],z.segmentIgnoreThreshold);var wn,Tn;$.setLineDash&&oe.lineDash&&(ie=getLineDash(z),wn=ie[0],Tn=ie[1]);var xn=!0;($e||Ie&SHAPE_CHANGED_BIT)&&(xe.setDPR($.dpr),Ce?xe.setContext(null):(xe.setContext($),xn=!1),xe.reset(),z.buildPath(xe,z.shape,ae),xe.toStatic(),z.pathUpdated()),xn&&xe.rebuildPath($,Ce?_e:1),wn&&($.setLineDash(wn),$.lineDashOffset=Tn),ae||(oe.strokeFirst?(le&&doStrokePath($,oe),pe&&doFillPath($,oe)):(pe&&doFillPath($,oe),le&&doStrokePath($,oe))),wn&&$.setLineDash([])}function brushImage($,z,oe){var ae=z.__image=createOrUpdateImage(oe.image,z.__image,z,z.onload);if(!(!ae||!isImageReady(ae))){var ie=oe.x||0,le=oe.y||0,pe=z.getWidth(),_e=z.getHeight(),Ce=ae.width/ae.height;if(pe==null&&_e!=null?pe=_e*Ce:_e==null&&pe!=null?_e=pe/Ce:pe==null&&_e==null&&(pe=ae.width,_e=ae.height),oe.sWidth&&oe.sHeight){var $e=oe.sx||0,xe=oe.sy||0;$.drawImage(ae,$e,xe,oe.sWidth,oe.sHeight,ie,le,pe,_e)}else if(oe.sx&&oe.sy){var $e=oe.sx,xe=oe.sy,Ie=pe-$e,Ne=_e-xe;$.drawImage(ae,$e,xe,Ie,Ne,ie,le,pe,_e)}else $.drawImage(ae,ie,le,pe,_e)}}function brushText($,z,oe){var ae,ie=oe.text;if(ie!=null&&(ie+=""),ie){$.font=oe.font||DEFAULT_FONT,$.textAlign=oe.textAlign,$.textBaseline=oe.textBaseline;var le=void 0,pe=void 0;$.setLineDash&&oe.lineDash&&(ae=getLineDash(z),le=ae[0],pe=ae[1]),le&&($.setLineDash(le),$.lineDashOffset=pe),oe.strokeFirst?(styleHasStroke(oe)&&$.strokeText(ie,oe.x,oe.y),styleHasFill(oe)&&$.fillText(ie,oe.x,oe.y)):(styleHasFill(oe)&&$.fillText(ie,oe.x,oe.y),styleHasStroke(oe)&&$.strokeText(ie,oe.x,oe.y)),le&&$.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps($,z,oe,ae,ie){var le=!1;if(!ae&&(oe=oe||{},z===oe))return!1;if(ae||z.opacity!==oe.opacity){flushPathDrawn($,ie),le=!0;var pe=Math.max(Math.min(z.opacity,1),0);$.globalAlpha=isNaN(pe)?DEFAULT_COMMON_STYLE.opacity:pe}(ae||z.blend!==oe.blend)&&(le||(flushPathDrawn($,ie),le=!0),$.globalCompositeOperation=z.blend||DEFAULT_COMMON_STYLE.blend);for(var _e=0;_e<SHADOW_NUMBER_PROPS.length;_e++){var Ce=SHADOW_NUMBER_PROPS[_e];(ae||z[Ce]!==oe[Ce])&&(le||(flushPathDrawn($,ie),le=!0),$[Ce]=$.dpr*(z[Ce]||0))}return(ae||z.shadowColor!==oe.shadowColor)&&(le||(flushPathDrawn($,ie),le=!0),$.shadowColor=z.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),le}function bindPathAndTextCommonStyle($,z,oe,ae,ie){var le=getStyle(z,ie.inHover),pe=ae?null:oe&&getStyle(oe,ie.inHover)||{};if(le===pe)return!1;var _e=bindCommonProps($,le,pe,ae,ie);if((ae||le.fill!==pe.fill)&&(_e||(flushPathDrawn($,ie),_e=!0),isValidStrokeFillStyle(le.fill)&&($.fillStyle=le.fill)),(ae||le.stroke!==pe.stroke)&&(_e||(flushPathDrawn($,ie),_e=!0),isValidStrokeFillStyle(le.stroke)&&($.strokeStyle=le.stroke)),(ae||le.opacity!==pe.opacity)&&(_e||(flushPathDrawn($,ie),_e=!0),$.globalAlpha=le.opacity==null?1:le.opacity),z.hasStroke()){var Ce=le.lineWidth,$e=Ce/(le.strokeNoScale&&z.getLineScale?z.getLineScale():1);$.lineWidth!==$e&&(_e||(flushPathDrawn($,ie),_e=!0),$.lineWidth=$e)}for(var xe=0;xe<STROKE_PROPS.length;xe++){var Ie=STROKE_PROPS[xe],Ne=Ie[0];(ae||le[Ne]!==pe[Ne])&&(_e||(flushPathDrawn($,ie),_e=!0),$[Ne]=le[Ne]||Ie[1])}return _e}function bindImageStyle($,z,oe,ae,ie){return bindCommonProps($,getStyle(z,ie.inHover),oe&&getStyle(oe,ie.inHover),ae,ie)}function setContextTransform($,z){var oe=z.transform,ae=$.dpr||1;oe?$.setTransform(ae*oe[0],ae*oe[1],ae*oe[2],ae*oe[3],ae*oe[4],ae*oe[5]):$.setTransform(ae,0,0,ae,0,0)}function updateClipStatus($,z,oe){for(var ae=!1,ie=0;ie<$.length;ie++){var le=$[ie];ae=ae||le.isZeroArea(),setContextTransform(z,le),z.beginPath(),le.buildPath(z,le.shape),z.clip()}oe.allClipped=ae}function isTransformChanged($,z){return $&&z?$[0]!==z[0]||$[1]!==z[1]||$[2]!==z[2]||$[3]!==z[3]||$[4]!==z[4]||$[5]!==z[5]:!(!$&&!z)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch($){var z=styleHasFill($),oe=styleHasStroke($);return!($.lineDash||!(+z^+oe)||z&&typeof $.fill!="string"||oe&&typeof $.stroke!="string"||$.strokePercent<1||$.strokeOpacity<1||$.fillOpacity<1)}function flushPathDrawn($,z){z.batchFill&&$.fill(),z.batchStroke&&$.stroke(),z.batchFill="",z.batchStroke=""}function getStyle($,z){return z&&$.__hoverStyle||$.style}function brushSingle($,z){brush($,z,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush($,z,oe,ae){var ie=z.transform;if(!z.shouldBePainted(oe.viewWidth,oe.viewHeight,!1,!1)){z.__dirty&=~REDRAW_BIT,z.__isRendered=!1;return}var le=z.__clipPaths,pe=oe.prevElClipPaths,_e=!1,Ce=!1;if((!pe||isClipPathChanged(le,pe))&&(pe&&pe.length&&(flushPathDrawn($,oe),$.restore(),Ce=_e=!0,oe.prevElClipPaths=null,oe.allClipped=!1,oe.prevEl=null),le&&le.length&&(flushPathDrawn($,oe),$.save(),updateClipStatus(le,$,oe),_e=!0),oe.prevElClipPaths=le),oe.allClipped){z.__isRendered=!1;return}z.beforeBrush&&z.beforeBrush(),z.innerBeforeBrush();var $e=oe.prevEl;$e||(Ce=_e=!0);var xe=z instanceof Path$1&&z.autoBatch&&canPathBatch(z.style);_e||isTransformChanged(ie,$e.transform)?(flushPathDrawn($,oe),setContextTransform($,z)):xe||flushPathDrawn($,oe);var Ie=getStyle(z,oe.inHover);z instanceof Path$1?(oe.lastDrawType!==DRAW_TYPE_PATH&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle($,z,$e,Ce,oe),(!xe||!oe.batchFill&&!oe.batchStroke)&&$.beginPath(),brushPath($,z,Ie,xe),xe&&(oe.batchFill=Ie.fill||"",oe.batchStroke=Ie.stroke||"")):z instanceof TSpan$1?(oe.lastDrawType!==DRAW_TYPE_TEXT&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle($,z,$e,Ce,oe),brushText($,z,Ie)):z instanceof ZRImage$1?(oe.lastDrawType!==DRAW_TYPE_IMAGE&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle($,z,$e,Ce,oe),brushImage($,z,Ie)):z.getTemporalDisplayables&&(oe.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental($,z,oe)),xe&&ae&&flushPathDrawn($,oe),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),oe.prevEl=z,z.__dirty=0,z.__isRendered=!0}function brushIncremental($,z,oe){var ae=z.getDisplayables(),ie=z.getTemporalDisplayables();$.save();var le={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:oe.viewWidth,viewHeight:oe.viewHeight,inHover:oe.inHover},pe,_e;for(pe=z.getCursor(),_e=ae.length;pe<_e;pe++){var Ce=ae[pe];Ce.beforeBrush&&Ce.beforeBrush(),Ce.innerBeforeBrush(),brush($,Ce,le,pe===_e-1),Ce.innerAfterBrush(),Ce.afterBrush&&Ce.afterBrush(),le.prevEl=Ce}for(var $e=0,xe=ie.length;$e<xe;$e++){var Ce=ie[$e];Ce.beforeBrush&&Ce.beforeBrush(),Ce.innerBeforeBrush(),brush($,Ce,le,$e===xe-1),Ce.innerAfterBrush(),Ce.afterBrush&&Ce.afterBrush(),le.prevEl=Ce}z.clearTemporalDisplayables(),z.notClear=!0,$.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal($,z){if($==="none")return null;var oe=z.getDevicePixelRatio(),ae=z.getZr(),ie=ae.painter.type==="svg";$.dirty&&decalMap.delete($);var le=decalMap.get($);if(le)return le;var pe=defaults($,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});pe.backgroundColor==="none"&&(pe.backgroundColor=null);var _e={repeat:"repeat"};return Ce(_e),_e.rotation=pe.rotation,_e.scaleX=_e.scaleY=ie?1:1/oe,decalMap.set($,_e),$.dirty=!1,_e;function Ce($e){for(var xe=[oe],Ie=!0,Ne=0;Ne<decalKeys.length;++Ne){var Fe=pe[decalKeys[Ne]];if(Fe!=null&&!isArray$1(Fe)&&!isString(Fe)&&!isNumber(Fe)&&typeof Fe!="boolean"){Ie=!1;break}xe.push(Fe)}var ze;if(Ie){ze=xe.join(",")+(ie?"-svg":"");var At=decalCache.get(ze);At&&(ie?$e.svgElement=At:$e.image=At)}var Lt=normalizeDashArrayX(pe.dashArrayX),hn=normalizeDashArrayY(pe.dashArrayY),vn=normalizeSymbolArray(pe.symbol),_n=getLineBlockLengthX(Lt),bn=getLineBlockLengthY(hn),Cn=!ie&&platformApi.createCanvas(),En=ie&&{tag:"g",attrs:{},key:"dcl",children:[]},$n=Tn(),wn;Cn&&(Cn.width=$n.width*oe,Cn.height=$n.height*oe,wn=Cn.getContext("2d")),xn(),Ie&&decalCache.put(ze,Cn||En),$e.image=Cn,$e.svgElement=En,$e.svgWidth=$n.width,$e.svgHeight=$n.height;function Tn(){for(var kn=1,An=0,On=_n.length;An<On;++An)kn=getLeastCommonMultiple(kn,_n[An]);for(var Mn=1,An=0,On=vn.length;An<On;++An)Mn=getLeastCommonMultiple(Mn,vn[An].length);kn*=Mn;var Fn=bn*_n.length*vn.length;return{width:Math.max(1,Math.min(kn,pe.maxTileWidth)),height:Math.max(1,Math.min(Fn,pe.maxTileHeight))}}function xn(){wn&&(wn.clearRect(0,0,Cn.width,Cn.height),pe.backgroundColor&&(wn.fillStyle=pe.backgroundColor,wn.fillRect(0,0,Cn.width,Cn.height)));for(var kn=0,An=0;An<hn.length;++An)kn+=hn[An];if(kn<=0)return;for(var On=-bn,Mn=0,Fn=0,Dn=0;On<$n.height;){if(Mn%2===0){for(var Nn=Fn/2%vn.length,Vn=0,Bn=0,zn=0;Vn<$n.width*2;){for(var Xn=0,An=0;An<Lt[Dn].length;++An)Xn+=Lt[Dn][An];if(Xn<=0)break;if(Bn%2===0){var Un=(1-pe.symbolSize)*.5,Jn=Vn+Lt[Dn][Bn]*Un,lr=On+hn[Mn]*Un,_r=Lt[Dn][Bn]*pe.symbolSize,ir=hn[Mn]*pe.symbolSize,qn=zn/2%vn[Nn].length;Yn(Jn,lr,_r,ir,vn[Nn][qn])}Vn+=Lt[Dn][Bn],++zn,++Bn,Bn===Lt[Dn].length&&(Bn=0)}++Dn,Dn===Lt.length&&(Dn=0)}On+=hn[Mn],++Fn,++Mn,Mn===hn.length&&(Mn=0)}function Yn(Wn,tr,pr,Gn,Zn){var rr=ie?1:oe,mr=createSymbol(Zn,Wn*rr,tr*rr,pr*rr,Gn*rr,pe.color,pe.symbolKeepAspect);if(ie){var Sr=ae.painter.renderOneToVNode(mr);Sr&&En.children.push(Sr)}else brushSingle(wn,mr)}}}}function normalizeSymbolArray($){if(!$||$.length===0)return[["rect"]];if(isString($))return[[$]];for(var z=!0,oe=0;oe<$.length;++oe)if(!isString($[oe])){z=!1;break}if(z)return normalizeSymbolArray([$]);for(var ae=[],oe=0;oe<$.length;++oe)isString($[oe])?ae.push([$[oe]]):ae.push($[oe]);return ae}function normalizeDashArrayX($){if(!$||$.length===0)return[[0,0]];if(isNumber($)){var z=Math.ceil($);return[[z,z]]}for(var oe=!0,ae=0;ae<$.length;++ae)if(!isNumber($[ae])){oe=!1;break}if(oe)return normalizeDashArrayX([$]);for(var ie=[],ae=0;ae<$.length;++ae)if(isNumber($[ae])){var z=Math.ceil($[ae]);ie.push([z,z])}else{var z=map$2($[ae],function(_e){return Math.ceil(_e)});z.length%2===1?ie.push(z.concat(z)):ie.push(z)}return ie}function normalizeDashArrayY($){if(!$||typeof $=="object"&&$.length===0)return[0,0];if(isNumber($)){var z=Math.ceil($);return[z,z]}var oe=map$2($,function(ae){return Math.ceil(ae)});return $.length%2?oe.concat(oe):oe}function getLineBlockLengthX($){return map$2($,function(z){return getLineBlockLengthY(z)})}function getLineBlockLengthY($){for(var z=0,oe=0;oe<$.length;++oe)z+=$[oe];return $.length%2===1?z*2:z}function decalVisual($,z){$.eachRawSeries(function(oe){if(!$.isSeriesFiltered(oe)){var ae=oe.getData();ae.hasItemVisual()&&ae.each(function(pe){var _e=ae.getItemVisual(pe,"decal");if(_e){var Ce=ae.ensureUniqueItemVisual(pe,"style");Ce.decal=createOrUpdatePatternFromDecal(_e,z)}});var ie=ae.getVisual("decal");if(ie){var le=ae.getVisual("style");le.decal=createOrUpdatePatternFromDecal(ie,z)}}})}var lifecycle=new Eventful$1;const lifecycle$1=lifecycle;var implsStore={};function registerImpl($,z){implsStore[$]=z}function getImpl($){return implsStore[$]}var version="5.4.2",dependencies={zrender:"5.4.3"},TEST_FRAME_REMAIN_TIME=1,PRIORITY_PROCESSOR_SERIES_FILTER=800,PRIORITY_PROCESSOR_DATASTACK=900,PRIORITY_PROCESSOR_FILTER=1e3,PRIORITY_PROCESSOR_DEFAULT=2e3,PRIORITY_PROCESSOR_STATISTIC=5e3,PRIORITY_VISUAL_LAYOUT=1e3,PRIORITY_VISUAL_PROGRESSIVE_LAYOUT=1100,PRIORITY_VISUAL_GLOBAL=2e3,PRIORITY_VISUAL_CHART=3e3,PRIORITY_VISUAL_COMPONENT=4e3,PRIORITY_VISUAL_CHART_DATA_CUSTOM=4500,PRIORITY_VISUAL_POST_CHART_LAYOUT=4600,PRIORITY_VISUAL_BRUSH=5e3,PRIORITY_VISUAL_ARIA=6e3,PRIORITY_VISUAL_DECAL=7e3,PRIORITY={PROCESSOR:{FILTER:PRIORITY_PROCESSOR_FILTER,SERIES_FILTER:PRIORITY_PROCESSOR_SERIES_FILTER,STATISTIC:PRIORITY_PROCESSOR_STATISTIC},VISUAL:{LAYOUT:PRIORITY_VISUAL_LAYOUT,PROGRESSIVE_LAYOUT:PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,GLOBAL:PRIORITY_VISUAL_GLOBAL,CHART:PRIORITY_VISUAL_CHART,POST_CHART_LAYOUT:PRIORITY_VISUAL_POST_CHART_LAYOUT,COMPONENT:PRIORITY_VISUAL_COMPONENT,BRUSH:PRIORITY_VISUAL_BRUSH,CHART_ITEM:PRIORITY_VISUAL_CHART_DATA_CUSTOM,ARIA:PRIORITY_VISUAL_ARIA,DECAL:PRIORITY_VISUAL_DECAL}},IN_MAIN_PROCESS_KEY="__flagInMainProcess",PENDING_UPDATE="__pendingUpdate",STATUS_NEEDS_UPDATE_KEY="__needsUpdateStatus",ACTION_REG=/^[a-zA-Z0-9_]+$/,CONNECT_STATUS_KEY="__connectUpdateStatus",CONNECT_STATUS_PENDING=0,CONNECT_STATUS_UPDATING=1,CONNECT_STATUS_UPDATED=2;function createRegisterEventWithLowercaseECharts($){return function(){for(var z=[],oe=0;oe<arguments.length;oe++)z[oe]=arguments[oe];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,$,z)}}function createRegisterEventWithLowercaseMessageCenter($){return function(){for(var z=[],oe=0;oe<arguments.length;oe++)z[oe]=arguments[oe];return toLowercaseNameAndCallEventful(this,$,z)}}function toLowercaseNameAndCallEventful($,z,oe){return oe[0]=oe[0]&&oe[0].toLowerCase(),Eventful$1.prototype[z].apply($,oe)}var MessageCenter=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare$1,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render$2,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function($){__extends(z,$);function z(oe,ae,ie){var le=$.call(this,new ECEventProcessor)||this;le._chartsViews=[],le._chartsMap={},le._componentsViews=[],le._componentsMap={},le._pendingActions=[],ie=ie||{},isString(ae)&&(ae=themeStorage[ae]),le._dom=oe;var pe="canvas",_e="auto",Ce=!1,$e=le._zr=init$1(oe,{renderer:ie.renderer||pe,devicePixelRatio:ie.devicePixelRatio,width:ie.width,height:ie.height,ssr:ie.ssr,useDirtyRect:retrieve2(ie.useDirtyRect,Ce),useCoarsePointer:retrieve2(ie.useCoarsePointer,_e),pointerSize:ie.pointerSize});le._ssr=ie.ssr,le._throttledZrFlush=throttle(bind$1($e.flush,$e),17),ae=clone$3(ae),ae&&globalBackwardCompat(ae,!0),le._theme=ae,le._locale=createLocaleObject(ie.locale||SYSTEM_LANG),le._coordSysMgr=new CoordinateSystem;var xe=le._api=createExtensionAPI(le);function Ie(Ne,Fe){return Ne.__prio-Fe.__prio}return sort(visualFuncs,Ie),sort(dataProcessorFuncs,Ie),le._scheduler=new Scheduler$1(le,xe,dataProcessorFuncs,visualFuncs),le._messageCenter=new MessageCenter,le._initEvents(),le.resize=bind$1(le.resize,le),$e.animation.on("frame",le._onframe,le),bindRenderedEvent($e,le),bindMouseEvent($e,le),setAsPrimitive(le),le}return z.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var oe=this._scheduler;if(this[PENDING_UPDATE]){var ae=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare$1(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(Ce){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,Ce}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,ae),triggerUpdatedEvent.call(this,ae)}else if(oe.unfinished){var ie=TEST_FRAME_REMAIN_TIME,le=this._model,pe=this._api;oe.unfinished=!1;do{var _e=+new Date;oe.performSeriesTasks(le),oe.performDataProcessorTasks(le),updateStreamModes(this,le),oe.performVisualTasks(le),renderSeries(this,this._model,pe,"remain",{}),ie-=+new Date-_e}while(ie>0&&oe.unfinished);oe.unfinished||this._zr.flush()}}},z.prototype.getDom=function(){return this._dom},z.prototype.getId=function(){return this.id},z.prototype.getZr=function(){return this._zr},z.prototype.isSSR=function(){return this._ssr},z.prototype.setOption=function(oe,ae,ie){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var le,pe,_e;if(isObject$3(ae)&&(ie=ae.lazyUpdate,le=ae.silent,pe=ae.replaceMerge,_e=ae.transition,ae=ae.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||ae){var Ce=new OptionManager$1(this._api),$e=this._theme,xe=this._model=new GlobalModel$1;xe.scheduler=this._scheduler,xe.ssr=this._ssr,xe.init(null,null,null,$e,this._locale,Ce)}this._model.setOption(oe,{replaceMerge:pe},optionPreprocessorFuncs);var Ie={seriesTransition:_e,optionChanged:!0};if(ie)this[PENDING_UPDATE]={silent:le,updateParams:Ie},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,Ie)}catch(Ne){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,Ne}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}}},z.prototype.setTheme=function(){},z.prototype.getModel=function(){return this._model},z.prototype.getOption=function(){return this._model&&this._model.getOption()},z.prototype.getWidth=function(){return this._zr.getWidth()},z.prototype.getHeight=function(){return this._zr.getHeight()},z.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},z.prototype.getRenderedCanvas=function(oe){return this.renderToCanvas(oe)},z.prototype.renderToCanvas=function(oe){oe=oe||{};var ae=this._zr.painter;return ae.getRenderedCanvas({backgroundColor:oe.backgroundColor||this._model.get("backgroundColor"),pixelRatio:oe.pixelRatio||this.getDevicePixelRatio()})},z.prototype.renderToSVGString=function(oe){oe=oe||{};var ae=this._zr.painter;return ae.renderToString({useViewBox:oe.useViewBox})},z.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var oe=this._zr,ae=oe.storage.getDisplayList();return each$c(ae,function(ie){ie.stopAnimation(null,!0)}),oe.painter.toDataURL()}},z.prototype.getDataURL=function(oe){if(this._disposed){this.id;return}oe=oe||{};var ae=oe.excludeComponents,ie=this._model,le=[],pe=this;each$c(ae,function(Ce){ie.eachComponent({mainType:Ce},function($e){var xe=pe._componentsMap[$e.__viewId];xe.group.ignore||(le.push(xe),xe.group.ignore=!0)})});var _e=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(oe).toDataURL("image/"+(oe&&oe.type||"png"));return each$c(le,function(Ce){Ce.group.ignore=!1}),_e},z.prototype.getConnectedDataURL=function(oe){if(this._disposed){this.id;return}var ae=oe.type==="svg",ie=this.group,le=Math.min,pe=Math.max,_e=1/0;if(connectedGroups[ie]){var Ce=_e,$e=_e,xe=-_e,Ie=-_e,Ne=[],Fe=oe&&oe.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(_n,bn){if(_n.group===ie){var Cn=ae?_n.getZr().painter.getSvgDom().innerHTML:_n.renderToCanvas(clone$3(oe)),En=_n.getDom().getBoundingClientRect();Ce=le(En.left,Ce),$e=le(En.top,$e),xe=pe(En.right,xe),Ie=pe(En.bottom,Ie),Ne.push({dom:Cn,left:En.left,top:En.top})}}),Ce*=Fe,$e*=Fe,xe*=Fe,Ie*=Fe;var ze=xe-Ce,At=Ie-$e,Lt=platformApi.createCanvas(),hn=init$1(Lt,{renderer:ae?"svg":"canvas"});if(hn.resize({width:ze,height:At}),ae){var vn="";return each$c(Ne,function(_n){var bn=_n.left-Ce,Cn=_n.top-$e;vn+='<g transform="translate('+bn+","+Cn+')">'+_n.dom+"</g>"}),hn.painter.getSvgRoot().innerHTML=vn,oe.connectedBackgroundColor&&hn.painter.setBackgroundColor(oe.connectedBackgroundColor),hn.refreshImmediately(),hn.painter.toDataURL()}else return oe.connectedBackgroundColor&&hn.add(new Rect$2({shape:{x:0,y:0,width:ze,height:At},style:{fill:oe.connectedBackgroundColor}})),each$c(Ne,function(_n){var bn=new ZRImage$1({style:{x:_n.left*Fe-Ce,y:_n.top*Fe-$e,image:_n.dom}});hn.add(bn)}),hn.refreshImmediately(),Lt.toDataURL("image/"+(oe&&oe.type||"png"))}else return this.getDataURL(oe)},z.prototype.convertToPixel=function(oe,ae){return doConvertPixel(this,"convertToPixel",oe,ae)},z.prototype.convertFromPixel=function(oe,ae){return doConvertPixel(this,"convertFromPixel",oe,ae)},z.prototype.containPixel=function(oe,ae){if(this._disposed){this.id;return}var ie=this._model,le,pe=parseFinder$1(ie,oe);return each$c(pe,function(_e,Ce){Ce.indexOf("Models")>=0&&each$c(_e,function($e){var xe=$e.coordinateSystem;if(xe&&xe.containPoint)le=le||!!xe.containPoint(ae);else if(Ce==="seriesModels"){var Ie=this._chartsMap[$e.__viewId];Ie&&Ie.containPoint&&(le=le||Ie.containPoint(ae,$e))}},this)},this),!!le},z.prototype.getVisual=function(oe,ae){var ie=this._model,le=parseFinder$1(ie,oe,{defaultMainType:"series"}),pe=le.seriesModel,_e=pe.getData(),Ce=le.hasOwnProperty("dataIndexInside")?le.dataIndexInside:le.hasOwnProperty("dataIndex")?_e.indexOfRawIndex(le.dataIndex):null;return Ce!=null?getItemVisualFromData(_e,Ce,ae):getVisualFromData(_e,ae)},z.prototype.getViewOfComponentModel=function(oe){return this._componentsMap[oe.__viewId]},z.prototype.getViewOfSeriesModel=function(oe){return this._chartsMap[oe.__viewId]},z.prototype._initEvents=function(){var oe=this;each$c(MOUSE_EVENT_NAMES,function(ae){var ie=function(le){var pe=oe.getModel(),_e=le.target,Ce,$e=ae==="globalout";if($e?Ce={}:_e&&findEventDispatcher(_e,function(ze){var At=getECData(ze);if(At&&At.dataIndex!=null){var Lt=At.dataModel||pe.getSeriesByIndex(At.seriesIndex);return Ce=Lt&&Lt.getDataParams(At.dataIndex,At.dataType)||{},!0}else if(At.eventData)return Ce=extend({},At.eventData),!0},!0),Ce){var xe=Ce.componentType,Ie=Ce.componentIndex;(xe==="markLine"||xe==="markPoint"||xe==="markArea")&&(xe="series",Ie=Ce.seriesIndex);var Ne=xe&&Ie!=null&&pe.getComponent(xe,Ie),Fe=Ne&&oe[Ne.mainType==="series"?"_chartsMap":"_componentsMap"][Ne.__viewId];Ce.event=le,Ce.type=ae,oe._$eventProcessor.eventInfo={targetEl:_e,packedEvent:Ce,model:Ne,view:Fe},oe.trigger(ae,Ce)}};ie.zrEventfulCallAtLast=!0,oe._zr.on(ae,ie,oe)}),each$c(eventActionMap,function(ae,ie){oe._messageCenter.on(ie,function(le){this.trigger(ie,le)},oe)}),each$c(["selectchanged"],function(ae){oe._messageCenter.on(ae,function(ie){this.trigger(ae,ie)},oe)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},z.prototype.isDisposed=function(){return this._disposed},z.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},z.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var oe=this.getDom();oe&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var ae=this,ie=ae._api,le=ae._model;each$c(ae._componentsViews,function(pe){pe.dispose(le,ie)}),each$c(ae._chartsViews,function(pe){pe.dispose(le,ie)}),ae._zr.dispose(),ae._dom=ae._model=ae._chartsMap=ae._componentsMap=ae._chartsViews=ae._componentsViews=ae._scheduler=ae._api=ae._zr=ae._throttledZrFlush=ae._theme=ae._coordSysMgr=ae._messageCenter=null,delete instances[ae.id]},z.prototype.resize=function(oe){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(oe);var ae=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!ae){var ie=ae.resetOption("media"),le=oe&&oe.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},oe&&oe.animation)})}catch(pe){throw this[IN_MAIN_PROCESS_KEY]=!1,pe}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}}},z.prototype.showLoading=function(oe,ae){if(this._disposed){this.id;return}if(isObject$3(oe)&&(ae=oe,oe=""),oe=oe||"default",this.hideLoading(),!!loadingEffects[oe]){var ie=loadingEffects[oe](this._api,ae),le=this._zr;this._loadingFX=ie,le.add(ie)}},z.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},z.prototype.makeActionFromEvent=function(oe){var ae=extend({},oe);return ae.type=eventActionMap[oe.type],ae},z.prototype.dispatchAction=function(oe,ae){if(this._disposed){this.id;return}if(isObject$3(ae)||(ae={silent:!!ae}),!!actions[oe.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(oe);return}var ie=ae.silent;doDispatchAction.call(this,oe,ie);var le=ae.flush;le?this._zr.flush():le!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,ie),triggerUpdatedEvent.call(this,ie)}},z.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},z.prototype.appendData=function(oe){if(this._disposed){this.id;return}var ae=oe.seriesIndex,ie=this.getModel(),le=ie.getSeriesByIndex(ae);le.appendData(oe),this._scheduler.unfinished=!0,this.getZr().wakeUp()},z.internalField=function(){prepare$1=function(Ie){var Ne=Ie._scheduler;Ne.restorePipelines(Ie._model),Ne.prepareStageTasks(),prepareView(Ie,!0),prepareView(Ie,!1),Ne.plan()},prepareView=function(Ie,Ne){for(var Fe=Ie._model,ze=Ie._scheduler,At=Ne?Ie._componentsViews:Ie._chartsViews,Lt=Ne?Ie._componentsMap:Ie._chartsMap,hn=Ie._zr,vn=Ie._api,_n=0;_n<At.length;_n++)At[_n].__alive=!1;Ne?Fe.eachComponent(function(En,$n){En!=="series"&&bn($n)}):Fe.eachSeries(bn);function bn(En){var $n=En.__requireNewView;En.__requireNewView=!1;var wn="_ec_"+En.id+"_"+En.type,Tn=!$n&&Lt[wn];if(!Tn){var xn=parseClassType(En.type),kn=Ne?ComponentView$1.getClass(xn.main,xn.sub):ChartView$1.getClass(xn.sub);Tn=new kn,Tn.init(Fe,vn),Lt[wn]=Tn,At.push(Tn),hn.add(Tn.group)}En.__viewId=Tn.__id=wn,Tn.__alive=!0,Tn.__model=En,Tn.group.__ecComponentInfo={mainType:En.mainType,index:En.componentIndex},!Ne&&ze.prepareView(Tn,En,Fe,vn)}for(var _n=0;_n<At.length;){var Cn=At[_n];Cn.__alive?_n++:(!Ne&&Cn.renderTask.dispose(),hn.remove(Cn.group),Cn.dispose(Fe,vn),At.splice(_n,1),Lt[Cn.__id]===Cn&&delete Lt[Cn.__id],Cn.__id=Cn.group.__ecComponentInfo=null)}},updateDirectly=function(Ie,Ne,Fe,ze,At){var Lt=Ie._model;if(Lt.setUpdatePayload(Fe),!ze){each$c([].concat(Ie._componentsViews).concat(Ie._chartsViews),Cn);return}var hn={};hn[ze+"Id"]=Fe[ze+"Id"],hn[ze+"Index"]=Fe[ze+"Index"],hn[ze+"Name"]=Fe[ze+"Name"];var vn={mainType:ze,query:hn};At&&(vn.subType=At);var _n=Fe.excludeSeriesId,bn;_n!=null&&(bn=createHashMap(),each$c(normalizeToArray(_n),function(En){var $n=convertOptionIdName(En,null);$n!=null&&bn.set($n,!0)})),Lt&&Lt.eachComponent(vn,function(En){var $n=bn&&bn.get(En.id)!=null;if(!$n)if(isHighDownPayload(Fe))if(En instanceof SeriesModel$1)Fe.type===HIGHLIGHT_ACTION_TYPE&&!Fe.notBlur&&!En.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(En,Fe,Ie._api);else{var wn=findComponentHighDownDispatchers(En.mainType,En.componentIndex,Fe.name,Ie._api),Tn=wn.focusSelf,xn=wn.dispatchers;Fe.type===HIGHLIGHT_ACTION_TYPE&&Tn&&!Fe.notBlur&&blurComponent(En.mainType,En.componentIndex,Ie._api),xn&&each$c(xn,function(kn){Fe.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(kn):leaveEmphasis(kn)})}else isSelectChangePayload(Fe)&&En instanceof SeriesModel$1&&(toggleSelectionFromPayload(En,Fe,Ie._api),updateSeriesElementSelection(En),markStatusToUpdate(Ie))},Ie),Lt&&Lt.eachComponent(vn,function(En){var $n=bn&&bn.get(En.id)!=null;$n||Cn(Ie[ze==="series"?"_chartsMap":"_componentsMap"][En.__viewId])},Ie);function Cn(En){En&&En.__alive&&En[Ne]&&En[Ne](En.__model,Lt,Ie._api,Fe)}},updateMethods={prepareAndUpdate:function(Ie){prepare$1(this),updateMethods.update.call(this,Ie,{optionChanged:Ie.newOption!=null})},update:function(Ie,Ne){var Fe=this._model,ze=this._api,At=this._zr,Lt=this._coordSysMgr,hn=this._scheduler;if(Fe){Fe.setUpdatePayload(Ie),hn.restoreData(Fe,Ie),hn.performSeriesTasks(Fe),Lt.create(Fe,ze),hn.performDataProcessorTasks(Fe,Ie),updateStreamModes(this,Fe),Lt.update(Fe,ze),oe(Fe),hn.performVisualTasks(Fe,Ie),render$2(this,Fe,ze,Ie,Ne);var vn=Fe.get("backgroundColor")||"transparent",_n=Fe.get("darkMode");At.setBackgroundColor(vn),_n!=null&&_n!=="auto"&&At.setDarkMode(_n),lifecycle$1.trigger("afterupdate",Fe,ze)}},updateTransform:function(Ie){var Ne=this,Fe=this._model,ze=this._api;if(Fe){Fe.setUpdatePayload(Ie);var At=[];Fe.eachComponent(function(hn,vn){if(hn!=="series"){var _n=Ne.getViewOfComponentModel(vn);if(_n&&_n.__alive)if(_n.updateTransform){var bn=_n.updateTransform(vn,Fe,ze,Ie);bn&&bn.update&&At.push(_n)}else At.push(_n)}});var Lt=createHashMap();Fe.eachSeries(function(hn){var vn=Ne._chartsMap[hn.__viewId];if(vn.updateTransform){var _n=vn.updateTransform(hn,Fe,ze,Ie);_n&&_n.update&&Lt.set(hn.uid,1)}else Lt.set(hn.uid,1)}),oe(Fe),this._scheduler.performVisualTasks(Fe,Ie,{setDirty:!0,dirtyMap:Lt}),renderSeries(this,Fe,ze,Ie,{},Lt),lifecycle$1.trigger("afterupdate",Fe,ze)}},updateView:function(Ie){var Ne=this._model;Ne&&(Ne.setUpdatePayload(Ie),ChartView$1.markUpdateMethod(Ie,"updateView"),oe(Ne),this._scheduler.performVisualTasks(Ne,Ie,{setDirty:!0}),render$2(this,Ne,this._api,Ie,{}),lifecycle$1.trigger("afterupdate",Ne,this._api))},updateVisual:function(Ie){var Ne=this,Fe=this._model;Fe&&(Fe.setUpdatePayload(Ie),Fe.eachSeries(function(ze){ze.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(Ie,"updateVisual"),oe(Fe),this._scheduler.performVisualTasks(Fe,Ie,{visualType:"visual",setDirty:!0}),Fe.eachComponent(function(ze,At){if(ze!=="series"){var Lt=Ne.getViewOfComponentModel(At);Lt&&Lt.__alive&&Lt.updateVisual(At,Fe,Ne._api,Ie)}}),Fe.eachSeries(function(ze){var At=Ne._chartsMap[ze.__viewId];At.updateVisual(ze,Fe,Ne._api,Ie)}),lifecycle$1.trigger("afterupdate",Fe,this._api))},updateLayout:function(Ie){updateMethods.update.call(this,Ie)}},doConvertPixel=function(Ie,Ne,Fe,ze){if(Ie._disposed){Ie.id;return}for(var At=Ie._model,Lt=Ie._coordSysMgr.getCoordinateSystems(),hn,vn=parseFinder$1(At,Fe),_n=0;_n<Lt.length;_n++){var bn=Lt[_n];if(bn[Ne]&&(hn=bn[Ne](At,vn,ze))!=null)return hn}},updateStreamModes=function(Ie,Ne){var Fe=Ie._chartsMap,ze=Ie._scheduler;Ne.eachSeries(function(At){ze.updateStreamModes(At,Fe[At.__viewId])})},doDispatchAction=function(Ie,Ne){var Fe=this,ze=this.getModel(),At=Ie.type,Lt=Ie.escapeConnect,hn=actions[At],vn=hn.actionInfo,_n=(vn.update||"update").split(":"),bn=_n.pop(),Cn=_n[0]!=null&&parseClassType(_n[0]);this[IN_MAIN_PROCESS_KEY]=!0;var En=[Ie],$n=!1;Ie.batch&&($n=!0,En=map$2(Ie.batch,function(Mn){return Mn=defaults(extend({},Mn),Ie),Mn.batch=null,Mn}));var wn=[],Tn,xn=isSelectChangePayload(Ie),kn=isHighDownPayload(Ie);if(kn&&allLeaveBlur(this._api),each$c(En,function(Mn){if(Tn=hn.action(Mn,Fe._model,Fe._api),Tn=Tn||extend({},Mn),Tn.type=vn.event||Tn.type,wn.push(Tn),kn){var Fn=preParseFinder(Ie),Dn=Fn.queryOptionMap,Nn=Fn.mainTypeSpecified,Vn=Nn?Dn.keys()[0]:"series";updateDirectly(Fe,bn,Mn,Vn),markStatusToUpdate(Fe)}else xn?(updateDirectly(Fe,bn,Mn,"series"),markStatusToUpdate(Fe)):Cn&&updateDirectly(Fe,bn,Mn,Cn.main,Cn.sub)}),bn!=="none"&&!kn&&!xn&&!Cn)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,Ie),this[PENDING_UPDATE]=null):updateMethods[bn].call(this,Ie)}catch(Mn){throw this[IN_MAIN_PROCESS_KEY]=!1,Mn}if($n?Tn={type:vn.event||At,escapeConnect:Lt,batch:wn}:Tn=wn[0],this[IN_MAIN_PROCESS_KEY]=!1,!Ne){var An=this._messageCenter;if(An.trigger(Tn.type,Tn),xn){var On={type:"selectchanged",escapeConnect:Lt,selected:getAllSelectedIndices(ze),isFromClick:Ie.isFromClick||!1,fromAction:Ie.type,fromActionPayload:Ie};An.trigger(On.type,On)}}},flushPendingActions=function(Ie){for(var Ne=this._pendingActions;Ne.length;){var Fe=Ne.shift();doDispatchAction.call(this,Fe,Ie)}},triggerUpdatedEvent=function(Ie){!Ie&&this.trigger("updated")},bindRenderedEvent=function(Ie,Ne){Ie.on("rendered",function(Fe){Ne.trigger("rendered",Fe),Ie.animation.isFinished()&&!Ne[PENDING_UPDATE]&&!Ne._scheduler.unfinished&&!Ne._pendingActions.length&&Ne.trigger("finished")})},bindMouseEvent=function(Ie,Ne){Ie.on("mouseover",function(Fe){var ze=Fe.target,At=findEventDispatcher(ze,isHighDownDispatcher);At&&(handleGlobalMouseOverForHighDown(At,Fe,Ne._api),markStatusToUpdate(Ne))}).on("mouseout",function(Fe){var ze=Fe.target,At=findEventDispatcher(ze,isHighDownDispatcher);At&&(handleGlobalMouseOutForHighDown(At,Fe,Ne._api),markStatusToUpdate(Ne))}).on("click",function(Fe){var ze=Fe.target,At=findEventDispatcher(ze,function(vn){return getECData(vn).dataIndex!=null},!0);if(At){var Lt=At.selected?"unselect":"select",hn=getECData(At);Ne._api.dispatchAction({type:Lt,dataType:hn.dataType,dataIndexInside:hn.dataIndex,seriesIndex:hn.seriesIndex,isFromClick:!0})}})};function oe(Ie){Ie.clearColorPalette(),Ie.eachSeries(function(Ne){Ne.clearColorPalette()})}function ae(Ie){var Ne=[],Fe=[],ze=!1;if(Ie.eachComponent(function(vn,_n){var bn=_n.get("zlevel")||0,Cn=_n.get("z")||0,En=_n.getZLevelKey();ze=ze||!!En,(vn==="series"?Fe:Ne).push({zlevel:bn,z:Cn,idx:_n.componentIndex,type:vn,key:En})}),ze){var At=Ne.concat(Fe),Lt,hn;sort(At,function(vn,_n){return vn.zlevel===_n.zlevel?vn.z-_n.z:vn.zlevel-_n.zlevel}),each$c(At,function(vn){var _n=Ie.getComponent(vn.type,vn.idx),bn=vn.zlevel,Cn=vn.key;Lt!=null&&(bn=Math.max(Lt,bn)),Cn?(bn===Lt&&Cn!==hn&&bn++,hn=Cn):hn&&(bn===Lt&&bn++,hn=""),Lt=bn,_n.setZLevel(bn)})}}render$2=function(Ie,Ne,Fe,ze,At){ae(Ne),renderComponents(Ie,Ne,Fe,ze,At),each$c(Ie._chartsViews,function(Lt){Lt.__alive=!1}),renderSeries(Ie,Ne,Fe,ze,At),each$c(Ie._chartsViews,function(Lt){Lt.__alive||Lt.remove(Ne,Fe)})},renderComponents=function(Ie,Ne,Fe,ze,At,Lt){each$c(Lt||Ie._componentsViews,function(hn){var vn=hn.__model;$e(vn,hn),hn.render(vn,Ne,Fe,ze),_e(vn,hn),xe(vn,hn)})},renderSeries=function(Ie,Ne,Fe,ze,At,Lt){var hn=Ie._scheduler;At=extend(At||{},{updatedSeries:Ne.getSeries()}),lifecycle$1.trigger("series:beforeupdate",Ne,Fe,At);var vn=!1;Ne.eachSeries(function(_n){var bn=Ie._chartsMap[_n.__viewId];bn.__alive=!0;var Cn=bn.renderTask;hn.updatePayload(Cn,ze),$e(_n,bn),Lt&&Lt.get(_n.uid)&&Cn.dirty(),Cn.perform(hn.getPerformArgs(Cn))&&(vn=!0),bn.group.silent=!!_n.get("silent"),pe(_n,bn),updateSeriesElementSelection(_n)}),hn.unfinished=vn||hn.unfinished,lifecycle$1.trigger("series:layoutlabels",Ne,Fe,At),lifecycle$1.trigger("series:transition",Ne,Fe,At),Ne.eachSeries(function(_n){var bn=Ie._chartsMap[_n.__viewId];_e(_n,bn),xe(_n,bn)}),le(Ie,Ne),lifecycle$1.trigger("series:afterupdate",Ne,Fe,At)},markStatusToUpdate=function(Ie){Ie[STATUS_NEEDS_UPDATE_KEY]=!0,Ie.getZr().wakeUp()},applyChangedStates=function(Ie){Ie[STATUS_NEEDS_UPDATE_KEY]&&(Ie.getZr().storage.traverse(function(Ne){isElementRemoved(Ne)||ie(Ne)}),Ie[STATUS_NEEDS_UPDATE_KEY]=!1)};function ie(Ie){for(var Ne=[],Fe=Ie.currentStates,ze=0;ze<Fe.length;ze++){var At=Fe[ze];At==="emphasis"||At==="blur"||At==="select"||Ne.push(At)}Ie.selected&&Ie.states.select&&Ne.push("select"),Ie.hoverState===HOVER_STATE_EMPHASIS&&Ie.states.emphasis?Ne.push("emphasis"):Ie.hoverState===HOVER_STATE_BLUR&&Ie.states.blur&&Ne.push("blur"),Ie.useStates(Ne)}function le(Ie,Ne){var Fe=Ie._zr,ze=Fe.storage,At=0;ze.traverse(function(Lt){Lt.isGroup||At++}),At>Ne.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&Ne.eachSeries(function(Lt){if(!Lt.preventUsingHoverLayer){var hn=Ie._chartsMap[Lt.__viewId];hn.__alive&&hn.eachRendered(function(vn){vn.states.emphasis&&(vn.states.emphasis.hoverLayer=!0)})}})}function pe(Ie,Ne){var Fe=Ie.get("blendMode")||null;Ne.eachRendered(function(ze){ze.isGroup||(ze.style.blend=Fe)})}function _e(Ie,Ne){if(!Ie.preventAutoZ){var Fe=Ie.get("z")||0,ze=Ie.get("zlevel")||0;Ne.eachRendered(function(At){return Ce(At,Fe,ze,-1/0),!0})}}function Ce(Ie,Ne,Fe,ze){var At=Ie.getTextContent(),Lt=Ie.getTextGuideLine(),hn=Ie.isGroup;if(hn)for(var vn=Ie.childrenRef(),_n=0;_n<vn.length;_n++)ze=Math.max(Ce(vn[_n],Ne,Fe,ze),ze);else Ie.z=Ne,Ie.zlevel=Fe,ze=Math.max(Ie.z2,ze);if(At&&(At.z=Ne,At.zlevel=Fe,isFinite(ze)&&(At.z2=ze+2)),Lt){var bn=Ie.textGuideLineConfig;Lt.z=Ne,Lt.zlevel=Fe,isFinite(ze)&&(Lt.z2=ze+(bn&&bn.showAbove?1:-1))}return ze}function $e(Ie,Ne){Ne.eachRendered(function(Fe){if(!isElementRemoved(Fe)){var ze=Fe.getTextContent(),At=Fe.getTextGuideLine();Fe.stateTransition&&(Fe.stateTransition=null),ze&&ze.stateTransition&&(ze.stateTransition=null),At&&At.stateTransition&&(At.stateTransition=null),Fe.hasState()?(Fe.prevStates=Fe.currentStates,Fe.clearStates()):Fe.prevStates&&(Fe.prevStates=null)}})}function xe(Ie,Ne){var Fe=Ie.getModel("stateAnimation"),ze=Ie.isAnimationEnabled(),At=Fe.get("duration"),Lt=At>0?{duration:At,delay:Fe.get("delay"),easing:Fe.get("easing")}:null;Ne.eachRendered(function(hn){if(hn.states&&hn.states.emphasis){if(isElementRemoved(hn))return;if(hn instanceof Path$1&&savePathStates(hn),hn.__dirty){var vn=hn.prevStates;vn&&hn.useStates(vn)}if(ze){hn.stateTransition=Lt;var _n=hn.getTextContent(),bn=hn.getTextGuideLine();_n&&(_n.stateTransition=Lt),bn&&(bn.stateTransition=Lt)}hn.__dirty&&ie(hn)}})}createExtensionAPI=function(Ie){return new(function(Ne){__extends(Fe,Ne);function Fe(){return Ne!==null&&Ne.apply(this,arguments)||this}return Fe.prototype.getCoordinateSystems=function(){return Ie._coordSysMgr.getCoordinateSystems()},Fe.prototype.getComponentByElement=function(ze){for(;ze;){var At=ze.__ecComponentInfo;if(At!=null)return Ie._model.getComponent(At.mainType,At.index);ze=ze.parent}},Fe.prototype.enterEmphasis=function(ze,At){enterEmphasis(ze,At),markStatusToUpdate(Ie)},Fe.prototype.leaveEmphasis=function(ze,At){leaveEmphasis(ze,At),markStatusToUpdate(Ie)},Fe.prototype.enterBlur=function(ze){enterBlur(ze),markStatusToUpdate(Ie)},Fe.prototype.leaveBlur=function(ze){leaveBlur(ze),markStatusToUpdate(Ie)},Fe.prototype.enterSelect=function(ze){enterSelect(ze),markStatusToUpdate(Ie)},Fe.prototype.leaveSelect=function(ze){leaveSelect(ze),markStatusToUpdate(Ie)},Fe.prototype.getModel=function(){return Ie.getModel()},Fe.prototype.getViewOfComponentModel=function(ze){return Ie.getViewOfComponentModel(ze)},Fe.prototype.getViewOfSeriesModel=function(ze){return Ie.getViewOfSeriesModel(ze)},Fe}(ExtensionAPI$1))(Ie)},enableConnect=function(Ie){function Ne(Fe,ze){for(var At=0;At<Fe.length;At++){var Lt=Fe[At];Lt[CONNECT_STATUS_KEY]=ze}}each$c(eventActionMap,function(Fe,ze){Ie._messageCenter.on(ze,function(At){if(connectedGroups[Ie.group]&&Ie[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(At&&At.escapeConnect)return;var Lt=Ie.makeActionFromEvent(At),hn=[];each$c(instances,function(vn){vn!==Ie&&vn.group===Ie.group&&hn.push(vn)}),Ne(hn,CONNECT_STATUS_PENDING),each$c(hn,function(vn){vn[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&vn.dispatchAction(Lt)}),Ne(hn,CONNECT_STATUS_UPDATED)}})})}}(),z}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function($,z,oe){var ae=this;function ie(){for(var le=[],pe=0;pe<arguments.length;pe++)le[pe]=arguments[pe];z&&z.apply&&z.apply(this,le),ae.off($,ie)}this.on.call(this,$,ie,oe)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning($){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init($,z,oe){var ae=!(oe&&oe.ssr);if(ae){var ie=getInstanceByDom($);if(ie)return ie}var le=new ECharts($,z,oe);return le.id="ec_"+idBase++,instances[le.id]=le,ae&&setAttribute($,DOM_ATTRIBUTE_KEY,le.id),enableConnect(le),lifecycle$1.trigger("afterinit",le),le}function connect($){if(isArray$1($)){var z=$;$=null,each$c(z,function(oe){oe.group!=null&&($=oe.group)}),$=$||"g_"+groupIdBase++,each$c(z,function(oe){oe.group=$})}return connectedGroups[$]=!0,$}function disConnect($){connectedGroups[$]=!1}var disconnect=disConnect;function dispose($){isString($)?$=instances[$]:$ instanceof ECharts||($=getInstanceByDom($)),$ instanceof ECharts&&!$.isDisposed()&&$.dispose()}function getInstanceByDom($){return instances[getAttribute($,DOM_ATTRIBUTE_KEY)]}function getInstanceById($){return instances[$]}function registerTheme($,z){themeStorage[$]=z}function registerPreprocessor($){indexOf(optionPreprocessorFuncs,$)<0&&optionPreprocessorFuncs.push($)}function registerProcessor($,z){normalizeRegister(dataProcessorFuncs,$,z,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit($){registerUpdateLifecycle("afterinit",$)}function registerPostUpdate($){registerUpdateLifecycle("afterupdate",$)}function registerUpdateLifecycle($,z){lifecycle$1.on($,z)}function registerAction($,z,oe){isFunction(z)&&(oe=z,z="");var ae=isObject$3($)?$.type:[$,$={event:z}][0];$.event=($.event||ae).toLowerCase(),z=$.event,!eventActionMap[z]&&(assert(ACTION_REG.test(ae)&&ACTION_REG.test(z)),actions[ae]||(actions[ae]={action:oe,actionInfo:$}),eventActionMap[z]=ae)}function registerCoordinateSystem($,z){CoordinateSystem.register($,z)}function getCoordinateSystemDimensions($){var z=CoordinateSystem.get($);if(z)return z.getDimensionsInfo?z.getDimensionsInfo():z.dimensions.slice()}function registerLayout($,z){normalizeRegister(visualFuncs,$,z,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual($,z){normalizeRegister(visualFuncs,$,z,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister($,z,oe,ae,ie){if((isFunction(z)||isObject$3(z))&&(oe=z,z=ae),!(indexOf(registeredTasks,oe)>=0)){registeredTasks.push(oe);var le=Scheduler$1.wrapStageHandler(oe,ie);le.__prio=z,le.__raw=oe,$.push(le)}}function registerLoading($,z){loadingEffects[$]=z}function setCanvasCreator($){setPlatformAPI({createCanvas:$})}function registerMap($,z,oe){var ae=getImpl("registerMap");ae&&ae($,z,oe)}function getMap($){var z=getImpl("getMap");return z&&z($)}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($){return $==null?0:$.length||1}function defaultKeyGetter($){return $}var DataDiffer=function(){function $(z,oe,ae,ie,le,pe){this._old=z,this._new=oe,this._oldKeyGetter=ae||defaultKeyGetter,this._newKeyGetter=ie||defaultKeyGetter,this.context=le,this._diffModeMultiple=pe==="multiple"}return $.prototype.add=function(z){return this._add=z,this},$.prototype.update=function(z){return this._update=z,this},$.prototype.updateManyToOne=function(z){return this._updateManyToOne=z,this},$.prototype.updateOneToMany=function(z){return this._updateOneToMany=z,this},$.prototype.updateManyToMany=function(z){return this._updateManyToMany=z,this},$.prototype.remove=function(z){return this._remove=z,this},$.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},$.prototype._executeOneToOne=function(){var z=this._old,oe=this._new,ae={},ie=new Array(z.length),le=new Array(oe.length);this._initIndexMap(z,null,ie,"_oldKeyGetter"),this._initIndexMap(oe,ae,le,"_newKeyGetter");for(var pe=0;pe<z.length;pe++){var _e=ie[pe],Ce=ae[_e],$e=dataIndexMapValueLength(Ce);if($e>1){var xe=Ce.shift();Ce.length===1&&(ae[_e]=Ce[0]),this._update&&this._update(xe,pe)}else $e===1?(ae[_e]=null,this._update&&this._update(Ce,pe)):this._remove&&this._remove(pe)}this._performRestAdd(le,ae)},$.prototype._executeMultiple=function(){var z=this._old,oe=this._new,ae={},ie={},le=[],pe=[];this._initIndexMap(z,ae,le,"_oldKeyGetter"),this._initIndexMap(oe,ie,pe,"_newKeyGetter");for(var _e=0;_e<le.length;_e++){var Ce=le[_e],$e=ae[Ce],xe=ie[Ce],Ie=dataIndexMapValueLength($e),Ne=dataIndexMapValueLength(xe);if(Ie>1&&Ne===1)this._updateManyToOne&&this._updateManyToOne(xe,$e),ie[Ce]=null;else if(Ie===1&&Ne>1)this._updateOneToMany&&this._updateOneToMany(xe,$e),ie[Ce]=null;else if(Ie===1&&Ne===1)this._update&&this._update(xe,$e),ie[Ce]=null;else if(Ie>1&&Ne>1)this._updateManyToMany&&this._updateManyToMany(xe,$e),ie[Ce]=null;else if(Ie>1)for(var Fe=0;Fe<Ie;Fe++)this._remove&&this._remove($e[Fe]);else this._remove&&this._remove($e)}this._performRestAdd(pe,ie)},$.prototype._performRestAdd=function(z,oe){for(var ae=0;ae<z.length;ae++){var ie=z[ae],le=oe[ie],pe=dataIndexMapValueLength(le);if(pe>1)for(var _e=0;_e<pe;_e++)this._add&&this._add(le[_e]);else pe===1&&this._add&&this._add(le);oe[ie]=null}},$.prototype._initIndexMap=function(z,oe,ae,ie){for(var le=this._diffModeMultiple,pe=0;pe<z.length;pe++){var _e="_ec_"+this[ie](z[pe],pe);if(le||(ae[pe]=_e),!!oe){var Ce=oe[_e],$e=dataIndexMapValueLength(Ce);$e===0?(oe[_e]=pe,le&&ae.push(_e)):$e===1?oe[_e]=[Ce,pe]:Ce.push(pe)}}},$}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function $(z,oe){this._encode=z,this._schema=oe}return $.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},$.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},$}();function summarizeDimensions($,z){var oe={},ae=oe.encode={},ie=createHashMap(),le=[],pe=[],_e={};each$c($.dimensions,function(Ne){var Fe=$.getDimensionInfo(Ne),ze=Fe.coordDim;if(ze){var At=Fe.coordDimIndex;getOrCreateEncodeArr(ae,ze)[At]=Ne,Fe.isExtraCoord||(ie.set(ze,1),mayLabelDimType(Fe.type)&&(le[0]=Ne),getOrCreateEncodeArr(_e,ze)[At]=$.getDimensionIndex(Fe.name)),Fe.defaultTooltip&&pe.push(Ne)}VISUAL_DIMENSIONS.each(function(Lt,hn){var vn=getOrCreateEncodeArr(ae,hn),_n=Fe.otherDims[hn];_n!=null&&_n!==!1&&(vn[_n]=Fe.name)})});var Ce=[],$e={};ie.each(function(Ne,Fe){var ze=ae[Fe];$e[Fe]=ze[0],Ce=Ce.concat(ze)}),oe.dataDimsOnCoord=Ce,oe.dataDimIndicesOnCoord=map$2(Ce,function(Ne){return $.getDimensionInfo(Ne).storeDimIndex}),oe.encodeFirstDimNotExtra=$e;var xe=ae.label;xe&&xe.length&&(le=xe.slice());var Ie=ae.tooltip;return Ie&&Ie.length?pe=Ie.slice():pe.length||(pe=le.slice()),ae.defaultedLabel=le,ae.defaultedTooltip=pe,oe.userOutput=new DimensionUserOuput(_e,z),oe}function getOrCreateEncodeArr($,z){return $.hasOwnProperty(z)||($[z]=[]),$[z]}function getDimensionTypeByAxis($){return $==="category"?"ordinal":$==="time"?"time":"float"}function mayLabelDimType($){return!($==="ordinal"||$==="time")}var SeriesDimensionDefine=function(){function $(z){this.otherDims={},z!=null&&extend(this,z)}return $}();const SeriesDimensionDefine$1=SeriesDimensionDefine;var inner$8=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function $(z){this.dimensions=z.dimensions,this._dimOmitted=z.dimensionOmitted,this.source=z.source,this._fullDimCount=z.fullDimensionCount,this._updateDimOmitted(z.dimensionOmitted)}return $.prototype.isDimensionOmitted=function(){return this._dimOmitted},$.prototype._updateDimOmitted=function(z){this._dimOmitted=z,z&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},$.prototype.getSourceDimensionIndex=function(z){return retrieve2(this._dimNameMap.get(z),-1)},$.prototype.getSourceDimension=function(z){var oe=this.source.dimensionsDefine;if(oe)return oe[z]},$.prototype.makeStoreSchema=function(){for(var z=this._fullDimCount,oe=shouldRetrieveDataByName(this.source),ae=!shouldOmitUnusedDimensions(z),ie="",le=[],pe=0,_e=0;pe<z;pe++){var Ce=void 0,$e=void 0,xe=void 0,Ie=this.dimensions[_e];if(Ie&&Ie.storeDimIndex===pe)Ce=oe?Ie.name:null,$e=Ie.type,xe=Ie.ordinalMeta,_e++;else{var Ne=this.getSourceDimension(pe);Ne&&(Ce=oe?Ne.name:null,$e=Ne.type)}le.push({property:Ce,type:$e,ordinalMeta:xe}),oe&&Ce!=null&&(!Ie||!Ie.isCalculationCoord)&&(ie+=ae?Ce.replace(/\`/g,"`1").replace(/\$/g,"`2"):Ce),ie+="$",ie+=dimTypeShort[$e]||"f",xe&&(ie+=xe.uid),ie+="$"}var Fe=this.source,ze=[Fe.seriesLayoutBy,Fe.startIndex,ie].join("$$");return{dimensions:le,hash:ze}},$.prototype.makeOutputDimensionNames=function(){for(var z=[],oe=0,ae=0;oe<this._fullDimCount;oe++){var ie=void 0,le=this.dimensions[ae];if(le&&le.storeDimIndex===oe)le.isCalculationCoord||(ie=le.name),ae++;else{var pe=this.getSourceDimension(oe);pe&&(ie=pe.name)}z.push(ie)}return z},$.prototype.appendCalculationDimension=function(z){this.dimensions.push(z),z.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},$}();function isSeriesDataSchema($){return $ instanceof SeriesDataSchema}function createDimNameMap($){for(var z=createHashMap(),oe=0;oe<($||[]).length;oe++){var ae=$[oe],ie=isObject$3(ae)?ae.name:ae;ie!=null&&z.get(ie)==null&&z.set(ie,oe)}return z}function ensureSourceDimNameMap($){var z=inner$8($);return z.dimNameMap||(z.dimNameMap=createDimNameMap($.dimensionsDefine))}function shouldOmitUnusedDimensions($){return $>30}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 $(z,oe){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 ae,ie=!1;isSeriesDataSchema(z)?(ae=z.dimensions,this._dimOmitted=z.isDimensionOmitted(),this._schema=z):(ie=!0,ae=z),ae=ae||["x","y"];for(var le={},pe=[],_e={},Ce=!1,$e={},xe=0;xe<ae.length;xe++){var Ie=ae[xe],Ne=isString(Ie)?new SeriesDimensionDefine$1({name:Ie}):Ie instanceof SeriesDimensionDefine$1?Ie:new SeriesDimensionDefine$1(Ie),Fe=Ne.name;Ne.type=Ne.type||"float",Ne.coordDim||(Ne.coordDim=Fe,Ne.coordDimIndex=0);var ze=Ne.otherDims=Ne.otherDims||{};pe.push(Fe),le[Fe]=Ne,$e[Fe]!=null&&(Ce=!0),Ne.createInvertedIndices&&(_e[Fe]=[]),ze.itemName===0&&(this._nameDimIdx=xe),ze.itemId===0&&(this._idDimIdx=xe),ie&&(Ne.storeDimIndex=xe)}if(this.dimensions=pe,this._dimInfos=le,this._initGetDimensionInfo(Ce),this.hostModel=oe,this._invertedIndicesMap=_e,this._dimOmitted){var At=this._dimIdxToName=createHashMap();each$c(pe,function(Lt){At.set(le[Lt].storeDimIndex,Lt)})}}return $.prototype.getDimension=function(z){var oe=this._recognizeDimIndex(z);if(oe==null)return z;if(oe=z,!this._dimOmitted)return this.dimensions[oe];var ae=this._dimIdxToName.get(oe);if(ae!=null)return ae;var ie=this._schema.getSourceDimension(oe);if(ie)return ie.name},$.prototype.getDimensionIndex=function(z){var oe=this._recognizeDimIndex(z);if(oe!=null)return oe;if(z==null)return-1;var ae=this._getDimInfo(z);return ae?ae.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(z):-1},$.prototype._recognizeDimIndex=function(z){if(isNumber(z)||z!=null&&!isNaN(z)&&!this._getDimInfo(z)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(z)<0))return+z},$.prototype._getStoreDimIndex=function(z){var oe=this.getDimensionIndex(z);return oe},$.prototype.getDimensionInfo=function(z){return this._getDimInfo(this.getDimension(z))},$.prototype._initGetDimensionInfo=function(z){var oe=this._dimInfos;this._getDimInfo=z?function(ae){return oe.hasOwnProperty(ae)?oe[ae]:void 0}:function(ae){return oe[ae]}},$.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},$.prototype.mapDimension=function(z,oe){var ae=this._dimSummary;if(oe==null)return ae.encodeFirstDimNotExtra[z];var ie=ae.encode[z];return ie?ie[oe]:null},$.prototype.mapDimensionsAll=function(z){var oe=this._dimSummary,ae=oe.encode[z];return(ae||[]).slice()},$.prototype.getStore=function(){return this._store},$.prototype.initData=function(z,oe,ae){var ie=this,le;if(z instanceof DataStore$1&&(le=z),!le){var pe=this.dimensions,_e=isSourceInstance(z)||isArrayLike(z)?new DefaultDataProvider(z,pe.length):z;le=new DataStore$1;var Ce=map$1(pe,function($e){return{type:ie._dimInfos[$e].type,property:$e}});le.initData(_e,Ce,ae)}this._store=le,this._nameList=(oe||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,le.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},$.prototype.appendData=function(z){var oe=this._store.appendData(z);this._doInit(oe[0],oe[1])},$.prototype.appendValues=function(z,oe){var ae=this._store.appendValues(z,oe.length),ie=ae.start,le=ae.end,pe=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),oe)for(var _e=ie;_e<le;_e++){var Ce=_e-ie;this._nameList[_e]=oe[Ce],pe&&makeIdFromName(this,_e)}},$.prototype._updateOrdinalMeta=function(){for(var z=this._store,oe=this.dimensions,ae=0;ae<oe.length;ae++){var ie=this._dimInfos[oe[ae]];ie.ordinalMeta&&z.collectOrdinalMeta(ie.storeDimIndex,ie.ordinalMeta)}},$.prototype._shouldMakeIdFromName=function(){var z=this._store.getProvider();return this._idDimIdx==null&&z.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!z.fillStorage},$.prototype._doInit=function(z,oe){if(!(z>=oe)){var ae=this._store,ie=ae.getProvider();this._updateOrdinalMeta();var le=this._nameList,pe=this._idList,_e=ie.getSource().sourceFormat,Ce=_e===SOURCE_FORMAT_ORIGINAL;if(Ce&&!ie.pure)for(var $e=[],xe=z;xe<oe;xe++){var Ie=ie.getItem(xe,$e);if(!this.hasItemOption&&isDataItemOption(Ie)&&(this.hasItemOption=!0),Ie){var Ne=Ie.name;le[xe]==null&&Ne!=null&&(le[xe]=convertOptionIdName(Ne,null));var Fe=Ie.id;pe[xe]==null&&Fe!=null&&(pe[xe]=convertOptionIdName(Fe,null))}}if(this._shouldMakeIdFromName())for(var xe=z;xe<oe;xe++)makeIdFromName(this,xe);prepareInvertedIndex(this)}},$.prototype.getApproximateExtent=function(z){return this._approximateExtent[z]||this._store.getDataExtent(this._getStoreDimIndex(z))},$.prototype.setApproximateExtent=function(z,oe){oe=this.getDimension(oe),this._approximateExtent[oe]=z.slice()},$.prototype.getCalculationInfo=function(z){return this._calculationInfo[z]},$.prototype.setCalculationInfo=function(z,oe){isObject$1(z)?extend(this._calculationInfo,z):this._calculationInfo[z]=oe},$.prototype.getName=function(z){var oe=this.getRawIndex(z),ae=this._nameList[oe];return ae==null&&this._nameDimIdx!=null&&(ae=getIdNameFromStore(this,this._nameDimIdx,oe)),ae==null&&(ae=""),ae},$.prototype._getCategory=function(z,oe){var ae=this._store.get(z,oe),ie=this._store.getOrdinalMeta(z);return ie?ie.categories[ae]:ae},$.prototype.getId=function(z){return getId(this,this.getRawIndex(z))},$.prototype.count=function(){return this._store.count()},$.prototype.get=function(z,oe){var ae=this._store,ie=this._dimInfos[z];if(ie)return ae.get(ie.storeDimIndex,oe)},$.prototype.getByRawIndex=function(z,oe){var ae=this._store,ie=this._dimInfos[z];if(ie)return ae.getByRawIndex(ie.storeDimIndex,oe)},$.prototype.getIndices=function(){return this._store.getIndices()},$.prototype.getDataExtent=function(z){return this._store.getDataExtent(this._getStoreDimIndex(z))},$.prototype.getSum=function(z){return this._store.getSum(this._getStoreDimIndex(z))},$.prototype.getMedian=function(z){return this._store.getMedian(this._getStoreDimIndex(z))},$.prototype.getValues=function(z,oe){var ae=this,ie=this._store;return isArray$1(z)?ie.getValues(map$1(z,function(le){return ae._getStoreDimIndex(le)}),oe):ie.getValues(z)},$.prototype.hasValue=function(z){for(var oe=this._dimSummary.dataDimIndicesOnCoord,ae=0,ie=oe.length;ae<ie;ae++)if(isNaN(this._store.get(oe[ae],z)))return!1;return!0},$.prototype.indexOfName=function(z){for(var oe=0,ae=this._store.count();oe<ae;oe++)if(this.getName(oe)===z)return oe;return-1},$.prototype.getRawIndex=function(z){return this._store.getRawIndex(z)},$.prototype.indexOfRawIndex=function(z){return this._store.indexOfRawIndex(z)},$.prototype.rawIndexOf=function(z,oe){var ae=z&&this._invertedIndicesMap[z],ie=ae[oe];return ie==null||isNaN(ie)?INDEX_NOT_FOUND:ie},$.prototype.indicesOfNearest=function(z,oe,ae){return this._store.indicesOfNearest(this._getStoreDimIndex(z),oe,ae)},$.prototype.each=function(z,oe,ae){isFunction(z)&&(ae=oe,oe=z,z=[]);var ie=ae||this,le=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);this._store.each(le,ie?bind$1(oe,ie):oe)},$.prototype.filterSelf=function(z,oe,ae){isFunction(z)&&(ae=oe,oe=z,z=[]);var ie=ae||this,le=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);return this._store=this._store.filter(le,ie?bind$1(oe,ie):oe),this},$.prototype.selectRange=function(z){var oe=this,ae={},ie=keys(z);return each$c(ie,function(le){var pe=oe._getStoreDimIndex(le);ae[pe]=z[le]}),this._store=this._store.selectRange(ae),this},$.prototype.mapArray=function(z,oe,ae){isFunction(z)&&(ae=oe,oe=z,z=[]),ae=ae||this;var ie=[];return this.each(z,function(){ie.push(oe&&oe.apply(this,arguments))},ae),ie},$.prototype.map=function(z,oe,ae,ie){var le=ae||ie||this,pe=map$1(normalizeDimensions(z),this._getStoreDimIndex,this),_e=cloneListForMapAndSample(this);return _e._store=this._store.map(pe,le?bind$1(oe,le):oe),_e},$.prototype.modify=function(z,oe,ae,ie){var le=ae||ie||this,pe=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);this._store.modify(pe,le?bind$1(oe,le):oe)},$.prototype.downSample=function(z,oe,ae,ie){var le=cloneListForMapAndSample(this);return le._store=this._store.downSample(this._getStoreDimIndex(z),oe,ae,ie),le},$.prototype.lttbDownSample=function(z,oe){var ae=cloneListForMapAndSample(this);return ae._store=this._store.lttbDownSample(this._getStoreDimIndex(z),oe),ae},$.prototype.getRawDataItem=function(z){return this._store.getRawDataItem(z)},$.prototype.getItemModel=function(z){var oe=this.hostModel,ae=this.getRawDataItem(z);return new Model$1(ae,oe,oe&&oe.ecModel)},$.prototype.diff=function(z){var oe=this;return new DataDiffer$1(z?z.getStore().getIndices():[],this.getStore().getIndices(),function(ae){return getId(z,ae)},function(ae){return getId(oe,ae)})},$.prototype.getVisual=function(z){var oe=this._visual;return oe&&oe[z]},$.prototype.setVisual=function(z,oe){this._visual=this._visual||{},isObject$1(z)?extend(this._visual,z):this._visual[z]=oe},$.prototype.getItemVisual=function(z,oe){var ae=this._itemVisuals[z],ie=ae&&ae[oe];return ie??this.getVisual(oe)},$.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},$.prototype.ensureUniqueItemVisual=function(z,oe){var ae=this._itemVisuals,ie=ae[z];ie||(ie=ae[z]={});var le=ie[oe];return le==null&&(le=this.getVisual(oe),isArray$1(le)?le=le.slice():isObject$1(le)&&(le=extend({},le)),ie[oe]=le),le},$.prototype.setItemVisual=function(z,oe,ae){var ie=this._itemVisuals[z]||{};this._itemVisuals[z]=ie,isObject$1(oe)?extend(ie,oe):ie[oe]=ae},$.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},$.prototype.setLayout=function(z,oe){isObject$1(z)?extend(this._layout,z):this._layout[z]=oe},$.prototype.getLayout=function(z){return this._layout[z]},$.prototype.getItemLayout=function(z){return this._itemLayouts[z]},$.prototype.setItemLayout=function(z,oe,ae){this._itemLayouts[z]=ae?extend(this._itemLayouts[z]||{},oe):oe},$.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},$.prototype.setItemGraphicEl=function(z,oe){var ae=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(ae,this.dataType,z,oe),this._graphicEls[z]=oe},$.prototype.getItemGraphicEl=function(z){return this._graphicEls[z]},$.prototype.eachItemGraphicEl=function(z,oe){each$c(this._graphicEls,function(ae,ie){ae&&z&&z.call(oe,ae,ie)})},$.prototype.cloneShallow=function(z){return z||(z=new $(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(z,this),z._store=this._store,z},$.prototype.wrapMethod=function(z,oe){var ae=this[z];isFunction(ae)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var ie=ae.apply(this,arguments);return oe.apply(this,[ie].concat(slice(arguments)))})},$.internalField=function(){prepareInvertedIndex=function(z){var oe=z._invertedIndicesMap;each$c(oe,function(ae,ie){var le=z._dimInfos[ie],pe=le.ordinalMeta,_e=z._store;if(pe){ae=oe[ie]=new CtorInt32Array(pe.categories.length);for(var Ce=0;Ce<ae.length;Ce++)ae[Ce]=INDEX_NOT_FOUND;for(var Ce=0;Ce<_e.count();Ce++)ae[_e.get(le.storeDimIndex,Ce)]=Ce}})},getIdNameFromStore=function(z,oe,ae){return convertOptionIdName(z._getCategory(oe,ae),null)},getId=function(z,oe){var ae=z._idList[oe];return ae==null&&z._idDimIdx!=null&&(ae=getIdNameFromStore(z,z._idDimIdx,oe)),ae==null&&(ae=ID_PREFIX+oe),ae},normalizeDimensions=function(z){return isArray$1(z)||(z=z!=null?[z]:[]),z},cloneListForMapAndSample=function(z){var oe=new $(z._schema?z._schema:map$1(z.dimensions,z._getDimInfo,z),z.hostModel);return transferProperties(oe,z),oe},transferProperties=function(z,oe){each$c(TRANSFERABLE_PROPERTIES.concat(oe.__wrappedMethods||[]),function(ae){oe.hasOwnProperty(ae)&&(z[ae]=oe[ae])}),z.__wrappedMethods=oe.__wrappedMethods,each$c(CLONE_PROPERTIES,function(ae){z[ae]=clone$3(oe[ae])}),z._calculationInfo=extend({},oe._calculationInfo)},makeIdFromName=function(z,oe){var ae=z._nameList,ie=z._idList,le=z._nameDimIdx,pe=z._idDimIdx,_e=ae[oe],Ce=ie[oe];if(_e==null&&le!=null&&(ae[oe]=_e=getIdNameFromStore(z,le,oe)),Ce==null&&pe!=null&&(ie[oe]=Ce=getIdNameFromStore(z,pe,oe)),Ce==null&&_e!=null){var $e=z._nameRepeatCount,xe=$e[_e]=($e[_e]||0)+1;Ce=_e,xe>1&&(Ce+="__ec__"+xe),ie[oe]=Ce}}}(),$}();const SeriesData$1=SeriesData;function createDimensions($,z){return prepareSeriesDataSchema($,z).dimensions}function prepareSeriesDataSchema($,z){isSourceInstance($)||($=createSourceFromSeriesDataOption($)),z=z||{};var oe=z.coordDimensions||[],ae=z.dimensionsDefine||$.dimensionsDefine||[],ie=createHashMap(),le=[],pe=getDimCount($,oe,ae,z.dimensionsCount),_e=z.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(pe),Ce=ae===$.dimensionsDefine,$e=Ce?ensureSourceDimNameMap($):createDimNameMap(ae),xe=z.encodeDefine;!xe&&z.encodeDefaulter&&(xe=z.encodeDefaulter($,pe));for(var Ie=createHashMap(xe),Ne=new CtorInt32Array$1(pe),Fe=0;Fe<Ne.length;Fe++)Ne[Fe]=-1;function ze(Tn){var xn=Ne[Tn];if(xn<0){var kn=ae[Tn],An=isObject$3(kn)?kn:{name:kn},On=new SeriesDimensionDefine$1,Mn=An.name;Mn!=null&&$e.get(Mn)!=null&&(On.name=On.displayName=Mn),An.type!=null&&(On.type=An.type),An.displayName!=null&&(On.displayName=An.displayName);var Fn=le.length;return Ne[Tn]=Fn,On.storeDimIndex=Tn,le.push(On),On}return le[xn]}if(!_e)for(var Fe=0;Fe<pe;Fe++)ze(Fe);Ie.each(function(Tn,xn){var kn=normalizeToArray(Tn).slice();if(kn.length===1&&!isString(kn[0])&&kn[0]<0){Ie.set(xn,!1);return}var An=Ie.set(xn,[]);each$c(kn,function(On,Mn){var Fn=isString(On)?$e.get(On):On;Fn!=null&&Fn<pe&&(An[Mn]=Fn,Lt(ze(Fn),xn,Mn))})});var At=0;each$c(oe,function(Tn){var xn,kn,An,On;if(isString(Tn))xn=Tn,On={};else{On=Tn,xn=On.name;var Mn=On.ordinalMeta;On.ordinalMeta=null,On=extend({},On),On.ordinalMeta=Mn,kn=On.dimsDef,An=On.otherDims,On.name=On.coordDim=On.coordDimIndex=On.dimsDef=On.otherDims=null}var Fn=Ie.get(xn);if(Fn!==!1){if(Fn=normalizeToArray(Fn),!Fn.length)for(var Dn=0;Dn<(kn&&kn.length||1);Dn++){for(;At<pe&&ze(At).coordDim!=null;)At++;At<pe&&Fn.push(At++)}each$c(Fn,function(Nn,Vn){var Bn=ze(Nn);if(Ce&&On.type!=null&&(Bn.type=On.type),Lt(defaults(Bn,On),xn,Vn),Bn.name==null&&kn){var zn=kn[Vn];!isObject$3(zn)&&(zn={name:zn}),Bn.name=Bn.displayName=zn.name,Bn.defaultTooltip=zn.defaultTooltip}An&&defaults(Bn.otherDims,An)})}});function Lt(Tn,xn,kn){VISUAL_DIMENSIONS.get(xn)!=null?Tn.otherDims[xn]=kn:(Tn.coordDim=xn,Tn.coordDimIndex=kn,ie.set(xn,!0))}var hn=z.generateCoord,vn=z.generateCoordCount,_n=vn!=null;vn=hn?vn||1:0;var bn=hn||"value";function Cn(Tn){Tn.name==null&&(Tn.name=Tn.coordDim)}if(_e)each$c(le,function(Tn){Cn(Tn)}),le.sort(function(Tn,xn){return Tn.storeDimIndex-xn.storeDimIndex});else for(var En=0;En<pe;En++){var $n=ze(En),wn=$n.coordDim;wn==null&&($n.coordDim=genCoordDimName(bn,ie,_n),$n.coordDimIndex=0,(!hn||vn<=0)&&($n.isExtraCoord=!0),vn--),Cn($n),$n.type==null&&(guessOrdinal($,En)===BE_ORDINAL.Must||$n.isExtraCoord&&($n.otherDims.itemName!=null||$n.otherDims.seriesName!=null))&&($n.type="ordinal")}return removeDuplication(le),new SeriesDataSchema({source:$,dimensions:le,fullDimensionCount:pe,dimensionOmitted:_e})}function removeDuplication($){for(var z=createHashMap(),oe=0;oe<$.length;oe++){var ae=$[oe],ie=ae.name,le=z.get(ie)||0;le>0&&(ae.name=ie+(le-1)),le++,z.set(ie,le)}}function getDimCount($,z,oe,ae){var ie=Math.max($.dimensionsDetectedCount||1,z.length,oe.length,ae||0);return each$c(z,function(le){var pe;isObject$3(le)&&(pe=le.dimsDef)&&(ie=Math.max(ie,pe.length))}),ie}function genCoordDimName($,z,oe){if(oe||z.hasKey($)){for(var ae=0;z.hasKey($+ae);)ae++;$+=ae}return z.set($,!0),$}var CoordSysInfo=function(){function $(z){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=z}return $}();function getCoordSysInfoBySeries($){var z=$.get("coordinateSystem"),oe=new CoordSysInfo(z),ae=fetchers[z];if(ae)return ae($,oe,oe.axisMap,oe.categoryAxisMap),oe}var fetchers={cartesian2d:function($,z,oe,ae){var ie=$.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],le=$.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];z.coordSysDims=["x","y"],oe.set("x",ie),oe.set("y",le),isCategory(ie)&&(ae.set("x",ie),z.firstCategoryDimIndex=0),isCategory(le)&&(ae.set("y",le),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=1))},singleAxis:function($,z,oe,ae){var ie=$.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];z.coordSysDims=["single"],oe.set("single",ie),isCategory(ie)&&(ae.set("single",ie),z.firstCategoryDimIndex=0)},polar:function($,z,oe,ae){var ie=$.getReferringComponents("polar",SINGLE_REFERRING).models[0],le=ie.findAxisModel("radiusAxis"),pe=ie.findAxisModel("angleAxis");z.coordSysDims=["radius","angle"],oe.set("radius",le),oe.set("angle",pe),isCategory(le)&&(ae.set("radius",le),z.firstCategoryDimIndex=0),isCategory(pe)&&(ae.set("angle",pe),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=1))},geo:function($,z,oe,ae){z.coordSysDims=["lng","lat"]},parallel:function($,z,oe,ae){var ie=$.ecModel,le=ie.getComponent("parallel",$.get("parallelIndex")),pe=z.coordSysDims=le.dimensions.slice();each$c(le.parallelAxisIndex,function(_e,Ce){var $e=ie.getComponent("parallelAxis",_e),xe=pe[Ce];oe.set(xe,$e),isCategory($e)&&(ae.set(xe,$e),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=Ce))})}};function isCategory($){return $.get("type")==="category"}function enableDataStack($,z,oe){oe=oe||{};var ae=oe.byIndex,ie=oe.stackedCoordDimension,le,pe,_e;isLegacyDimensionsInput(z)?le=z:(pe=z.schema,le=pe.dimensions,_e=z.store);var Ce=!!($&&$.get("stack")),$e,xe,Ie,Ne;if(each$c(le,function(vn,_n){isString(vn)&&(le[_n]=vn={name:vn}),Ce&&!vn.isExtraCoord&&(!ae&&!$e&&vn.ordinalMeta&&($e=vn),!xe&&vn.type!=="ordinal"&&vn.type!=="time"&&(!ie||ie===vn.coordDim)&&(xe=vn))}),xe&&!ae&&!$e&&(ae=!0),xe){Ie="__\0ecstackresult_"+$.id,Ne="__\0ecstackedover_"+$.id,$e&&($e.createInvertedIndices=!0);var Fe=xe.coordDim,ze=xe.type,At=0;each$c(le,function(vn){vn.coordDim===Fe&&At++});var Lt={name:Ie,coordDim:Fe,coordDimIndex:At,type:ze,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:le.length},hn={name:Ne,coordDim:Ne,coordDimIndex:At+1,type:ze,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:le.length+1};pe?(_e&&(Lt.storeDimIndex=_e.ensureCalculationDimension(Ne,ze),hn.storeDimIndex=_e.ensureCalculationDimension(Ie,ze)),pe.appendCalculationDimension(Lt),pe.appendCalculationDimension(hn)):(le.push(Lt),le.push(hn))}return{stackedDimension:xe&&xe.name,stackedByDimension:$e&&$e.name,isStackedByIndex:ae,stackedOverDimension:Ne,stackResultDimension:Ie}}function isLegacyDimensionsInput($){return!isSeriesDataSchema($.schema)}function isDimensionStacked($,z){return!!z&&z===$.getCalculationInfo("stackedDimension")}function getStackedDimension($,z){return isDimensionStacked($,z)?$.getCalculationInfo("stackResultDimension"):z}function getCoordSysDimDefs($,z){var oe=$.get("coordinateSystem"),ae=CoordinateSystem.get(oe),ie;return z&&z.coordSysDims&&(ie=map$2(z.coordSysDims,function(le){var pe={name:le},_e=z.axisMap.get(le);if(_e){var Ce=_e.get("type");pe.type=getDimensionTypeByAxis(Ce)}return pe})),ie||(ie=ae&&(ae.getDimensionsInfo?ae.getDimensionsInfo():ae.dimensions.slice())||["x","y"]),ie}function injectOrdinalMeta($,z,oe){var ae,ie;return oe&&each$c($,function(le,pe){var _e=le.coordDim,Ce=oe.categoryAxisMap.get(_e);Ce&&(ae==null&&(ae=pe),le.ordinalMeta=Ce.getOrdinalMeta(),z&&(le.createInvertedIndices=!0)),le.otherDims.itemName!=null&&(ie=!0)}),!ie&&ae!=null&&($[ae].otherDims.itemName=0),ae}function createSeriesData($,z,oe){oe=oe||{};var ae=z.getSourceManager(),ie,le=!1;$?(le=!0,ie=createSourceFromSeriesDataOption($)):(ie=ae.getSource(),le=ie.sourceFormat===SOURCE_FORMAT_ORIGINAL);var pe=getCoordSysInfoBySeries(z),_e=getCoordSysDimDefs(z,pe),Ce=oe.useEncodeDefaulter,$e=isFunction(Ce)?Ce:Ce?curry$1(makeSeriesEncodeForAxisCoordSys,_e,z):null,xe={coordDimensions:_e,generateCoord:oe.generateCoord,encodeDefine:z.getEncode(),encodeDefaulter:$e,canOmitUnusedDimensions:!le},Ie=prepareSeriesDataSchema(ie,xe),Ne=injectOrdinalMeta(Ie.dimensions,oe.createInvertedIndices,pe),Fe=le?null:ae.getSharedDataStore(Ie),ze=enableDataStack(z,{schema:Ie,store:Fe}),At=new SeriesData$1(Ie,z);At.setCalculationInfo(ze);var Lt=Ne!=null&&isNeedCompleteOrdinalData(ie)?function(hn,vn,_n,bn){return bn===Ne?_n:this.defaultDimValueGetter(hn,vn,_n,bn)}:null;return At.hasItemOption=!1,At.initData(le?ie:Fe,null,Lt),At}function isNeedCompleteOrdinalData($){if($.sourceFormat===SOURCE_FORMAT_ORIGINAL){var z=firstDataNotNull($.data||[]);return!isArray$1(getDataItemValue(z))}}function firstDataNotNull($){for(var z=0;z<$.length&&$[z]==null;)z++;return $[z]}var Scale=function(){function $(z){this._setting=z||{},this._extent=[1/0,-1/0]}return $.prototype.getSetting=function(z){return this._setting[z]},$.prototype.unionExtent=function(z){var oe=this._extent;z[0]<oe[0]&&(oe[0]=z[0]),z[1]>oe[1]&&(oe[1]=z[1])},$.prototype.unionExtentFromData=function(z,oe){this.unionExtent(z.getApproximateExtent(oe))},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.setExtent=function(z,oe){var ae=this._extent;isNaN(z)||(ae[0]=z),isNaN(oe)||(ae[1]=oe)},$.prototype.isInExtentRange=function(z){return this._extent[0]<=z&&this._extent[1]>=z},$.prototype.isBlank=function(){return this._isBlank},$.prototype.setBlank=function(z){this._isBlank=z},$}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function $(z){this.categories=z.categories||[],this._needCollect=z.needCollect,this._deduplication=z.deduplication,this.uid=++uidBase}return $.createByAxisModel=function(z){var oe=z.option,ae=oe.data,ie=ae&&map$2(ae,getName);return new $({categories:ie,needCollect:!ie,deduplication:oe.dedplication!==!1})},$.prototype.getOrdinal=function(z){return this._getOrCreateMap().get(z)},$.prototype.parseAndCollect=function(z){var oe,ae=this._needCollect;if(!isString(z)&&!ae)return z;if(ae&&!this._deduplication)return oe=this.categories.length,this.categories[oe]=z,oe;var ie=this._getOrCreateMap();return oe=ie.get(z),oe==null&&(ae?(oe=this.categories.length,this.categories[oe]=z,ie.set(z,oe)):oe=NaN),oe},$.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},$}();function getName($){return isObject$3($)&&$.value!=null?$.value:$+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale($){return $.type==="interval"||$.type==="log"}function intervalScaleNiceTicks($,z,oe,ae){var ie={},le=$[1]-$[0],pe=ie.interval=nice(le/z,!0);oe!=null&&pe<oe&&(pe=ie.interval=oe),ae!=null&&pe>ae&&(pe=ie.interval=ae);var _e=ie.intervalPrecision=getIntervalPrecision(pe),Ce=ie.niceTickExtent=[round$1(Math.ceil($[0]/pe)*pe,_e),round$1(Math.floor($[1]/pe)*pe,_e)];return fixExtent(Ce,$),ie}function increaseInterval($){var z=Math.pow(10,quantityExponent($)),oe=$/z;return oe?oe===2?oe=3:oe===3?oe=5:oe*=2:oe=1,round$1(oe*z)}function getIntervalPrecision($){return getPrecision($)+2}function clamp($,z,oe){$[z]=Math.max(Math.min($[z],oe[1]),oe[0])}function fixExtent($,z){!isFinite($[0])&&($[0]=z[0]),!isFinite($[1])&&($[1]=z[1]),clamp($,0,z),clamp($,1,z),$[0]>$[1]&&($[0]=$[1])}function contain$1($,z){return $>=z[0]&&$<=z[1]}function normalize($,z){return z[1]===z[0]?.5:($-z[0])/(z[1]-z[0])}function scale($,z){return $*(z[1]-z[0])+z[0]}var OrdinalScale=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;ae.type="ordinal";var ie=ae.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})})),ae._ordinalMeta=ie,ae._extent=ae.getSetting("extent")||[0,ie.categories.length-1],ae}return z.prototype.parse=function(oe){return oe==null?NaN:isString(oe)?this._ordinalMeta.getOrdinal(oe):Math.round(oe)},z.prototype.contain=function(oe){return oe=this.parse(oe),contain$1(oe,this._extent)&&this._ordinalMeta.categories[oe]!=null},z.prototype.normalize=function(oe){return oe=this._getTickNumber(this.parse(oe)),normalize(oe,this._extent)},z.prototype.scale=function(oe){return oe=Math.round(scale(oe,this._extent)),this.getRawOrdinalNumber(oe)},z.prototype.getTicks=function(){for(var oe=[],ae=this._extent,ie=ae[0];ie<=ae[1];)oe.push({value:ie}),ie++;return oe},z.prototype.getMinorTicks=function(oe){},z.prototype.setSortInfo=function(oe){if(oe==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var ae=oe.ordinalNumbers,ie=this._ordinalNumbersByTick=[],le=this._ticksByOrdinalNumber=[],pe=0,_e=this._ordinalMeta.categories.length,Ce=Math.min(_e,ae.length);pe<Ce;++pe){var $e=ae[pe];ie[pe]=$e,le[$e]=pe}for(var xe=0;pe<_e;++pe){for(;le[xe]!=null;)xe++;ie.push(xe),le[xe]=pe}},z.prototype._getTickNumber=function(oe){var ae=this._ticksByOrdinalNumber;return ae&&oe>=0&&oe<ae.length?ae[oe]:oe},z.prototype.getRawOrdinalNumber=function(oe){var ae=this._ordinalNumbersByTick;return ae&&oe>=0&&oe<ae.length?ae[oe]:oe},z.prototype.getLabel=function(oe){if(!this.isBlank()){var ae=this.getRawOrdinalNumber(oe.value),ie=this._ordinalMeta.categories[ae];return ie==null?"":ie+""}},z.prototype.count=function(){return this._extent[1]-this._extent[0]+1},z.prototype.unionExtentFromData=function(oe,ae){this.unionExtent(oe.getApproximateExtent(ae))},z.prototype.isInExtentRange=function(oe){return oe=this._getTickNumber(oe),this._extent[0]<=oe&&this._extent[1]>=oe},z.prototype.getOrdinalMeta=function(){return this._ordinalMeta},z.prototype.calcNiceTicks=function(){},z.prototype.calcNiceExtent=function(){},z.type="ordinal",z}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="interval",oe._interval=0,oe._intervalPrecision=2,oe}return z.prototype.parse=function(oe){return oe},z.prototype.contain=function(oe){return contain$1(oe,this._extent)},z.prototype.normalize=function(oe){return normalize(oe,this._extent)},z.prototype.scale=function(oe){return scale(oe,this._extent)},z.prototype.setExtent=function(oe,ae){var ie=this._extent;isNaN(oe)||(ie[0]=parseFloat(oe)),isNaN(ae)||(ie[1]=parseFloat(ae))},z.prototype.unionExtent=function(oe){var ae=this._extent;oe[0]<ae[0]&&(ae[0]=oe[0]),oe[1]>ae[1]&&(ae[1]=oe[1]),this.setExtent(ae[0],ae[1])},z.prototype.getInterval=function(){return this._interval},z.prototype.setInterval=function(oe){this._interval=oe,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(oe)},z.prototype.getTicks=function(oe){var ae=this._interval,ie=this._extent,le=this._niceExtent,pe=this._intervalPrecision,_e=[];if(!ae)return _e;var Ce=1e4;ie[0]<le[0]&&(oe?_e.push({value:roundNumber(le[0]-ae,pe)}):_e.push({value:ie[0]}));for(var $e=le[0];$e<=le[1]&&(_e.push({value:$e}),$e=roundNumber($e+ae,pe),$e!==_e[_e.length-1].value);)if(_e.length>Ce)return[];var xe=_e.length?_e[_e.length-1].value:le[1];return ie[1]>xe&&(oe?_e.push({value:roundNumber(xe+ae,pe)}):_e.push({value:ie[1]})),_e},z.prototype.getMinorTicks=function(oe){for(var ae=this.getTicks(!0),ie=[],le=this.getExtent(),pe=1;pe<ae.length;pe++){for(var _e=ae[pe],Ce=ae[pe-1],$e=0,xe=[],Ie=_e.value-Ce.value,Ne=Ie/oe;$e<oe-1;){var Fe=roundNumber(Ce.value+($e+1)*Ne);Fe>le[0]&&Fe<le[1]&&xe.push(Fe),$e++}ie.push(xe)}return ie},z.prototype.getLabel=function(oe,ae){if(oe==null)return"";var ie=ae&&ae.precision;ie==null?ie=getPrecision(oe.value)||0:ie==="auto"&&(ie=this._intervalPrecision);var le=roundNumber(oe.value,ie,!0);return addCommas(le)},z.prototype.calcNiceTicks=function(oe,ae,ie){oe=oe||5;var le=this._extent,pe=le[1]-le[0];if(isFinite(pe)){pe<0&&(pe=-pe,le.reverse());var _e=intervalScaleNiceTicks(le,oe,ae,ie);this._intervalPrecision=_e.intervalPrecision,this._interval=_e.interval,this._niceExtent=_e.niceTickExtent}},z.prototype.calcNiceExtent=function(oe){var ae=this._extent;if(ae[0]===ae[1])if(ae[0]!==0){var ie=Math.abs(ae[0]);oe.fixMax||(ae[1]+=ie/2),ae[0]-=ie/2}else ae[1]=1;var le=ae[1]-ae[0];isFinite(le)||(ae[0]=0,ae[1]=1),this.calcNiceTicks(oe.splitNumber,oe.minInterval,oe.maxInterval);var pe=this._interval;oe.fixMin||(ae[0]=roundNumber(Math.floor(ae[0]/pe)*pe)),oe.fixMax||(ae[1]=roundNumber(Math.ceil(ae[1]/pe)*pe))},z.prototype.setNiceExtent=function(oe,ae){this._niceExtent=[oe,ae]},z.type="interval",z}(Scale$1);Scale$1.registerClass(IntervalScale);const IntervalScale$1=IntervalScale;var supportFloat32Array=typeof Float32Array<"u",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array($){return isArray$1($)?supportFloat32Array?new Float32Array($):$:new Float32ArrayCtor($)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId($){return $.get("stack")||STACK_PREFIX+$.seriesIndex}function getAxisKey($){return $.dim+$.index}function prepareLayoutBarSeries($,z){var oe=[];return z.eachSeriesByType($,function(ae){isOnCartesian(ae)&&oe.push(ae)}),oe}function getValueAxesMinGaps($){var z={};each$c($,function(Ce){var $e=Ce.coordinateSystem,xe=$e.getBaseAxis();if(!(xe.type!=="time"&&xe.type!=="value"))for(var Ie=Ce.getData(),Ne=xe.dim+"_"+xe.index,Fe=Ie.getDimensionIndex(Ie.mapDimension(xe.dim)),ze=Ie.getStore(),At=0,Lt=ze.count();At<Lt;++At){var hn=ze.get(Fe,At);z[Ne]?z[Ne].push(hn):z[Ne]=[hn]}});var oe={};for(var ae in z)if(z.hasOwnProperty(ae)){var ie=z[ae];if(ie){ie.sort(function(Ce,$e){return Ce-$e});for(var le=null,pe=1;pe<ie.length;++pe){var _e=ie[pe]-ie[pe-1];_e>0&&(le=le===null?_e:Math.min(le,_e))}oe[ae]=le}}return oe}function makeColumnLayout($){var z=getValueAxesMinGaps($),oe=[];return each$c($,function(ae){var ie=ae.coordinateSystem,le=ie.getBaseAxis(),pe=le.getExtent(),_e;if(le.type==="category")_e=le.getBandWidth();else if(le.type==="value"||le.type==="time"){var Ce=le.dim+"_"+le.index,$e=z[Ce],xe=Math.abs(pe[1]-pe[0]),Ie=le.scale.getExtent(),Ne=Math.abs(Ie[1]-Ie[0]);_e=$e?xe/Ne*$e:xe}else{var Fe=ae.getData();_e=Math.abs(pe[1]-pe[0])/Fe.count()}var ze=parsePercent(ae.get("barWidth"),_e),At=parsePercent(ae.get("barMaxWidth"),_e),Lt=parsePercent(ae.get("barMinWidth")||(isInLargeMode(ae)?.5:1),_e),hn=ae.get("barGap"),vn=ae.get("barCategoryGap");oe.push({bandWidth:_e,barWidth:ze,barMaxWidth:At,barMinWidth:Lt,barGap:hn,barCategoryGap:vn,axisKey:getAxisKey(le),stackId:getSeriesStackId(ae)})}),doCalBarWidthAndOffset(oe)}function doCalBarWidthAndOffset($){var z={};each$c($,function(ae,ie){var le=ae.axisKey,pe=ae.bandWidth,_e=z[le]||{bandWidth:pe,remainedWidth:pe,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},Ce=_e.stacks;z[le]=_e;var $e=ae.stackId;Ce[$e]||_e.autoWidthCount++,Ce[$e]=Ce[$e]||{width:0,maxWidth:0};var xe=ae.barWidth;xe&&!Ce[$e].width&&(Ce[$e].width=xe,xe=Math.min(_e.remainedWidth,xe),_e.remainedWidth-=xe);var Ie=ae.barMaxWidth;Ie&&(Ce[$e].maxWidth=Ie);var Ne=ae.barMinWidth;Ne&&(Ce[$e].minWidth=Ne);var Fe=ae.barGap;Fe!=null&&(_e.gap=Fe);var ze=ae.barCategoryGap;ze!=null&&(_e.categoryGap=ze)});var oe={};return each$c(z,function(ae,ie){oe[ie]={};var le=ae.stacks,pe=ae.bandWidth,_e=ae.categoryGap;if(_e==null){var Ce=keys(le).length;_e=Math.max(35-Ce*4,15)+"%"}var $e=parsePercent(_e,pe),xe=parsePercent(ae.gap,1),Ie=ae.remainedWidth,Ne=ae.autoWidthCount,Fe=(Ie-$e)/(Ne+(Ne-1)*xe);Fe=Math.max(Fe,0),each$c(le,function(hn){var vn=hn.maxWidth,_n=hn.minWidth;if(hn.width){var bn=hn.width;vn&&(bn=Math.min(bn,vn)),_n&&(bn=Math.max(bn,_n)),hn.width=bn,Ie-=bn+xe*bn,Ne--}else{var bn=Fe;vn&&vn<bn&&(bn=Math.min(vn,Ie)),_n&&_n>bn&&(bn=_n),bn!==Fe&&(hn.width=bn,Ie-=bn+xe*bn,Ne--)}}),Fe=(Ie-$e)/(Ne+(Ne-1)*xe),Fe=Math.max(Fe,0);var ze=0,At;each$c(le,function(hn,vn){hn.width||(hn.width=Fe),At=hn,ze+=hn.width*(1+xe)}),At&&(ze-=At.width*xe);var Lt=-ze/2;each$c(le,function(hn,vn){oe[ie][vn]=oe[ie][vn]||{bandWidth:pe,offset:Lt,width:hn.width},Lt+=hn.width*(1+xe)})}),oe}function retrieveColumnLayout($,z,oe){if($&&z){var ae=$[getAxisKey(z)];return ae!=null&&oe!=null?ae[getSeriesStackId(oe)]:ae}}function layout$2($,z){var oe=prepareLayoutBarSeries($,z),ae=makeColumnLayout(oe);each$c(oe,function(ie){var le=ie.getData(),pe=ie.coordinateSystem,_e=pe.getBaseAxis(),Ce=getSeriesStackId(ie),$e=ae[getAxisKey(_e)][Ce],xe=$e.offset,Ie=$e.width;le.setLayout({bandWidth:$e.bandWidth,offset:xe,size:Ie})})}function createProgressiveLayout($){return{seriesType:$,plan:createRenderPlanner(),reset:function(z){if(isOnCartesian(z)){var oe=z.getData(),ae=z.coordinateSystem,ie=ae.getBaseAxis(),le=ae.getOtherAxis(ie),pe=oe.getDimensionIndex(oe.mapDimension(le.dim)),_e=oe.getDimensionIndex(oe.mapDimension(ie.dim)),Ce=z.get("showBackground",!0),$e=oe.mapDimension(le.dim),xe=oe.getCalculationInfo("stackResultDimension"),Ie=isDimensionStacked(oe,$e)&&!!oe.getCalculationInfo("stackedOnSeries"),Ne=le.isHorizontal(),Fe=getValueAxisStart(ie,le),ze=isInLargeMode(z),At=z.get("barMinHeight")||0,Lt=xe&&oe.getDimensionIndex(xe),hn=oe.getLayout("size"),vn=oe.getLayout("offset");return{progress:function(_n,bn){for(var Cn=_n.count,En=ze&&createFloat32Array(Cn*3),$n=ze&&Ce&&createFloat32Array(Cn*3),wn=ze&&createFloat32Array(Cn),Tn=ae.master.getRect(),xn=Ne?Tn.width:Tn.height,kn,An=bn.getStore(),On=0;(kn=_n.next())!=null;){var Mn=An.get(Ie?Lt:pe,kn),Fn=An.get(_e,kn),Dn=Fe,Nn=void 0;Ie&&(Nn=+Mn-An.get(pe,kn));var Vn=void 0,Bn=void 0,zn=void 0,Xn=void 0;if(Ne){var Un=ae.dataToPoint([Mn,Fn]);if(Ie){var Jn=ae.dataToPoint([Nn,Fn]);Dn=Jn[0]}Vn=Dn,Bn=Un[1]+vn,zn=Un[0]-Dn,Xn=hn,Math.abs(zn)<At&&(zn=(zn<0?-1:1)*At)}else{var Un=ae.dataToPoint([Fn,Mn]);if(Ie){var Jn=ae.dataToPoint([Fn,Nn]);Dn=Jn[1]}Vn=Un[0]+vn,Bn=Dn,zn=hn,Xn=Un[1]-Dn,Math.abs(Xn)<At&&(Xn=(Xn<=0?-1:1)*At)}ze?(En[On]=Vn,En[On+1]=Bn,En[On+2]=Ne?zn:Xn,$n&&($n[On]=Ne?Tn.x:Vn,$n[On+1]=Ne?Bn:Tn.y,$n[On+2]=xn),wn[kn]=kn):bn.setItemLayout(kn,{x:Vn,y:Bn,width:zn,height:Xn}),On+=3}ze&&bn.setLayout({largePoints:En,largeDataIndices:wn,largeBackgroundPoints:$n,valueAxisHorizontal:Ne})}}}}}}function isOnCartesian($){return $.coordinateSystem&&$.coordinateSystem.type==="cartesian2d"}function isInLargeMode($){return $.pipelineContext&&$.pipelineContext.large}function getValueAxisStart($,z){return z.toGlobalCoord(z.dataToCoord(z.type==="log"?1:0))}var bisect=function($,z,oe,ae){for(;oe<ae;){var ie=oe+ae>>>1;$[ie][1]<z?oe=ie+1:ae=ie}return oe},TimeScale=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="time",ae}return z.prototype.getLabel=function(oe){var ae=this.getSetting("useUTC");return format$1(oe.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,ae,this.getSetting("locale"))},z.prototype.getFormattedLabel=function(oe,ae,ie){var le=this.getSetting("useUTC"),pe=this.getSetting("locale");return leveledFormat(oe,ae,ie,pe,le)},z.prototype.getTicks=function(){var oe=this._interval,ae=this._extent,ie=[];if(!oe)return ie;ie.push({value:ae[0],level:0});var le=this.getSetting("useUTC"),pe=getIntervalTicks(this._minLevelUnit,this._approxInterval,le,ae);return ie=ie.concat(pe),ie.push({value:ae[1],level:0}),ie},z.prototype.calcNiceExtent=function(oe){var ae=this._extent;if(ae[0]===ae[1]&&(ae[0]-=ONE_DAY,ae[1]+=ONE_DAY),ae[1]===-1/0&&ae[0]===1/0){var ie=new Date;ae[1]=+new Date(ie.getFullYear(),ie.getMonth(),ie.getDate()),ae[0]=ae[1]-ONE_DAY}this.calcNiceTicks(oe.splitNumber,oe.minInterval,oe.maxInterval)},z.prototype.calcNiceTicks=function(oe,ae,ie){oe=oe||10;var le=this._extent,pe=le[1]-le[0];this._approxInterval=pe/oe,ae!=null&&this._approxInterval<ae&&(this._approxInterval=ae),ie!=null&&this._approxInterval>ie&&(this._approxInterval=ie);var _e=scaleIntervals.length,Ce=Math.min(bisect(scaleIntervals,this._approxInterval,0,_e),_e-1);this._interval=scaleIntervals[Ce][1],this._minLevelUnit=scaleIntervals[Math.max(Ce-1,0)][0]},z.prototype.parse=function(oe){return isNumber(oe)?oe:+parseDate(oe)},z.prototype.contain=function(oe){return contain$1(this.parse(oe),this._extent)},z.prototype.normalize=function(oe){return normalize(this.parse(oe),this._extent)},z.prototype.scale=function(oe){return scale(oe,this._extent)},z.type="time",z}(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($,z,oe,ae){var ie=parseDate(z),le=parseDate(oe),pe=function(ze){return getUnitValue(ie,ze,ae)===getUnitValue(le,ze,ae)},_e=function(){return pe("year")},Ce=function(){return _e()&&pe("month")},$e=function(){return Ce()&&pe("day")},xe=function(){return $e()&&pe("hour")},Ie=function(){return xe()&&pe("minute")},Ne=function(){return Ie()&&pe("second")},Fe=function(){return Ne()&&pe("millisecond")};switch($){case"year":return _e();case"month":return Ce();case"day":return $e();case"hour":return xe();case"minute":return Ie();case"second":return Ne();case"millisecond":return Fe()}}function getDateInterval($,z){return $/=ONE_DAY,$>16?16:$>7.5?7:$>3.5?4:$>1.5?2:1}function getMonthInterval($){var z=30*ONE_DAY;return $/=z,$>6?6:$>3?3:$>2?2:1}function getHourInterval($){return $/=ONE_HOUR,$>12?12:$>6?6:$>3.5?4:$>2?2:1}function getMinutesAndSecondsInterval($,z){return $/=z?ONE_MINUTE:ONE_SECOND,$>30?30:$>20?20:$>15?15:$>10?10:$>5?5:$>2?2:1}function getMillisecondsInterval($){return nice($,!0)}function getFirstTimestampOfUnit($,z,oe){var ae=new Date($);switch(getPrimaryTimeUnit(z)){case"year":case"month":ae[monthSetterName(oe)](0);case"day":ae[dateSetterName(oe)](1);case"hour":ae[hoursSetterName(oe)](0);case"minute":ae[minutesSetterName(oe)](0);case"second":ae[secondsSetterName(oe)](0),ae[millisecondsSetterName(oe)](0)}return ae.getTime()}function getIntervalTicks($,z,oe,ae){var ie=1e4,le=timeUnits,pe=0;function _e(xn,kn,An,On,Mn,Fn,Dn){for(var Nn=new Date(kn),Vn=kn,Bn=Nn[On]();Vn<An&&Vn<=ae[1];)Dn.push({value:Vn}),Bn+=xn,Nn[Mn](Bn),Vn=Nn.getTime();Dn.push({value:Vn,notAdd:!0})}function Ce(xn,kn,An){var On=[],Mn=!kn.length;if(!isUnitValueSame(getPrimaryTimeUnit(xn),ae[0],ae[1],oe)){Mn&&(kn=[{value:getFirstTimestampOfUnit(new Date(ae[0]),xn,oe)},{value:ae[1]}]);for(var Fn=0;Fn<kn.length-1;Fn++){var Dn=kn[Fn].value,Nn=kn[Fn+1].value;if(Dn!==Nn){var Vn=void 0,Bn=void 0,zn=void 0,Xn=!1;switch(xn){case"year":Vn=Math.max(1,Math.round(z/ONE_DAY/365)),Bn=fullYearGetterName(oe),zn=fullYearSetterName(oe);break;case"half-year":case"quarter":case"month":Vn=getMonthInterval(z),Bn=monthGetterName(oe),zn=monthSetterName(oe);break;case"week":case"half-week":case"day":Vn=getDateInterval(z),Bn=dateGetterName(oe),zn=dateSetterName(oe),Xn=!0;break;case"half-day":case"quarter-day":case"hour":Vn=getHourInterval(z),Bn=hoursGetterName(oe),zn=hoursSetterName(oe);break;case"minute":Vn=getMinutesAndSecondsInterval(z,!0),Bn=minutesGetterName(oe),zn=minutesSetterName(oe);break;case"second":Vn=getMinutesAndSecondsInterval(z,!1),Bn=secondsGetterName(oe),zn=secondsSetterName(oe);break;case"millisecond":Vn=getMillisecondsInterval(z),Bn=millisecondsGetterName(oe),zn=millisecondsSetterName(oe);break}_e(Vn,Dn,Nn,Bn,zn,Xn,On),xn==="year"&&An.length>1&&Fn===0&&An.unshift({value:An[0].value-Vn})}}for(var Fn=0;Fn<On.length;Fn++)An.push(On[Fn]);return On}}for(var $e=[],xe=[],Ie=0,Ne=0,Fe=0;Fe<le.length&&pe++<ie;++Fe){var ze=getPrimaryTimeUnit(le[Fe]);if(isPrimaryTimeUnit(le[Fe])){Ce(le[Fe],$e[$e.length-1]||[],xe);var At=le[Fe+1]?getPrimaryTimeUnit(le[Fe+1]):null;if(ze!==At){if(xe.length){Ne=Ie,xe.sort(function(xn,kn){return xn.value-kn.value});for(var Lt=[],hn=0;hn<xe.length;++hn){var vn=xe[hn].value;(hn===0||xe[hn-1].value!==vn)&&(Lt.push(xe[hn]),vn>=ae[0]&&vn<=ae[1]&&Ie++)}var _n=(ae[1]-ae[0])/z;if(Ie>_n*1.5&&Ne>_n/1.5||($e.push(Lt),Ie>_n||$===le[Fe]))break}xe=[]}}}for(var bn=filter(map$2($e,function(xn){return filter(xn,function(kn){return kn.value>=ae[0]&&kn.value<=ae[1]&&!kn.notAdd})}),function(xn){return xn.length>0}),Cn=[],En=bn.length-1,Fe=0;Fe<bn.length;++Fe)for(var $n=bn[Fe],wn=0;wn<$n.length;++wn)Cn.push({value:$n[wn].value,level:En-Fe});Cn.sort(function(xn,kn){return xn.value-kn.value});for(var Tn=[],Fe=0;Fe<Cn.length;++Fe)(Fe===0||Cn[Fe].value!==Cn[Fe-1].value)&&Tn.push(Cn[Fe]);return Tn}Scale$1.registerClass(TimeScale);const TimeScale$1=TimeScale;var scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="log",oe.base=10,oe._originalScale=new IntervalScale$1,oe._interval=0,oe}return z.prototype.getTicks=function(oe){var ae=this._originalScale,ie=this._extent,le=ae.getExtent(),pe=intervalScaleProto.getTicks.call(this,oe);return map$2(pe,function(_e){var Ce=_e.value,$e=round$1(mathPow$1(this.base,Ce));return $e=Ce===ie[0]&&this._fixMin?fixRoundingError($e,le[0]):$e,$e=Ce===ie[1]&&this._fixMax?fixRoundingError($e,le[1]):$e,{value:$e}},this)},z.prototype.setExtent=function(oe,ae){var ie=mathLog$1(this.base);oe=mathLog$1(Math.max(0,oe))/ie,ae=mathLog$1(Math.max(0,ae))/ie,intervalScaleProto.setExtent.call(this,oe,ae)},z.prototype.getExtent=function(){var oe=this.base,ae=scaleProto.getExtent.call(this);ae[0]=mathPow$1(oe,ae[0]),ae[1]=mathPow$1(oe,ae[1]);var ie=this._originalScale,le=ie.getExtent();return this._fixMin&&(ae[0]=fixRoundingError(ae[0],le[0])),this._fixMax&&(ae[1]=fixRoundingError(ae[1],le[1])),ae},z.prototype.unionExtent=function(oe){this._originalScale.unionExtent(oe);var ae=this.base;oe[0]=mathLog$1(oe[0])/mathLog$1(ae),oe[1]=mathLog$1(oe[1])/mathLog$1(ae),scaleProto.unionExtent.call(this,oe)},z.prototype.unionExtentFromData=function(oe,ae){this.unionExtent(oe.getApproximateExtent(ae))},z.prototype.calcNiceTicks=function(oe){oe=oe||10;var ae=this._extent,ie=ae[1]-ae[0];if(!(ie===1/0||ie<=0)){var le=quantity(ie),pe=oe/ie*le;for(pe<=.5&&(le*=10);!isNaN(le)&&Math.abs(le)<1&&Math.abs(le)>0;)le*=10;var _e=[round$1(mathCeil(ae[0]/le)*le),round$1(mathFloor(ae[1]/le)*le)];this._interval=le,this._niceExtent=_e}},z.prototype.calcNiceExtent=function(oe){intervalScaleProto.calcNiceExtent.call(this,oe),this._fixMin=oe.fixMin,this._fixMax=oe.fixMax},z.prototype.parse=function(oe){return oe},z.prototype.contain=function(oe){return oe=mathLog$1(oe)/mathLog$1(this.base),contain$1(oe,this._extent)},z.prototype.normalize=function(oe){return oe=mathLog$1(oe)/mathLog$1(this.base),normalize(oe,this._extent)},z.prototype.scale=function(oe){return oe=scale(oe,this._extent),mathPow$1(this.base,oe)},z.type="log",z}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError($,z){return roundingErrorFix($,getPrecision(z))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function $(z,oe,ae){this._prepareParams(z,oe,ae)}return $.prototype._prepareParams=function(z,oe,ae){ae[1]<ae[0]&&(ae=[NaN,NaN]),this._dataMin=ae[0],this._dataMax=ae[1];var ie=this._isOrdinal=z.type==="ordinal";this._needCrossZero=z.type==="interval"&&oe.getNeedCrossZero&&oe.getNeedCrossZero();var le=this._modelMinRaw=oe.get("min",!0);isFunction(le)?this._modelMinNum=parseAxisModelMinMax(z,le({min:ae[0],max:ae[1]})):le!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(z,le));var pe=this._modelMaxRaw=oe.get("max",!0);if(isFunction(pe)?this._modelMaxNum=parseAxisModelMinMax(z,pe({min:ae[0],max:ae[1]})):pe!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(z,pe)),ie)this._axisDataLen=oe.getCategories().length;else{var _e=oe.get("boundaryGap"),Ce=isArray$1(_e)?_e:[_e||0,_e||0];typeof Ce[0]=="boolean"||typeof Ce[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(Ce[0],1),parsePercent$1(Ce[1],1)]}},$.prototype.calculate=function(){var z=this._isOrdinal,oe=this._dataMin,ae=this._dataMax,ie=this._axisDataLen,le=this._boundaryGapInner,pe=z?null:ae-oe||Math.abs(oe),_e=this._modelMinRaw==="dataMin"?oe:this._modelMinNum,Ce=this._modelMaxRaw==="dataMax"?ae:this._modelMaxNum,$e=_e!=null,xe=Ce!=null;_e==null&&(_e=z?ie?0:NaN:oe-le[0]*pe),Ce==null&&(Ce=z?ie?ie-1:NaN:ae+le[1]*pe),(_e==null||!isFinite(_e))&&(_e=NaN),(Ce==null||!isFinite(Ce))&&(Ce=NaN);var Ie=eqNaN(_e)||eqNaN(Ce)||z&&!ie;this._needCrossZero&&(_e>0&&Ce>0&&!$e&&(_e=0),_e<0&&Ce<0&&!xe&&(Ce=0));var Ne=this._determinedMin,Fe=this._determinedMax;return Ne!=null&&(_e=Ne,$e=!0),Fe!=null&&(Ce=Fe,xe=!0),{min:_e,max:Ce,minFixed:$e,maxFixed:xe,isBlank:Ie}},$.prototype.modifyDataMinMax=function(z,oe){this[DATA_MIN_MAX_ATTR[z]]=oe},$.prototype.setDeterminedMinMax=function(z,oe){var ae=DETERMINED_MIN_MAX_ATTR[z];this[ae]=oe},$.prototype.freeze=function(){this.frozen=!0},$}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo($,z,oe){var ae=$.rawExtentInfo;return ae||(ae=new ScaleRawExtentInfo($,z,oe),$.rawExtentInfo=ae,ae)}function parseAxisModelMinMax($,z){return z==null?null:eqNaN(z)?NaN:$.parse(z)}function getScaleExtent($,z){var oe=$.type,ae=ensureScaleRawExtentInfo($,z,$.getExtent()).calculate();$.setBlank(ae.isBlank);var ie=ae.min,le=ae.max,pe=z.ecModel;if(pe&&oe==="time"){var _e=prepareLayoutBarSeries("bar",pe),Ce=!1;if(each$c(_e,function(Ie){Ce=Ce||Ie.getBaseAxis()===z.axis}),Ce){var $e=makeColumnLayout(_e),xe=adjustScaleForOverflow(ie,le,z,$e);ie=xe.min,le=xe.max}}return{extent:[ie,le],fixMin:ae.minFixed,fixMax:ae.maxFixed}}function adjustScaleForOverflow($,z,oe,ae){var ie=oe.axis.getExtent(),le=ie[1]-ie[0],pe=retrieveColumnLayout(ae,oe.axis);if(pe===void 0)return{min:$,max:z};var _e=1/0;each$c(pe,function(Fe){_e=Math.min(Fe.offset,_e)});var Ce=-1/0;each$c(pe,function(Fe){Ce=Math.max(Fe.offset+Fe.width,Ce)}),_e=Math.abs(_e),Ce=Math.abs(Ce);var $e=_e+Ce,xe=z-$,Ie=1-(_e+Ce)/le,Ne=xe/Ie-xe;return z+=Ne*(Ce/$e),$-=Ne*(_e/$e),{min:$,max:z}}function niceScaleExtent($,z){var oe=z,ae=getScaleExtent($,oe),ie=ae.extent,le=oe.get("splitNumber");$ instanceof LogScale$1&&($.base=oe.get("logBase"));var pe=$.type,_e=oe.get("interval"),Ce=pe==="interval"||pe==="time";$.setExtent(ie[0],ie[1]),$.calcNiceExtent({splitNumber:le,fixMin:ae.fixMin,fixMax:ae.fixMax,minInterval:Ce?oe.get("minInterval"):null,maxInterval:Ce?oe.get("maxInterval"):null}),_e!=null&&$.setInterval&&$.setInterval(_e)}function createScaleByModel($,z){if(z=z||$.get("type"),z)switch(z){case"category":return new OrdinalScale$1({ordinalMeta:$.getOrdinalMeta?$.getOrdinalMeta():$.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:$.ecModel.getLocaleModel(),useUTC:$.ecModel.get("useUTC")});default:return new(Scale$1.getClass(z)||IntervalScale$1)}}function ifAxisCrossZero($){var z=$.scale.getExtent(),oe=z[0],ae=z[1];return!(oe>0&&ae>0||oe<0&&ae<0)}function makeLabelFormatter($){var z=$.getLabelModel().get("formatter"),oe=$.type==="category"?$.scale.getExtent()[0]:null;return $.scale.type==="time"?function(ae){return function(ie,le){return $.scale.getFormattedLabel(ie,le,ae)}}(z):isString(z)?function(ae){return function(ie){var le=$.scale.getLabel(ie),pe=ae.replace("{value}",le??"");return pe}}(z):isFunction(z)?function(ae){return function(ie,le){return oe!=null&&(le=ie.value-oe),ae(getAxisRawValue($,ie),le,ie.level!=null?{level:ie.level}:null)}}(z):function(ae){return $.scale.getLabel(ae)}}function getAxisRawValue($,z){return $.type==="category"?$.scale.getLabel(z):z.value}function estimateLabelUnionRect($){var z=$.model,oe=$.scale;if(!(!z.get(["axisLabel","show"])||oe.isBlank())){var ae,ie,le=oe.getExtent();oe instanceof OrdinalScale$1?ie=oe.count():(ae=oe.getTicks(),ie=ae.length);var pe=$.getLabelModel(),_e=makeLabelFormatter($),Ce,$e=1;ie>40&&($e=Math.ceil(ie/40));for(var xe=0;xe<ie;xe+=$e){var Ie=ae?ae[xe]:{value:le[0]+xe},Ne=_e(Ie,xe),Fe=pe.getTextRect(Ne),ze=rotateTextRect(Fe,pe.get("rotate")||0);Ce?Ce.union(ze):Ce=ze}return Ce}}function rotateTextRect($,z){var oe=z*Math.PI/180,ae=$.width,ie=$.height,le=ae*Math.abs(Math.cos(oe))+Math.abs(ie*Math.sin(oe)),pe=ae*Math.abs(Math.sin(oe))+Math.abs(ie*Math.cos(oe)),_e=new BoundingRect$1($.x,$.y,le,pe);return _e}function getOptionCategoryInterval($){var z=$.get("interval");return z??"auto"}function shouldShowAllLabels($){return $.type==="category"&&getOptionCategoryInterval($.getLabelModel())===0}function getDataDimensionsOnAxis($,z){var oe={};return each$c($.mapDimensionsAll(z),function(ae){oe[getStackedDimension($,ae)]=!0}),keys(oe)}function unionAxisExtentFromData($,z,oe){z&&each$c(getDataDimensionsOnAxis(z,oe),function(ae){var ie=z.getApproximateExtent(ae);ie[0]<$[0]&&($[0]=ie[0]),ie[1]>$[1]&&($[1]=ie[1])})}var AxisModelCommonMixin=function(){function $(){}return $.prototype.getNeedCrossZero=function(){var z=this.option;return!z.scale},$.prototype.getCoordSysModel=function(){},$}();function createList($){return createSeriesData(null,$)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale($,z){var oe=z;z instanceof Model$1||(oe=new Model$1(z));var ae=createScaleByModel(oe);return ae.setExtent($[0],$[1]),niceScaleExtent(ae,oe),ae}function mixinAxisModelCommonMethods($){mixin($,AxisModelCommonMixin)}function createTextStyle($,z){return z=z||{},createTextStyle$1($,null,null,z.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($){ComponentModel$1.registerClass($)},registerComponentView:function($){ComponentView$1.registerClass($)},registerSeriesModel:function($){SeriesModel$1.registerClass($)},registerChartView:function($){ChartView$1.registerClass($)},registerSubTypeDefaulter:function($,z){ComponentModel$1.registerSubTypeDefaulter($,z)},registerPainter:function($,z){registerPainter($,z)}};function use$1($){if(isArray$1($)){each$c($,function(z){use$1(z)});return}indexOf(extensions,$)>=0||(extensions.push($),isFunction($)&&($={install:$}),$.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual($,z){return Math.abs($-z)<EPSILON}function contain($,z,oe){var ae=0,ie=$[0];if(!ie)return!1;for(var le=1;le<$.length;le++){var pe=$[le];ae+=windingLine(ie[0],ie[1],pe[0],pe[1],z,oe),ie=pe}var _e=$[0];return(!isAroundEqual(ie[0],_e[0])||!isAroundEqual(ie[1],_e[1]))&&(ae+=windingLine(ie[0],ie[1],_e[0],_e[1],z,oe)),ae!==0}var TMP_TRANSFORM=[];function transformPoints($,z){for(var oe=0;oe<$.length;oe++)applyTransform$1($[oe],$[oe],z)}function updateBBoxFromPoints($,z,oe,ae){for(var ie=0;ie<$.length;ie++){var le=$[ie];ae&&(le=ae.project(le)),le&&isFinite(le[0])&&isFinite(le[1])&&(min$1(z,z,le),max$1(oe,oe,le))}}function centroid($){for(var z=0,oe=0,ae=0,ie=$.length,le=$[ie-1][0],pe=$[ie-1][1],_e=0;_e<ie;_e++){var Ce=$[_e][0],$e=$[_e][1],xe=le*$e-Ce*pe;z+=xe,oe+=(le+Ce)*xe,ae+=(pe+$e)*xe,le=Ce,pe=$e}return z?[oe/z/3,ae/z/3,z]:[$[0][0]||0,$[0][1]||0]}var Region=function(){function $(z){this.name=z}return $.prototype.setCenter=function(z){this._center=z},$.prototype.getCenter=function(){var z=this._center;return z||(z=this._center=this.calcCenter()),z},$}(),GeoJSONPolygonGeometry=function(){function $(z,oe){this.type="polygon",this.exterior=z,this.interiors=oe}return $}(),GeoJSONLineStringGeometry=function(){function $(z){this.type="linestring",this.points=z}return $}(),GeoJSONRegion=function($){__extends(z,$);function z(oe,ae,ie){var le=$.call(this,oe)||this;return le.type="geoJSON",le.geometries=ae,le._center=ie&&[ie[0],ie[1]],le}return z.prototype.calcCenter=function(){for(var oe=this.geometries,ae,ie=0,le=0;le<oe.length;le++){var pe=oe[le],_e=pe.exterior,Ce=_e&&_e.length;Ce>ie&&(ae=pe,ie=Ce)}if(ae)return centroid(ae.exterior);var $e=this.getBoundingRect();return[$e.x+$e.width/2,$e.y+$e.height/2]},z.prototype.getBoundingRect=function(oe){var ae=this._rect;if(ae&&!oe)return ae;var ie=[1/0,1/0],le=[-1/0,-1/0],pe=this.geometries;return each$c(pe,function(_e){_e.type==="polygon"?updateBBoxFromPoints(_e.exterior,ie,le,oe):each$c(_e.points,function(Ce){updateBBoxFromPoints(Ce,ie,le,oe)})}),isFinite(ie[0])&&isFinite(ie[1])&&isFinite(le[0])&&isFinite(le[1])||(ie[0]=ie[1]=le[0]=le[1]=0),ae=new BoundingRect$1(ie[0],ie[1],le[0]-ie[0],le[1]-ie[1]),oe||(this._rect=ae),ae},z.prototype.contain=function(oe){var ae=this.getBoundingRect(),ie=this.geometries;if(!ae.contain(oe[0],oe[1]))return!1;e:for(var le=0,pe=ie.length;le<pe;le++){var _e=ie[le];if(_e.type==="polygon"){var Ce=_e.exterior,$e=_e.interiors;if(contain(Ce,oe[0],oe[1])){for(var xe=0;xe<($e?$e.length:0);xe++)if(contain($e[xe],oe[0],oe[1]))continue e;return!0}}}return!1},z.prototype.transformTo=function(oe,ae,ie,le){var pe=this.getBoundingRect(),_e=pe.width/pe.height;ie?le||(le=ie/_e):ie=_e*le;for(var Ce=new BoundingRect$1(oe,ae,ie,le),$e=pe.calculateTransform(Ce),xe=this.geometries,Ie=0;Ie<xe.length;Ie++){var Ne=xe[Ie];Ne.type==="polygon"?(transformPoints(Ne.exterior,$e),each$c(Ne.interiors,function(Fe){transformPoints(Fe,$e)})):each$c(Ne.points,function(Fe){transformPoints(Fe,$e)})}pe=this._rect,pe.copy(Ce),this._center=[pe.x+pe.width/2,pe.y+pe.height/2]},z.prototype.cloneShallow=function(oe){oe==null&&(oe=this.name);var ae=new z(oe,this.geometries,this._center);return ae._rect=this._rect,ae.transformTo=null,ae},z}(Region);(function($){__extends(z,$);function z(oe,ae){var ie=$.call(this,oe)||this;return ie.type="geoSVG",ie._elOnlyForCalculate=ae,ie}return z.prototype.calcCenter=function(){for(var oe=this._elOnlyForCalculate,ae=oe.getBoundingRect(),ie=[ae.x+ae.width/2,ae.y+ae.height/2],le=identity(TMP_TRANSFORM),pe=oe;pe&&!pe.isGeoSVGGraphicRoot;)mul(le,pe.getLocalTransform(),le),pe=pe.parent;return invert(le,le),applyTransform$1(ie,ie,le),ie},z})(Region);function decode($){if(!$.UTF8Encoding)return $;var z=$,oe=z.UTF8Scale;oe==null&&(oe=1024);var ae=z.features;return each$c(ae,function(ie){var le=ie.geometry,pe=le.encodeOffsets,_e=le.coordinates;if(pe)switch(le.type){case"LineString":le.coordinates=decodeRing(_e,pe,oe);break;case"Polygon":decodeRings(_e,pe,oe);break;case"MultiLineString":decodeRings(_e,pe,oe);break;case"MultiPolygon":each$c(_e,function(Ce,$e){return decodeRings(Ce,pe[$e],oe)})}}),z.UTF8Encoding=!1,z}function decodeRings($,z,oe){for(var ae=0;ae<$.length;ae++)$[ae]=decodeRing($[ae],z[ae],oe)}function decodeRing($,z,oe){for(var ae=[],ie=z[0],le=z[1],pe=0;pe<$.length;pe+=2){var _e=$.charCodeAt(pe)-64,Ce=$.charCodeAt(pe+1)-64;_e=_e>>1^-(_e&1),Ce=Ce>>1^-(Ce&1),_e+=ie,Ce+=le,ie=_e,le=Ce,ae.push([_e/oe,Ce/oe])}return ae}function parseGeoJSON($,z){return $=decode($),map$2(filter($.features,function(oe){return oe.geometry&&oe.properties&&oe.geometry.coordinates.length>0}),function(oe){var ae=oe.properties,ie=oe.geometry,le=[];switch(ie.type){case"Polygon":var pe=ie.coordinates;le.push(new GeoJSONPolygonGeometry(pe[0],pe.slice(1)));break;case"MultiPolygon":each$c(ie.coordinates,function(Ce){Ce[0]&&le.push(new GeoJSONPolygonGeometry(Ce[0],Ce.slice(1)))});break;case"LineString":le.push(new GeoJSONLineStringGeometry([ie.coordinates]));break;case"MultiLineString":le.push(new GeoJSONLineStringGeometry(ie.coordinates))}var _e=new GeoJSONRegion(ae[z||"name"],le,ae.cp);return _e.properties=ae,_e})}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($){return $.type==="category"?makeCategoryLabels($):makeRealNumberLabels($)}function createAxisTicks($,z){return $.type==="category"?makeCategoryTicks($,z):{ticks:map$2($.scale.getTicks(),function(oe){return oe.value})}}function makeCategoryLabels($){var z=$.getLabelModel(),oe=makeCategoryLabelsActually($,z);return!z.get("show")||$.scale.isBlank()?{labels:[],labelCategoryInterval:oe.labelCategoryInterval}:oe}function makeCategoryLabelsActually($,z){var oe=getListCache($,"labels"),ae=getOptionCategoryInterval(z),ie=listCacheGet(oe,ae);if(ie)return ie;var le,pe;return isFunction(ae)?le=makeLabelsByCustomizedCategoryInterval($,ae):(pe=ae==="auto"?makeAutoCategoryInterval($):ae,le=makeLabelsByNumericCategoryInterval($,pe)),listCacheSet(oe,ae,{labels:le,labelCategoryInterval:pe})}function makeCategoryTicks($,z){var oe=getListCache($,"ticks"),ae=getOptionCategoryInterval(z),ie=listCacheGet(oe,ae);if(ie)return ie;var le,pe;if((!z.get("show")||$.scale.isBlank())&&(le=[]),isFunction(ae))le=makeLabelsByCustomizedCategoryInterval($,ae,!0);else if(ae==="auto"){var _e=makeCategoryLabelsActually($,$.getLabelModel());pe=_e.labelCategoryInterval,le=map$2(_e.labels,function(Ce){return Ce.tickValue})}else pe=ae,le=makeLabelsByNumericCategoryInterval($,pe,!0);return listCacheSet(oe,ae,{ticks:le,tickCategoryInterval:pe})}function makeRealNumberLabels($){var z=$.scale.getTicks(),oe=makeLabelFormatter($);return{labels:map$2(z,function(ae,ie){return{level:ae.level,formattedLabel:oe(ae,ie),rawLabel:$.scale.getLabel(ae),tickValue:ae.value}})}}function getListCache($,z){return inner$7($)[z]||(inner$7($)[z]=[])}function listCacheGet($,z){for(var oe=0;oe<$.length;oe++)if($[oe].key===z)return $[oe].value}function listCacheSet($,z,oe){return $.push({key:z,value:oe}),oe}function makeAutoCategoryInterval($){var z=inner$7($).autoInterval;return z??(inner$7($).autoInterval=$.calculateCategoryInterval())}function calculateCategoryInterval($){var z=fetchAutoCategoryIntervalCalculationParams($),oe=makeLabelFormatter($),ae=(z.axisRotate-z.labelRotate)/180*Math.PI,ie=$.scale,le=ie.getExtent(),pe=ie.count();if(le[1]-le[0]<1)return 0;var _e=1;pe>40&&(_e=Math.max(1,Math.floor(pe/40)));for(var Ce=le[0],$e=$.dataToCoord(Ce+1)-$.dataToCoord(Ce),xe=Math.abs($e*Math.cos(ae)),Ie=Math.abs($e*Math.sin(ae)),Ne=0,Fe=0;Ce<=le[1];Ce+=_e){var ze=0,At=0,Lt=getBoundingRect(oe({value:Ce}),z.font,"center","top");ze=Lt.width*1.3,At=Lt.height*1.3,Ne=Math.max(Ne,ze,7),Fe=Math.max(Fe,At,7)}var hn=Ne/xe,vn=Fe/Ie;isNaN(hn)&&(hn=1/0),isNaN(vn)&&(vn=1/0);var _n=Math.max(0,Math.floor(Math.min(hn,vn))),bn=inner$7($.model),Cn=$.getExtent(),En=bn.lastAutoInterval,$n=bn.lastTickCount;return En!=null&&$n!=null&&Math.abs(En-_n)<=1&&Math.abs($n-pe)<=1&&En>_n&&bn.axisExtent0===Cn[0]&&bn.axisExtent1===Cn[1]?_n=En:(bn.lastTickCount=pe,bn.lastAutoInterval=_n,bn.axisExtent0=Cn[0],bn.axisExtent1=Cn[1]),_n}function fetchAutoCategoryIntervalCalculationParams($){var z=$.getLabelModel();return{axisRotate:$.getRotate?$.getRotate():$.isHorizontal&&!$.isHorizontal()?90:0,labelRotate:z.get("rotate")||0,font:z.getFont()}}function makeLabelsByNumericCategoryInterval($,z,oe){var ae=makeLabelFormatter($),ie=$.scale,le=ie.getExtent(),pe=$.getLabelModel(),_e=[],Ce=Math.max((z||0)+1,1),$e=le[0],xe=ie.count();$e!==0&&Ce>1&&xe/Ce>2&&($e=Math.round(Math.ceil($e/Ce)*Ce));var Ie=shouldShowAllLabels($),Ne=pe.get("showMinLabel")||Ie,Fe=pe.get("showMaxLabel")||Ie;Ne&&$e!==le[0]&&At(le[0]);for(var ze=$e;ze<=le[1];ze+=Ce)At(ze);Fe&&ze-Ce!==le[1]&&At(le[1]);function At(Lt){var hn={value:Lt};_e.push(oe?Lt:{formattedLabel:ae(hn),rawLabel:ie.getLabel(hn),tickValue:Lt})}return _e}function makeLabelsByCustomizedCategoryInterval($,z,oe){var ae=$.scale,ie=makeLabelFormatter($),le=[];return each$c(ae.getTicks(),function(pe){var _e=ae.getLabel(pe),Ce=pe.value;z(pe.value,_e)&&le.push(oe?Ce:{formattedLabel:ie(pe),rawLabel:_e,tickValue:Ce})}),le}var NORMALIZED_EXTENT=[0,1],Axis=function(){function $(z,oe,ae){this.onBand=!1,this.inverse=!1,this.dim=z,this.scale=oe,this._extent=ae||[0,0]}return $.prototype.contain=function(z){var oe=this._extent,ae=Math.min(oe[0],oe[1]),ie=Math.max(oe[0],oe[1]);return z>=ae&&z<=ie},$.prototype.containData=function(z){return this.scale.contain(z)},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.getPixelPrecision=function(z){return getPixelPrecision(z||this.scale.getExtent(),this._extent)},$.prototype.setExtent=function(z,oe){var ae=this._extent;ae[0]=z,ae[1]=oe},$.prototype.dataToCoord=function(z,oe){var ae=this._extent,ie=this.scale;return z=ie.normalize(z),this.onBand&&ie.type==="ordinal"&&(ae=ae.slice(),fixExtentWithBands(ae,ie.count())),linearMap$2(z,NORMALIZED_EXTENT,ae,oe)},$.prototype.coordToData=function(z,oe){var ae=this._extent,ie=this.scale;this.onBand&&ie.type==="ordinal"&&(ae=ae.slice(),fixExtentWithBands(ae,ie.count()));var le=linearMap$2(z,ae,NORMALIZED_EXTENT,oe);return this.scale.scale(le)},$.prototype.pointToData=function(z,oe){},$.prototype.getTicksCoords=function(z){z=z||{};var oe=z.tickModel||this.getTickModel(),ae=createAxisTicks(this,oe),ie=ae.ticks,le=map$2(ie,function(_e){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(_e):_e),tickValue:_e}},this),pe=oe.get("alignWithLabel");return fixOnBandTicksCoords(this,le,pe,z.clamp),le},$.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var z=this.model.getModel("minorTick"),oe=z.get("splitNumber");oe>0&&oe<100||(oe=5);var ae=this.scale.getMinorTicks(oe),ie=map$2(ae,function(le){return map$2(le,function(pe){return{coord:this.dataToCoord(pe),tickValue:pe}},this)},this);return ie},$.prototype.getViewLabels=function(){return createAxisLabels(this).labels},$.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},$.prototype.getTickModel=function(){return this.model.getModel("axisTick")},$.prototype.getBandWidth=function(){var z=this._extent,oe=this.scale.getExtent(),ae=oe[1]-oe[0]+(this.onBand?1:0);ae===0&&(ae=1);var ie=Math.abs(z[1]-z[0]);return Math.abs(ie)/ae},$.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},$}();function fixExtentWithBands($,z){var oe=$[1]-$[0],ae=z,ie=oe/ae/2;$[0]+=ie,$[1]-=ie}function fixOnBandTicksCoords($,z,oe,ae){var ie=z.length;if(!$.onBand||oe||!ie)return;var le=$.getExtent(),pe,_e;if(ie===1)z[0].coord=le[0],pe=z[1]={coord:le[0]};else{var Ce=z[ie-1].tickValue-z[0].tickValue,$e=(z[ie-1].coord-z[0].coord)/Ce;each$c(z,function(Fe){Fe.coord-=$e/2});var xe=$.scale.getExtent();_e=1+xe[1]-z[ie-1].tickValue,pe={coord:z[ie-1].coord+$e*_e},z.push(pe)}var Ie=le[0]>le[1];Ne(z[0].coord,le[0])&&(ae?z[0].coord=le[0]:z.shift()),ae&&Ne(le[0],z[0].coord)&&z.unshift({coord:le[0]}),Ne(le[1],pe.coord)&&(ae?pe.coord=le[1]:z.pop()),ae&&Ne(pe.coord,le[1])&&z.push({coord:le[1]});function Ne(Fe,ze){return Fe=round$1(Fe),ze=round$1(ze),Ie?Fe>ze:Fe<ze}}const Axis$1=Axis;function extendComponentModel($){var z=ComponentModel$1.extend($);return ComponentModel$1.registerClass(z),z}function extendComponentView($){var z=ComponentView$1.extend($);return ComponentView$1.registerClass(z),z}function extendSeriesModel($){var z=SeriesModel$1.extend($);return SeriesModel$1.registerClass(z),z}function extendChartView($){var z=ChartView$1.extend($);return ChartView$1.registerClass(z),z}PathProxy$1.CMD;function projectPointToLine($,z,oe,ae,ie,le,pe,_e){var Ce=ie-$,$e=le-z,xe=oe-$,Ie=ae-z,Ne=Math.sqrt(xe*xe+Ie*Ie);xe/=Ne,Ie/=Ne;var Fe=Ce*xe+$e*Ie,ze=Fe/Ne;_e&&(ze=Math.min(Math.max(ze,0),1)),ze*=Ne;var At=pe[0]=$+ze*xe,Lt=pe[1]=z+ze*Ie;return Math.sqrt((At-ie)*(At-ie)+(Lt-le)*(Lt-le))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle($,z){if(z<=180&&z>0){z=z/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var oe=dir.len(),ae=dir2.len();if(!(oe<.001||ae<.001)){dir.scale(1/oe),dir2.scale(1/ae);var ie=dir.dot(dir2),le=Math.cos(z);if(le<ie){var pe=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,pe/Math.tan(Math.PI-z));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($[1])}}}}function limitSurfaceAngle($,z,oe){if(oe<=180&&oe>0){oe=oe/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var ae=dir.len(),ie=dir2.len();if(!(ae<.001||ie<.001)){dir.scale(1/ae),dir2.scale(1/ie);var le=dir.dot(z),pe=Math.cos(oe);if(le<pe){var _e=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var Ce=Math.PI/2,$e=Math.acos(dir2.dot(z)),xe=Ce+$e-oe;if(xe>=Ce)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,_e/Math.tan(Math.PI/2-xe));var Ie=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(Ie))return;Ie<0?Point$1.copy(tmpProjPoint,pt1):Ie>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray($[1])}}}}function setLabelLineState($,z,oe,ae){var ie=oe==="normal",le=ie?$:$.ensureState(oe);le.ignore=z;var pe=ae.get("smooth");pe&&pe===!0&&(pe=.3),le.shape=le.shape||{},pe>0&&(le.shape.smooth=pe);var _e=ae.getModel("lineStyle").getLineStyle();ie?$.useStyle(_e):le.style=_e}function buildLabelLinePath($,z){var oe=z.smooth,ae=z.points;if(ae)if($.moveTo(ae[0][0],ae[0][1]),oe>0&&ae.length>=3){var ie=dist$1(ae[0],ae[1]),le=dist$1(ae[1],ae[2]);if(!ie||!le){$.lineTo(ae[1][0],ae[1][1]),$.lineTo(ae[2][0],ae[2][1]);return}var pe=Math.min(ie,le)*oe,_e=lerp$1([],ae[1],ae[0],pe/ie),Ce=lerp$1([],ae[1],ae[2],pe/le),$e=lerp$1([],_e,Ce,.5);$.bezierCurveTo(_e[0],_e[1],_e[0],_e[1],$e[0],$e[1]),$.bezierCurveTo(Ce[0],Ce[1],Ce[0],Ce[1],ae[2][0],ae[2][1])}else for(var xe=1;xe<ae.length;xe++)$.lineTo(ae[xe][0],ae[xe][1])}function setLabelLineStyle($,z,oe){var ae=$.getTextGuideLine(),ie=$.getTextContent();if(!ie){ae&&$.removeTextGuideLine();return}for(var le=z.normal,pe=le.get("show"),_e=ie.ignore,Ce=0;Ce<DISPLAY_STATES.length;Ce++){var $e=DISPLAY_STATES[Ce],xe=z[$e],Ie=$e==="normal";if(xe){var Ne=xe.get("show"),Fe=Ie?_e:retrieve2(ie.states[$e]&&ie.states[$e].ignore,_e);if(Fe||!retrieve2(Ne,pe)){var ze=Ie?ae:ae&&ae.states[$e];ze&&(ze.ignore=!0);continue}ae||(ae=new Polyline$1,$.setTextGuideLine(ae),!Ie&&(_e||!pe)&&setLabelLineState(ae,!0,"normal",z.normal),$.stateProxy&&(ae.stateProxy=$.stateProxy)),setLabelLineState(ae,!1,$e,xe)}}if(ae){defaults(ae.style,oe),ae.style.fill=null;var At=le.get("showAbove"),Lt=$.textGuideLineConfig=$.textGuideLineConfig||{};Lt.showAbove=At||!1,ae.buildPath=buildLabelLinePath}}function getLabelLineStatesModels($,z){z=z||"labelLine";for(var oe={normal:$.getModel(z)},ae=0;ae<SPECIAL_STATES.length;ae++){var ie=SPECIAL_STATES[ae];oe[ie]=$.getModel([ie,z])}return oe}function prepareLayoutList($){for(var z=[],oe=0;oe<$.length;oe++){var ae=$[oe];if(!ae.defaultAttr.ignore){var ie=ae.label,le=ie.getComputedTransform(),pe=ie.getBoundingRect(),_e=!le||le[1]<1e-5&&le[2]<1e-5,Ce=ie.style.margin||0,$e=pe.clone();$e.applyTransform(le),$e.x-=Ce/2,$e.y-=Ce/2,$e.width+=Ce,$e.height+=Ce;var xe=_e?new OrientedBoundingRect$1(pe,le):null;z.push({label:ie,labelLine:ae.labelLine,rect:$e,localRect:pe,obb:xe,priority:ae.priority,defaultAttr:ae.defaultAttr,layoutOption:ae.computedLayoutOption,axisAligned:_e,transform:le})}}return z}function shiftLayout($,z,oe,ae,ie,le){var pe=$.length;if(pe<2)return;$.sort(function(wn,Tn){return wn.rect[z]-Tn.rect[z]});for(var _e=0,Ce,$e=!1,xe=0,Ie=0;Ie<pe;Ie++){var Ne=$[Ie],Fe=Ne.rect;Ce=Fe[z]-_e,Ce<0&&(Fe[z]-=Ce,Ne.label[z]-=Ce,$e=!0);var ze=Math.max(-Ce,0);xe+=ze,_e=Fe[z]+Fe[oe]}xe>0&&le&&Cn(-xe/pe,0,pe);var At=$[0],Lt=$[pe-1],hn,vn;_n(),hn<0&&En(-hn,.8),vn<0&&En(vn,.8),_n(),bn(hn,vn,1),bn(vn,hn,-1),_n(),hn<0&&$n(-hn),vn<0&&$n(vn);function _n(){hn=At.rect[z]-ae,vn=ie-Lt.rect[z]-Lt.rect[oe]}function bn(wn,Tn,xn){if(wn<0){var kn=Math.min(Tn,-wn);if(kn>0){Cn(kn*xn,0,pe);var An=kn+wn;An<0&&En(-An*xn,1)}else En(-wn*xn,1)}}function Cn(wn,Tn,xn){wn!==0&&($e=!0);for(var kn=Tn;kn<xn;kn++){var An=$[kn],On=An.rect;On[z]+=wn,An.label[z]+=wn}}function En(wn,Tn){for(var xn=[],kn=0,An=1;An<pe;An++){var On=$[An-1].rect,Mn=Math.max($[An].rect[z]-On[z]-On[oe],0);xn.push(Mn),kn+=Mn}if(kn){var Fn=Math.min(Math.abs(wn)/kn,Tn);if(wn>0)for(var An=0;An<pe-1;An++){var Dn=xn[An]*Fn;Cn(Dn,0,An+1)}else for(var An=pe-1;An>0;An--){var Dn=xn[An-1]*Fn;Cn(-Dn,An,pe)}}}function $n(wn){var Tn=wn<0?-1:1;wn=Math.abs(wn);for(var xn=Math.ceil(wn/(pe-1)),kn=0;kn<pe-1;kn++)if(Tn>0?Cn(xn,0,kn+1):Cn(-xn,pe-kn-1,pe),wn-=xn,wn<=0)return}return $e}function shiftLayoutOnY($,z,oe,ae){return shiftLayout($,"y","height",z,oe,ae)}function hideOverlap($){var z=[];$.sort(function(At,Lt){return Lt.priority-At.priority});var oe=new BoundingRect$1(0,0,0,0);function ae(At){if(!At.ignore){var Lt=At.ensureState("emphasis");Lt.ignore==null&&(Lt.ignore=!1)}At.ignore=!0}for(var ie=0;ie<$.length;ie++){var le=$[ie],pe=le.axisAligned,_e=le.localRect,Ce=le.transform,$e=le.label,xe=le.labelLine;oe.copy(le.rect),oe.width-=.1,oe.height-=.1,oe.x+=.05,oe.y+=.05;for(var Ie=le.obb,Ne=!1,Fe=0;Fe<z.length;Fe++){var ze=z[Fe];if(oe.intersect(ze.rect)){if(pe&&ze.axisAligned){Ne=!0;break}if(ze.obb||(ze.obb=new OrientedBoundingRect$1(ze.localRect,ze.transform)),Ie||(Ie=new OrientedBoundingRect$1(_e,Ce)),Ie.intersect(ze.obb)){Ne=!0;break}}}Ne?(ae($e),xe&&ae(xe)):($e.attr("ignore",le.defaultAttr.ignore),xe&&xe.attr("ignore",le.defaultAttr.labelGuideIgnore),z.push(le))}}const echarts=Object.freeze(Object.defineProperty({__proto__:null,Axis:Axis$1,ChartView:ChartView$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,List:SeriesData$1,Model:Model$1,PRIORITY,SeriesModel:SeriesModel$1,color,connect,dataTool,dependencies,disConnect,disconnect,dispose,env:env$1,extendChartView,extendComponentModel,extendComponentView,extendSeriesModel,format,getCoordinateSystemDimensions,getInstanceByDom,getInstanceById,getMap,graphic,helper,init,innerDrawElementOnCanvas:brushSingle,matrix,number,parseGeoJSON,parseGeoJson:parseGeoJSON,registerAction,registerCoordinateSystem,registerLayout,registerLoading,registerLocale,registerMap,registerPostInit,registerPostUpdate,registerPreprocessor,registerProcessor,registerTheme,registerTransform,registerUpdateLifecycle,registerVisual,setCanvasCreator,setPlatformAPI,throttle,time,use:use$1,util,vector,version,zrUtil:util$1,zrender},Symbol.toStringTag,{value:"Module"}));function createDom($,z,oe){var ae=platformApi.createCanvas(),ie=z.getWidth(),le=z.getHeight(),pe=ae.style;return pe&&(pe.position="absolute",pe.left="0",pe.top="0",pe.width=ie+"px",pe.height=le+"px",ae.setAttribute("data-zr-dom-id",$)),ae.width=ie*oe,ae.height=le*oe,ae}var Layer=function($){__extends(z,$);function z(oe,ae,ie){var le=$.call(this)||this;le.motionBlur=!1,le.lastFrameAlpha=.7,le.dpr=1,le.virtual=!1,le.config={},le.incremental=!1,le.zlevel=0,le.maxRepaintRectCount=5,le.__dirty=!0,le.__firstTimePaint=!0,le.__used=!1,le.__drawIndex=0,le.__startIndex=0,le.__endIndex=0,le.__prevStartIndex=null,le.__prevEndIndex=null;var pe;ie=ie||devicePixelRatio,typeof oe=="string"?pe=createDom(oe,ae,ie):isObject$3(oe)&&(pe=oe,oe=pe.id),le.id=oe,le.dom=pe;var _e=pe.style;return _e&&(disableUserSelect(pe),pe.onselectstart=function(){return!1},_e.padding="0",_e.margin="0",_e.borderWidth="0"),le.painter=ae,le.dpr=ie,le}return z.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},z.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},z.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},z.prototype.setUnpainted=function(){this.__firstTimePaint=!0},z.prototype.createBackBuffer=function(){var oe=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,oe),this.ctxBack=this.domBack.getContext("2d"),oe!==1&&this.ctxBack.scale(oe,oe)},z.prototype.createRepaintRects=function(oe,ae,ie,le){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var pe=[],_e=this.maxRepaintRectCount,Ce=!1,$e=new BoundingRect$1(0,0,0,0);function xe(vn){if(!(!vn.isFinite()||vn.isZero()))if(pe.length===0){var _n=new BoundingRect$1(0,0,0,0);_n.copy(vn),pe.push(_n)}else{for(var bn=!1,Cn=1/0,En=0,$n=0;$n<pe.length;++$n){var wn=pe[$n];if(wn.intersect(vn)){var Tn=new BoundingRect$1(0,0,0,0);Tn.copy(wn),Tn.union(vn),pe[$n]=Tn,bn=!0;break}else if(Ce){$e.copy(vn),$e.union(wn);var xn=vn.width*vn.height,kn=wn.width*wn.height,An=$e.width*$e.height,On=An-xn-kn;On<Cn&&(Cn=On,En=$n)}}if(Ce&&(pe[En].union(vn),bn=!0),!bn){var _n=new BoundingRect$1(0,0,0,0);_n.copy(vn),pe.push(_n)}Ce||(Ce=pe.length>=_e)}}for(var Ie=this.__startIndex;Ie<this.__endIndex;++Ie){var Ne=oe[Ie];if(Ne){var Fe=Ne.shouldBePainted(ie,le,!0,!0),ze=Ne.__isRendered&&(Ne.__dirty&REDRAW_BIT||!Fe)?Ne.getPrevPaintRect():null;ze&&xe(ze);var At=Fe&&(Ne.__dirty&REDRAW_BIT||!Ne.__isRendered)?Ne.getPaintRect():null;At&&xe(At)}}for(var Ie=this.__prevStartIndex;Ie<this.__prevEndIndex;++Ie){var Ne=ae[Ie],Fe=Ne.shouldBePainted(ie,le,!0,!0);if(Ne&&(!Fe||!Ne.__zr)&&Ne.__isRendered){var ze=Ne.getPrevPaintRect();ze&&xe(ze)}}var Lt;do{Lt=!1;for(var Ie=0;Ie<pe.length;){if(pe[Ie].isZero()){pe.splice(Ie,1);continue}for(var hn=Ie+1;hn<pe.length;)pe[Ie].intersect(pe[hn])?(Lt=!0,pe[Ie].union(pe[hn]),pe.splice(hn,1)):hn++;Ie++}}while(Lt);return this._paintRects=pe,pe},z.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},z.prototype.resize=function(oe,ae){var ie=this.dpr,le=this.dom,pe=le.style,_e=this.domBack;pe&&(pe.width=oe+"px",pe.height=ae+"px"),le.width=oe*ie,le.height=ae*ie,_e&&(_e.width=oe*ie,_e.height=ae*ie,ie!==1&&this.ctxBack.scale(ie,ie))},z.prototype.clear=function(oe,ae,ie){var le=this.dom,pe=this.ctx,_e=le.width,Ce=le.height;ae=ae||this.clearColor;var $e=this.motionBlur&&!oe,xe=this.lastFrameAlpha,Ie=this.dpr,Ne=this;$e&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(le,0,0,_e/Ie,Ce/Ie));var Fe=this.domBack;function ze(At,Lt,hn,vn){if(pe.clearRect(At,Lt,hn,vn),ae&&ae!=="transparent"){var _n=void 0;if(isGradientObject(ae)){var bn=ae.global||ae.__width===hn&&ae.__height===vn;_n=bn&&ae.__canvasGradient||getCanvasGradient(pe,ae,{x:0,y:0,width:hn,height:vn}),ae.__canvasGradient=_n,ae.__width=hn,ae.__height=vn}else isImagePatternObject(ae)&&(ae.scaleX=ae.scaleX||Ie,ae.scaleY=ae.scaleY||Ie,_n=createCanvasPattern(pe,ae,{dirty:function(){Ne.setUnpainted(),Ne.__painter.refresh()}}));pe.save(),pe.fillStyle=_n||ae,pe.fillRect(At,Lt,hn,vn),pe.restore()}$e&&(pe.save(),pe.globalAlpha=xe,pe.drawImage(Fe,At,Lt,hn,vn),pe.restore())}!ie||$e?ze(0,0,_e,Ce):ie.length&&each$c(ie,function(At){ze(At.x*Ie,At.y*Ie,At.width*Ie,At.height*Ie)})},z}(Eventful$1);const Layer$1=Layer;var HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid($){return $?$.__builtin__?!0:!(typeof $.resize!="function"||typeof $.refresh!="function"):!1}function createRoot($,z){var oe=document.createElement("div");return oe.style.cssText=["position:relative","width:"+$+"px","height:"+z+"px","padding:0","margin:0","border-width:0"].join(";")+";",oe}var CanvasPainter=function(){function $(z,oe,ae,ie){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var le=!z.nodeName||z.nodeName.toUpperCase()==="CANVAS";this._opts=ae=extend({},ae||{}),this.dpr=ae.devicePixelRatio||devicePixelRatio,this._singleCanvas=le,this.root=z;var pe=z.style;pe&&(disableUserSelect(z),z.innerHTML=""),this.storage=oe;var _e=this._zlevelList;this._prevDisplayList=[];var Ce=this._layers;if(le){var xe=z,Ie=xe.width,Ne=xe.height;ae.width!=null&&(Ie=ae.width),ae.height!=null&&(Ne=ae.height),this.dpr=ae.devicePixelRatio||1,xe.width=Ie*this.dpr,xe.height=Ne*this.dpr,this._width=Ie,this._height=Ne;var Fe=new Layer$1(xe,this,this.dpr);Fe.__builtin__=!0,Fe.initContext(),Ce[CANVAS_ZLEVEL]=Fe,Fe.zlevel=CANVAS_ZLEVEL,_e.push(CANVAS_ZLEVEL),this._domRoot=z}else{this._width=getSize$1(z,0,ae),this._height=getSize$1(z,1,ae);var $e=this._domRoot=createRoot(this._width,this._height);z.appendChild($e)}}return $.prototype.getType=function(){return"canvas"},$.prototype.isSingleCanvas=function(){return this._singleCanvas},$.prototype.getViewportRoot=function(){return this._domRoot},$.prototype.getViewportRootOffset=function(){var z=this.getViewportRoot();if(z)return{offsetLeft:z.offsetLeft||0,offsetTop:z.offsetTop||0}},$.prototype.refresh=function(z){var oe=this.storage.getDisplayList(!0),ae=this._prevDisplayList,ie=this._zlevelList;this._redrawId=Math.random(),this._paintList(oe,ae,z,this._redrawId);for(var le=0;le<ie.length;le++){var pe=ie[le],_e=this._layers[pe];if(!_e.__builtin__&&_e.refresh){var Ce=le===0?this._backgroundColor:null;_e.refresh(Ce)}}return this._opts.useDirtyRect&&(this._prevDisplayList=oe.slice()),this},$.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},$.prototype._paintHoverList=function(z){var oe=z.length,ae=this._hoverlayer;if(ae&&ae.clear(),!!oe){for(var ie={inHover:!0,viewWidth:this._width,viewHeight:this._height},le,pe=0;pe<oe;pe++){var _e=z[pe];_e.__inHover&&(ae||(ae=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),le||(le=ae.ctx,le.save()),brush(le,_e,ie,pe===oe-1))}le&&le.restore()}},$.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},$.prototype.paintOne=function(z,oe){brushSingle(z,oe)},$.prototype._paintList=function(z,oe,ae,ie){if(this._redrawId===ie){ae=ae||!1,this._updateLayerStatus(z);var le=this._doPaintList(z,oe,ae),pe=le.finished,_e=le.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),_e&&this._paintHoverList(z),pe)this.eachLayer(function($e){$e.afterBrush&&$e.afterBrush()});else{var Ce=this;requestAnimationFrame$2(function(){Ce._paintList(z,oe,ae,ie)})}}},$.prototype._compositeManually=function(){var z=this.getLayer(CANVAS_ZLEVEL).ctx,oe=this._domRoot.width,ae=this._domRoot.height;z.clearRect(0,0,oe,ae),this.eachBuiltinLayer(function(ie){ie.virtual&&z.drawImage(ie.dom,0,0,oe,ae)})},$.prototype._doPaintList=function(z,oe,ae){for(var ie=this,le=[],pe=this._opts.useDirtyRect,_e=0;_e<this._zlevelList.length;_e++){var Ce=this._zlevelList[_e],$e=this._layers[Ce];$e.__builtin__&&$e!==this._hoverlayer&&($e.__dirty||ae)&&le.push($e)}for(var xe=!0,Ie=!1,Ne=function(At){var Lt=le[At],hn=Lt.ctx,vn=pe&&Lt.createRepaintRects(z,oe,Fe._width,Fe._height),_n=ae?Lt.__startIndex:Lt.__drawIndex,bn=!ae&&Lt.incremental&&Date.now,Cn=bn&&Date.now(),En=Lt.zlevel===Fe._zlevelList[0]?Fe._backgroundColor:null;if(Lt.__startIndex===Lt.__endIndex)Lt.clear(!1,En,vn);else if(_n===Lt.__startIndex){var $n=z[_n];(!$n.incremental||!$n.notClear||ae)&&Lt.clear(!1,En,vn)}_n===-1&&(console.error("For some unknown reason. drawIndex is -1"),_n=Lt.__startIndex);var wn,Tn=function(On){var Mn={inHover:!1,allClipped:!1,prevEl:null,viewWidth:ie._width,viewHeight:ie._height};for(wn=_n;wn<Lt.__endIndex;wn++){var Fn=z[wn];if(Fn.__inHover&&(Ie=!0),ie._doPaintEl(Fn,Lt,pe,On,Mn,wn===Lt.__endIndex-1),bn){var Dn=Date.now()-Cn;if(Dn>15)break}}Mn.prevElClipPaths&&hn.restore()};if(vn)if(vn.length===0)wn=Lt.__endIndex;else for(var xn=Fe.dpr,kn=0;kn<vn.length;++kn){var An=vn[kn];hn.save(),hn.beginPath(),hn.rect(An.x*xn,An.y*xn,An.width*xn,An.height*xn),hn.clip(),Tn(An),hn.restore()}else hn.save(),Tn(),hn.restore();Lt.__drawIndex=wn,Lt.__drawIndex<Lt.__endIndex&&(xe=!1)},Fe=this,ze=0;ze<le.length;ze++)Ne(ze);return env$1.wxa&&each$c(this._layers,function(At){At&&At.ctx&&At.ctx.draw&&At.ctx.draw()}),{finished:xe,needsRefreshHover:Ie}},$.prototype._doPaintEl=function(z,oe,ae,ie,le,pe){var _e=oe.ctx;if(ae){var Ce=z.getPaintRect();(!ie||Ce&&Ce.intersect(ie))&&(brush(_e,z,le,pe),z.setPrevPaintRect(Ce))}else brush(_e,z,le,pe)},$.prototype.getLayer=function(z,oe){this._singleCanvas&&!this._needsManuallyCompositing&&(z=CANVAS_ZLEVEL);var ae=this._layers[z];return ae||(ae=new Layer$1("zr_"+z,this,this.dpr),ae.zlevel=z,ae.__builtin__=!0,this._layerConfig[z]?merge(ae,this._layerConfig[z],!0):this._layerConfig[z-EL_AFTER_INCREMENTAL_INC]&&merge(ae,this._layerConfig[z-EL_AFTER_INCREMENTAL_INC],!0),oe&&(ae.virtual=oe),this.insertLayer(z,ae),ae.initContext()),ae},$.prototype.insertLayer=function(z,oe){var ae=this._layers,ie=this._zlevelList,le=ie.length,pe=this._domRoot,_e=null,Ce=-1;if(!ae[z]&&isLayerValid(oe)){if(le>0&&z>ie[0]){for(Ce=0;Ce<le-1&&!(ie[Ce]<z&&ie[Ce+1]>z);Ce++);_e=ae[ie[Ce]]}if(ie.splice(Ce+1,0,z),ae[z]=oe,!oe.virtual)if(_e){var $e=_e.dom;$e.nextSibling?pe.insertBefore(oe.dom,$e.nextSibling):pe.appendChild(oe.dom)}else pe.firstChild?pe.insertBefore(oe.dom,pe.firstChild):pe.appendChild(oe.dom);oe.__painter=this}},$.prototype.eachLayer=function(z,oe){for(var ae=this._zlevelList,ie=0;ie<ae.length;ie++){var le=ae[ie];z.call(oe,this._layers[le],le)}},$.prototype.eachBuiltinLayer=function(z,oe){for(var ae=this._zlevelList,ie=0;ie<ae.length;ie++){var le=ae[ie],pe=this._layers[le];pe.__builtin__&&z.call(oe,pe,le)}},$.prototype.eachOtherLayer=function(z,oe){for(var ae=this._zlevelList,ie=0;ie<ae.length;ie++){var le=ae[ie],pe=this._layers[le];pe.__builtin__||z.call(oe,pe,le)}},$.prototype.getLayers=function(){return this._layers},$.prototype._updateLayerStatus=function(z){this.eachBuiltinLayer(function(Ie,Ne){Ie.__dirty=Ie.__used=!1});function oe(Ie){le&&(le.__endIndex!==Ie&&(le.__dirty=!0),le.__endIndex=Ie)}if(this._singleCanvas)for(var ae=1;ae<z.length;ae++){var ie=z[ae];if(ie.zlevel!==z[ae-1].zlevel||ie.incremental){this._needsManuallyCompositing=!0;break}}var le=null,pe=0,_e,Ce;for(Ce=0;Ce<z.length;Ce++){var ie=z[Ce],$e=ie.zlevel,xe=void 0;_e!==$e&&(_e=$e,pe=0),ie.incremental?(xe=this.getLayer($e+INCREMENTAL_INC,this._needsManuallyCompositing),xe.incremental=!0,pe=1):xe=this.getLayer($e+(pe>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),xe.__builtin__||logError("ZLevel "+$e+" has been used by unkown layer "+xe.id),xe!==le&&(xe.__used=!0,xe.__startIndex!==Ce&&(xe.__dirty=!0),xe.__startIndex=Ce,xe.incremental?xe.__drawIndex=-1:xe.__drawIndex=Ce,oe(Ce),le=xe),ie.__dirty&REDRAW_BIT&&!ie.__inHover&&(xe.__dirty=!0,xe.incremental&&xe.__drawIndex<0&&(xe.__drawIndex=Ce))}oe(Ce),this.eachBuiltinLayer(function(Ie,Ne){!Ie.__used&&Ie.getElementCount()>0&&(Ie.__dirty=!0,Ie.__startIndex=Ie.__endIndex=Ie.__drawIndex=0),Ie.__dirty&&Ie.__drawIndex<0&&(Ie.__drawIndex=Ie.__startIndex)})},$.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},$.prototype._clearLayer=function(z){z.clear()},$.prototype.setBackgroundColor=function(z){this._backgroundColor=z,each$c(this._layers,function(oe){oe.setUnpainted()})},$.prototype.configLayer=function(z,oe){if(oe){var ae=this._layerConfig;ae[z]?merge(ae[z],oe,!0):ae[z]=oe;for(var ie=0;ie<this._zlevelList.length;ie++){var le=this._zlevelList[ie];if(le===z||le===z+EL_AFTER_INCREMENTAL_INC){var pe=this._layers[le];merge(pe,ae[z],!0)}}}},$.prototype.delLayer=function(z){var oe=this._layers,ae=this._zlevelList,ie=oe[z];ie&&(ie.dom.parentNode.removeChild(ie.dom),delete oe[z],ae.splice(indexOf(ae,z),1))},$.prototype.resize=function(z,oe){if(this._domRoot.style){var ae=this._domRoot;ae.style.display="none";var ie=this._opts,le=this.root;if(z!=null&&(ie.width=z),oe!=null&&(ie.height=oe),z=getSize$1(le,0,ie),oe=getSize$1(le,1,ie),ae.style.display="",this._width!==z||oe!==this._height){ae.style.width=z+"px",ae.style.height=oe+"px";for(var pe in this._layers)this._layers.hasOwnProperty(pe)&&this._layers[pe].resize(z,oe);this.refresh(!0)}this._width=z,this._height=oe}else{if(z==null||oe==null)return;this._width=z,this._height=oe,this.getLayer(CANVAS_ZLEVEL).resize(z,oe)}return this},$.prototype.clearLayer=function(z){var oe=this._layers[z];oe&&oe.clear()},$.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},$.prototype.getRenderedCanvas=function(z){if(z=z||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var oe=new Layer$1("image",this,z.pixelRatio||this.dpr);oe.initContext(),oe.clear(!1,z.backgroundColor||this._backgroundColor);var ae=oe.ctx;if(z.pixelRatio<=this.dpr){this.refresh();var ie=oe.dom.width,le=oe.dom.height;this.eachLayer(function(Ie){Ie.__builtin__?ae.drawImage(Ie.dom,0,0,ie,le):Ie.renderToCanvas&&(ae.save(),Ie.renderToCanvas(ae),ae.restore())})}else for(var pe={inHover:!1,viewWidth:this._width,viewHeight:this._height},_e=this.storage.getDisplayList(!0),Ce=0,$e=_e.length;Ce<$e;Ce++){var xe=_e[Ce];brush(ae,xe,pe,Ce===$e-1)}return oe.dom},$.prototype.getWidth=function(){return this._width},$.prototype.getHeight=function(){return this._height},$}();const CanvasPainter$1=CanvasPainter;function install$k($){$.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.hasSymbolVisual=!0,oe}return z.prototype.getInitialData=function(oe){return createSeriesData(null,this,{useEncodeDefaulter:!0})},z.prototype.getLegendIcon=function(oe){var ae=new Group$3,ie=createSymbol("line",0,oe.itemHeight/2,oe.itemWidth,0,oe.lineStyle.stroke,!1);ae.add(ie),ie.setStyle(oe.lineStyle);var le=this.getData().getVisual("symbol"),pe=this.getData().getVisual("symbolRotate"),_e=le==="none"?"circle":le,Ce=oe.itemHeight*.8,$e=createSymbol(_e,(oe.itemWidth-Ce)/2,(oe.itemHeight-Ce)/2,Ce,Ce,oe.itemStyle.fill);ae.add($e),$e.setStyle(oe.itemStyle);var xe=oe.iconRotate==="inherit"?pe:oe.iconRotate||0;return $e.rotation=xe*Math.PI/180,$e.setOrigin([oe.itemWidth/2,oe.itemHeight/2]),_e.indexOf("empty")>-1&&($e.style.stroke=$e.style.fill,$e.style.fill="#fff",$e.style.lineWidth=2),ae},z.type="series.line",z.dependencies=["grid","polar"],z.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},z}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel($,z){var oe=$.mapDimensionsAll("defaultedLabel"),ae=oe.length;if(ae===1){var ie=retrieveRawValue($,z,oe[0]);return ie!=null?ie+"":null}else if(ae){for(var le=[],pe=0;pe<oe.length;pe++)le.push(retrieveRawValue($,z,oe[pe]));return le.join(" ")}}function getDefaultInterpolatedLabel($,z){var oe=$.mapDimensionsAll("defaultedLabel");if(!isArray$1(z))return z+"";for(var ae=[],ie=0;ie<oe.length;ie++){var le=$.getDimensionIndex(oe[ie]);le>=0&&ae.push(z[le])}return ae.join(" ")}var Symbol$1=function($){__extends(z,$);function z(oe,ae,ie,le){var pe=$.call(this)||this;return pe.updateData(oe,ae,ie,le),pe}return z.prototype._createSymbol=function(oe,ae,ie,le,pe){this.removeAll();var _e=createSymbol(oe,-1,-1,2,2,null,pe);_e.attr({z2:100,culling:!0,scaleX:le[0]/2,scaleY:le[1]/2}),_e.drift=driftSymbol,this._symbolType=oe,this.add(_e)},z.prototype.stopSymbolAnimation=function(oe){this.childAt(0).stopAnimation(null,oe)},z.prototype.getSymbolType=function(){return this._symbolType},z.prototype.getSymbolPath=function(){return this.childAt(0)},z.prototype.highlight=function(){enterEmphasis(this.childAt(0))},z.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},z.prototype.setZ=function(oe,ae){var ie=this.childAt(0);ie.zlevel=oe,ie.z=ae},z.prototype.setDraggable=function(oe,ae){var ie=this.childAt(0);ie.draggable=oe,ie.cursor=!ae&&oe?"move":ie.cursor},z.prototype.updateData=function(oe,ae,ie,le){this.silent=!1;var pe=oe.getItemVisual(ae,"symbol")||"circle",_e=oe.hostModel,Ce=z.getSymbolSize(oe,ae),$e=pe!==this._symbolType,xe=le&&le.disableAnimation;if($e){var Ie=oe.getItemVisual(ae,"symbolKeepAspect");this._createSymbol(pe,oe,ae,Ce,Ie)}else{var Ne=this.childAt(0);Ne.silent=!1;var Fe={scaleX:Ce[0]/2,scaleY:Ce[1]/2};xe?Ne.attr(Fe):updateProps$1(Ne,Fe,_e,ae),saveOldStyle(Ne)}if(this._updateCommon(oe,ae,Ce,ie,le),$e){var Ne=this.childAt(0);if(!xe){var Fe={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:Ne.style.opacity}};Ne.scaleX=Ne.scaleY=0,Ne.style.opacity=0,initProps(Ne,Fe,_e,ae)}}xe&&this.childAt(0).stopAnimation("leave")},z.prototype._updateCommon=function(oe,ae,ie,le,pe){var _e=this.childAt(0),Ce=oe.hostModel,$e,xe,Ie,Ne,Fe,ze,At,Lt,hn;if(le&&($e=le.emphasisItemStyle,xe=le.blurItemStyle,Ie=le.selectItemStyle,Ne=le.focus,Fe=le.blurScope,At=le.labelStatesModels,Lt=le.hoverScale,hn=le.cursorStyle,ze=le.emphasisDisabled),!le||oe.hasItemOption){var vn=le&&le.itemModel?le.itemModel:oe.getItemModel(ae),_n=vn.getModel("emphasis");$e=_n.getModel("itemStyle").getItemStyle(),Ie=vn.getModel(["select","itemStyle"]).getItemStyle(),xe=vn.getModel(["blur","itemStyle"]).getItemStyle(),Ne=_n.get("focus"),Fe=_n.get("blurScope"),ze=_n.get("disabled"),At=getLabelStatesModels(vn),Lt=_n.getShallow("scale"),hn=vn.getShallow("cursor")}var bn=oe.getItemVisual(ae,"symbolRotate");_e.attr("rotation",(bn||0)*Math.PI/180||0);var Cn=normalizeSymbolOffset(oe.getItemVisual(ae,"symbolOffset"),ie);Cn&&(_e.x=Cn[0],_e.y=Cn[1]),hn&&_e.attr("cursor",hn);var En=oe.getItemVisual(ae,"style"),$n=En.fill;if(_e instanceof ZRImage$1){var wn=_e.style;_e.useStyle(extend({image:wn.image,x:wn.x,y:wn.y,width:wn.width,height:wn.height},En))}else _e.__isEmptyBrush?_e.useStyle(extend({},En)):_e.useStyle(En),_e.style.decal=null,_e.setColor($n,pe&&pe.symbolInnerColor),_e.style.strokeNoScale=!0;var Tn=oe.getItemVisual(ae,"liftZ"),xn=this._z2;Tn!=null?xn==null&&(this._z2=_e.z2,_e.z2+=Tn):xn!=null&&(_e.z2=xn,this._z2=null);var kn=pe&&pe.useNameLabel;setLabelStyle(_e,At,{labelFetcher:Ce,labelDataIndex:ae,defaultText:An,inheritColor:$n,defaultOpacity:En.opacity});function An(Fn){return kn?oe.getName(Fn):getDefaultLabel(oe,Fn)}this._sizeX=ie[0]/2,this._sizeY=ie[1]/2;var On=_e.ensureState("emphasis");On.style=$e,_e.ensureState("select").style=Ie,_e.ensureState("blur").style=xe;var Mn=Lt==null||Lt===!0?Math.max(1.1,3/this._sizeY):isFinite(Lt)&&Lt>0?+Lt:1;On.scaleX=this._sizeX*Mn,On.scaleY=this._sizeY*Mn,this.setSymbolScale(1),toggleHoverEmphasis(this,Ne,Fe,ze)},z.prototype.setSymbolScale=function(oe){this.scaleX=this.scaleY=oe},z.prototype.fadeOut=function(oe,ae,ie){var le=this.childAt(0),pe=getECData(this).dataIndex,_e=ie&&ie.animation;if(this.silent=le.silent=!0,ie&&ie.fadeLabel){var Ce=le.getTextContent();Ce&&removeElement(Ce,{style:{opacity:0}},ae,{dataIndex:pe,removeOpt:_e,cb:function(){le.removeTextContent()}})}else le.removeTextContent();removeElement(le,{style:{opacity:0},scaleX:0,scaleY:0},ae,{dataIndex:pe,cb:oe,removeOpt:_e})},z.getSymbolSize=function(oe,ae){return normalizeSymbolSize(oe.getItemVisual(ae,"symbolSize"))},z}(Group$3);function driftSymbol($,z){this.parent.drift($,z)}const SymbolClz=Symbol$1;function symbolNeedsDraw($,z,oe,ae){return z&&!isNaN(z[0])&&!isNaN(z[1])&&!(ae.isIgnore&&ae.isIgnore(oe))&&!(ae.clipShape&&!ae.clipShape.contain(z[0],z[1]))&&$.getItemVisual(oe,"symbol")!=="none"}function normalizeUpdateOpt($){return $!=null&&!isObject$3($)&&($={isIgnore:$}),$||{}}function makeSeriesScope($){var z=$.hostModel,oe=z.getModel("emphasis");return{emphasisItemStyle:oe.getModel("itemStyle").getItemStyle(),blurItemStyle:z.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:z.getModel(["select","itemStyle"]).getItemStyle(),focus:oe.get("focus"),blurScope:oe.get("blurScope"),emphasisDisabled:oe.get("disabled"),hoverScale:oe.get("scale"),labelStatesModels:getLabelStatesModels(z),cursorStyle:z.get("cursor")}}var SymbolDraw=function(){function $(z){this.group=new Group$3,this._SymbolCtor=z||SymbolClz}return $.prototype.updateData=function(z,oe){this._progressiveEls=null,oe=normalizeUpdateOpt(oe);var ae=this.group,ie=z.hostModel,le=this._data,pe=this._SymbolCtor,_e=oe.disableAnimation,Ce=makeSeriesScope(z),$e={disableAnimation:_e},xe=oe.getSymbolPoint||function(Ie){return z.getItemLayout(Ie)};le||ae.removeAll(),z.diff(le).add(function(Ie){var Ne=xe(Ie);if(symbolNeedsDraw(z,Ne,Ie,oe)){var Fe=new pe(z,Ie,Ce,$e);Fe.setPosition(Ne),z.setItemGraphicEl(Ie,Fe),ae.add(Fe)}}).update(function(Ie,Ne){var Fe=le.getItemGraphicEl(Ne),ze=xe(Ie);if(!symbolNeedsDraw(z,ze,Ie,oe)){ae.remove(Fe);return}var At=z.getItemVisual(Ie,"symbol")||"circle",Lt=Fe&&Fe.getSymbolType&&Fe.getSymbolType();if(!Fe||Lt&&Lt!==At)ae.remove(Fe),Fe=new pe(z,Ie,Ce,$e),Fe.setPosition(ze);else{Fe.updateData(z,Ie,Ce,$e);var hn={x:ze[0],y:ze[1]};_e?Fe.attr(hn):updateProps$1(Fe,hn,ie)}ae.add(Fe),z.setItemGraphicEl(Ie,Fe)}).remove(function(Ie){var Ne=le.getItemGraphicEl(Ie);Ne&&Ne.fadeOut(function(){ae.remove(Ne)},ie)}).execute(),this._getSymbolPoint=xe,this._data=z},$.prototype.updateLayout=function(){var z=this,oe=this._data;oe&&oe.eachItemGraphicEl(function(ae,ie){var le=z._getSymbolPoint(ie);ae.setPosition(le),ae.markRedraw()})},$.prototype.incrementalPrepareUpdate=function(z){this._seriesScope=makeSeriesScope(z),this._data=null,this.group.removeAll()},$.prototype.incrementalUpdate=function(z,oe,ae){this._progressiveEls=[],ae=normalizeUpdateOpt(ae);function ie(Ce){Ce.isGroup||(Ce.incremental=!0,Ce.ensureState("emphasis").hoverLayer=!0)}for(var le=z.start;le<z.end;le++){var pe=oe.getItemLayout(le);if(symbolNeedsDraw(oe,pe,le,ae)){var _e=new this._SymbolCtor(oe,le,this._seriesScope);_e.traverse(ie),_e.setPosition(pe),this.group.add(_e),oe.setItemGraphicEl(le,_e),this._progressiveEls.push(_e)}}},$.prototype.eachRendered=function(z){traverseElements(this._progressiveEls||this.group,z)},$.prototype.remove=function(z){var oe=this.group,ae=this._data;ae&&z?ae.eachItemGraphicEl(function(ie){ie.fadeOut(function(){oe.remove(ie)},ae.hostModel)}):oe.removeAll()},$}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo($,z,oe){var ae=$.getBaseAxis(),ie=$.getOtherAxis(ae),le=getValueStart(ie,oe),pe=ae.dim,_e=ie.dim,Ce=z.mapDimension(_e),$e=z.mapDimension(pe),xe=_e==="x"||_e==="radius"?1:0,Ie=map$2($.dimensions,function(ze){return z.mapDimension(ze)}),Ne=!1,Fe=z.getCalculationInfo("stackResultDimension");return isDimensionStacked(z,Ie[0])&&(Ne=!0,Ie[0]=Fe),isDimensionStacked(z,Ie[1])&&(Ne=!0,Ie[1]=Fe),{dataDimsForPoint:Ie,valueStart:le,valueAxisDim:_e,baseAxisDim:pe,stacked:!!Ne,valueDim:Ce,baseDim:$e,baseDataOffset:xe,stackedOverDimension:z.getCalculationInfo("stackedOverDimension")}}function getValueStart($,z){var oe=0,ae=$.scale.getExtent();return z==="start"?oe=ae[0]:z==="end"?oe=ae[1]:isNumber(z)&&!isNaN(z)?oe=z:ae[0]>0?oe=ae[0]:ae[1]<0&&(oe=ae[1]),oe}function getStackedOnPoint($,z,oe,ae){var ie=NaN;$.stacked&&(ie=oe.get(oe.getCalculationInfo("stackedOverDimension"),ae)),isNaN(ie)&&(ie=$.valueStart);var le=$.baseDataOffset,pe=[];return pe[le]=oe.get($.baseDim,ae),pe[1-le]=ie,z.dataToPoint(pe)}function diffData($,z){var oe=[];return z.diff($).add(function(ae){oe.push({cmd:"+",idx:ae})}).update(function(ae,ie){oe.push({cmd:"=",idx:ie,idx1:ae})}).remove(function(ae){oe.push({cmd:"-",idx:ae})}).execute(),oe}function lineAnimationDiff($,z,oe,ae,ie,le,pe,_e){for(var Ce=diffData($,z),$e=[],xe=[],Ie=[],Ne=[],Fe=[],ze=[],At=[],Lt=prepareDataCoordInfo(ie,z,pe),hn=$.getLayout("points")||[],vn=z.getLayout("points")||[],_n=0;_n<Ce.length;_n++){var bn=Ce[_n],Cn=!0,En=void 0,$n=void 0;switch(bn.cmd){case"=":En=bn.idx*2,$n=bn.idx1*2;var wn=hn[En],Tn=hn[En+1],xn=vn[$n],kn=vn[$n+1];(isNaN(wn)||isNaN(Tn))&&(wn=xn,Tn=kn),$e.push(wn,Tn),xe.push(xn,kn),Ie.push(oe[En],oe[En+1]),Ne.push(ae[$n],ae[$n+1]),At.push(z.getRawIndex(bn.idx1));break;case"+":var An=bn.idx,On=Lt.dataDimsForPoint,Mn=ie.dataToPoint([z.get(On[0],An),z.get(On[1],An)]);$n=An*2,$e.push(Mn[0],Mn[1]),xe.push(vn[$n],vn[$n+1]);var Fn=getStackedOnPoint(Lt,ie,z,An);Ie.push(Fn[0],Fn[1]),Ne.push(ae[$n],ae[$n+1]),At.push(z.getRawIndex(An));break;case"-":Cn=!1}Cn&&(Fe.push(bn),ze.push(ze.length))}ze.sort(function(_r,ir){return At[_r]-At[ir]});for(var Dn=$e.length,Nn=createFloat32Array(Dn),Vn=createFloat32Array(Dn),Bn=createFloat32Array(Dn),zn=createFloat32Array(Dn),Xn=[],_n=0;_n<ze.length;_n++){var Un=ze[_n],Jn=_n*2,lr=Un*2;Nn[Jn]=$e[lr],Nn[Jn+1]=$e[lr+1],Vn[Jn]=xe[lr],Vn[Jn+1]=xe[lr+1],Bn[Jn]=Ie[lr],Bn[Jn+1]=Ie[lr+1],zn[Jn]=Ne[lr],zn[Jn+1]=Ne[lr+1],Xn[_n]=Fe[Un]}return{current:Nn,next:Vn,stackedOnCurrent:Bn,stackedOnNext:zn,status:Xn}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1($,z){return isNaN($)||isNaN(z)}function drawSegment($,z,oe,ae,ie,le,pe,_e,Ce){for(var $e,xe,Ie,Ne,Fe,ze,At=oe,Lt=0;Lt<ae;Lt++){var hn=z[At*2],vn=z[At*2+1];if(At>=ie||At<0)break;if(isPointNull$1(hn,vn)){if(Ce){At+=le;continue}break}if(At===oe)$[le>0?"moveTo":"lineTo"](hn,vn),Ie=hn,Ne=vn;else{var _n=hn-$e,bn=vn-xe;if(_n*_n+bn*bn<.5){At+=le;continue}if(pe>0){for(var Cn=At+le,En=z[Cn*2],$n=z[Cn*2+1];En===hn&&$n===vn&&Lt<ae;)Lt++,Cn+=le,At+=le,En=z[Cn*2],$n=z[Cn*2+1],hn=z[At*2],vn=z[At*2+1],_n=hn-$e,bn=vn-xe;var wn=Lt+1;if(Ce)for(;isPointNull$1(En,$n)&&wn<ae;)wn++,Cn+=le,En=z[Cn*2],$n=z[Cn*2+1];var Tn=.5,xn=0,kn=0,An=void 0,On=void 0;if(wn>=ae||isPointNull$1(En,$n))Fe=hn,ze=vn;else{xn=En-$e,kn=$n-xe;var Mn=hn-$e,Fn=En-hn,Dn=vn-xe,Nn=$n-vn,Vn=void 0,Bn=void 0;if(_e==="x"){Vn=Math.abs(Mn),Bn=Math.abs(Fn);var zn=xn>0?1:-1;Fe=hn-zn*Vn*pe,ze=vn,An=hn+zn*Bn*pe,On=vn}else if(_e==="y"){Vn=Math.abs(Dn),Bn=Math.abs(Nn);var Xn=kn>0?1:-1;Fe=hn,ze=vn-Xn*Vn*pe,An=hn,On=vn+Xn*Bn*pe}else Vn=Math.sqrt(Mn*Mn+Dn*Dn),Bn=Math.sqrt(Fn*Fn+Nn*Nn),Tn=Bn/(Bn+Vn),Fe=hn-xn*pe*(1-Tn),ze=vn-kn*pe*(1-Tn),An=hn+xn*pe*Tn,On=vn+kn*pe*Tn,An=mathMin$3(An,mathMax$3(En,hn)),On=mathMin$3(On,mathMax$3($n,vn)),An=mathMax$3(An,mathMin$3(En,hn)),On=mathMax$3(On,mathMin$3($n,vn)),xn=An-hn,kn=On-vn,Fe=hn-xn*Vn/Bn,ze=vn-kn*Vn/Bn,Fe=mathMin$3(Fe,mathMax$3($e,hn)),ze=mathMin$3(ze,mathMax$3(xe,vn)),Fe=mathMax$3(Fe,mathMin$3($e,hn)),ze=mathMax$3(ze,mathMin$3(xe,vn)),xn=hn-Fe,kn=vn-ze,An=hn+xn*Bn/Vn,On=vn+kn*Bn/Vn}$.bezierCurveTo(Ie,Ne,Fe,ze,hn,vn),Ie=An,Ne=On}else $.lineTo(hn,vn)}$e=hn,xe=vn,At+=le}return Lt}var ECPolylineShape=function(){function $(){this.smooth=0,this.smoothConstraint=!0}return $}(),ECPolyline=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="ec-polyline",ae}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new ECPolylineShape},z.prototype.buildPath=function(oe,ae){var ie=ae.points,le=0,pe=ie.length/2;if(ae.connectNulls){for(;pe>0&&isPointNull$1(ie[pe*2-2],ie[pe*2-1]);pe--);for(;le<pe&&isPointNull$1(ie[le*2],ie[le*2+1]);le++);}for(;le<pe;)le+=drawSegment(oe,ie,le,pe,pe,1,ae.smooth,ae.smoothMonotone,ae.connectNulls)+1},z.prototype.getPointOn=function(oe,ae){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var ie=this.path,le=ie.data,pe=PathProxy$1.CMD,_e,Ce,$e=ae==="x",xe=[],Ie=0;Ie<le.length;){var Ne=le[Ie++],Fe=void 0,ze=void 0,At=void 0,Lt=void 0,hn=void 0,vn=void 0,_n=void 0;switch(Ne){case pe.M:_e=le[Ie++],Ce=le[Ie++];break;case pe.L:if(Fe=le[Ie++],ze=le[Ie++],_n=$e?(oe-_e)/(Fe-_e):(oe-Ce)/(ze-Ce),_n<=1&&_n>=0){var bn=$e?(ze-Ce)*_n+Ce:(Fe-_e)*_n+_e;return $e?[oe,bn]:[bn,oe]}_e=Fe,Ce=ze;break;case pe.C:Fe=le[Ie++],ze=le[Ie++],At=le[Ie++],Lt=le[Ie++],hn=le[Ie++],vn=le[Ie++];var Cn=$e?cubicRootAt(_e,Fe,At,hn,oe,xe):cubicRootAt(Ce,ze,Lt,vn,oe,xe);if(Cn>0)for(var En=0;En<Cn;En++){var $n=xe[En];if($n<=1&&$n>=0){var bn=$e?cubicAt(Ce,ze,Lt,vn,$n):cubicAt(_e,Fe,At,hn,$n);return $e?[oe,bn]:[bn,oe]}}_e=hn,Ce=vn;break}}},z}(Path$1),ECPolygonShape=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z}(ECPolylineShape),ECPolygon=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="ec-polygon",ae}return z.prototype.getDefaultShape=function(){return new ECPolygonShape},z.prototype.buildPath=function(oe,ae){var ie=ae.points,le=ae.stackedOnPoints,pe=0,_e=ie.length/2,Ce=ae.smoothMonotone;if(ae.connectNulls){for(;_e>0&&isPointNull$1(ie[_e*2-2],ie[_e*2-1]);_e--);for(;pe<_e&&isPointNull$1(ie[pe*2],ie[pe*2+1]);pe++);}for(;pe<_e;){var $e=drawSegment(oe,ie,pe,_e,_e,1,ae.smooth,Ce,ae.connectNulls);drawSegment(oe,le,pe+$e-1,$e,_e,-1,ae.stackedOnSmooth,Ce,ae.connectNulls),pe+=$e+1,oe.closePath()}},z}(Path$1);function createGridClipPath($,z,oe,ae,ie){var le=$.getArea(),pe=le.x,_e=le.y,Ce=le.width,$e=le.height,xe=oe.get(["lineStyle","width"])||2;pe-=xe/2,_e-=xe/2,Ce+=xe,$e+=xe,pe=Math.floor(pe),Ce=Math.round(Ce);var Ie=new Rect$2({shape:{x:pe,y:_e,width:Ce,height:$e}});if(z){var Ne=$.getBaseAxis(),Fe=Ne.isHorizontal(),ze=Ne.inverse;Fe?(ze&&(Ie.shape.x+=Ce),Ie.shape.width=0):(ze||(Ie.shape.y+=$e),Ie.shape.height=0);var At=isFunction(ie)?function(Lt){ie(Lt,Ie)}:null;initProps(Ie,{shape:{width:Ce,height:$e,x:pe,y:_e}},oe,null,ae,At)}return Ie}function createPolarClipPath($,z,oe){var ae=$.getArea(),ie=round$1(ae.r0,1),le=round$1(ae.r,1),pe=new Sector$1({shape:{cx:round$1($.cx,1),cy:round$1($.cy,1),r0:ie,r:le,startAngle:ae.startAngle,endAngle:ae.endAngle,clockwise:ae.clockwise}});if(z){var _e=$.getBaseAxis().dim==="angle";_e?pe.shape.endAngle=ae.startAngle:pe.shape.r=ie,initProps(pe,{shape:{endAngle:ae.endAngle,r:le}},oe)}return pe}function createClipPath($,z,oe,ae,ie){if($){if($.type==="polar")return createPolarClipPath($,z,oe);if($.type==="cartesian2d")return createGridClipPath($,z,oe,ae,ie)}else return null;return null}function isCoordinateSystemType($,z){return $.type===z}function isPointsSame($,z){if($.length===z.length){for(var oe=0;oe<$.length;oe++)if($[oe]!==z[oe])return;return!0}}function bboxFromPoints($){for(var z=1/0,oe=1/0,ae=-1/0,ie=-1/0,le=0;le<$.length;){var pe=$[le++],_e=$[le++];isNaN(pe)||(z=Math.min(pe,z),ae=Math.max(pe,ae)),isNaN(_e)||(oe=Math.min(_e,oe),ie=Math.max(_e,ie))}return[[z,oe],[ae,ie]]}function getBoundingDiff($,z){var oe=bboxFromPoints($),ae=oe[0],ie=oe[1],le=bboxFromPoints(z),pe=le[0],_e=le[1];return Math.max(Math.abs(ae[0]-pe[0]),Math.abs(ae[1]-pe[1]),Math.abs(ie[0]-_e[0]),Math.abs(ie[1]-_e[1]))}function getSmooth($){return isNumber($)?$:$?.5:0}function getStackedOnPoints($,z,oe){if(!oe.valueDim)return[];for(var ae=z.count(),ie=createFloat32Array(ae*2),le=0;le<ae;le++){var pe=getStackedOnPoint(oe,$,z,le);ie[le*2]=pe[0],ie[le*2+1]=pe[1]}return ie}function turnPointsIntoStep($,z,oe,ae){var ie=z.getBaseAxis(),le=ie.dim==="x"||ie.dim==="radius"?0:1,pe=[],_e=0,Ce=[],$e=[],xe=[],Ie=[];if(ae){for(_e=0;_e<$.length;_e+=2)!isNaN($[_e])&&!isNaN($[_e+1])&&Ie.push($[_e],$[_e+1]);$=Ie}for(_e=0;_e<$.length-2;_e+=2)switch(xe[0]=$[_e+2],xe[1]=$[_e+3],$e[0]=$[_e],$e[1]=$[_e+1],pe.push($e[0],$e[1]),oe){case"end":Ce[le]=xe[le],Ce[1-le]=$e[1-le],pe.push(Ce[0],Ce[1]);break;case"middle":var Ne=($e[le]+xe[le])/2,Fe=[];Ce[le]=Fe[le]=Ne,Ce[1-le]=$e[1-le],Fe[1-le]=xe[1-le],pe.push(Ce[0],Ce[1]),pe.push(Fe[0],Fe[1]);break;default:Ce[le]=$e[le],Ce[1-le]=xe[1-le],pe.push(Ce[0],Ce[1])}return pe.push($[_e++],$[_e++]),pe}function clipColorStops($,z){var oe=[],ae=$.length,ie,le;function pe(xe,Ie,Ne){var Fe=xe.coord,ze=(Ne-Fe)/(Ie.coord-Fe),At=lerp(ze,[xe.color,Ie.color]);return{coord:Ne,color:At}}for(var _e=0;_e<ae;_e++){var Ce=$[_e],$e=Ce.coord;if($e<0)ie=Ce;else if($e>z){le?oe.push(pe(le,Ce,z)):ie&&oe.push(pe(ie,Ce,0),pe(ie,Ce,z));break}else ie&&(oe.push(pe(ie,Ce,0)),ie=null),oe.push(Ce),le=Ce}return oe}function getVisualGradient($,z,oe){var ae=$.getVisual("visualMeta");if(!(!ae||!ae.length||!$.count())&&z.type==="cartesian2d"){for(var ie,le,pe=ae.length-1;pe>=0;pe--){var _e=$.getDimensionInfo(ae[pe].dimension);if(ie=_e&&_e.coordDim,ie==="x"||ie==="y"){le=ae[pe];break}}if(le){var Ce=z.getAxis(ie),$e=map$2(le.stops,function(_n){return{coord:Ce.toGlobalCoord(Ce.dataToCoord(_n.value)),color:_n.color}}),xe=$e.length,Ie=le.outerColors.slice();xe&&$e[0].coord>$e[xe-1].coord&&($e.reverse(),Ie.reverse());var Ne=clipColorStops($e,ie==="x"?oe.getWidth():oe.getHeight()),Fe=Ne.length;if(!Fe&&xe)return $e[0].coord<0?Ie[1]?Ie[1]:$e[xe-1].color:Ie[0]?Ie[0]:$e[0].color;var ze=10,At=Ne[0].coord-ze,Lt=Ne[Fe-1].coord+ze,hn=Lt-At;if(hn<.001)return"transparent";each$c(Ne,function(_n){_n.offset=(_n.coord-At)/hn}),Ne.push({offset:Fe?Ne[Fe-1].offset:.5,color:Ie[1]||"transparent"}),Ne.unshift({offset:Fe?Ne[0].offset:.5,color:Ie[0]||"transparent"});var vn=new LinearGradient$1(0,0,0,0,Ne,!0);return vn[ie]=At,vn[ie+"2"]=Lt,vn}}}function getIsIgnoreFunc($,z,oe){var ae=$.get("showAllSymbol"),ie=ae==="auto";if(!(ae&&!ie)){var le=oe.getAxesByScale("ordinal")[0];if(le&&!(ie&&canShowAllSymbolForCategory(le,z))){var pe=z.mapDimension(le.dim),_e={};return each$c(le.getViewLabels(),function(Ce){var $e=le.scale.getRawOrdinalNumber(Ce.tickValue);_e[$e]=1}),function(Ce){return!_e.hasOwnProperty(z.get(pe,Ce))}}}}function canShowAllSymbolForCategory($,z){var oe=$.getExtent(),ae=Math.abs(oe[1]-oe[0])/$.scale.count();isNaN(ae)&&(ae=0);for(var ie=z.count(),le=Math.max(1,Math.round(ie/5)),pe=0;pe<ie;pe+=le)if(SymbolClz.getSymbolSize(z,pe)[$.isHorizontal()?1:0]*1.5>ae)return!1;return!0}function isPointNull($,z){return isNaN($)||isNaN(z)}function getLastIndexNotNull($){for(var z=$.length/2;z>0&&isPointNull($[z*2-2],$[z*2-1]);z--);return z-1}function getPointAtIndex($,z){return[$[z*2],$[z*2+1]]}function getIndexRange($,z,oe){for(var ae=$.length/2,ie=oe==="x"?0:1,le,pe,_e=0,Ce=-1,$e=0;$e<ae;$e++)if(pe=$[$e*2+ie],!(isNaN(pe)||isNaN($[$e*2+1-ie]))){if($e===0){le=pe;continue}if(le<=z&&pe>=z||le>=z&&pe<=z){Ce=$e;break}_e=$e,le=pe}return{range:[_e,Ce],t:(z-le)/(pe-le)}}function anyStateShowEndLabel($){if($.get(["endLabel","show"]))return!0;for(var z=0;z<SPECIAL_STATES.length;z++)if($.get([SPECIAL_STATES[z],"endLabel","show"]))return!0;return!1}function createLineClipPath($,z,oe,ae){if(isCoordinateSystemType(z,"cartesian2d")){var ie=ae.getModel("endLabel"),le=ie.get("valueAnimation"),pe=ae.getData(),_e={lastFrameIndex:0},Ce=anyStateShowEndLabel(ae)?function(Fe,ze){$._endLabelOnDuring(Fe,ze,pe,_e,le,ie,z)}:null,$e=z.getBaseAxis().isHorizontal(),xe=createGridClipPath(z,oe,ae,function(){var Fe=$._endLabel;Fe&&oe&&_e.originalX!=null&&Fe.attr({x:_e.originalX,y:_e.originalY})},Ce);if(!ae.get("clip",!0)){var Ie=xe.shape,Ne=Math.max(Ie.width,Ie.height);$e?(Ie.y-=Ne,Ie.height+=Ne*2):(Ie.x-=Ne,Ie.width+=Ne*2)}return Ce&&Ce(1,xe),xe}else return createPolarClipPath(z,oe,ae)}function getEndLabelStateSpecified($,z){var oe=z.getBaseAxis(),ae=oe.isHorizontal(),ie=oe.inverse,le=ae?ie?"right":"left":"center",pe=ae?"middle":ie?"top":"bottom";return{normal:{align:$.get("align")||le,verticalAlign:$.get("verticalAlign")||pe}}}var LineView=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(){var oe=new Group$3,ae=new SymbolDraw$1;this.group.add(ae.group),this._symbolDraw=ae,this._lineGroup=oe},z.prototype.render=function(oe,ae,ie){var le=this,pe=oe.coordinateSystem,_e=this.group,Ce=oe.getData(),$e=oe.getModel("lineStyle"),xe=oe.getModel("areaStyle"),Ie=Ce.getLayout("points")||[],Ne=pe.type==="polar",Fe=this._coordSys,ze=this._symbolDraw,At=this._polyline,Lt=this._polygon,hn=this._lineGroup,vn=!ae.ssr&&oe.isAnimationEnabled(),_n=!xe.isEmpty(),bn=xe.get("origin"),Cn=prepareDataCoordInfo(pe,Ce,bn),En=_n&&getStackedOnPoints(pe,Ce,Cn),$n=oe.get("showSymbol"),wn=oe.get("connectNulls"),Tn=$n&&!Ne&&getIsIgnoreFunc(oe,Ce,pe),xn=this._data;xn&&xn.eachItemGraphicEl(function(ir,qn){ir.__temp&&(_e.remove(ir),xn.setItemGraphicEl(qn,null))}),$n||ze.remove(),_e.add(hn);var kn=Ne?!1:oe.get("step"),An;pe&&pe.getArea&&oe.get("clip",!0)&&(An=pe.getArea(),An.width!=null?(An.x-=.1,An.y-=.1,An.width+=.2,An.height+=.2):An.r0&&(An.r0-=.5,An.r+=.5)),this._clipShapeForSymbol=An;var On=getVisualGradient(Ce,pe,ie)||Ce.getVisual("style")[Ce.getVisual("drawType")];if(!(At&&Fe.type===pe.type&&kn===this._step))$n&&ze.updateData(Ce,{isIgnore:Tn,clipShape:An,disableAnimation:!0,getSymbolPoint:function(ir){return[Ie[ir*2],Ie[ir*2+1]]}}),vn&&this._initSymbolLabelAnimation(Ce,pe,An),kn&&(Ie=turnPointsIntoStep(Ie,pe,kn,wn),En&&(En=turnPointsIntoStep(En,pe,kn,wn))),At=this._newPolyline(Ie),_n?Lt=this._newPolygon(Ie,En):Lt&&(hn.remove(Lt),Lt=this._polygon=null),Ne||this._initOrUpdateEndLabel(oe,pe,convertToColorString(On)),hn.setClipPath(createLineClipPath(this,pe,!0,oe));else{_n&&!Lt?Lt=this._newPolygon(Ie,En):Lt&&!_n&&(hn.remove(Lt),Lt=this._polygon=null),Ne||this._initOrUpdateEndLabel(oe,pe,convertToColorString(On));var Mn=hn.getClipPath();if(Mn){var Fn=createLineClipPath(this,pe,!1,oe);initProps(Mn,{shape:Fn.shape},oe)}else hn.setClipPath(createLineClipPath(this,pe,!0,oe));$n&&ze.updateData(Ce,{isIgnore:Tn,clipShape:An,disableAnimation:!0,getSymbolPoint:function(ir){return[Ie[ir*2],Ie[ir*2+1]]}}),(!isPointsSame(this._stackedOnPoints,En)||!isPointsSame(this._points,Ie))&&(vn?this._doUpdateAnimation(Ce,En,pe,ie,kn,bn,wn):(kn&&(Ie=turnPointsIntoStep(Ie,pe,kn,wn),En&&(En=turnPointsIntoStep(En,pe,kn,wn))),At.setShape({points:Ie}),Lt&&Lt.setShape({points:Ie,stackedOnPoints:En})))}var Dn=oe.getModel("emphasis"),Nn=Dn.get("focus"),Vn=Dn.get("blurScope"),Bn=Dn.get("disabled");if(At.useStyle(defaults($e.getLineStyle(),{fill:"none",stroke:On,lineJoin:"bevel"})),setStatesStylesFromModel(At,oe,"lineStyle"),At.style.lineWidth>0&&oe.get(["emphasis","lineStyle","width"])==="bolder"){var zn=At.getState("emphasis").style;zn.lineWidth=+At.style.lineWidth+1}getECData(At).seriesIndex=oe.seriesIndex,toggleHoverEmphasis(At,Nn,Vn,Bn);var Xn=getSmooth(oe.get("smooth")),Un=oe.get("smoothMonotone");if(At.setShape({smooth:Xn,smoothMonotone:Un,connectNulls:wn}),Lt){var Jn=Ce.getCalculationInfo("stackedOnSeries"),lr=0;Lt.useStyle(defaults(xe.getAreaStyle(),{fill:On,opacity:.7,lineJoin:"bevel",decal:Ce.getVisual("style").decal})),Jn&&(lr=getSmooth(Jn.get("smooth"))),Lt.setShape({smooth:Xn,stackedOnSmooth:lr,smoothMonotone:Un,connectNulls:wn}),setStatesStylesFromModel(Lt,oe,"areaStyle"),getECData(Lt).seriesIndex=oe.seriesIndex,toggleHoverEmphasis(Lt,Nn,Vn,Bn)}var _r=function(ir){le._changePolyState(ir)};Ce.eachItemGraphicEl(function(ir){ir&&(ir.onHoverStateChange=_r)}),this._polyline.onHoverStateChange=_r,this._data=Ce,this._coordSys=pe,this._stackedOnPoints=En,this._points=Ie,this._step=kn,this._valueOrigin=bn,oe.get("triggerLineEvent")&&(this.packEventData(oe,At),Lt&&this.packEventData(oe,Lt))},z.prototype.packEventData=function(oe,ae){getECData(ae).eventData={componentType:"series",componentSubType:"line",componentIndex:oe.componentIndex,seriesIndex:oe.seriesIndex,seriesName:oe.name,seriesType:"line"}},z.prototype.highlight=function(oe,ae,ie,le){var pe=oe.getData(),_e=queryDataIndex(pe,le);if(this._changePolyState("emphasis"),!(_e instanceof Array)&&_e!=null&&_e>=0){var Ce=pe.getLayout("points"),$e=pe.getItemGraphicEl(_e);if(!$e){var xe=Ce[_e*2],Ie=Ce[_e*2+1];if(isNaN(xe)||isNaN(Ie)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(xe,Ie))return;var Ne=oe.get("zlevel")||0,Fe=oe.get("z")||0;$e=new SymbolClz(pe,_e),$e.x=xe,$e.y=Ie,$e.setZ(Ne,Fe);var ze=$e.getSymbolPath().getTextContent();ze&&(ze.zlevel=Ne,ze.z=Fe,ze.z2=this._polyline.z2+1),$e.__temp=!0,pe.setItemGraphicEl(_e,$e),$e.stopSymbolAnimation(!0),this.group.add($e)}$e.highlight()}else ChartView$1.prototype.highlight.call(this,oe,ae,ie,le)},z.prototype.downplay=function(oe,ae,ie,le){var pe=oe.getData(),_e=queryDataIndex(pe,le);if(this._changePolyState("normal"),_e!=null&&_e>=0){var Ce=pe.getItemGraphicEl(_e);Ce&&(Ce.__temp?(pe.setItemGraphicEl(_e,null),this.group.remove(Ce)):Ce.downplay())}else ChartView$1.prototype.downplay.call(this,oe,ae,ie,le)},z.prototype._changePolyState=function(oe){var ae=this._polygon;setStatesFlag(this._polyline,oe),ae&&setStatesFlag(ae,oe)},z.prototype._newPolyline=function(oe){var ae=this._polyline;return ae&&this._lineGroup.remove(ae),ae=new ECPolyline({shape:{points:oe},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(ae),this._polyline=ae,ae},z.prototype._newPolygon=function(oe,ae){var ie=this._polygon;return ie&&this._lineGroup.remove(ie),ie=new ECPolygon({shape:{points:oe,stackedOnPoints:ae},segmentIgnoreThreshold:2}),this._lineGroup.add(ie),this._polygon=ie,ie},z.prototype._initSymbolLabelAnimation=function(oe,ae,ie){var le,pe,_e=ae.getBaseAxis(),Ce=_e.inverse;ae.type==="cartesian2d"?(le=_e.isHorizontal(),pe=!1):ae.type==="polar"&&(le=_e.dim==="angle",pe=!0);var $e=oe.hostModel,xe=$e.get("animationDuration");isFunction(xe)&&(xe=xe(null));var Ie=$e.get("animationDelay")||0,Ne=isFunction(Ie)?Ie(null):Ie;oe.eachItemGraphicEl(function(Fe,ze){var At=Fe;if(At){var Lt=[Fe.x,Fe.y],hn=void 0,vn=void 0,_n=void 0;if(ie)if(pe){var bn=ie,Cn=ae.pointToCoord(Lt);le?(hn=bn.startAngle,vn=bn.endAngle,_n=-Cn[1]/180*Math.PI):(hn=bn.r0,vn=bn.r,_n=Cn[0])}else{var En=ie;le?(hn=En.x,vn=En.x+En.width,_n=Fe.x):(hn=En.y+En.height,vn=En.y,_n=Fe.y)}var $n=vn===hn?0:(_n-hn)/(vn-hn);Ce&&($n=1-$n);var wn=isFunction(Ie)?Ie(ze):xe*$n+Ne,Tn=At.getSymbolPath(),xn=Tn.getTextContent();At.attr({scaleX:0,scaleY:0}),At.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:wn}),xn&&xn.animateFrom({style:{opacity:0}},{duration:300,delay:wn}),Tn.disableLabelAnimation=!0}})},z.prototype._initOrUpdateEndLabel=function(oe,ae,ie){var le=oe.getModel("endLabel");if(anyStateShowEndLabel(oe)){var pe=oe.getData(),_e=this._polyline,Ce=pe.getLayout("points");if(!Ce){_e.removeTextContent(),this._endLabel=null;return}var $e=this._endLabel;$e||($e=this._endLabel=new ZRText$1({z2:200}),$e.ignoreClip=!0,_e.setTextContent(this._endLabel),_e.disableLabelAnimation=!0);var xe=getLastIndexNotNull(Ce);xe>=0&&(setLabelStyle(_e,getLabelStatesModels(oe,"endLabel"),{inheritColor:ie,labelFetcher:oe,labelDataIndex:xe,defaultText:function(Ie,Ne,Fe){return Fe!=null?getDefaultInterpolatedLabel(pe,Fe):getDefaultLabel(pe,Ie)},enableTextSetter:!0},getEndLabelStateSpecified(le,ae)),_e.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},z.prototype._endLabelOnDuring=function(oe,ae,ie,le,pe,_e,Ce){var $e=this._endLabel,xe=this._polyline;if($e){oe<1&&le.originalX==null&&(le.originalX=$e.x,le.originalY=$e.y);var Ie=ie.getLayout("points"),Ne=ie.hostModel,Fe=Ne.get("connectNulls"),ze=_e.get("precision"),At=_e.get("distance")||0,Lt=Ce.getBaseAxis(),hn=Lt.isHorizontal(),vn=Lt.inverse,_n=ae.shape,bn=vn?hn?_n.x:_n.y+_n.height:hn?_n.x+_n.width:_n.y,Cn=(hn?At:0)*(vn?-1:1),En=(hn?0:-At)*(vn?-1:1),$n=hn?"x":"y",wn=getIndexRange(Ie,bn,$n),Tn=wn.range,xn=Tn[1]-Tn[0],kn=void 0;if(xn>=1){if(xn>1&&!Fe){var An=getPointAtIndex(Ie,Tn[0]);$e.attr({x:An[0]+Cn,y:An[1]+En}),pe&&(kn=Ne.getRawValue(Tn[0]))}else{var An=xe.getPointOn(bn,$n);An&&$e.attr({x:An[0]+Cn,y:An[1]+En});var On=Ne.getRawValue(Tn[0]),Mn=Ne.getRawValue(Tn[1]);pe&&(kn=interpolateRawValues(ie,ze,On,Mn,wn.t))}le.lastFrameIndex=Tn[0]}else{var Fn=oe===1||le.lastFrameIndex>0?Tn[0]:0,An=getPointAtIndex(Ie,Fn);pe&&(kn=Ne.getRawValue(Fn)),$e.attr({x:An[0]+Cn,y:An[1]+En})}pe&&labelInner($e).setLabelText(kn)}},z.prototype._doUpdateAnimation=function(oe,ae,ie,le,pe,_e,Ce){var $e=this._polyline,xe=this._polygon,Ie=oe.hostModel,Ne=lineAnimationDiff(this._data,oe,this._stackedOnPoints,ae,this._coordSys,ie,this._valueOrigin),Fe=Ne.current,ze=Ne.stackedOnCurrent,At=Ne.next,Lt=Ne.stackedOnNext;if(pe&&(Fe=turnPointsIntoStep(Ne.current,ie,pe,Ce),ze=turnPointsIntoStep(Ne.stackedOnCurrent,ie,pe,Ce),At=turnPointsIntoStep(Ne.next,ie,pe,Ce),Lt=turnPointsIntoStep(Ne.stackedOnNext,ie,pe,Ce)),getBoundingDiff(Fe,At)>3e3||xe&&getBoundingDiff(ze,Lt)>3e3){$e.stopAnimation(),$e.setShape({points:At}),xe&&(xe.stopAnimation(),xe.setShape({points:At,stackedOnPoints:Lt}));return}$e.shape.__points=Ne.current,$e.shape.points=Fe;var hn={shape:{points:At}};Ne.current!==Fe&&(hn.shape.__points=Ne.next),$e.stopAnimation(),updateProps$1($e,hn,Ie),xe&&(xe.setShape({points:Fe,stackedOnPoints:ze}),xe.stopAnimation(),updateProps$1(xe,{shape:{stackedOnPoints:Lt}},Ie),$e.shape.points!==xe.shape.points&&(xe.shape.points=$e.shape.points));for(var vn=[],_n=Ne.status,bn=0;bn<_n.length;bn++){var Cn=_n[bn].cmd;if(Cn==="="){var En=oe.getItemGraphicEl(_n[bn].idx1);En&&vn.push({el:En,ptIdx:bn})}}$e.animators&&$e.animators.length&&$e.animators[0].during(function(){xe&&xe.dirtyShape();for(var $n=$e.shape.__points,wn=0;wn<vn.length;wn++){var Tn=vn[wn].el,xn=vn[wn].ptIdx*2;Tn.x=$n[xn],Tn.y=$n[xn+1],Tn.markRedraw()}})},z.prototype.remove=function(oe){var ae=this.group,ie=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),ie&&ie.eachItemGraphicEl(function(le,pe){le.__temp&&(ae.remove(le),ie.setItemGraphicEl(pe,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},z.type="line",z}(ChartView$1);const LineView$1=LineView;function pointsLayout($,z){return{seriesType:$,plan:createRenderPlanner(),reset:function(oe){var ae=oe.getData(),ie=oe.coordinateSystem,le=oe.pipelineContext,pe=z||le.large;if(ie){var _e=map$2(ie.dimensions,function(Fe){return ae.mapDimension(Fe)}).slice(0,2),Ce=_e.length,$e=ae.getCalculationInfo("stackResultDimension");isDimensionStacked(ae,_e[0])&&(_e[0]=$e),isDimensionStacked(ae,_e[1])&&(_e[1]=$e);var xe=ae.getStore(),Ie=ae.getDimensionIndex(_e[0]),Ne=ae.getDimensionIndex(_e[1]);return Ce&&{progress:function(Fe,ze){for(var At=Fe.end-Fe.start,Lt=pe&&createFloat32Array(At*Ce),hn=[],vn=[],_n=Fe.start,bn=0;_n<Fe.end;_n++){var Cn=void 0;if(Ce===1){var En=xe.get(Ie,_n);Cn=ie.dataToPoint(En,null,vn)}else hn[0]=xe.get(Ie,_n),hn[1]=xe.get(Ne,_n),Cn=ie.dataToPoint(hn,null,vn);pe?(Lt[bn++]=Cn[0],Lt[bn++]=Cn[1]):ze.setItemLayout(_n,Cn.slice())}pe&&ze.setLayout("points",Lt)}}}}}}var samplers={average:function($){for(var z=0,oe=0,ae=0;ae<$.length;ae++)isNaN($[ae])||(z+=$[ae],oe++);return oe===0?NaN:z/oe},sum:function($){for(var z=0,oe=0;oe<$.length;oe++)z+=$[oe]||0;return z},max:function($){for(var z=-1/0,oe=0;oe<$.length;oe++)$[oe]>z&&(z=$[oe]);return isFinite(z)?z:NaN},min:function($){for(var z=1/0,oe=0;oe<$.length;oe++)$[oe]<z&&(z=$[oe]);return isFinite(z)?z:NaN},nearest:function($){return $[0]}},indexSampler=function($){return Math.round($.length/2)};function dataSample($){return{seriesType:$,reset:function(z,oe,ae){var ie=z.getData(),le=z.get("sampling"),pe=z.coordinateSystem,_e=ie.count();if(_e>10&&pe.type==="cartesian2d"&&le){var Ce=pe.getBaseAxis(),$e=pe.getOtherAxis(Ce),xe=Ce.getExtent(),Ie=ae.getDevicePixelRatio(),Ne=Math.abs(xe[1]-xe[0])*(Ie||1),Fe=Math.round(_e/Ne);if(isFinite(Fe)&&Fe>1){le==="lttb"&&z.setData(ie.lttbDownSample(ie.mapDimension($e.dim),1/Fe));var ze=void 0;isString(le)?ze=samplers[le]:isFunction(le)&&(ze=le),ze&&z.setData(ie.downSample(ie.mapDimension($e.dim),1/Fe,ze,indexSampler))}}}}}function install$j($){$.registerChartView(LineView$1),$.registerSeriesModel(LineSeries),$.registerLayout(pointsLayout("line",!0)),$.registerVisual({seriesType:"line",reset:function(z){var oe=z.getData(),ae=z.getModel("lineStyle").getLineStyle();ae&&!ae.stroke&&(ae.stroke=oe.getVisual("style").fill),oe.setVisual("legendLineStyle",ae)}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.getInitialData=function(oe,ae){return createSeriesData(null,this,{useEncodeDefaulter:!0})},z.prototype.getMarkerPosition=function(oe,ae,ie){var le=this.coordinateSystem;if(le&&le.clampData){var pe=le.clampData(oe),_e=le.dataToPoint(pe);if(ie)each$c(le.getAxes(),function(Ne,Fe){if(Ne.type==="category"&&ae!=null){var ze=Ne.getTicksCoords(),At=pe[Fe],Lt=ae[Fe]==="x1"||ae[Fe]==="y1";if(Lt&&(At+=1),ze.length<2)return;if(ze.length===2){_e[Fe]=Ne.toGlobalCoord(Ne.getExtent()[Lt?1:0]);return}for(var hn=void 0,vn=void 0,_n=1,bn=0;bn<ze.length;bn++){var Cn=ze[bn].coord,En=bn===ze.length-1?ze[bn-1].tickValue+_n:ze[bn].tickValue;if(En===At){vn=Cn;break}else if(En<At)hn=Cn;else if(hn!=null&&En>At){vn=(Cn+hn)/2;break}bn===1&&(_n=En-ze[0].tickValue)}vn==null&&(hn?hn&&(vn=ze[ze.length-1].coord):vn=ze[0].coord),_e[Fe]=Ne.toGlobalCoord(vn)}});else{var Ce=this.getData(),$e=Ce.getLayout("offset"),xe=Ce.getLayout("size"),Ie=le.getBaseAxis().isHorizontal()?0:1;_e[Ie]+=$e+xe/2}return _e}return[NaN,NaN]},z.type="series.__base_bar__",z.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},z}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},z.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},z.prototype.getProgressiveThreshold=function(){var oe=this.get("progressiveThreshold"),ae=this.get("largeThreshold");return ae>oe&&(oe=ae),oe},z.prototype.brushSelector=function(oe,ae,ie){return ie.rect(ae.getItemLayout(oe))},z.type="series.bar",z.dependencies=["grid","polar"],z.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}),z}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function $(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),SausagePath=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="sausage",ae}return z.prototype.getDefaultShape=function(){return new SausageShape},z.prototype.buildPath=function(oe,ae){var ie=ae.cx,le=ae.cy,pe=Math.max(ae.r0||0,0),_e=Math.max(ae.r,0),Ce=(_e-pe)*.5,$e=pe+Ce,xe=ae.startAngle,Ie=ae.endAngle,Ne=ae.clockwise,Fe=Math.PI*2,ze=Ne?Ie-xe<Fe:xe-Ie<Fe;ze||(xe=Ie-(Ne?Fe:-Fe));var At=Math.cos(xe),Lt=Math.sin(xe),hn=Math.cos(Ie),vn=Math.sin(Ie);ze?(oe.moveTo(At*pe+ie,Lt*pe+le),oe.arc(At*$e+ie,Lt*$e+le,Ce,-Math.PI+xe,xe,!Ne)):oe.moveTo(At*_e+ie,Lt*_e+le),oe.arc(ie,le,_e,xe,Ie,!Ne),oe.arc(hn*$e+ie,vn*$e+le,Ce,Ie-Math.PI*2,Ie-Math.PI,!Ne),pe!==0&&oe.arc(ie,le,pe,Ie,xe,Ne)},z}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition($,z){z=z||{};var oe=z.isRoundCap;return function(ae,ie,le){var pe=ie.position;if(!pe||pe instanceof Array)return calculateTextPosition(ae,ie,le);var _e=$(pe),Ce=ie.distance!=null?ie.distance:5,$e=this.shape,xe=$e.cx,Ie=$e.cy,Ne=$e.r,Fe=$e.r0,ze=(Ne+Fe)/2,At=$e.startAngle,Lt=$e.endAngle,hn=(At+Lt)/2,vn=oe?Math.abs(Ne-Fe)/2:0,_n=Math.cos,bn=Math.sin,Cn=xe+Ne*_n(At),En=Ie+Ne*bn(At),$n="left",wn="top";switch(_e){case"startArc":Cn=xe+(Fe-Ce)*_n(hn),En=Ie+(Fe-Ce)*bn(hn),$n="center",wn="top";break;case"insideStartArc":Cn=xe+(Fe+Ce)*_n(hn),En=Ie+(Fe+Ce)*bn(hn),$n="center",wn="bottom";break;case"startAngle":Cn=xe+ze*_n(At)+adjustAngleDistanceX(At,Ce+vn,!1),En=Ie+ze*bn(At)+adjustAngleDistanceY(At,Ce+vn,!1),$n="right",wn="middle";break;case"insideStartAngle":Cn=xe+ze*_n(At)+adjustAngleDistanceX(At,-Ce+vn,!1),En=Ie+ze*bn(At)+adjustAngleDistanceY(At,-Ce+vn,!1),$n="left",wn="middle";break;case"middle":Cn=xe+ze*_n(hn),En=Ie+ze*bn(hn),$n="center",wn="middle";break;case"endArc":Cn=xe+(Ne+Ce)*_n(hn),En=Ie+(Ne+Ce)*bn(hn),$n="center",wn="bottom";break;case"insideEndArc":Cn=xe+(Ne-Ce)*_n(hn),En=Ie+(Ne-Ce)*bn(hn),$n="center",wn="top";break;case"endAngle":Cn=xe+ze*_n(Lt)+adjustAngleDistanceX(Lt,Ce+vn,!0),En=Ie+ze*bn(Lt)+adjustAngleDistanceY(Lt,Ce+vn,!0),$n="left",wn="middle";break;case"insideEndAngle":Cn=xe+ze*_n(Lt)+adjustAngleDistanceX(Lt,-Ce+vn,!0),En=Ie+ze*bn(Lt)+adjustAngleDistanceY(Lt,-Ce+vn,!0),$n="right",wn="middle";break;default:return calculateTextPosition(ae,ie,le)}return ae=ae||{},ae.x=Cn,ae.y=En,ae.align=$n,ae.verticalAlign=wn,ae}}function setSectorTextRotation($,z,oe,ae){if(isNumber(ae)){$.setTextConfig({rotation:ae});return}else if(isArray$1(z)){$.setTextConfig({rotation:0});return}var ie=$.shape,le=ie.clockwise?ie.startAngle:ie.endAngle,pe=ie.clockwise?ie.endAngle:ie.startAngle,_e=(le+pe)/2,Ce,$e=oe(z);switch($e){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":Ce=_e;break;case"startAngle":case"insideStartAngle":Ce=le;break;case"endAngle":case"insideEndAngle":Ce=pe;break;default:$.setTextConfig({rotation:0});return}var xe=Math.PI*1.5-Ce;$e==="middle"&&xe>Math.PI/2&&xe<Math.PI*1.5&&(xe-=Math.PI),$.setTextConfig({rotation:xe})}function adjustAngleDistanceX($,z,oe){return z*Math.sin($)*(oe?-1:1)}function adjustAngleDistanceY($,z,oe){return z*Math.cos($)*(oe?1:-1)}function getSectorCornerRadius($,z,oe){var ae=$.get("borderRadius");if(ae==null)return oe?{cornerRadius:0}:null;isArray$1(ae)||(ae=[ae,ae,ae,ae]);var ie=Math.abs(z.r||0-z.r0||0);return{cornerRadius:map$2(ae,function(le){return parsePercent$1(le,ie)})}}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea($,z){var oe=$.getArea&&$.getArea();if(isCoordinateSystemType($,"cartesian2d")){var ae=$.getBaseAxis();if(ae.type!=="category"||!ae.onBand){var ie=z.getLayout("bandWidth");ae.isHorizontal()?(oe.x-=ie,oe.width+=ie*2):(oe.y-=ie,oe.height+=ie*2)}}return oe}var BarView=function($){__extends(z,$);function z(){var oe=$.call(this)||this;return oe.type=z.type,oe._isFirstFrame=!0,oe}return z.prototype.render=function(oe,ae,ie,le){this._model=oe,this._removeOnRenderedListener(ie),this._updateDrawMode(oe);var pe=oe.get("coordinateSystem");(pe==="cartesian2d"||pe==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(oe,ae,ie):this._renderNormal(oe,ae,ie,le))},z.prototype.incrementalPrepareRender=function(oe){this._clear(),this._updateDrawMode(oe),this._updateLargeClip(oe)},z.prototype.incrementalRender=function(oe,ae){this._progressiveEls=[],this._incrementalRenderLarge(oe,ae)},z.prototype.eachRendered=function(oe){traverseElements(this._progressiveEls||this.group,oe)},z.prototype._updateDrawMode=function(oe){var ae=oe.pipelineContext.large;(this._isLargeDraw==null||ae!==this._isLargeDraw)&&(this._isLargeDraw=ae,this._clear())},z.prototype._renderNormal=function(oe,ae,ie,le){var pe=this.group,_e=oe.getData(),Ce=this._data,$e=oe.coordinateSystem,xe=$e.getBaseAxis(),Ie;$e.type==="cartesian2d"?Ie=xe.isHorizontal():$e.type==="polar"&&(Ie=xe.dim==="angle");var Ne=oe.isAnimationEnabled()?oe:null,Fe=shouldRealtimeSort(oe,$e);Fe&&this._enableRealtimeSort(Fe,_e,ie);var ze=oe.get("clip",!0)||Fe,At=getClipArea($e,_e);pe.removeClipPath();var Lt=oe.get("roundCap",!0),hn=oe.get("showBackground",!0),vn=oe.getModel("backgroundStyle"),_n=vn.get("borderRadius")||0,bn=[],Cn=this._backgroundEls,En=le&&le.isInitSort,$n=le&&le.type==="changeAxisOrder";function wn(kn){var An=getLayout[$e.type](_e,kn),On=createBackgroundEl($e,Ie,An);return On.useStyle(vn.getItemStyle()),$e.type==="cartesian2d"?On.setShape("r",_n):On.setShape("cornerRadius",_n),bn[kn]=On,On}_e.diff(Ce).add(function(kn){var An=_e.getItemModel(kn),On=getLayout[$e.type](_e,kn,An);if(hn&&wn(kn),!(!_e.hasValue(kn)||!isValidLayout[$e.type](On))){var Mn=!1;ze&&(Mn=clip[$e.type](At,On));var Fn=elementCreator[$e.type](oe,_e,kn,On,Ie,Ne,xe.model,!1,Lt);Fe&&(Fn.forceLabelAnimation=!0),updateStyle(Fn,_e,kn,An,On,oe,Ie,$e.type==="polar"),En?Fn.attr({shape:On}):Fe?updateRealtimeAnimation(Fe,Ne,Fn,On,kn,Ie,!1,!1):initProps(Fn,{shape:On},oe,kn),_e.setItemGraphicEl(kn,Fn),pe.add(Fn),Fn.ignore=Mn}}).update(function(kn,An){var On=_e.getItemModel(kn),Mn=getLayout[$e.type](_e,kn,On);if(hn){var Fn=void 0;Cn.length===0?Fn=wn(An):(Fn=Cn[An],Fn.useStyle(vn.getItemStyle()),$e.type==="cartesian2d"?Fn.setShape("r",_n):Fn.setShape("cornerRadius",_n),bn[kn]=Fn);var Dn=getLayout[$e.type](_e,kn),Nn=createBackgroundShape(Ie,Dn,$e);updateProps$1(Fn,{shape:Nn},Ne,kn)}var Vn=Ce.getItemGraphicEl(An);if(!_e.hasValue(kn)||!isValidLayout[$e.type](Mn)){pe.remove(Vn);return}var Bn=!1;if(ze&&(Bn=clip[$e.type](At,Mn),Bn&&pe.remove(Vn)),Vn?saveOldStyle(Vn):Vn=elementCreator[$e.type](oe,_e,kn,Mn,Ie,Ne,xe.model,!!Vn,Lt),Fe&&(Vn.forceLabelAnimation=!0),$n){var zn=Vn.getTextContent();if(zn){var Xn=labelInner(zn);Xn.prevValue!=null&&(Xn.prevValue=Xn.value)}}else updateStyle(Vn,_e,kn,On,Mn,oe,Ie,$e.type==="polar");En?Vn.attr({shape:Mn}):Fe?updateRealtimeAnimation(Fe,Ne,Vn,Mn,kn,Ie,!0,$n):updateProps$1(Vn,{shape:Mn},oe,kn,null),_e.setItemGraphicEl(kn,Vn),Vn.ignore=Bn,pe.add(Vn)}).remove(function(kn){var An=Ce.getItemGraphicEl(kn);An&&removeElementWithFadeOut(An,oe,kn)}).execute();var Tn=this._backgroundGroup||(this._backgroundGroup=new Group$3);Tn.removeAll();for(var xn=0;xn<bn.length;++xn)Tn.add(bn[xn]);pe.add(Tn),this._backgroundEls=bn,this._data=_e},z.prototype._renderLarge=function(oe,ae,ie){this._clear(),createLarge(oe,this.group),this._updateLargeClip(oe)},z.prototype._incrementalRenderLarge=function(oe,ae){this._removeBackground(),createLarge(ae,this.group,this._progressiveEls,!0)},z.prototype._updateLargeClip=function(oe){var ae=oe.get("clip",!0)&&createClipPath(oe.coordinateSystem,!1,oe),ie=this.group;ae?ie.setClipPath(ae):ie.removeClipPath()},z.prototype._enableRealtimeSort=function(oe,ae,ie){var le=this;if(ae.count()){var pe=oe.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(ae,oe,ie),this._isFirstFrame=!1;else{var _e=function(Ce){var $e=ae.getItemGraphicEl(Ce),xe=$e&&$e.shape;return xe&&Math.abs(pe.isHorizontal()?xe.height:xe.width)||0};this._onRendered=function(){le._updateSortWithinSameData(ae,_e,pe,ie)},ie.getZr().on("rendered",this._onRendered)}}},z.prototype._dataSort=function(oe,ae,ie){var le=[];return oe.each(oe.mapDimension(ae.dim),function(pe,_e){var Ce=ie(_e);Ce=Ce??NaN,le.push({dataIndex:_e,mappedValue:Ce,ordinalNumber:pe})}),le.sort(function(pe,_e){return _e.mappedValue-pe.mappedValue}),{ordinalNumbers:map$2(le,function(pe){return pe.ordinalNumber})}},z.prototype._isOrderChangedWithinSameData=function(oe,ae,ie){for(var le=ie.scale,pe=oe.mapDimension(ie.dim),_e=Number.MAX_VALUE,Ce=0,$e=le.getOrdinalMeta().categories.length;Ce<$e;++Ce){var xe=oe.rawIndexOf(pe,le.getRawOrdinalNumber(Ce)),Ie=xe<0?Number.MIN_VALUE:ae(oe.indexOfRawIndex(xe));if(Ie>_e)return!0;_e=Ie}return!1},z.prototype._isOrderDifferentInView=function(oe,ae){for(var ie=ae.scale,le=ie.getExtent(),pe=Math.max(0,le[0]),_e=Math.min(le[1],ie.getOrdinalMeta().categories.length-1);pe<=_e;++pe)if(oe.ordinalNumbers[pe]!==ie.getRawOrdinalNumber(pe))return!0},z.prototype._updateSortWithinSameData=function(oe,ae,ie,le){if(this._isOrderChangedWithinSameData(oe,ae,ie)){var pe=this._dataSort(oe,ie,ae);this._isOrderDifferentInView(pe,ie)&&(this._removeOnRenderedListener(le),le.dispatchAction({type:"changeAxisOrder",componentType:ie.dim+"Axis",axisId:ie.index,sortInfo:pe}))}},z.prototype._dispatchInitSort=function(oe,ae,ie){var le=ae.baseAxis,pe=this._dataSort(oe,le,function(_e){return oe.get(oe.mapDimension(ae.otherAxis.dim),_e)});ie.dispatchAction({type:"changeAxisOrder",componentType:le.dim+"Axis",isInitSort:!0,axisId:le.index,sortInfo:pe})},z.prototype.remove=function(oe,ae){this._clear(this._model),this._removeOnRenderedListener(ae)},z.prototype.dispose=function(oe,ae){this._removeOnRenderedListener(ae)},z.prototype._removeOnRenderedListener=function(oe){this._onRendered&&(oe.getZr().off("rendered",this._onRendered),this._onRendered=null)},z.prototype._clear=function(oe){var ae=this.group,ie=this._data;oe&&oe.isAnimationEnabled()&&ie&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],ie.eachItemGraphicEl(function(le){removeElementWithFadeOut(le,oe,getECData(le).dataIndex)})):ae.removeAll(),this._data=null,this._isFirstFrame=!0},z.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},z.type="bar",z}(ChartView$1),clip={cartesian2d:function($,z){var oe=z.width<0?-1:1,ae=z.height<0?-1:1;oe<0&&(z.x+=z.width,z.width=-z.width),ae<0&&(z.y+=z.height,z.height=-z.height);var ie=$.x+$.width,le=$.y+$.height,pe=mathMax$2(z.x,$.x),_e=mathMin$2(z.x+z.width,ie),Ce=mathMax$2(z.y,$.y),$e=mathMin$2(z.y+z.height,le),xe=_e<pe,Ie=$e<Ce;return z.x=xe&&pe>ie?_e:pe,z.y=Ie&&Ce>le?$e:Ce,z.width=xe?0:_e-pe,z.height=Ie?0:$e-Ce,oe<0&&(z.x+=z.width,z.width=-z.width),ae<0&&(z.y+=z.height,z.height=-z.height),xe||Ie},polar:function($,z){var oe=z.r0<=z.r?1:-1;if(oe<0){var ae=z.r;z.r=z.r0,z.r0=ae}var ie=mathMin$2(z.r,$.r),le=mathMax$2(z.r0,$.r0);z.r=ie,z.r0=le;var pe=ie-le<0;if(oe<0){var ae=z.r;z.r=z.r0,z.r0=ae}return pe}},elementCreator={cartesian2d:function($,z,oe,ae,ie,le,pe,_e,Ce){var $e=new Rect$2({shape:extend({},ae),z2:1});if($e.__dataIndex=oe,$e.name="item",le){var xe=$e.shape,Ie=ie?"height":"width";xe[Ie]=0}return $e},polar:function($,z,oe,ae,ie,le,pe,_e,Ce){var $e=!ie&&Ce?Sausage:Sector$1,xe=new $e({shape:ae,z2:1});xe.name="item";var Ie=createPolarPositionMapping(ie);if(xe.calculateTextPosition=createSectorCalculateTextPosition(Ie,{isRoundCap:$e===Sausage}),le){var Ne=xe.shape,Fe=ie?"r":"endAngle",ze={};Ne[Fe]=ie?ae.r0:ae.startAngle,ze[Fe]=ae[Fe],(_e?updateProps$1:initProps)(xe,{shape:ze},le)}return xe}};function shouldRealtimeSort($,z){var oe=$.get("realtimeSort",!0),ae=z.getBaseAxis();if(oe&&ae.type==="category"&&z.type==="cartesian2d")return{baseAxis:ae,otherAxis:z.getOtherAxis(ae)}}function updateRealtimeAnimation($,z,oe,ae,ie,le,pe,_e){var Ce,$e;le?($e={x:ae.x,width:ae.width},Ce={y:ae.y,height:ae.height}):($e={y:ae.y,height:ae.height},Ce={x:ae.x,width:ae.width}),_e||(pe?updateProps$1:initProps)(oe,{shape:Ce},z,ie,null);var xe=z?$.baseAxis.model:null;(pe?updateProps$1:initProps)(oe,{shape:$e},xe,ie)}function checkPropertiesNotValid($,z){for(var oe=0;oe<z.length;oe++)if(!isFinite($[z[oe]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function($){return!checkPropertiesNotValid($,rectPropties)},polar:function($){return!checkPropertiesNotValid($,polarPropties)}},getLayout={cartesian2d:function($,z,oe){var ae=$.getItemLayout(z),ie=oe?getLineWidth(oe,ae):0,le=ae.width>0?1:-1,pe=ae.height>0?1:-1;return{x:ae.x+le*ie/2,y:ae.y+pe*ie/2,width:ae.width-le*ie,height:ae.height-pe*ie}},polar:function($,z,oe){var ae=$.getItemLayout(z);return{cx:ae.cx,cy:ae.cy,r0:ae.r0,r:ae.r,startAngle:ae.startAngle,endAngle:ae.endAngle,clockwise:ae.clockwise}}};function isZeroOnPolar($){return $.startAngle!=null&&$.endAngle!=null&&$.startAngle===$.endAngle}function createPolarPositionMapping($){return function(z){var oe=z?"Arc":"Angle";return function(ae){switch(ae){case"start":case"insideStart":case"end":case"insideEnd":return ae+oe;default:return ae}}}($)}function updateStyle($,z,oe,ae,ie,le,pe,_e){var Ce=z.getItemVisual(oe,"style");if(_e){if(!le.get("roundCap")){var xe=$.shape,Ie=getSectorCornerRadius(ae.getModel("itemStyle"),xe,!0);extend(xe,Ie),$.setShape(xe)}}else{var $e=ae.get(["itemStyle","borderRadius"])||0;$.setShape("r",$e)}$.useStyle(Ce);var Ne=ae.getShallow("cursor");Ne&&$.attr("cursor",Ne);var Fe=_e?pe?ie.r>=ie.r0?"endArc":"startArc":ie.endAngle>=ie.startAngle?"endAngle":"startAngle":pe?ie.height>=0?"bottom":"top":ie.width>=0?"right":"left",ze=getLabelStatesModels(ae);setLabelStyle($,ze,{labelFetcher:le,labelDataIndex:oe,defaultText:getDefaultLabel(le.getData(),oe),inheritColor:Ce.fill,defaultOpacity:Ce.opacity,defaultOutsidePosition:Fe});var At=$.getTextContent();if(_e&&At){var Lt=ae.get(["label","position"]);$.textConfig.inside=Lt==="middle"?!0:null,setSectorTextRotation($,Lt==="outside"?Fe:Lt,createPolarPositionMapping(pe),ae.get(["label","rotate"]))}setLabelValueAnimation(At,ze,le.getRawValue(oe),function(vn){return getDefaultInterpolatedLabel(z,vn)});var hn=ae.getModel(["emphasis"]);toggleHoverEmphasis($,hn.get("focus"),hn.get("blurScope"),hn.get("disabled")),setStatesStylesFromModel($,ae),isZeroOnPolar(ie)&&($.style.fill="none",$.style.stroke="none",each$c($.states,function(vn){vn.style&&(vn.style.fill=vn.style.stroke="none")}))}function getLineWidth($,z){var oe=$.get(["itemStyle","borderColor"]);if(!oe||oe==="none")return 0;var ae=$.get(["itemStyle","borderWidth"])||0,ie=isNaN(z.width)?Number.MAX_VALUE:Math.abs(z.width),le=isNaN(z.height)?Number.MAX_VALUE:Math.abs(z.height);return Math.min(ae,ie,le)}var LagePathShape=function(){function $(){}return $}(),LargePath=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="largeBar",ae}return z.prototype.getDefaultShape=function(){return new LagePathShape},z.prototype.buildPath=function(oe,ae){for(var ie=ae.points,le=this.baseDimIdx,pe=1-this.baseDimIdx,_e=[],Ce=[],$e=this.barWidth,xe=0;xe<ie.length;xe+=3)Ce[le]=$e,Ce[pe]=ie[xe+2],_e[le]=ie[xe+le],_e[pe]=ie[xe+pe],oe.rect(_e[0],_e[1],Ce[0],Ce[1])},z}(Path$1);function createLarge($,z,oe,ae){var ie=$.getData(),le=ie.getLayout("valueAxisHorizontal")?1:0,pe=ie.getLayout("largeDataIndices"),_e=ie.getLayout("size"),Ce=$.getModel("backgroundStyle"),$e=ie.getLayout("largeBackgroundPoints");if($e){var xe=new LargePath({shape:{points:$e},incremental:!!ae,silent:!0,z2:0});xe.baseDimIdx=le,xe.largeDataIndices=pe,xe.barWidth=_e,xe.useStyle(Ce.getItemStyle()),z.add(xe),oe&&oe.push(xe)}var Ie=new LargePath({shape:{points:ie.getLayout("largePoints")},incremental:!!ae,ignoreCoarsePointer:!0,z2:1});Ie.baseDimIdx=le,Ie.largeDataIndices=pe,Ie.barWidth=_e,z.add(Ie),Ie.useStyle(ie.getVisual("style")),getECData(Ie).seriesIndex=$.seriesIndex,$.get("silent")||(Ie.on("mousedown",largePathUpdateDataIndex),Ie.on("mousemove",largePathUpdateDataIndex)),oe&&oe.push(Ie)}var largePathUpdateDataIndex=throttle(function($){var z=this,oe=largePathFindDataIndex(z,$.offsetX,$.offsetY);getECData(z).dataIndex=oe>=0?oe:null},30,!1);function largePathFindDataIndex($,z,oe){for(var ae=$.baseDimIdx,ie=1-ae,le=$.shape.points,pe=$.largeDataIndices,_e=[],Ce=[],$e=$.barWidth,xe=0,Ie=le.length/3;xe<Ie;xe++){var Ne=xe*3;if(Ce[ae]=$e,Ce[ie]=le[Ne+2],_e[ae]=le[Ne+ae],_e[ie]=le[Ne+ie],Ce[ie]<0&&(_e[ie]+=Ce[ie],Ce[ie]=-Ce[ie]),z>=_e[0]&&z<=_e[0]+Ce[0]&&oe>=_e[1]&&oe<=_e[1]+Ce[1])return pe[xe]}return-1}function createBackgroundShape($,z,oe){if(isCoordinateSystemType(oe,"cartesian2d")){var ae=z,ie=oe.getArea();return{x:$?ae.x:ie.x,y:$?ie.y:ae.y,width:$?ae.width:ie.width,height:$?ie.height:ae.height}}else{var ie=oe.getArea(),le=z;return{cx:ie.cx,cy:ie.cy,r0:$?ie.r0:le.r0,r:$?ie.r:le.r,startAngle:$?le.startAngle:0,endAngle:$?le.endAngle:Math.PI*2}}}function createBackgroundEl($,z,oe){var ae=$.type==="polar"?Sector$1:Rect$2;return new ae({shape:createBackgroundShape(z,oe,$),silent:!0,z2:0})}const BarView$1=BarView;function install$i($){$.registerChartView(BarView$1),$.registerSeriesModel(BarSeries),$.registerLayout($.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),$.registerLayout($.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),$.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(z,oe){var ae=z.componentType||"series";oe.eachComponent({mainType:ae,query:z},function(ie){z.sortInfo&&ie.axis.setCategorySortInfo(z.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect($,z){return getLayoutRect($.getBoxLayoutParams(),{width:z.getWidth(),height:z.getHeight()})}function getBasicPieLayout($,z){var oe=getViewRect($,z),ae=$.get("center"),ie=$.get("radius");isArray$1(ie)||(ie=[0,ie]);var le=parsePercent(oe.width,z.getWidth()),pe=parsePercent(oe.height,z.getHeight()),_e=Math.min(le,pe),Ce=parsePercent(ie[0],_e/2),$e=parsePercent(ie[1],_e/2),xe,Ie,Ne=$.coordinateSystem;if(Ne){var Fe=Ne.dataToPoint(ae);xe=Fe[0]||0,Ie=Fe[1]||0}else isArray$1(ae)||(ae=[ae,ae]),xe=parsePercent(ae[0],le)+oe.x,Ie=parsePercent(ae[1],pe)+oe.y;return{cx:xe,cy:Ie,r0:Ce,r:$e}}function pieLayout($,z,oe){z.eachSeriesByType($,function(ae){var ie=ae.getData(),le=ie.mapDimension("value"),pe=getViewRect(ae,oe),_e=getBasicPieLayout(ae,oe),Ce=_e.cx,$e=_e.cy,xe=_e.r,Ie=_e.r0,Ne=-ae.get("startAngle")*RADIAN$1,Fe=ae.get("minAngle")*RADIAN$1,ze=0;ie.each(le,function(xn){!isNaN(xn)&&ze++});var At=ie.getSum(le),Lt=Math.PI/(At||ze)*2,hn=ae.get("clockwise"),vn=ae.get("roseType"),_n=ae.get("stillShowZeroSum"),bn=ie.getDataExtent(le);bn[0]=0;var Cn=PI2,En=0,$n=Ne,wn=hn?1:-1;if(ie.setLayout({viewRect:pe,r:xe}),ie.each(le,function(xn,kn){var An;if(isNaN(xn)){ie.setItemLayout(kn,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:hn,cx:Ce,cy:$e,r0:Ie,r:vn?NaN:xe});return}vn!=="area"?An=At===0&&_n?Lt:xn*Lt:An=PI2/ze,An<Fe?(An=Fe,Cn-=Fe):En+=xn;var On=$n+wn*An;ie.setItemLayout(kn,{angle:An,startAngle:$n,endAngle:On,clockwise:hn,cx:Ce,cy:$e,r0:Ie,r:vn?linearMap$2(xn,bn,[Ie,xe]):xe}),$n=On}),Cn<PI2&&ze)if(Cn<=.001){var Tn=PI2/ze;ie.each(le,function(xn,kn){if(!isNaN(xn)){var An=ie.getItemLayout(kn);An.angle=Tn,An.startAngle=Ne+wn*kn*Tn,An.endAngle=Ne+wn*(kn+1)*Tn}})}else Lt=Cn/En,$n=Ne,ie.each(le,function(xn,kn){if(!isNaN(xn)){var An=ie.getItemLayout(kn),On=An.angle===Fe?Fe:xn*Lt;An.startAngle=$n,An.endAngle=$n+wn*On,$n+=wn*On}})})}function dataFilter($){return{seriesType:$,reset:function(z,oe){var ae=oe.findComponents({mainType:"legend"});if(!(!ae||!ae.length)){var ie=z.getData();ie.filterSelf(function(le){for(var pe=ie.getName(le),_e=0;_e<ae.length;_e++)if(!ae[_e].isSelected(pe))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide($,z,oe,ae,ie,le,pe,_e,Ce,$e){if($.length<2)return;function xe(At){for(var Lt=At.rB,hn=Lt*Lt,vn=0;vn<At.list.length;vn++){var _n=At.list[vn],bn=Math.abs(_n.label.y-oe),Cn=ae+_n.len,En=Cn*Cn,$n=Math.sqrt((1-Math.abs(bn*bn/hn))*En),wn=z+($n+_n.len2)*ie,Tn=wn-_n.label.x,xn=_n.targetTextWidth-Tn*ie;constrainTextWidth(_n,xn,!0),_n.label.x=wn}}function Ie(At){for(var Lt={list:[],maxY:0},hn={list:[],maxY:0},vn=0;vn<At.length;vn++)if(At[vn].labelAlignTo==="none"){var _n=At[vn],bn=_n.label.y>oe?hn:Lt,Cn=Math.abs(_n.label.y-oe);if(Cn>=bn.maxY){var En=_n.label.x-z-_n.len2*ie,$n=ae+_n.len,wn=Math.abs(En)<$n?Math.sqrt(Cn*Cn/(1-En*En/$n/$n)):$n;bn.rB=wn,bn.maxY=Cn}bn.list.push(_n)}xe(Lt),xe(hn)}for(var Ne=$.length,Fe=0;Fe<Ne;Fe++)if($[Fe].position==="outer"&&$[Fe].labelAlignTo==="labelLine"){var ze=$[Fe].label.x-$e;$[Fe].linePoints[1][0]+=ze,$[Fe].label.x=$e}shiftLayoutOnY($,Ce,Ce+pe)&&Ie($)}function avoidOverlap($,z,oe,ae,ie,le,pe,_e){for(var Ce=[],$e=[],xe=Number.MAX_VALUE,Ie=-Number.MAX_VALUE,Ne=0;Ne<$.length;Ne++){var Fe=$[Ne].label;isPositionCenter($[Ne])||(Fe.x<z?(xe=Math.min(xe,Fe.x),Ce.push($[Ne])):(Ie=Math.max(Ie,Fe.x),$e.push($[Ne])))}for(var Ne=0;Ne<$.length;Ne++){var ze=$[Ne];if(!isPositionCenter(ze)&&ze.linePoints){if(ze.labelStyleWidth!=null)continue;var Fe=ze.label,At=ze.linePoints,Lt=void 0;ze.labelAlignTo==="edge"?Fe.x<z?Lt=At[2][0]-ze.labelDistance-pe-ze.edgeDistance:Lt=pe+ie-ze.edgeDistance-At[2][0]-ze.labelDistance:ze.labelAlignTo==="labelLine"?Fe.x<z?Lt=xe-pe-ze.bleedMargin:Lt=pe+ie-Ie-ze.bleedMargin:Fe.x<z?Lt=Fe.x-pe-ze.bleedMargin:Lt=pe+ie-Fe.x-ze.bleedMargin,ze.targetTextWidth=Lt,constrainTextWidth(ze,Lt)}}adjustSingleSide($e,z,oe,ae,1,ie,le,pe,_e,Ie),adjustSingleSide(Ce,z,oe,ae,-1,ie,le,pe,_e,xe);for(var Ne=0;Ne<$.length;Ne++){var ze=$[Ne];if(!isPositionCenter(ze)&&ze.linePoints){var Fe=ze.label,At=ze.linePoints,hn=ze.labelAlignTo==="edge",vn=Fe.style.padding,_n=vn?vn[1]+vn[3]:0,bn=Fe.style.backgroundColor?0:_n,Cn=ze.rect.width+bn,En=At[1][0]-At[2][0];hn?Fe.x<z?At[2][0]=pe+ze.edgeDistance+Cn+ze.labelDistance:At[2][0]=pe+ie-ze.edgeDistance-Cn-ze.labelDistance:(Fe.x<z?At[2][0]=Fe.x+ze.labelDistance:At[2][0]=Fe.x-ze.labelDistance,At[1][0]=At[2][0]+En),At[1][1]=At[2][1]=Fe.y}}}function constrainTextWidth($,z,oe){if(oe===void 0&&(oe=!1),$.labelStyleWidth==null){var ae=$.label,ie=ae.style,le=$.rect,pe=ie.backgroundColor,_e=ie.padding,Ce=_e?_e[1]+_e[3]:0,$e=ie.overflow,xe=le.width+(pe?0:Ce);if(z<xe||oe){var Ie=le.height;if($e&&$e.match("break")){ae.setStyle("backgroundColor",null),ae.setStyle("width",z-Ce);var Ne=ae.getBoundingRect();ae.setStyle("width",Math.ceil(Ne.width)),ae.setStyle("backgroundColor",pe)}else{var Fe=z-Ce,ze=z<xe?Fe:oe?Fe>$.unconstrainedWidth?null:Fe:null;ae.setStyle("width",ze)}var At=ae.getBoundingRect();le.width=At.width;var Lt=(ae.style.margin||0)+2.1;le.height=At.height+Lt,le.y-=(le.height-Ie)/2}}}function isPositionCenter($){return $.position==="center"}function pieLabelLayout($){var z=$.getData(),oe=[],ae,ie,le=!1,pe=($.get("minShowLabelAngle")||0)*RADIAN,_e=z.getLayout("viewRect"),Ce=z.getLayout("r"),$e=_e.width,xe=_e.x,Ie=_e.y,Ne=_e.height;function Fe(En){En.ignore=!0}function ze(En){if(!En.ignore)return!0;for(var $n in En.states)if(En.states[$n].ignore===!1)return!0;return!1}z.each(function(En){var $n=z.getItemGraphicEl(En),wn=$n.shape,Tn=$n.getTextContent(),xn=$n.getTextGuideLine(),kn=z.getItemModel(En),An=kn.getModel("label"),On=An.get("position")||kn.get(["emphasis","label","position"]),Mn=An.get("distanceToLabelLine"),Fn=An.get("alignTo"),Dn=parsePercent(An.get("edgeDistance"),$e),Nn=An.get("bleedMargin"),Vn=kn.getModel("labelLine"),Bn=Vn.get("length");Bn=parsePercent(Bn,$e);var zn=Vn.get("length2");if(zn=parsePercent(zn,$e),Math.abs(wn.endAngle-wn.startAngle)<pe){each$c(Tn.states,Fe),Tn.ignore=!0,xn&&(each$c(xn.states,Fe),xn.ignore=!0);return}if(ze(Tn)){var Xn=(wn.startAngle+wn.endAngle)/2,Un=Math.cos(Xn),Jn=Math.sin(Xn),lr,_r,ir,qn;ae=wn.cx,ie=wn.cy;var Yn=On==="inside"||On==="inner";if(On==="center")lr=wn.cx,_r=wn.cy,qn="center";else{var Wn=(Yn?(wn.r+wn.r0)/2*Un:wn.r*Un)+ae,tr=(Yn?(wn.r+wn.r0)/2*Jn:wn.r*Jn)+ie;if(lr=Wn+Un*3,_r=tr+Jn*3,!Yn){var pr=Wn+Un*(Bn+Ce-wn.r),Gn=tr+Jn*(Bn+Ce-wn.r),Zn=pr+(Un<0?-1:1)*zn,rr=Gn;Fn==="edge"?lr=Un<0?xe+Dn:xe+$e-Dn:lr=Zn+(Un<0?-Mn:Mn),_r=rr,ir=[[Wn,tr],[pr,Gn],[Zn,rr]]}qn=Yn?"center":Fn==="edge"?Un>0?"right":"left":Un>0?"left":"right"}var mr=Math.PI,Sr=0,ar=An.get("rotate");if(isNumber(ar))Sr=ar*(mr/180);else if(On==="center")Sr=0;else if(ar==="radial"||ar===!0){var xr=Un<0?-Xn+mr:-Xn;Sr=xr}else if(ar==="tangential"&&On!=="outside"&&On!=="outer"){var gr=Math.atan2(Un,Jn);gr<0&&(gr=mr*2+gr);var Pr=Jn>0;Pr&&(gr=mr+gr),Sr=gr-mr}if(le=!!Sr,Tn.x=lr,Tn.y=_r,Tn.rotation=Sr,Tn.setStyle({verticalAlign:"middle"}),Yn){Tn.setStyle({align:qn});var cr=Tn.states.select;cr&&(cr.x+=Tn.x,cr.y+=Tn.y)}else{var dr=Tn.getBoundingRect().clone();dr.applyTransform(Tn.getComputedTransform());var sr=(Tn.style.margin||0)+2.1;dr.y-=sr/2,dr.height+=sr,oe.push({label:Tn,labelLine:xn,position:On,len:Bn,len2:zn,minTurnAngle:Vn.get("minTurnAngle"),maxSurfaceAngle:Vn.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Un,Jn),linePoints:ir,textAlign:qn,labelDistance:Mn,labelAlignTo:Fn,edgeDistance:Dn,bleedMargin:Nn,rect:dr,unconstrainedWidth:dr.width,labelStyleWidth:Tn.style.width})}$n.setTextConfig({inside:Yn})}}),!le&&$.get("avoidLabelOverlap")&&avoidOverlap(oe,ae,ie,Ce,$e,Ne,xe,Ie);for(var At=0;At<oe.length;At++){var Lt=oe[At],hn=Lt.label,vn=Lt.labelLine,_n=isNaN(hn.x)||isNaN(hn.y);if(hn){hn.setStyle({align:Lt.textAlign}),_n&&(each$c(hn.states,Fe),hn.ignore=!0);var bn=hn.states.select;bn&&(bn.x+=hn.x,bn.y+=hn.y)}if(vn){var Cn=Lt.linePoints;_n||!Cn?(each$c(vn.states,Fe),vn.ignore=!0):(limitTurnAngle(Cn,Lt.minTurnAngle),limitSurfaceAngle(Cn,Lt.surfaceNormal,Lt.maxSurfaceAngle),vn.setShape({points:Cn}),hn.__hostTarget.textGuideLineConfig={anchor:new Point$1(Cn[0][0],Cn[0][1])})}}}var PiePiece=function($){__extends(z,$);function z(oe,ae,ie){var le=$.call(this)||this;le.z2=2;var pe=new ZRText$1;return le.setTextContent(pe),le.updateData(oe,ae,ie,!0),le}return z.prototype.updateData=function(oe,ae,ie,le){var pe=this,_e=oe.hostModel,Ce=oe.getItemModel(ae),$e=Ce.getModel("emphasis"),xe=oe.getItemLayout(ae),Ie=extend(getSectorCornerRadius(Ce.getModel("itemStyle"),xe,!0),xe);if(isNaN(Ie.startAngle)){pe.setShape(Ie);return}if(le){pe.setShape(Ie);var Ne=_e.getShallow("animationType");_e.ecModel.ssr?(initProps(pe,{scaleX:0,scaleY:0},_e,{dataIndex:ae,isFrom:!0}),pe.originX=Ie.cx,pe.originY=Ie.cy):Ne==="scale"?(pe.shape.r=xe.r0,initProps(pe,{shape:{r:xe.r}},_e,ae)):ie!=null?(pe.setShape({startAngle:ie,endAngle:ie}),initProps(pe,{shape:{startAngle:xe.startAngle,endAngle:xe.endAngle}},_e,ae)):(pe.shape.endAngle=xe.startAngle,updateProps$1(pe,{shape:{endAngle:xe.endAngle}},_e,ae))}else saveOldStyle(pe),updateProps$1(pe,{shape:Ie},_e,ae);pe.useStyle(oe.getItemVisual(ae,"style")),setStatesStylesFromModel(pe,Ce);var Fe=(xe.startAngle+xe.endAngle)/2,ze=_e.get("selectedOffset"),At=Math.cos(Fe)*ze,Lt=Math.sin(Fe)*ze,hn=Ce.getShallow("cursor");hn&&pe.attr("cursor",hn),this._updateLabel(_e,oe,ae),pe.ensureState("emphasis").shape=extend({r:xe.r+($e.get("scale")&&$e.get("scaleSize")||0)},getSectorCornerRadius($e.getModel("itemStyle"),xe)),extend(pe.ensureState("select"),{x:At,y:Lt,shape:getSectorCornerRadius(Ce.getModel(["select","itemStyle"]),xe)}),extend(pe.ensureState("blur"),{shape:getSectorCornerRadius(Ce.getModel(["blur","itemStyle"]),xe)});var vn=pe.getTextGuideLine(),_n=pe.getTextContent();vn&&extend(vn.ensureState("select"),{x:At,y:Lt}),extend(_n.ensureState("select"),{x:At,y:Lt}),toggleHoverEmphasis(this,$e.get("focus"),$e.get("blurScope"),$e.get("disabled"))},z.prototype._updateLabel=function(oe,ae,ie){var le=this,pe=ae.getItemModel(ie),_e=pe.getModel("labelLine"),Ce=ae.getItemVisual(ie,"style"),$e=Ce&&Ce.fill,xe=Ce&&Ce.opacity;setLabelStyle(le,getLabelStatesModels(pe),{labelFetcher:ae.hostModel,labelDataIndex:ie,inheritColor:$e,defaultOpacity:xe,defaultText:oe.getFormattedLabel(ie,"normal")||ae.getName(ie)});var Ie=le.getTextContent();le.setTextConfig({position:null,rotation:null}),Ie.attr({z2:10});var Ne=oe.get(["label","position"]);if(Ne!=="outside"&&Ne!=="outer")le.removeTextGuideLine();else{var Fe=this.getTextGuideLine();Fe||(Fe=new Polyline$1,this.setTextGuideLine(Fe)),setLabelLineStyle(this,getLabelLineStatesModels(pe),{stroke:$e,opacity:retrieve3(_e.get(["lineStyle","opacity"]),xe,1)})}},z}(Sector$1),PieView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.ignoreLabelLineUpdate=!0,oe}return z.prototype.render=function(oe,ae,ie,le){var pe=oe.getData(),_e=this._data,Ce=this.group,$e;if(!_e&&pe.count()>0){for(var xe=pe.getItemLayout(0),Ie=1;isNaN(xe&&xe.startAngle)&&Ie<pe.count();++Ie)xe=pe.getItemLayout(Ie);xe&&($e=xe.startAngle)}if(this._emptyCircleSector&&Ce.remove(this._emptyCircleSector),pe.count()===0&&oe.get("showEmptyCircle")){var Ne=new Sector$1({shape:getBasicPieLayout(oe,ie)});Ne.useStyle(oe.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=Ne,Ce.add(Ne)}pe.diff(_e).add(function(Fe){var ze=new PiePiece(pe,Fe,$e);pe.setItemGraphicEl(Fe,ze),Ce.add(ze)}).update(function(Fe,ze){var At=_e.getItemGraphicEl(ze);At.updateData(pe,Fe,$e),At.off("click"),Ce.add(At),pe.setItemGraphicEl(Fe,At)}).remove(function(Fe){var ze=_e.getItemGraphicEl(Fe);removeElementWithFadeOut(ze,oe,Fe)}).execute(),pieLabelLayout(oe),oe.get("animationTypeUpdate")!=="expansion"&&(this._data=pe)},z.prototype.dispose=function(){},z.prototype.containPoint=function(oe,ae){var ie=ae.getData(),le=ie.getItemLayout(0);if(le){var pe=oe[0]-le.cx,_e=oe[1]-le.cy,Ce=Math.sqrt(pe*pe+_e*_e);return Ce<=le.r&&Ce>=le.r0}},z.type="pie",z}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply($,z,oe){z=isArray$1(z)&&{coordDimensions:z}||extend({encodeDefine:$.getEncode()},z);var ae=$.getSource(),ie=prepareSeriesDataSchema(ae,z).dimensions,le=new SeriesData$1(ie,$);return le.initData(ae,oe),le}var LegendVisualProvider=function(){function $(z,oe){this._getDataWithEncodedVisual=z,this._getRawData=oe}return $.prototype.getAllNames=function(){var z=this._getRawData();return z.mapArray(z.getName)},$.prototype.containName=function(z){var oe=this._getRawData();return oe.indexOfName(z)>=0},$.prototype.indexOfName=function(z){var oe=this._getDataWithEncodedVisual();return oe.indexOfName(z)},$.prototype.getItemVisual=function(z,oe){var ae=this._getDataWithEncodedVisual();return ae.getItemVisual(z,oe)},$}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(oe){$.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(oe)},z.prototype.mergeOption=function(){$.prototype.mergeOption.apply(this,arguments)},z.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},z.prototype.getDataParams=function(oe){var ae=this.getData(),ie=innerData(ae),le=ie.seats;if(!le){var pe=[];ae.each(ae.mapDimension("value"),function(Ce){pe.push(Ce)}),le=ie.seats=getPercentSeats(pe,ae.hostModel.get("percentPrecision"))}var _e=$.prototype.getDataParams.call(this,oe);return _e.percent=le[oe]||0,_e.$vars.push("percent"),_e},z.prototype._defaultLabelLine=function(oe){defaultEmphasis(oe,"labelLine",["show"]);var ae=oe.labelLine,ie=oe.emphasis.labelLine;ae.show=ae.show&&oe.label.show,ie.show=ie.show&&oe.emphasis.label.show},z.type="series.pie",z.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"},z}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter($){return{seriesType:$,reset:function(z,oe){var ae=z.getData();ae.filterSelf(function(ie){var le=ae.mapDimension("value"),pe=ae.get(le,ie);return!(isNumber(pe)&&!isNaN(pe)&&pe<0)})}}}function install$h($){$.registerChartView(PieView$1),$.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",$.registerAction),$.registerLayout(curry$1(pieLayout,"pie")),$.registerProcessor(dataFilter("pie")),$.registerProcessor(negativeDataFilter("pie"))}var GridModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.type="grid",z.dependencies=["xAxis","yAxis"],z.layoutMode="box",z.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"},z}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},z.type="cartesian2dAxis",z}(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($,z,oe,ae){each$c(AXIS_TYPES,function(ie,le){var pe=merge(merge({},axisDefault[le],!0),ae,!0),_e=function(Ce){__extends($e,Ce);function $e(){var xe=Ce!==null&&Ce.apply(this,arguments)||this;return xe.type=z+"Axis."+le,xe}return $e.prototype.mergeDefaultAndTheme=function(xe,Ie){var Ne=fetchLayoutMode(this),Fe=Ne?getLayoutParams(xe):{},ze=Ie.getTheme();merge(xe,ze.get(le+"Axis")),merge(xe,this.getDefaultOption()),xe.type=getAxisType(xe),Ne&&mergeLayoutParam(xe,Fe,Ne)},$e.prototype.optionUpdated=function(){var xe=this.option;xe.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},$e.prototype.getCategories=function(xe){var Ie=this.option;if(Ie.type==="category")return xe?Ie.data:this.__ordinalMeta.categories},$e.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},$e.type=z+"Axis."+le,$e.defaultOption=pe,$e}(oe);$.registerComponentModel(_e)}),$.registerSubTypeDefaulter(z+"Axis",getAxisType)}function getAxisType($){return $.type||($.data?"category":"value")}var Cartesian=function(){function $(z){this.type="cartesian",this._dimList=[],this._axes={},this.name=z||""}return $.prototype.getAxis=function(z){return this._axes[z]},$.prototype.getAxes=function(){return map$2(this._dimList,function(z){return this._axes[z]},this)},$.prototype.getAxesByScale=function(z){return z=z.toLowerCase(),filter(this.getAxes(),function(oe){return oe.scale.type===z})},$.prototype.addAxis=function(z){var oe=z.dim;this._axes[oe]=z,this._dimList.push(oe)},$}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform($){return $.type==="interval"||$.type==="time"}var Cartesian2D=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="cartesian2d",oe.dimensions=cartesian2DDimensions,oe}return z.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var oe=this.getAxis("x").scale,ae=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(oe)||!canCalculateAffineTransform(ae))){var ie=oe.getExtent(),le=ae.getExtent(),pe=this.dataToPoint([ie[0],le[0]]),_e=this.dataToPoint([ie[1],le[1]]),Ce=ie[1]-ie[0],$e=le[1]-le[0];if(!(!Ce||!$e)){var xe=(_e[0]-pe[0])/Ce,Ie=(_e[1]-pe[1])/$e,Ne=pe[0]-ie[0]*xe,Fe=pe[1]-le[0]*Ie,ze=this._transform=[xe,0,0,Ie,Ne,Fe];this._invTransform=invert([],ze)}}},z.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},z.prototype.containPoint=function(oe){var ae=this.getAxis("x"),ie=this.getAxis("y");return ae.contain(ae.toLocalCoord(oe[0]))&&ie.contain(ie.toLocalCoord(oe[1]))},z.prototype.containData=function(oe){return this.getAxis("x").containData(oe[0])&&this.getAxis("y").containData(oe[1])},z.prototype.containZone=function(oe,ae){var ie=this.dataToPoint(oe),le=this.dataToPoint(ae),pe=this.getArea(),_e=new BoundingRect$1(ie[0],ie[1],le[0]-ie[0],le[1]-ie[1]);return pe.intersect(_e)},z.prototype.dataToPoint=function(oe,ae,ie){ie=ie||[];var le=oe[0],pe=oe[1];if(this._transform&&le!=null&&isFinite(le)&&pe!=null&&isFinite(pe))return applyTransform$1(ie,oe,this._transform);var _e=this.getAxis("x"),Ce=this.getAxis("y");return ie[0]=_e.toGlobalCoord(_e.dataToCoord(le,ae)),ie[1]=Ce.toGlobalCoord(Ce.dataToCoord(pe,ae)),ie},z.prototype.clampData=function(oe,ae){var ie=this.getAxis("x").scale,le=this.getAxis("y").scale,pe=ie.getExtent(),_e=le.getExtent(),Ce=ie.parse(oe[0]),$e=le.parse(oe[1]);return ae=ae||[],ae[0]=Math.min(Math.max(Math.min(pe[0],pe[1]),Ce),Math.max(pe[0],pe[1])),ae[1]=Math.min(Math.max(Math.min(_e[0],_e[1]),$e),Math.max(_e[0],_e[1])),ae},z.prototype.pointToData=function(oe,ae){var ie=[];if(this._invTransform)return applyTransform$1(ie,oe,this._invTransform);var le=this.getAxis("x"),pe=this.getAxis("y");return ie[0]=le.coordToData(le.toLocalCoord(oe[0]),ae),ie[1]=pe.coordToData(pe.toLocalCoord(oe[1]),ae),ie},z.prototype.getOtherAxis=function(oe){return this.getAxis(oe.dim==="x"?"y":"x")},z.prototype.getArea=function(){var oe=this.getAxis("x").getGlobalExtent(),ae=this.getAxis("y").getGlobalExtent(),ie=Math.min(oe[0],oe[1]),le=Math.min(ae[0],ae[1]),pe=Math.max(oe[0],oe[1])-ie,_e=Math.max(ae[0],ae[1])-le;return new BoundingRect$1(ie,le,pe,_e)},z}(Cartesian$1),Axis2D=function($){__extends(z,$);function z(oe,ae,ie,le,pe){var _e=$.call(this,oe,ae,ie)||this;return _e.index=0,_e.type=le||"value",_e.position=pe||"bottom",_e}return z.prototype.isHorizontal=function(){var oe=this.position;return oe==="top"||oe==="bottom"},z.prototype.getGlobalExtent=function(oe){var ae=this.getExtent();return ae[0]=this.toGlobalCoord(ae[0]),ae[1]=this.toGlobalCoord(ae[1]),oe&&ae[0]>ae[1]&&ae.reverse(),ae},z.prototype.pointToData=function(oe,ae){return this.coordToData(this.toLocalCoord(oe[this.dim==="x"?0:1]),ae)},z.prototype.setCategorySortInfo=function(oe){if(this.type!=="category")return!1;this.model.option.categorySortInfo=oe,this.scale.setSortInfo(oe)},z}(Axis$1);const Axis2D$1=Axis2D;function layout$1($,z,oe){oe=oe||{};var ae=$.coordinateSystem,ie=z.axis,le={},pe=ie.getAxesOnZeroOf()[0],_e=ie.position,Ce=pe?"onZero":_e,$e=ie.dim,xe=ae.getRect(),Ie=[xe.x,xe.x+xe.width,xe.y,xe.y+xe.height],Ne={left:0,right:1,top:0,bottom:1,onZero:2},Fe=z.get("offset")||0,ze=$e==="x"?[Ie[2]-Fe,Ie[3]+Fe]:[Ie[0]-Fe,Ie[1]+Fe];if(pe){var At=pe.toGlobalCoord(pe.dataToCoord(0));ze[Ne.onZero]=Math.max(Math.min(At,ze[1]),ze[0])}le.position=[$e==="y"?ze[Ne[Ce]]:Ie[0],$e==="x"?ze[Ne[Ce]]:Ie[3]],le.rotation=Math.PI/2*($e==="x"?0:1);var Lt={top:-1,bottom:1,left:-1,right:1};le.labelDirection=le.tickDirection=le.nameDirection=Lt[_e],le.labelOffset=pe?ze[Ne[_e]]-ze[Ne.onZero]:0,z.get(["axisTick","inside"])&&(le.tickDirection=-le.tickDirection),retrieve(oe.labelInside,z.get(["axisLabel","inside"]))&&(le.labelDirection=-le.labelDirection);var hn=z.get(["axisLabel","rotate"]);return le.labelRotate=Ce==="top"?-hn:hn,le.z2=1,le}function isCartesian2DSeries($){return $.get("coordinateSystem")==="cartesian2d"}function findAxisModels($){var z={xAxisModel:null,yAxisModel:null};return each$c(z,function(oe,ae){var ie=ae.replace(/Model$/,""),le=$.getReferringComponents(ie,SINGLE_REFERRING).models[0];z[ae]=le}),z}var mathLog=Math.log;function alignScaleTicks($,z,oe){var ae=IntervalScale$1.prototype,ie=ae.getTicks.call(oe),le=ae.getTicks.call(oe,!0),pe=ie.length-1,_e=ae.getInterval.call(oe),Ce=getScaleExtent($,z),$e=Ce.extent,xe=Ce.fixMin,Ie=Ce.fixMax;if($.type==="log"){var Ne=mathLog($.base);$e=[mathLog($e[0])/Ne,mathLog($e[1])/Ne]}$.setExtent($e[0],$e[1]),$.calcNiceExtent({splitNumber:pe,fixMin:xe,fixMax:Ie});var Fe=ae.getExtent.call($);xe&&($e[0]=Fe[0]),Ie&&($e[1]=Fe[1]);var ze=ae.getInterval.call($),At=$e[0],Lt=$e[1];if(xe&&Ie)ze=(Lt-At)/pe;else if(xe)for(Lt=$e[0]+ze*pe;Lt<$e[1]&&isFinite(Lt)&&isFinite($e[1]);)ze=increaseInterval(ze),Lt=$e[0]+ze*pe;else if(Ie)for(At=$e[1]-ze*pe;At>$e[0]&&isFinite(At)&&isFinite($e[0]);)ze=increaseInterval(ze),At=$e[1]-ze*pe;else{var hn=$.getTicks().length-1;hn>pe&&(ze=increaseInterval(ze));var vn=ze*pe;Lt=Math.ceil($e[1]/ze)*ze,At=round$1(Lt-vn),At<0&&$e[0]>=0?(At=0,Lt=round$1(vn)):Lt>0&&$e[1]<=0&&(Lt=0,At=-round$1(vn))}var _n=(ie[0].value-le[0].value)/_e,bn=(ie[pe].value-le[pe].value)/_e;ae.setExtent.call($,At+ze*_n,Lt+ze*bn),ae.setInterval.call($,ze),(_n||bn)&&ae.setNiceExtent.call($,At+ze,Lt-ze)}var Grid=function(){function $(z,oe,ae){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(z,oe,ae),this.model=z}return $.prototype.getRect=function(){return this._rect},$.prototype.update=function(z,oe){var ae=this._axesMap;this._updateScale(z,this.model);function ie(pe){var _e,Ce=keys(pe),$e=Ce.length;if($e){for(var xe=[],Ie=$e-1;Ie>=0;Ie--){var Ne=+Ce[Ie],Fe=pe[Ne],ze=Fe.model,At=Fe.scale;isIntervalOrLogScale(At)&&ze.get("alignTicks")&&ze.get("interval")==null?xe.push(Fe):(niceScaleExtent(At,ze),isIntervalOrLogScale(At)&&(_e=Fe))}xe.length&&(_e||(_e=xe.pop(),niceScaleExtent(_e.scale,_e.model)),each$c(xe,function(Lt){alignScaleTicks(Lt.scale,Lt.model,_e.scale)}))}}ie(ae.x),ie(ae.y);var le={};each$c(ae.x,function(pe){fixAxisOnZero(ae,"y",pe,le)}),each$c(ae.y,function(pe){fixAxisOnZero(ae,"x",pe,le)}),this.resize(this.model,oe)},$.prototype.resize=function(z,oe,ae){var ie=z.getBoxLayoutParams(),le=!ae&&z.get("containLabel"),pe=getLayoutRect(ie,{width:oe.getWidth(),height:oe.getHeight()});this._rect=pe;var _e=this._axesList;Ce(),le&&(each$c(_e,function($e){if(!$e.model.get(["axisLabel","inside"])){var xe=estimateLabelUnionRect($e);if(xe){var Ie=$e.isHorizontal()?"height":"width",Ne=$e.model.get(["axisLabel","margin"]);pe[Ie]-=xe[Ie]+Ne,$e.position==="top"?pe.y+=xe.height+Ne:$e.position==="left"&&(pe.x+=xe.width+Ne)}}}),Ce()),each$c(this._coordsList,function($e){$e.calcAffineTransform()});function Ce(){each$c(_e,function($e){var xe=$e.isHorizontal(),Ie=xe?[0,pe.width]:[0,pe.height],Ne=$e.inverse?1:0;$e.setExtent(Ie[Ne],Ie[1-Ne]),updateAxisTransform($e,xe?pe.x:pe.y)})}},$.prototype.getAxis=function(z,oe){var ae=this._axesMap[z];if(ae!=null)return ae[oe||0]},$.prototype.getAxes=function(){return this._axesList.slice()},$.prototype.getCartesian=function(z,oe){if(z!=null&&oe!=null){var ae="x"+z+"y"+oe;return this._coordsMap[ae]}isObject$3(z)&&(oe=z.yAxisIndex,z=z.xAxisIndex);for(var ie=0,le=this._coordsList;ie<le.length;ie++)if(le[ie].getAxis("x").index===z||le[ie].getAxis("y").index===oe)return le[ie]},$.prototype.getCartesians=function(){return this._coordsList.slice()},$.prototype.convertToPixel=function(z,oe,ae){var ie=this._findConvertTarget(oe);return ie.cartesian?ie.cartesian.dataToPoint(ae):ie.axis?ie.axis.toGlobalCoord(ie.axis.dataToCoord(ae)):null},$.prototype.convertFromPixel=function(z,oe,ae){var ie=this._findConvertTarget(oe);return ie.cartesian?ie.cartesian.pointToData(ae):ie.axis?ie.axis.coordToData(ie.axis.toLocalCoord(ae)):null},$.prototype._findConvertTarget=function(z){var oe=z.seriesModel,ae=z.xAxisModel||oe&&oe.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],ie=z.yAxisModel||oe&&oe.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],le=z.gridModel,pe=this._coordsList,_e,Ce;if(oe)_e=oe.coordinateSystem,indexOf(pe,_e)<0&&(_e=null);else if(ae&&ie)_e=this.getCartesian(ae.componentIndex,ie.componentIndex);else if(ae)Ce=this.getAxis("x",ae.componentIndex);else if(ie)Ce=this.getAxis("y",ie.componentIndex);else if(le){var $e=le.coordinateSystem;$e===this&&(_e=this._coordsList[0])}return{cartesian:_e,axis:Ce}},$.prototype.containPoint=function(z){var oe=this._coordsList[0];if(oe)return oe.containPoint(z)},$.prototype._initCartesian=function(z,oe,ae){var ie=this,le=this,pe={left:!1,right:!1,top:!1,bottom:!1},_e={x:{},y:{}},Ce={x:0,y:0};if(oe.eachComponent("xAxis",$e("x"),this),oe.eachComponent("yAxis",$e("y"),this),!Ce.x||!Ce.y){this._axesMap={},this._axesList=[];return}this._axesMap=_e,each$c(_e.x,function(xe,Ie){each$c(_e.y,function(Ne,Fe){var ze="x"+Ie+"y"+Fe,At=new Cartesian2D(ze);At.master=ie,At.model=z,ie._coordsMap[ze]=At,ie._coordsList.push(At),At.addAxis(xe),At.addAxis(Ne)})});function $e(xe){return function(Ie,Ne){if(isAxisUsedInTheGrid(Ie,z)){var Fe=Ie.get("position");xe==="x"?Fe!=="top"&&Fe!=="bottom"&&(Fe=pe.bottom?"top":"bottom"):Fe!=="left"&&Fe!=="right"&&(Fe=pe.left?"right":"left"),pe[Fe]=!0;var ze=new Axis2D$1(xe,createScaleByModel(Ie),[0,0],Ie.get("type"),Fe),At=ze.type==="category";ze.onBand=At&&Ie.get("boundaryGap"),ze.inverse=Ie.get("inverse"),Ie.axis=ze,ze.model=Ie,ze.grid=le,ze.index=Ne,le._axesList.push(ze),_e[xe][Ne]=ze,Ce[xe]++}}}},$.prototype._updateScale=function(z,oe){each$c(this._axesList,function(ie){if(ie.scale.setExtent(1/0,-1/0),ie.type==="category"){var le=ie.model.get("categorySortInfo");ie.scale.setSortInfo(le)}}),z.eachSeries(function(ie){if(isCartesian2DSeries(ie)){var le=findAxisModels(ie),pe=le.xAxisModel,_e=le.yAxisModel;if(!isAxisUsedInTheGrid(pe,oe)||!isAxisUsedInTheGrid(_e,oe))return;var Ce=this.getCartesian(pe.componentIndex,_e.componentIndex),$e=ie.getData(),xe=Ce.getAxis("x"),Ie=Ce.getAxis("y");ae($e,xe),ae($e,Ie)}},this);function ae(ie,le){each$c(getDataDimensionsOnAxis(ie,le.dim),function(pe){le.scale.unionExtentFromData(ie,pe)})}},$.prototype.getTooltipAxes=function(z){var oe=[],ae=[];return each$c(this.getCartesians(),function(ie){var le=z!=null&&z!=="auto"?ie.getAxis(z):ie.getBaseAxis(),pe=ie.getOtherAxis(le);indexOf(oe,le)<0&&oe.push(le),indexOf(ae,pe)<0&&ae.push(pe)}),{baseAxes:oe,otherAxes:ae}},$.create=function(z,oe){var ae=[];return z.eachComponent("grid",function(ie,le){var pe=new $(ie,z,oe);pe.name="grid_"+le,pe.resize(ie,oe,!0),ie.coordinateSystem=pe,ae.push(pe)}),z.eachSeries(function(ie){if(isCartesian2DSeries(ie)){var le=findAxisModels(ie),pe=le.xAxisModel,_e=le.yAxisModel,Ce=pe.getCoordSysModel(),$e=Ce.coordinateSystem;ie.coordinateSystem=$e.getCartesian(pe.componentIndex,_e.componentIndex)}}),ae},$.dimensions=cartesian2DDimensions,$}();function isAxisUsedInTheGrid($,z){return $.getCoordSysModel()===z}function fixAxisOnZero($,z,oe,ae){oe.getAxesOnZeroOf=function(){return le?[le]:[]};var ie=$[z],le,pe=oe.model,_e=pe.get(["axisLine","onZero"]),Ce=pe.get(["axisLine","onZeroAxisIndex"]);if(!_e)return;if(Ce!=null)canOnZeroToAxis(ie[Ce])&&(le=ie[Ce]);else for(var $e in ie)if(ie.hasOwnProperty($e)&&canOnZeroToAxis(ie[$e])&&!ae[xe(ie[$e])]){le=ie[$e];break}le&&(ae[xe(le)]=!0);function xe(Ie){return Ie.dim+"_"+Ie.index}}function canOnZeroToAxis($){return $&&$.type!=="category"&&$.type!=="time"&&ifAxisCrossZero($)}function updateAxisTransform($,z){var oe=$.getExtent(),ae=oe[0]+oe[1];$.toGlobalCoord=$.dim==="x"?function(ie){return ie+z}:function(ie){return ae-ie+z},$.toLocalCoord=$.dim==="x"?function(ie){return ie-z}:function(ie){return ae-ie+z}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function $(z,oe){this.group=new Group$3,this.opt=oe,this.axisModel=z,defaults(oe,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var ae=new Group$3({x:oe.position[0],y:oe.position[1],rotation:oe.rotation});ae.updateTransform(),this._transformGroup=ae}return $.prototype.hasBuilder=function(z){return!!builders[z]},$.prototype.add=function(z){builders[z](this.opt,this.axisModel,this.group,this._transformGroup)},$.prototype.getGroup=function(){return this.group},$.innerTextLayout=function(z,oe,ae){var ie=remRadian(oe-z),le,pe;return isRadianAroundZero(ie)?(pe=ae>0?"top":"bottom",le="center"):isRadianAroundZero(ie-PI)?(pe=ae>0?"bottom":"top",le="center"):(pe="middle",ie>0&&ie<PI?le=ae>0?"right":"left":le=ae>0?"left":"right"),{rotation:ie,textAlign:le,textVerticalAlign:pe}},$.makeAxisEventDataBase=function(z){var oe={componentType:z.mainType,componentIndex:z.componentIndex};return oe[z.mainType+"Index"]=z.componentIndex,oe},$.isLabelSilent=function(z){var oe=z.get("tooltip");return z.get("silent")||!(z.get("triggerEvent")||oe&&oe.show)},$}(),builders={axisLine:function($,z,oe,ae){var ie=z.get(["axisLine","show"]);if(ie==="auto"&&$.handleAutoShown&&(ie=$.handleAutoShown("axisLine")),!!ie){var le=z.axis.getExtent(),pe=ae.transform,_e=[le[0],0],Ce=[le[1],0],$e=_e[0]>Ce[0];pe&&(applyTransform$1(_e,_e,pe),applyTransform$1(Ce,Ce,pe));var xe=extend({lineCap:"round"},z.getModel(["axisLine","lineStyle"]).getLineStyle()),Ie=new Line$1({shape:{x1:_e[0],y1:_e[1],x2:Ce[0],y2:Ce[1]},style:xe,strokeContainThreshold:$.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(Ie.shape,Ie.style.lineWidth),Ie.anid="line",oe.add(Ie);var Ne=z.get(["axisLine","symbol"]);if(Ne!=null){var Fe=z.get(["axisLine","symbolSize"]);isString(Ne)&&(Ne=[Ne,Ne]),(isString(Fe)||isNumber(Fe))&&(Fe=[Fe,Fe]);var ze=normalizeSymbolOffset(z.get(["axisLine","symbolOffset"])||0,Fe),At=Fe[0],Lt=Fe[1];each$c([{rotate:$.rotation+Math.PI/2,offset:ze[0],r:0},{rotate:$.rotation-Math.PI/2,offset:ze[1],r:Math.sqrt((_e[0]-Ce[0])*(_e[0]-Ce[0])+(_e[1]-Ce[1])*(_e[1]-Ce[1]))}],function(hn,vn){if(Ne[vn]!=="none"&&Ne[vn]!=null){var _n=createSymbol(Ne[vn],-At/2,-Lt/2,At,Lt,xe.stroke,!0),bn=hn.r+hn.offset,Cn=$e?Ce:_e;_n.attr({rotation:hn.rotate,x:Cn[0]+bn*Math.cos($.rotation),y:Cn[1]-bn*Math.sin($.rotation),silent:!0,z2:11}),oe.add(_n)}})}}},axisTickLabel:function($,z,oe,ae){var ie=buildAxisMajorTicks(oe,ae,z,$),le=buildAxisLabel(oe,ae,z,$);if(fixMinMaxLabelShow(z,le,ie),buildAxisMinorTicks(oe,ae,z,$.tickDirection),z.get(["axisLabel","hideOverlap"])){var pe=prepareLayoutList(map$2(le,function(_e){return{label:_e,priority:_e.z2,defaultAttr:{ignore:_e.ignore}}}));hideOverlap(pe)}},axisName:function($,z,oe,ae){var ie=retrieve($.axisName,z.get("name"));if(ie){var le=z.get("nameLocation"),pe=$.nameDirection,_e=z.getModel("nameTextStyle"),Ce=z.get("nameGap")||0,$e=z.axis.getExtent(),xe=$e[0]>$e[1]?-1:1,Ie=[le==="start"?$e[0]-xe*Ce:le==="end"?$e[1]+xe*Ce:($e[0]+$e[1])/2,isNameLocationCenter(le)?$.labelOffset+pe*Ce:0],Ne,Fe=z.get("nameRotate");Fe!=null&&(Fe=Fe*PI/180);var ze;isNameLocationCenter(le)?Ne=AxisBuilder.innerTextLayout($.rotation,Fe??$.rotation,pe):(Ne=endTextLayout($.rotation,le,Fe||0,$e),ze=$.axisNameAvailableWidth,ze!=null&&(ze=Math.abs(ze/Math.sin(Ne.rotation)),!isFinite(ze)&&(ze=null)));var At=_e.getFont(),Lt=z.get("nameTruncate",!0)||{},hn=Lt.ellipsis,vn=retrieve($.nameTruncateMaxWidth,Lt.maxWidth,ze),_n=new ZRText$1({x:Ie[0],y:Ie[1],rotation:Ne.rotation,silent:AxisBuilder.isLabelSilent(z),style:createTextStyle$1(_e,{text:ie,font:At,overflow:"truncate",width:vn,ellipsis:hn,fill:_e.getTextColor()||z.get(["axisLine","lineStyle","color"]),align:_e.get("align")||Ne.textAlign,verticalAlign:_e.get("verticalAlign")||Ne.textVerticalAlign}),z2:1});if(setTooltipConfig({el:_n,componentModel:z,itemName:ie}),_n.__fullText=ie,_n.anid="name",z.get("triggerEvent")){var bn=AxisBuilder.makeAxisEventDataBase(z);bn.targetType="axisName",bn.name=ie,getECData(_n).eventData=bn}ae.add(_n),_n.updateTransform(),oe.add(_n),_n.decomposeTransform()}}};function endTextLayout($,z,oe,ae){var ie=remRadian(oe-$),le,pe,_e=ae[0]>ae[1],Ce=z==="start"&&!_e||z!=="start"&&_e;return isRadianAroundZero(ie-PI/2)?(pe=Ce?"bottom":"top",le="center"):isRadianAroundZero(ie-PI*1.5)?(pe=Ce?"top":"bottom",le="center"):(pe="middle",ie<PI*1.5&&ie>PI/2?le=Ce?"left":"right":le=Ce?"right":"left"),{rotation:ie,textAlign:le,textVerticalAlign:pe}}function fixMinMaxLabelShow($,z,oe){if(!shouldShowAllLabels($.axis)){var ae=$.get(["axisLabel","showMinLabel"]),ie=$.get(["axisLabel","showMaxLabel"]);z=z||[],oe=oe||[];var le=z[0],pe=z[1],_e=z[z.length-1],Ce=z[z.length-2],$e=oe[0],xe=oe[1],Ie=oe[oe.length-1],Ne=oe[oe.length-2];ae===!1?(ignoreEl(le),ignoreEl($e)):isTwoLabelOverlapped(le,pe)&&(ae?(ignoreEl(pe),ignoreEl(xe)):(ignoreEl(le),ignoreEl($e))),ie===!1?(ignoreEl(_e),ignoreEl(Ie)):isTwoLabelOverlapped(Ce,_e)&&(ie?(ignoreEl(Ce),ignoreEl(Ne)):(ignoreEl(_e),ignoreEl(Ie)))}}function ignoreEl($){$&&($.ignore=!0)}function isTwoLabelOverlapped($,z){var oe=$&&$.getBoundingRect().clone(),ae=z&&z.getBoundingRect().clone();if(!(!oe||!ae)){var ie=identity([]);return rotate(ie,ie,-$.rotation),oe.applyTransform(mul([],ie,$.getLocalTransform())),ae.applyTransform(mul([],ie,z.getLocalTransform())),oe.intersect(ae)}}function isNameLocationCenter($){return $==="middle"||$==="center"}function createTicks($,z,oe,ae,ie){for(var le=[],pe=[],_e=[],Ce=0;Ce<$.length;Ce++){var $e=$[Ce].coord;pe[0]=$e,pe[1]=0,_e[0]=$e,_e[1]=oe,z&&(applyTransform$1(pe,pe,z),applyTransform$1(_e,_e,z));var xe=new Line$1({shape:{x1:pe[0],y1:pe[1],x2:_e[0],y2:_e[1]},style:ae,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(xe.shape,xe.style.lineWidth),xe.anid=ie+"_"+$[Ce].tickValue,le.push(xe)}return le}function buildAxisMajorTicks($,z,oe,ae){var ie=oe.axis,le=oe.getModel("axisTick"),pe=le.get("show");if(pe==="auto"&&ae.handleAutoShown&&(pe=ae.handleAutoShown("axisTick")),!(!pe||ie.scale.isBlank())){for(var _e=le.getModel("lineStyle"),Ce=ae.tickDirection*le.get("length"),$e=ie.getTicksCoords(),xe=createTicks($e,z.transform,Ce,defaults(_e.getLineStyle(),{stroke:oe.get(["axisLine","lineStyle","color"])}),"ticks"),Ie=0;Ie<xe.length;Ie++)$.add(xe[Ie]);return xe}}function buildAxisMinorTicks($,z,oe,ae){var ie=oe.axis,le=oe.getModel("minorTick");if(!(!le.get("show")||ie.scale.isBlank())){var pe=ie.getMinorTicksCoords();if(pe.length)for(var _e=le.getModel("lineStyle"),Ce=ae*le.get("length"),$e=defaults(_e.getLineStyle(),defaults(oe.getModel("axisTick").getLineStyle(),{stroke:oe.get(["axisLine","lineStyle","color"])})),xe=0;xe<pe.length;xe++)for(var Ie=createTicks(pe[xe],z.transform,Ce,$e,"minorticks_"+xe),Ne=0;Ne<Ie.length;Ne++)$.add(Ie[Ne])}}function buildAxisLabel($,z,oe,ae){var ie=oe.axis,le=retrieve(ae.axisLabelShow,oe.get(["axisLabel","show"]));if(!(!le||ie.scale.isBlank())){var pe=oe.getModel("axisLabel"),_e=pe.get("margin"),Ce=ie.getViewLabels(),$e=(retrieve(ae.labelRotate,pe.get("rotate"))||0)*PI/180,xe=AxisBuilder.innerTextLayout(ae.rotation,$e,ae.labelDirection),Ie=oe.getCategories&&oe.getCategories(!0),Ne=[],Fe=AxisBuilder.isLabelSilent(oe),ze=oe.get("triggerEvent");return each$c(Ce,function(At,Lt){var hn=ie.scale.type==="ordinal"?ie.scale.getRawOrdinalNumber(At.tickValue):At.tickValue,vn=At.formattedLabel,_n=At.rawLabel,bn=pe;if(Ie&&Ie[hn]){var Cn=Ie[hn];isObject$3(Cn)&&Cn.textStyle&&(bn=new Model$1(Cn.textStyle,pe,oe.ecModel))}var En=bn.getTextColor()||oe.get(["axisLine","lineStyle","color"]),$n=ie.dataToCoord(hn),wn=new ZRText$1({x:$n,y:ae.labelOffset+ae.labelDirection*_e,rotation:xe.rotation,silent:Fe,z2:10+(At.level||0),style:createTextStyle$1(bn,{text:vn,align:bn.getShallow("align",!0)||xe.textAlign,verticalAlign:bn.getShallow("verticalAlign",!0)||bn.getShallow("baseline",!0)||xe.textVerticalAlign,fill:isFunction(En)?En(ie.type==="category"?_n:ie.type==="value"?hn+"":hn,Lt):En})});if(wn.anid="label_"+hn,ze){var Tn=AxisBuilder.makeAxisEventDataBase(oe);Tn.targetType="axisLabel",Tn.value=_n,Tn.tickIndex=Lt,ie.type==="category"&&(Tn.dataIndex=hn),getECData(wn).eventData=Tn}z.add(wn),wn.updateTransform(),Ne.push(wn),$.add(wn),wn.decomposeTransform()}),Ne}}const AxisBuilder$1=AxisBuilder;function collect($,z){var oe={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(oe,$,z),oe.seriesInvolved&&collectSeriesInfo(oe,$),oe}function collectAxesInfo($,z,oe){var ae=z.getComponent("tooltip"),ie=z.getComponent("axisPointer"),le=ie.get("link",!0)||[],pe=[];each$c(oe.getCoordinateSystems(),function(_e){if(!_e.axisPointerEnabled)return;var Ce=makeKey(_e.model),$e=$.coordSysAxesInfo[Ce]={};$.coordSysMap[Ce]=_e;var xe=_e.model,Ie=xe.getModel("tooltip",ae);if(each$c(_e.getAxes(),curry$1(At,!1,null)),_e.getTooltipAxes&&ae&&Ie.get("show")){var Ne=Ie.get("trigger")==="axis",Fe=Ie.get(["axisPointer","type"])==="cross",ze=_e.getTooltipAxes(Ie.get(["axisPointer","axis"]));(Ne||Fe)&&each$c(ze.baseAxes,curry$1(At,Fe?"cross":!0,Ne)),Fe&&each$c(ze.otherAxes,curry$1(At,"cross",!1))}function At(Lt,hn,vn){var _n=vn.model.getModel("axisPointer",ie),bn=_n.get("show");if(!(!bn||bn==="auto"&&!Lt&&!isHandleTrigger(_n))){hn==null&&(hn=_n.get("triggerTooltip")),_n=Lt?makeAxisPointerModel(vn,Ie,ie,z,Lt,hn):_n;var Cn=_n.get("snap"),En=makeKey(vn.model),$n=hn||Cn||vn.type==="category",wn=$.axesInfo[En]={key:En,axis:vn,coordSys:_e,axisPointerModel:_n,triggerTooltip:hn,involveSeries:$n,snap:Cn,useHandle:isHandleTrigger(_n),seriesModels:[],linkGroup:null};$e[En]=wn,$.seriesInvolved=$.seriesInvolved||$n;var Tn=getLinkGroupIndex(le,vn);if(Tn!=null){var xn=pe[Tn]||(pe[Tn]={axesInfo:{}});xn.axesInfo[En]=wn,xn.mapper=le[Tn].mapper,wn.linkGroup=xn}}}})}function makeAxisPointerModel($,z,oe,ae,ie,le){var pe=z.getModel("axisPointer"),_e=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],Ce={};each$c(_e,function(Ne){Ce[Ne]=clone$3(pe.get(Ne))}),Ce.snap=$.type!=="category"&&!!le,pe.get("type")==="cross"&&(Ce.type="line");var $e=Ce.label||(Ce.label={});if($e.show==null&&($e.show=!1),ie==="cross"){var xe=pe.get(["label","show"]);if($e.show=xe??!0,!le){var Ie=Ce.lineStyle=pe.get("crossStyle");Ie&&defaults($e,Ie.textStyle)}}return $.model.getModel("axisPointer",new Model$1(Ce,oe,ae))}function collectSeriesInfo($,z){z.eachSeries(function(oe){var ae=oe.coordinateSystem,ie=oe.get(["tooltip","trigger"],!0),le=oe.get(["tooltip","show"],!0);!ae||ie==="none"||ie===!1||ie==="item"||le===!1||oe.get(["axisPointer","show"],!0)===!1||each$c($.coordSysAxesInfo[makeKey(ae.model)],function(pe){var _e=pe.axis;ae.getAxis(_e.dim)===_e&&(pe.seriesModels.push(oe),pe.seriesDataCount==null&&(pe.seriesDataCount=0),pe.seriesDataCount+=oe.getData().count())})})}function getLinkGroupIndex($,z){for(var oe=z.model,ae=z.dim,ie=0;ie<$.length;ie++){var le=$[ie]||{};if(checkPropInLink(le[ae+"AxisId"],oe.id)||checkPropInLink(le[ae+"AxisIndex"],oe.componentIndex)||checkPropInLink(le[ae+"AxisName"],oe.name))return ie}}function checkPropInLink($,z){return $==="all"||isArray$1($)&&indexOf($,z)>=0||$===z}function fixValue($){var z=getAxisInfo($);if(z){var oe=z.axisPointerModel,ae=z.axis.scale,ie=oe.option,le=oe.get("status"),pe=oe.get("value");pe!=null&&(pe=ae.parse(pe));var _e=isHandleTrigger(oe);le==null&&(ie.status=_e?"show":"hide");var Ce=ae.getExtent().slice();Ce[0]>Ce[1]&&Ce.reverse(),(pe==null||pe>Ce[1])&&(pe=Ce[1]),pe<Ce[0]&&(pe=Ce[0]),ie.value=pe,_e&&(ie.status=z.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo($){var z=($.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return z&&z.axesInfo[makeKey($)]}function getAxisPointerModel($){var z=getAxisInfo($);return z&&z.axisPointerModel}function isHandleTrigger($){return!!$.get(["handle","show"])}function makeKey($){return $.type+"||"+$.id}var axisPointerClazz={},AxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,ie,le){this.axisPointerClass&&fixValue(oe),$.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(oe,ie,!0)},z.prototype.updateAxisPointer=function(oe,ae,ie,le){this._doUpdateAxisPointerClass(oe,ie,!1)},z.prototype.remove=function(oe,ae){var ie=this._axisPointer;ie&&ie.remove(ae)},z.prototype.dispose=function(oe,ae){this._disposeAxisPointer(ae),$.prototype.dispose.apply(this,arguments)},z.prototype._doUpdateAxisPointerClass=function(oe,ae,ie){var le=z.getAxisPointerClass(this.axisPointerClass);if(le){var pe=getAxisPointerModel(oe);pe?(this._axisPointer||(this._axisPointer=new le)).render(oe,pe,ae,ie):this._disposeAxisPointer(ae)}},z.prototype._disposeAxisPointer=function(oe){this._axisPointer&&this._axisPointer.dispose(oe),this._axisPointer=null},z.registerAxisPointerClass=function(oe,ae){axisPointerClazz[oe]=ae},z.getAxisPointerClass=function(oe){return oe&&axisPointerClazz[oe]},z.type="axis",z}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea($,z,oe,ae){var ie=oe.axis;if(!ie.scale.isBlank()){var le=oe.getModel("splitArea"),pe=le.getModel("areaStyle"),_e=pe.get("color"),Ce=ae.coordinateSystem.getRect(),$e=ie.getTicksCoords({tickModel:le,clamp:!0});if($e.length){var xe=_e.length,Ie=inner$6($).splitAreaColors,Ne=createHashMap(),Fe=0;if(Ie)for(var ze=0;ze<$e.length;ze++){var At=Ie.get($e[ze].tickValue);if(At!=null){Fe=(At+(xe-1)*ze)%xe;break}}var Lt=ie.toGlobalCoord($e[0].coord),hn=pe.getAreaStyle();_e=isArray$1(_e)?_e:[_e];for(var ze=1;ze<$e.length;ze++){var vn=ie.toGlobalCoord($e[ze].coord),_n=void 0,bn=void 0,Cn=void 0,En=void 0;ie.isHorizontal()?(_n=Lt,bn=Ce.y,Cn=vn-_n,En=Ce.height,Lt=_n+Cn):(_n=Ce.x,bn=Lt,Cn=Ce.width,En=vn-bn,Lt=bn+En);var $n=$e[ze-1].tickValue;$n!=null&&Ne.set($n,Fe),z.add(new Rect$2({anid:$n!=null?"area_"+$n:null,shape:{x:_n,y:bn,width:Cn,height:En},style:defaults({fill:_e[Fe]},hn),autoBatch:!0,silent:!0})),Fe=(Fe+1)%xe}inner$6($).splitAreaColors=Ne}}}function rectCoordAxisHandleRemove($){inner$6($).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.axisPointerClass="CartesianAxisPointer",oe}return z.prototype.render=function(oe,ae,ie,le){this.group.removeAll();var pe=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!oe.get("show")){var _e=oe.getCoordSysModel(),Ce=layout$1(_e,oe),$e=new AxisBuilder$1(oe,extend({handleAutoShown:function(Ie){for(var Ne=_e.coordinateSystem.getCartesians(),Fe=0;Fe<Ne.length;Fe++)if(isIntervalOrLogScale(Ne[Fe].getOtherAxis(oe.axis).scale))return!0;return!1}},Ce));each$c(axisBuilderAttrs,$e.add,$e),this._axisGroup.add($e.getGroup()),each$c(selfBuilderAttrs,function(Ie){oe.get([Ie,"show"])&&axisElementBuilders[Ie](this,this._axisGroup,oe,_e)},this);var xe=le&&le.type==="changeAxisOrder"&&le.isInitSort;xe||groupTransition(pe,this._axisGroup,oe),$.prototype.render.call(this,oe,ae,ie,le)}},z.prototype.remove=function(){rectCoordAxisHandleRemove(this)},z.type="cartesianAxis",z}(AxisView$1),axisElementBuilders={splitLine:function($,z,oe,ae){var ie=oe.axis;if(!ie.scale.isBlank()){var le=oe.getModel("splitLine"),pe=le.getModel("lineStyle"),_e=pe.get("color");_e=isArray$1(_e)?_e:[_e];for(var Ce=ae.coordinateSystem.getRect(),$e=ie.isHorizontal(),xe=0,Ie=ie.getTicksCoords({tickModel:le}),Ne=[],Fe=[],ze=pe.getLineStyle(),At=0;At<Ie.length;At++){var Lt=ie.toGlobalCoord(Ie[At].coord);$e?(Ne[0]=Lt,Ne[1]=Ce.y,Fe[0]=Lt,Fe[1]=Ce.y+Ce.height):(Ne[0]=Ce.x,Ne[1]=Lt,Fe[0]=Ce.x+Ce.width,Fe[1]=Lt);var hn=xe++%_e.length,vn=Ie[At].tickValue,_n=new Line$1({anid:vn!=null?"line_"+Ie[At].tickValue:null,autoBatch:!0,shape:{x1:Ne[0],y1:Ne[1],x2:Fe[0],y2:Fe[1]},style:defaults({stroke:_e[hn]},ze),silent:!0});subPixelOptimizeLine(_n.shape,ze.lineWidth),z.add(_n)}}},minorSplitLine:function($,z,oe,ae){var ie=oe.axis,le=oe.getModel("minorSplitLine"),pe=le.getModel("lineStyle"),_e=ae.coordinateSystem.getRect(),Ce=ie.isHorizontal(),$e=ie.getMinorTicksCoords();if($e.length)for(var xe=[],Ie=[],Ne=pe.getLineStyle(),Fe=0;Fe<$e.length;Fe++)for(var ze=0;ze<$e[Fe].length;ze++){var At=ie.toGlobalCoord($e[Fe][ze].coord);Ce?(xe[0]=At,xe[1]=_e.y,Ie[0]=At,Ie[1]=_e.y+_e.height):(xe[0]=_e.x,xe[1]=At,Ie[0]=_e.x+_e.width,Ie[1]=At);var Lt=new Line$1({anid:"minor_line_"+$e[Fe][ze].tickValue,autoBatch:!0,shape:{x1:xe[0],y1:xe[1],x2:Ie[0],y2:Ie[1]},style:Ne,silent:!0});subPixelOptimizeLine(Lt.shape,Ne.lineWidth),z.add(Lt)}},splitArea:function($,z,oe,ae){rectCoordAxisBuildSplitArea($,z,oe,ae)}},CartesianXAxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="xAxis",z}(CartesianAxisView),CartesianYAxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=CartesianXAxisView.type,oe}return z.type="yAxis",z}(CartesianAxisView),GridView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="grid",oe}return z.prototype.render=function(oe,ae){this.group.removeAll(),oe.get("show")&&this.group.add(new Rect$2({shape:oe.coordinateSystem.getRect(),style:defaults({fill:oe.get("backgroundColor")},oe.getItemStyle()),silent:!0,z2:-1}))},z.type="grid",z}(ComponentView$1),extraOption={offset:0};function install$g($){$.registerComponentView(GridView),$.registerComponentModel(GridModel$1),$.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator($,"x",CartesianAxisModel,extraOption),axisModelCreator($,"y",CartesianAxisModel,extraOption),$.registerComponentView(CartesianXAxisView),$.registerComponentView(CartesianYAxisView),$.registerPreprocessor(function(z){z.xAxis&&z.yAxis&&!z.grid&&(z.grid={})})}var ATTR="\0_ec_interaction_mutex";function take($,z,oe){var ae=getStore($);ae[z]=oe}function release($,z,oe){var ae=getStore($),ie=ae[z];ie===oe&&(ae[z]=null)}function isTaken($,z){return!!getStore($)[z]}function getStore($){return $[ATTR]||($[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;ae._zr=oe;var ie=bind$1(ae._mousedownHandler,ae),le=bind$1(ae._mousemoveHandler,ae),pe=bind$1(ae._mouseupHandler,ae),_e=bind$1(ae._mousewheelHandler,ae),Ce=bind$1(ae._pinchHandler,ae);return ae.enable=function($e,xe){this.disable(),this._opt=defaults(clone$3(xe)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),$e==null&&($e=!0),($e===!0||$e==="move"||$e==="pan")&&(oe.on("mousedown",ie),oe.on("mousemove",le),oe.on("mouseup",pe)),($e===!0||$e==="scale"||$e==="zoom")&&(oe.on("mousewheel",_e),oe.on("pinch",Ce))},ae.disable=function(){oe.off("mousedown",ie),oe.off("mousemove",le),oe.off("mouseup",pe),oe.off("mousewheel",_e),oe.off("pinch",Ce)},ae}return z.prototype.isDragging=function(){return this._dragging},z.prototype.isPinching=function(){return this._pinching},z.prototype.setPointerChecker=function(oe){this.pointerChecker=oe},z.prototype.dispose=function(){this.disable()},z.prototype._mousedownHandler=function(oe){if(!isMiddleOrRightButtonOnMouseUpDown(oe)){for(var ae=oe.target;ae;){if(ae.draggable)return;ae=ae.__hostTarget||ae.parent}var ie=oe.offsetX,le=oe.offsetY;this.pointerChecker&&this.pointerChecker(oe,ie,le)&&(this._x=ie,this._y=le,this._dragging=!0)}},z.prototype._mousemoveHandler=function(oe){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",oe,this._opt)||oe.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var ae=oe.offsetX,ie=oe.offsetY,le=this._x,pe=this._y,_e=ae-le,Ce=ie-pe;this._x=ae,this._y=ie,this._opt.preventDefaultMouseMove&&stop(oe.event),trigger$1(this,"pan","moveOnMouseMove",oe,{dx:_e,dy:Ce,oldX:le,oldY:pe,newX:ae,newY:ie,isAvailableBehavior:null})}},z.prototype._mouseupHandler=function(oe){isMiddleOrRightButtonOnMouseUpDown(oe)||(this._dragging=!1)},z.prototype._mousewheelHandler=function(oe){var ae=isAvailableBehavior("zoomOnMouseWheel",oe,this._opt),ie=isAvailableBehavior("moveOnMouseWheel",oe,this._opt),le=oe.wheelDelta,pe=Math.abs(le),_e=oe.offsetX,Ce=oe.offsetY;if(!(le===0||!ae&&!ie)){if(ae){var $e=pe>3?1.4:pe>1?1.2:1.1,xe=le>0?$e:1/$e;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",oe,{scale:xe,originX:_e,originY:Ce,isAvailableBehavior:null})}if(ie){var Ie=Math.abs(le),Ne=(le>0?1:-1)*(Ie>3?.4:Ie>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",oe,{scrollDelta:Ne,originX:_e,originY:Ce,isAvailableBehavior:null})}}},z.prototype._pinchHandler=function(oe){if(!isTaken(this._zr,"globalPan")){var ae=oe.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,oe,{scale:ae,originX:oe.pinchX,originY:oe.pinchY,isAvailableBehavior:null})}},z}(Eventful$1);function checkPointerAndTrigger($,z,oe,ae,ie){$.pointerChecker&&$.pointerChecker(ae,ie.originX,ie.originY)&&(stop(ae.event),trigger$1($,z,oe,ae,ie))}function trigger$1($,z,oe,ae,ie){ie.isAvailableBehavior=bind$1(isAvailableBehavior,null,oe,ae),$.trigger(z,ie)}function isAvailableBehavior($,z,oe){var ae=oe[$];return!$||ae&&(!isString(ae)||z.event[ae+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement($,z,oe){var ae=z.getComponentByElement($.topTarget),ie=ae&&ae.coordinateSystem;return ae&&ae!==oe&&!IRRELEVANT_EXCLUDES.hasOwnProperty(ae.mainType)&&ie&&ie.model!==oe}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function $(z){var oe=z.mappingMethod,ae=z.type,ie=this.option=clone$3(z);this.type=ae,this.mappingMethod=oe,this._normalizeData=normalizers[oe];var le=$.visualHandlers[ae];this.applyVisual=le.applyVisual,this.getColorMapper=le.getColorMapper,this._normalizedToVisual=le._normalizedToVisual[oe],oe==="piecewise"?(normalizeVisualRange(ie),preprocessForPiecewise(ie)):oe==="category"?ie.categories?preprocessForSpecifiedCategory(ie):normalizeVisualRange(ie,!0):(assert(oe!=="linear"||ie.dataExtent),normalizeVisualRange(ie))}return $.prototype.mapValueToVisual=function(z){var oe=this._normalizeData(z);return this._normalizedToVisual(oe,z)},$.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},$.listVisualTypes=function(){return keys($.visualHandlers)},$.isValidType=function(z){return $.visualHandlers.hasOwnProperty(z)},$.eachVisual=function(z,oe,ae){isObject$3(z)?each$c(z,oe,ae):oe.call(ae,z)},$.mapVisual=function(z,oe,ae){var ie,le=isArray$1(z)?[]:isObject$3(z)?{}:(ie=!0,null);return $.eachVisual(z,function(pe,_e){var Ce=oe.call(ae,pe,_e);ie?le=Ce:le[_e]=Ce}),le},$.retrieveVisuals=function(z){var oe={},ae;return z&&each$9($.visualHandlers,function(ie,le){z.hasOwnProperty(le)&&(oe[le]=z[le],ae=!0)}),ae?oe:null},$.prepareVisualTypes=function(z){if(isArray$1(z))z=z.slice();else if(isObject(z)){var oe=[];each$9(z,function(ae,ie){oe.push(ie)}),z=oe}else return[];return z.sort(function(ae,ie){return ie==="color"&&ae!=="color"&&ae.indexOf("color")===0?1:-1}),z},$.dependsOn=function(z,oe){return oe==="color"?!!(z&&z.indexOf(oe)===0):z===oe},$.findPieceIndex=function(z,oe,ae){for(var ie,le=1/0,pe=0,_e=oe.length;pe<_e;pe++){var Ce=oe[pe].value;if(Ce!=null){if(Ce===z||isString(Ce)&&Ce===z+"")return pe;ae&&Ne(Ce,pe)}}for(var pe=0,_e=oe.length;pe<_e;pe++){var $e=oe[pe],xe=$e.interval,Ie=$e.close;if(xe){if(xe[0]===-1/0){if(littleThan(Ie[1],z,xe[1]))return pe}else if(xe[1]===1/0){if(littleThan(Ie[0],xe[0],z))return pe}else if(littleThan(Ie[0],xe[0],z)&&littleThan(Ie[1],z,xe[1]))return pe;ae&&Ne(xe[0],pe),ae&&Ne(xe[1],pe)}}if(ae)return z===1/0?oe.length-1:z===-1/0?0:ie;function Ne(Fe,ze){var At=Math.abs(Fe-z);At<le&&(le=At,ie=ze)}},$.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var z=this.option;return bind$1(z.mappingMethod==="category"?function(oe,ae){return!ae&&(oe=this._normalizeData(oe)),doMapCategory.call(this,oe)}:function(oe,ae,ie){var le=!!ie;return!ae&&(oe=this._normalizeData(oe)),ie=fastLerp(oe,z.parsedVisual,ie),le?ie:stringify(ie,"rgba")},this)},_normalizedToVisual:{linear:function(z){return stringify(fastLerp(z,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(z,oe){var ae=getSpecifiedVisual.call(this,oe);return ae==null&&(ae=stringify(fastLerp(z,this.option.parsedVisual),"rgba")),ae},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(z,oe){return modifyHSL(z,oe)}),colorSaturation:makePartialColorVisualHandler(function(z,oe){return modifyHSL(z,null,oe)}),colorLightness:makePartialColorVisualHandler(function(z,oe){return modifyHSL(z,null,null,oe)}),colorAlpha:makePartialColorVisualHandler(function(z,oe){return modifyAlpha(z,oe)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(z,oe,ae){var ie=this.mapValueToVisual(z);ae("symbol",ie)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(z,oe){var ae=getSpecifiedVisual.call(this,oe);return ae==null&&(ae=doMapToArray.call(this,z)),ae},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},$}();function preprocessForPiecewise($){var z=$.pieceList;$.hasSpecialVisual=!1,each$c(z,function(oe,ae){oe.originIndex=ae,oe.visual!=null&&($.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory($){var z=$.categories,oe=$.categoryMap={},ae=$.visual;if(each$9(z,function(pe,_e){oe[pe]=_e}),!isArray$1(ae)){var ie=[];isObject$3(ae)?each$9(ae,function(pe,_e){var Ce=oe[_e];ie[Ce??CATEGORY_DEFAULT_VISUAL_INDEX]=pe}):ie[CATEGORY_DEFAULT_VISUAL_INDEX]=ae,ae=setVisualToOption($,ie)}for(var le=z.length-1;le>=0;le--)ae[le]==null&&(delete oe[z[le]],z.pop())}function normalizeVisualRange($,z){var oe=$.visual,ae=[];isObject$3(oe)?each$9(oe,function(le){ae.push(le)}):oe!=null&&ae.push(oe);var ie={color:1,symbol:1};!z&&ae.length===1&&!ie.hasOwnProperty($.type)&&(ae[1]=ae[0]),setVisualToOption($,ae)}function makePartialColorVisualHandler($){return{applyVisual:function(z,oe,ae){var ie=this.mapValueToVisual(z);ae("color",$(oe("color"),ie))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray($){var z=this.option.visual;return z[Math.round(linearMap$2($,[0,1],[0,z.length-1],!0))]||{}}function makeApplyVisual($){return function(z,oe,ae){ae($,this.mapValueToVisual(z))}}function doMapCategory($){var z=this.option.visual;return z[this.option.loop&&$!==CATEGORY_DEFAULT_VISUAL_INDEX?$%z.length:$]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual($){return{linear:function(z){return linearMap$2(z,$,this.option.visual,!0)},category:doMapCategory,piecewise:function(z,oe){var ae=getSpecifiedVisual.call(this,oe);return ae==null&&(ae=linearMap$2(z,$,this.option.visual,!0)),ae},fixed:doMapFixed}}function getSpecifiedVisual($){var z=this.option,oe=z.pieceList;if(z.hasSpecialVisual){var ae=VisualMapping.findPieceIndex($,oe),ie=oe[ae];if(ie&&ie.visual)return ie.visual[this.type]}}function setVisualToOption($,z){return $.visual=z,$.type==="color"&&($.parsedVisual=map$2(z,function(oe){var ae=parse$1(oe);return ae||[0,0,0,1]})),z}var normalizers={linear:function($){return linearMap$2($,this.option.dataExtent,[0,1],!0)},piecewise:function($){var z=this.option.pieceList,oe=VisualMapping.findPieceIndex($,z,!0);if(oe!=null)return linearMap$2(oe,[0,z.length-1],[0,1],!0)},category:function($){var z=this.option.categories?this.option.categoryMap[$]:$;return z??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan($,z,oe){return $?z<=oe:z<oe}const VisualMapping$1=VisualMapping;function sliderMove($,z,oe,ae,ie,le){$=$||0;var pe=oe[1]-oe[0];if(ie!=null&&(ie=restrict(ie,[0,pe])),le!=null&&(le=Math.max(le,ie??0)),ae==="all"){var _e=Math.abs(z[1]-z[0]);_e=restrict(_e,[0,pe]),ie=le=restrict(_e,[ie,le]),ae=0}z[0]=restrict(z[0],oe),z[1]=restrict(z[1],oe);var Ce=getSpanSign(z,ae);z[ae]+=$;var $e=ie||0,xe=oe.slice();Ce.sign<0?xe[0]+=$e:xe[1]-=$e,z[ae]=restrict(z[ae],xe);var Ie;return Ie=getSpanSign(z,ae),ie!=null&&(Ie.sign!==Ce.sign||Ie.span<ie)&&(z[1-ae]=z[ae]+Ce.sign*ie),Ie=getSpanSign(z,ae),le!=null&&Ie.span>le&&(z[1-ae]=z[ae]+Ie.sign*le),z}function getSpanSign($,z){var oe=$[z]-$[1-z];return{span:Math.abs(oe),sign:oe>0?-1:oe<0?1:z?-1:1}}function restrict($,z){return Math.min(z[1]!=null?z[1]:1/0,Math.max(z[0]!=null?z[0]:-1/0,$))}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($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae._track=[],ae._covers=[],ae._handlers={},ae._zr=oe,ae.group=new Group$3,ae._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(ie,le){this._handlers[le]=bind$1(ie,this)},ae),ae}return z.prototype.enableBrush=function(oe){return this._brushType&&this._doDisableBrush(),oe.brushType&&this._doEnableBrush(oe),this},z.prototype._doEnableBrush=function(oe){var ae=this._zr;this._enableGlobalPan||take(ae,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ie,le){ae.on(le,ie)}),this._brushType=oe.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),oe,!0)},z.prototype._doDisableBrush=function(){var oe=this._zr;release(oe,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ae,ie){oe.off(ie,ae)}),this._brushType=this._brushOption=null},z.prototype.setPanels=function(oe){if(oe&&oe.length){var ae=this._panels={};each$c(oe,function(ie){ae[ie.panelId]=clone$3(ie)})}else this._panels=null;return this},z.prototype.mount=function(oe){oe=oe||{},this._enableGlobalPan=oe.enableGlobalPan;var ae=this.group;return this._zr.add(ae),ae.attr({x:oe.x||0,y:oe.y||0,rotation:oe.rotation||0,scaleX:oe.scaleX||1,scaleY:oe.scaleY||1}),this._transform=ae.getLocalTransform(),this},z.prototype.updateCovers=function(oe){oe=map$2(oe,function(Ne){return merge(clone$3(DEFAULT_BRUSH_OPT),Ne,!0)});var ae="\0-brush-index-",ie=this._covers,le=this._covers=[],pe=this,_e=this._creatingCover;return new DataDiffer$1(ie,oe,$e,Ce).add(xe).update(xe).remove(Ie).execute(),this;function Ce(Ne,Fe){return(Ne.id!=null?Ne.id:ae+Fe)+"-"+Ne.brushType}function $e(Ne,Fe){return Ce(Ne.__brushOption,Fe)}function xe(Ne,Fe){var ze=oe[Ne];if(Fe!=null&&ie[Fe]===_e)le[Ne]=ie[Fe];else{var At=le[Ne]=Fe!=null?(ie[Fe].__brushOption=ze,ie[Fe]):endCreating(pe,createCover(pe,ze));updateCoverAfterCreation(pe,At)}}function Ie(Ne){ie[Ne]!==_e&&pe.group.remove(ie[Ne])}},z.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},z.prototype.dispose=function(){this.unmount(),this.off()},z}(Eventful$1);function createCover($,z){var oe=coverRenderers[z.brushType].createCover($,z);return oe.__brushOption=z,updateZ(oe,z),$.group.add(oe),oe}function endCreating($,z){var oe=getCoverRenderer(z);return oe.endCreating&&(oe.endCreating($,z),updateZ(z,z.__brushOption)),z}function updateCoverShape($,z){var oe=z.__brushOption;getCoverRenderer(z).updateCoverShape($,z,oe.range,oe)}function updateZ($,z){var oe=z.z;oe==null&&(oe=COVER_Z),$.traverse(function(ae){ae.z=oe,ae.z2=oe})}function updateCoverAfterCreation($,z){getCoverRenderer(z).updateCommon($,z),updateCoverShape($,z)}function getCoverRenderer($){return coverRenderers[$.__brushOption.brushType]}function getPanelByPoint($,z,oe){var ae=$._panels;if(!ae)return BRUSH_PANEL_GLOBAL;var ie,le=$._transform;return each$c(ae,function(pe){pe.isTargetByCursor(z,oe,le)&&(ie=pe)}),ie}function getPanelByCover($,z){var oe=$._panels;if(!oe)return BRUSH_PANEL_GLOBAL;var ae=z.__brushOption.panelId;return ae!=null?oe[ae]:BRUSH_PANEL_GLOBAL}function clearCovers($){var z=$._covers,oe=z.length;return each$c(z,function(ae){$.group.remove(ae)},$),z.length=0,!!oe}function trigger($,z){var oe=map$2($._covers,function(ae){var ie=ae.__brushOption,le=clone$3(ie.range);return{brushType:ie.brushType,panelId:ie.panelId,range:le}});$.trigger("brush",{areas:oe,isEnd:!!z.isEnd,removeOnClick:!!z.removeOnClick})}function shouldShowCover($){var z=$._track;if(!z.length)return!1;var oe=z[z.length-1],ae=z[0],ie=oe[0]-ae[0],le=oe[1]-ae[1],pe=mathPow(ie*ie+le*le,.5);return pe>UNSELECT_THRESHOLD}function getTrackEnds($){var z=$.length-1;return z<0&&(z=0),[$[0],$[z]]}function createBaseRectCover($,z,oe,ae){var ie=new Group$3;return ie.add(new Rect$2({name:"main",style:makeStyle(oe),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,$,z,ie,["n","s","w","e"]),ondragend:curry$1(trigger,z,{isEnd:!0})})),each$c(ae,function(le){ie.add(new Rect$2({name:le.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,$,z,ie,le),ondragend:curry$1(trigger,z,{isEnd:!0})}))}),ie}function updateBaseRect($,z,oe,ae){var ie=ae.brushStyle.lineWidth||0,le=mathMax$1(ie,MIN_RESIZE_LINE_WIDTH),pe=oe[0][0],_e=oe[1][0],Ce=pe-ie/2,$e=_e-ie/2,xe=oe[0][1],Ie=oe[1][1],Ne=xe-le+ie/2,Fe=Ie-le+ie/2,ze=xe-pe,At=Ie-_e,Lt=ze+ie,hn=At+ie;updateRectShape($,z,"main",pe,_e,ze,At),ae.transformable&&(updateRectShape($,z,"w",Ce,$e,le,hn),updateRectShape($,z,"e",Ne,$e,le,hn),updateRectShape($,z,"n",Ce,$e,Lt,le),updateRectShape($,z,"s",Ce,Fe,Lt,le),updateRectShape($,z,"nw",Ce,$e,le,le),updateRectShape($,z,"ne",Ne,$e,le,le),updateRectShape($,z,"sw",Ce,Fe,le,le),updateRectShape($,z,"se",Ne,Fe,le,le))}function updateCommon($,z){var oe=z.__brushOption,ae=oe.transformable,ie=z.childAt(0);ie.useStyle(makeStyle(oe)),ie.attr({silent:!ae,cursor:ae?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(le){var pe=z.childOfName(le.join("")),_e=le.length===1?getGlobalDirection1($,le[0]):getGlobalDirection2($,le);pe&&pe.attr({silent:!ae,invisible:!ae,cursor:ae?CURSOR_MAP[_e]+"-resize":null})})}function updateRectShape($,z,oe,ae,ie,le,pe){var _e=z.childOfName(oe);_e&&_e.setShape(pointsToRect(clipByPanel($,z,[[ae,ie],[ae+le,ie+pe]])))}function makeStyle($){return defaults({strokeNoScale:!0},$.brushStyle)}function formatRectRange($,z,oe,ae){var ie=[mathMin$1($,oe),mathMin$1(z,ae)],le=[mathMax$1($,oe),mathMax$1(z,ae)];return[[ie[0],le[0]],[ie[1],le[1]]]}function getTransform($){return getTransform$1($.group)}function getGlobalDirection1($,z){var oe={w:"left",e:"right",n:"top",s:"bottom"},ae={left:"w",right:"e",top:"n",bottom:"s"},ie=transformDirection(oe[z],getTransform($));return ae[ie]}function getGlobalDirection2($,z){var oe=[getGlobalDirection1($,z[0]),getGlobalDirection1($,z[1])];return(oe[0]==="e"||oe[0]==="w")&&oe.reverse(),oe.join("")}function driftRect($,z,oe,ae,ie,le){var pe=oe.__brushOption,_e=$.toRectRange(pe.range),Ce=toLocalDelta(z,ie,le);each$c(ae,function($e){var xe=DIRECTION_MAP[$e];_e[xe[0]][xe[1]]+=Ce[xe[0]]}),pe.range=$.fromRectRange(formatRectRange(_e[0][0],_e[1][0],_e[0][1],_e[1][1])),updateCoverAfterCreation(z,oe),trigger(z,{isEnd:!1})}function driftPolygon($,z,oe,ae){var ie=z.__brushOption.range,le=toLocalDelta($,oe,ae);each$c(ie,function(pe){pe[0]+=le[0],pe[1]+=le[1]}),updateCoverAfterCreation($,z),trigger($,{isEnd:!1})}function toLocalDelta($,z,oe){var ae=$.group,ie=ae.transformCoordToLocal(z,oe),le=ae.transformCoordToLocal(0,0);return[ie[0]-le[0],ie[1]-le[1]]}function clipByPanel($,z,oe){var ae=getPanelByCover($,z);return ae&&ae!==BRUSH_PANEL_GLOBAL?ae.clipPath(oe,$._transform):clone$3(oe)}function pointsToRect($){var z=mathMin$1($[0][0],$[1][0]),oe=mathMin$1($[0][1],$[1][1]),ae=mathMax$1($[0][0],$[1][0]),ie=mathMax$1($[0][1],$[1][1]);return{x:z,y:oe,width:ae-z,height:ie-oe}}function resetCursor($,z,oe){if(!(!$._brushType||isOutsideZrArea($,z.offsetX,z.offsetY))){var ae=$._zr,ie=$._covers,le=getPanelByPoint($,z,oe);if(!$._dragging)for(var pe=0;pe<ie.length;pe++){var _e=ie[pe].__brushOption;if(le&&(le===BRUSH_PANEL_GLOBAL||_e.panelId===le.panelId)&&coverRenderers[_e.brushType].contain(ie[pe],oe[0],oe[1]))return}le&&ae.setCursorStyle("crosshair")}}function preventDefault($){var z=$.event;z.preventDefault&&z.preventDefault()}function mainShapeContain($,z,oe){return $.childOfName("main").contain(z,oe)}function updateCoverByMouse($,z,oe,ae){var ie=$._creatingCover,le=$._creatingPanel,pe=$._brushOption,_e;if($._track.push(oe.slice()),shouldShowCover($)||ie){if(le&&!ie){pe.brushMode==="single"&&clearCovers($);var Ce=clone$3(pe);Ce.brushType=determineBrushType(Ce.brushType,le),Ce.panelId=le===BRUSH_PANEL_GLOBAL?null:le.panelId,ie=$._creatingCover=createCover($,Ce),$._covers.push(ie)}if(ie){var $e=coverRenderers[determineBrushType($._brushType,le)],xe=ie.__brushOption;xe.range=$e.getCreatingRange(clipByPanel($,ie,$._track)),ae&&(endCreating($,ie),$e.updateCommon($,ie)),updateCoverShape($,ie),_e={isEnd:ae}}}else ae&&pe.brushMode==="single"&&pe.removeOnClick&&getPanelByPoint($,z,oe)&&clearCovers($)&&(_e={isEnd:ae,removeOnClick:!0});return _e}function determineBrushType($,z){return $==="auto"?z.defaultBrushType:$}var pointerHandlers={mousedown:function($){if(this._dragging)handleDragEnd(this,$);else if(!$.target||!$.target.draggable){preventDefault($);var z=this.group.transformCoordToLocal($.offsetX,$.offsetY);this._creatingCover=null;var oe=this._creatingPanel=getPanelByPoint(this,$,z);oe&&(this._dragging=!0,this._track=[z.slice()])}},mousemove:function($){var z=$.offsetX,oe=$.offsetY,ae=this.group.transformCoordToLocal(z,oe);if(resetCursor(this,$,ae),this._dragging){preventDefault($);var ie=updateCoverByMouse(this,$,ae,!1);ie&&trigger(this,ie)}},mouseup:function($){handleDragEnd(this,$)}};function handleDragEnd($,z){if($._dragging){preventDefault(z);var oe=z.offsetX,ae=z.offsetY,ie=$.group.transformCoordToLocal(oe,ae),le=updateCoverByMouse($,z,ie,!0);$._dragging=!1,$._track=[],$._creatingCover=null,le&&trigger($,le)}}function isOutsideZrArea($,z,oe){var ae=$._zr;return z<0||z>ae.getWidth()||oe<0||oe>ae.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function($,z){function oe(ae){return ae}return createBaseRectCover({toRectRange:oe,fromRectRange:oe},$,z,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function($){var z=getTrackEnds($);return formatRectRange(z[1][0],z[1][1],z[0][0],z[0][1])},updateCoverShape:function($,z,oe,ae){updateBaseRect($,z,oe,ae)},updateCommon,contain:mainShapeContain},polygon:{createCover:function($,z){var oe=new Group$3;return oe.add(new Polyline$1({name:"main",style:makeStyle(z),silent:!0})),oe},getCreatingRange:function($){return $},endCreating:function($,z){z.remove(z.childAt(0)),z.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,$,z),ondragend:curry$1(trigger,$,{isEnd:!0})}))},updateCoverShape:function($,z,oe,ae){z.childAt(0).setShape({points:clipByPanel($,z,oe)})},updateCommon,contain:mainShapeContain}};function getLineRenderer($){return{createCover:function(z,oe){return createBaseRectCover({toRectRange:function(ae){var ie=[ae,[0,100]];return $&&ie.reverse(),ie},fromRectRange:function(ae){return ae[$]}},z,oe,[[["w"],["e"]],[["n"],["s"]]][$])},getCreatingRange:function(z){var oe=getTrackEnds(z),ae=mathMin$1(oe[0][$],oe[1][$]),ie=mathMax$1(oe[0][$],oe[1][$]);return[ae,ie]},updateCoverShape:function(z,oe,ae,ie){var le,pe=getPanelByCover(z,oe);if(pe!==BRUSH_PANEL_GLOBAL&&pe.getLinearBrushOtherExtent)le=pe.getLinearBrushOtherExtent($);else{var _e=z._zr;le=[0,[_e.getWidth(),_e.getHeight()][1-$]]}var Ce=[ae,le];$&&Ce.reverse(),updateBaseRect(z,oe,Ce,ie)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath($){return $=normalizeRect($),function(z){return clipPointsByRect(z,$)}}function makeLinearBrushOtherExtent($,z){return $=normalizeRect($),function(oe){var ae=z??oe,ie=ae?$.width:$.height,le=ae?$.x:$.y;return[le,le+(ie||0)]}}function makeRectIsTargetByCursor($,z,oe){var ae=normalizeRect($);return function(ie,le){return ae.contain(le[0],le[1])&&!onIrrelevantElement(ie,z,oe)}}function normalizeRect($){return BoundingRect$1.create($)}function isEC4CompatibleStyle($,z,oe,ae){return $&&($.legacy||$.legacy!==!1&&!oe&&!ae&&z!=="tspan"&&(z==="text"||hasOwn($,"text")))}function convertFromEC4CompatibleStyle($,z,oe){var ae=$,ie,le,pe;if(z==="text")pe=ae;else{pe={},hasOwn(ae,"text")&&(pe.text=ae.text),hasOwn(ae,"rich")&&(pe.rich=ae.rich),hasOwn(ae,"textFill")&&(pe.fill=ae.textFill),hasOwn(ae,"textStroke")&&(pe.stroke=ae.textStroke),hasOwn(ae,"fontFamily")&&(pe.fontFamily=ae.fontFamily),hasOwn(ae,"fontSize")&&(pe.fontSize=ae.fontSize),hasOwn(ae,"fontStyle")&&(pe.fontStyle=ae.fontStyle),hasOwn(ae,"fontWeight")&&(pe.fontWeight=ae.fontWeight),le={type:"text",style:pe,silent:!0},ie={};var _e=hasOwn(ae,"textPosition");oe?ie.position=_e?ae.textPosition:"inside":_e&&(ie.position=ae.textPosition),hasOwn(ae,"textPosition")&&(ie.position=ae.textPosition),hasOwn(ae,"textOffset")&&(ie.offset=ae.textOffset),hasOwn(ae,"textRotation")&&(ie.rotation=ae.textRotation),hasOwn(ae,"textDistance")&&(ie.distance=ae.textDistance)}return convertEC4CompatibleRichItem(pe,$),each$c(pe.rich,function(Ce){convertEC4CompatibleRichItem(Ce,Ce)}),{textConfig:ie,textContent:le}}function convertEC4CompatibleRichItem($,z){z&&(z.font=z.textFont||z.font,hasOwn(z,"textStrokeWidth")&&($.lineWidth=z.textStrokeWidth),hasOwn(z,"textAlign")&&($.align=z.textAlign),hasOwn(z,"textVerticalAlign")&&($.verticalAlign=z.textVerticalAlign),hasOwn(z,"textLineHeight")&&($.lineHeight=z.textLineHeight),hasOwn(z,"textWidth")&&($.width=z.textWidth),hasOwn(z,"textHeight")&&($.height=z.textHeight),hasOwn(z,"textBackgroundColor")&&($.backgroundColor=z.textBackgroundColor),hasOwn(z,"textPadding")&&($.padding=z.textPadding),hasOwn(z,"textBorderColor")&&($.borderColor=z.textBorderColor),hasOwn(z,"textBorderWidth")&&($.borderWidth=z.textBorderWidth),hasOwn(z,"textBorderRadius")&&($.borderRadius=z.textBorderRadius),hasOwn(z,"textBoxShadowColor")&&($.shadowColor=z.textBoxShadowColor),hasOwn(z,"textBoxShadowBlur")&&($.shadowBlur=z.textBoxShadowBlur),hasOwn(z,"textBoxShadowOffsetX")&&($.shadowOffsetX=z.textBoxShadowOffsetX),hasOwn(z,"textBoxShadowOffsetY")&&($.shadowOffsetY=z.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($,z){return $[z]=1,$},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig($,z,oe,ae,ie){var le=$+"Animation",pe=getAnimationConfig($,ae,ie)||{},_e=transitionInnerStore(z).userDuring;return pe.duration>0&&(pe.during=_e?bind$1(duringCall,{el:z,userDuring:_e}):null,pe.setToFinal=!0,pe.scope=$),extend(pe,oe[le]),pe}function applyUpdateTransition($,z,oe,ae){ae=ae||{};var ie=ae.dataIndex,le=ae.isInit,pe=ae.clearStyle,_e=oe.isAnimationEnabled(),Ce=transitionInnerStore($),$e=z.style;Ce.userDuring=z.during;var xe={},Ie={};if(prepareTransformAllPropsFinal($,z,Ie),prepareShapeOrExtraAllPropsFinal("shape",z,Ie),prepareShapeOrExtraAllPropsFinal("extra",z,Ie),!le&&_e&&(prepareTransformTransitionFrom($,z,xe),prepareShapeOrExtraTransitionFrom("shape",$,z,xe),prepareShapeOrExtraTransitionFrom("extra",$,z,xe),prepareStyleTransitionFrom($,z,$e,xe)),Ie.style=$e,applyPropsDirectly($,Ie,pe),applyMiscProps($,z),_e)if(le){var Ne={};each$c(ELEMENT_ANIMATABLE_PROPS,function(ze){var At=ze?z[ze]:z;At&&At.enterFrom&&(ze&&(Ne[ze]=Ne[ze]||{}),extend(ze?Ne[ze]:Ne,At.enterFrom))});var Fe=getElementAnimationConfig("enter",$,z,oe,ie);Fe.duration>0&&$.animateFrom(Ne,Fe)}else applyPropsTransition($,z,ie||0,oe,xe);updateLeaveTo($,z),$e?$.dirty():$.markRedraw()}function updateLeaveTo($,z){for(var oe=transitionInnerStore($).leaveToProps,ae=0;ae<ELEMENT_ANIMATABLE_PROPS.length;ae++){var ie=ELEMENT_ANIMATABLE_PROPS[ae],le=ie?z[ie]:z;le&&le.leaveTo&&(oe||(oe=transitionInnerStore($).leaveToProps={}),ie&&(oe[ie]=oe[ie]||{}),extend(ie?oe[ie]:oe,le.leaveTo))}}function applyLeaveTransition($,z,oe,ae){if($){var ie=$.parent,le=transitionInnerStore($).leaveToProps;if(le){var pe=getElementAnimationConfig("update",$,z,oe,0);pe.done=function(){ie.remove($),ae&&ae()},$.animateTo(le,pe)}else ie.remove($),ae&&ae()}}function isTransitionAll($){return $==="all"}function applyPropsDirectly($,z,oe){var ae=z.style;if(!$.isGroup&&ae){if(oe){$.useStyle({});for(var ie=$.animators,le=0;le<ie.length;le++){var pe=ie[le];pe.targetName==="style"&&pe.changeTarget($.style)}}$.setStyle(ae)}z&&(z.style=null,z&&$.attr(z),z.style=ae)}function applyPropsTransition($,z,oe,ae,ie){if(ie){var le=getElementAnimationConfig("update",$,z,ae,oe);le.duration>0&&$.animateFrom(ie,le)}}function applyMiscProps($,z){hasOwn(z,"silent")&&($.silent=z.silent),hasOwn(z,"ignore")&&($.ignore=z.ignore),$ instanceof Displayable$1&&hasOwn(z,"invisible")&&($.invisible=z.invisible),$ instanceof Path$1&&hasOwn(z,"autoBatch")&&($.autoBatch=z.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function($,z){return tmpDuringScope.el[$]=z,this},getTransform:function($){return tmpDuringScope.el[$]},setShape:function($,z){var oe=tmpDuringScope.el,ae=oe.shape||(oe.shape={});return ae[$]=z,oe.dirtyShape&&oe.dirtyShape(),this},getShape:function($){var z=tmpDuringScope.el.shape;if(z)return z[$]},setStyle:function($,z){var oe=tmpDuringScope.el,ae=oe.style;return ae&&(ae[$]=z,oe.dirtyStyle&&oe.dirtyStyle()),this},getStyle:function($){var z=tmpDuringScope.el.style;if(z)return z[$]},setExtra:function($,z){var oe=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return oe[$]=z,this},getExtra:function($){var z=tmpDuringScope.el.extra;if(z)return z[$]}};function duringCall(){var $=this,z=$.el;if(z){var oe=transitionInnerStore(z).userDuring,ae=$.userDuring;if(oe!==ae){$.el=$.userDuring=null;return}tmpDuringScope.el=z,ae(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom($,z,oe,ae){var ie=oe[$];if(ie){var le=z[$],pe;if(le){var _e=oe.transition,Ce=ie.transition;if(Ce)if(!pe&&(pe=ae[$]={}),isTransitionAll(Ce))extend(pe,le);else for(var $e=normalizeToArray(Ce),xe=0;xe<$e.length;xe++){var Ie=$e[xe],Ne=le[Ie];pe[Ie]=Ne}else if(isTransitionAll(_e)||indexOf(_e,$)>=0){!pe&&(pe=ae[$]={});for(var Fe=keys(le),xe=0;xe<Fe.length;xe++){var Ie=Fe[xe],Ne=le[Ie];isNonStyleTransitionEnabled(ie[Ie],Ne)&&(pe[Ie]=Ne)}}}}}function prepareShapeOrExtraAllPropsFinal($,z,oe){var ae=z[$];if(ae)for(var ie=oe[$]={},le=keys(ae),pe=0;pe<le.length;pe++){var _e=le[pe];ie[_e]=cloneValue(ae[_e])}}function prepareTransformTransitionFrom($,z,oe){for(var ae=z.transition,ie=isTransitionAll(ae)?TRANSFORMABLE_PROPS:normalizeToArray(ae||[]),le=0;le<ie.length;le++){var pe=ie[le];if(!(pe==="style"||pe==="shape"||pe==="extra")){var _e=$[pe];oe[pe]=_e}}}function prepareTransformAllPropsFinal($,z,oe){for(var ae=0;ae<LEGACY_TRANSFORM_PROPS.length;ae++){var ie=LEGACY_TRANSFORM_PROPS[ae],le=LEGACY_TRANSFORM_PROPS_MAP[ie],pe=z[ie];pe&&(oe[le[0]]=pe[0],oe[le[1]]=pe[1])}for(var ae=0;ae<TRANSFORMABLE_PROPS.length;ae++){var _e=TRANSFORMABLE_PROPS[ae];z[_e]!=null&&(oe[_e]=z[_e])}}function prepareStyleTransitionFrom($,z,oe,ae){if(oe){var ie=$.style,le;if(ie){var pe=oe.transition,_e=z.transition;if(pe&&!isTransitionAll(pe)){var Ce=normalizeToArray(pe);!le&&(le=ae.style={});for(var $e=0;$e<Ce.length;$e++){var xe=Ce[$e],Ie=ie[xe];le[xe]=Ie}}else if($.getAnimationStyleProps&&(isTransitionAll(_e)||isTransitionAll(pe)||indexOf(_e,"style")>=0)){var Ne=$.getAnimationStyleProps(),Fe=Ne?Ne.style:null;if(Fe){!le&&(le=ae.style={});for(var ze=keys(oe),$e=0;$e<ze.length;$e++){var xe=ze[$e];if(Fe[xe]){var Ie=ie[xe];le[xe]=Ie}}}}}}}function isNonStyleTransitionEnabled($,z){return isArrayLike($)?$!==z:$!=null&&isFinite($)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore($){$.stopAnimation("keyframe"),$.attr(getStateToRestore($))}function applyKeyframeAnimation($,z,oe){if(!(!oe.isAnimationEnabled()||!z)){if(isArray$1(z)){each$c(z,function(_e){applyKeyframeAnimation($,_e,oe)});return}var ae=z.keyframes,ie=z.duration;if(oe&&ie==null){var le=getAnimationConfig("enter",oe,0);ie=le&&le.duration}if(!(!ae||!ie)){var pe=getStateToRestore($);each$c(ELEMENT_ANIMATABLE_PROPS,function(_e){if(!(_e&&!$[_e])){var Ce;ae.sort(function($e,xe){return $e.percent-xe.percent}),each$c(ae,function($e){var xe=$.animators,Ie=_e?$e[_e]:$e;if(Ie){var Ne=keys(Ie);if(_e||(Ne=filter(Ne,function(At){return indexOf(KEYFRAME_EXCLUDE_KEYS,At)<0})),!!Ne.length){Ce||(Ce=$.animate(_e,z.loop,!0),Ce.scope="keyframe");for(var Fe=0;Fe<xe.length;Fe++)xe[Fe]!==Ce&&xe[Fe].targetName===Ce.targetName&&xe[Fe].stopTracks(Ne);_e&&(pe[_e]=pe[_e]||{});var ze=_e?pe[_e]:pe;each$c(Ne,function(At){ze[At]=((_e?$[_e]:$)||{})[At]}),Ce.whenWithKeys(ie*$e.percent,Ie,Ne,$e.easing)}}}),Ce&&Ce.delay(z.delay||0).duration(ie).start(z.easing)}})}}}var inner$5=makeInner(),clone=clone$3,bind=bind$1,BaseAxisPointer=function(){function $(){this._dragging=!1,this.animationThreshold=15}return $.prototype.render=function(z,oe,ae,ie){var le=oe.get("value"),pe=oe.get("status");if(this._axisModel=z,this._axisPointerModel=oe,this._api=ae,!(!ie&&this._lastValue===le&&this._lastStatus===pe)){this._lastValue=le,this._lastStatus=pe;var _e=this._group,Ce=this._handle;if(!pe||pe==="hide"){_e&&_e.hide(),Ce&&Ce.hide();return}_e&&_e.show(),Ce&&Ce.show();var $e={};this.makeElOption($e,le,z,oe,ae);var xe=$e.graphicKey;xe!==this._lastGraphicKey&&this.clear(ae),this._lastGraphicKey=xe;var Ie=this._moveAnimation=this.determineAnimation(z,oe);if(!_e)_e=this._group=new Group$3,this.createPointerEl(_e,$e,z,oe),this.createLabelEl(_e,$e,z,oe),ae.getZr().add(_e);else{var Ne=curry$1(updateProps,oe,Ie);this.updatePointerEl(_e,$e,Ne),this.updateLabelEl(_e,$e,Ne,oe)}updateMandatoryProps(_e,oe,!0),this._renderHandle(le)}},$.prototype.remove=function(z){this.clear(z)},$.prototype.dispose=function(z){this.clear(z)},$.prototype.determineAnimation=function(z,oe){var ae=oe.get("animation"),ie=z.axis,le=ie.type==="category",pe=oe.get("snap");if(!pe&&!le)return!1;if(ae==="auto"||ae==null){var _e=this.animationThreshold;if(le&&ie.getBandWidth()>_e)return!0;if(pe){var Ce=getAxisInfo(z).seriesDataCount,$e=ie.getExtent();return Math.abs($e[0]-$e[1])/Ce>_e}return!1}return ae===!0},$.prototype.makeElOption=function(z,oe,ae,ie,le){},$.prototype.createPointerEl=function(z,oe,ae,ie){var le=oe.pointer;if(le){var pe=inner$5(z).pointerEl=new graphic$1[le.type](clone(oe.pointer));z.add(pe)}},$.prototype.createLabelEl=function(z,oe,ae,ie){if(oe.label){var le=inner$5(z).labelEl=new ZRText$1(clone(oe.label));z.add(le),updateLabelShowHide(le,ie)}},$.prototype.updatePointerEl=function(z,oe,ae){var ie=inner$5(z).pointerEl;ie&&oe.pointer&&(ie.setStyle(oe.pointer.style),ae(ie,{shape:oe.pointer.shape}))},$.prototype.updateLabelEl=function(z,oe,ae,ie){var le=inner$5(z).labelEl;le&&(le.setStyle(oe.label.style),ae(le,{x:oe.label.x,y:oe.label.y}),updateLabelShowHide(le,ie))},$.prototype._renderHandle=function(z){if(!(this._dragging||!this.updateHandleTransform)){var oe=this._axisPointerModel,ae=this._api.getZr(),ie=this._handle,le=oe.getModel("handle"),pe=oe.get("status");if(!le.get("show")||!pe||pe==="hide"){ie&&ae.remove(ie),this._handle=null;return}var _e;this._handle||(_e=!0,ie=this._handle=createIcon(le.get("icon"),{cursor:"move",draggable:!0,onmousemove:function($e){stop($e.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),ae.add(ie)),updateMandatoryProps(ie,oe,!1),ie.setStyle(le.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var Ce=le.get("size");isArray$1(Ce)||(Ce=[Ce,Ce]),ie.scaleX=Ce[0]/2,ie.scaleY=Ce[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",le.get("throttle")||0,"fixRate"),this._moveHandleToValue(z,_e)}},$.prototype._moveHandleToValue=function(z,oe){updateProps(this._axisPointerModel,!oe&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(z,this._axisModel,this._axisPointerModel)))},$.prototype._onHandleDragMove=function(z,oe){var ae=this._handle;if(ae){this._dragging=!0;var ie=this.updateHandleTransform(getHandleTransProps(ae),[z,oe],this._axisModel,this._axisPointerModel);this._payloadInfo=ie,ae.stopAnimation(),ae.attr(getHandleTransProps(ie)),inner$5(ae).lastProp=null,this._doDispatchAxisPointer()}},$.prototype._doDispatchAxisPointer=function(){var z=this._handle;if(z){var oe=this._payloadInfo,ae=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:oe.cursorPoint[0],y:oe.cursorPoint[1],tooltipOption:oe.tooltipOption,axesInfo:[{axisDim:ae.axis.dim,axisIndex:ae.componentIndex}]})}},$.prototype._onHandleDragEnd=function(){this._dragging=!1;var z=this._handle;if(z){var oe=this._axisPointerModel.get("value");this._moveHandleToValue(oe),this._api.dispatchAction({type:"hideTip"})}},$.prototype.clear=function(z){this._lastValue=null,this._lastStatus=null;var oe=z.getZr(),ae=this._group,ie=this._handle;oe&&ae&&(this._lastGraphicKey=null,ae&&oe.remove(ae),ie&&oe.remove(ie),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},$.prototype.doClear=function(){},$.prototype.buildLabel=function(z,oe,ae){return ae=ae||0,{x:z[ae],y:z[1-ae],width:oe[ae],height:oe[1-ae]}},$}();function updateProps($,z,oe,ae){propsEqual(inner$5(oe).lastProp,ae)||(inner$5(oe).lastProp=ae,z?updateProps$1(oe,ae,$):(oe.stopAnimation(),oe.attr(ae)))}function propsEqual($,z){if(isObject$3($)&&isObject$3(z)){var oe=!0;return each$c(z,function(ae,ie){oe=oe&&propsEqual($[ie],ae)}),!!oe}else return $===z}function updateLabelShowHide($,z){$[z.get(["label","show"])?"show":"hide"]()}function getHandleTransProps($){return{x:$.x||0,y:$.y||0,rotation:$.rotation||0}}function updateMandatoryProps($,z,oe){var ae=z.get("z"),ie=z.get("zlevel");$&&$.traverse(function(le){le.type!=="group"&&(ae!=null&&(le.z=ae),ie!=null&&(le.zlevel=ie),le.silent=oe)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle($){var z=$.get("type"),oe=$.getModel(z+"Style"),ae;return z==="line"?(ae=oe.getLineStyle(),ae.fill=null):z==="shadow"&&(ae=oe.getAreaStyle(),ae.stroke=null),ae}function buildLabelElOption($,z,oe,ae,ie){var le=oe.get("value"),pe=getValueLabel(le,z.axis,z.ecModel,oe.get("seriesDataIndices"),{precision:oe.get(["label","precision"]),formatter:oe.get(["label","formatter"])}),_e=oe.getModel("label"),Ce=normalizeCssArray(_e.get("padding")||0),$e=_e.getFont(),xe=getBoundingRect(pe,$e),Ie=ie.position,Ne=xe.width+Ce[1]+Ce[3],Fe=xe.height+Ce[0]+Ce[2],ze=ie.align;ze==="right"&&(Ie[0]-=Ne),ze==="center"&&(Ie[0]-=Ne/2);var At=ie.verticalAlign;At==="bottom"&&(Ie[1]-=Fe),At==="middle"&&(Ie[1]-=Fe/2),confineInContainer(Ie,Ne,Fe,ae);var Lt=_e.get("backgroundColor");(!Lt||Lt==="auto")&&(Lt=z.get(["axisLine","lineStyle","color"])),$.label={x:Ie[0],y:Ie[1],style:createTextStyle$1(_e,{text:pe,font:$e,fill:_e.getTextColor(),padding:Ce,backgroundColor:Lt}),z2:10}}function confineInContainer($,z,oe,ae){var ie=ae.getWidth(),le=ae.getHeight();$[0]=Math.min($[0]+z,ie)-z,$[1]=Math.min($[1]+oe,le)-oe,$[0]=Math.max($[0],0),$[1]=Math.max($[1],0)}function getValueLabel($,z,oe,ae,ie){$=z.scale.parse($);var le=z.scale.getLabel({value:$},{precision:ie.precision}),pe=ie.formatter;if(pe){var _e={value:getAxisRawValue(z,{value:$}),axisDimension:z.dim,axisIndex:z.index,seriesData:[]};each$c(ae,function(Ce){var $e=oe.getSeriesByIndex(Ce.seriesIndex),xe=Ce.dataIndexInside,Ie=$e&&$e.getDataParams(xe);Ie&&_e.seriesData.push(Ie)}),isString(pe)?le=pe.replace("{value}",le):isFunction(pe)&&(le=pe(_e))}return le}function getTransformedPosition($,z,oe){var ae=create();return rotate(ae,ae,oe.rotation),translate(ae,ae,oe.position),applyTransform([$.dataToCoord(z),(oe.labelOffset||0)+(oe.labelDirection||1)*(oe.labelMargin||0)],ae)}function buildCartesianSingleLabelElOption($,z,oe,ae,ie,le){var pe=AxisBuilder$1.innerTextLayout(oe.rotation,0,oe.labelDirection);oe.labelMargin=ie.get(["label","margin"]),buildLabelElOption(z,ae,ie,le,{position:getTransformedPosition(ae.axis,$,oe),align:pe.textAlign,verticalAlign:pe.textVerticalAlign})}function makeLineShape($,z,oe){return oe=oe||0,{x1:$[oe],y1:$[1-oe],x2:z[oe],y2:z[1-oe]}}function makeRectShape($,z,oe){return oe=oe||0,{x:$[oe],y:$[1-oe],width:z[oe],height:z[1-oe]}}var CartesianAxisPointer=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.makeElOption=function(oe,ae,ie,le,pe){var _e=ie.axis,Ce=_e.grid,$e=le.get("type"),xe=getCartesian(Ce,_e).getOtherAxis(_e).getGlobalExtent(),Ie=_e.toGlobalCoord(_e.dataToCoord(ae,!0));if($e&&$e!=="none"){var Ne=buildElStyle(le),Fe=pointerShapeBuilder[$e](_e,Ie,xe);Fe.style=Ne,oe.graphicKey=Fe.type,oe.pointer=Fe}var ze=layout$1(Ce.model,ie);buildCartesianSingleLabelElOption(ae,oe,ze,ie,le,pe)},z.prototype.getHandleTransform=function(oe,ae,ie){var le=layout$1(ae.axis.grid.model,ae,{labelInside:!1});le.labelMargin=ie.get(["handle","margin"]);var pe=getTransformedPosition(ae.axis,oe,le);return{x:pe[0],y:pe[1],rotation:le.rotation+(le.labelDirection<0?Math.PI:0)}},z.prototype.updateHandleTransform=function(oe,ae,ie,le){var pe=ie.axis,_e=pe.grid,Ce=pe.getGlobalExtent(!0),$e=getCartesian(_e,pe).getOtherAxis(pe).getGlobalExtent(),xe=pe.dim==="x"?0:1,Ie=[oe.x,oe.y];Ie[xe]+=ae[xe],Ie[xe]=Math.min(Ce[1],Ie[xe]),Ie[xe]=Math.max(Ce[0],Ie[xe]);var Ne=($e[1]+$e[0])/2,Fe=[Ne,Ne];Fe[xe]=Ie[xe];var ze=[{verticalAlign:"middle"},{align:"center"}];return{x:Ie[0],y:Ie[1],rotation:oe.rotation,cursorPoint:Fe,tooltipOption:ze[xe]}},z}(BaseAxisPointer$1);function getCartesian($,z){var oe={};return oe[z.dim+"AxisIndex"]=z.index,$.getCartesian(oe)}var pointerShapeBuilder={line:function($,z,oe){var ae=makeLineShape([z,oe[0]],[z,oe[1]],getAxisDimIndex($));return{type:"Line",subPixelOptimize:!0,shape:ae}},shadow:function($,z,oe){var ae=Math.max(1,$.getBandWidth()),ie=oe[1]-oe[0];return{type:"Rect",shape:makeRectShape([z-ae/2,oe[0]],[ae,ie],getAxisDimIndex($))}}};function getAxisDimIndex($){return $.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="axisPointer",z.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}},z}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register($,z,oe){if(!env$1.node){var ae=z.getZr();inner$4(ae).records||(inner$4(ae).records={}),initGlobalListeners(ae,z);var ie=inner$4(ae).records[$]||(inner$4(ae).records[$]={});ie.handler=oe}}function initGlobalListeners($,z){if(inner$4($).initialized)return;inner$4($).initialized=!0,oe("click",curry$1(doEnter,"click")),oe("mousemove",curry$1(doEnter,"mousemove")),oe("globalout",onLeave);function oe(ae,ie){$.on(ae,function(le){var pe=makeDispatchAction$1(z);each$8(inner$4($).records,function(_e){_e&&ie(_e,le,pe.dispatchAction)}),dispatchTooltipFinally(pe.pendings,z)})}}function dispatchTooltipFinally($,z){var oe=$.showTip.length,ae=$.hideTip.length,ie;oe?ie=$.showTip[oe-1]:ae&&(ie=$.hideTip[ae-1]),ie&&(ie.dispatchAction=null,z.dispatchAction(ie))}function onLeave($,z,oe){$.handler("leave",null,oe)}function doEnter($,z,oe,ae){z.handler($,oe,ae)}function makeDispatchAction$1($){var z={showTip:[],hideTip:[]},oe=function(ae){var ie=z[ae.type];ie?ie.push(ae):(ae.dispatchAction=oe,$.dispatchAction(ae))};return{dispatchAction:oe,pendings:z}}function unregister($,z){if(!env$1.node){var oe=z.getZr(),ae=(inner$4(oe).records||{})[$];ae&&(inner$4(oe).records[$]=null)}}var AxisPointerView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,ie){var le=ae.getComponent("tooltip"),pe=oe.get("triggerOn")||le&&le.get("triggerOn")||"mousemove|click";register("axisPointer",ie,function(_e,Ce,$e){pe!=="none"&&(_e==="leave"||pe.indexOf(_e)>=0)&&$e({type:"updateAxisPointer",currTrigger:_e,x:Ce&&Ce.offsetX,y:Ce&&Ce.offsetY})})},z.prototype.remove=function(oe,ae){unregister("axisPointer",ae)},z.prototype.dispose=function(oe,ae){unregister("axisPointer",ae)},z.type="axisPointer",z}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries($,z){var oe=[],ae=$.seriesIndex,ie;if(ae==null||!(ie=z.getSeriesByIndex(ae)))return{point:[]};var le=ie.getData(),pe=queryDataIndex(le,$);if(pe==null||pe<0||isArray$1(pe))return{point:[]};var _e=le.getItemGraphicEl(pe),Ce=ie.coordinateSystem;if(ie.getTooltipPosition)oe=ie.getTooltipPosition(pe)||[];else if(Ce&&Ce.dataToPoint)if($.isStacked){var $e=Ce.getBaseAxis(),xe=Ce.getOtherAxis($e),Ie=xe.dim,Ne=$e.dim,Fe=Ie==="x"||Ie==="radius"?1:0,ze=le.mapDimension(Ne),At=[];At[Fe]=le.get(ze,pe),At[1-Fe]=le.get(le.getCalculationInfo("stackResultDimension"),pe),oe=Ce.dataToPoint(At)||[]}else oe=Ce.dataToPoint(le.getValues(map$2(Ce.dimensions,function(hn){return le.mapDimension(hn)}),pe))||[];else if(_e){var Lt=_e.getBoundingRect().clone();Lt.applyTransform(_e.transform),oe=[Lt.x+Lt.width/2,Lt.y+Lt.height/2]}return{point:oe,el:_e}}var inner$3=makeInner();function axisTrigger($,z,oe){var ae=$.currTrigger,ie=[$.x,$.y],le=$,pe=$.dispatchAction||bind$1(oe.dispatchAction,oe),_e=z.getComponent("axisPointer").coordSysAxesInfo;if(_e){illegalPoint(ie)&&(ie=findPointFromSeries({seriesIndex:le.seriesIndex,dataIndex:le.dataIndex},z).point);var Ce=illegalPoint(ie),$e=le.axesInfo,xe=_e.axesInfo,Ie=ae==="leave"||illegalPoint(ie),Ne={},Fe={},ze={list:[],map:{}},At={showPointer:curry$1(showPointer,Fe),showTooltip:curry$1(showTooltip,ze)};each$c(_e.coordSysMap,function(hn,vn){var _n=Ce||hn.containPoint(ie);each$c(_e.coordSysAxesInfo[vn],function(bn,Cn){var En=bn.axis,$n=findInputAxisInfo($e,bn);if(!Ie&&_n&&(!$e||$n)){var wn=$n&&$n.value;wn==null&&!Ce&&(wn=En.pointToData(ie)),wn!=null&&processOnAxis(bn,wn,At,!1,Ne)}})});var Lt={};return each$c(xe,function(hn,vn){var _n=hn.linkGroup;_n&&!Fe[vn]&&each$c(_n.axesInfo,function(bn,Cn){var En=Fe[Cn];if(bn!==hn&&En){var $n=En.value;_n.mapper&&($n=hn.axis.scale.parse(_n.mapper($n,makeMapperParam(bn),makeMapperParam(hn)))),Lt[hn.key]=$n}})}),each$c(Lt,function(hn,vn){processOnAxis(xe[vn],hn,At,!0,Ne)}),updateModelActually(Fe,xe,Ne),dispatchTooltipActually(ze,ie,$,pe),dispatchHighDownActually(xe,pe,oe),Ne}}function processOnAxis($,z,oe,ae,ie){var le=$.axis;if(!(le.scale.isBlank()||!le.containData(z))){if(!$.involveSeries){oe.showPointer($,z);return}var pe=buildPayloadsBySeries(z,$),_e=pe.payloadBatch,Ce=pe.snapToValue;_e[0]&&ie.seriesIndex==null&&extend(ie,_e[0]),!ae&&$.snap&&le.containData(Ce)&&Ce!=null&&(z=Ce),oe.showPointer($,z,_e),oe.showTooltip($,pe,Ce)}}function buildPayloadsBySeries($,z){var oe=z.axis,ae=oe.dim,ie=$,le=[],pe=Number.MAX_VALUE,_e=-1;return each$c(z.seriesModels,function(Ce,$e){var xe=Ce.getData().mapDimensionsAll(ae),Ie,Ne;if(Ce.getAxisTooltipData){var Fe=Ce.getAxisTooltipData(xe,$,oe);Ne=Fe.dataIndices,Ie=Fe.nestestValue}else{if(Ne=Ce.getData().indicesOfNearest(xe[0],$,oe.type==="category"?.5:null),!Ne.length)return;Ie=Ce.getData().get(xe[0],Ne[0])}if(!(Ie==null||!isFinite(Ie))){var ze=$-Ie,At=Math.abs(ze);At<=pe&&((At<pe||ze>=0&&_e<0)&&(pe=At,_e=ze,ie=Ie,le.length=0),each$c(Ne,function(Lt){le.push({seriesIndex:Ce.seriesIndex,dataIndexInside:Lt,dataIndex:Ce.getData().getRawIndex(Lt)})}))}}),{payloadBatch:le,snapToValue:ie}}function showPointer($,z,oe,ae){$[z.key]={value:oe,payloadBatch:ae}}function showTooltip($,z,oe,ae){var ie=oe.payloadBatch,le=z.axis,pe=le.model,_e=z.axisPointerModel;if(!(!z.triggerTooltip||!ie.length)){var Ce=z.coordSys.model,$e=makeKey(Ce),xe=$.map[$e];xe||(xe=$.map[$e]={coordSysId:Ce.id,coordSysIndex:Ce.componentIndex,coordSysType:Ce.type,coordSysMainType:Ce.mainType,dataByAxis:[]},$.list.push(xe)),xe.dataByAxis.push({axisDim:le.dim,axisIndex:pe.componentIndex,axisType:pe.type,axisId:pe.id,value:ae,valueLabelOpt:{precision:_e.get(["label","precision"]),formatter:_e.get(["label","formatter"])},seriesDataIndices:ie.slice()})}}function updateModelActually($,z,oe){var ae=oe.axesInfo=[];each$c(z,function(ie,le){var pe=ie.axisPointerModel.option,_e=$[le];_e?(!ie.useHandle&&(pe.status="show"),pe.value=_e.value,pe.seriesDataIndices=(_e.payloadBatch||[]).slice()):!ie.useHandle&&(pe.status="hide"),pe.status==="show"&&ae.push({axisDim:ie.axis.dim,axisIndex:ie.axis.model.componentIndex,value:pe.value})})}function dispatchTooltipActually($,z,oe,ae){if(illegalPoint(z)||!$.list.length){ae({type:"hideTip"});return}var ie=(($.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};ae({type:"showTip",escapeConnect:!0,x:z[0],y:z[1],tooltipOption:oe.tooltipOption,position:oe.position,dataIndexInside:ie.dataIndexInside,dataIndex:ie.dataIndex,seriesIndex:ie.seriesIndex,dataByCoordSys:$.list})}function dispatchHighDownActually($,z,oe){var ae=oe.getZr(),ie="axisPointerLastHighlights",le=inner$3(ae)[ie]||{},pe=inner$3(ae)[ie]={};each$c($,function($e,xe){var Ie=$e.axisPointerModel.option;Ie.status==="show"&&each$c(Ie.seriesDataIndices,function(Ne){var Fe=Ne.seriesIndex+" | "+Ne.dataIndex;pe[Fe]=Ne})});var _e=[],Ce=[];each$c(le,function($e,xe){!pe[xe]&&Ce.push($e)}),each$c(pe,function($e,xe){!le[xe]&&_e.push($e)}),Ce.length&&oe.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:Ce}),_e.length&&oe.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:_e})}function findInputAxisInfo($,z){for(var oe=0;oe<($||[]).length;oe++){var ae=$[oe];if(z.axis.dim===ae.axisDim&&z.axis.model.componentIndex===ae.axisIndex)return ae}}function makeMapperParam($){var z=$.axis.model,oe={},ae=oe.axisDim=$.axis.dim;return oe.axisIndex=oe[ae+"AxisIndex"]=z.componentIndex,oe.axisName=oe[ae+"AxisName"]=z.name,oe.axisId=oe[ae+"AxisId"]=z.id,oe}function illegalPoint($){return!$||$[0]==null||isNaN($[0])||$[1]==null||isNaN($[1])}function install$f($){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),$.registerComponentModel(AxisPointerModel$1),$.registerComponentView(AxisPointerView$1),$.registerPreprocessor(function(z){if(z){(!z.axisPointer||z.axisPointer.length===0)&&(z.axisPointer={});var oe=z.axisPointer.link;oe&&!isArray$1(oe)&&(z.axisPointer.link=[oe])}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,function(z,oe){z.getComponent("axisPointer").coordSysAxesInfo=collect(z,oe)}),$.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e($){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption($,z){var oe=$.existing;if(z.id=$.keyInfo.id,!z.type&&oe&&(z.type=oe.type),z.parentId==null){var ae=z.parentOption;ae?z.parentId=ae.id:oe&&(z.parentId=oe.parentId)}z.parentOption=null}function isSetLoc($,z){var oe;return each$c(z,function(ae){$[ae]!=null&&$[ae]!=="auto"&&(oe=!0)}),oe}function mergeNewElOptionToExist($,z,oe){var ae=extend({},oe),ie=$[z],le=oe.$action||"merge";le==="merge"?ie?(merge(ie,ae,!0),mergeLayoutParam(ie,ae,{ignoreSize:!0}),copyLayoutParams(oe,ie),copyTransitionInfo(oe,ie),copyTransitionInfo(oe,ie,"shape"),copyTransitionInfo(oe,ie,"style"),copyTransitionInfo(oe,ie,"extra"),oe.clipPath=ie.clipPath):$[z]=ae:le==="replace"?$[z]=ae:le==="remove"&&ie&&($[z]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo($,z,oe){if(oe&&(!$[oe]&&z[oe]&&($[oe]={}),$=$[oe],z=z[oe]),!(!$||!z))for(var ae=oe?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,ie=0;ie<ae.length;ie++){var le=ae[ie];$[le]==null&&z[le]!=null&&($[le]=z[le])}}function setLayoutInfoToExist($,z){if($&&($.hv=z.hv=[isSetLoc(z,["left","right"]),isSetLoc(z,["top","bottom"])],$.type==="group")){var oe=$,ae=z;oe.width==null&&(oe.width=ae.width=0),oe.height==null&&(oe.height=ae.height=0)}}var GraphicComponentModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.preventAutoZ=!0,oe}return z.prototype.mergeOption=function(oe,ae){var ie=this.option.elements;this.option.elements=null,$.prototype.mergeOption.call(this,oe,ae),this.option.elements=ie},z.prototype.optionUpdated=function(oe,ae){var ie=this.option,le=(ae?ie:oe).elements,pe=ie.elements=ae?[]:ie.elements,_e=[];this._flatten(le,_e,null);var Ce=mappingToExists(pe,_e,"normalMerge"),$e=this._elOptionsToUpdate=[];each$c(Ce,function(xe,Ie){var Ne=xe.newOption;Ne&&($e.push(Ne),setKeyInfoToNewElOption(xe,Ne),mergeNewElOptionToExist(pe,Ie,Ne),setLayoutInfoToExist(pe[Ie],Ne))},this),ie.elements=filter(pe,function(xe){return xe&&delete xe.$action,xe!=null})},z.prototype._flatten=function(oe,ae,ie){each$c(oe,function(le){if(le){ie&&(le.parentOption=ie),ae.push(le);var pe=le.children;pe&&pe.length&&this._flatten(pe,ae,le),delete le.children}},this)},z.prototype.useElOptionsToUpdate=function(){var oe=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,oe},z.type="graphic",z.defaultOption={elements:[]},z}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$3,image:ZRImage$1,text:ZRText$1},inner$2=makeInner(),GraphicComponentView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.init=function(){this._elMap=createHashMap()},z.prototype.render=function(oe,ae,ie){oe!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=oe,this._updateElements(oe),this._relocate(oe,ie)},z.prototype._updateElements=function(oe){var ae=oe.useElOptionsToUpdate();if(ae){var ie=this._elMap,le=this.group,pe=oe.get("z"),_e=oe.get("zlevel");each$c(ae,function(Ce){var $e=convertOptionIdName(Ce.id,null),xe=$e!=null?ie.get($e):null,Ie=convertOptionIdName(Ce.parentId,null),Ne=Ie!=null?ie.get(Ie):le,Fe=Ce.type,ze=Ce.style;Fe==="text"&&ze&&Ce.hv&&Ce.hv[1]&&(ze.textVerticalAlign=ze.textBaseline=ze.verticalAlign=ze.align=null);var At=Ce.textContent,Lt=Ce.textConfig;if(ze&&isEC4CompatibleStyle(ze,Fe,!!Lt,!!At)){var hn=convertFromEC4CompatibleStyle(ze,Fe,!0);!Lt&&hn.textConfig&&(Lt=Ce.textConfig=hn.textConfig),!At&&hn.textContent&&(At=hn.textContent)}var vn=getCleanedElOption(Ce),_n=Ce.$action||"merge",bn=_n==="merge",Cn=_n==="replace";if(bn){var En=!xe,$n=xe;En?$n=createEl($e,Ne,Ce.type,ie):($n&&(inner$2($n).isNew=!1),stopPreviousKeyframeAnimationAndRestore($n)),$n&&(applyUpdateTransition($n,vn,oe,{isInit:En}),updateCommonAttrs($n,Ce,pe,_e))}else if(Cn){removeEl(xe,Ce,ie,oe);var wn=createEl($e,Ne,Ce.type,ie);wn&&(applyUpdateTransition(wn,vn,oe,{isInit:!0}),updateCommonAttrs(wn,Ce,pe,_e))}else _n==="remove"&&(updateLeaveTo(xe,Ce),removeEl(xe,Ce,ie,oe));var Tn=ie.get($e);if(Tn&&At)if(bn){var xn=Tn.getTextContent();xn?xn.attr(At):Tn.setTextContent(new ZRText$1(At))}else Cn&&Tn.setTextContent(new ZRText$1(At));if(Tn){var kn=Ce.clipPath;if(kn){var An=kn.type,On=void 0,En=!1;if(bn){var Mn=Tn.getClipPath();En=!Mn||inner$2(Mn).type!==An,On=En?newEl(An):Mn}else Cn&&(En=!0,On=newEl(An));Tn.setClipPath(On),applyUpdateTransition(On,kn,oe,{isInit:En}),applyKeyframeAnimation(On,kn.keyframeAnimation,oe)}var Fn=inner$2(Tn);Tn.setTextConfig(Lt),Fn.option=Ce,setEventData(Tn,oe,Ce),setTooltipConfig({el:Tn,componentModel:oe,itemName:Tn.name,itemTooltipOption:Ce.tooltip}),applyKeyframeAnimation(Tn,Ce.keyframeAnimation,oe)}})}},z.prototype._relocate=function(oe,ae){for(var ie=oe.option.elements,le=this.group,pe=this._elMap,_e=ae.getWidth(),Ce=ae.getHeight(),$e=["x","y"],xe=0;xe<ie.length;xe++){var Ie=ie[xe],Ne=convertOptionIdName(Ie.id,null),Fe=Ne!=null?pe.get(Ne):null;if(!(!Fe||!Fe.isGroup)){var ze=Fe.parent,At=ze===le,Lt=inner$2(Fe),hn=inner$2(ze);Lt.width=parsePercent(Lt.option.width,At?_e:hn.width)||0,Lt.height=parsePercent(Lt.option.height,At?Ce:hn.height)||0}}for(var xe=ie.length-1;xe>=0;xe--){var Ie=ie[xe],Ne=convertOptionIdName(Ie.id,null),Fe=Ne!=null?pe.get(Ne):null;if(Fe){var ze=Fe.parent,hn=inner$2(ze),vn=ze===le?{width:_e,height:Ce}:{width:hn.width,height:hn.height},_n={},bn=positionElement(Fe,Ie,vn,null,{hv:Ie.hv,boundingMode:Ie.bounding},_n);if(!inner$2(Fe).isNew&&bn){for(var Cn=Ie.transition,En={},$n=0;$n<$e.length;$n++){var wn=$e[$n],Tn=_n[wn];Cn&&(isTransitionAll(Cn)||indexOf(Cn,wn)>=0)?En[wn]=Tn:Fe[wn]=Tn}updateProps$1(Fe,En,oe,0)}else Fe.attr(_n)}}},z.prototype._clear=function(){var oe=this,ae=this._elMap;ae.each(function(ie){removeEl(ie,inner$2(ie).option,ae,oe._lastGraphicModel)}),this._elMap=createHashMap()},z.prototype.dispose=function(){this._clear()},z.type="graphic",z}(ComponentView$1);function newEl($){var z=hasOwn(nonShapeGraphicElements,$)?nonShapeGraphicElements[$]:getShapeClass($),oe=new z({});return inner$2(oe).type=$,oe}function createEl($,z,oe,ae){var ie=newEl(oe);return z.add(ie),ae.set($,ie),inner$2(ie).id=$,inner$2(ie).isNew=!0,ie}function removeEl($,z,oe,ae){var ie=$&&$.parent;ie&&($.type==="group"&&$.traverse(function(le){removeEl(le,z,oe,ae)}),applyLeaveTransition($,z,ae),oe.removeKey(inner$2($).id))}function updateCommonAttrs($,z,oe,ae){$.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",ae||0],["z",oe||0],["z2",0]],function(ie){var le=ie[0];hasOwn(z,le)?$[le]=retrieve2(z[le],ie[1]):$[le]==null&&($[le]=ie[1])}),each$c(keys(z),function(ie){if(ie.indexOf("on")===0){var le=z[ie];$[ie]=isFunction(le)?le:null}}),hasOwn(z,"draggable")&&($.draggable=z.draggable),z.name!=null&&($.name=z.name),z.id!=null&&($.id=z.id)}function getCleanedElOption($){return $=extend({},$),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(z){delete $[z]}),$}function setEventData($,z,oe){var ae=getECData($).eventData;!$.silent&&!$.ignore&&!ae&&(ae=getECData($).eventData={componentType:"graphic",componentIndex:z.componentIndex,name:$.name}),ae&&(ae.info=oe.info)}function install$d($){$.registerComponentModel(GraphicComponentModel),$.registerComponentView(GraphicComponentView),$.registerPreprocessor(function(z){var oe=z.graphic;isArray$1(oe)?!oe[0]||!oe[0].elements?z.graphic=[{elements:oe}]:z.graphic=[z.graphic[0]]:oe&&!oe.elements&&(z.graphic=[{elements:[oe]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported($){var z=$.get("coordinateSystem");return indexOf(SERIES_COORDS,z)>=0}function getAxisMainType($){return $+"Axis"}function findEffectedDataZooms($,z){var oe=createHashMap(),ae=[],ie=createHashMap();$.eachComponent({mainType:"dataZoom",query:z},function(xe){ie.get(xe.uid)||_e(xe)});var le;do le=!1,$.eachComponent("dataZoom",pe);while(le);function pe(xe){!ie.get(xe.uid)&&Ce(xe)&&(_e(xe),le=!0)}function _e(xe){ie.set(xe.uid,!0),ae.push(xe),$e(xe)}function Ce(xe){var Ie=!1;return xe.eachTargetAxis(function(Ne,Fe){var ze=oe.get(Ne);ze&&ze[Fe]&&(Ie=!0)}),Ie}function $e(xe){xe.eachTargetAxis(function(Ie,Ne){(oe.get(Ie)||oe.set(Ie,[]))[Ne]=!0})}return ae}function collectReferCoordSysModelInfo($){var z=$.ecModel,oe={infoList:[],infoMap:createHashMap()};return $.eachTargetAxis(function(ae,ie){var le=z.getComponent(getAxisMainType(ae),ie);if(le){var pe=le.getCoordSysModel();if(pe){var _e=pe.uid,Ce=oe.infoMap.get(_e);Ce||(Ce={model:pe,axisModels:[]},oe.infoList.push(Ce),oe.infoMap.set(_e,Ce)),Ce.axisModels.push(le)}}}),oe}var DataZoomAxisInfo=function(){function $(){this.indexList=[],this.indexMap=[]}return $.prototype.add=function(z){this.indexMap[z]||(this.indexList.push(z),this.indexMap[z]=!0)},$}(),DataZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._autoThrottle=!0,oe._noTarget=!0,oe._rangePropMode=["percent","percent"],oe}return z.prototype.init=function(oe,ae,ie){var le=retrieveRawOption(oe);this.settledOption=le,this.mergeDefaultAndTheme(oe,ie),this._doInit(le)},z.prototype.mergeOption=function(oe){var ae=retrieveRawOption(oe);merge(this.option,oe,!0),merge(this.settledOption,ae,!0),this._doInit(ae)},z.prototype._doInit=function(oe){var ae=this.option;this._setDefaultThrottle(oe),this._updateRangeUse(oe);var ie=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(le,pe){this._rangePropMode[pe]==="value"&&(ae[le[0]]=ie[le[0]]=null)},this),this._resetTarget()},z.prototype._resetTarget=function(){var oe=this.get("orient",!0),ae=this._targetAxisInfoMap=createHashMap(),ie=this._fillSpecifiedTargetAxis(ae);ie?this._orient=oe||this._makeAutoOrientByTargetAxis():(this._orient=oe||"horizontal",this._fillAutoTargetAxisByOrient(ae,this._orient)),this._noTarget=!0,ae.each(function(le){le.indexList.length&&(this._noTarget=!1)},this)},z.prototype._fillSpecifiedTargetAxis=function(oe){var ae=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(ie){var le=this.getReferringComponents(getAxisMainType(ie),MULTIPLE_REFERRING);if(le.specified){ae=!0;var pe=new DataZoomAxisInfo;each$c(le.models,function(_e){pe.add(_e.componentIndex)}),oe.set(ie,pe)}},this),ae},z.prototype._fillAutoTargetAxisByOrient=function(oe,ae){var ie=this.ecModel,le=!0;if(le){var pe=ae==="vertical"?"y":"x",_e=ie.findComponents({mainType:pe+"Axis"});Ce(_e,pe)}if(le){var _e=ie.findComponents({mainType:"singleAxis",filter:function(xe){return xe.get("orient",!0)===ae}});Ce(_e,"single")}function Ce($e,xe){var Ie=$e[0];if(Ie){var Ne=new DataZoomAxisInfo;if(Ne.add(Ie.componentIndex),oe.set(xe,Ne),le=!1,xe==="x"||xe==="y"){var Fe=Ie.getReferringComponents("grid",SINGLE_REFERRING).models[0];Fe&&each$c($e,function(ze){Ie.componentIndex!==ze.componentIndex&&Fe===ze.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&Ne.add(ze.componentIndex)})}}}le&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function($e){if(le){var xe=ie.findComponents({mainType:getAxisMainType($e),filter:function(Ne){return Ne.get("type",!0)==="category"}});if(xe[0]){var Ie=new DataZoomAxisInfo;Ie.add(xe[0].componentIndex),oe.set($e,Ie),le=!1}}},this)},z.prototype._makeAutoOrientByTargetAxis=function(){var oe;return this.eachTargetAxis(function(ae){!oe&&(oe=ae)},this),oe==="y"?"vertical":"horizontal"},z.prototype._setDefaultThrottle=function(oe){if(oe.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var ae=this.ecModel.option;this.option.throttle=ae.animation&&ae.animationDurationUpdate>0?100:20}},z.prototype._updateRangeUse=function(oe){var ae=this._rangePropMode,ie=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(le,pe){var _e=oe[le[0]]!=null,Ce=oe[le[1]]!=null;_e&&!Ce?ae[pe]="percent":!_e&&Ce?ae[pe]="value":ie?ae[pe]=ie[pe]:_e&&(ae[pe]="percent")})},z.prototype.noTarget=function(){return this._noTarget},z.prototype.getFirstTargetAxisModel=function(){var oe;return this.eachTargetAxis(function(ae,ie){oe==null&&(oe=this.ecModel.getComponent(getAxisMainType(ae),ie))},this),oe},z.prototype.eachTargetAxis=function(oe,ae){this._targetAxisInfoMap.each(function(ie,le){each$c(ie.indexList,function(pe){oe.call(ae,le,pe)})})},z.prototype.getAxisProxy=function(oe,ae){var ie=this.getAxisModel(oe,ae);if(ie)return ie.__dzAxisProxy},z.prototype.getAxisModel=function(oe,ae){var ie=this._targetAxisInfoMap.get(oe);if(ie&&ie.indexMap[ae])return this.ecModel.getComponent(getAxisMainType(oe),ae)},z.prototype.setRawRange=function(oe){var ae=this.option,ie=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(le){(oe[le[0]]!=null||oe[le[1]]!=null)&&(ae[le[0]]=ie[le[0]]=oe[le[0]],ae[le[1]]=ie[le[1]]=oe[le[1]])},this),this._updateRangeUse(oe)},z.prototype.setCalculatedRange=function(oe){var ae=this.option;each$c(["start","startValue","end","endValue"],function(ie){ae[ie]=oe[ie]})},z.prototype.getPercentRange=function(){var oe=this.findRepresentativeAxisProxy();if(oe)return oe.getDataPercentWindow()},z.prototype.getValueRange=function(oe,ae){if(oe==null&&ae==null){var ie=this.findRepresentativeAxisProxy();if(ie)return ie.getDataValueWindow()}else return this.getAxisProxy(oe,ae).getDataValueWindow()},z.prototype.findRepresentativeAxisProxy=function(oe){if(oe)return oe.__dzAxisProxy;for(var ae,ie=this._targetAxisInfoMap.keys(),le=0;le<ie.length;le++)for(var pe=ie[le],_e=this._targetAxisInfoMap.get(pe),Ce=0;Ce<_e.indexList.length;Ce++){var $e=this.getAxisProxy(pe,_e.indexList[Ce]);if($e.hostedBy(this))return $e;ae||(ae=$e)}return ae},z.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},z.prototype.getOrient=function(){return this._orient},z.type="dataZoom",z.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],z.defaultOption={z:4,filterMode:"filter",start:0,end:100},z}(ComponentModel$1);function retrieveRawOption($){var z={};return each$c(["start","end","startValue","endValue","throttle"],function(oe){$.hasOwnProperty(oe)&&(z[oe]=$[oe])}),z}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.select",z}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,ie,le){this.dataZoomModel=oe,this.ecModel=ae,this.api=ie},z.type="dataZoom",z}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.select",z}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function $(z,oe,ae,ie){this._dimName=z,this._axisIndex=oe,this.ecModel=ie,this._dataZoomModel=ae}return $.prototype.hostedBy=function(z){return this._dataZoomModel===z},$.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},$.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},$.prototype.getTargetSeriesModels=function(){var z=[];return this.ecModel.eachSeries(function(oe){if(isCoordSupported(oe)){var ae=getAxisMainType(this._dimName),ie=oe.getReferringComponents(ae,SINGLE_REFERRING).models[0];ie&&this._axisIndex===ie.componentIndex&&z.push(oe)}},this),z},$.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},$.prototype.getMinMaxSpan=function(){return clone$3(this._minMaxSpan)},$.prototype.calculateDataWindow=function(z){var oe=this._dataExtent,ae=this.getAxisModel(),ie=ae.axis.scale,le=this._dataZoomModel.getRangePropMode(),pe=[0,100],_e=[],Ce=[],$e;each$7(["start","end"],function(Ne,Fe){var ze=z[Ne],At=z[Ne+"Value"];le[Fe]==="percent"?(ze==null&&(ze=pe[Fe]),At=ie.parse(linearMap$2(ze,pe,oe))):($e=!0,At=At==null?oe[Fe]:ie.parse(At),ze=linearMap$2(At,oe,pe)),Ce[Fe]=At==null||isNaN(At)?oe[Fe]:At,_e[Fe]=ze==null||isNaN(ze)?pe[Fe]:ze}),asc$1(Ce),asc$1(_e);var xe=this._minMaxSpan;$e?Ie(Ce,_e,oe,pe,!1):Ie(_e,Ce,pe,oe,!0);function Ie(Ne,Fe,ze,At,Lt){var hn=Lt?"Span":"ValueSpan";sliderMove(0,Ne,ze,"all",xe["min"+hn],xe["max"+hn]);for(var vn=0;vn<2;vn++)Fe[vn]=linearMap$2(Ne[vn],ze,At,!0),Lt&&(Fe[vn]=ie.parse(Fe[vn]))}return{valueWindow:Ce,percentWindow:_e}},$.prototype.reset=function(z){if(z===this._dataZoomModel){var oe=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,oe),this._updateMinMaxSpan();var ae=this.calculateDataWindow(z.settledOption);this._valueWindow=ae.valueWindow,this._percentWindow=ae.percentWindow,this._setAxisModel()}},$.prototype.filterData=function(z,oe){if(z!==this._dataZoomModel)return;var ae=this._dimName,ie=this.getTargetSeriesModels(),le=z.get("filterMode"),pe=this._valueWindow;if(le==="none")return;each$7(ie,function(Ce){var $e=Ce.getData(),xe=$e.mapDimensionsAll(ae);if(xe.length){if(le==="weakFilter"){var Ie=$e.getStore(),Ne=map$2(xe,function(Fe){return $e.getDimensionIndex(Fe)},$e);$e.filterSelf(function(Fe){for(var ze,At,Lt,hn=0;hn<xe.length;hn++){var vn=Ie.get(Ne[hn],Fe),_n=!isNaN(vn),bn=vn<pe[0],Cn=vn>pe[1];if(_n&&!bn&&!Cn)return!0;_n&&(Lt=!0),bn&&(ze=!0),Cn&&(At=!0)}return Lt&&ze&&At})}else each$7(xe,function(Fe){if(le==="empty")Ce.setData($e=$e.map(Fe,function(At){return _e(At)?At:NaN}));else{var ze={};ze[Fe]=pe,$e.selectRange(ze)}});each$7(xe,function(Fe){$e.setApproximateExtent(pe,Fe)})}});function _e(Ce){return Ce>=pe[0]&&Ce<=pe[1]}},$.prototype._updateMinMaxSpan=function(){var z=this._minMaxSpan={},oe=this._dataZoomModel,ae=this._dataExtent;each$7(["min","max"],function(ie){var le=oe.get(ie+"Span"),pe=oe.get(ie+"ValueSpan");pe!=null&&(pe=this.getAxisModel().axis.scale.parse(pe)),pe!=null?le=linearMap$2(ae[0]+pe,ae,[0,100],!0):le!=null&&(pe=linearMap$2(le,[0,100],ae,!0)-ae[0]),z[ie+"Span"]=le,z[ie+"ValueSpan"]=pe},this)},$.prototype._setAxisModel=function(){var z=this.getAxisModel(),oe=this._percentWindow,ae=this._valueWindow;if(oe){var ie=getPixelPrecision(ae,[0,500]);ie=Math.min(ie,20);var le=z.axis.scale.rawExtentInfo;oe[0]!==0&&le.setDeterminedMinMax("min",+ae[0].toFixed(ie)),oe[1]!==100&&le.setDeterminedMinMax("max",+ae[1].toFixed(ie)),le.freeze()}},$}();function calculateDataExtent($,z,oe){var ae=[1/0,-1/0];each$7(oe,function(pe){unionAxisExtentFromData(ae,pe.getData(),z)});var ie=$.getAxisModel(),le=ensureScaleRawExtentInfo(ie.axis.scale,ie,ae).calculate();return[le.min,le.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function($){function z(ie){$.eachComponent("dataZoom",function(le){le.eachTargetAxis(function(pe,_e){var Ce=$.getComponent(getAxisMainType(pe),_e);ie(pe,_e,Ce,le)})})}z(function(ie,le,pe,_e){pe.__dzAxisProxy=null});var oe=[];z(function(ie,le,pe,_e){pe.__dzAxisProxy||(pe.__dzAxisProxy=new AxisProxy$1(ie,le,_e,$),oe.push(pe.__dzAxisProxy))});var ae=createHashMap();return each$c(oe,function(ie){each$c(ie.getTargetSeriesModels(),function(le){ae.set(le.uid,le)})}),ae},overallReset:function($,z){$.eachComponent("dataZoom",function(oe){oe.eachTargetAxis(function(ae,ie){oe.getAxisProxy(ae,ie).reset(oe)}),oe.eachTargetAxis(function(ae,ie){oe.getAxisProxy(ae,ie).filterData(oe,z)})}),$.eachComponent("dataZoom",function(oe){var ae=oe.findRepresentativeAxisProxy();if(ae){var ie=ae.getDataPercentWindow(),le=ae.getDataValueWindow();oe.setCalculatedRange({start:ie[0],end:ie[1],startValue:le[0],endValue:le[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction($){$.registerAction("dataZoom",function(z,oe){var ae=findEffectedDataZooms(oe,z);each$c(ae,function(ie){ie.setRawRange({start:z.start,end:z.end,startValue:z.startValue,endValue:z.endValue})})})}var installed$1=!1;function installCommon$1($){installed$1||(installed$1=!0,$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction($),$.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c($){$.registerComponentModel(SelectZoomModel),$.registerComponentView(SelectZoomView),installCommon$1($)}var ToolboxFeature=function(){function $(){}return $}(),features={};function registerFeature($,z){features[$]=z}function getFeature($){return features[$]}var ToolboxModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.optionUpdated=function(){$.prototype.optionUpdated.apply(this,arguments);var oe=this.ecModel;each$c(this.option.feature,function(ae,ie){var le=getFeature(ie);le&&(le.getDefaultOption&&(le.defaultOption=le.getDefaultOption(oe)),merge(ae,le.defaultOption))})},z.type="toolbox",z.layoutMode={type:"box",ignoreSize:!0},z.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"}},z}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout($,z,oe){var ae=z.getBoxLayoutParams(),ie=z.get("padding"),le={width:oe.getWidth(),height:oe.getHeight()},pe=getLayoutRect(ae,le,ie);box(z.get("orient"),$,z.get("itemGap"),pe.width,pe.height),positionElement($,ae,le,ie)}function makeBackground($,z){var oe=normalizeCssArray(z.get("padding")),ae=z.getItemStyle(["color","opacity"]);return ae.fill=z.get("backgroundColor"),$=new Rect$2({shape:{x:$.x-oe[3],y:$.y-oe[0],width:$.width+oe[1]+oe[3],height:$.height+oe[0]+oe[2],r:z.get("borderRadius")},style:ae,silent:!0,z2:-1}),$}var ToolboxView=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.render=function(oe,ae,ie,le){var pe=this.group;if(pe.removeAll(),!oe.get("show"))return;var _e=+oe.get("itemSize"),Ce=oe.get("orient")==="vertical",$e=oe.get("feature")||{},xe=this._features||(this._features={}),Ie=[];each$c($e,function(ze,At){Ie.push(At)}),new DataDiffer$1(this._featureNames||[],Ie).add(Ne).update(Ne).remove(curry$1(Ne,null)).execute(),this._featureNames=Ie;function Ne(ze,At){var Lt=Ie[ze],hn=Ie[At],vn=$e[Lt],_n=new Model$1(vn,oe,oe.ecModel),bn;if(le&&le.newTitle!=null&&le.featureName===Lt&&(vn.title=le.newTitle),Lt&&!hn){if(isUserFeatureName(Lt))bn={onclick:_n.option.onclick,featureName:Lt};else{var Cn=getFeature(Lt);if(!Cn)return;bn=new Cn}xe[Lt]=bn}else if(bn=xe[hn],!bn)return;bn.uid=getUID("toolbox-feature"),bn.model=_n,bn.ecModel=ae,bn.api=ie;var En=bn instanceof ToolboxFeature;if(!Lt&&hn){En&&bn.dispose&&bn.dispose(ae,ie);return}if(!_n.get("show")||En&&bn.unusable){En&&bn.remove&&bn.remove(ae,ie);return}Fe(_n,bn,Lt),_n.setIconStatus=function($n,wn){var Tn=this.option,xn=this.iconPaths;Tn.iconStatus=Tn.iconStatus||{},Tn.iconStatus[$n]=wn,xn[$n]&&(wn==="emphasis"?enterEmphasis:leaveEmphasis)(xn[$n])},bn instanceof ToolboxFeature&&bn.render&&bn.render(_n,ae,ie,le)}function Fe(ze,At,Lt){var hn=ze.getModel("iconStyle"),vn=ze.getModel(["emphasis","iconStyle"]),_n=At instanceof ToolboxFeature&&At.getIcons?At.getIcons():ze.get("icon"),bn=ze.get("title")||{},Cn,En;isString(_n)?(Cn={},Cn[Lt]=_n):Cn=_n,isString(bn)?(En={},En[Lt]=bn):En=bn;var $n=ze.iconPaths={};each$c(Cn,function(wn,Tn){var xn=createIcon(wn,{},{x:-_e/2,y:-_e/2,width:_e,height:_e});xn.setStyle(hn.getItemStyle());var kn=xn.ensureState("emphasis");kn.style=vn.getItemStyle();var An=new ZRText$1({style:{text:En[Tn],align:vn.get("textAlign"),borderRadius:vn.get("textBorderRadius"),padding:vn.get("textPadding"),fill:null},ignore:!0});xn.setTextContent(An),setTooltipConfig({el:xn,componentModel:oe,itemName:Tn,formatterParamsExtra:{title:En[Tn]}}),xn.__title=En[Tn],xn.on("mouseover",function(){var On=vn.getItemStyle(),Mn=Ce?oe.get("right")==null&&oe.get("left")!=="right"?"right":"left":oe.get("bottom")==null&&oe.get("top")!=="bottom"?"bottom":"top";An.setStyle({fill:vn.get("textFill")||On.fill||On.stroke||"#000",backgroundColor:vn.get("textBackgroundColor")}),xn.setTextConfig({position:vn.get("textPosition")||Mn}),An.ignore=!oe.get("showTitle"),ie.enterEmphasis(this)}).on("mouseout",function(){ze.get(["iconStatus",Tn])!=="emphasis"&&ie.leaveEmphasis(this),An.hide()}),(ze.get(["iconStatus",Tn])==="emphasis"?enterEmphasis:leaveEmphasis)(xn),pe.add(xn),xn.on("click",bind$1(At.onclick,At,ae,ie,Tn)),$n[Tn]=xn})}layout(pe,oe,ie),pe.add(makeBackground(pe.getBoundingRect(),oe)),Ce||pe.eachChild(function(ze){var At=ze.__title,Lt=ze.ensureState("emphasis"),hn=Lt.textConfig||(Lt.textConfig={}),vn=ze.getTextContent(),_n=vn&&vn.ensureState("emphasis");if(_n&&!isFunction(_n)&&At){var bn=_n.style||(_n.style={}),Cn=getBoundingRect(At,ZRText$1.makeFont(bn)),En=ze.x+pe.x,$n=ze.y+pe.y+_e,wn=!1;$n+Cn.height>ie.getHeight()&&(hn.position="top",wn=!0);var Tn=wn?-5-Cn.height:_e+10;En+Cn.width/2>ie.getWidth()?(hn.position=["100%",Tn],bn.align="right"):En-Cn.width/2<0&&(hn.position=[0,Tn],bn.align="left")}})},z.prototype.updateView=function(oe,ae,ie,le){each$c(this._features,function(pe){pe instanceof ToolboxFeature&&pe.updateView&&pe.updateView(pe.model,ae,ie,le)})},z.prototype.remove=function(oe,ae){each$c(this._features,function(ie){ie instanceof ToolboxFeature&&ie.remove&&ie.remove(oe,ae)}),this.group.removeAll()},z.prototype.dispose=function(oe,ae){each$c(this._features,function(ie){ie instanceof ToolboxFeature&&ie.dispose&&ie.dispose(oe,ae)})},z.type="toolbox",z}(ComponentView$1);function isUserFeatureName($){return $.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(oe,ae){var ie=this.model,le=ie.get("name")||oe.get("title.0.text")||"echarts",pe=ae.getZr().painter.getType()==="svg",_e=pe?"svg":ie.get("type",!0)||"png",Ce=ae.getConnectedDataURL({type:_e,backgroundColor:ie.get("backgroundColor",!0)||oe.get("backgroundColor")||"#fff",connectedBackgroundColor:ie.get("connectedBackgroundColor"),excludeComponents:ie.get("excludeComponents"),pixelRatio:ie.get("pixelRatio")}),$e=env$1.browser;if(isFunction(MouseEvent)&&($e.newEdge||!$e.ie&&!$e.edge)){var xe=document.createElement("a");xe.download=le+"."+_e,xe.target="_blank",xe.href=Ce;var Ie=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});xe.dispatchEvent(Ie)}else if(window.navigator.msSaveOrOpenBlob||pe){var Ne=Ce.split(","),Fe=Ne[0].indexOf("base64")>-1,ze=pe?decodeURIComponent(Ne[1]):Ne[1];Fe&&(ze=window.atob(ze));var At=le+"."+_e;if(window.navigator.msSaveOrOpenBlob){for(var Lt=ze.length,hn=new Uint8Array(Lt);Lt--;)hn[Lt]=ze.charCodeAt(Lt);var vn=new Blob([hn]);window.navigator.msSaveOrOpenBlob(vn,At)}else{var _n=document.createElement("iframe");document.body.appendChild(_n);var bn=_n.contentWindow,Cn=bn.document;Cn.open("image/svg+xml","replace"),Cn.write(ze),Cn.close(),bn.focus(),Cn.execCommand("SaveAs",!0,At),document.body.removeChild(_n)}}else{var En=ie.get("lang"),$n='<body style="margin:0;"><img src="'+Ce+'" style="max-width:100%;" title="'+(En&&En[0]||"")+'" /></body>',wn=window.open();wn.document.write($n),wn.document.title=le}},z.getDefaultOption=function(oe){var ae={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:oe.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:oe.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return ae},z}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.getIcons=function(){var oe=this.model,ae=oe.get("icon"),ie={};return each$c(oe.get("type"),function(le){ae[le]&&(ie[le]=ae[le])}),ie},z.getDefaultOption=function(oe){var ae={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:oe.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return ae},z.prototype.onclick=function(oe,ae,ie){var le=this.model,pe=le.get(["seriesIndex",ie]);if(seriesOptGenreator[ie]){var _e={series:[]},Ce=function(Ie){var Ne=Ie.subType,Fe=Ie.id,ze=seriesOptGenreator[ie](Ne,Fe,Ie,le);ze&&(defaults(ze,Ie.option),_e.series.push(ze));var At=Ie.coordinateSystem;if(At&&At.type==="cartesian2d"&&(ie==="line"||ie==="bar")){var Lt=At.getAxesByScale("ordinal")[0];if(Lt){var hn=Lt.dim,vn=hn+"Axis",_n=Ie.getReferringComponents(vn,SINGLE_REFERRING).models[0],bn=_n.componentIndex;_e[vn]=_e[vn]||[];for(var Cn=0;Cn<=bn;Cn++)_e[vn][bn]=_e[vn][bn]||{};_e[vn][bn].boundaryGap=ie==="bar"}}};each$c(radioTypes,function(Ie){indexOf(Ie,ie)>=0&&each$c(Ie,function(Ne){le.setIconStatus(Ne,"normal")})}),le.setIconStatus(ie,"emphasis"),oe.eachComponent({mainType:"series",query:pe==null?null:{seriesIndex:pe}},Ce);var $e,xe=ie;ie==="stack"&&($e=merge({stack:le.option.title.tiled,tiled:le.option.title.stack},le.option.title),le.get(["iconStatus",ie])!=="emphasis"&&(xe="tiled")),ae.dispatchAction({type:"changeMagicType",currentType:xe,newOption:_e,newTitle:$e,featureName:"magicType"})}},z}(ToolboxFeature),seriesOptGenreator={line:function($,z,oe,ae){if($==="bar")return merge({id:z,type:"line",data:oe.get("data"),stack:oe.get("stack"),markPoint:oe.get("markPoint"),markLine:oe.get("markLine")},ae.get(["option","line"])||{},!0)},bar:function($,z,oe,ae){if($==="line")return merge({id:z,type:"bar",data:oe.get("data"),stack:oe.get("stack"),markPoint:oe.get("markPoint"),markLine:oe.get("markLine")},ae.get(["option","bar"])||{},!0)},stack:function($,z,oe,ae){var ie=oe.get("stack")===INNER_STACK_KEYWORD;if($==="line"||$==="bar")return ae.setIconStatus("stack",ie?"normal":"emphasis"),merge({id:z,stack:ie?"":INNER_STACK_KEYWORD},ae.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function($,z){z.mergeOption($.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries($){var z={},oe=[],ae=[];return $.eachRawSeries(function(ie){var le=ie.coordinateSystem;if(le&&(le.type==="cartesian2d"||le.type==="polar")){var pe=le.getBaseAxis();if(pe.type==="category"){var _e=pe.dim+"_"+pe.index;z[_e]||(z[_e]={categoryAxis:pe,valueAxis:le.getOtherAxis(pe),series:[]},ae.push({axisDim:pe.dim,axisIndex:pe.index})),z[_e].series.push(ie)}else oe.push(ie)}else oe.push(ie)}),{seriesGroupByCategoryAxis:z,other:oe,meta:ae}}function assembleSeriesWithCategoryAxis($){var z=[];return each$c($,function(oe,ae){var ie=oe.categoryAxis,le=oe.valueAxis,pe=le.dim,_e=[" "].concat(map$2(oe.series,function(Fe){return Fe.name})),Ce=[ie.model.getCategories()];each$c(oe.series,function(Fe){var ze=Fe.getRawData();Ce.push(Fe.getRawData().mapArray(ze.mapDimension(pe),function(At){return At}))});for(var $e=[_e.join(ITEM_SPLITER)],xe=0;xe<Ce[0].length;xe++){for(var Ie=[],Ne=0;Ne<Ce.length;Ne++)Ie.push(Ce[Ne][xe]);$e.push(Ie.join(ITEM_SPLITER))}z.push($e.join(`
|
||
`))}),z.join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function assembleOtherSeries($){return map$2($,function(z){var oe=z.getRawData(),ae=[z.name],ie=[];return oe.each(oe.dimensions,function(){for(var le=arguments.length,pe=arguments[le-1],_e=oe.getName(pe),Ce=0;Ce<le-1;Ce++)ie[Ce]=arguments[Ce];ae.push((_e?_e+ITEM_SPLITER:"")+ie.join(ITEM_SPLITER))}),ae.join(`
|
||
`)}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function getContentFromModel($){var z=groupSeries($);return{value:filter([assembleSeriesWithCategoryAxis(z.seriesGroupByCategoryAxis),assembleOtherSeries(z.other)],function(oe){return!!oe.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`),meta:z.meta}}function trim($){return $.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat($){var z=$.slice(0,$.indexOf(`
|
||
`));if(z.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents($){for(var z=$.split(/\n+/g),oe=trim(z.shift()).split(itemSplitRegex),ae=[],ie=map$2(oe,function(Ce){return{name:Ce,data:[]}}),le=0;le<z.length;le++){var pe=trim(z[le]).split(itemSplitRegex);ae.push(pe.shift());for(var _e=0;_e<pe.length;_e++)ie[_e]&&(ie[_e].data[le]=pe[_e])}return{series:ie,categories:ae}}function parseListContents($){for(var z=$.split(/\n+/g),oe=trim(z.shift()),ae=[],ie=0;ie<z.length;ie++){var le=trim(z[ie]);if(le){var pe=le.split(itemSplitRegex),_e="",Ce=void 0,$e=!1;isNaN(pe[0])?($e=!0,_e=pe[0],pe=pe.slice(1),ae[ie]={name:_e,value:[]},Ce=ae[ie].value):Ce=ae[ie]=[];for(var xe=0;xe<pe.length;xe++)Ce.push(+pe[xe]);Ce.length===1&&($e?ae[ie].value=Ce[0]:ae[ie]=Ce[0])}}return{name:oe,data:ae}}function parseContents($,z){var oe=$.split(new RegExp(`
|
||
*`+BLOCK_SPLITER+`
|
||
*`,"g")),ae={series:[]};return each$c(oe,function(ie,le){if(isTSVFormat(ie)){var pe=parseTSVContents(ie),_e=z[le],Ce=_e.axisDim+"Axis";_e&&(ae[Ce]=ae[Ce]||[],ae[Ce][_e.axisIndex]={data:pe.categories},ae.series=ae.series.concat(pe.series))}else{var pe=parseListContents(ie);ae.series.push(pe)}}),ae}var DataView$1=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(oe,ae){setTimeout(function(){ae.dispatchAction({type:"hideTip"})});var ie=ae.getDom(),le=this.model;this._dom&&ie.removeChild(this._dom);var pe=document.createElement("div");pe.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",pe.style.backgroundColor=le.get("backgroundColor")||"#fff";var _e=document.createElement("h4"),Ce=le.get("lang")||[];_e.innerHTML=Ce[0]||le.get("title"),_e.style.cssText="margin:10px 20px",_e.style.color=le.get("textColor");var $e=document.createElement("div"),xe=document.createElement("textarea");$e.style.cssText="overflow:auto";var Ie=le.get("optionToContent"),Ne=le.get("contentToOption"),Fe=getContentFromModel(oe);if(isFunction(Ie)){var ze=Ie(ae.getOption());isString(ze)?$e.innerHTML=ze:isDom(ze)&&$e.appendChild(ze)}else{xe.readOnly=le.get("readOnly");var At=xe.style;At.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",At.color=le.get("textColor"),At.borderColor=le.get("textareaBorderColor"),At.backgroundColor=le.get("textareaColor"),xe.value=Fe.value,$e.appendChild(xe)}var Lt=Fe.meta,hn=document.createElement("div");hn.style.cssText="position:absolute;bottom:5px;left:0;right:0";var vn="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_n=document.createElement("div"),bn=document.createElement("div");vn+=";background-color:"+le.get("buttonColor"),vn+=";color:"+le.get("buttonTextColor");var Cn=this;function En(){ie.removeChild(pe),Cn._dom=null}addEventListener(_n,"click",En),addEventListener(bn,"click",function(){if(Ne==null&&Ie!=null||Ne!=null&&Ie==null){En();return}var $n;try{isFunction(Ne)?$n=Ne($e,ae.getOption()):$n=parseContents(xe.value,Lt)}catch(wn){throw En(),new Error("Data view format error "+wn)}$n&&ae.dispatchAction({type:"changeDataView",newOption:$n}),En()}),_n.innerHTML=Ce[1],bn.innerHTML=Ce[2],bn.style.cssText=_n.style.cssText=vn,!le.get("readOnly")&&hn.appendChild(bn),hn.appendChild(_n),pe.appendChild(_e),pe.appendChild($e),pe.appendChild(hn),$e.style.height=ie.clientHeight-80+"px",ie.appendChild(pe),this._dom=pe},z.prototype.remove=function(oe,ae){this._dom&&ae.getDom().removeChild(this._dom)},z.prototype.dispose=function(oe,ae){this.remove(oe,ae)},z.getDefaultOption=function(oe){var ae={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:oe.getLocaleModel().get(["toolbox","dataView","title"]),lang:oe.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return ae},z}(ToolboxFeature);function tryMergeDataOption($,z){return map$2($,function(oe,ae){var ie=z&&z[ae];if(isObject$3(ie)&&!isArray$1(ie)){var le=isObject$3(oe)&&!isArray$1(oe);le||(oe={value:oe});var pe=ie.name!=null&&oe.name==null;return oe=defaults(oe,ie),pe&&delete oe.name,oe}else return oe})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function($,z){var oe=[];each$c($.newOption.series,function(ae){var ie=z.getSeriesByName(ae.name)[0];if(!ie)oe.push(extend({type:"scatter"},ae));else{var le=ie.get("data");oe.push({name:ae.name,data:tryMergeDataOption(ae.data,le)})}}),z.mergeOption(defaults({series:oe},$.newOption))});const DataView$2=DataView$1;var each$6=each$c,inner$1=makeInner();function push($,z){var oe=getStoreSnapshots($);each$6(z,function(ae,ie){for(var le=oe.length-1;le>=0;le--){var pe=oe[le];if(pe[ie])break}if(le<0){var _e=$.queryComponents({mainType:"dataZoom",subType:"select",id:ie})[0];if(_e){var Ce=_e.getPercentRange();oe[0][ie]={dataZoomId:ie,start:Ce[0],end:Ce[1]}}}}),oe.push(z)}function pop($){var z=getStoreSnapshots($),oe=z[z.length-1];z.length>1&&z.pop();var ae={};return each$6(oe,function(ie,le){for(var pe=z.length-1;pe>=0;pe--)if(ie=z[pe][le],ie){ae[le]=ie;break}}),ae}function clear($){inner$1($).snapshots=null}function count($){return getStoreSnapshots($).length}function getStoreSnapshots($){var z=inner$1($);return z.snapshots||(z.snapshots=[{}]),z.snapshots}var RestoreOption=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(oe,ae){clear(oe),ae.dispatchAction({type:"restore",from:this.uid})},z.getDefaultOption=function(oe){var ae={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:oe.getLocaleModel().get(["toolbox","restore","title"])};return ae},z}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function($,z){z.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function $(z,oe,ae){var ie=this;this._targetInfoList=[];var le=parseFinder(oe,z);each$c(targetInfoBuilders,function(pe,_e){(!ae||!ae.include||indexOf(ae.include,_e)>=0)&&pe(le,ie._targetInfoList)})}return $.prototype.setOutputRanges=function(z,oe){return this.matchOutputRanges(z,oe,function(ae,ie,le){if((ae.coordRanges||(ae.coordRanges=[])).push(ie),!ae.coordRange){ae.coordRange=ie;var pe=coordConvert[ae.brushType](0,le,ie);ae.__rangeOffset={offset:diffProcessor[ae.brushType](pe.values,ae.range,[1,1]),xyMinMax:pe.xyMinMax}}}),z},$.prototype.matchOutputRanges=function(z,oe,ae){each$c(z,function(ie){var le=this.findTargetInfo(ie,oe);le&&le!==!0&&each$c(le.coordSyses,function(pe){var _e=coordConvert[ie.brushType](1,pe,ie.range,!0);ae(ie,_e.values,pe,oe)})},this)},$.prototype.setInputRanges=function(z,oe){each$c(z,function(ae){var ie=this.findTargetInfo(ae,oe);if(ae.range=ae.range||[],ie&&ie!==!0){ae.panelId=ie.panelId;var le=coordConvert[ae.brushType](0,ie.coordSys,ae.coordRange),pe=ae.__rangeOffset;ae.range=pe?diffProcessor[ae.brushType](le.values,pe.offset,getScales(le.xyMinMax,pe.xyMinMax)):le.values}},this)},$.prototype.makePanelOpts=function(z,oe){return map$2(this._targetInfoList,function(ae){var ie=ae.getPanelRect();return{panelId:ae.panelId,defaultBrushType:oe?oe(ae):null,clipPath:makeRectPanelClipPath(ie),isTargetByCursor:makeRectIsTargetByCursor(ie,z,ae.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(ie)}})},$.prototype.controlSeries=function(z,oe,ae){var ie=this.findTargetInfo(z,ae);return ie===!0||ie&&indexOf(ie.coordSyses,oe.coordinateSystem)>=0},$.prototype.findTargetInfo=function(z,oe){for(var ae=this._targetInfoList,ie=parseFinder(oe,z),le=0;le<ae.length;le++){var pe=ae[le],_e=z.panelId;if(_e){if(pe.panelId===_e)return pe}else for(var Ce=0;Ce<targetInfoMatchers.length;Ce++)if(targetInfoMatchers[Ce](ie,pe))return pe}return!0},$}();function formatMinMax($){return $[0]>$[1]&&$.reverse(),$}function parseFinder($,z){return parseFinder$1($,z,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function($,z){var oe=$.xAxisModels,ae=$.yAxisModels,ie=$.gridModels,le=createHashMap(),pe={},_e={};!oe&&!ae&&!ie||(each$c(oe,function(Ce){var $e=Ce.axis.grid.model;le.set($e.id,$e),pe[$e.id]=!0}),each$c(ae,function(Ce){var $e=Ce.axis.grid.model;le.set($e.id,$e),_e[$e.id]=!0}),each$c(ie,function(Ce){le.set(Ce.id,Ce),pe[Ce.id]=!0,_e[Ce.id]=!0}),le.each(function(Ce){var $e=Ce.coordinateSystem,xe=[];each$c($e.getCartesians(),function(Ie,Ne){(indexOf(oe,Ie.getAxis("x").model)>=0||indexOf(ae,Ie.getAxis("y").model)>=0)&&xe.push(Ie)}),z.push({panelId:"grid--"+Ce.id,gridModel:Ce,coordSysModel:Ce,coordSys:xe[0],coordSyses:xe,getPanelRect:panelRectBuilders.grid,xAxisDeclared:pe[Ce.id],yAxisDeclared:_e[Ce.id]})}))},geo:function($,z){each$c($.geoModels,function(oe){var ae=oe.coordinateSystem;z.push({panelId:"geo--"+oe.id,geoModel:oe,coordSysModel:oe,coordSys:ae,coordSyses:[ae],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function($,z){var oe=$.xAxisModel,ae=$.yAxisModel,ie=$.gridModel;return!ie&&oe&&(ie=oe.axis.grid.model),!ie&&ae&&(ie=ae.axis.grid.model),ie&&ie===z.gridModel},function($,z){var oe=$.geoModel;return oe&&oe===z.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var $=this.coordSys,z=$.getBoundingRect().clone();return z.applyTransform(getTransform$1($)),z}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function($,z,oe,ae){var ie=$?z.pointToData([oe[0][0],oe[1][0]],ae):z.dataToPoint([oe[0][0],oe[1][0]],ae),le=$?z.pointToData([oe[0][1],oe[1][1]],ae):z.dataToPoint([oe[0][1],oe[1][1]],ae),pe=[formatMinMax([ie[0],le[0]]),formatMinMax([ie[1],le[1]])];return{values:pe,xyMinMax:pe}},polygon:function($,z,oe,ae){var ie=[[1/0,-1/0],[1/0,-1/0]],le=map$2(oe,function(pe){var _e=$?z.pointToData(pe,ae):z.dataToPoint(pe,ae);return ie[0][0]=Math.min(ie[0][0],_e[0]),ie[1][0]=Math.min(ie[1][0],_e[1]),ie[0][1]=Math.max(ie[0][1],_e[0]),ie[1][1]=Math.max(ie[1][1],_e[1]),_e});return{values:le,xyMinMax:ie}}};function axisConvert($,z,oe,ae){var ie=oe.getAxis(["x","y"][$]),le=formatMinMax(map$2([0,1],function(_e){return z?ie.coordToData(ie.toLocalCoord(ae[_e]),!0):ie.toGlobalCoord(ie.dataToCoord(ae[_e]))})),pe=[];return pe[$]=le,pe[1-$]=[NaN,NaN],{values:le,xyMinMax:pe}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function($,z,oe){return[[$[0][0]-oe[0]*z[0][0],$[0][1]-oe[0]*z[0][1]],[$[1][0]-oe[1]*z[1][0],$[1][1]-oe[1]*z[1][1]]]},polygon:function($,z,oe){return map$2($,function(ae,ie){return[ae[0]-oe[0]*z[ie][0],ae[1]-oe[1]*z[ie][1]]})}};function axisDiffProcessor($,z,oe,ae){return[z[0]-ae[$]*oe[0],z[1]-ae[$]*oe[1]]}function getScales($,z){var oe=getSize($),ae=getSize(z),ie=[oe[0]/ae[0],oe[1]/ae[1]];return isNaN(ie[0])&&(ie[0]=1),isNaN(ie[1])&&(ie[1]=1),ie}function getSize($){return $?[$[0][1]-$[0][0],$[1][1]-$[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.render=function(oe,ae,ie,le){this._brushController||(this._brushController=new BrushController$1(ie.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(oe,ae,this,le,ie),updateBackBtnStatus(oe,ae)},z.prototype.onclick=function(oe,ae,ie){handlers[ie].call(this)},z.prototype.remove=function(oe,ae){this._brushController&&this._brushController.unmount()},z.prototype.dispose=function(oe,ae){this._brushController&&this._brushController.dispose()},z.prototype._onBrush=function(oe){var ae=oe.areas;if(!oe.isEnd||!ae.length)return;var ie={},le=this.ecModel;this._brushController.updateCovers([]);var pe=new BrushTargetManager$1(makeAxisFinder(this.model),le,{include:["grid"]});pe.matchOutputRanges(ae,le,function($e,xe,Ie){if(Ie.type==="cartesian2d"){var Ne=$e.brushType;Ne==="rect"?(_e("x",Ie,xe[0]),_e("y",Ie,xe[1])):_e({lineX:"x",lineY:"y"}[Ne],Ie,xe)}}),push(le,ie),this._dispatchZoomAction(ie);function _e($e,xe,Ie){var Ne=xe.getAxis($e),Fe=Ne.model,ze=Ce($e,Fe,le),At=ze.findRepresentativeAxisProxy(Fe).getMinMaxSpan();(At.minValueSpan!=null||At.maxValueSpan!=null)&&(Ie=sliderMove(0,Ie.slice(),Ne.scale.getExtent(),0,At.minValueSpan,At.maxValueSpan)),ze&&(ie[ze.id]={dataZoomId:ze.id,startValue:Ie[0],endValue:Ie[1]})}function Ce($e,xe,Ie){var Ne;return Ie.eachComponent({mainType:"dataZoom",subType:"select"},function(Fe){var ze=Fe.getAxisModel($e,xe.componentIndex);ze&&(Ne=Fe)}),Ne}},z.prototype._dispatchZoomAction=function(oe){var ae=[];each$5(oe,function(ie,le){ae.push(clone$3(ie))}),ae.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:ae})},z.getDefaultOption=function(oe){var ae={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:oe.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return ae},z}(ToolboxFeature),handlers={zoom:function(){var $=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:$})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder($){var z={xAxisIndex:$.get("xAxisIndex",!0),yAxisIndex:$.get("yAxisIndex",!0),xAxisId:$.get("xAxisId",!0),yAxisId:$.get("yAxisId",!0)};return z.xAxisIndex==null&&z.xAxisId==null&&(z.xAxisIndex="all"),z.yAxisIndex==null&&z.yAxisId==null&&(z.yAxisIndex="all"),z}function updateBackBtnStatus($,z){$.setIconStatus("back",count(z)>1?"emphasis":"normal")}function updateZoomBtnStatus($,z,oe,ae,ie){var le=oe._isZoomActive;ae&&ae.type==="takeGlobalCursor"&&(le=ae.key==="dataZoomSelect"?ae.dataZoomSelectActive:!1),oe._isZoomActive=le,$.setIconStatus("zoom",le?"emphasis":"normal");var pe=new BrushTargetManager$1(makeAxisFinder($),z,{include:["grid"]}),_e=pe.makePanelOpts(ie,function(Ce){return Ce.xAxisDeclared&&!Ce.yAxisDeclared?"lineX":!Ce.xAxisDeclared&&Ce.yAxisDeclared?"lineY":"rect"});oe._brushController.setPanels(_e).enableBrush(le&&_e.length?{brushType:"auto",brushStyle:$.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function($){var z=$.getComponent("toolbox",0),oe=["feature","dataZoom"];if(!z||z.get(oe)==null)return;var ae=z.getModel(oe),ie=[],le=makeAxisFinder(ae),pe=parseFinder$1($,le);each$5(pe.xAxisModels,function(Ce){return _e(Ce,"xAxis","xAxisIndex")}),each$5(pe.yAxisModels,function(Ce){return _e(Ce,"yAxis","yAxisIndex")});function _e(Ce,$e,xe){var Ie=Ce.componentIndex,Ne={type:"select",$fromToolbox:!0,filterMode:ae.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+$e+Ie};Ne[xe]=Ie,ie.push(Ne)}return ie});const DataZoom=DataZoomFeature;function install$b($){$.registerComponentModel(ToolboxModel$1),$.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($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="tooltip",z.dependencies=["axisPointer"],z.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}},z}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine($){var z=$.get("confine");return z!=null?!!z:$.get("renderMode")==="richText"}function testStyle($){if(env$1.domSupported){for(var z=document.documentElement.style,oe=0,ae=$.length;oe<ae;oe++)if($[oe]in z)return $[oe]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix($,z){if(!$)return z;z=toCamelCase(z,!0);var oe=$.indexOf(z);return $=oe===-1?z:"-"+$.slice(0,oe)+"-"+z,$.toLowerCase()}function getComputedStyle$1($,z){var oe=$.currentStyle||document.defaultView&&document.defaultView.getComputedStyle($);return oe?z?oe[z]:oe:null}var CSS_TRANSITION_VENDOR=toCSSVendorPrefix(TRANSITION_VENDOR,"transition"),CSS_TRANSFORM_VENDOR=toCSSVendorPrefix(TRANSFORM_VENDOR,"transform"),gCssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(env$1.transform3dSupported?"will-change:transform;":"");function mirrorPos($){return $=$==="left"?"right":$==="right"?"left":$==="top"?"bottom":"top",$}function assembleArrow($,z,oe){if(!isString(oe)||oe==="inside")return"";var ae=$.get("backgroundColor"),ie=$.get("borderWidth");z=convertToColorString(z);var le=mirrorPos(oe),pe=Math.max(Math.round(ie)*1.5,6),_e="",Ce=CSS_TRANSFORM_VENDOR+":",$e;indexOf(["left","right"],le)>-1?(_e+="top:50%",Ce+="translateY(-50%) rotate("+($e=le==="left"?-225:-45)+"deg)"):(_e+="left:50%",Ce+="translateX(-50%) rotate("+($e=le==="top"?225:45)+"deg)");var xe=$e*Math.PI/180,Ie=pe+ie,Ne=Ie*Math.abs(Math.cos(xe))+Ie*Math.abs(Math.sin(xe)),Fe=Math.round(((Ne-Math.SQRT2*ie)/2+Math.SQRT2*ie-(Ne-Ie)/2)*100)/100;_e+=";"+le+":-"+Fe+"px";var ze=z+" solid "+ie+"px;",At=["position:absolute;width:"+pe+"px;height:"+pe+"px;z-index:-1;",_e+";"+Ce+";","border-bottom:"+ze,"border-right:"+ze,"background-color:"+ae+";"];return'<div style="'+At.join("")+'"></div>'}function assembleTransition($,z){var oe="cubic-bezier(0.23,1,0.32,1)",ae=" "+$/2+"s "+oe,ie="opacity"+ae+",visibility"+ae;return z||(ae=" "+$+"s "+oe,ie+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+ae:",left"+ae+",top"+ae),CSS_TRANSITION_VENDOR+":"+ie}function assembleTransform($,z,oe){var ae=$.toFixed(0)+"px",ie=z.toFixed(0)+"px";if(!env$1.transformSupported)return oe?"top:"+ie+";left:"+ae+";":[["top",ie],["left",ae]];var le=env$1.transform3dSupported,pe="translate"+(le?"3d":"")+"("+ae+","+ie+(le?",0":"")+")";return oe?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+pe+";":[["top",0],["left",0],[TRANSFORM_VENDOR,pe]]}function assembleFont($){var z=[],oe=$.get("fontSize"),ae=$.getTextColor();ae&&z.push("color:"+ae),z.push("font:"+$.getFont()),oe&&z.push("line-height:"+Math.round(oe*3/2)+"px");var ie=$.get("textShadowColor"),le=$.get("textShadowBlur")||0,pe=$.get("textShadowOffsetX")||0,_e=$.get("textShadowOffsetY")||0;return ie&&le&&z.push("text-shadow:"+pe+"px "+_e+"px "+le+"px "+ie),each$c(["decoration","align"],function(Ce){var $e=$.get(Ce);$e&&z.push("text-"+Ce+":"+$e)}),z.join(";")}function assembleCssText($,z,oe){var ae=[],ie=$.get("transitionDuration"),le=$.get("backgroundColor"),pe=$.get("shadowBlur"),_e=$.get("shadowColor"),Ce=$.get("shadowOffsetX"),$e=$.get("shadowOffsetY"),xe=$.getModel("textStyle"),Ie=getPaddingFromTooltipModel($,"html"),Ne=Ce+"px "+$e+"px "+pe+"px "+_e;return ae.push("box-shadow:"+Ne),z&&ie&&ae.push(assembleTransition(ie,oe)),le&&ae.push("background-color:"+le),each$c(["width","color","radius"],function(Fe){var ze="border-"+Fe,At=toCamelCase(ze),Lt=$.get(At);Lt!=null&&ae.push(ze+":"+Lt+(Fe==="color"?"":"px"))}),ae.push(assembleFont(xe)),Ie!=null&&ae.push("padding:"+normalizeCssArray(Ie).join("px ")+"px"),ae.join(";")+";"}function makeStyleCoord$1($,z,oe,ae,ie){var le=z&&z.painter;if(oe){var pe=le&&le.getViewportRoot();pe&&transformLocalCoord($,pe,document.body,ae,ie)}else{$[0]=ae,$[1]=ie;var _e=le&&le.getViewportRootOffset();_e&&($[0]+=_e.offsetLeft,$[1]+=_e.offsetTop)}$[2]=$[0]/z.getWidth(),$[3]=$[1]/z.getHeight()}var TooltipHTMLContent=function(){function $(z,oe,ae){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=oe.getZr(),pe=this._appendToBody=ae&&ae.appendToBody;makeStyleCoord$1(this._styleCoord,le,pe,oe.getWidth()/2,oe.getHeight()/2),pe?document.body.appendChild(ie):z.appendChild(ie),this._container=z;var _e=this;ie.onmouseenter=function(){_e._enterable&&(clearTimeout(_e._hideTimeout),_e._show=!0),_e._inContent=!0},ie.onmousemove=function(Ce){if(Ce=Ce||window.event,!_e._enterable){var $e=le.handler,xe=le.painter.getViewportRoot();normalizeEvent(xe,Ce,!0),$e.dispatch("mousemove",Ce)}},ie.onmouseleave=function(){_e._inContent=!1,_e._enterable&&_e._show&&_e.hideLater(_e._hideDelay)}}return $.prototype.update=function(z){var oe=this._container,ae=getComputedStyle$1(oe,"position"),ie=oe.style;ie.position!=="absolute"&&ae!=="absolute"&&(ie.position="relative");var le=z.get("alwaysShowContent");le&&this._moveIfResized(),this._alwaysShowContent=le,this.el.className=z.get("className")||""},$.prototype.show=function(z,oe){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var ae=this.el,ie=ae.style,le=this._styleCoord;ae.innerHTML?ie.cssText=gCssText+assembleCssText(z,!this._firstShow,this._longHide)+assembleTransform(le[0],le[1],!0)+("border-color:"+convertToColorString(oe)+";")+(z.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):ie.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},$.prototype.setContent=function(z,oe,ae,ie,le){var pe=this.el;if(z==null){pe.innerHTML="";return}var _e="";if(isString(le)&&ae.get("trigger")==="item"&&!shouldTooltipConfine(ae)&&(_e=assembleArrow(ae,ie,le)),isString(z))pe.innerHTML=z+_e;else if(z){pe.innerHTML="",isArray$1(z)||(z=[z]);for(var Ce=0;Ce<z.length;Ce++)isDom(z[Ce])&&z[Ce].parentNode!==pe&&pe.appendChild(z[Ce]);if(_e&&pe.childNodes.length){var $e=document.createElement("div");$e.innerHTML=_e,pe.appendChild($e)}}},$.prototype.setEnterable=function(z){this._enterable=z},$.prototype.getSize=function(){var z=this.el;return[z.offsetWidth,z.offsetHeight]},$.prototype.moveTo=function(z,oe){var ae=this._styleCoord;if(makeStyleCoord$1(ae,this._zr,this._appendToBody,z,oe),ae[0]!=null&&ae[1]!=null){var ie=this.el.style,le=assembleTransform(ae[0],ae[1]);each$c(le,function(pe){ie[pe[0]]=pe[1]})}},$.prototype._moveIfResized=function(){var z=this._styleCoord[2],oe=this._styleCoord[3];this.moveTo(z*this._zr.getWidth(),oe*this._zr.getHeight())},$.prototype.hide=function(){var z=this,oe=this.el.style;oe.visibility="hidden",oe.opacity="0",env$1.transform3dSupported&&(oe.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return z._longHide=!0},500)},$.prototype.hideLater=function(z){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(z?(this._hideDelay=z,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),z)):this.hide())},$.prototype.isShow=function(){return this._show},$.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},$}();const TooltipHTMLContent$1=TooltipHTMLContent;var TooltipRichContent=function(){function $(z){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=z.getZr(),makeStyleCoord(this._styleCoord,this._zr,z.getWidth()/2,z.getHeight()/2)}return $.prototype.update=function(z){var oe=z.get("alwaysShowContent");oe&&this._moveIfResized(),this._alwaysShowContent=oe},$.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},$.prototype.setContent=function(z,oe,ae,ie,le){var pe=this;isObject$3(z)&&throwError(""),this.el&&this._zr.remove(this.el);var _e=ae.getModel("textStyle");this.el=new ZRText$1({style:{rich:oe.richTextStyles,text:z,lineHeight:22,borderWidth:1,borderColor:ie,textShadowColor:_e.get("textShadowColor"),fill:ae.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(ae,"richText"),verticalAlign:"top",align:"left"},z:ae.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function($e){pe.el.style[$e]=ae.get($e)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function($e){pe.el.style[$e]=_e.get($e)||0}),this._zr.add(this.el);var Ce=this;this.el.on("mouseover",function(){Ce._enterable&&(clearTimeout(Ce._hideTimeout),Ce._show=!0),Ce._inContent=!0}),this.el.on("mouseout",function(){Ce._enterable&&Ce._show&&Ce.hideLater(Ce._hideDelay),Ce._inContent=!1})},$.prototype.setEnterable=function(z){this._enterable=z},$.prototype.getSize=function(){var z=this.el,oe=this.el.getBoundingRect(),ae=calcShadowOuterSize(z.style);return[oe.width+ae.left+ae.right,oe.height+ae.top+ae.bottom]},$.prototype.moveTo=function(z,oe){var ae=this.el;if(ae){var ie=this._styleCoord;makeStyleCoord(ie,this._zr,z,oe),z=ie[0],oe=ie[1];var le=ae.style,pe=mathMaxWith0(le.borderWidth||0),_e=calcShadowOuterSize(le);ae.x=z+pe+_e.left,ae.y=oe+pe+_e.top,ae.markRedraw()}},$.prototype._moveIfResized=function(){var z=this._styleCoord[2],oe=this._styleCoord[3];this.moveTo(z*this._zr.getWidth(),oe*this._zr.getHeight())},$.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},$.prototype.hideLater=function(z){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(z?(this._hideDelay=z,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),z)):this.hide())},$.prototype.isShow=function(){return this._show},$.prototype.dispose=function(){this._zr.remove(this.el)},$}();function mathMaxWith0($){return Math.max(0,$)}function calcShadowOuterSize($){var z=mathMaxWith0($.shadowBlur||0),oe=mathMaxWith0($.shadowOffsetX||0),ae=mathMaxWith0($.shadowOffsetY||0);return{left:mathMaxWith0(z-oe),right:mathMaxWith0(z+oe),top:mathMaxWith0(z-ae),bottom:mathMaxWith0(z+ae)}}function makeStyleCoord($,z,oe,ae){$[0]=oe,$[1]=ae,$[2]=$[0]/z.getWidth(),$[3]=$[1]/z.getHeight()}const TooltipRichContent$1=TooltipRichContent;var proxyRect=new Rect$2({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.init=function(oe,ae){if(!(env$1.node||!ae.getDom())){var ie=oe.getComponent("tooltip"),le=this._renderMode=getTooltipRenderMode(ie.get("renderMode"));this._tooltipContent=le==="richText"?new TooltipRichContent$1(ae):new TooltipHTMLContent$1(ae.getDom(),ae,{appendToBody:ie.get("appendToBody",!0)})}},z.prototype.render=function(oe,ae,ie){if(!(env$1.node||!ie.getDom())){this.group.removeAll(),this._tooltipModel=oe,this._ecModel=ae,this._api=ie;var le=this._tooltipContent;le.update(oe),le.setEnterable(oe.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&oe.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},z.prototype._initGlobalListener=function(){var oe=this._tooltipModel,ae=oe.get("triggerOn");register("itemTooltip",this._api,bind$1(function(ie,le,pe){ae!=="none"&&(ae.indexOf(ie)>=0?this._tryShow(le,pe):ie==="leave"&&this._hide(pe))},this))},z.prototype._keepShow=function(){var oe=this._tooltipModel,ae=this._ecModel,ie=this._api,le=oe.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&le!=="none"&&le!=="click"){var pe=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!ie.isDisposed()&&pe.manuallyShowTip(oe,ae,ie,{x:pe._lastX,y:pe._lastY,dataByCoordSys:pe._lastDataByCoordSys})})}},z.prototype.manuallyShowTip=function(oe,ae,ie,le){if(!(le.from===this.uid||env$1.node||!ie.getDom())){var pe=makeDispatchAction(le,ie);this._ticket="";var _e=le.dataByCoordSys,Ce=findComponentReference(le,ae,ie);if(Ce){var $e=Ce.el.getBoundingRect().clone();$e.applyTransform(Ce.el.transform),this._tryShow({offsetX:$e.x+$e.width/2,offsetY:$e.y+$e.height/2,target:Ce.el,position:le.position,positionDefault:"bottom"},pe)}else if(le.tooltip&&le.x!=null&&le.y!=null){var xe=proxyRect;xe.x=le.x,xe.y=le.y,xe.update(),getECData(xe).tooltipConfig={name:null,option:le.tooltip},this._tryShow({offsetX:le.x,offsetY:le.y,target:xe},pe)}else if(_e)this._tryShow({offsetX:le.x,offsetY:le.y,position:le.position,dataByCoordSys:_e,tooltipOption:le.tooltipOption},pe);else if(le.seriesIndex!=null){if(this._manuallyAxisShowTip(oe,ae,ie,le))return;var Ie=findPointFromSeries(le,ae),Ne=Ie.point[0],Fe=Ie.point[1];Ne!=null&&Fe!=null&&this._tryShow({offsetX:Ne,offsetY:Fe,target:Ie.el,position:le.position,positionDefault:"bottom"},pe)}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},pe))}},z.prototype.manuallyHideTip=function(oe,ae,ie,le){var pe=this._tooltipContent;this._tooltipModel&&pe.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,le.from!==this.uid&&this._hide(makeDispatchAction(le,ie))},z.prototype._manuallyAxisShowTip=function(oe,ae,ie,le){var pe=le.seriesIndex,_e=le.dataIndex,Ce=ae.getComponent("axisPointer").coordSysAxesInfo;if(!(pe==null||_e==null||Ce==null)){var $e=ae.getSeriesByIndex(pe);if($e){var xe=$e.getData(),Ie=buildTooltipModel([xe.getItemModel(_e),$e,($e.coordinateSystem||{}).model],this._tooltipModel);if(Ie.get("trigger")==="axis")return ie.dispatchAction({type:"updateAxisPointer",seriesIndex:pe,dataIndex:_e,position:le.position}),!0}}},z.prototype._tryShow=function(oe,ae){var ie=oe.target,le=this._tooltipModel;if(le){this._lastX=oe.offsetX,this._lastY=oe.offsetY;var pe=oe.dataByCoordSys;if(pe&&pe.length)this._showAxisTooltip(pe,oe);else if(ie){this._lastDataByCoordSys=null;var _e,Ce;findEventDispatcher(ie,function($e){if(getECData($e).dataIndex!=null)return _e=$e,!0;if(getECData($e).tooltipConfig!=null)return Ce=$e,!0},!0),_e?this._showSeriesItemTooltip(oe,_e,ae):Ce?this._showComponentItemTooltip(oe,Ce,ae):this._hide(ae)}else this._lastDataByCoordSys=null,this._hide(ae)}},z.prototype._showOrMove=function(oe,ae){var ie=oe.get("showDelay");ae=bind$1(ae,this),clearTimeout(this._showTimout),ie>0?this._showTimout=setTimeout(ae,ie):ae()},z.prototype._showAxisTooltip=function(oe,ae){var ie=this._ecModel,le=this._tooltipModel,pe=[ae.offsetX,ae.offsetY],_e=buildTooltipModel([ae.tooltipOption],le),Ce=this._renderMode,$e=[],xe=createTooltipMarkup("section",{blocks:[],noHeader:!0}),Ie=[],Ne=new TooltipMarkupStyleCreator;each$c(oe,function(vn){each$c(vn.dataByAxis,function(_n){var bn=ie.getComponent(_n.axisDim+"Axis",_n.axisIndex),Cn=_n.value;if(!(!bn||Cn==null)){var En=getValueLabel(Cn,bn.axis,ie,_n.seriesDataIndices,_n.valueLabelOpt),$n=createTooltipMarkup("section",{header:En,noHeader:!trim$1(En),sortBlocks:!0,blocks:[]});xe.blocks.push($n),each$c(_n.seriesDataIndices,function(wn){var Tn=ie.getSeriesByIndex(wn.seriesIndex),xn=wn.dataIndexInside,kn=Tn.getDataParams(xn);if(!(kn.dataIndex<0)){kn.axisDim=_n.axisDim,kn.axisIndex=_n.axisIndex,kn.axisType=_n.axisType,kn.axisId=_n.axisId,kn.axisValue=getAxisRawValue(bn.axis,{value:Cn}),kn.axisValueLabel=En,kn.marker=Ne.makeTooltipMarker("item",convertToColorString(kn.color),Ce);var An=normalizeTooltipFormatResult(Tn.formatTooltip(xn,!0,null)),On=An.frag;if(On){var Mn=buildTooltipModel([Tn],le).get("valueFormatter");$n.blocks.push(Mn?extend({valueFormatter:Mn},On):On)}An.text&&Ie.push(An.text),$e.push(kn)}})}})}),xe.blocks.reverse(),Ie.reverse();var Fe=ae.position,ze=_e.get("order"),At=buildTooltipMarkup(xe,Ne,Ce,ze,ie.get("useUTC"),_e.get("textStyle"));At&&Ie.unshift(At);var Lt=Ce==="richText"?`
|
||
|
||
`:"<br/>",hn=Ie.join(Lt);this._showOrMove(_e,function(){this._updateContentNotChangedOnAxis(oe,$e)?this._updatePosition(_e,Fe,pe[0],pe[1],this._tooltipContent,$e):this._showTooltipContent(_e,hn,$e,Math.random()+"",pe[0],pe[1],Fe,null,Ne)})},z.prototype._showSeriesItemTooltip=function(oe,ae,ie){var le=this._ecModel,pe=getECData(ae),_e=pe.seriesIndex,Ce=le.getSeriesByIndex(_e),$e=pe.dataModel||Ce,xe=pe.dataIndex,Ie=pe.dataType,Ne=$e.getData(Ie),Fe=this._renderMode,ze=oe.positionDefault,At=buildTooltipModel([Ne.getItemModel(xe),$e,Ce&&(Ce.coordinateSystem||{}).model],this._tooltipModel,ze?{position:ze}:null),Lt=At.get("trigger");if(!(Lt!=null&&Lt!=="item")){var hn=$e.getDataParams(xe,Ie),vn=new TooltipMarkupStyleCreator;hn.marker=vn.makeTooltipMarker("item",convertToColorString(hn.color),Fe);var _n=normalizeTooltipFormatResult($e.formatTooltip(xe,!1,Ie)),bn=At.get("order"),Cn=At.get("valueFormatter"),En=_n.frag,$n=En?buildTooltipMarkup(Cn?extend({valueFormatter:Cn},En):En,vn,Fe,bn,le.get("useUTC"),At.get("textStyle")):_n.text,wn="item_"+$e.name+"_"+xe;this._showOrMove(At,function(){this._showTooltipContent(At,$n,hn,wn,oe.offsetX,oe.offsetY,oe.position,oe.target,vn)}),ie({type:"showTip",dataIndexInside:xe,dataIndex:Ne.getRawIndex(xe),seriesIndex:_e,from:this.uid})}},z.prototype._showComponentItemTooltip=function(oe,ae,ie){var le=getECData(ae),pe=le.tooltipConfig,_e=pe.option||{};if(isString(_e)){var Ce=_e;_e={content:Ce,formatter:Ce}}var $e=[_e],xe=this._ecModel.getComponent(le.componentMainType,le.componentIndex);xe&&$e.push(xe),$e.push({formatter:_e.content});var Ie=oe.positionDefault,Ne=buildTooltipModel($e,this._tooltipModel,Ie?{position:Ie}:null),Fe=Ne.get("content"),ze=Math.random()+"",At=new TooltipMarkupStyleCreator;this._showOrMove(Ne,function(){var Lt=clone$3(Ne.get("formatterParams")||{});this._showTooltipContent(Ne,Fe,Lt,ze,oe.offsetX,oe.offsetY,oe.position,ae,At)}),ie({type:"showTip",from:this.uid})},z.prototype._showTooltipContent=function(oe,ae,ie,le,pe,_e,Ce,$e,xe){if(this._ticket="",!(!oe.get("showContent")||!oe.get("show"))){var Ie=this._tooltipContent;Ie.setEnterable(oe.get("enterable"));var Ne=oe.get("formatter");Ce=Ce||oe.get("position");var Fe=ae,ze=this._getNearestPoint([pe,_e],ie,oe.get("trigger"),oe.get("borderColor")),At=ze.color;if(Ne)if(isString(Ne)){var Lt=oe.ecModel.get("useUTC"),hn=isArray$1(ie)?ie[0]:ie,vn=hn&&hn.axisType&&hn.axisType.indexOf("time")>=0;Fe=Ne,vn&&(Fe=format$1(hn.axisValue,Fe,Lt)),Fe=formatTpl(Fe,ie,!0)}else if(isFunction(Ne)){var _n=bind$1(function(bn,Cn){bn===this._ticket&&(Ie.setContent(Cn,xe,oe,At,Ce),this._updatePosition(oe,Ce,pe,_e,Ie,ie,$e))},this);this._ticket=le,Fe=Ne(ie,le,_n)}else Fe=Ne;Ie.setContent(Fe,xe,oe,At,Ce),Ie.show(oe,At),this._updatePosition(oe,Ce,pe,_e,Ie,ie,$e)}},z.prototype._getNearestPoint=function(oe,ae,ie,le){if(ie==="axis"||isArray$1(ae))return{color:le||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(ae))return{color:le||ae.color||ae.borderColor}},z.prototype._updatePosition=function(oe,ae,ie,le,pe,_e,Ce){var $e=this._api.getWidth(),xe=this._api.getHeight();ae=ae||oe.get("position");var Ie=pe.getSize(),Ne=oe.get("align"),Fe=oe.get("verticalAlign"),ze=Ce&&Ce.getBoundingRect().clone();if(Ce&&ze.applyTransform(Ce.transform),isFunction(ae)&&(ae=ae([ie,le],_e,pe.el,ze,{viewSize:[$e,xe],contentSize:Ie.slice()})),isArray$1(ae))ie=parsePercent(ae[0],$e),le=parsePercent(ae[1],xe);else if(isObject$3(ae)){var At=ae;At.width=Ie[0],At.height=Ie[1];var Lt=getLayoutRect(At,{width:$e,height:xe});ie=Lt.x,le=Lt.y,Ne=null,Fe=null}else if(isString(ae)&&Ce){var hn=calcTooltipPosition(ae,ze,Ie,oe.get("borderWidth"));ie=hn[0],le=hn[1]}else{var hn=refixTooltipPosition(ie,le,pe,$e,xe,Ne?null:20,Fe?null:20);ie=hn[0],le=hn[1]}if(Ne&&(ie-=isCenterAlign(Ne)?Ie[0]/2:Ne==="right"?Ie[0]:0),Fe&&(le-=isCenterAlign(Fe)?Ie[1]/2:Fe==="bottom"?Ie[1]:0),shouldTooltipConfine(oe)){var hn=confineTooltipPosition(ie,le,pe,$e,xe);ie=hn[0],le=hn[1]}pe.moveTo(ie,le)},z.prototype._updateContentNotChangedOnAxis=function(oe,ae){var ie=this._lastDataByCoordSys,le=this._cbParamsList,pe=!!ie&&ie.length===oe.length;return pe&&each$c(ie,function(_e,Ce){var $e=_e.dataByAxis||[],xe=oe[Ce]||{},Ie=xe.dataByAxis||[];pe=pe&&$e.length===Ie.length,pe&&each$c($e,function(Ne,Fe){var ze=Ie[Fe]||{},At=Ne.seriesDataIndices||[],Lt=ze.seriesDataIndices||[];pe=pe&&Ne.value===ze.value&&Ne.axisType===ze.axisType&&Ne.axisId===ze.axisId&&At.length===Lt.length,pe&&each$c(At,function(hn,vn){var _n=Lt[vn];pe=pe&&hn.seriesIndex===_n.seriesIndex&&hn.dataIndex===_n.dataIndex}),le&&each$c(Ne.seriesDataIndices,function(hn){var vn=hn.seriesIndex,_n=ae[vn],bn=le[vn];_n&&bn&&bn.data!==_n.data&&(pe=!1)})})}),this._lastDataByCoordSys=oe,this._cbParamsList=ae,!!pe},z.prototype._hide=function(oe){this._lastDataByCoordSys=null,oe({type:"hideTip",from:this.uid})},z.prototype.dispose=function(oe,ae){env$1.node||!ae.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",ae))},z.type="tooltip",z}(ComponentView$1);function buildTooltipModel($,z,oe){var ae=z.ecModel,ie;oe?(ie=new Model$1(oe,ae,ae),ie=new Model$1(z.option,ie,ae)):ie=z;for(var le=$.length-1;le>=0;le--){var pe=$[le];pe&&(pe instanceof Model$1&&(pe=pe.get("tooltip",!0)),isString(pe)&&(pe={formatter:pe}),pe&&(ie=new Model$1(pe,ie,ae)))}return ie}function makeDispatchAction($,z){return $.dispatchAction||bind$1(z.dispatchAction,z)}function refixTooltipPosition($,z,oe,ae,ie,le,pe){var _e=oe.getSize(),Ce=_e[0],$e=_e[1];return le!=null&&($+Ce+le+2>ae?$-=Ce+le:$+=le),pe!=null&&(z+$e+pe>ie?z-=$e+pe:z+=pe),[$,z]}function confineTooltipPosition($,z,oe,ae,ie){var le=oe.getSize(),pe=le[0],_e=le[1];return $=Math.min($+pe,ae)-pe,z=Math.min(z+_e,ie)-_e,$=Math.max($,0),z=Math.max(z,0),[$,z]}function calcTooltipPosition($,z,oe,ae){var ie=oe[0],le=oe[1],pe=Math.ceil(Math.SQRT2*ae)+8,_e=0,Ce=0,$e=z.width,xe=z.height;switch($){case"inside":_e=z.x+$e/2-ie/2,Ce=z.y+xe/2-le/2;break;case"top":_e=z.x+$e/2-ie/2,Ce=z.y-le-pe;break;case"bottom":_e=z.x+$e/2-ie/2,Ce=z.y+xe+pe;break;case"left":_e=z.x-ie-pe,Ce=z.y+xe/2-le/2;break;case"right":_e=z.x+$e+pe,Ce=z.y+xe/2-le/2}return[_e,Ce]}function isCenterAlign($){return $==="center"||$==="middle"}function findComponentReference($,z,oe){var ae=preParseFinder($).queryOptionMap,ie=ae.keys()[0];if(!(!ie||ie==="series")){var le=queryReferringComponents(z,ie,ae.get(ie),{useDefault:!1,enableAll:!1,enableNone:!1}),pe=le.models[0];if(pe){var _e=oe.getViewOfComponentModel(pe),Ce;if(_e.group.traverse(function($e){var xe=getECData($e).tooltipConfig;if(xe&&xe.name===$.name)return Ce=$e,!0}),Ce)return{componentMainType:ie,componentIndex:pe.componentIndex,el:Ce}}}}const TooltipView$1=TooltipView;function install$a($){use$1(install$f),$.registerComponentModel(TooltipModel$1),$.registerComponentView(TooltipView$1),$.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),$.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys($){if($){for(var z in $)if($.hasOwnProperty(z))return!0}}function createVisualMappings($,z,oe){var ae={};return each$4(z,function(le){var pe=ae[le]=ie();each$4($[le],function(_e,Ce){if(VisualMapping$1.isValidType(Ce)){var $e={type:Ce,visual:_e};oe&&oe($e,le),pe[Ce]=new VisualMapping$1($e),Ce==="opacity"&&($e=clone$3($e),$e.type="colorAlpha",pe.__hidden.__alphaForOpacity=new VisualMapping$1($e))}})}),ae;function ie(){var le=function(){};le.prototype.__hidden=le.prototype;var pe=new le;return pe}}function replaceVisualOption($,z,oe){var ae;each$c(oe,function(ie){z.hasOwnProperty(ie)&&hasKeys(z[ie])&&(ae=!0)}),ae&&each$c(oe,function(ie){z.hasOwnProperty(ie)&&hasKeys(z[ie])?$[ie]=clone$3(z[ie]):delete $[ie]})}function incrementalApplyVisual($,z,oe,ae){var ie={};return each$c($,function(le){var pe=VisualMapping$1.prepareVisualTypes(z[le]);ie[le]=pe}),{progress:function(pe,_e){var Ce;ae!=null&&(Ce=_e.getDimensionIndex(ae));function $e(Cn){return getItemVisualFromData(_e,Ie,Cn)}function xe(Cn,En){setItemVisualFromData(_e,Ie,Cn,En)}for(var Ie,Ne=_e.getStore();(Ie=pe.next())!=null;){var Fe=_e.getRawDataItem(Ie);if(!(Fe&&Fe.visualMap===!1))for(var ze=ae!=null?Ne.get(Ce,Ie):Ie,At=oe(ze),Lt=z[At],hn=ie[At],vn=0,_n=hn.length;vn<_n;vn++){var bn=hn[vn];Lt[bn]&&Lt[bn].applyVisual(ze,$e,xe)}}}}}var TitleModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.layoutMode={type:"box",ignoreSize:!0},oe}return z.type="title",z.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},z}(ComponentModel$1),TitleView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,ie){if(this.group.removeAll(),!!oe.get("show")){var le=this.group,pe=oe.getModel("textStyle"),_e=oe.getModel("subtextStyle"),Ce=oe.get("textAlign"),$e=retrieve2(oe.get("textBaseline"),oe.get("textVerticalAlign")),xe=new ZRText$1({style:createTextStyle$1(pe,{text:oe.get("text"),fill:pe.getTextColor()},{disableBox:!0}),z2:10}),Ie=xe.getBoundingRect(),Ne=oe.get("subtext"),Fe=new ZRText$1({style:createTextStyle$1(_e,{text:Ne,fill:_e.getTextColor(),y:Ie.height+oe.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),ze=oe.get("link"),At=oe.get("sublink"),Lt=oe.get("triggerEvent",!0);xe.silent=!ze&&!Lt,Fe.silent=!At&&!Lt,ze&&xe.on("click",function(){windowOpen(ze,"_"+oe.get("target"))}),At&&Fe.on("click",function(){windowOpen(At,"_"+oe.get("subtarget"))}),getECData(xe).eventData=getECData(Fe).eventData=Lt?{componentType:"title",componentIndex:oe.componentIndex}:null,le.add(xe),Ne&&le.add(Fe);var hn=le.getBoundingRect(),vn=oe.getBoxLayoutParams();vn.width=hn.width,vn.height=hn.height;var _n=getLayoutRect(vn,{width:ie.getWidth(),height:ie.getHeight()},oe.get("padding"));Ce||(Ce=oe.get("left")||oe.get("right"),Ce==="middle"&&(Ce="center"),Ce==="right"?_n.x+=_n.width:Ce==="center"&&(_n.x+=_n.width/2)),$e||($e=oe.get("top")||oe.get("bottom"),$e==="center"&&($e="middle"),$e==="bottom"?_n.y+=_n.height:$e==="middle"&&(_n.y+=_n.height/2),$e=$e||"top"),le.x=_n.x,le.y=_n.y,le.markRedraw();var bn={align:Ce,verticalAlign:$e};xe.setStyle(bn),Fe.setStyle(bn),hn=le.getBoundingRect();var Cn=_n.margin,En=oe.getItemStyle(["color","opacity"]);En.fill=oe.get("backgroundColor");var $n=new Rect$2({shape:{x:hn.x-Cn[3],y:hn.y-Cn[0],width:hn.width+Cn[1]+Cn[3],height:hn.height+Cn[0]+Cn[2],r:oe.get("borderRadius")},style:En,subPixelOptimize:!0,silent:!0});le.add($n)}},z.type="title",z}(ComponentView$1);function install$9($){$.registerComponentModel(TitleModel),$.registerComponentView(TitleView)}var getDefaultSelectorOptions=function($,z){if(z==="all")return{type:"all",title:$.getLocaleModel().get(["legend","selector","all"])};if(z==="inverse")return{type:"inverse",title:$.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.layoutMode={type:"box",ignoreSize:!0},oe}return z.prototype.init=function(oe,ae,ie){this.mergeDefaultAndTheme(oe,ie),oe.selected=oe.selected||{},this._updateSelector(oe)},z.prototype.mergeOption=function(oe,ae){$.prototype.mergeOption.call(this,oe,ae),this._updateSelector(oe)},z.prototype._updateSelector=function(oe){var ae=oe.selector,ie=this.ecModel;ae===!0&&(ae=oe.selector=["all","inverse"]),isArray$1(ae)&&each$c(ae,function(le,pe){isString(le)&&(le={type:le}),ae[pe]=merge(le,getDefaultSelectorOptions(ie,le.type))})},z.prototype.optionUpdated=function(){this._updateData(this.ecModel);var oe=this._data;if(oe[0]&&this.get("selectedMode")==="single"){for(var ae=!1,ie=0;ie<oe.length;ie++){var le=oe[ie].get("name");if(this.isSelected(le)){this.select(le),ae=!0;break}}!ae&&this.select(oe[0].get("name"))}},z.prototype._updateData=function(oe){var ae=[],ie=[];oe.eachRawSeries(function(Ce){var $e=Ce.name;ie.push($e);var xe;if(Ce.legendVisualProvider){var Ie=Ce.legendVisualProvider,Ne=Ie.getAllNames();oe.isSeriesFiltered(Ce)||(ie=ie.concat(Ne)),Ne.length?ae=ae.concat(Ne):xe=!0}else xe=!0;xe&&isNameSpecified(Ce)&&ae.push(Ce.name)}),this._availableNames=ie;var le=this.get("data")||ae,pe=createHashMap(),_e=map$2(le,function(Ce){return(isString(Ce)||isNumber(Ce))&&(Ce={name:Ce}),pe.get(Ce.name)?null:(pe.set(Ce.name,!0),new Model$1(Ce,this,this.ecModel))},this);this._data=filter(_e,function(Ce){return!!Ce})},z.prototype.getData=function(){return this._data},z.prototype.select=function(oe){var ae=this.option.selected,ie=this.get("selectedMode");if(ie==="single"){var le=this._data;each$c(le,function(pe){ae[pe.get("name")]=!1})}ae[oe]=!0},z.prototype.unSelect=function(oe){this.get("selectedMode")!=="single"&&(this.option.selected[oe]=!1)},z.prototype.toggleSelected=function(oe){var ae=this.option.selected;ae.hasOwnProperty(oe)||(ae[oe]=!0),this[ae[oe]?"unSelect":"select"](oe)},z.prototype.allSelect=function(){var oe=this._data,ae=this.option.selected;each$c(oe,function(ie){ae[ie.get("name",!0)]=!0})},z.prototype.inverseSelect=function(){var oe=this._data,ae=this.option.selected;each$c(oe,function(ie){var le=ie.get("name",!0);ae.hasOwnProperty(le)||(ae[le]=!0),ae[le]=!ae[le]})},z.prototype.isSelected=function(oe){var ae=this.option.selected;return!(ae.hasOwnProperty(oe)&&!ae[oe])&&indexOf(this._availableNames,oe)>=0},z.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},z.type="legend.plain",z.dependencies=["series"],z.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}},z}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.newlineDisabled=!1,oe}return z.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},z.prototype.getContentGroup=function(){return this._contentGroup},z.prototype.getSelectorGroup=function(){return this._selectorGroup},z.prototype.render=function(oe,ae,ie){var le=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!oe.get("show",!0)){var pe=oe.get("align"),_e=oe.get("orient");(!pe||pe==="auto")&&(pe=oe.get("left")==="right"&&_e==="vertical"?"right":"left");var Ce=oe.get("selector",!0),$e=oe.get("selectorPosition",!0);Ce&&(!$e||$e==="auto")&&($e=_e==="horizontal"?"end":"start"),this.renderInner(pe,oe,ae,ie,Ce,_e,$e);var xe=oe.getBoxLayoutParams(),Ie={width:ie.getWidth(),height:ie.getHeight()},Ne=oe.get("padding"),Fe=getLayoutRect(xe,Ie,Ne),ze=this.layoutInner(oe,pe,Fe,le,Ce,$e),At=getLayoutRect(defaults({width:ze.width,height:ze.height},xe),Ie,Ne);this.group.x=At.x-ze.x,this.group.y=At.y-ze.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(ze,oe))}},z.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},z.prototype.renderInner=function(oe,ae,ie,le,pe,_e,Ce){var $e=this.getContentGroup(),xe=createHashMap(),Ie=ae.get("selectedMode"),Ne=[];ie.eachRawSeries(function(Fe){!Fe.get("legendHoverLink")&&Ne.push(Fe.id)}),each$3(ae.getData(),function(Fe,ze){var At=Fe.get("name");if(!this.newlineDisabled&&(At===""||At===`
|
||
`)){var Lt=new Group$1;Lt.newline=!0,$e.add(Lt);return}var hn=ie.getSeriesByName(At)[0];if(!xe.get(At))if(hn){var vn=hn.getData(),_n=vn.getVisual("legendLineStyle")||{},bn=vn.getVisual("legendIcon"),Cn=vn.getVisual("style"),En=this._createItem(hn,At,ze,Fe,ae,oe,_n,Cn,bn,Ie,le);En.on("click",curry(dispatchSelectAction,At,null,le,Ne)).on("mouseover",curry(dispatchHighlightAction,hn.name,null,le,Ne)).on("mouseout",curry(dispatchDownplayAction,hn.name,null,le,Ne)),xe.set(At,!0)}else ie.eachRawSeries(function($n){if(!xe.get(At)&&$n.legendVisualProvider){var wn=$n.legendVisualProvider;if(!wn.containName(At))return;var Tn=wn.indexOfName(At),xn=wn.getItemVisual(Tn,"style"),kn=wn.getItemVisual(Tn,"legendIcon"),An=parse$1(xn.fill);An&&An[3]===0&&(An[3]=.2,xn=extend(extend({},xn),{fill:stringify(An,"rgba")}));var On=this._createItem($n,At,ze,Fe,ae,oe,{},xn,kn,Ie,le);On.on("click",curry(dispatchSelectAction,null,At,le,Ne)).on("mouseover",curry(dispatchHighlightAction,null,At,le,Ne)).on("mouseout",curry(dispatchDownplayAction,null,At,le,Ne)),xe.set(At,!0)}},this)},this),pe&&this._createSelector(pe,ae,le,_e,Ce)},z.prototype._createSelector=function(oe,ae,ie,le,pe){var _e=this.getSelectorGroup();each$3(oe,function($e){var xe=$e.type,Ie=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){ie.dispatchAction({type:xe==="all"?"legendAllSelect":"legendInverseSelect"})}});_e.add(Ie);var Ne=ae.getModel("selectorLabel"),Fe=ae.getModel(["emphasis","selectorLabel"]);setLabelStyle(Ie,{normal:Ne,emphasis:Fe},{defaultText:$e.title}),enableHoverEmphasis(Ie)})},z.prototype._createItem=function(oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie,Ne){var Fe=oe.visualDrawType,ze=pe.get("itemWidth"),At=pe.get("itemHeight"),Lt=pe.isSelected(ae),hn=le.get("symbolRotate"),vn=le.get("symbolKeepAspect"),_n=le.get("icon");xe=_n||xe||"roundRect";var bn=getLegendStyle(xe,le,Ce,$e,Fe,Lt,Ne),Cn=new Group$1,En=le.getModel("textStyle");if(isFunction(oe.getLegendIcon)&&(!_n||_n==="inherit"))Cn.add(oe.getLegendIcon({itemWidth:ze,itemHeight:At,icon:xe,iconRotate:hn,itemStyle:bn.itemStyle,lineStyle:bn.lineStyle,symbolKeepAspect:vn}));else{var $n=_n==="inherit"&&oe.getData().getVisual("symbol")?hn==="inherit"?oe.getData().getVisual("symbolRotate"):hn:0;Cn.add(getDefaultLegendIcon({itemWidth:ze,itemHeight:At,icon:xe,iconRotate:$n,itemStyle:bn.itemStyle,lineStyle:bn.lineStyle,symbolKeepAspect:vn}))}var wn=_e==="left"?ze+5:-5,Tn=_e,xn=pe.get("formatter"),kn=ae;isString(xn)&&xn?kn=xn.replace("{name}",ae??""):isFunction(xn)&&(kn=xn(ae));var An=le.get("inactiveColor");Cn.add(new ZRText$1({style:createTextStyle$1(En,{text:kn,x:wn,y:At/2,fill:Lt?En.getTextColor():An,align:Tn,verticalAlign:"middle"})}));var On=new Rect$2({shape:Cn.getBoundingRect(),invisible:!0}),Mn=le.getModel("tooltip");return Mn.get("show")&&setTooltipConfig({el:On,componentModel:pe,itemName:ae,itemTooltipOption:Mn.option}),Cn.add(On),Cn.eachChild(function(Fn){Fn.silent=!0}),On.silent=!Ie,this.getContentGroup().add(Cn),enableHoverEmphasis(Cn),Cn.__legendDataIndex=ie,Cn},z.prototype.layoutInner=function(oe,ae,ie,le,pe,_e){var Ce=this.getContentGroup(),$e=this.getSelectorGroup();box(oe.get("orient"),Ce,oe.get("itemGap"),ie.width,ie.height);var xe=Ce.getBoundingRect(),Ie=[-xe.x,-xe.y];if($e.markRedraw(),Ce.markRedraw(),pe){box("horizontal",$e,oe.get("selectorItemGap",!0));var Ne=$e.getBoundingRect(),Fe=[-Ne.x,-Ne.y],ze=oe.get("selectorButtonGap",!0),At=oe.getOrient().index,Lt=At===0?"width":"height",hn=At===0?"height":"width",vn=At===0?"y":"x";_e==="end"?Fe[At]+=xe[Lt]+ze:Ie[At]+=Ne[Lt]+ze,Fe[1-At]+=xe[hn]/2-Ne[hn]/2,$e.x=Fe[0],$e.y=Fe[1],Ce.x=Ie[0],Ce.y=Ie[1];var _n={x:0,y:0};return _n[Lt]=xe[Lt]+ze+Ne[Lt],_n[hn]=Math.max(xe[hn],Ne[hn]),_n[vn]=Math.min(0,Ne[vn]+Fe[1-At]),_n}else return Ce.x=Ie[0],Ce.y=Ie[1],this.group.getBoundingRect()},z.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},z.type="legend.plain",z}(ComponentView$1);function getLegendStyle($,z,oe,ae,ie,le,pe){function _e(Lt,hn){Lt.lineWidth==="auto"&&(Lt.lineWidth=hn.lineWidth>0?2:0),each$3(Lt,function(vn,_n){Lt[_n]==="inherit"&&(Lt[_n]=hn[_n])})}var Ce=z.getModel("itemStyle"),$e=Ce.getItemStyle(),xe=$.lastIndexOf("empty",0)===0?"fill":"stroke",Ie=Ce.getShallow("decal");$e.decal=!Ie||Ie==="inherit"?ae.decal:createOrUpdatePatternFromDecal(Ie,pe),$e.fill==="inherit"&&($e.fill=ae[ie]),$e.stroke==="inherit"&&($e.stroke=ae[xe]),$e.opacity==="inherit"&&($e.opacity=(ie==="fill"?ae:oe).opacity),_e($e,ae);var Ne=z.getModel("lineStyle"),Fe=Ne.getLineStyle();if(_e(Fe,oe),$e.fill==="auto"&&($e.fill=ae.fill),$e.stroke==="auto"&&($e.stroke=ae.fill),Fe.stroke==="auto"&&(Fe.stroke=ae.fill),!le){var ze=z.get("inactiveBorderWidth"),At=$e[xe];$e.lineWidth=ze==="auto"?ae.lineWidth>0&&At?2:0:$e.lineWidth,$e.fill=z.get("inactiveColor"),$e.stroke=z.get("inactiveBorderColor"),Fe.stroke=Ne.get("inactiveColor"),Fe.lineWidth=Ne.get("inactiveWidth")}return{itemStyle:$e,lineStyle:Fe}}function getDefaultLegendIcon($){var z=$.icon||"roundRect",oe=createSymbol(z,0,0,$.itemWidth,$.itemHeight,$.itemStyle.fill,$.symbolKeepAspect);return oe.setStyle($.itemStyle),oe.rotation=($.iconRotate||0)*Math.PI/180,oe.setOrigin([$.itemWidth/2,$.itemHeight/2]),z.indexOf("empty")>-1&&(oe.style.stroke=oe.style.fill,oe.style.fill="#fff",oe.style.lineWidth=2),oe}function dispatchSelectAction($,z,oe,ae){dispatchDownplayAction($,z,oe,ae),oe.dispatchAction({type:"legendToggleSelect",name:$??z}),dispatchHighlightAction($,z,oe,ae)}function isUseHoverLayer($){for(var z=$.getZr().storage.getDisplayList(),oe,ae=0,ie=z.length;ae<ie&&!(oe=z[ae].states.emphasis);)ae++;return oe&&oe.hoverLayer}function dispatchHighlightAction($,z,oe,ae){isUseHoverLayer(oe)||oe.dispatchAction({type:"highlight",seriesName:$,name:z,excludeSeriesId:ae})}function dispatchDownplayAction($,z,oe,ae){isUseHoverLayer(oe)||oe.dispatchAction({type:"downplay",seriesName:$,name:z,excludeSeriesId:ae})}const LegendView$1=LegendView;function legendFilter($){var z=$.findComponents({mainType:"legend"});z&&z.length&&$.filterSeries(function(oe){for(var ae=0;ae<z.length;ae++)if(!z[ae].isSelected(oe.name))return!1;return!0})}function legendSelectActionHandler($,z,oe){var ae={},ie=$==="toggleSelected",le;return oe.eachComponent("legend",function(pe){ie&&le!=null?pe[le?"select":"unSelect"](z.name):$==="allSelect"||$==="inverseSelect"?pe[$]():(pe[$](z.name),le=pe.isSelected(z.name));var _e=pe.getData();each$c(_e,function(Ce){var $e=Ce.get("name");if(!($e===`
|
||
`||$e==="")){var xe=pe.isSelected($e);ae.hasOwnProperty($e)?ae[$e]=ae[$e]&&xe:ae[$e]=xe}})}),$==="allSelect"||$==="inverseSelect"?{selected:ae}:{name:z.name,selected:ae}}function installLegendAction($){$.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),$.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),$.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),$.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),$.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$8($){$.registerComponentModel(LegendModel$1),$.registerComponentView(LegendView$1),$.registerProcessor($.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),$.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction($)}var ScrollableLegendModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.setScrollDataIndex=function(oe){this.option.scrollDataIndex=oe},z.prototype.init=function(oe,ae,ie){var le=getLayoutParams(oe);$.prototype.init.call(this,oe,ae,ie),mergeAndNormalizeLayoutParams(this,oe,le)},z.prototype.mergeOption=function(oe,ae){$.prototype.mergeOption.call(this,oe,ae),mergeAndNormalizeLayoutParams(this,this.option,oe)},z.type="legend.scroll",z.defaultOption=inheritDefaultOption(LegendModel$1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),z}(LegendModel$1);function mergeAndNormalizeLayoutParams($,z,oe){var ae=$.getOrient(),ie=[1,1];ie[ae.index]=0,mergeLayoutParam(z,oe,{type:"box",ignoreSize:!!ie})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.newlineDisabled=!0,oe._currentIndex=0,oe}return z.prototype.init=function(){$.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},z.prototype.resetInner=function(){$.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},z.prototype.renderInner=function(oe,ae,ie,le,pe,_e,Ce){var $e=this;$.prototype.renderInner.call(this,oe,ae,ie,le,pe,_e,Ce);var xe=this._controllerGroup,Ie=ae.get("pageIconSize",!0),Ne=isArray$1(Ie)?Ie:[Ie,Ie];ze("pagePrev",0);var Fe=ae.getModel("pageTextStyle");xe.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:Fe.getTextColor(),font:Fe.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),ze("pageNext",1);function ze(At,Lt){var hn=At+"DataIndex",vn=createIcon(ae.get("pageIcons",!0)[ae.getOrient().name][Lt],{onclick:bind$1($e._pageGo,$e,hn,ae,le)},{x:-Ne[0]/2,y:-Ne[1]/2,width:Ne[0],height:Ne[1]});vn.name=At,xe.add(vn)}},z.prototype.layoutInner=function(oe,ae,ie,le,pe,_e){var Ce=this.getSelectorGroup(),$e=oe.getOrient().index,xe=WH[$e],Ie=XY[$e],Ne=WH[1-$e],Fe=XY[1-$e];pe&&box("horizontal",Ce,oe.get("selectorItemGap",!0));var ze=oe.get("selectorButtonGap",!0),At=Ce.getBoundingRect(),Lt=[-At.x,-At.y],hn=clone$3(ie);pe&&(hn[xe]=ie[xe]-At[xe]-ze);var vn=this._layoutContentAndController(oe,le,hn,$e,xe,Ne,Fe,Ie);if(pe){if(_e==="end")Lt[$e]+=vn[xe]+ze;else{var _n=At[xe]+ze;Lt[$e]-=_n,vn[Ie]-=_n}vn[xe]+=At[xe]+ze,Lt[1-$e]+=vn[Fe]+vn[Ne]/2-At[Ne]/2,vn[Ne]=Math.max(vn[Ne],At[Ne]),vn[Fe]=Math.min(vn[Fe],At[Fe]+Lt[1-$e]),Ce.x=Lt[0],Ce.y=Lt[1],Ce.markRedraw()}return vn},z.prototype._layoutContentAndController=function(oe,ae,ie,le,pe,_e,Ce,$e){var xe=this.getContentGroup(),Ie=this._containerGroup,Ne=this._controllerGroup;box(oe.get("orient"),xe,oe.get("itemGap"),le?ie.width:null,le?null:ie.height),box("horizontal",Ne,oe.get("pageButtonItemGap",!0));var Fe=xe.getBoundingRect(),ze=Ne.getBoundingRect(),At=this._showController=Fe[pe]>ie[pe],Lt=[-Fe.x,-Fe.y];ae||(Lt[le]=xe[$e]);var hn=[0,0],vn=[-ze.x,-ze.y],_n=retrieve2(oe.get("pageButtonGap",!0),oe.get("itemGap",!0));if(At){var bn=oe.get("pageButtonPosition",!0);bn==="end"?vn[le]+=ie[pe]-ze[pe]:hn[le]+=ze[pe]+_n}vn[1-le]+=Fe[_e]/2-ze[_e]/2,xe.setPosition(Lt),Ie.setPosition(hn),Ne.setPosition(vn);var Cn={x:0,y:0};if(Cn[pe]=At?ie[pe]:Fe[pe],Cn[_e]=Math.max(Fe[_e],ze[_e]),Cn[Ce]=Math.min(0,ze[Ce]+vn[1-le]),Ie.__rectSize=ie[pe],At){var En={x:0,y:0};En[pe]=Math.max(ie[pe]-ze[pe]-_n,0),En[_e]=Cn[_e],Ie.setClipPath(new Rect$2({shape:En})),Ie.__rectSize=En[pe]}else Ne.eachChild(function(wn){wn.attr({invisible:!0,silent:!0})});var $n=this._getPageInfo(oe);return $n.pageIndex!=null&&updateProps$1(xe,{x:$n.contentPosition[0],y:$n.contentPosition[1]},At?oe:null),this._updatePageInfoView(oe,$n),Cn},z.prototype._pageGo=function(oe,ae,ie){var le=this._getPageInfo(ae)[oe];le!=null&&ie.dispatchAction({type:"legendScroll",scrollDataIndex:le,legendId:ae.id})},z.prototype._updatePageInfoView=function(oe,ae){var ie=this._controllerGroup;each$c(["pagePrev","pageNext"],function(xe){var Ie=xe+"DataIndex",Ne=ae[Ie]!=null,Fe=ie.childOfName(xe);Fe&&(Fe.setStyle("fill",Ne?oe.get("pageIconColor",!0):oe.get("pageIconInactiveColor",!0)),Fe.cursor=Ne?"pointer":"default")});var le=ie.childOfName("pageText"),pe=oe.get("pageFormatter"),_e=ae.pageIndex,Ce=_e!=null?_e+1:0,$e=ae.pageCount;le&&pe&&le.setStyle("text",isString(pe)?pe.replace("{current}",Ce==null?"":Ce+"").replace("{total}",$e==null?"":$e+""):pe({current:Ce,total:$e}))},z.prototype._getPageInfo=function(oe){var ae=oe.get("scrollDataIndex",!0),ie=this.getContentGroup(),le=this._containerGroup.__rectSize,pe=oe.getOrient().index,_e=WH[pe],Ce=XY[pe],$e=this._findTargetItemIndex(ae),xe=ie.children(),Ie=xe[$e],Ne=xe.length,Fe=Ne?1:0,ze={contentPosition:[ie.x,ie.y],pageCount:Fe,pageIndex:Fe-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!Ie)return ze;var At=bn(Ie);ze.contentPosition[pe]=-At.s;for(var Lt=$e+1,hn=At,vn=At,_n=null;Lt<=Ne;++Lt)_n=bn(xe[Lt]),(!_n&&vn.e>hn.s+le||_n&&!Cn(_n,hn.s))&&(vn.i>hn.i?hn=vn:hn=_n,hn&&(ze.pageNextDataIndex==null&&(ze.pageNextDataIndex=hn.i),++ze.pageCount)),vn=_n;for(var Lt=$e-1,hn=At,vn=At,_n=null;Lt>=-1;--Lt)_n=bn(xe[Lt]),(!_n||!Cn(vn,_n.s))&&hn.i<vn.i&&(vn=hn,ze.pagePrevDataIndex==null&&(ze.pagePrevDataIndex=hn.i),++ze.pageCount,++ze.pageIndex),hn=_n;return ze;function bn(En){if(En){var $n=En.getBoundingRect(),wn=$n[Ce]+En[Ce];return{s:wn,e:wn+$n[_e],i:En.__legendDataIndex}}}function Cn(En,$n){return En.e>=$n&&En.s<=$n+le}},z.prototype._findTargetItemIndex=function(oe){if(!this._showController)return 0;var ae,ie=this.getContentGroup(),le;return ie.eachChild(function(pe,_e){var Ce=pe.__legendDataIndex;le==null&&Ce!=null&&(le=_e),Ce===oe&&(ae=_e)}),ae??le},z.type="legend.scroll",z}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction($){$.registerAction("legendScroll","legendscroll",function(z,oe){var ae=z.scrollDataIndex;ae!=null&&oe.eachComponent({mainType:"legend",subType:"scroll",query:z},function(ie){ie.setScrollDataIndex(ae)})})}function install$7($){use$1(install$8),$.registerComponentModel(ScrollableLegendModel$1),$.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction($)}function install$6($){use$1(install$8),use$1(install$7)}var InsideZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.inside",z.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),z}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord($,z,oe){inner($).coordSysRecordMap.each(function(ae){var ie=ae.dataZoomInfoMap.get(z.uid);ie&&(ie.getRange=oe)})}function disposeCoordSysRecordIfNeeded($,z){for(var oe=inner($).coordSysRecordMap,ae=oe.keys(),ie=0;ie<ae.length;ie++){var le=ae[ie],pe=oe.get(le),_e=pe.dataZoomInfoMap;if(_e){var Ce=z.uid,$e=_e.get(Ce);$e&&(_e.removeKey(Ce),_e.keys().length||disposeCoordSysRecord(oe,pe))}}}function disposeCoordSysRecord($,z){if(z){$.removeKey(z.model.uid);var oe=z.controller;oe&&oe.dispose()}}function createCoordSysRecord($,z){var oe={model:z,containsPoint:curry$1(containsPoint,z),dispatchAction:curry$1(dispatchAction,$),dataZoomInfoMap:null,controller:null},ae=oe.controller=new RoamController$1($.getZr());return each$c(["pan","zoom","scrollMove"],function(ie){ae.on(ie,function(le){var pe=[];oe.dataZoomInfoMap.each(function(_e){if(le.isAvailableBehavior(_e.model.option)){var Ce=(_e.getRange||{})[ie],$e=Ce&&Ce(_e.dzReferCoordSysInfo,oe.model.mainType,oe.controller,le);!_e.model.get("disabled",!0)&&$e&&pe.push({dataZoomId:_e.model.id,start:$e[0],end:$e[1]})}}),pe.length&&oe.dispatchAction(pe)})}),oe}function dispatchAction($,z){$.isDisposed()||$.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:z})}function containsPoint($,z,oe,ae){return $.coordinateSystem.containPoint([oe,ae])}function mergeControllerParams($){var z,oe="type_",ae={type_true:2,type_move:1,type_false:0,type_undefined:-1},ie=!0;return $.each(function(le){var pe=le.model,_e=pe.get("disabled",!0)?!1:pe.get("zoomLock",!0)?"move":!0;ae[oe+_e]>ae[oe+z]&&(z=_e),ie=ie&&pe.get("preventDefaultMouseMove",!0)}),{controlType:z,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!ie}}}function installDataZoomRoamProcessor($){$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,function(z,oe){var ae=inner(oe),ie=ae.coordSysRecordMap||(ae.coordSysRecordMap=createHashMap());ie.each(function(le){le.dataZoomInfoMap=null}),z.eachComponent({mainType:"dataZoom",subType:"inside"},function(le){var pe=collectReferCoordSysModelInfo(le);each$c(pe.infoList,function(_e){var Ce=_e.model.uid,$e=ie.get(Ce)||ie.set(Ce,createCoordSysRecord(oe,_e.model)),xe=$e.dataZoomInfoMap||($e.dataZoomInfoMap=createHashMap());xe.set(le.uid,{dzReferCoordSysInfo:_e,model:le,getRange:null})})}),ie.each(function(le){var pe=le.controller,_e,Ce=le.dataZoomInfoMap;if(Ce){var $e=Ce.keys()[0];$e!=null&&(_e=Ce.get($e))}if(!_e){disposeCoordSysRecord(ie,le);return}var xe=mergeControllerParams(Ce);pe.enable(xe.controlType,xe.opt),pe.setPointerChecker(le.containsPoint),createOrUpdate(le,"dispatchAction",_e.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="dataZoom.inside",oe}return z.prototype.render=function(oe,ae,ie){if($.prototype.render.apply(this,arguments),oe.noTarget()){this._clear();return}this.range=oe.getPercentRange(),setViewInfoToCoordSysRecord(ie,oe,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},z.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},z.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},z.type="dataZoom.inside",z}(DataZoomView$1),getRangeHandlers={zoom:function($,z,oe,ae){var ie=this.range,le=ie.slice(),pe=$.axisModels[0];if(pe){var _e=getDirectionInfo[z](null,[ae.originX,ae.originY],pe,oe,$),Ce=(_e.signal>0?_e.pixelStart+_e.pixelLength-_e.pixel:_e.pixel-_e.pixelStart)/_e.pixelLength*(le[1]-le[0])+le[0],$e=Math.max(1/ae.scale,0);le[0]=(le[0]-Ce)*$e+Ce,le[1]=(le[1]-Ce)*$e+Ce;var xe=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,le,[0,100],0,xe.minSpan,xe.maxSpan),this.range=le,ie[0]!==le[0]||ie[1]!==le[1])return le}},pan:makeMover(function($,z,oe,ae,ie,le){var pe=getDirectionInfo[ae]([le.oldX,le.oldY],[le.newX,le.newY],z,ie,oe);return pe.signal*($[1]-$[0])*pe.pixel/pe.pixelLength}),scrollMove:makeMover(function($,z,oe,ae,ie,le){var pe=getDirectionInfo[ae]([0,0],[le.scrollDelta,le.scrollDelta],z,ie,oe);return pe.signal*($[1]-$[0])*le.scrollDelta})};function makeMover($){return function(z,oe,ae,ie){var le=this.range,pe=le.slice(),_e=z.axisModels[0];if(_e){var Ce=$(pe,_e,z,oe,ae,ie);if(sliderMove(Ce,pe,[0,100],"all"),this.range=pe,le[0]!==pe[0]||le[1]!==pe[1])return pe}}}var getDirectionInfo={grid:function($,z,oe,ae,ie){var le=oe.axis,pe={},_e=ie.model.coordinateSystem.getRect();return $=$||[0,0],le.dim==="x"?(pe.pixel=z[0]-$[0],pe.pixelLength=_e.width,pe.pixelStart=_e.x,pe.signal=le.inverse?1:-1):(pe.pixel=z[1]-$[1],pe.pixelLength=_e.height,pe.pixelStart=_e.y,pe.signal=le.inverse?-1:1),pe},polar:function($,z,oe,ae,ie){var le=oe.axis,pe={},_e=ie.model.coordinateSystem,Ce=_e.getRadiusAxis().getExtent(),$e=_e.getAngleAxis().getExtent();return $=$?_e.pointToCoord($):[0,0],z=_e.pointToCoord(z),oe.mainType==="radiusAxis"?(pe.pixel=z[0]-$[0],pe.pixelLength=Ce[1]-Ce[0],pe.pixelStart=Ce[0],pe.signal=le.inverse?1:-1):(pe.pixel=z[1]-$[1],pe.pixelLength=$e[1]-$e[0],pe.pixelStart=$e[0],pe.signal=le.inverse?-1:1),pe},singleAxis:function($,z,oe,ae,ie){var le=oe.axis,pe=ie.model.coordinateSystem.getRect(),_e={};return $=$||[0,0],le.orient==="horizontal"?(_e.pixel=z[0]-$[0],_e.pixelLength=pe.width,_e.pixelStart=pe.x,_e.signal=le.inverse?1:-1):(_e.pixel=z[1]-$[1],_e.pixelLength=pe.height,_e.pixelStart=pe.y,_e.signal=le.inverse?-1:1),_e}};const InsideZoomView$1=InsideZoomView;function install$5($){installCommon$1($),$.registerComponentModel(InsideZoomModel$1),$.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor($)}var SliderZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.slider",z.layoutMode="box",z.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"}}}),z}(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($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._displayables={},oe}return z.prototype.init=function(oe,ae){this.api=ae,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},z.prototype.render=function(oe,ae,ie,le){if($.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",oe.get("throttle"),"fixRate"),this._orient=oe.getOrient(),oe.get("show")===!1){this.group.removeAll();return}if(oe.noTarget()){this._clear(),this.group.removeAll();return}(!le||le.type!=="dataZoom"||le.from!==this.uid)&&this._buildView(),this._updateView()},z.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},z.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var oe=this.api.getZr();oe.off("mousemove",this._onBrush),oe.off("mouseup",this._onBrushEnd)},z.prototype._buildView=function(){var oe=this.group;oe.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var ae=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),oe.add(ae),this._positionGroup()},z.prototype._resetLocation=function(){var oe=this.dataZoomModel,ae=this.api,ie=oe.get("brushSelect"),le=ie?DEFAULT_MOVE_HANDLE_SIZE:0,pe=this._findCoordRect(),_e={width:ae.getWidth(),height:ae.getHeight()},Ce=this._orient===HORIZONTAL?{right:_e.width-pe.x-pe.width,top:_e.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-le,width:pe.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:pe.y,width:DEFAULT_FILLER_SIZE,height:pe.height},$e=getLayoutParams(oe.option);each$c(["right","top","width","height"],function(Ie){$e[Ie]==="ph"&&($e[Ie]=Ce[Ie])});var xe=getLayoutRect($e,_e);this._location={x:xe.x,y:xe.y},this._size=[xe.width,xe.height],this._orient===VERTICAL&&this._size.reverse()},z.prototype._positionGroup=function(){var oe=this.group,ae=this._location,ie=this._orient,le=this.dataZoomModel.getFirstTargetAxisModel(),pe=le&&le.get("inverse"),_e=this._displayables.sliderGroup,Ce=(this._dataShadowInfo||{}).otherAxisInverse;_e.attr(ie===HORIZONTAL&&!pe?{scaleY:Ce?1:-1,scaleX:1}:ie===HORIZONTAL&&pe?{scaleY:Ce?1:-1,scaleX:-1}:ie===VERTICAL&&!pe?{scaleY:Ce?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:Ce?-1:1,scaleX:-1,rotation:Math.PI/2});var $e=oe.getBoundingRect([_e]);oe.x=ae.x-$e.x,oe.y=ae.y-$e.y,oe.markRedraw()},z.prototype._getViewExtent=function(){return[0,this._size[0]]},z.prototype._renderBackground=function(){var oe=this.dataZoomModel,ae=this._size,ie=this._displayables.sliderGroup,le=oe.get("brushSelect");ie.add(new Rect({silent:!0,shape:{x:0,y:0,width:ae[0],height:ae[1]},style:{fill:oe.get("backgroundColor")},z2:-40}));var pe=new Rect({shape:{x:0,y:0,width:ae[0],height:ae[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),_e=this.api.getZr();le?(pe.on("mousedown",this._onBrushStart,this),pe.cursor="crosshair",_e.on("mousemove",this._onBrush),_e.on("mouseup",this._onBrushEnd)):(_e.off("mousemove",this._onBrush),_e.off("mouseup",this._onBrushEnd)),ie.add(pe)},z.prototype._renderDataShadow=function(){var oe=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!oe)return;var ae=this._size,ie=this._shadowSize||[],le=oe.series,pe=le.getRawData(),_e=le.getShadowDim&&le.getShadowDim(),Ce=_e&&pe.getDimensionInfo(_e)?le.getShadowDim():oe.otherDim;if(Ce==null)return;var $e=this._shadowPolygonPts,xe=this._shadowPolylinePts;if(pe!==this._shadowData||Ce!==this._shadowDim||ae[0]!==ie[0]||ae[1]!==ie[1]){var Ie=pe.getDataExtent(Ce),Ne=(Ie[1]-Ie[0])*.3;Ie=[Ie[0]-Ne,Ie[1]+Ne];var Fe=[0,ae[1]],ze=[0,ae[0]],At=[[ae[0],0],[0,0]],Lt=[],hn=ze[1]/(pe.count()-1),vn=0,_n=Math.round(pe.count()/ae[0]),bn;pe.each([Ce],function(Tn,xn){if(_n>0&&xn%_n){vn+=hn;return}var kn=Tn==null||isNaN(Tn)||Tn==="",An=kn?0:linearMap$2(Tn,Ie,Fe,!0);kn&&!bn&&xn?(At.push([At[At.length-1][0],0]),Lt.push([Lt[Lt.length-1][0],0])):!kn&&bn&&(At.push([vn,0]),Lt.push([vn,0])),At.push([vn,An]),Lt.push([vn,An]),vn+=hn,bn=kn}),$e=this._shadowPolygonPts=At,xe=this._shadowPolylinePts=Lt}this._shadowData=pe,this._shadowDim=Ce,this._shadowSize=[ae[0],ae[1]];var Cn=this.dataZoomModel;function En(Tn){var xn=Cn.getModel(Tn?"selectedDataBackground":"dataBackground"),kn=new Group$3,An=new Polygon$1({shape:{points:$e},segmentIgnoreThreshold:1,style:xn.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),On=new Polyline$1({shape:{points:xe},segmentIgnoreThreshold:1,style:xn.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return kn.add(An),kn.add(On),kn}for(var $n=0;$n<3;$n++){var wn=En($n===1);this._displayables.sliderGroup.add(wn),this._displayables.dataShadowSegs.push(wn)}},z.prototype._prepareDataShadowInfo=function(){var oe=this.dataZoomModel,ae=oe.get("showDataShadow");if(ae!==!1){var ie,le=this.ecModel;return oe.eachTargetAxis(function(pe,_e){var Ce=oe.getAxisProxy(pe,_e).getTargetSeriesModels();each$c(Ce,function($e){if(!ie&&!(ae!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,$e.get("type"))<0)){var xe=le.getComponent(getAxisMainType(pe),_e).axis,Ie=getOtherDim(pe),Ne,Fe=$e.coordinateSystem;Ie!=null&&Fe.getOtherAxis&&(Ne=Fe.getOtherAxis(xe).inverse),Ie=$e.getData().mapDimension(Ie),ie={thisAxis:xe,series:$e,thisDim:pe,otherDim:Ie,otherAxisInverse:Ne}}},this)},this),ie}},z.prototype._renderHandle=function(){var oe=this.group,ae=this._displayables,ie=ae.handles=[null,null],le=ae.handleLabels=[null,null],pe=this._displayables.sliderGroup,_e=this._size,Ce=this.dataZoomModel,$e=this.api,xe=Ce.get("borderRadius")||0,Ie=Ce.get("brushSelect"),Ne=ae.filler=new Rect({silent:Ie,style:{fill:Ce.get("fillerColor")},textConfig:{position:"inside"}});pe.add(Ne),pe.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:_e[0],height:_e[1],r:xe},style:{stroke:Ce.get("dataBackgroundColor")||Ce.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(_n){var bn=Ce.get("handleIcon");!symbolBuildProxies[bn]&&bn.indexOf("path://")<0&&bn.indexOf("image://")<0&&(bn="path://"+bn);var Cn=createSymbol(bn,-1,0,2,2,null,!0);Cn.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,_n),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var En=Cn.getBoundingRect(),$n=Ce.get("handleSize");this._handleHeight=parsePercent($n,this._size[1]),this._handleWidth=En.width/En.height*this._handleHeight,Cn.setStyle(Ce.getModel("handleStyle").getItemStyle()),Cn.style.strokeNoScale=!0,Cn.rectHover=!0,Cn.ensureState("emphasis").style=Ce.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(Cn);var wn=Ce.get("handleColor");wn!=null&&(Cn.style.fill=wn),pe.add(ie[_n]=Cn);var Tn=Ce.getModel("textStyle");oe.add(le[_n]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Tn,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Tn.getTextColor(),font:Tn.getFont()}),z2:10}))},this);var Fe=Ne;if(Ie){var ze=parsePercent(Ce.get("moveHandleSize"),_e[1]),At=ae.moveHandle=new Rect$2({style:Ce.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:_e[1]-.5,height:ze}}),Lt=ze*.8,hn=ae.moveHandleIcon=createSymbol(Ce.get("moveHandleIcon"),-Lt/2,-Lt/2,Lt,Lt,"#fff",!0);hn.silent=!0,hn.y=_e[1]+ze/2-.5,At.ensureState("emphasis").style=Ce.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var vn=Math.min(_e[1]/2,Math.max(ze,10));Fe=ae.moveZone=new Rect$2({invisible:!0,shape:{y:_e[1]-vn,height:ze+vn}}),Fe.on("mouseover",function(){$e.enterEmphasis(At)}).on("mouseout",function(){$e.leaveEmphasis(At)}),pe.add(At),pe.add(hn),pe.add(Fe)}Fe.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)})},z.prototype._resetInterval=function(){var oe=this._range=this.dataZoomModel.getPercentRange(),ae=this._getViewExtent();this._handleEnds=[linearMap$2(oe[0],[0,100],ae,!0),linearMap$2(oe[1],[0,100],ae,!0)]},z.prototype._updateInterval=function(oe,ae){var ie=this.dataZoomModel,le=this._handleEnds,pe=this._getViewExtent(),_e=ie.findRepresentativeAxisProxy().getMinMaxSpan(),Ce=[0,100];sliderMove(ae,le,pe,ie.get("zoomLock")?"all":oe,_e.minSpan!=null?linearMap$2(_e.minSpan,Ce,pe,!0):null,_e.maxSpan!=null?linearMap$2(_e.maxSpan,Ce,pe,!0):null);var $e=this._range,xe=this._range=asc$2([linearMap$2(le[0],pe,Ce,!0),linearMap$2(le[1],pe,Ce,!0)]);return!$e||$e[0]!==xe[0]||$e[1]!==xe[1]},z.prototype._updateView=function(oe){var ae=this._displayables,ie=this._handleEnds,le=asc$2(ie.slice()),pe=this._size;each$c([0,1],function(Fe){var ze=ae.handles[Fe],At=this._handleHeight;ze.attr({scaleX:At/2,scaleY:At/2,x:ie[Fe]+(Fe?-1:1),y:pe[1]/2-At/2})},this),ae.filler.setShape({x:le[0],y:0,width:le[1]-le[0],height:pe[1]});var _e={x:le[0],width:le[1]-le[0]};ae.moveHandle&&(ae.moveHandle.setShape(_e),ae.moveZone.setShape(_e),ae.moveZone.getBoundingRect(),ae.moveHandleIcon&&ae.moveHandleIcon.attr("x",_e.x+_e.width/2));for(var Ce=ae.dataShadowSegs,$e=[0,le[0],le[1],pe[0]],xe=0;xe<Ce.length;xe++){var Ie=Ce[xe],Ne=Ie.getClipPath();Ne||(Ne=new Rect$2,Ie.setClipPath(Ne)),Ne.setShape({x:$e[xe],y:0,width:$e[xe+1]-$e[xe],height:pe[1]})}this._updateDataInfo(oe)},z.prototype._updateDataInfo=function(oe){var ae=this.dataZoomModel,ie=this._displayables,le=ie.handleLabels,pe=this._orient,_e=["",""];if(ae.get("showDetail")){var Ce=ae.findRepresentativeAxisProxy();if(Ce){var $e=Ce.getAxisModel().axis,xe=this._range,Ie=oe?Ce.calculateDataWindow({start:xe[0],end:xe[1]}).valueWindow:Ce.getDataValueWindow();_e=[this._formatLabel(Ie[0],$e),this._formatLabel(Ie[1],$e)]}}var Ne=asc$2(this._handleEnds.slice());Fe.call(this,0),Fe.call(this,1);function Fe(ze){var At=getTransform$1(ie.handles[ze].parent,this.group),Lt=transformDirection(ze===0?"right":"left",At),hn=this._handleWidth/2+LABEL_GAP,vn=applyTransform([Ne[ze]+(ze===0?-hn:hn),this._size[1]/2],At);le[ze].setStyle({x:vn[0],y:vn[1],verticalAlign:pe===HORIZONTAL?"middle":Lt,align:pe===HORIZONTAL?Lt:"center",text:_e[ze]})}},z.prototype._formatLabel=function(oe,ae){var ie=this.dataZoomModel,le=ie.get("labelFormatter"),pe=ie.get("labelPrecision");(pe==null||pe==="auto")&&(pe=ae.getPixelPrecision());var _e=oe==null||isNaN(oe)?"":ae.type==="category"||ae.type==="time"?ae.scale.getLabel({value:Math.round(oe)}):oe.toFixed(Math.min(pe,20));return isFunction(le)?le(oe,_e):isString(le)?le.replace("{value}",_e):_e},z.prototype._showDataInfo=function(oe){oe=this._dragging||oe;var ae=this._displayables,ie=ae.handleLabels;ie[0].attr("invisible",!oe),ie[1].attr("invisible",!oe),ae.moveHandle&&this.api[oe?"enterEmphasis":"leaveEmphasis"](ae.moveHandle,1)},z.prototype._onDragMove=function(oe,ae,ie,le){this._dragging=!0,stop(le.event);var pe=this._displayables.sliderGroup.getLocalTransform(),_e=applyTransform([ae,ie],pe,!0),Ce=this._updateInterval(oe,_e[0]),$e=this.dataZoomModel.get("realtime");this._updateView(!$e),Ce&&$e&&this._dispatchZoomAction(!0)},z.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var oe=this.dataZoomModel.get("realtime");!oe&&this._dispatchZoomAction(!1)},z.prototype._onClickPanel=function(oe){var ae=this._size,ie=this._displayables.sliderGroup.transformCoordToLocal(oe.offsetX,oe.offsetY);if(!(ie[0]<0||ie[0]>ae[0]||ie[1]<0||ie[1]>ae[1])){var le=this._handleEnds,pe=(le[0]+le[1])/2,_e=this._updateInterval("all",ie[0]-pe);this._updateView(),_e&&this._dispatchZoomAction(!1)}},z.prototype._onBrushStart=function(oe){var ae=oe.offsetX,ie=oe.offsetY;this._brushStart=new Point$1(ae,ie),this._brushing=!0,this._brushStartTime=+new Date},z.prototype._onBrushEnd=function(oe){if(this._brushing){var ae=this._displayables.brushRect;if(this._brushing=!1,!!ae){ae.attr("ignore",!0);var ie=ae.shape,le=+new Date;if(!(le-this._brushStartTime<200&&Math.abs(ie.width)<5)){var pe=this._getViewExtent(),_e=[0,100];this._range=asc$2([linearMap$2(ie.x,pe,_e,!0),linearMap$2(ie.x+ie.width,pe,_e,!0)]),this._handleEnds=[ie.x,ie.x+ie.width],this._updateView(),this._dispatchZoomAction(!1)}}}},z.prototype._onBrush=function(oe){this._brushing&&(stop(oe.event),this._updateBrushRect(oe.offsetX,oe.offsetY))},z.prototype._updateBrushRect=function(oe,ae){var ie=this._displayables,le=this.dataZoomModel,pe=ie.brushRect;pe||(pe=ie.brushRect=new Rect({silent:!0,style:le.getModel("brushStyle").getItemStyle()}),ie.sliderGroup.add(pe)),pe.attr("ignore",!1);var _e=this._brushStart,Ce=this._displayables.sliderGroup,$e=Ce.transformCoordToLocal(oe,ae),xe=Ce.transformCoordToLocal(_e.x,_e.y),Ie=this._size;$e[0]=Math.max(Math.min(Ie[0],$e[0]),0),pe.setShape({x:xe[0],y:0,width:$e[0]-xe[0],height:Ie[1]})},z.prototype._dispatchZoomAction=function(oe){var ae=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:oe?REALTIME_ANIMATION_CONFIG:null,start:ae[0],end:ae[1]})},z.prototype._findCoordRect=function(){var oe,ae=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!oe&&ae.length){var ie=ae[0].model.coordinateSystem;oe=ie.getRect&&ie.getRect()}if(!oe){var le=this.api.getWidth(),pe=this.api.getHeight();oe={x:le*.2,y:pe*.2,width:le*.6,height:pe*.6}}return oe},z.type="dataZoom.slider",z}(DataZoomView$1);function getOtherDim($){var z={x:"y",y:"x",radius:"angle",angle:"radius"};return z[$]}function getCursor$1($){return $==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4($){$.registerComponentModel(SliderZoomModel$1),$.registerComponentView(SliderZoomView$1),installCommon$1($)}function install$3($){use$1(install$5),use$1(install$4)}var visualDefault={get:function($,z,oe){var ae=clone$3((defaultOption[$]||{})[z]);return oe&&isArray$1(ae)?ae[ae.length-1]:ae}},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($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.stateList=["inRange","outOfRange"],oe.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],oe.layoutMode={type:"box",ignoreSize:!0},oe.dataBound=[-1/0,1/0],oe.targetVisuals={},oe.controllerVisuals={},oe}return z.prototype.init=function(oe,ae,ie){this.mergeDefaultAndTheme(oe,ie)},z.prototype.optionUpdated=function(oe,ae){var ie=this.option;!ae&&replaceVisualOption(ie,oe,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},z.prototype.resetVisual=function(oe){var ae=this.stateList;oe=bind$1(oe,this),this.controllerVisuals=createVisualMappings(this.option.controller,ae,oe),this.targetVisuals=createVisualMappings(this.option.target,ae,oe)},z.prototype.getItemSymbol=function(){return null},z.prototype.getTargetSeriesIndices=function(){var oe=this.option.seriesIndex,ae=[];return oe==null||oe==="all"?this.ecModel.eachSeries(function(ie,le){ae.push(le)}):ae=normalizeToArray(oe),ae},z.prototype.eachTargetSeries=function(oe,ae){each$c(this.getTargetSeriesIndices(),function(ie){var le=this.ecModel.getSeriesByIndex(ie);le&&oe.call(ae,le)},this)},z.prototype.isTargetSeries=function(oe){var ae=!1;return this.eachTargetSeries(function(ie){ie===oe&&(ae=!0)}),ae},z.prototype.formatValueText=function(oe,ae,ie){var le=this.option,pe=le.precision,_e=this.dataBound,Ce=le.formatter,$e;ie=ie||["<",">"],isArray$1(oe)&&(oe=oe.slice(),$e=!0);var xe=ae?oe:$e?[Ie(oe[0]),Ie(oe[1])]:Ie(oe);if(isString(Ce))return Ce.replace("{value}",$e?xe[0]:xe).replace("{value2}",$e?xe[1]:xe);if(isFunction(Ce))return $e?Ce(oe[0],oe[1]):Ce(oe);if($e)return oe[0]===_e[0]?ie[0]+" "+xe[1]:oe[1]===_e[1]?ie[1]+" "+xe[0]:xe[0]+" - "+xe[1];return xe;function Ie(Ne){return Ne===_e[0]?"min":Ne===_e[1]?"max":(+Ne).toFixed(Math.min(pe,20))}},z.prototype.resetExtent=function(){var oe=this.option,ae=asc([oe.min,oe.max]);this._dataExtent=ae},z.prototype.getDataDimensionIndex=function(oe){var ae=this.option.dimension;if(ae!=null)return oe.getDimensionIndex(ae);for(var ie=oe.dimensions,le=ie.length-1;le>=0;le--){var pe=ie[le],_e=oe.getDimensionInfo(pe);if(!_e.isCalculationCoord)return _e.storeDimIndex}},z.prototype.getExtent=function(){return this._dataExtent.slice()},z.prototype.completeVisualOption=function(){var oe=this.ecModel,ae=this.option,ie={inRange:ae.inRange,outOfRange:ae.outOfRange},le=ae.target||(ae.target={}),pe=ae.controller||(ae.controller={});merge(le,ie),merge(pe,ie);var _e=this.isCategory();Ce.call(this,le),Ce.call(this,pe),$e.call(this,le,"inRange","outOfRange"),xe.call(this,pe);function Ce(Ie){isArray(ae.color)&&!Ie.inRange&&(Ie.inRange={color:ae.color.slice().reverse()}),Ie.inRange=Ie.inRange||{color:oe.get("gradientColor")}}function $e(Ie,Ne,Fe){var ze=Ie[Ne],At=Ie[Fe];ze&&!At&&(At=Ie[Fe]={},each$2(ze,function(Lt,hn){if(VisualMapping$1.isValidType(hn)){var vn=visualDefault$1.get(hn,"inactive",_e);vn!=null&&(At[hn]=vn,hn==="color"&&!At.hasOwnProperty("opacity")&&!At.hasOwnProperty("colorAlpha")&&(At.opacity=[0,0]))}}))}function xe(Ie){var Ne=(Ie.inRange||{}).symbol||(Ie.outOfRange||{}).symbol,Fe=(Ie.inRange||{}).symbolSize||(Ie.outOfRange||{}).symbolSize,ze=this.get("inactiveColor"),At=this.getItemSymbol(),Lt=At||"roundRect";each$2(this.stateList,function(hn){var vn=this.itemSize,_n=Ie[hn];_n||(_n=Ie[hn]={color:_e?ze:[ze]}),_n.symbol==null&&(_n.symbol=Ne&&clone$3(Ne)||(_e?Lt:[Lt])),_n.symbolSize==null&&(_n.symbolSize=Fe&&clone$3(Fe)||(_e?vn[0]:[vn[0],vn[0]])),_n.symbol=mapVisual(_n.symbol,function(En){return En==="none"?Lt:En});var bn=_n.symbolSize;if(bn!=null){var Cn=-1/0;eachVisual(bn,function(En){En>Cn&&(Cn=En)}),_n.symbolSize=mapVisual(bn,function(En){return linearMap$1(En,[0,Cn],[0,vn[0]],!0)})}},this)}},z.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},z.prototype.isCategory=function(){return!!this.option.categories},z.prototype.setSelected=function(oe){},z.prototype.getSelected=function(){return null},z.prototype.getValueState=function(oe){return null},z.prototype.getVisualMeta=function(oe){return null},z.type="visualMap",z.dependencies=["series"],z.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"}},z}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.optionUpdated=function(oe,ae){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(ie){ie.mappingMethod="linear",ie.dataExtent=this.getExtent()}),this._resetRange()},z.prototype.resetItemSize=function(){$.prototype.resetItemSize.apply(this,arguments);var oe=this.itemSize;(oe[0]==null||isNaN(oe[0]))&&(oe[0]=DEFAULT_BAR_BOUND[0]),(oe[1]==null||isNaN(oe[1]))&&(oe[1]=DEFAULT_BAR_BOUND[1])},z.prototype._resetRange=function(){var oe=this.getExtent(),ae=this.option.range;!ae||ae.auto?(oe.auto=1,this.option.range=oe):isArray$1(ae)&&(ae[0]>ae[1]&&ae.reverse(),ae[0]=Math.max(ae[0],oe[0]),ae[1]=Math.min(ae[1],oe[1]))},z.prototype.completeVisualOption=function(){$.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(oe){var ae=this.option.controller[oe].symbolSize;ae&&ae[0]!==ae[1]&&(ae[0]=ae[1]/3)},this)},z.prototype.setSelected=function(oe){this.option.range=oe.slice(),this._resetRange()},z.prototype.getSelected=function(){var oe=this.getExtent(),ae=asc$2((this.get("range")||[]).slice());return ae[0]>oe[1]&&(ae[0]=oe[1]),ae[1]>oe[1]&&(ae[1]=oe[1]),ae[0]<oe[0]&&(ae[0]=oe[0]),ae[1]<oe[0]&&(ae[1]=oe[0]),ae},z.prototype.getValueState=function(oe){var ae=this.option.range,ie=this.getExtent();return(ae[0]<=ie[0]||ae[0]<=oe)&&(ae[1]>=ie[1]||oe<=ae[1])?"inRange":"outOfRange"},z.prototype.findTargetDataIndices=function(oe){var ae=[];return this.eachTargetSeries(function(ie){var le=[],pe=ie.getData();pe.each(this.getDataDimensionIndex(pe),function(_e,Ce){oe[0]<=_e&&_e<=oe[1]&&le.push(Ce)},this),ae.push({seriesId:ie.id,dataIndex:le})},this),ae},z.prototype.getVisualMeta=function(oe){var ae=getColorStopValues(this,"outOfRange",this.getExtent()),ie=getColorStopValues(this,"inRange",this.option.range.slice()),le=[];function pe(Fe,ze){le.push({value:Fe,color:oe(Fe,ze)})}for(var _e=0,Ce=0,$e=ie.length,xe=ae.length;Ce<xe&&(!ie.length||ae[Ce]<=ie[0]);Ce++)ae[Ce]<ie[_e]&&pe(ae[Ce],"outOfRange");for(var Ie=1;_e<$e;_e++,Ie=0)Ie&&le.length&&pe(ie[_e],"outOfRange"),pe(ie[_e],"inRange");for(var Ie=1;Ce<xe;Ce++)(!ie.length||ie[ie.length-1]<ae[Ce])&&(Ie&&(le.length&&pe(le[le.length-1].value,"outOfRange"),Ie=0),pe(ae[Ce],"outOfRange"));var Ne=le.length;return{stops:le,outerColors:[Ne?le[0].color:"transparent",Ne?le[Ne-1].color:"transparent"]}},z.type="visualMap.continuous",z.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),z}(VisualMapModel$1);function getColorStopValues($,z,oe){if(oe[0]===oe[1])return oe.slice();for(var ae=200,ie=(oe[1]-oe[0])/ae,le=oe[0],pe=[],_e=0;_e<=ae&&le<oe[1];_e++)pe.push(le),le+=ie;return pe.push(oe[1]),pe}const ContinuousModel$1=ContinuousModel;var VisualMapView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.autoPositionValues={left:1,right:1,top:1,bottom:1},oe}return z.prototype.init=function(oe,ae){this.ecModel=oe,this.api=ae},z.prototype.render=function(oe,ae,ie,le){if(this.visualMapModel=oe,oe.get("show")===!1){this.group.removeAll();return}this.doRender(oe,ae,ie,le)},z.prototype.renderBackground=function(oe){var ae=this.visualMapModel,ie=normalizeCssArray(ae.get("padding")||0),le=oe.getBoundingRect();oe.add(new Rect$2({z2:-1,silent:!0,shape:{x:le.x-ie[3],y:le.y-ie[0],width:le.width+ie[3]+ie[1],height:le.height+ie[0]+ie[2]},style:{fill:ae.get("backgroundColor"),stroke:ae.get("borderColor"),lineWidth:ae.get("borderWidth")}}))},z.prototype.getControllerVisual=function(oe,ae,ie){ie=ie||{};var le=ie.forceState,pe=this.visualMapModel,_e={};if(ae==="color"){var Ce=pe.get("contentColor");_e.color=Ce}function $e(Fe){return _e[Fe]}function xe(Fe,ze){_e[Fe]=ze}var Ie=pe.controllerVisuals[le||pe.getValueState(oe)],Ne=VisualMapping$1.prepareVisualTypes(Ie);return each$c(Ne,function(Fe){var ze=Ie[Fe];ie.convertOpacityToAlpha&&Fe==="opacity"&&(Fe="colorAlpha",ze=Ie.__alphaForOpacity),VisualMapping$1.dependsOn(Fe,ae)&&ze&&ze.applyVisual(oe,$e,xe)}),_e[ae]},z.prototype.positionGroup=function(oe){var ae=this.visualMapModel,ie=this.api;positionElement(oe,ae.getBoxLayoutParams(),{width:ie.getWidth(),height:ie.getHeight()})},z.prototype.doRender=function(oe,ae,ie,le){},z.type="visualMap",z}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign($,z,oe){var ae=$.option,ie=ae.align;if(ie!=null&&ie!=="auto")return ie;for(var le={width:z.getWidth(),height:z.getHeight()},pe=ae.orient==="horizontal"?1:0,_e=paramsSet[pe],Ce=[0,null,10],$e={},xe=0;xe<3;xe++)$e[paramsSet[1-pe][xe]]=Ce[xe],$e[_e[xe]]=xe===2?oe[0]:ae[_e[xe]];var Ie=[["x","width",3],["y","height",0]][pe],Ne=getLayoutRect($e,le,ae.padding);return _e[(Ne.margin[Ie[2]]||0)+Ne[Ie[0]]+Ne[Ie[1]]*.5<le[Ie[1]]*.5?0:1]}function makeHighDownBatch($,z){return each$c($||[],function(oe){oe.dataIndex!=null&&(oe.dataIndexInside=oe.dataIndex,oe.dataIndex=null),oe.highlightKey="visualMap"+(z?z.componentIndex:"")}),$}var linearMap=linearMap$2,each$1=each$c,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._shapes={},oe._dataInterval=[],oe._handleEnds=[],oe._hoverLinkDataIndices=[],oe}return z.prototype.doRender=function(oe,ae,ie,le){this._api=ie,(!le||le.type!=="selectDataRange"||le.from!==this.uid)&&this._buildView()},z.prototype._buildView=function(){this.group.removeAll();var oe=this.visualMapModel,ae=this.group;this._orient=oe.get("orient"),this._useHandle=oe.get("calculable"),this._resetInterval(),this._renderBar(ae);var ie=oe.get("text");this._renderEndsText(ae,ie,0),this._renderEndsText(ae,ie,1),this._updateView(!0),this.renderBackground(ae),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(ae)},z.prototype._renderEndsText=function(oe,ae,ie){if(ae){var le=ae[1-ie];le=le!=null?le+"":"";var pe=this.visualMapModel,_e=pe.get("textGap"),Ce=pe.itemSize,$e=this._shapes.mainGroup,xe=this._applyTransform([Ce[0]/2,ie===0?-_e:Ce[1]+_e],$e),Ie=this._applyTransform(ie===0?"bottom":"top",$e),Ne=this._orient,Fe=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(Fe,{x:xe[0],y:xe[1],verticalAlign:Ne==="horizontal"?"middle":Ie,align:Ne==="horizontal"?Ie:"center",text:le})}))}},z.prototype._renderBar=function(oe){var ae=this.visualMapModel,ie=this._shapes,le=ae.itemSize,pe=this._orient,_e=this._useHandle,Ce=getItemAlign(ae,this.api,le),$e=ie.mainGroup=this._createBarGroup(Ce),xe=new Group$3;$e.add(xe),xe.add(ie.outOfRange=createPolygon()),xe.add(ie.inRange=createPolygon(null,_e?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),xe.setClipPath(new Rect$2({shape:{x:0,y:0,width:le[0],height:le[1],r:3}}));var Ie=ae.textStyleModel.getTextRect("国"),Ne=mathMax(Ie.width,Ie.height);_e&&(ie.handleThumbs=[],ie.handleLabels=[],ie.handleLabelPoints=[],this._createHandle(ae,$e,0,le,Ne,pe),this._createHandle(ae,$e,1,le,Ne,pe)),this._createIndicator(ae,$e,le,Ne,pe),oe.add($e)},z.prototype._createHandle=function(oe,ae,ie,le,pe,_e){var Ce=bind$1(this._dragHandle,this,ie,!1),$e=bind$1(this._dragHandle,this,ie,!0),xe=parsePercent$1(oe.get("handleSize"),le[0]),Ie=createSymbol(oe.get("handleIcon"),-xe/2,-xe/2,xe,xe,null,!0),Ne=getCursor(this._orient);Ie.attr({cursor:Ne,draggable:!0,drift:Ce,ondragend:$e,onmousemove:function(hn){stop(hn.event)}}),Ie.x=le[0]/2,Ie.useStyle(oe.getModel("handleStyle").getItemStyle()),Ie.setStyle({strokeNoScale:!0,strokeFirst:!0}),Ie.style.lineWidth*=2,Ie.ensureState("emphasis").style=oe.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(Ie,!0),ae.add(Ie);var Fe=this.visualMapModel.textStyleModel,ze=new ZRText$1({cursor:Ne,draggable:!0,drift:Ce,onmousemove:function(hn){stop(hn.event)},ondragend:$e,style:createTextStyle$1(Fe,{x:0,y:0,text:""})});ze.ensureState("blur").style={opacity:.1},ze.stateTransition={duration:200},this.group.add(ze);var At=[xe,0],Lt=this._shapes;Lt.handleThumbs[ie]=Ie,Lt.handleLabelPoints[ie]=At,Lt.handleLabels[ie]=ze},z.prototype._createIndicator=function(oe,ae,ie,le,pe){var _e=parsePercent$1(oe.get("indicatorSize"),ie[0]),Ce=createSymbol(oe.get("indicatorIcon"),-_e/2,-_e/2,_e,_e,null,!0);Ce.attr({cursor:"move",invisible:!0,silent:!0,x:ie[0]/2});var $e=oe.getModel("indicatorStyle").getItemStyle();if(Ce instanceof ZRImage$1){var xe=Ce.style;Ce.useStyle(extend({image:xe.image,x:xe.x,y:xe.y,width:xe.width,height:xe.height},$e))}else Ce.useStyle($e);ae.add(Ce);var Ie=this.visualMapModel.textStyleModel,Ne=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Ie,{x:0,y:0,text:""})});this.group.add(Ne);var Fe=[(pe==="horizontal"?le/2:HOVER_LINK_OUT)+ie[0]/2,0],ze=this._shapes;ze.indicator=Ce,ze.indicatorLabel=Ne,ze.indicatorLabelPoint=Fe,this._firstShowIndicator=!0},z.prototype._dragHandle=function(oe,ae,ie,le){if(this._useHandle){if(this._dragging=!ae,!ae){var pe=this._applyTransform([ie,le],this._shapes.mainGroup,!0);this._updateInterval(oe,pe[1]),this._hideIndicator(),this._updateView()}ae===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),ae?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[oe],!1)}},z.prototype._resetInterval=function(){var oe=this.visualMapModel,ae=this._dataInterval=oe.getSelected(),ie=oe.getExtent(),le=[0,oe.itemSize[1]];this._handleEnds=[linearMap(ae[0],ie,le,!0),linearMap(ae[1],ie,le,!0)]},z.prototype._updateInterval=function(oe,ae){ae=ae||0;var ie=this.visualMapModel,le=this._handleEnds,pe=[0,ie.itemSize[1]];sliderMove(ae,le,pe,oe,0);var _e=ie.getExtent();this._dataInterval=[linearMap(le[0],pe,_e,!0),linearMap(le[1],pe,_e,!0)]},z.prototype._updateView=function(oe){var ae=this.visualMapModel,ie=ae.getExtent(),le=this._shapes,pe=[0,ae.itemSize[1]],_e=oe?pe:this._handleEnds,Ce=this._createBarVisual(this._dataInterval,ie,_e,"inRange"),$e=this._createBarVisual(ie,ie,pe,"outOfRange");le.inRange.setStyle({fill:Ce.barColor}).setShape("points",Ce.barPoints),le.outOfRange.setStyle({fill:$e.barColor}).setShape("points",$e.barPoints),this._updateHandle(_e,Ce)},z.prototype._createBarVisual=function(oe,ae,ie,le){var pe={forceState:le,convertOpacityToAlpha:!0},_e=this._makeColorGradient(oe,pe),Ce=[this.getControllerVisual(oe[0],"symbolSize",pe),this.getControllerVisual(oe[1],"symbolSize",pe)],$e=this._createBarPoints(ie,Ce);return{barColor:new LinearGradient$1(0,0,0,1,_e),barPoints:$e,handlesColor:[_e[0].color,_e[_e.length-1].color]}},z.prototype._makeColorGradient=function(oe,ae){var ie=100,le=[],pe=(oe[1]-oe[0])/ie;le.push({color:this.getControllerVisual(oe[0],"color",ae),offset:0});for(var _e=1;_e<ie;_e++){var Ce=oe[0]+pe*_e;if(Ce>oe[1])break;le.push({color:this.getControllerVisual(Ce,"color",ae),offset:_e/ie})}return le.push({color:this.getControllerVisual(oe[1],"color",ae),offset:1}),le},z.prototype._createBarPoints=function(oe,ae){var ie=this.visualMapModel.itemSize;return[[ie[0]-ae[0],oe[0]],[ie[0],oe[0]],[ie[0],oe[1]],[ie[0]-ae[1],oe[1]]]},z.prototype._createBarGroup=function(oe){var ae=this._orient,ie=this.visualMapModel.get("inverse");return new Group$3(ae==="horizontal"&&!ie?{scaleX:oe==="bottom"?1:-1,rotation:Math.PI/2}:ae==="horizontal"&&ie?{scaleX:oe==="bottom"?-1:1,rotation:-Math.PI/2}:ae==="vertical"&&!ie?{scaleX:oe==="left"?1:-1,scaleY:-1}:{scaleX:oe==="left"?1:-1})},z.prototype._updateHandle=function(oe,ae){if(this._useHandle){var ie=this._shapes,le=this.visualMapModel,pe=ie.handleThumbs,_e=ie.handleLabels,Ce=le.itemSize,$e=le.getExtent();each$1([0,1],function(xe){var Ie=pe[xe];Ie.setStyle("fill",ae.handlesColor[xe]),Ie.y=oe[xe];var Ne=linearMap(oe[xe],[0,Ce[1]],$e,!0),Fe=this.getControllerVisual(Ne,"symbolSize");Ie.scaleX=Ie.scaleY=Fe/Ce[0],Ie.x=Ce[0]-Fe/2;var ze=applyTransform(ie.handleLabelPoints[xe],getTransform$1(Ie,this.group));_e[xe].setStyle({x:ze[0],y:ze[1],text:le.formatValueText(this._dataInterval[xe]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",ie.mainGroup):"center"})},this)}},z.prototype._showIndicator=function(oe,ae,ie,le){var pe=this.visualMapModel,_e=pe.getExtent(),Ce=pe.itemSize,$e=[0,Ce[1]],xe=this._shapes,Ie=xe.indicator;if(Ie){Ie.attr("invisible",!1);var Ne={convertOpacityToAlpha:!0},Fe=this.getControllerVisual(oe,"color",Ne),ze=this.getControllerVisual(oe,"symbolSize"),At=linearMap(oe,_e,$e,!0),Lt=Ce[0]-ze/2,hn={x:Ie.x,y:Ie.y};Ie.y=At,Ie.x=Lt;var vn=applyTransform(xe.indicatorLabelPoint,getTransform$1(Ie,this.group)),_n=xe.indicatorLabel;_n.attr("invisible",!1);var bn=this._applyTransform("left",xe.mainGroup),Cn=this._orient,En=Cn==="horizontal";_n.setStyle({text:(ie||"")+pe.formatValueText(ae),verticalAlign:En?bn:"middle",align:En?"center":bn});var $n={x:Lt,y:At,style:{fill:Fe}},wn={style:{x:vn[0],y:vn[1]}};if(pe.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Tn={duration:100,easing:"cubicInOut",additive:!0};Ie.x=hn.x,Ie.y=hn.y,Ie.animateTo($n,Tn),_n.animateTo(wn,Tn)}else Ie.attr($n),_n.attr(wn);this._firstShowIndicator=!1;var xn=this._shapes.handleLabels;if(xn)for(var kn=0;kn<xn.length;kn++)this._api.enterBlur(xn[kn])}},z.prototype._enableHoverLinkToSeries=function(){var oe=this;this._shapes.mainGroup.on("mousemove",function(ae){if(oe._hovering=!0,!oe._dragging){var ie=oe.visualMapModel.itemSize,le=oe._applyTransform([ae.offsetX,ae.offsetY],oe._shapes.mainGroup,!0,!0);le[1]=mathMin(mathMax(0,le[1]),ie[1]),oe._doHoverLinkToSeries(le[1],0<=le[0]&&le[0]<=ie[0])}}).on("mouseout",function(){oe._hovering=!1,!oe._dragging&&oe._clearHoverLinkToSeries()})},z.prototype._enableHoverLinkFromSeries=function(){var oe=this.api.getZr();this.visualMapModel.option.hoverLink?(oe.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),oe.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},z.prototype._doHoverLinkToSeries=function(oe,ae){var ie=this.visualMapModel,le=ie.itemSize;if(ie.option.hoverLink){var pe=[0,le[1]],_e=ie.getExtent();oe=mathMin(mathMax(pe[0],oe),pe[1]);var Ce=getHalfHoverLinkSize(ie,_e,pe),$e=[oe-Ce,oe+Ce],xe=linearMap(oe,pe,_e,!0),Ie=[linearMap($e[0],pe,_e,!0),linearMap($e[1],pe,_e,!0)];$e[0]<pe[0]&&(Ie[0]=-1/0),$e[1]>pe[1]&&(Ie[1]=1/0),ae&&(Ie[0]===-1/0?this._showIndicator(xe,Ie[1],"< ",Ce):Ie[1]===1/0?this._showIndicator(xe,Ie[0],"> ",Ce):this._showIndicator(xe,xe,"≈ ",Ce));var Ne=this._hoverLinkDataIndices,Fe=[];(ae||useHoverLinkOnHandle(ie))&&(Fe=this._hoverLinkDataIndices=ie.findTargetDataIndices(Ie));var ze=compressBatches(Ne,Fe);this._dispatchHighDown("downplay",makeHighDownBatch(ze[0],ie)),this._dispatchHighDown("highlight",makeHighDownBatch(ze[1],ie))}},z.prototype._hoverLinkFromSeriesMouseOver=function(oe){var ae;if(findEventDispatcher(oe.target,function(Ce){var $e=getECData(Ce);if($e.dataIndex!=null)return ae=$e,!0},!0),!!ae){var ie=this.ecModel.getSeriesByIndex(ae.seriesIndex),le=this.visualMapModel;if(le.isTargetSeries(ie)){var pe=ie.getData(ae.dataType),_e=pe.getStore().get(le.getDataDimensionIndex(pe),ae.dataIndex);isNaN(_e)||this._showIndicator(_e,_e)}}},z.prototype._hideIndicator=function(){var oe=this._shapes;oe.indicator&&oe.indicator.attr("invisible",!0),oe.indicatorLabel&&oe.indicatorLabel.attr("invisible",!0);var ae=this._shapes.handleLabels;if(ae)for(var ie=0;ie<ae.length;ie++)this._api.leaveBlur(ae[ie])},z.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var oe=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(oe,this.visualMapModel)),oe.length=0},z.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var oe=this.api.getZr();oe.off("mouseover",this._hoverLinkFromSeriesMouseOver),oe.off("mouseout",this._hideIndicator)},z.prototype._applyTransform=function(oe,ae,ie,le){var pe=getTransform$1(ae,le?null:this.group);return isArray$1(oe)?applyTransform(oe,pe,ie):transformDirection(oe,pe,ie)},z.prototype._dispatchHighDown=function(oe,ae){ae&&ae.length&&this.api.dispatchAction({type:oe,batch:ae})},z.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},z.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},z.type="visualMap.continuous",z}(VisualMapView$1);function createPolygon($,z,oe,ae){return new Polygon$1({shape:{points:$},draggable:!!oe,cursor:z,drift:oe,onmousemove:function(ie){stop(ie.event)},ondragend:ae})}function getHalfHoverLinkSize($,z,oe){var ae=HOVER_LINK_SIZE/2,ie=$.get("hoverLinkDataSize");return ie&&(ae=linearMap(ie,z,oe,!0)/2),ae}function useHoverLinkOnHandle($){var z=$.get("hoverLinkOnHandle");return!!(z??$.get("realtime"))}function getCursor($){return $==="vertical"?"ns-resize":"ew-resize"}const ContinuousView$1=ContinuousView;var visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function($,z){z.eachComponent({mainType:"visualMap",query:$},function(oe){oe.setSelected($.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function($,z){var oe=[];return z.eachComponent("visualMap",function(ae){var ie=$.pipelineContext;!ae.isTargetSeries($)||ie&&ie.large||oe.push(incrementalApplyVisual(ae.stateList,ae.targetVisuals,bind$1(ae.getValueState,ae),ae.getDataDimensionIndex($.getData())))}),oe}},{createOnAllSeries:!0,reset:function($,z){var oe=$.getData(),ae=[];z.eachComponent("visualMap",function(ie){if(ie.isTargetSeries($)){var le=ie.getVisualMeta(bind$1(getColorVisual,null,$,ie))||{stops:[],outerColors:[]},pe=ie.getDataDimensionIndex(oe);pe>=0&&(le.dimension=pe,ae.push(le))}}),$.getData().setVisual("visualMeta",ae)}}];function getColorVisual($,z,oe,ae){for(var ie=z.targetVisuals[ae],le=VisualMapping$1.prepareVisualTypes(ie),pe={color:getVisualFromData($.getData(),"color")},_e=0,Ce=le.length;_e<Ce;_e++){var $e=le[_e],xe=ie[$e==="opacity"?"__alphaForOpacity":$e];xe&&xe.applyVisual(oe,Ie,Ne)}return pe.color;function Ie(Fe){return pe[Fe]}function Ne(Fe,ze){pe[Fe]=ze}}var each=each$c;function visualMapPreprocessor($){var z=$&&$.visualMap;isArray$1(z)||(z=z?[z]:[]),each(z,function(oe){if(oe){has(oe,"splitList")&&!has(oe,"pieces")&&(oe.pieces=oe.splitList,delete oe.splitList);var ae=oe.pieces;ae&&isArray$1(ae)&&each(ae,function(ie){isObject$3(ie)&&(has(ie,"start")&&!has(ie,"min")&&(ie.min=ie.start),has(ie,"end")&&!has(ie,"max")&&(ie.max=ie.end))})}})}function has($,z){return $&&$.hasOwnProperty&&$.hasOwnProperty(z)}var installed=!1;function installCommon($){installed||(installed=!0,$.registerSubTypeDefaulter("visualMap",function(z){return!z.categories&&(!(z.pieces?z.pieces.length>0:z.splitNumber>0)||z.calculable)?"continuous":"piecewise"}),$.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(z){$.registerVisual($.PRIORITY.VISUAL.COMPONENT,z)}),$.registerPreprocessor(visualMapPreprocessor))}function install$2($){$.registerComponentModel(ContinuousModel$1),$.registerComponentView(ContinuousView$1),installCommon($)}var PiecewiseModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._pieceList=[],oe}return z.prototype.optionUpdated=function(oe,ae){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var ie=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(oe,ae);var le=this.option.categories;this.resetVisual(function(pe,_e){ie==="categories"?(pe.mappingMethod="category",pe.categories=clone$3(le)):(pe.dataExtent=this.getExtent(),pe.mappingMethod="piecewise",pe.pieceList=map$2(this._pieceList,function(Ce){return Ce=clone$3(Ce),_e!=="inRange"&&(Ce.visual=null),Ce}))})},z.prototype.completeVisualOption=function(){var oe=this.option,ae={},ie=VisualMapping$1.listVisualTypes(),le=this.isCategory();each$c(oe.pieces,function(_e){each$c(ie,function(Ce){_e.hasOwnProperty(Ce)&&(ae[Ce]=1)})}),each$c(ae,function(_e,Ce){var $e=!1;each$c(this.stateList,function(xe){$e=$e||pe(oe,xe,Ce)||pe(oe.target,xe,Ce)},this),!$e&&each$c(this.stateList,function(xe){(oe[xe]||(oe[xe]={}))[Ce]=visualDefault$1.get(Ce,xe==="inRange"?"active":"inactive",le)})},this);function pe(_e,Ce,$e){return _e&&_e[Ce]&&_e[Ce].hasOwnProperty($e)}$.prototype.completeVisualOption.apply(this,arguments)},z.prototype._resetSelected=function(oe,ae){var ie=this.option,le=this._pieceList,pe=(ae?ie:oe).selected||{};if(ie.selected=pe,each$c(le,function(Ce,$e){var xe=this.getSelectedMapKey(Ce);pe.hasOwnProperty(xe)||(pe[xe]=!0)},this),ie.selectedMode==="single"){var _e=!1;each$c(le,function(Ce,$e){var xe=this.getSelectedMapKey(Ce);pe[xe]&&(_e?pe[xe]=!1:_e=!0)},this)}},z.prototype.getItemSymbol=function(){return this.get("itemSymbol")},z.prototype.getSelectedMapKey=function(oe){return this._mode==="categories"?oe.value+"":oe.index+""},z.prototype.getPieceList=function(){return this._pieceList},z.prototype._determineMode=function(){var oe=this.option;return oe.pieces&&oe.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},z.prototype.setSelected=function(oe){this.option.selected=clone$3(oe)},z.prototype.getValueState=function(oe){var ae=VisualMapping$1.findPieceIndex(oe,this._pieceList);return ae!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[ae])]?"inRange":"outOfRange"},z.prototype.findTargetDataIndices=function(oe){var ae=[],ie=this._pieceList;return this.eachTargetSeries(function(le){var pe=[],_e=le.getData();_e.each(this.getDataDimensionIndex(_e),function(Ce,$e){var xe=VisualMapping$1.findPieceIndex(Ce,ie);xe===oe&&pe.push($e)},this),ae.push({seriesId:le.id,dataIndex:pe})},this),ae},z.prototype.getRepresentValue=function(oe){var ae;if(this.isCategory())ae=oe.value;else if(oe.value!=null)ae=oe.value;else{var ie=oe.interval||[];ae=ie[0]===-1/0&&ie[1]===1/0?0:(ie[0]+ie[1])/2}return ae},z.prototype.getVisualMeta=function(oe){if(this.isCategory())return;var ae=[],ie=["",""],le=this;function pe(xe,Ie){var Ne=le.getRepresentValue({interval:xe});Ie||(Ie=le.getValueState(Ne));var Fe=oe(Ne,Ie);xe[0]===-1/0?ie[0]=Fe:xe[1]===1/0?ie[1]=Fe:ae.push({value:xe[0],color:Fe},{value:xe[1],color:Fe})}var _e=this._pieceList.slice();if(!_e.length)_e.push({interval:[-1/0,1/0]});else{var Ce=_e[0].interval[0];Ce!==-1/0&&_e.unshift({interval:[-1/0,Ce]}),Ce=_e[_e.length-1].interval[1],Ce!==1/0&&_e.push({interval:[Ce,1/0]})}var $e=-1/0;return each$c(_e,function(xe){var Ie=xe.interval;Ie&&(Ie[0]>$e&&pe([$e,Ie[0]],"outOfRange"),pe(Ie.slice()),$e=Ie[1])},this),{stops:ae,outerColors:ie}},z.type="visualMap.piecewise",z.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}),z}(VisualMapModel$1),resetMethods={splitNumber:function($){var z=this.option,oe=Math.min(z.precision,20),ae=this.getExtent(),ie=z.splitNumber;ie=Math.max(parseInt(ie,10),1),z.splitNumber=ie;for(var le=(ae[1]-ae[0])/ie;+le.toFixed(oe)!==le&&oe<5;)oe++;z.precision=oe,le=+le.toFixed(oe),z.minOpen&&$.push({interval:[-1/0,ae[0]],close:[0,0]});for(var pe=0,_e=ae[0];pe<ie;_e+=le,pe++){var Ce=pe===ie-1?ae[1]:_e+le;$.push({interval:[_e,Ce],close:[1,1]})}z.maxOpen&&$.push({interval:[ae[1],1/0],close:[0,0]}),reformIntervals($),each$c($,function($e,xe){$e.index=xe,$e.text=this.formatValueText($e.interval)},this)},categories:function($){var z=this.option;each$c(z.categories,function(oe){$.push({text:this.formatValueText(oe,!0),value:oe})},this),normalizeReverse(z,$)},pieces:function($){var z=this.option;each$c(z.pieces,function(oe,ae){isObject$3(oe)||(oe={value:oe});var ie={text:"",index:ae};if(oe.label!=null&&(ie.text=oe.label),oe.hasOwnProperty("value")){var le=ie.value=oe.value;ie.interval=[le,le],ie.close=[1,1]}else{for(var pe=ie.interval=[],_e=ie.close=[0,0],Ce=[1,0,1],$e=[-1/0,1/0],xe=[],Ie=0;Ie<2;Ie++){for(var Ne=[["gte","gt","min"],["lte","lt","max"]][Ie],Fe=0;Fe<3&&pe[Ie]==null;Fe++)pe[Ie]=oe[Ne[Fe]],_e[Ie]=Ce[Fe],xe[Ie]=Fe===2;pe[Ie]==null&&(pe[Ie]=$e[Ie])}xe[0]&&pe[1]===1/0&&(_e[0]=0),xe[1]&&pe[0]===-1/0&&(_e[1]=0),pe[0]===pe[1]&&_e[0]&&_e[1]&&(ie.value=pe[0])}ie.visual=VisualMapping$1.retrieveVisuals(oe),$.push(ie)},this),normalizeReverse(z,$),reformIntervals($),each$c($,function(oe){var ae=oe.close,ie=[["<","≤"][ae[1]],[">","≥"][ae[0]]];oe.text=oe.text||this.formatValueText(oe.value!=null?oe.value:oe.interval,!1,ie)},this)}};function normalizeReverse($,z){var oe=$.inverse;($.orient==="vertical"?!oe:oe)&&z.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.doRender=function(){var oe=this.group;oe.removeAll();var ae=this.visualMapModel,ie=ae.get("textGap"),le=ae.textStyleModel,pe=le.getFont(),_e=le.getTextColor(),Ce=this._getItemAlign(),$e=ae.itemSize,xe=this._getViewData(),Ie=xe.endsText,Ne=retrieve(ae.get("showLabel",!0),!Ie);Ie&&this._renderEndsText(oe,Ie[0],$e,Ne,Ce),each$c(xe.viewPieceList,function(Fe){var ze=Fe.piece,At=new Group$3;At.onclick=bind$1(this._onItemClick,this,ze),this._enableHoverLink(At,Fe.indexInModelPieceList);var Lt=ae.getRepresentValue(ze);if(this._createItemSymbol(At,Lt,[0,0,$e[0],$e[1]]),Ne){var hn=this.visualMapModel.getValueState(Lt);At.add(new ZRText$1({style:{x:Ce==="right"?-ie:$e[0]+ie,y:$e[1]/2,text:ze.text,verticalAlign:"middle",align:Ce,font:pe,fill:_e,opacity:hn==="outOfRange"?.5:1}}))}oe.add(At)},this),Ie&&this._renderEndsText(oe,Ie[1],$e,Ne,Ce),box(ae.get("orient"),oe,ae.get("itemGap")),this.renderBackground(oe),this.positionGroup(oe)},z.prototype._enableHoverLink=function(oe,ae){var ie=this;oe.on("mouseover",function(){return le("highlight")}).on("mouseout",function(){return le("downplay")});var le=function(pe){var _e=ie.visualMapModel;_e.option.hoverLink&&ie.api.dispatchAction({type:pe,batch:makeHighDownBatch(_e.findTargetDataIndices(ae),_e)})}},z.prototype._getItemAlign=function(){var oe=this.visualMapModel,ae=oe.option;if(ae.orient==="vertical")return getItemAlign(oe,this.api,oe.itemSize);var ie=ae.align;return(!ie||ie==="auto")&&(ie="left"),ie},z.prototype._renderEndsText=function(oe,ae,ie,le,pe){if(ae){var _e=new Group$3,Ce=this.visualMapModel.textStyleModel;_e.add(new ZRText$1({style:createTextStyle$1(Ce,{x:le?pe==="right"?ie[0]:0:ie[0]/2,y:ie[1]/2,verticalAlign:"middle",align:le?pe:"center",text:ae})})),oe.add(_e)}},z.prototype._getViewData=function(){var oe=this.visualMapModel,ae=map$2(oe.getPieceList(),function(_e,Ce){return{piece:_e,indexInModelPieceList:Ce}}),ie=oe.get("text"),le=oe.get("orient"),pe=oe.get("inverse");return(le==="horizontal"?pe:!pe)?ae.reverse():ie&&(ie=ie.slice().reverse()),{viewPieceList:ae,endsText:ie}},z.prototype._createItemSymbol=function(oe,ae,ie){oe.add(createSymbol(this.getControllerVisual(ae,"symbol"),ie[0],ie[1],ie[2],ie[3],this.getControllerVisual(ae,"color")))},z.prototype._onItemClick=function(oe){var ae=this.visualMapModel,ie=ae.option,le=ie.selectedMode;if(le){var pe=clone$3(ie.selected),_e=ae.getSelectedMapKey(oe);le==="single"||le===!0?(pe[_e]=!0,each$c(pe,function(Ce,$e){pe[$e]=$e===_e})):pe[_e]=!pe[_e],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:pe})}},z.type="visualMap.piecewise",z}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1($){$.registerComponentModel(PiecewiseModel$1),$.registerComponentView(PiecewiseView),installCommon($)}function install($){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($){$.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_$1=($,z,oe)=>z in $?p($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe,P=($,z)=>{for(var oe in z)p($,oe,{get:z[oe],enumerable:!0})},y=($,z,oe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let ie of u(z))!j$1.call($,ie)&&ie!==oe&&p($,ie,{get:()=>z[ie],enumerable:!(ae=d(z,ie))||ae.enumerable});return $},m$1=($,z,oe)=>(y($,z,"default"),oe&&y(oe,z,"default")),f=($,z,oe)=>(_$1($,typeof z!="symbol"?z+"":z,oe),oe),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install($,z){let{nameSpace:oe=this._nameSpace,memory:ae}=z;return ae&&this.clearAll(oe,ae),new g($,z)}static clearAll($,z){Object.keys(z).forEach(oe=>{let ae=$+oe;Object.prototype.hasOwnProperty.call(window.localStorage,ae)&&window.localStorage.removeItem(ae)})}static get($){return JSON.parse(window.localStorage.getItem($))}static set($,z){z=typeof z=="object"?JSON.stringify(z):z,window.localStorage.setItem($,z)}static getData($,z){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(z,$)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(z,$)))}constructor($,z){let oe=g,{version:ae=3,nameSpace:ie=oe._nameSpace,memory:le}=z,pe=$e=>ie+$e,_e=ae===3?(0,c.reactive)(le):le;Object.keys(_e).length===0&&console.warn("key cannot be empty"),Object.keys(_e).forEach($e=>{let xe=_e[$e];oe.set(pe($e),xe),Reflect.defineProperty(_e,$e,{get:()=>oe.get(pe($e)),set:Ie=>oe.set(pe($e),Ie),configurable:!0}),ae===2&&$.util.defineReactive(_e,$e,_e[$e])});let Ce=ae===3?$.config.globalProperties:$.prototype;Reflect.defineProperty(Ce,"$storage",{get:()=>_e})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",($,z)=>`${$??g._nameSpace}${z}`);const injectResponsiveStorage=($,z)=>{const oe=responsiveStorageNameSpace(),ae=Object.assign({locale:n.getData("locale",oe)??{locale:z.Locale??"zh"},layout:n.getData("layout",oe)??{layout:z.Layout??"vertical",theme:z.Theme??"default",darkMode:z.DarkMode??!1,sidebarStatus:z.SidebarStatus??!0,epThemeColor:z.EpThemeColor??"#409EFF"},configure:n.getData("configure",oe)??{grey:z.Grey??!1,weak:z.Weak??!1,hideTabs:z.HideTabs??!1,showLogo:z.ShowLogo??!0,showModel:z.ShowModel??"smart",multiTagsCache:z.MultiTagsCache??!1}},z.MultiTagsCache?{tags:n.getData("tags",oe)??routerArrays}:{});$.use(n,{nameSpace:oe,memory:ae})},ue=Object.prototype.hasOwnProperty,D=($,z)=>ue.call($,z),_=$=>$!==null&&typeof $=="object",de=(($,z)=>{if(!_($)||_(oe=$)&&oe.__epPropKey)return $;var oe;const{values:ae,required:ie,default:le,type:pe,validator:_e}=$,Ce=ae||_e?xe=>{let Ie=!1,Ne=[];if(ae&&(Ne=Array.from(ae),D($,"default")&&Ne.push(le),Ie||(Ie=Ne.includes(xe))),_e&&(Ie||(Ie=_e(xe))),!Ie&&Ne.length>0){const Fe=[...new Set(Ne)].map(ze=>JSON.stringify(ze)).join(", ");warn$2(`Invalid prop: validation failed${z?` for prop "${z}"`:""}. Expected one of [${Fe}], got value ${JSON.stringify(xe)}.`)}return Ie}:void 0,$e={type:pe,required:!!ie,validator:Ce,__epPropKey:!0};return D($,"default")&&($e.default=le),$e})({type:String,values:["","default","small","large"],required:!1});var ce={data:{type:Array,default:()=>[]},size:de,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 ge={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},...ce},H=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])});var J=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyNames,me=Object.prototype.hasOwnProperty,K=($,z,oe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let ie of ye(z))!me.call($,ie)&&ie!==oe&&J($,ie,{get:()=>z[ie],enumerable:!(ae=fe(z,ie))||ae.enumerable});return $},be=Object.prototype.toString;function M($){return typeof $=="function"}function he($){return function(z,oe){return be.call(z)===`[object ${oe}]`}($,"Boolean")}var h={};(($,z)=>{for(var oe in z)J($,oe,{get:z[oe],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),K(h,vue_runtime_esmBundler,"default");var Oe=()=>{let $,z=(0,h.ref)(!1),oe=()=>{z.value=document.documentElement.classList.contains("dark")};return function(ae){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(ae)}(()=>{$.takeRecords(),$.disconnect()}),(0,h.onBeforeMount)(()=>{oe(),$=new MutationObserver(oe),$.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:z}};const T=defineComponent({name:"PureTable",props:ge,emits:["page-size-change","page-current-change"],setup($,{slots:z,attrs:oe,emit:ae,expose:ie}){const{isDark:le}=Oe(),pe=getCurrentInstance();function _e(){var En;return(En=pe==null?void 0:pe.proxy)==null?void 0:En.$refs[`TableRef${$.key}`]}function Ce(){return _e().$refs}onMounted(()=>{nextTick(()=>{$.rowHoverBgColor&&Ce().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",$.rowHoverBgColor,"important")})});const{columns:$e,loading:xe,loadingConfig:Ie,alignWhole:Ne,headerAlign:Fe,showOverflowTooltip:ze,pagination:At}=toRefs($);let Lt=computed(()=>{if(!unref(Ie))return;let{text:En,spinner:$n,svg:wn,viewBox:Tn}=unref(Ie);return{"element-loading-text":En,"element-loading-spinner":$n,"element-loading-svg":wn,"element-loading-svg-view-box":Tn}});const hn=computed(()=>{var En,$n;if(unref(xe))return{"element-loading-background":(($n=(En=unref(Ie))==null?void 0:En.background)!=null?$n:le.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),vn=computed(()=>{var En;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(At).align==="left"?"flex-start":unref(At).align==="center"?"center":"flex-end"},(En=unref(At).style)!=null?En:{})});let _n=unref(At)&&unref(At).currentPage&&unref(At).pageSize;const bn=(En,$n)=>{const{cellRenderer:wn,slot:Tn,headerRenderer:xn,hide:kn,children:An,prop:On,...Mn}=En;if(M(kn)&&kn(oe))return kn(oe);if(he(kn)&&kn)return kn;const Fn={default:Vn=>{var Bn;return wn?createVNode(H,{render:wn,params:Object.assign(Vn,{index:Vn.$index,props:$,attrs:oe})},null):Tn?(Bn=z==null?void 0:z[Tn])==null?void 0:Bn.call(z,Object.assign(Vn,{index:Vn.$index,props:$,attrs:oe})):void 0}};let Dn=xn?{header:Vn=>createVNode(H,{render:xn,params:Object.assign(Vn,{index:Vn.$index,props:$,attrs:oe})},null),...Fn}:Fn;return(An==null?void 0:An.length)>0&&(Dn=An.map(bn)),createVNode(ElTableColumn,mergeProps({key:$n},Mn,{prop:M(On)&&On($n)?On($n):On,align:En!=null&&En.align?En.align:unref(Ne),headerAlign:En!=null&&En.headerAlign?En.headerAlign:unref(Fe),showOverflowTooltip:En!=null&&En.showOverflowTooltip?En.showOverflowTooltip:unref(ze)}),typeof(Nn=Dn)=="function"||Object.prototype.toString.call(Nn)==="[object Object]"&&!isVNode$1(Nn)?Dn:{default:()=>[Dn]});var Nn};ie({getTableRef:_e,getTableDoms:Ce});let Cn=()=>{var En,$n;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps($,oe,{ref:`TableRef${$.key}`}),{default:()=>unref($e).map(bn),append:()=>z.append&&z.append(),empty:()=>z.empty&&z.empty()}),_n?createVNode(ElPagination,mergeProps(oe,{class:"pure-pagination",style:unref(vn)},unref(At),{small:$!=null&&$.paginationSmall?$==null?void 0:$.paginationSmall:!!unref(At).small&&unref(At).small,layout:(En=unref(At).layout)!=null?En:"total, sizes, prev, pager, next, jumper",pageSizes:($n=unref(At).pageSizes)!=null?$n:[5,10,15,20],onSizeChange:wn=>(Tn=>{unref(At).pageSize=Tn,ae("page-size-change",Tn)})(wn),onCurrentChange:wn=>(Tn=>{unref(At).currentPage=Tn,ae("page-current-change",Tn)})(wn)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(hn),unref(Lt)),[Cn()]),[[resolveDirective("loading"),unref(xe)]])}}),Se=Object.assign(T,{install:function($){$.component(T.name,T)}}),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:$=>()=>createVNode(Fragment,null,[$.render($.params)])}),m=defineComponent({name:"PureDescriptions",props:L,setup($,{slots:z,attrs:oe}){const{data:ae,columns:ie,align:le,labelAlign:pe,loading:_e}=toRefs($),Ce={title:()=>(z==null?void 0:z.title)&&z.title({props:$,attrs:oe})},$e={extra:()=>(z==null?void 0:z.extra)&&z.extra({props:$,attrs:oe})},xe=z!=null&&z.title&&!(z!=null&&z.extra)?Ce:z!=null&&z.extra&&!(z!=null&&z.title)?$e:z!=null&&z.title&&(z!=null&&z.extra)?Object.assign(Ce,$e):null;return()=>{var Ie;return withDirectives(createVNode(ElDescriptions,mergeProps($,oe,{"element-loading-text":(Ie=unref(_e).text)!=null?Ie:"Loading...","element-loading-svg":unref(_e).svg,"element-loading-spinner":unref(_e).spinner,"element-loading-svg-view-box":unref(_e).svgViewBox,"element-loading-background":unref(_e).background}),{default:()=>[unref(ie).map((Ne,Fe)=>{let ze=unref(ae).map(_n=>_n[Ne==null?void 0:Ne.prop]);const At={default:()=>{var _n;return Ne!=null&&Ne.cellRenderer?createVNode(j,{render:Ne.cellRenderer,params:{props:$,attrs:oe,index:Fe,value:ze[0]}},null):Ne!=null&&Ne.slot?(_n=z==null?void 0:z[Ne.slot])==null?void 0:_n.call(z,{props:$,attrs:oe,index:Fe,value:ze[0]}):createVNode(Fragment,null,Ne!=null&&Ne.value?[unref(Ne.value)]:[ze])}},Lt=Ne!=null&&Ne.labelRenderer?{label:()=>createVNode(j,{render:Ne.labelRenderer,params:{props:$,attrs:oe,index:Fe,value:ze[0]}},null),...At}:At;return hn=Ne==null?void 0:Ne.hide,typeof hn=="function"&&(Ne!=null&&Ne.hide(oe))?Ne==null?void 0:Ne.hide(oe):createVNode(ElDescriptionsItem,mergeProps(Ne,{key:Fe,align:Ne.align?Ne.align:unref(le),labelAlign:Ne.labelAlign?Ne.labelAlign:unref(pe)}),typeof(vn=Lt)=="function"||Object.prototype.toString.call(vn)==="[object Object]"&&!isVNode$1(vn)?Lt:{default:()=>[Lt]});var hn,vn})],...xe}),[[resolveDirective("loading"),unref(_e).load]])}}}),I=Object.assign(m,{install:function($){$.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='<svg><symbol id="pure-iconfont-tabs" viewBox="0 0 1024 1024"><path d="M400.43383789 497.82763673c4.20227051 3.95507813 6.50939942 9.64050293 6.26220703 15.40832519 0.32958983 5.85021973-2.05993653 11.53564453-6.26220703 15.40832519-4.36706543 3.87268067-10.1348877 5.93261719-15.90270996 5.6854248h-57.3486328v193.71643067c0.16479492 6.09741211-2.38952637 11.86523438-6.92138672 15.73791504-4.53186037 4.44946289-10.62927247 6.83898926-16.8914795 6.67419433-6.26220703 0.24719239-12.4420166-2.22473145-16.89147949-6.67419436-4.36706543-4.03747559-6.7565918-9.80529786-6.67419434-15.73791501v-193.6340332H222.78491211c-5.93261719 0.24719239-11.70043946-1.89514161-15.90270997-6.01501466-4.28466797-3.95507813-6.59179689-9.64050293-6.26220701-15.40832519-0.24719239-5.76782227 2.05993653-11.28845215 6.26220702-15.07873536 4.36706543-3.95507813 10.05249023-6.01501465 15.90270996-5.76782224h163.4765625c5.19104004 0 10.21728516 2.05993653 14.17236328 5.6854248z m177.73132325 57.76062011c4.28466797 4.20227051 6.59179689 10.05249023 6.34460448 16.14990234v156.47277832c0.24719239 5.93261719-2.05993653 11.70043946-6.34460449 15.73791504-3.95507813 4.36706543-9.64050293 6.83898926-15.57312011 6.67419433-5.85021973 0.08239747-11.45324708-2.22473145-15.57312013-6.34460449-3.95507813-4.28466797-6.26220703-9.8876953-6.26220703-15.73791504-14.83154297 16.06750489-35.34851075 25.37841797-57.01904297 25.87280274-16.23229981 0.24719239-32.05261231-4.36706543-45.7305908-13.1011963-14.17236327-8.81652833-25.70800781-21.50573731-33.20617677-36.58447265-15.90270997-33.28857422-15.90270997-72.18017578 0-105.46875 7.33337403-15.16113281 18.86901856-27.85034179 33.20617677-36.58447266 13.18359375-8.6517334 28.67431641-13.26599122 44.41223145-13.10119628 21.67053223-0.08239747 42.68188475 8.07495117 58.66699218 22.82409667-0.16479492-6.01501465 2.14233398-11.86523438 6.34460448-16.14990234 8.73413086-8.40454102 22.41210938-8.40454102 31.14624024 0l-0.41198731-0.65917969z m-50.42724611 139.0045166c19.85778809-26.03759766 19.85778809-62.29248047 0-88.33007813-9.47570801-11.78283692-23.81286622-18.37463379-38.80920409-17.79785156-14.7491455-0.41198731-28.92150879 6.09741211-38.15002442 17.79785156-9.97009278 12.35961914-15.24353028 28.01513673-14.91394043 44.00024414-0.49438477 16.06750489 4.69665529 31.80541991 14.58435058 44.32983399 9.55810548 11.45324708 23.73046875 17.88024903 38.47961427 17.46826172 14.91394043 0.32958983 29.08630372-6.09741211 38.8092041-17.46826172zM778.47338867 562.26245117c14.08996583 8.81652833 25.54321289 21.34094239 33.20617676 36.25488281 8.15734864 16.31469727 12.27722169 34.44213867 11.94763184 52.734375 0.32958983 18.37463379-3.7902832 36.58447265-11.94763184 53.06396485-7.41577148 15.07873536-18.95141602 27.76794434-33.20617676 36.58447266-13.18359375 8.73413086-28.67431641 13.26599122-44.41223144 13.10119629-11.45324708 0.16479492-22.82409669-2.38952637-33.20617676-7.41577149-9.55810548-4.11987305-18.20983887-10.05249023-25.54321289-17.46826171v2.30712889c0.16479492 5.93261719-2.05993653 11.70043946-6.17980957 15.98510744-4.11987305 4.20227051-9.80529786 6.59179689-15.73791506 6.5093994-5.85021973 0.24719239-11.53564453-2.05993653-15.5731201-6.34460449-4.28466797-4.20227051-6.59179689-10.05249023-6.26220704-16.14990233V499.80517578c-0.16479492-6.01501465 2.05993653-11.86523438 6.26220705-16.14990234 8.73413086-8.48693847 22.41210938-8.48693847 31.14624023 0 4.20227051 4.28466797 6.50939942 10.05249023 6.26220703 16.14990234v76.87683106c6.59179689-8.07495117 14.83154297-14.58435059 24.22485352-19.11621094 10.21728516-5.60302734 21.58813477-8.48693847 33.20617675-8.40454102 16.23229981-0.16479492 32.13500977 4.36706543 45.81298828 13.10119629z m-12.93640137 134.30786133c10.05249023-12.4420166 15.32592773-28.26232911 14.91394043-44.32983398 0.49438477-15.98510742-4.69665529-31.55822755-14.58435059-44.00024415-9.8876953-11.04125977-23.89526367-17.38586426-38.64440917-17.38586426s-28.75671387 6.3446045-38.64440918 17.38586426c-19.85778809 26.03759766-19.85778809 62.29248047 0 88.33007813 9.55810548 11.61804201 23.89526367 18.20983887 38.8092041 17.79785156 15.07873536-0.16479492 29.16870117-7.49816895 38.15002442-19.77539062v1.97753906zM673.5814209 299.00256347c-12.77160645 0-23.07128906-10.29968262-23.07128907-23.07128905V183.5637207c-0.08239747-6.59179689 0-13.10119629 0-19.6105957V154.31262207c0-12.77160645 10.29968262-23.07128906 23.07128906-23.07128906H820.16650391c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592773 9.31091309 9.31091309 14.66674805 21.42333983 15.32592773 34.44213868 0.08239747 0.57678223 0.08239747 1.15356445 0.08239746 1.73034667v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128906 23.07128906H673.5814209z m23.07128906-46.1425781h129.69360352v-69.29626467c0-1.64794922-0.65917969-3.21350098-1.81274415-4.44946289-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274414H696.65270999v75.5584717zM396.56115722 299.90893555c-12.77160645 0-23.07128906-10.29968262-23.07128905-23.07128908V155.13659668c0-12.68920898 10.29968262-22.98889161 22.9888916-23.07128906l175.83618164-0.90637207h0.08239746c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592774 9.8876953 9.97009278 15.32592773 23.07128906 15.32592775 37.07885741v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128907 23.07128906h-205.16967775z m23.07128907-46.22497559h159.0270996v-70.20263671c0-1.64794922-0.65917969-3.21350098-1.81274413-4.44946289-1.15356445-1.15356445-2.71911623-1.81274414-4.36706543-1.81274414l-152.84729005 0.74157713v75.72326662z" ></path><path d="M149.78076171 892.84106445c-14.25476075 0-27.60314942-5.52062989-37.65563964-15.40832519-10.05249023-9.97009278-15.57312012-23.15368653-15.57312012-37.16125488V183.72851562c0-29.00390624 23.89526367-52.56958007 53.22875978-52.56958007h139.25170897c14.25476075 0 27.60314942 5.43823242 37.65563966 15.40832519 10.05249023 9.8876953 15.57312012 23.15368653 15.57312011 37.16125489V323.30981445c0 1.64794922 0.65917969 3.21350098 1.89514162 4.44946289 1.23596192 1.15356445 2.80151367 1.81274414 4.44946288 1.81274414h525.61340332c14.25476075 0 27.60314942 5.43823242 37.65563964 15.4083252 10.05249023 9.8876953 15.57312012 23.07128906 15.57312012 37.16125488v458.12988281c0 14.08996583-5.52062989 27.27355958-15.57312012 37.16125489s-23.40087891 15.40832519-37.65563964 15.40832519H149.78076171z m6.34460451-709.11254882c-3.54309083 0-6.3446045 2.80151367-6.34460449 6.26220703v649.86877441c0 1.64794922 0.65917969 3.29589844 1.8951416 4.4494629 1.15356445 1.15356445 2.80151367 1.81274414 4.44946288 1.81274415h718.09387208c1.73034668 0 3.29589844-0.65917969 4.44946288-1.81274415 1.23596192-1.15356445 1.89514161-2.71911623 1.89514161-4.4494629V379.01049805c0-1.64794922-0.65917969-3.21350098-1.81274413-4.36706544-1.23596192-1.23596192-2.80151367-1.89514161-4.44946291-1.89514159h-525.69580077c-14.25476075 0-27.60314942-5.52062989-37.65563966-15.4083252-10.05249023-9.8876953-15.57312012-23.15368653-15.57312012-37.16125488V189.90832519c0-1.64794922-0.65917969-3.21350098-1.8951416-4.44946288-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274416H156.12536621z" ></path></symbol><symbol id="pure-iconfont-logo" viewBox="0 0 1024 1024"><path d="M410.558481 0.10861C410.558481 211.083075 109.682285 361.860579 109.682285 633.656511c0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527C711.407525 361.751969 410.558481 210.974465 410.558481 0.10861z" fill="#386BF3" ></path><path d="M613.468671 73.664572c0 211.055922-300.876197 361.914883-300.876196 633.547901 0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527c-0.054305-271.633018-300.876197-422.491979-300.876197-633.547901z" fill="#C3D2FB" ></path><path d="M312.592475 707.212473c0-183.713414 137.635722-312.171612 226.72288-441.390078 81.701694 106.111739 172.119322 218.740063 172.119323 367.725506a309.755045 309.755045 0 0 1-291.074166 316.516003 323.114046 323.114046 0 0 1-107.768037-242.851431z" fill="#303F5B" ></path></symbol><symbol id="pure-iconfont-new" viewBox="0 0 1024 1024"><path d="M466.73632812 228.81640625l-33.31054687 255.41015625c34.36523438 20.21484375 78.31054688 42.62695313 131.22070313 62.2265625 55.1953125 20.47851563 105.1171875 32.43164063 145.54687499 39.46289063 127.44140625-161.27929688 147.39257813-224.38476563 141.59179688-215.59570313-10.45898438 15.99609375-62.05078125 20.390625-76.20117188 15.29296875-28.30078125-10.10742188-53.4375-37.52929688-65.30273437-81.29882813-14.85351563-54.66796875-43.50585938-50.53710938-94.5703125-21.35742187-58.88671875 33.48632813-121.46484375 4.39453125-148.97460938-54.140625z" fill="#FFFFFF" ></path><path d="M444.76367187 228.81640625c-3.77929688 28.828125-7.55859375 57.74414063-11.33789062 86.57226563l-17.9296875 137.37304687c-1.40625 10.45898438-2.72460938 21.00585938-4.13085937 31.46484375-0.96679688 7.3828125 4.83398438 15.46875 10.8984375 18.984375 69.78515625 40.86914063 145.63476563 71.98242188 224.12109374 91.66992188 19.16015625 4.83398438 38.49609375 8.87695313 57.91992188 12.30468749 7.20703125 1.23046875 16.34765625 0.703125 21.35742188-5.625C767.49804688 548.65039063 808.3671875 494.421875 843.34765625 436.58984375c7.91015625-13.09570313 15.55664063-26.3671875 22.1484375-40.16601563 2.4609375-5.09765625 4.74609375-10.37109375 6.85546875-15.64453125 1.31835938-3.33984375 2.37304688-7.11914063 2.28515625-10.72265625-0.43945313-12.04101563-9.4921875-22.32421875-22.06054688-22.32421875-8.4375 0-14.94140625 4.5703125-19.42382812 11.33789063-1.93359375 2.8125 3.33984375-3.42773438 1.58203125-2.109375-0.43945313 0.3515625-0.87890625 0.79101563-1.23046875 1.14257812-1.31835938 1.49414063-3.33984375 1.14257813 2.54882813-1.84570312-1.23046875 0.61523438-2.37304688 1.58203125-3.60351563 2.28515625-1.14257813 0.61523438-2.28515625 1.14257813-3.33984375 1.66992187-3.33984375 1.66992188 5.53710938-2.109375 1.93359375-0.87890625-0.61523438 0.17578125-1.14257813 0.43945313-1.7578125 0.61523438-3.07617188 1.0546875-6.24023438 1.93359375-9.40429688 2.72460937-3.33984375 0.79101563-6.76757813 1.40625-10.10742187 2.02148438-5.625 0.87890625 5.36132813-0.61523438-0.3515625 0.08789062-1.66992188 0.17578125-3.42773438 0.3515625-5.09765625 0.52734375-6.15234375 0.52734375-12.3046875 0.703125-18.45703125 0.26367188-2.28515625-0.17578125-7.03125-1.40625 1.40625 0.3515625-1.0546875-0.17578125-2.109375-0.3515625-3.1640625-0.61523438-0.703125-0.17578125-1.40625-0.3515625-2.109375-0.61523437-0.79101563-0.26367188-1.58203125-0.61523438-2.37304688-0.87890625-3.42773438-1.23046875 5.09765625 2.37304688 1.49414063 0.61523437-2.98828125-1.40625-5.88867188-2.8125-8.70117188-4.48242187-1.31835938-0.79101563-2.72460938-1.66992188-3.95507812-2.54882813l-2.63671875-1.84570312c-1.40625-1.0546875-3.69140625-3.69140625 1.0546875 0.79101562-2.37304688-2.28515625-5.09765625-4.30664063-7.47070313-6.59179687-2.98828125-2.98828125-5.44921875-6.59179688-8.52539062-9.4921875 0.17578125 0.17578125 3.33984375 4.48242188 1.23046875 1.58203125-0.61523438-0.79101563-1.23046875-1.66992188-1.7578125-2.4609375-1.0546875-1.49414063-2.109375-3.07617188-3.07617188-4.65820313-2.4609375-3.77929688-4.65820313-7.734375-6.67968749-11.77734375-0.87890625-1.7578125-1.7578125-3.60351563-2.63671875-5.44921875-0.17578125-0.43945313-0.3515625-0.79101563-0.52734375-1.23046875-0.96679688-2.19726563-0.703125-1.66992188 0.61523437 1.40625 0.08789063-0.3515625-0.96679688-2.54882813-1.0546875-2.63671875-1.7578125-4.48242188-3.25195313-9.140625-4.65820313-13.7109375-2.72460938-9.22851563-5.625-18.19335938-9.66796874-26.89453125-6.85546875-14.50195313-18.19335938-26.10351563-33.31054688-31.640625-13.18359375-4.83398438-28.38867188-3.07617188-41.484375 1.0546875-16.171875 5.09765625-30.84960938 13.44726563-45.61523438 21.4453125-2.02148438 1.0546875-3.95507813 2.109375-6.06445312 3.07617188-0.52734375 0.26367188-4.65820313 1.84570313-0.96679688 0.52734375 3.60351563-1.40625-0.43945313 0.17578125-0.96679687 0.3515625-3.95507813 1.49414063-7.99804688 2.8125-12.04101563 3.8671875-2.02148438 0.52734375-3.95507813 0.96679688-5.9765625 1.31835937-0.79101563 0.17578125-1.58203125 0.26367188-2.37304687 0.43945313-4.48242188 0.79101563 5.625-0.52734375 1.0546875-0.17578125-3.95507813 0.3515625-7.91015625 0.61523438-11.86523438 0.52734375-1.93359375 0-3.8671875-0.08789063-5.88867187-0.26367188-0.79101563-0.08789063-1.58203125-0.17578125-2.28515625-0.17578125-4.30664063-0.3515625 4.74609375 0.79101563 1.84570312 0.26367188-3.95507813-0.79101563-7.99804688-1.40625-11.86523437-2.54882813-3.515625-0.96679688-6.94335938-2.37304688-10.37109375-3.60351562-2.72460938-0.96679688 5.2734375 2.4609375 1.49414062 0.61523437-0.703125-0.3515625-1.40625-0.61523438-2.109375-0.96679687-2.109375-1.0546875-4.13085938-2.109375-6.24023437-3.25195313-3.07617188-1.7578125-6.06445313-3.69140625-8.96484375-5.71289062-0.96679688-0.703125-1.84570313-1.49414063-2.90039063-2.109375 0.26367188 0.17578125 4.30664063 3.515625 1.58203125 1.23046875-1.66992188-1.40625-3.42773438-2.8125-5.00976562-4.30664063-2.90039063-2.63671875-5.625-5.36132813-8.17382813-8.17382812-1.40625-1.49414063-2.72460938-3.07617188-4.04296875-4.65820313-0.52734375-0.61523438-0.96679688-1.40625-1.58203125-1.93359375 4.39453125 4.39453125 1.14257813 1.40625 0-0.08789062-4.921875-6.85546875-9.140625-14.0625-12.65625-21.70898438-4.921875-10.37109375-20.65429688-13.97460938-30.05859375-7.91015625-10.72265625 6.94335938-13.18359375 18.89648438-7.91015625 30.05859375 15.8203125 33.31054688 43.68164063 60.20507813 78.48632813 72.68554688 15.55664063 5.625 33.13476563 7.734375 49.5703125 5.80078125 9.58007813-1.14257813 18.984375-2.8125 28.125-6.15234375 9.66796875-3.515625 18.54492188-8.0859375 27.421875-13.0078125 6.85546875-3.77929688 14.23828125-8.52539063 21.70898437-10.8984375-0.08789063 0-5.44921875 2.19726563-2.28515625 0.96679688 0.79101563-0.3515625 1.58203125-0.61523438 2.4609375-0.96679688 1.40625-0.52734375 2.8125-1.0546875 4.30664063-1.58203125 2.90039063-0.96679688 5.88867188-1.84570313 8.96484375-2.54882813 1.40625-0.26367188 2.8125-0.43945313 4.21875-0.79101562-7.64648438 1.84570313-3.42773438 0.43945313-1.0546875 0.3515625 1.14257813-0.08789063 2.28515625-0.08789063 3.42773437 0 0.61523438 0 1.23046875 0.08789063 1.84570313 0.08789063 3.25195313 0.08789063-6.06445313-1.31835938-2.98828125-0.3515625 1.14257813 0.3515625 2.28515625 0.52734375 3.42773437 0.87890625 0.43945313 0.17578125 0.87890625 0.3515625 1.31835938 0.43945312 3.07617188 0.87890625-5.09765625-2.4609375-2.98828125-1.23046875 0.96679688 0.52734375 1.93359375 0.96679688 2.8125 1.49414063 0.52734375 0.3515625 0.96679688 0.703125 1.49414062 0.96679687 1.93359375 1.14257813-5.00976563-4.21875-2.109375-1.58203125 0.87890625 0.79101563 1.7578125 1.58203125 2.54882813 2.37304688 1.93359375 2.02148438 2.90039063 5.00976563-0.26367188-0.703125 1.49414063 2.63671875 3.42773438 5.00976563 4.83398438 7.73437499 0.79101563 1.49414063 1.40625 3.07617188 2.19726562 4.5703125-3.42773438-6.59179688-0.43945313-1.0546875 0.26367188 0.96679688 1.40625 3.95507813 2.63671875 8.0859375 3.77929687 12.12890625 5.09765625 18.10546875 12.83203125 36.12304688 23.90625 51.41601563 10.37109375 14.23828125 22.76367188 26.80664063 38.14453125 35.59570312 6.41601563 3.69140625 13.53515625 7.29492188 20.7421875 8.96484375 6.41601563 1.49414063 13.27148438 2.02148438 19.86328125 2.02148438 14.67773438 0.08789063 30.05859375-1.7578125 44.12109375-5.88867188 6.85546875-2.02148438 13.88671875-4.5703125 19.95117188-8.34960938 6.59179688-4.13085938 9.84375-8.4375 14.67773437-14.23828124-3.515625 4.21875-2.90039063 4.48242188-7.47070312 7.47070312-2.63671875 1.66992188-7.734375 3.1640625-10.98632813 2.98828125-1.84570313-0.52734375-3.69140625-0.96679688-5.53710937-1.49414063-5.88867188-0.61523438-10.37109375-3.69140625-13.359375-9.31640624-1.84570313-3.1640625-3.07617188-7.47070313-2.98828125-10.81054688 0-0.26367188 1.7578125-7.99804688 0.43945312-4.13085938-0.3515625 1.0546875-0.703125 2.109375-1.14257812 3.16406251-0.26367188 0.61523438-0.52734375 1.31835938-0.79101563 1.93359375-1.0546875 2.72460938 2.90039063-6.59179688 1.58203125-3.77929688-0.17578125 0.43945313-0.3515625 0.87890625-0.61523437 1.31835938-5.18554688 11.68945313-11.33789063 22.8515625-17.75390625 33.92578125-29.53125 51.15234375-64.59960938 99.140625-100.546875 145.81054687-0.703125 0.87890625-1.31835938 1.7578125-2.02148438 2.54882813-2.37304688 3.1640625 0 0 0.43945313-0.52734375-1.66992188 2.19726563-3.42773438 4.39453125-5.09765625 6.59179687-3.515625 4.5703125-7.11914063 9.05273438-10.63476563 13.53515625 7.11914063-1.84570313 14.23828125-3.77929688 21.35742188-5.625-36.82617188-6.50390625-73.125-15.46875-108.72070313-26.80664063-20.65429688-6.59179688-40.95703125-13.97460938-60.99609375-22.14843749-2.28515625-0.87890625-4.48242188-1.84570313-6.76757812-2.81250001-4.921875-2.02148438 3.1640625 1.40625 0.08789062 0l-3.69140625-1.58203125c-4.74609375-2.109375-9.58007813-4.21875-14.32617187-6.328125-8.61328125-3.8671875-17.13867188-7.99804688-25.6640625-12.12890624-17.49023438-8.61328125-34.62890625-17.9296875-51.41601563-27.77343751 3.60351563 6.328125 7.29492188 12.65625 10.8984375 18.98437501 3.77929688-28.828125 7.55859375-57.74414063 11.33789063-86.57226563l17.9296875-137.37304688c1.40625-10.45898438 2.72460938-21.00585938 4.13085937-31.46484374 0.703125-5.18554688-2.90039063-12.04101563-6.41601562-15.55664063-3.77929688-3.77929688-10.10742188-6.6796875-15.55664063-6.41601562-5.71289063 0.26367188-11.6015625 2.109375-15.55664062 6.41601562-4.04296875 4.65820313-5.44921875 9.4921875-6.24023438 15.64453125z" fill="#FFCB40" ></path><path d="M496.61914062 458.73828125c47.54882813 31.640625 101.07421875 54.75585938 156.70898438 67.58789063 11.16210938 2.54882813 24.34570313-3.42773438 27.0703125-15.38085938 2.54882813-11.25-3.33984375-24.2578125-15.38085938-27.0703125-13.18359375-3.07617188-26.27929688-6.6796875-39.19921874-10.8984375-6.41601563-2.109375-12.83203125-4.30664063-19.16015625-6.76757813-3.42773438-1.31835938-6.85546875-2.63671875-10.1953125-3.95507812-1.49414063-0.61523438-2.90039063-1.14257813-4.30664063-1.7578125-4.13085938-1.7578125 4.04296875 1.7578125-1.23046875-0.52734375-25.13671875-10.8984375-49.21875-24.08203125-72.0703125-39.28710938-9.58007813-6.41601563-24.69726563-2.19726563-30.05859375 7.91015625-5.88867188 11.07421875-2.37304688 23.29101563 7.82226563 30.14648438z" fill="#FFCB40" ></path><path d="M245.77929687 729.6171875v-72.50976563-115.04882812V515.515625c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703124 11.07421875 11.42578125 24.16992188 22.8515625 48.42773438 34.18945312 72.59765625 18.01757813 38.23242188 36.12304688 76.55273438 54.140625 114.78515625 4.21875 8.87695313 8.34960938 17.75390625 12.56835938 26.54296875 3.95507813 8.34960938 16.171875 12.91992188 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976563V541.8828125v-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421875-11.42578125-24.16992188-22.8515625-48.42773438-34.18945312-72.59765625-18.01757813-38.23242188-36.12304688-76.55273438-54.140625-114.78515625-4.21875-8.87695313-8.34960938-17.75390625-12.56835938-26.54296875-3.95507813-8.34960938-16.171875-12.91992188-24.78515624-10.10742188-9.22851563 2.98828125-16.171875 11.25-16.17187501 21.18164063v214.1015625c0 11.51367188 10.10742188 22.5 21.97265626 21.97265625 11.953125-0.52734375 21.97265625-9.66796875 21.97265624-21.97265625zM501.8046875 493.63085937H400.90625c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265626v211.55273437c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265625h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H400.90625l21.97265625 21.97265625v-71.27929688-114.16992187-26.10351563l-21.97265625 21.97265626h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265626-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265624z" fill="#4381FF" ></path><path d="M478.16210937 595.75976563c-25.75195313 0.17578125-51.50390625 0.43945313-77.25585937-1e-8-11.51367188-0.17578125-22.5 10.1953125-21.97265625 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.75195313 0.43945313 51.50390625 0.17578125 77.25585938 0 11.51367188-0.08789063 22.5-10.01953125 21.97265624-21.97265625-0.52734375-11.86523438-9.58007813-22.06054688-21.97265625-21.97265625zM553.57226563 515.60351563v214.10156249c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742187 18.72070313-31.20117188 37.44140625-62.40234375 56.25-93.69140626 2.63671875-4.48242188 5.36132813-8.87695313 7.99804687-13.359375h-37.96875c18.72070313 31.20117188 37.44140625 62.40234375 56.25 93.69140625 2.63671875 4.48242188 5.36132813 8.87695313 7.99804688 13.359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976562-115.04882813-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.10156251c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421876-18.72070313-31.20117188-37.44140625-62.40234375-56.25-93.69140624-2.63671875-4.48242188-5.36132813-8.87695313-7.99804687-13.359375-8.52539063-14.23828125-29.44335938-14.23828125-37.96875 0-18.72070313 31.20117188-37.44140625 62.40234375-56.25 93.69140625-2.63671875 4.48242188-5.36132813 8.87695313-7.99804688 13.359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703126 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#4381FF" ></path><path d="M225.30078125 709.49023438v-72.50976563-115.04882813-26.54296874c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703125 11.07421875 11.42578125 24.08203125 22.76367188 48.1640625 34.18945313 72.33398437 18.19335938 38.40820313 36.38671875 76.81640625 54.4921875 115.22460938 4.13085938 8.7890625 8.34960938 17.66601563 12.48046875 26.45507812 3.95507813 8.34960938 16.171875 12.91992188 24.78515625 10.10742187 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164062v-72.50976563-115.04882812V495.30078125c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-11.42578125-24.08203125-22.76367188-48.1640625-34.18945313-72.33398438-18.19335938-38.40820313-36.38671875-76.81640625-54.4921875-115.22460937-4.13085938-8.7890625-8.34960938-17.66601563-12.48046875-26.45507813-3.95507813-8.34960938-16.171875-12.91992188-24.78515625-10.10742187-9.22851563 2.98828125-16.171875 11.25-16.171875 21.18164063v214.10156249c0 11.51367188 10.10742188 22.5 21.97265625 21.97265626 11.86523438-0.52734375 21.97265625-9.66796875 21.97265625-21.97265625zM482.29296875 473.50390625H381.04296875c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265625v211.55273438c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265624h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H381.04296875l21.97265625 21.97265625v-71.27929687-114.16992188-26.10351562l-21.97265625 21.97265625h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625z" fill="#FF642E" ></path><path d="M458.5625 575.6328125c-25.83984375 0.17578125-51.76757813 0.43945313-77.60742188 0-11.51367188-0.17578125-22.5 10.1953125-21.97265624 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.83984375 0.43945313 51.76757813 0.17578125 77.60742187 0 11.51367188-0.08789063 22.5-10.01953125 21.97265625-21.97265625-0.52734375-11.86523438-9.58007813-21.97265625-21.97265625-21.97265625zM534.32421875 495.4765625v214.1015625c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742188 18.80859375-31.2890625 37.6171875-62.49023438 56.51367188-93.77929688 2.63671875-4.39453125 5.2734375-8.7890625 7.99804687-13.18359374h-37.96875c18.80859375 31.2890625 37.6171875 62.49023438 56.51367188 93.77929687 2.63671875 4.39453125 5.2734375 8.7890625 7.99804687 13.18359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515625 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164063v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-18.80859375-31.2890625-37.6171875-62.49023438-56.51367188-93.77929688-2.63671875-4.39453125-5.2734375-8.7890625-7.99804687-13.18359374-8.52539063-14.23828125-29.35546875-14.23828125-37.96875 0-18.80859375 31.2890625-37.6171875 62.49023438-56.51367188 93.77929687-2.63671875 4.39453125-5.2734375 8.7890625-7.99804687 13.18359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703125 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#FF642E" ></path><path d="M629.0703125 793.77734375h74.8828125" fill="#FFFFFF" ></path><path d="M629.0703125 815.75h74.97070313c11.51367188 0 22.5-10.10742188 21.97265624-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625h-74.97070312c-11.51367188 0-22.5 10.10742188-21.97265625 21.97265625 0.52734375 11.86523438 9.66796875 21.97265625 21.97265625 21.97265625z" fill="#FFCB40" ></path><path d="M552.16601563 793.77734375h5.71289062" fill="#FFFFFF" ></path><path d="M552.16601563 815.75h5.71289062c2.98828125 0.08789063 5.88867188-0.52734375 8.4375-1.93359375 2.72460938-0.87890625 5.09765625-2.37304688 7.03125-4.5703125 2.109375-2.02148438 3.69140625-4.30664063 4.5703125-7.03125 1.40625-2.63671875 2.02148438-5.44921875 1.93359375-8.4375l-0.79101562-5.80078125c-1.0546875-3.69140625-2.90039063-6.94335938-5.625-9.66796875-4.30664063-3.95507813-9.58007813-6.41601563-15.55664063-6.41601563h-5.71289062c-2.98828125-0.08789063-5.88867188 0.52734375-8.4375 1.93359376-2.72460938 0.87890625-5.09765625 2.37304688-7.03125 4.5703125-2.109375 2.02148438-3.69140625 4.30664063-4.5703125 7.03125-1.40625 2.63671875-2.02148438 5.44921875-1.93359375 8.43749999l0.79101562 5.80078126c1.0546875 3.69140625 2.90039063 6.94335938 5.625 9.66796874 4.30664063 3.95507813 9.58007813 6.41601563 15.55664063 6.41601563z" fill="#FFCB40" ></path></symbol></svg>',function($){var oe=(oe=document.getElementsByTagName("script"))[oe.length-1],z=oe.getAttribute("data-injectcss"),oe=oe.getAttribute("data-disable-injectsvg");if(!oe){var ae,ie,le,pe,_e,Ce=function(Ie,Ne){Ne.parentNode.insertBefore(Ie,Ne)};if(z&&!$.__iconfont__svg__cssinject__){$.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(Ie){console&&console.log(Ie)}}ae=function(){var Ie,Ne=document.createElement("div");Ne.innerHTML=$._iconfont_svg_string_2208059,(Ne=Ne.getElementsByTagName("svg")[0])&&(Ne.setAttribute("aria-hidden","true"),Ne.style.position="absolute",Ne.style.width=0,Ne.style.height=0,Ne.style.overflow="hidden",Ne=Ne,(Ie=document.body).firstChild?Ce(Ne,Ie.firstChild):Ie.appendChild(Ne))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ae,0):(ie=function(){document.removeEventListener("DOMContentLoaded",ie,!1),ae()},document.addEventListener("DOMContentLoaded",ie,!1)):document.attachEvent&&(le=ae,pe=$.document,_e=!1,xe(),pe.onreadystatechange=function(){pe.readyState=="complete"&&(pe.onreadystatechange=null,$e())})}function $e(){_e||(_e=!0,le())}function xe(){try{pe.documentElement.doScroll("left")}catch{return void setTimeout(xe,50)}$e()}}(window);const iconfont="",auth$1={mounted($,z){var ae;const{value:oe}=z;if(oe)!hasAuth(oe)&&((ae=$.parentNode)==null||ae.removeChild($));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtils={exports:{}},utils$3=collectionUtils.exports={};utils$3.forEach=function($,z){for(var oe=0;oe<$.length;oe++){var ae=z($[oe]);if(ae)return ae}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function($){var z=$.stateHandler.getState;function oe(pe){var _e=z(pe);return _e&&!!_e.isDetectable}function ae(pe){z(pe).isDetectable=!0}function ie(pe){return!!z(pe).busy}function le(pe,_e){z(pe).busy=!!_e}return{isDetectable:oe,markAsDetectable:ae,isBusy:ie,markBusy:le}},listenerHandler=function($){var z={};function oe(pe){var _e=$.get(pe);return _e===void 0?[]:z[_e]||[]}function ae(pe,_e){var Ce=$.get(pe);z[Ce]||(z[Ce]=[]),z[Ce].push(_e)}function ie(pe,_e){for(var Ce=oe(pe),$e=0,xe=Ce.length;$e<xe;++$e)if(Ce[$e]===_e){Ce.splice($e,1);break}}function le(pe){var _e=oe(pe);_e&&(_e.length=0)}return{get:oe,add:ae,removeListener:ie,removeAllListeners:le}},idGenerator=function(){var $=1;function z(){return $++}return{generate:z}},idHandler=function($){var z=$.idGenerator,oe=$.stateHandler.getState;function ae(le){var pe=oe(le);return pe&&pe.id!==void 0?pe.id:null}function ie(le){var pe=oe(le);if(!pe)throw new Error("setId required the element to have a resize detection state.");var _e=z.generate();return pe.id=_e,_e}return{get:ae,set:ie}},reporter=function($){function z(){}var oe={log:z,warn:z,error:z};if(!$&&window.console){var ae=function(ie,le){ie[le]=function(){var _e=console[le];if(_e.apply)_e.apply(console,arguments);else for(var Ce=0;Ce<arguments.length;Ce++)_e(arguments[Ce])}};ae(oe,"log"),ae(oe,"warn"),ae(oe,"error")}return oe},browserDetector$2={exports:{}},detector=browserDetector$2.exports={};detector.isIE=function($){function z(){var ae=navigator.userAgent.toLowerCase();return ae.indexOf("msie")!==-1||ae.indexOf("trident")!==-1||ae.indexOf(" edge/")!==-1}if(!z())return!1;if(!$)return!0;var oe=function(){var ae,ie=3,le=document.createElement("div"),pe=le.getElementsByTagName("i");do le.innerHTML="<!--[if gt IE "+ ++ie+"]><i></i><![endif]-->";while(pe[0]);return ie>4?ie:ae}();return $===oe};detector.isLegacyOpera=function(){return!!window.opera};var browserDetectorExports=browserDetector$2.exports,utils$2={exports:{}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1($,z,oe){var ae=$[z];return ae==null&&oe!==void 0?oe:ae}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(z){z=z||{};var oe=z.reporter,ae=utils.getOption(z,"async",!0),ie=utils.getOption(z,"auto",!0);ie&&!ae&&(oe&&oe.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),ae=!0);var le=Batch(),pe,_e=!1;function Ce(ze,At){!_e&&ie&&ae&&le.size()===0&&Ie(),le.add(ze,At)}function $e(){for(_e=!0;le.size();){var ze=le;le=Batch(),ze.process()}_e=!1}function xe(ze){_e||(ze===void 0&&(ze=ae),pe&&(Ne(pe),pe=null),ze?Ie():$e())}function Ie(){pe=Fe($e)}function Ne(ze){var At=clearTimeout;return At(ze)}function Fe(ze){var At=function(Lt){return setTimeout(Lt,0)};return At(ze)}return{add:Ce,force:xe}};function Batch(){var $={},z=0,oe=0,ae=0;function ie(_e,Ce){Ce||(Ce=_e,_e=0),_e>oe?oe=_e:_e<ae&&(ae=_e),$[_e]||($[_e]=[]),$[_e].push(Ce),z++}function le(){for(var _e=ae;_e<=oe;_e++)for(var Ce=$[_e],$e=0;$e<Ce.length;$e++){var xe=Ce[$e];xe()}}function pe(){return z}return{add:ie,process:le,size:pe}}var prop="_erd";function initState($){return $[prop]={},getState($)}function getState($){return $[prop]}function cleanState($){delete $[prop]}var stateHandler$1={initState,getState,cleanState},browserDetector$1=browserDetectorExports,object=function($){$=$||{};var z=$.reporter,oe=$.batchProcessor,ae=$.stateHandler.getState;if(!z)throw new Error("Missing required dependency: reporter.");function ie($e,xe){function Ie(){xe($e)}if(browserDetector$1.isIE(8))ae($e).object={proxy:Ie},$e.attachEvent("onresize",Ie);else{var Ne=_e($e);if(!Ne)throw new Error("Element is not detectable by this strategy.");Ne.contentDocument.defaultView.addEventListener("resize",Ie)}}function le($e){var xe=$.important?" !important; ":"; ";return($e.join(xe)+xe).trim()}function pe($e,xe,Ie){Ie||(Ie=xe,xe=$e,$e=null),$e=$e||{},$e.debug;function Ne(Fe,ze){var At=le(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),Lt=!1,hn=window.getComputedStyle(Fe),vn=Fe.offsetWidth,_n=Fe.offsetHeight;ae(Fe).startSize={width:vn,height:_n};function bn(){function Cn(){if(hn.position==="static"){Fe.style.setProperty("position","relative",$e.important?"important":"");var wn=function(Tn,xn,kn,An){function On(Fn){return Fn.replace(/[^-\d\.]/g,"")}var Mn=kn[An];Mn!=="auto"&&On(Mn)!=="0"&&(Tn.warn("An element that is positioned static has style."+An+"="+Mn+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+An+" will be set to 0. Element: ",xn),xn.style.setProperty(An,"0",$e.important?"important":""))};wn(z,Fe,hn,"top"),wn(z,Fe,hn,"right"),wn(z,Fe,hn,"bottom"),wn(z,Fe,hn,"left")}}function En(){Lt||Cn();function wn(xn,kn){if(!xn.contentDocument){var An=ae(xn);An.checkForObjectDocumentTimeoutId&&window.clearTimeout(An.checkForObjectDocumentTimeoutId),An.checkForObjectDocumentTimeoutId=setTimeout(function(){An.checkForObjectDocumentTimeoutId=0,wn(xn,kn)},100);return}kn(xn.contentDocument)}var Tn=this;wn(Tn,function(kn){ze(Fe)})}hn.position!==""&&(Cn(),Lt=!0);var $n=document.createElement("object");$n.style.cssText=At,$n.tabIndex=-1,$n.type="text/html",$n.setAttribute("aria-hidden","true"),$n.onload=En,browserDetector$1.isIE()||($n.data="about:blank"),ae(Fe)&&(Fe.appendChild($n),ae(Fe).object=$n,browserDetector$1.isIE()&&($n.data="about:blank"))}oe?oe.add(bn):bn()}browserDetector$1.isIE(8)?Ie(xe):Ne(xe,Ie)}function _e($e){return ae($e).object}function Ce($e){if(ae($e)){var xe=_e($e);xe&&(browserDetector$1.isIE(8)?$e.detachEvent("onresize",xe.proxy):$e.removeChild(xe),ae($e).checkForObjectDocumentTimeoutId&&window.clearTimeout(ae($e).checkForObjectDocumentTimeoutId),delete ae($e).object)}}return{makeDetectable:pe,addListener:ie,uninstall:Ce}},forEach$1=collectionUtilsExports.forEach,scroll=function($){$=$||{};var z=$.reporter,oe=$.batchProcessor,ae=$.stateHandler.getState;$.stateHandler.hasState;var ie=$.idHandler;if(!oe)throw new Error("Missing required dependency: batchProcessor");if(!z)throw new Error("Missing required dependency: reporter.");var le=xe(),pe="erd_scroll_detection_scrollbar_style",_e="erd_scroll_detection_container";function Ce(bn){Ie(bn,pe,_e)}Ce(window.document);function $e(bn){var Cn=$.important?" !important; ":"; ";return(bn.join(Cn)+Cn).trim()}function xe(){var bn=500,Cn=500,En=document.createElement("div");En.style.cssText=$e(["position: absolute","width: "+bn*2+"px","height: "+Cn*2+"px","visibility: hidden","margin: 0","padding: 0"]);var $n=document.createElement("div");$n.style.cssText=$e(["position: absolute","width: "+bn+"px","height: "+Cn+"px","overflow: scroll","visibility: none","top: "+-bn*3+"px","left: "+-Cn*3+"px","visibility: hidden","margin: 0","padding: 0"]),$n.appendChild(En),document.body.insertBefore($n,document.body.firstChild);var wn=bn-$n.clientWidth,Tn=Cn-$n.clientHeight;return document.body.removeChild($n),{width:wn,height:Tn}}function Ie(bn,Cn,En){function $n(kn,An){An=An||function(Mn){bn.head.appendChild(Mn)};var On=bn.createElement("style");return On.innerHTML=kn,On.id=Cn,An(On),On}if(!bn.getElementById(Cn)){var wn=En+"_animation",Tn=En+"_animation_active",xn=`/* Created by the element-resize-detector library. */
|
||
`;xn+="."+En+" > div::-webkit-scrollbar { "+$e(["display: none"])+` }
|
||
|
||
`,xn+="."+Tn+" { "+$e(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+wn,"animation-name: "+wn])+` }
|
||
`,xn+="@-webkit-keyframes "+wn+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
|
||
`,xn+="@keyframes "+wn+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",$n(xn)}}function Ne(bn){bn.className+=" "+_e+"_animation_active"}function Fe(bn,Cn,En){if(bn.addEventListener)bn.addEventListener(Cn,En);else if(bn.attachEvent)bn.attachEvent("on"+Cn,En);else return z.error("[scroll] Don't know how to add event listeners.")}function ze(bn,Cn,En){if(bn.removeEventListener)bn.removeEventListener(Cn,En);else if(bn.detachEvent)bn.detachEvent("on"+Cn,En);else return z.error("[scroll] Don't know how to remove event listeners.")}function At(bn){return ae(bn).container.childNodes[0].childNodes[0].childNodes[0]}function Lt(bn){return ae(bn).container.childNodes[0].childNodes[0].childNodes[1]}function hn(bn,Cn){var En=ae(bn).listeners;if(!En.push)throw new Error("Cannot add listener to an element that is not detectable.");ae(bn).listeners.push(Cn)}function vn(bn,Cn,En){En||(En=Cn,Cn=bn,bn=null),bn=bn||{};function $n(){if(bn.debug){var Wn=Array.prototype.slice.call(arguments);if(Wn.unshift(ie.get(Cn),"Scroll: "),z.log.apply)z.log.apply(null,Wn);else for(var tr=0;tr<Wn.length;tr++)z.log(Wn[tr])}}function wn(Wn){function tr(pr){var Gn=pr.getRootNode&&pr.getRootNode().contains(pr);return pr===pr.ownerDocument.body||pr.ownerDocument.body.contains(pr)||Gn}return!tr(Wn)||window.getComputedStyle(Wn)===null}function Tn(Wn){var tr=ae(Wn).container.childNodes[0],pr=window.getComputedStyle(tr);return!pr.width||pr.width.indexOf("px")===-1}function xn(){var Wn=window.getComputedStyle(Cn),tr={};return tr.position=Wn.position,tr.width=Cn.offsetWidth,tr.height=Cn.offsetHeight,tr.top=Wn.top,tr.right=Wn.right,tr.bottom=Wn.bottom,tr.left=Wn.left,tr.widthCSS=Wn.width,tr.heightCSS=Wn.height,tr}function kn(){var Wn=xn();ae(Cn).startSize={width:Wn.width,height:Wn.height},$n("Element start size",ae(Cn).startSize)}function An(){ae(Cn).listeners=[]}function On(){if($n("storeStyle invoked."),!ae(Cn)){$n("Aborting because element has been uninstalled");return}var Wn=xn();ae(Cn).style=Wn}function Mn(Wn,tr,pr){ae(Wn).lastWidth=tr,ae(Wn).lastHeight=pr}function Fn(Wn){return At(Wn).childNodes[0]}function Dn(){return 2*le.width+1}function Nn(){return 2*le.height+1}function Vn(Wn){return Wn+10+Dn()}function Bn(Wn){return Wn+10+Nn()}function zn(Wn){return Wn*2+Dn()}function Xn(Wn){return Wn*2+Nn()}function Un(Wn,tr,pr){var Gn=At(Wn),Zn=Lt(Wn),rr=Vn(tr),mr=Bn(pr),Sr=zn(tr),ar=Xn(pr);Gn.scrollLeft=rr,Gn.scrollTop=mr,Zn.scrollLeft=Sr,Zn.scrollTop=ar}function Jn(){var Wn=ae(Cn).container;if(!Wn){Wn=document.createElement("div"),Wn.className=_e,Wn.style.cssText=$e(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),ae(Cn).container=Wn,Ne(Wn),Cn.appendChild(Wn);var tr=function(){ae(Cn).onRendered&&ae(Cn).onRendered()};Fe(Wn,"animationstart",tr),ae(Cn).onAnimationStart=tr}return Wn}function lr(){function Wn(){var Mr=ae(Cn).style;if(Mr.position==="static"){Cn.style.setProperty("position","relative",bn.important?"important":"");var Er=function($r,ur,er,or){function Tr(zr){return zr.replace(/[^-\d\.]/g,"")}var Or=er[or];Or!=="auto"&&Tr(Or)!=="0"&&($r.warn("An element that is positioned static has style."+or+"="+Or+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+or+" will be set to 0. Element: ",ur),ur.style[or]=0)};Er(z,Cn,Mr,"top"),Er(z,Cn,Mr,"right"),Er(z,Cn,Mr,"bottom"),Er(z,Cn,Mr,"left")}}function tr(Mr,Er,$r,ur){return Mr=Mr?Mr+"px":"0",Er=Er?Er+"px":"0",$r=$r?$r+"px":"0",ur=ur?ur+"px":"0",["left: "+Mr,"top: "+Er,"right: "+ur,"bottom: "+$r]}if($n("Injecting elements"),!ae(Cn)){$n("Aborting because element has been uninstalled");return}Wn();var pr=ae(Cn).container;pr||(pr=Jn());var Gn=le.width,Zn=le.height,rr=$e(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),mr=$e(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(tr(-(1+Gn),-(1+Zn),-Zn,-Gn))),Sr=$e(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),ar=$e(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),xr=$e(["position: absolute","left: 0","top: 0"]),gr=$e(["position: absolute","width: 200%","height: 200%"]),Pr=document.createElement("div"),dr=document.createElement("div"),sr=document.createElement("div"),cr=document.createElement("div"),hr=document.createElement("div"),Ar=document.createElement("div");Pr.dir="ltr",Pr.style.cssText=rr,Pr.className=_e,dr.className=_e,dr.style.cssText=mr,sr.style.cssText=Sr,cr.style.cssText=xr,hr.style.cssText=ar,Ar.style.cssText=gr,sr.appendChild(cr),hr.appendChild(Ar),dr.appendChild(sr),dr.appendChild(hr),Pr.appendChild(dr),pr.appendChild(Pr);function Dr(){var Mr=ae(Cn);Mr&&Mr.onExpand?Mr.onExpand():$n("Aborting expand scroll handler: element has been uninstalled")}function Lr(){var Mr=ae(Cn);Mr&&Mr.onShrink?Mr.onShrink():$n("Aborting shrink scroll handler: element has been uninstalled")}Fe(sr,"scroll",Dr),Fe(hr,"scroll",Lr),ae(Cn).onExpandScroll=Dr,ae(Cn).onShrinkScroll=Lr}function _r(){function Wn(Sr,ar,xr){var gr=Fn(Sr),Pr=Vn(ar),dr=Bn(xr);gr.style.setProperty("width",Pr+"px",bn.important?"important":""),gr.style.setProperty("height",dr+"px",bn.important?"important":"")}function tr(Sr){var ar=Cn.offsetWidth,xr=Cn.offsetHeight,gr=ar!==ae(Cn).lastWidth||xr!==ae(Cn).lastHeight;$n("Storing current size",ar,xr),Mn(Cn,ar,xr),oe.add(0,function(){if(gr){if(!ae(Cn)){$n("Aborting because element has been uninstalled");return}if(!pr()){$n("Aborting because element container has not been initialized");return}if(bn.debug){var dr=Cn.offsetWidth,sr=Cn.offsetHeight;(dr!==ar||sr!==xr)&&z.warn(ie.get(Cn),"Scroll: Size changed before updating detector elements.")}Wn(Cn,ar,xr)}}),oe.add(1,function(){if(!ae(Cn)){$n("Aborting because element has been uninstalled");return}if(!pr()){$n("Aborting because element container has not been initialized");return}Un(Cn,ar,xr)}),gr&&Sr&&oe.add(2,function(){if(!ae(Cn)){$n("Aborting because element has been uninstalled");return}if(!pr()){$n("Aborting because element container has not been initialized");return}Sr()})}function pr(){return!!ae(Cn).container}function Gn(){function Sr(){return ae(Cn).lastNotifiedWidth===void 0}$n("notifyListenersIfNeeded invoked");var ar=ae(Cn);if(Sr()&&ar.lastWidth===ar.startSize.width&&ar.lastHeight===ar.startSize.height)return $n("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(ar.lastWidth===ar.lastNotifiedWidth&&ar.lastHeight===ar.lastNotifiedHeight)return $n("Not notifying: Size already notified");$n("Current size not notified, notifying..."),ar.lastNotifiedWidth=ar.lastWidth,ar.lastNotifiedHeight=ar.lastHeight,forEach$1(ae(Cn).listeners,function(xr){xr(Cn)})}function Zn(){if($n("startanimation triggered."),Tn(Cn)){$n("Ignoring since element is still unrendered...");return}$n("Element rendered.");var Sr=At(Cn),ar=Lt(Cn);(Sr.scrollLeft===0||Sr.scrollTop===0||ar.scrollLeft===0||ar.scrollTop===0)&&($n("Scrollbars out of sync. Updating detector elements..."),tr(Gn))}function rr(){if($n("Scroll detected."),Tn(Cn)){$n("Scroll event fired while unrendered. Ignoring...");return}tr(Gn)}if($n("registerListenersAndPositionElements invoked."),!ae(Cn)){$n("Aborting because element has been uninstalled");return}ae(Cn).onRendered=Zn,ae(Cn).onExpand=rr,ae(Cn).onShrink=rr;var mr=ae(Cn).style;Wn(Cn,mr.width,mr.height)}function ir(){if($n("finalizeDomMutation invoked."),!ae(Cn)){$n("Aborting because element has been uninstalled");return}var Wn=ae(Cn).style;Mn(Cn,Wn.width,Wn.height),Un(Cn,Wn.width,Wn.height)}function qn(){En(Cn)}function Yn(){$n("Installing..."),An(),kn(),oe.add(0,On),oe.add(1,lr),oe.add(2,_r),oe.add(3,ir),oe.add(4,qn)}$n("Making detectable..."),wn(Cn)?($n("Element is detached"),Jn(),$n("Waiting until element is attached..."),ae(Cn).onRendered=function(){$n("Element is now attached"),Yn()}):Yn()}function _n(bn){var Cn=ae(bn);Cn&&(Cn.onExpandScroll&&ze(At(bn),"scroll",Cn.onExpandScroll),Cn.onShrinkScroll&&ze(Lt(bn),"scroll",Cn.onShrinkScroll),Cn.onAnimationStart&&ze(Cn.container,"animationstart",Cn.onAnimationStart),Cn.container&&bn.removeChild(Cn.container))}return{makeDetectable:vn,addListener:hn,uninstall:_n,initDocument:Ce}},forEach=collectionUtilsExports.forEach,elementUtilsMaker=elementUtils,listenerHandlerMaker=listenerHandler,idGeneratorMaker=idGenerator,idHandlerMaker=idHandler,reporterMaker=reporter,browserDetector=browserDetectorExports,batchProcessorMaker=batchProcessor,stateHandler=stateHandler$1,objectStrategyMaker=object,scrollStrategyMaker=scroll;function isCollection($){return Array.isArray($)||$.length!==void 0}function toArray($){if(Array.isArray($))return $;var z=[];return forEach($,function(oe){z.push(oe)}),z}function isElement($){return $&&$.nodeType===1}var elementResizeDetector=function($){$=$||{};var z;if($.idHandler)z={get:function(vn){return $.idHandler.get(vn,!0)},set:$.idHandler.set};else{var oe=idGeneratorMaker(),ae=idHandlerMaker({idGenerator:oe,stateHandler});z=ae}var ie=$.reporter;if(!ie){var le=ie===!1;ie=reporterMaker(le)}var pe=getOption($,"batchProcessor",batchProcessorMaker({reporter:ie})),_e={};_e.callOnAdd=!!getOption($,"callOnAdd",!0),_e.debug=!!getOption($,"debug",!1);var Ce=listenerHandlerMaker(z),$e=elementUtilsMaker({stateHandler}),xe,Ie=getOption($,"strategy","object"),Ne=getOption($,"important",!1),Fe={reporter:ie,batchProcessor:pe,stateHandler,idHandler:z,important:Ne};if(Ie==="scroll"&&(browserDetector.isLegacyOpera()?(ie.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),Ie="object"):browserDetector.isIE(9)&&(ie.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),Ie="object")),Ie==="scroll")xe=scrollStrategyMaker(Fe);else if(Ie==="object")xe=objectStrategyMaker(Fe);else throw new Error("Invalid strategy name: "+Ie);var ze={};function At(vn,_n,bn){function Cn(kn){var An=Ce.get(kn);forEach(An,function(Mn){Mn(kn)})}function En(kn,An,On){Ce.add(An,On),kn&&On(An)}if(bn||(bn=_n,_n=vn,vn={}),!_n)throw new Error("At least one element required.");if(!bn)throw new Error("Listener required.");if(isElement(_n))_n=[_n];else if(isCollection(_n))_n=toArray(_n);else return ie.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var $n=0,wn=getOption(vn,"callOnAdd",_e.callOnAdd),Tn=getOption(vn,"onReady",function(){}),xn=getOption(vn,"debug",_e.debug);forEach(_n,function(An){stateHandler.getState(An)||(stateHandler.initState(An),z.set(An));var On=z.get(An);if(xn&&ie.log("Attaching listener to element",On,An),!$e.isDetectable(An)){if(xn&&ie.log(On,"Not detectable."),$e.isBusy(An)){xn&&ie.log(On,"System busy making it detectable"),En(wn,An,bn),ze[On]=ze[On]||[],ze[On].push(function(){$n++,$n===_n.length&&Tn()});return}return xn&&ie.log(On,"Making detectable..."),$e.markBusy(An,!0),xe.makeDetectable({debug:xn,important:Ne},An,function(Fn){if(xn&&ie.log(On,"onElementDetectable"),stateHandler.getState(Fn)){$e.markAsDetectable(Fn),$e.markBusy(Fn,!1),xe.addListener(Fn,Cn),En(wn,Fn,bn);var Dn=stateHandler.getState(Fn);if(Dn&&Dn.startSize){var Nn=Fn.offsetWidth,Vn=Fn.offsetHeight;(Dn.startSize.width!==Nn||Dn.startSize.height!==Vn)&&Cn(Fn)}ze[On]&&forEach(ze[On],function(Bn){Bn()})}else xn&&ie.log(On,"Element uninstalled before being detectable.");delete ze[On],$n++,$n===_n.length&&Tn()})}xn&&ie.log(On,"Already detecable, adding listener."),En(wn,An,bn),$n++}),$n===_n.length&&Tn()}function Lt(vn){if(!vn)return ie.error("At least one element is required.");if(isElement(vn))vn=[vn];else if(isCollection(vn))vn=toArray(vn);else return ie.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(vn,function(_n){Ce.removeAllListeners(_n),xe.uninstall(_n),stateHandler.cleanState(_n)})}function hn(vn){xe.initDocument&&xe.initDocument(vn)}return{listenTo:At,removeListener:Ce.removeListener,removeAllListeners:Ce.removeAllListeners,uninstall:Lt,initDocument:hn}};function getOption($,z,oe){var ae=$[z];return ae==null&&oe!==void 0?oe:ae}const elementResizeDetectorMaker=getDefaultExportFromCjs(elementResizeDetector);function mitt($){return{all:$=$||new Map,on:function(z,oe){var ae=$.get(z);ae?ae.push(oe):$.set(z,[oe])},off:function(z,oe){var ae=$.get(z);ae&&(oe?ae.splice(ae.indexOf(oe)>>>0,1):$.set(z,[]))},emit:function(z,oe){var ae=$.get(z);ae&&ae.slice().map(function(ie){ie(oe)}),(ae=$.get("*"))&&ae.slice().map(function(ie){ie(z,oe)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted($,z,oe){erd.listenTo($,ae=>{const ie=ae.offsetWidth,le=ae.offsetHeight;z!=null&&z.instance?emitter.emit("resize",{detail:{width:ie,height:le}}):oe.el.dispatchEvent(new CustomEvent("resize",{detail:{width:ie,height:le}}))})},unmounted($){erd.uninstall($)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},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($,z){const oe={...$};for(const ae in z){const ie=z[ae],le=typeof ie;ae in defaultIconSizeCustomisations$1?(ie===null||ie&&(le==="string"||le==="number"))&&(oe[ae]=ie):le===typeof oe[ae]&&(oe[ae]=ae==="rotate"?ie%4:ie)}return oe}const separator$1=/[\s,]+/;function flipFromString$1($,z){z.split(separator$1).forEach(oe=>{switch(oe.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString$1($,z=0){const oe=$.replace(/^-?[0-9.]*/,"");function ae(ie){for(;ie<0;)ie+=4;return ie%4}if(oe===""){const ie=parseInt($);return isNaN(ie)?0:ae(ie)}else if(oe!==$){let ie=0;switch(oe){case"%":ie=25;break;case"deg":ie=90}if(ie){let le=parseFloat($.slice(0,$.length-oe.length));return isNaN(le)?0:(le=le/ie,le%1===0?ae(le):0)}}return z}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1($,z,oe){if(z===1)return $;if(oe=oe||100,typeof $=="number")return Math.ceil($*z*oe)/oe;if(typeof $!="string")return $;const ae=$.split(unitsSplit$1);if(ae===null||!ae.length)return $;const ie=[];let le=ae.shift(),pe=unitsTest$1.test(le);for(;;){if(pe){const _e=parseFloat(le);isNaN(_e)?ie.push(le):ie.push(Math.ceil(_e*z*oe)/oe)}else ie.push(le);if(le=ae.shift(),le===void 0)return ie.join("");pe=!pe}}const isUnsetKeyword$1=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG$1($,z){const oe={...defaultIconProps$1,...$},ae={...defaultIconCustomisations$1,...z},ie={left:oe.left,top:oe.top,width:oe.width,height:oe.height};let le=oe.body;[oe,ae].forEach(ze=>{const At=[],Lt=ze.hFlip,hn=ze.vFlip;let vn=ze.rotate;Lt?hn?vn+=2:(At.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),At.push("scale(-1 1)"),ie.top=ie.left=0):hn&&(At.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),At.push("scale(1 -1)"),ie.top=ie.left=0);let _n;switch(vn<0&&(vn-=Math.floor(vn/4)*4),vn=vn%4,vn){case 1:_n=ie.height/2+ie.top,At.unshift("rotate(90 "+_n.toString()+" "+_n.toString()+")");break;case 2:At.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:_n=ie.width/2+ie.left,At.unshift("rotate(-90 "+_n.toString()+" "+_n.toString()+")");break}vn%2===1&&(ie.left!==ie.top&&(_n=ie.left,ie.left=ie.top,ie.top=_n),ie.width!==ie.height&&(_n=ie.width,ie.width=ie.height,ie.height=_n)),At.length&&(le='<g transform="'+At.join(" ")+'">'+le+"</g>")});const pe=ae.width,_e=ae.height,Ce=ie.width,$e=ie.height;let xe,Ie;pe===null?(Ie=_e===null?"1em":_e==="auto"?$e:_e,xe=calculateSize$1(Ie,Ce/$e)):(xe=pe==="auto"?Ce:pe,Ie=_e===null?calculateSize$1(xe,$e/Ce):_e==="auto"?$e:_e);const Ne={},Fe=(ze,At)=>{isUnsetKeyword$1(At)||(Ne[ze]=At.toString())};return Fe("width",xe),Fe("height",Ie),Ne.viewBox=ie.left.toString()+" "+ie.top.toString()+" "+Ce.toString()+" "+$e.toString(),{attributes:Ne,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($,z=randomPrefix$1){const oe=[];let ae;for(;ae=regex$1.exec($);)oe.push(ae[1]);if(!oe.length)return $;const ie="suffix"+(Math.random()*16777216|Date.now()).toString(16);return oe.forEach(le=>{const pe=typeof z=="function"?z(le):z+(counter$1++).toString(),_e=le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+_e+')([")]|\\.[a-z])',"g"),"$1"+pe+ie+"$3")}),$=$.replace(new RegExp(ie,"g"),""),$}function iconToHTML$1($,z){let oe=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ae in z)oe+=" "+ae+'="'+z[ae]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+oe+">"+$+"</svg>"}function encodeSVGforURL$1($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData$1($){return"data:image/svg+xml,"+encodeSVGforURL$1($)}function svgToURL$1($){return'url("'+svgToData$1($)+'")'}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 $ in propsToAddTo$1){const z=propsToAddTo$1[$];for(const oe in propsToAdd$1)z[$+oe]=propsToAdd$1[oe]}const customisationAliases$1={};["horizontal","vertical"].forEach($=>{const z=$.slice(0,1)+"Flip";customisationAliases$1[$+"-flip"]=z,customisationAliases$1[$.slice(0,1)+"-flip"]=z,customisationAliases$1[$+"Flip"]=z});function fixSize$1($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render$1=($,z)=>{const oe=mergeCustomisations$1(defaultExtendedIconCustomisations$1,z),ae={...svgDefaults$1},ie=z.mode||"svg",le={},pe=z.style,_e=typeof pe=="object"&&!(pe instanceof Array)?pe:{};for(let At in z){const Lt=z[At];if(Lt!==void 0)switch(At){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[At]=Lt===!0||Lt==="true"||Lt===1;break;case"flip":typeof Lt=="string"&&flipFromString$1(oe,Lt);break;case"color":le.color=Lt;break;case"rotate":typeof Lt=="string"?oe[At]=rotateFromString$1(Lt):typeof Lt=="number"&&(oe[At]=Lt);break;case"ariaHidden":case"aria-hidden":Lt!==!0&&Lt!=="true"&&delete ae["aria-hidden"];break;default:{const hn=customisationAliases$1[At];hn?(Lt===!0||Lt==="true"||Lt===1)&&(oe[hn]=!0):defaultExtendedIconCustomisations$1[At]===void 0&&(ae[At]=Lt)}}}const Ce=iconToSVG$1($,oe),$e=Ce.attributes;if(oe.inline&&(le.verticalAlign="-0.125em"),ie==="svg"){ae.style={...le,..._e},Object.assign(ae,$e);let At=0,Lt=z.id;return typeof Lt=="string"&&(Lt=Lt.replace(/-/g,"_")),ae.innerHTML=replaceIDs$1(Ce.body,Lt?()=>Lt+"ID"+At++:"iconifyVue"),h$3("svg",ae)}const{body:xe,width:Ie,height:Ne}=$,Fe=ie==="mask"||(ie==="bg"?!1:xe.indexOf("currentColor")!==-1),ze=iconToHTML$1(xe,{...$e,width:Ie+"",height:Ne+""});return ae.style={...le,"--svg":svgToURL$1(ze),width:fixSize$1($e.width),height:fixSize$1($e.height),...commonProps$1,...Fe?monotoneProps$1:coloredProps$1,..._e},h$3("span",ae)},storage$1=Object.create(null);function addIcon$1($,z){storage$1[$]=z}const Icon$1=defineComponent({inheritAttrs:!1,render(){const $=this.$attrs,z=$.icon,oe=typeof z=="string"?storage$1[z]:typeof z=="object"?z:null;return oe===null||typeof oe!="object"||typeof oe.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...oe},$)}}),iconifyIconOffline=defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const $=this.$attrs;return h$3(Icon$1,{icon:this.icon,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=($,z,oe,ae="")=>{const ie=$.split(":");if($.slice(0,1)==="@"){if(ie.length<2||ie.length>3)return null;ae=ie.shift().slice(1)}if(ie.length>3||!ie.length)return null;if(ie.length>1){const _e=ie.pop(),Ce=ie.pop(),$e={provider:ie.length>0?ie[0]:ae,prefix:Ce,name:_e};return z&&!validateIconName($e)?null:$e}const le=ie[0],pe=le.split("-");if(pe.length>1){const _e={provider:ae,prefix:pe.shift(),name:pe.join("-")};return z&&!validateIconName(_e)?null:_e}if(oe&&ae===""){const _e={provider:ae,prefix:"",name:le};return z&&!validateIconName(_e,oe)?null:_e}return null},validateIconName=($,z)=>$?!!(($.provider===""||$.provider.match(matchIconName))&&(z&&$.prefix===""||$.prefix.match(matchIconName))&&$.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($,z){const oe={};!$.hFlip!=!z.hFlip&&(oe.hFlip=!0),!$.vFlip!=!z.vFlip&&(oe.vFlip=!0);const ae=(($.rotate||0)+(z.rotate||0))%4;return ae&&(oe.rotate=ae),oe}function mergeIconData($,z){const oe=mergeIconTransformations($,z);for(const ae in defaultExtendedIconProps)ae in defaultIconTransformations?ae in $&&!(ae in oe)&&(oe[ae]=defaultIconTransformations[ae]):ae in z?oe[ae]=z[ae]:ae in $&&(oe[ae]=$[ae]);return oe}function getIconsTree($,z){const oe=$.icons,ae=$.aliases||Object.create(null),ie=Object.create(null);function le(pe){if(oe[pe])return ie[pe]=[];if(!(pe in ie)){ie[pe]=null;const _e=ae[pe]&&ae[pe].parent,Ce=_e&&le(_e);Ce&&(ie[pe]=[_e].concat(Ce))}return ie[pe]}return(z||Object.keys(oe).concat(Object.keys(ae))).forEach(le),ie}function internalGetIconData($,z,oe){const ae=$.icons,ie=$.aliases||Object.create(null);let le={};function pe(_e){le=mergeIconData(ae[_e]||ie[_e],le)}return pe(z),oe.forEach(pe),mergeIconData($,le)}function parseIconSet($,z){const oe=[];if(typeof $!="object"||typeof $.icons!="object")return oe;$.not_found instanceof Array&&$.not_found.forEach(ie=>{z(ie,null),oe.push(ie)});const ae=getIconsTree($);for(const ie in ae){const le=ae[ie];le&&(z(ie,internalGetIconData($,ie,le)),oe.push(ie))}return oe}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps($,z){for(const oe in z)if(oe in $&&typeof $[oe]!=typeof z[oe])return!1;return!0}function quicklyValidateIconSet($){if(typeof $!="object"||$===null)return null;const z=$;if(typeof z.prefix!="string"||!$.icons||typeof $.icons!="object"||!checkOptionalProps($,optionalPropertyDefaults))return null;const oe=z.icons;for(const ie in oe){const le=oe[ie];if(!ie.match(matchIconName)||typeof le.body!="string"||!checkOptionalProps(le,defaultExtendedIconProps))return null}const ae=z.aliases||Object.create(null);for(const ie in ae){const le=ae[ie],pe=le.parent;if(!ie.match(matchIconName)||typeof pe!="string"||!oe[pe]&&!ae[pe]||!checkOptionalProps(le,defaultExtendedIconProps))return null}return z}const dataStorage=Object.create(null);function newStorage($,z){return{provider:$,prefix:z,icons:Object.create(null),missing:new Set}}function getStorage($,z){const oe=dataStorage[$]||(dataStorage[$]=Object.create(null));return oe[z]||(oe[z]=newStorage($,z))}function addIconSet($,z){return quicklyValidateIconSet(z)?parseIconSet(z,(oe,ae)=>{ae?$.icons[oe]=ae:$.missing.add(oe)}):[]}function addIconToStorage($,z,oe){try{if(typeof oe.body=="string")return $.icons[z]={...oe},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames($){return typeof $=="boolean"&&(simpleNames=$),simpleNames}function getIconData($){const z=typeof $=="string"?stringToIcon($,!0,simpleNames):$;if(z){const oe=getStorage(z.provider,z.prefix),ae=z.name;return oe.icons[ae]||(oe.missing.has(ae)?null:void 0)}}function addIcon($,z){const oe=stringToIcon($,!0,simpleNames);if(!oe)return!1;const ae=getStorage(oe.provider,oe.prefix);return addIconToStorage(ae,oe.name,z)}function addCollection($,z){if(typeof $!="object")return!1;if(typeof z!="string"&&(z=$.provider||""),simpleNames&&!z&&!$.prefix){let ie=!1;return quicklyValidateIconSet($)&&($.prefix="",parseIconSet($,(le,pe)=>{pe&&addIcon(le,pe)&&(ie=!0)})),ie}const oe=$.prefix;if(!validateIconName({provider:z,prefix:oe,name:"a"}))return!1;const ae=getStorage(z,oe);return!!addIconSet(ae,$)}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($,z,oe){if(z===1)return $;if(oe=oe||100,typeof $=="number")return Math.ceil($*z*oe)/oe;if(typeof $!="string")return $;const ae=$.split(unitsSplit);if(ae===null||!ae.length)return $;const ie=[];let le=ae.shift(),pe=unitsTest.test(le);for(;;){if(pe){const _e=parseFloat(le);isNaN(_e)?ie.push(le):ie.push(Math.ceil(_e*z*oe)/oe)}else ie.push(le);if(le=ae.shift(),le===void 0)return ie.join("");pe=!pe}}const isUnsetKeyword=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG($,z){const oe={...defaultIconProps,...$},ae={...defaultIconCustomisations,...z},ie={left:oe.left,top:oe.top,width:oe.width,height:oe.height};let le=oe.body;[oe,ae].forEach(ze=>{const At=[],Lt=ze.hFlip,hn=ze.vFlip;let vn=ze.rotate;Lt?hn?vn+=2:(At.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),At.push("scale(-1 1)"),ie.top=ie.left=0):hn&&(At.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),At.push("scale(1 -1)"),ie.top=ie.left=0);let _n;switch(vn<0&&(vn-=Math.floor(vn/4)*4),vn=vn%4,vn){case 1:_n=ie.height/2+ie.top,At.unshift("rotate(90 "+_n.toString()+" "+_n.toString()+")");break;case 2:At.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:_n=ie.width/2+ie.left,At.unshift("rotate(-90 "+_n.toString()+" "+_n.toString()+")");break}vn%2===1&&(ie.left!==ie.top&&(_n=ie.left,ie.left=ie.top,ie.top=_n),ie.width!==ie.height&&(_n=ie.width,ie.width=ie.height,ie.height=_n)),At.length&&(le='<g transform="'+At.join(" ")+'">'+le+"</g>")});const pe=ae.width,_e=ae.height,Ce=ie.width,$e=ie.height;let xe,Ie;pe===null?(Ie=_e===null?"1em":_e==="auto"?$e:_e,xe=calculateSize(Ie,Ce/$e)):(xe=pe==="auto"?Ce:pe,Ie=_e===null?calculateSize(xe,$e/Ce):_e==="auto"?$e:_e);const Ne={},Fe=(ze,At)=>{isUnsetKeyword(At)||(Ne[ze]=At.toString())};return Fe("width",xe),Fe("height",Ie),Ne.viewBox=ie.left.toString()+" "+ie.top.toString()+" "+Ce.toString()+" "+$e.toString(),{attributes:Ne,body:le}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs($,z=randomPrefix){const oe=[];let ae;for(;ae=regex.exec($);)oe.push(ae[1]);if(!oe.length)return $;const ie="suffix"+(Math.random()*16777216|Date.now()).toString(16);return oe.forEach(le=>{const pe=typeof z=="function"?z(le):z+(counter++).toString(),_e=le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+_e+')([")]|\\.[a-z])',"g"),"$1"+pe+ie+"$3")}),$=$.replace(new RegExp(ie,"g"),""),$}const storage=Object.create(null);function setAPIModule($,z){storage[$]=z}function getAPIModule($){return storage[$]||storage[""]}function createAPIConfig($){let z;if(typeof $.resources=="string")z=[$.resources];else if(z=$.resources,!(z instanceof Array)||!z.length)return null;return{resources:z,path:$.path||"/",maxURL:$.maxURL||500,rotate:$.rotate||750,timeout:$.timeout||5e3,random:$.random===!0,index:$.index||0,dataAfterTimeout:$.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($,z){const oe=createAPIConfig(z);return oe===null?!1:(configStorage[$]=oe,!0)}function getAPIConfig($){return configStorage[$]}const detectFetch=()=>{let $;try{if($=fetch,typeof $=="function")return $}catch{}};let fetchModule=detectFetch();function calculateMaxLength($,z){const oe=getAPIConfig($);if(!oe)return 0;let ae;if(!oe.maxURL)ae=0;else{let ie=0;oe.resources.forEach(pe=>{ie=Math.max(ie,pe.length)});const le=z+".json?icons=";ae=oe.maxURL-ie-oe.path.length-le.length}return ae}function shouldAbort($){return $===404}const prepare=($,z,oe)=>{const ae=[],ie=calculateMaxLength($,z),le="icons";let pe={type:le,provider:$,prefix:z,icons:[]},_e=0;return oe.forEach((Ce,$e)=>{_e+=Ce.length+1,_e>=ie&&$e>0&&(ae.push(pe),pe={type:le,provider:$,prefix:z,icons:[]},_e=Ce.length),pe.icons.push(Ce)}),ae.push(pe),ae};function getPath($){if(typeof $=="string"){const z=getAPIConfig($);if(z)return z.path}return"/"}const send=($,z,oe)=>{if(!fetchModule){oe("abort",424);return}let ae=getPath(z.provider);switch(z.type){case"icons":{const le=z.prefix,_e=z.icons.join(","),Ce=new URLSearchParams({icons:_e});ae+=le+".json?"+Ce.toString();break}case"custom":{const le=z.uri;ae+=le.slice(0,1)==="/"?le.slice(1):le;break}default:oe("abort",400);return}let ie=503;fetchModule($+ae).then(le=>{const pe=le.status;if(pe!==200){setTimeout(()=>{oe(shouldAbort(pe)?"abort":"next",pe)});return}return ie=501,le.json()}).then(le=>{if(typeof le!="object"||le===null){setTimeout(()=>{le===404?oe("abort",le):oe("next",ie)});return}setTimeout(()=>{oe("success",le)})}).catch(()=>{oe("next",ie)})},fetchAPIModule={prepare,send};function sortIcons($){const z={loaded:[],missing:[],pending:[]},oe=Object.create(null);$.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 ae={provider:"",prefix:"",name:""};return $.forEach(ie=>{if(ae.name===ie.name&&ae.prefix===ie.prefix&&ae.provider===ie.provider)return;ae=ie;const le=ie.provider,pe=ie.prefix,_e=ie.name,Ce=oe[le]||(oe[le]=Object.create(null)),$e=Ce[pe]||(Ce[pe]=getStorage(le,pe));let xe;_e in $e.icons?xe=z.loaded:pe===""||$e.missing.has(_e)?xe=z.missing:xe=z.pending;const Ie={provider:le,prefix:pe,name:_e};xe.push(Ie)}),z}function removeCallback($,z){$.forEach(oe=>{const ae=oe.loaderCallbacks;ae&&(oe.loaderCallbacks=ae.filter(ie=>ie.id!==z))})}function updateCallbacks($){$.pendingCallbacksFlag||($.pendingCallbacksFlag=!0,setTimeout(()=>{$.pendingCallbacksFlag=!1;const z=$.loaderCallbacks?$.loaderCallbacks.slice(0):[];if(!z.length)return;let oe=!1;const ae=$.provider,ie=$.prefix;z.forEach(le=>{const pe=le.icons,_e=pe.pending.length;pe.pending=pe.pending.filter(Ce=>{if(Ce.prefix!==ie)return!0;const $e=Ce.name;if($.icons[$e])pe.loaded.push({provider:ae,prefix:ie,name:$e});else if($.missing.has($e))pe.missing.push({provider:ae,prefix:ie,name:$e});else return oe=!0,!0;return!1}),pe.pending.length!==_e&&(oe||removeCallback([$],le.id),le.callback(pe.loaded.slice(0),pe.missing.slice(0),pe.pending.slice(0),le.abort))})}))}let idCounter=0;function storeCallback($,z,oe){const ae=idCounter++,ie=removeCallback.bind(null,oe,ae);if(!z.pending.length)return ie;const le={id:ae,icons:z,callback:$,abort:ie};return oe.forEach(pe=>{(pe.loaderCallbacks||(pe.loaderCallbacks=[])).push(le)}),ie}function listToIcons($,z=!0,oe=!1){const ae=[];return $.forEach(ie=>{const le=typeof ie=="string"?stringToIcon(ie,z,oe):ie;le&&ae.push(le)}),ae}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery($,z,oe,ae){const ie=$.resources.length,le=$.random?Math.floor(Math.random()*ie):$.index;let pe;if($.random){let En=$.resources.slice(0);for(pe=[];En.length>1;){const $n=Math.floor(Math.random()*En.length);pe.push(En[$n]),En=En.slice(0,$n).concat(En.slice($n+1))}pe=pe.concat(En)}else pe=$.resources.slice(le).concat($.resources.slice(0,le));const _e=Date.now();let Ce="pending",$e=0,xe,Ie=null,Ne=[],Fe=[];typeof ae=="function"&&Fe.push(ae);function ze(){Ie&&(clearTimeout(Ie),Ie=null)}function At(){Ce==="pending"&&(Ce="aborted"),ze(),Ne.forEach(En=>{En.status==="pending"&&(En.status="aborted")}),Ne=[]}function Lt(En,$n){$n&&(Fe=[]),typeof En=="function"&&Fe.push(En)}function hn(){return{startTime:_e,payload:z,status:Ce,queriesSent:$e,queriesPending:Ne.length,subscribe:Lt,abort:At}}function vn(){Ce="failed",Fe.forEach(En=>{En(void 0,xe)})}function _n(){Ne.forEach(En=>{En.status==="pending"&&(En.status="aborted")}),Ne=[]}function bn(En,$n,wn){const Tn=$n!=="success";switch(Ne=Ne.filter(xn=>xn!==En),Ce){case"pending":break;case"failed":if(Tn||!$.dataAfterTimeout)return;break;default:return}if($n==="abort"){xe=wn,vn();return}if(Tn){xe=wn,Ne.length||(pe.length?Cn():vn());return}if(ze(),_n(),!$.random){const xn=$.resources.indexOf(En.resource);xn!==-1&&xn!==$.index&&($.index=xn)}Ce="completed",Fe.forEach(xn=>{xn(wn)})}function Cn(){if(Ce!=="pending")return;ze();const En=pe.shift();if(En===void 0){if(Ne.length){Ie=setTimeout(()=>{ze(),Ce==="pending"&&(_n(),vn())},$.timeout);return}vn();return}const $n={status:"pending",resource:En,callback:(wn,Tn)=>{bn($n,wn,Tn)}};Ne.push($n),$e++,Ie=setTimeout(Cn,$.rotate),oe(En,z,$n.callback)}return setTimeout(Cn),hn}function initRedundancy($){const z={...defaultConfig,...$};let oe=[];function ae(){oe=oe.filter(_e=>_e().status==="pending")}function ie(_e,Ce,$e){const xe=sendQuery(z,_e,Ce,(Ie,Ne)=>{ae(),$e&&$e(Ie,Ne)});return oe.push(xe),xe}function le(_e){return oe.find(Ce=>_e(Ce))||null}return{query:ie,find:le,setIndex:_e=>{z.index=_e},getIndex:()=>z.index,cleanup:ae}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache($){if(!redundancyCache[$]){const z=getAPIConfig($);if(!z)return;const oe=initRedundancy(z),ae={config:z,redundancy:oe};redundancyCache[$]=ae}return redundancyCache[$]}function sendAPIQuery($,z,oe){let ae,ie;if(typeof $=="string"){const le=getAPIModule($);if(!le)return oe(void 0,424),emptyCallback$1;ie=le.send;const pe=getRedundancyCache($);pe&&(ae=pe.redundancy)}else{const le=createAPIConfig($);if(le){ae=initRedundancy(le);const pe=$.resources?$.resources[0]:"",_e=getAPIModule(pe);_e&&(ie=_e.send)}}return!ae||!ie?(oe(void 0,424),emptyCallback$1):ae.query(z,ie,oe)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem($,z){try{return $.getItem(z)}catch{}}function setStoredItem($,z,oe){try{return $.setItem(z,oe),!0}catch{}}function removeStoredItem($,z){try{$.removeItem(z)}catch{}}function setBrowserStorageItemsCount($,z){return setStoredItem($,browserCacheCountKey,z.toString())}function getBrowserStorageItemsCount($){return parseInt(getStoredItem($,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus($){browserStorageStatus=$}let _window=typeof window>"u"?{}:window;function getBrowserStorage($){const z=$+"Storage";try{if(_window&&_window[z]&&typeof _window[z].length=="number")return _window[z]}catch{}browserStorageConfig[$]=!1}function iterateBrowserStorage($,z){const oe=getBrowserStorage($);if(!oe)return;const ae=getStoredItem(oe,browserCacheVersionKey);if(ae!==browserCacheVersion){if(ae){const _e=getBrowserStorageItemsCount(oe);for(let Ce=0;Ce<_e;Ce++)removeStoredItem(oe,browserCachePrefix+Ce.toString())}setStoredItem(oe,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(oe,0);return}const ie=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,le=_e=>{const Ce=browserCachePrefix+_e.toString(),$e=getStoredItem(oe,Ce);if(typeof $e=="string"){try{const xe=JSON.parse($e);if(typeof xe=="object"&&typeof xe.cached=="number"&&xe.cached>ie&&typeof xe.provider=="string"&&typeof xe.data=="object"&&typeof xe.data.prefix=="string"&&z(xe,_e))return!0}catch{}removeStoredItem(oe,Ce)}};let pe=getBrowserStorageItemsCount(oe);for(let _e=pe-1;_e>=0;_e--)le(_e)||(_e===pe-1?(pe--,setBrowserStorageItemsCount(oe,pe)):browserStorageEmptyItems[$].add(_e))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const $ in browserStorageConfig)iterateBrowserStorage($,z=>{const oe=z.data,ae=z.provider,ie=oe.prefix,le=getStorage(ae,ie);if(!addIconSet(le,oe).length)return!1;const pe=oe.lastModified||-1;return le.lastModifiedCached=le.lastModifiedCached?Math.min(le.lastModifiedCached,pe):pe,!0})}}function updateLastModified($,z){const oe=$.lastModifiedCached;if(oe&&oe>=z)return oe===z;if($.lastModifiedCached=z,oe)for(const ae in browserStorageConfig)iterateBrowserStorage(ae,ie=>{const le=ie.data;return ie.provider!==$.provider||le.prefix!==$.prefix||le.lastModified===z});return!0}function storeInBrowserStorage($,z){browserStorageStatus||initBrowserStorage();function oe(ae){let ie;if(!browserStorageConfig[ae]||!(ie=getBrowserStorage(ae)))return;const le=browserStorageEmptyItems[ae];let pe;if(le.size)le.delete(pe=Array.from(le).shift());else if(pe=getBrowserStorageItemsCount(ie),!setBrowserStorageItemsCount(ie,pe+1))return;const _e={cached:Math.floor(Date.now()/browserStorageHour),provider:$.provider,data:z};return setStoredItem(ie,browserCachePrefix+pe.toString(),JSON.stringify(_e))}z.lastModified&&!updateLastModified($,z.lastModified)||Object.keys(z.icons).length&&(z.not_found&&(z=Object.assign({},z),delete z.not_found),oe("local")||oe("session"))}function emptyCallback(){}function loadedNewIcons($){$.iconsLoaderFlag||($.iconsLoaderFlag=!0,setTimeout(()=>{$.iconsLoaderFlag=!1,updateCallbacks($)}))}function loadNewIcons($,z){$.iconsToLoad?$.iconsToLoad=$.iconsToLoad.concat(z).sort():$.iconsToLoad=z,$.iconsQueueFlag||($.iconsQueueFlag=!0,setTimeout(()=>{$.iconsQueueFlag=!1;const{provider:oe,prefix:ae}=$,ie=$.iconsToLoad;delete $.iconsToLoad;let le;if(!ie||!(le=getAPIModule(oe)))return;le.prepare(oe,ae,ie).forEach(_e=>{sendAPIQuery(oe,_e,Ce=>{if(typeof Ce!="object")_e.icons.forEach($e=>{$.missing.add($e)});else try{const $e=addIconSet($,Ce);if(!$e.length)return;const xe=$.pendingIcons;xe&&$e.forEach(Ie=>{xe.delete(Ie)}),storeInBrowserStorage($,Ce)}catch($e){console.error($e)}loadedNewIcons($)})})}))}const loadIcons=($,z)=>{const oe=listToIcons($,!0,allowSimpleNames()),ae=sortIcons(oe);if(!ae.pending.length){let Ce=!0;return z&&setTimeout(()=>{Ce&&z(ae.loaded,ae.missing,ae.pending,emptyCallback)}),()=>{Ce=!1}}const ie=Object.create(null),le=[];let pe,_e;return ae.pending.forEach(Ce=>{const{provider:$e,prefix:xe}=Ce;if(xe===_e&&$e===pe)return;pe=$e,_e=xe,le.push(getStorage($e,xe));const Ie=ie[$e]||(ie[$e]=Object.create(null));Ie[xe]||(Ie[xe]=[])}),ae.pending.forEach(Ce=>{const{provider:$e,prefix:xe,name:Ie}=Ce,Ne=getStorage($e,xe),Fe=Ne.pendingIcons||(Ne.pendingIcons=new Set);Fe.has(Ie)||(Fe.add(Ie),ie[$e][xe].push(Ie))}),le.forEach(Ce=>{const{provider:$e,prefix:xe}=Ce;ie[$e][xe].length&&loadNewIcons(Ce,ie[$e][xe])}),z?storeCallback(z,ae,le):emptyCallback};function mergeCustomisations($,z){const oe={...$};for(const ae in z){const ie=z[ae],le=typeof ie;ae in defaultIconSizeCustomisations?(ie===null||ie&&(le==="string"||le==="number"))&&(oe[ae]=ie):le===typeof oe[ae]&&(oe[ae]=ae==="rotate"?ie%4:ie)}return oe}const separator=/[\s,]+/;function flipFromString($,z){z.split(separator).forEach(oe=>{switch(oe.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString($,z=0){const oe=$.replace(/^-?[0-9.]*/,"");function ae(ie){for(;ie<0;)ie+=4;return ie%4}if(oe===""){const ie=parseInt($);return isNaN(ie)?0:ae(ie)}else if(oe!==$){let ie=0;switch(oe){case"%":ie=25;break;case"deg":ie=90}if(ie){let le=parseFloat($.slice(0,$.length-oe.length));return isNaN(le)?0:(le=le/ie,le%1===0?ae(le):0)}}return z}function iconToHTML($,z){let oe=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ae in z)oe+=" "+ae+'="'+z[ae]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+oe+">"+$+"</svg>"}function encodeSVGforURL($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData($){return"data:image/svg+xml,"+encodeSVGforURL($)}function svgToURL($){return'url("'+svgToData($)+'")'}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 $ in propsToAddTo){const z=propsToAddTo[$];for(const oe in propsToAdd)z[$+oe]=propsToAdd[oe]}const customisationAliases={};["horizontal","vertical"].forEach($=>{const z=$.slice(0,1)+"Flip";customisationAliases[$+"-flip"]=z,customisationAliases[$.slice(0,1)+"-flip"]=z,customisationAliases[$+"Flip"]=z});function fixSize($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render=($,z)=>{const oe=mergeCustomisations(defaultExtendedIconCustomisations,z),ae={...svgDefaults},ie=z.mode||"svg",le={},pe=z.style,_e=typeof pe=="object"&&!(pe instanceof Array)?pe:{};for(let At in z){const Lt=z[At];if(Lt!==void 0)switch(At){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[At]=Lt===!0||Lt==="true"||Lt===1;break;case"flip":typeof Lt=="string"&&flipFromString(oe,Lt);break;case"color":le.color=Lt;break;case"rotate":typeof Lt=="string"?oe[At]=rotateFromString(Lt):typeof Lt=="number"&&(oe[At]=Lt);break;case"ariaHidden":case"aria-hidden":Lt!==!0&&Lt!=="true"&&delete ae["aria-hidden"];break;default:{const hn=customisationAliases[At];hn?(Lt===!0||Lt==="true"||Lt===1)&&(oe[hn]=!0):defaultExtendedIconCustomisations[At]===void 0&&(ae[At]=Lt)}}}const Ce=iconToSVG($,oe),$e=Ce.attributes;if(oe.inline&&(le.verticalAlign="-0.125em"),ie==="svg"){ae.style={...le,..._e},Object.assign(ae,$e);let At=0,Lt=z.id;return typeof Lt=="string"&&(Lt=Lt.replace(/-/g,"_")),ae.innerHTML=replaceIDs(Ce.body,Lt?()=>Lt+"ID"+At++:"iconifyVue"),h$3("svg",ae)}const{body:xe,width:Ie,height:Ne}=$,Fe=ie==="mask"||(ie==="bg"?!1:xe.indexOf("currentColor")!==-1),ze=iconToHTML(xe,{...$e,width:Ie+"",height:Ne+""});return ae.style={...le,"--svg":svgToURL(ze),width:fixSize($e.width),height:fixSize($e.height),...commonProps,...Fe?monotoneProps:coloredProps,..._e},h$3("span",ae)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const $=window;if($.IconifyPreload!==void 0){const z=$.IconifyPreload,oe="Invalid IconifyPreload syntax.";typeof z=="object"&&z!==null&&(z instanceof Array?z:[z]).forEach(ae=>{try{(typeof ae!="object"||ae===null||ae instanceof Array||typeof ae.icons!="object"||typeof ae.prefix!="string"||!addCollection(ae))&&console.error(oe)}catch{console.error(oe)}})}if($.IconifyProviders!==void 0){const z=$.IconifyProviders;if(typeof z=="object"&&z!==null)for(let oe in z){const ae="IconifyProviders["+oe+"] is invalid.";try{const ie=z[oe];if(typeof ie!="object"||!ie||ie.resources===void 0)continue;addAPIProvider(oe,ie)||console.error(ae)}catch{console.error(ae)}}}}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($,z){if(typeof $=="object"&&$!==null&&typeof $.body=="string")return this._name="",this.abortLoading(),{data:$};let oe;if(typeof $!="string"||(oe=stringToIcon($,!1,!0))===null)return this.abortLoading(),null;const ae=getIconData(oe);if(!ae)return(!this._loadingIcon||this._loadingIcon.name!==$)&&(this.abortLoading(),this._name="",ae!==null&&(this._loadingIcon={name:$,abort:loadIcons([oe],()=>{this.counter++})})),null;this.abortLoading(),this._name!==$&&(this._name=$,z&&z($));const ie=["iconify"];return oe.prefix!==""&&ie.push("iconify--"+oe.prefix),oe.provider!==""&&ie.push("iconify--"+oe.provider),{data:ae,classes:ie}}},render(){this.counter;const $=this.$attrs,z=this.iconMounted?this.getIcon($.icon,$.onLoad):null;if(!z)return render(emptyIcon,$);let oe=$;return z.classes&&(oe={...$,class:(typeof $.class=="string"?$.class+" ":"")+z.classes.join(" ")}),render({...defaultIconProps,...z.data},oe)}}),iconifyIconOnline=defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return h$3(Icon,{icon:`${this.icon}`,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),fontIcon=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return Object.keys($).includes("uni")||($==null?void 0:$.iconType)==="uni"?h$3("i",{class:"iconfont",...$},this.icon):Object.keys($).includes("svg")||($==null?void 0:$.iconType)==="svg"?h$3("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[h$3("use",{"xlink:href":`#${this.icon}`})]}):h$3("i",{class:`iconfont ${this.icon}`,...$})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup($,{slots:z}){return()=>{var oe;return z&&hasAuth($.value)?createVNode(Fragment,null,[(oe=z.default)==null?void 0:oe.call(z)]):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:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",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,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,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证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:$})=>$.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 $=[];for(let z=0;z<200;z++)$.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 $},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:$})=>$.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:"/role",method:"post",response:()=>({success:!0,data:{list:[{createTime:1605456e6,updateTime:1645477701e3,creator:"admin",updater:"",deleted:!1,tenantId:1,id:1,name:"超级管理员",code:"super_admin",sort:1,status:0,type:1,remark:"超级管理员",dataScope:1,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:16454777e5,creator:"admin",updater:"",deleted:!1,tenantId:1,id:2,name:"普通角色",code:"common",sort:2,status:0,type:1,remark:"普通角色",dataScope:2,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:1647698441e3,creator:"",updater:"1",deleted:!1,tenantId:1,id:101,name:"测试账号",code:"test",sort:0,status:0,type:2,remark:"132",dataScope:1,dataScopeDeptIds:[]}],total:3}})},{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)"}]})},{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1605456e6,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1605456e6,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1605456e6,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1605456e6,dept:{id:107,name:"运维部门"}}],total:4}})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(z,oe){module.exports=oe()})(commonjsGlobal,function(){return function($){var z={};function oe(ae){if(z[ae])return z[ae].exports;var ie=z[ae]={exports:{},id:ae,loaded:!1};return $[ae].call(ie.exports,ie,ie.exports,oe),ie.loaded=!0,ie.exports}return oe.m=$,oe.c=z,oe.p="",oe(0)}([function($,z,oe){var ae=oe(1),ie=oe(3),le=oe(5),pe=oe(20),_e=oe(23),Ce=oe(25),$e;typeof window<"u"&&($e=oe(27));/*!
|
||
Mock - 模拟请求 & 模拟数据
|
||
https://github.com/nuysoft/Mock
|
||
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
|
||
*/var xe={Handler:ae,Random:le,Util:ie,XHR:$e,RE:pe,toJSONSchema:_e,valid:Ce,heredoc:ie.heredoc,setup:function(Ie){return $e.setup(Ie)},_mocked:{}};xe.version="1.0.1-beta3",$e&&($e.Mock=xe),xe.mock=function(Ie,Ne,Fe){return arguments.length===1?ae.gen(Ie):(arguments.length===2&&(Fe=Ne,Ne=void 0),$e&&(window.XMLHttpRequest=$e),xe._mocked[Ie+(Ne||"")]={rurl:Ie,rtype:Ne,template:Fe},xe)},$.exports=xe},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($,z,oe){z=z==null?"":z+"",oe=oe||{},oe={path:oe.path||[Constant.GUID],templatePath:oe.templatePath||[Constant.GUID++],currentContext:oe.currentContext,templateCurrentContext:oe.templateCurrentContext||$,root:oe.root||oe.currentContext,templateRoot:oe.templateRoot||oe.templateCurrentContext||$};var ae=Parser.parse(z),ie=Util.type($),le;return Handler[ie]?(le=Handler[ie]({type:ie,template:$,name:z,parsedName:z&&z.replace(Constant.RE_KEY,"$1"),rule:ae,context:oe}),oe.root||(oe.root=le),le):$},Handler.extend({array:function($){var z=[],oe,ae;if($.template.length===0)return z;if($.rule.parameters)if($.rule.min===1&&$.rule.max===void 0)$.context.path.push($.name),$.context.templatePath.push($.name),z=Random.pick(Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else if($.rule.parameters[2])$.template.__order_index=$.template.__order_index||0,$.context.path.push($.name),$.context.templatePath.push($.name),z=Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})[$.template.__order_index%$.template.length],$.template.__order_index+=+$.rule.parameters[2],$.context.path.pop(),$.context.templatePath.pop();else for(oe=0;oe<$.rule.count;oe++)for(ae=0;ae<$.template.length;ae++)$.context.path.push(z.length),$.context.templatePath.push(ae),z.push(Handler.gen($.template[ae],z.length,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else for(oe=0;oe<$.template.length;oe++)$.context.path.push(oe),$.context.templatePath.push(oe),z.push(Handler.gen($.template[oe],oe,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();return z},object:function($){var z={},oe,ae,ie,le,pe,_e;if($.rule.min!=null)for(oe=Util.keys($.template),oe=Random.shuffle(oe),oe=oe.slice(0,$.rule.count),_e=0;_e<oe.length;_e++)ie=oe[_e],le=ie.replace(Constant.RE_KEY,"$1"),$.context.path.push(le),$.context.templatePath.push(ie),z[le]=Handler.gen($.template[ie],ie,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop();else{oe=[],ae=[];for(ie in $.template)(typeof $.template[ie]=="function"?ae:oe).push(ie);for(oe=oe.concat(ae),_e=0;_e<oe.length;_e++)ie=oe[_e],le=ie.replace(Constant.RE_KEY,"$1"),$.context.path.push(le),$.context.templatePath.push(ie),z[le]=Handler.gen($.template[ie],ie,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop(),pe=ie.match(Constant.RE_KEY),pe&&pe[2]&&Util.type($.template[ie])==="number"&&($.template[ie]+=parseInt(pe[2],10))}return z},number:function($){var z,oe;if($.rule.decimal){for($.template+="",oe=$.template.split("."),oe[0]=$.rule.range?$.rule.count:oe[0],oe[1]=(oe[1]||"").slice(0,$.rule.dcount);oe[1].length<$.rule.dcount;)oe[1]+=oe[1].length<$.rule.dcount-1?Random.character("number"):Random.character("123456789");z=parseFloat(oe.join("."),10)}else z=$.rule.range&&!$.rule.parameters[2]?$.rule.count:$.template;return z},boolean:function($){var z;return z=$.rule.parameters?Random.bool($.rule.min,$.rule.max,$.template):$.template,z},string:function($){var z="",oe,ae,ie,le;if($.template.length){for($.rule.count==null&&(z+=$.template),oe=0;oe<$.rule.count;oe++)z+=$.template;for(ae=z.match(Constant.RE_PLACEHOLDER)||[],oe=0;oe<ae.length;oe++){if(ie=ae[oe],/^\\/.test(ie)){ae.splice(oe--,1);continue}if(le=Handler.placeholder(ie,$.context.currentContext,$.context.templateCurrentContext,$),ae.length===1&&ie===z&&typeof le!=typeof z){z=le;break}z=z.replace(ie,le)}}else z=$.rule.range?Random.string($.rule.count):$.template;return z},function:function($){return $.template.call($.context.currentContext,$)},regexp:function($){var z="";$.rule.count==null&&(z+=$.template.source);for(var oe=0;oe<$.rule.count;oe++)z+=$.template.source;return RE.Handler.gen(RE.Parser.parse(z))}}),Handler.extend({_all:function(){var $={};for(var z in Random)$[z.toLowerCase()]=z;return $},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch($){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if(key.charAt(0)==="/"||pathParts.length>1)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;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return re===void 0&&(re=""),delete handle.options,re}},getValueByKeyPath:function($,z){var oe=$,ae=this.splitPathToArray($),ie=[];$.charAt(0)==="/"?ie=[z.context.path[0]].concat(this.normalizePath(ae)):ae.length>1&&(ie=z.context.path.slice(0),ie.pop(),ie=this.normalizePath(ie.concat(ae)));try{$=ae[ae.length-1];for(var le=z.context.root,pe=z.context.templateRoot,_e=1;_e<ie.length-1;_e++)le=le[ie[_e]],pe=pe[ie[_e]];if(le&&$ in le)return le[$];if(pe&&typeof pe=="object"&&$ in pe&&oe!==pe[$])return pe[$]=Handler.gen(pe[$],$,{currentContext:le,templateCurrentContext:pe}),pe[$]}catch{}return"@"+ae.join("/")},normalizePath:function($){for(var z=[],oe=0;oe<$.length;oe++)switch($[oe]){case"..":z.pop();break;case".":break;default:z.push($[oe])}return z},splitPathToArray:function($){var z=$.split(/\/+/);return z[z.length-1]||(z=z.slice(0,-1)),z[0]||(z=z.slice(1)),z}}),module.exports=Handler},function($,z){$.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function($,z){var oe={};oe.extend=function(){var ie=arguments[0]||{},le=1,pe=arguments.length,_e,Ce,$e,xe,Ie;for(pe===1&&(ie=this,le=0);le<pe;le++)if(_e=arguments[le],!!_e)for(Ce in _e)$e=ie[Ce],xe=_e[Ce],ie!==xe&&xe!==void 0&&(oe.isArray(xe)||oe.isObject(xe)?(oe.isArray(xe)&&(Ie=$e&&oe.isArray($e)?$e:[]),oe.isObject(xe)&&(Ie=$e&&oe.isObject($e)?$e:{}),ie[Ce]=oe.extend(Ie,xe)):ie[Ce]=xe);return ie},oe.each=function(ie,le,pe){var _e,Ce;if(this.type(ie)==="number")for(_e=0;_e<ie;_e++)le(_e,_e);else if(ie.length===+ie.length)for(_e=0;_e<ie.length&&le.call(pe,ie[_e],_e,ie)!==!1;_e++);else for(Ce in ie)if(le.call(pe,ie[Ce],Ce,ie)===!1)break},oe.type=function(ie){return ie==null?String(ie):Object.prototype.toString.call(ie).match(/\[object (\w+)\]/)[1].toLowerCase()},oe.each("String Object Array RegExp Function".split(" "),function(ae){oe["is"+ae]=function(ie){return oe.type(ie)===ae.toLowerCase()}}),oe.isObjectOrArray=function(ae){return oe.isObject(ae)||oe.isArray(ae)},oe.isNumeric=function(ae){return!isNaN(parseFloat(ae))&&isFinite(ae)},oe.keys=function(ae){var ie=[];for(var le in ae)ae.hasOwnProperty(le)&&ie.push(le);return ie},oe.values=function(ae){var ie=[];for(var le in ae)ae.hasOwnProperty(le)&&ie.push(ae[le]);return ie},oe.heredoc=function(ie){return ie.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},oe.noop=function(){},$.exports=oe},function($,z,oe){var ae=oe(2),ie=oe(5);$.exports={parse:function(le){le=le==null?"":le+"";var pe=(le||"").match(ae.RE_KEY),_e=pe&&pe[3]&&pe[3].match(ae.RE_RANGE),Ce=_e&&_e[1]&&parseInt(_e[1],10),$e=_e&&_e[2]&&parseInt(_e[2],10),xe=_e?_e[2]?ie.integer(Ce,$e):parseInt(_e[1],10):void 0,Ie=pe&&pe[4]&&pe[4].match(ae.RE_RANGE),Ne=Ie&&Ie[1]&&parseInt(Ie[1],10),Fe=Ie&&Ie[2]&&parseInt(Ie[2],10),ze=Ie?!Ie[2]&&parseInt(Ie[1],10)||ie.integer(Ne,Fe):void 0,At={parameters:pe,range:_e,min:Ce,max:$e,count:xe,decimal:Ie,dmin:Ne,dmax:Fe,dcount:ze};for(var Lt in At)if(At[Lt]!=null)return At;return{}}}},function($,z,oe){var ae=oe(3),ie={extend:ae.extend};ie.extend(oe(6)),ie.extend(oe(7)),ie.extend(oe(8)),ie.extend(oe(10)),ie.extend(oe(13)),ie.extend(oe(15)),ie.extend(oe(16)),ie.extend(oe(17)),ie.extend(oe(14)),ie.extend(oe(19)),$.exports=ie},function($,z){$.exports={boolean:function(oe,ae,ie){return ie!==void 0?(oe=typeof oe<"u"&&!isNaN(oe)?parseInt(oe,10):1,ae=typeof ae<"u"&&!isNaN(ae)?parseInt(ae,10):1,Math.random()>1/(oe+ae)*oe?!ie:ie):Math.random()>=.5},bool:function(oe,ae,ie){return this.boolean(oe,ae,ie)},natural:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):0,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},integer:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):-9007199254740992,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},int:function(oe,ae){return this.integer(oe,ae)},float:function(oe,ae,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 pe=this.integer(oe,ae)+".",_e=0,Ce=this.natural(ie,le);_e<Ce;_e++)pe+=_e<Ce-1?this.character("number"):this.character("123456789");return parseFloat(pe,10)},character:function(oe){var ae={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return ae.alpha=ae.lower+ae.upper,ae.undefined=ae.lower+ae.upper+ae.number+ae.symbol,oe=ae[(""+oe).toLowerCase()]||oe,oe.charAt(this.natural(0,oe.length-1))},char:function(oe){return this.character(oe)},string:function(oe,ae,ie){var le;switch(arguments.length){case 0:le=this.natural(3,7);break;case 1:le=oe,oe=void 0;break;case 2:typeof arguments[0]=="string"?le=ae:(le=this.natural(oe,ae),oe=void 0);break;case 3:le=this.natural(ae,ie);break}for(var pe="",_e=0;_e<le;_e++)pe+=this.character(oe);return pe},str:function(){return this.string.apply(this,arguments)},range:function(oe,ae,ie){arguments.length<=1&&(ae=oe||0,oe=0),ie=arguments[2]||1,oe=+oe,ae=+ae,ie=+ie;for(var le=Math.max(Math.ceil((ae-oe)/ie),0),pe=0,_e=new Array(le);pe<le;)_e[pe++]=oe,oe+=ie;return _e}}},function($,z){var oe={yyyy:"getFullYear",yy:function(ae){return(""+ae.getFullYear()).slice(2)},y:"yy",MM:function(ae){var ie=ae.getMonth()+1;return ie<10?"0"+ie:ie},M:function(ae){return ae.getMonth()+1},dd:function(ae){var ie=ae.getDate();return ie<10?"0"+ie:ie},d:"getDate",HH:function(ae){var ie=ae.getHours();return ie<10?"0"+ie:ie},H:"getHours",hh:function(ae){var ie=ae.getHours()%12;return ie<10?"0"+ie:ie},h:function(ae){return ae.getHours()%12},mm:function(ae){var ie=ae.getMinutes();return ie<10?"0"+ie:ie},m:"getMinutes",ss:function(ae){var ie=ae.getSeconds();return ie<10?"0"+ie:ie},s:"getSeconds",SS:function(ae){var ie=ae.getMilliseconds();return ie<10&&"00"+ie||ie<100&&"0"+ie||ie},S:"getMilliseconds",A:function(ae){return ae.getHours()<12?"AM":"PM"},a:function(ae){return ae.getHours()<12?"am":"pm"},T:"getTime"};$.exports={_patternLetters:oe,_rformat:new RegExp(function(){var ae=[];for(var ie in oe)ae.push(ie);return"("+ae.join("|")+")"}(),"g"),_formatDate:function(ae,ie){return ie.replace(this._rformat,function le(pe,_e){return typeof oe[_e]=="function"?oe[_e](ae):oe[_e]in oe?le(pe,oe[_e]):ae[oe[_e]]()})},_randomDate:function(ae,ie){return ae=ae===void 0?new Date(0):ae,ie=ie===void 0?new Date:ie,new Date(Math.random()*(ie.getTime()-ae.getTime()))},date:function(ae){return ae=ae||"yyyy-MM-dd",this._formatDate(this._randomDate(),ae)},time:function(ae){return ae=ae||"HH:mm:ss",this._formatDate(this._randomDate(),ae)},datetime:function(ae){return ae=ae||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),ae)},now:function(ae,ie){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(ae)||(ie=ae,ae="")),ae=(ae||"").toLowerCase(),ie=ie||"yyyy-MM-dd HH:mm:ss";var le=new Date;switch(ae){case"year":le.setMonth(0);case"month":le.setDate(1);case"week":case"day":le.setHours(0);case"hour":le.setMinutes(0);case"minute":le.setSeconds(0);case"second":le.setMilliseconds(0)}switch(ae){case"week":le.setDate(le.getDate()-le.getDay())}return this._formatDate(le,ie)}}},function($,z,oe){(function(ae){ae.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(ie,le,pe,_e,Ce){return arguments.length===4&&(Ce=_e,_e=void 0),arguments.length===3&&(Ce=pe,pe=void 0),ie||(ie=this.pick(this._adSize)),le&&~le.indexOf("#")&&(le=le.slice(1)),pe&&~pe.indexOf("#")&&(pe=pe.slice(1)),"http://dummyimage.com/"+ie+(le?"/"+le:"")+(pe?"/"+pe:"")+(_e?"."+_e:"")+(Ce?"&text="+Ce:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var ie=[];for(var le in this._brandColors)ie.push(le);return ie},dataImage:function(ie,le){var pe;if(typeof document<"u")pe=document.createElement("canvas");else{var _e=ae.require("canvas");pe=new _e}var Ce=pe&&pe.getContext&&pe.getContext("2d");if(!pe||!Ce)return"";ie||(ie=this.pick(this._adSize)),le=le!==void 0?le:ie,ie=ie.split("x");var $e=parseInt(ie[0],10),xe=parseInt(ie[1],10),Ie=this._brandColors[this.pick(this._brandNames())],Ne="#FFF",Fe=14,ze="sans-serif";return pe.width=$e,pe.height=xe,Ce.textAlign="center",Ce.textBaseline="middle",Ce.fillStyle=Ie,Ce.fillRect(0,0,$e,xe),Ce.fillStyle=Ne,Ce.font="bold "+Fe+"px "+ze,Ce.fillText(le,$e/2,xe/2,$e),pe.toDataURL("image/png")}}}).call(z,oe(9)($))},function($,z){$.exports=function(oe){return oe.webpackPolyfill||(oe.deprecate=function(){},oe.paths=[],oe.children=[],oe.webpackPolyfill=1),oe}},function($,z,oe){var ae=oe(11),ie=oe(12);$.exports={color:function(le){return le||ie[le]?ie[le].nicer:this.hex()},hex:function(){var le=this._goldenRatioColor(),pe=ae.hsv2rgb(le),_e=ae.rgb2hex(pe[0],pe[1],pe[2]);return _e},rgb:function(){var le=this._goldenRatioColor(),pe=ae.hsv2rgb(le);return"rgb("+parseInt(pe[0],10)+", "+parseInt(pe[1],10)+", "+parseInt(pe[2],10)+")"},rgba:function(){var le=this._goldenRatioColor(),pe=ae.hsv2rgb(le);return"rgba("+parseInt(pe[0],10)+", "+parseInt(pe[1],10)+", "+parseInt(pe[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var le=this._goldenRatioColor(),pe=ae.hsv2hsl(le);return"hsl("+parseInt(pe[0],10)+", "+parseInt(pe[1],10)+", "+parseInt(pe[2],10)+")"},_goldenRatioColor:function(le,pe){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof le!="number"&&(le=.5),typeof pe!="number"&&(pe=.95),[this._hue*360,le*100,pe*100]}}},function($,z){$.exports={rgb2hsl:function(ae){var ie=ae[0]/255,le=ae[1]/255,pe=ae[2]/255,_e=Math.min(ie,le,pe),Ce=Math.max(ie,le,pe),$e=Ce-_e,xe,Ie,Ne;return Ce==_e?xe=0:ie==Ce?xe=(le-pe)/$e:le==Ce?xe=2+(pe-ie)/$e:pe==Ce&&(xe=4+(ie-le)/$e),xe=Math.min(xe*60,360),xe<0&&(xe+=360),Ne=(_e+Ce)/2,Ce==_e?Ie=0:Ne<=.5?Ie=$e/(Ce+_e):Ie=$e/(2-Ce-_e),[xe,Ie*100,Ne*100]},rgb2hsv:function(ae){var ie=ae[0],le=ae[1],pe=ae[2],_e=Math.min(ie,le,pe),Ce=Math.max(ie,le,pe),$e=Ce-_e,xe,Ie,Ne;return Ce===0?Ie=0:Ie=$e/Ce*1e3/10,Ce==_e?xe=0:ie==Ce?xe=(le-pe)/$e:le==Ce?xe=2+(pe-ie)/$e:pe==Ce&&(xe=4+(ie-le)/$e),xe=Math.min(xe*60,360),xe<0&&(xe+=360),Ne=Ce/255*1e3/10,[xe,Ie,Ne]},hsl2rgb:function(ae){var ie=ae[0]/360,le=ae[1]/100,pe=ae[2]/100,_e,Ce,$e,xe,Ie;if(le===0)return Ie=pe*255,[Ie,Ie,Ie];pe<.5?Ce=pe*(1+le):Ce=pe+le-pe*le,_e=2*pe-Ce,xe=[0,0,0];for(var Ne=0;Ne<3;Ne++)$e=ie+1/3*-(Ne-1),$e<0&&$e++,$e>1&&$e--,6*$e<1?Ie=_e+(Ce-_e)*6*$e:2*$e<1?Ie=Ce:3*$e<2?Ie=_e+(Ce-_e)*(2/3-$e)*6:Ie=_e,xe[Ne]=Ie*255;return xe},hsl2hsv:function(ae){var ie=ae[0],le=ae[1]/100,pe=ae[2]/100,_e,Ce;return pe*=2,le*=pe<=1?pe:2-pe,Ce=(pe+le)/2,_e=2*le/(pe+le),[ie,_e*100,Ce*100]},hsv2rgb:function(ae){var ie=ae[0]/60,le=ae[1]/100,pe=ae[2]/100,_e=Math.floor(ie)%6,Ce=ie-Math.floor(ie),$e=255*pe*(1-le),xe=255*pe*(1-le*Ce),Ie=255*pe*(1-le*(1-Ce));switch(pe=255*pe,_e){case 0:return[pe,Ie,$e];case 1:return[xe,pe,$e];case 2:return[$e,pe,Ie];case 3:return[$e,xe,pe];case 4:return[Ie,$e,pe];case 5:return[pe,$e,xe]}},hsv2hsl:function(ae){var ie=ae[0],le=ae[1]/100,pe=ae[2]/100,_e,Ce;return Ce=(2-le)*pe,_e=le*pe,_e/=Ce<=1?Ce:2-Ce,Ce/=2,[ie,_e*100,Ce*100]},rgb2hex:function(oe,ae,ie){return"#"+((256+oe<<8|ae)<<8|ie).toString(16).slice(1)},hex2rgb:function(oe){return oe="0x"+oe.slice(1).replace(oe.length>4?oe:/./g,"$&$&")|0,[oe>>16,oe>>8&255,oe&255]}}},function($,z){$.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($,z,oe){var ae=oe(6),ie=oe(14);function le(pe,_e,Ce,$e){return Ce===void 0?ae.natural(pe,_e):$e===void 0?Ce:ae.natural(parseInt(Ce,10),parseInt($e,10))}$.exports={paragraph:function(pe,_e){for(var Ce=le(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.sentence());return $e.join(" ")},cparagraph:function(pe,_e){for(var Ce=le(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.csentence());return $e.join("")},sentence:function(pe,_e){for(var Ce=le(12,18,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.word());return ie.capitalize($e.join(" "))+"."},csentence:function(pe,_e){for(var Ce=le(12,18,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.cword());return $e.join("")+"。"},word:function(pe,_e){for(var Ce=le(3,10,pe,_e),$e="",xe=0;xe<Ce;xe++)$e+=ae.character("lower");return $e},cword:function(pe,_e,Ce){var $e="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",xe;switch(arguments.length){case 0:pe=$e,xe=1;break;case 1:typeof arguments[0]=="string"?xe=1:(xe=pe,pe=$e);break;case 2:typeof arguments[0]=="string"?xe=_e:(xe=this.natural(pe,_e),pe=$e);break;case 3:xe=this.natural(_e,Ce);break}for(var Ie="",Ne=0;Ne<xe;Ne++)Ie+=pe.charAt(this.natural(0,pe.length-1));return Ie},title:function(pe,_e){for(var Ce=le(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.capitalize(this.word()));return $e.join(" ")},ctitle:function(pe,_e){for(var Ce=le(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.cword());return $e.join("")}}},function($,z,oe){var ae=oe(3);$.exports={capitalize:function(ie){return(ie+"").charAt(0).toUpperCase()+(ie+"").substr(1)},upper:function(ie){return(ie+"").toUpperCase()},lower:function(ie){return(ie+"").toLowerCase()},pick:function(le,pe,_e){return ae.isArray(le)?(pe===void 0&&(pe=1),_e===void 0&&(_e=pe)):(le=[].slice.call(arguments),pe=1,_e=1),pe===1&&_e===1?le[this.natural(0,le.length-1)]:this.shuffle(le,pe,_e)},shuffle:function(le,pe,_e){le=le||[];for(var Ce=le.slice(0),$e=[],xe=0,Ie=Ce.length,Ne=0;Ne<Ie;Ne++)xe=this.natural(0,Ce.length-1),$e.push(Ce[xe]),Ce.splice(xe,1);switch(arguments.length){case 0:case 1:return $e;case 2:_e=pe;case 3:return pe=parseInt(pe,10),_e=parseInt(_e,10),$e.slice(0,this.natural(pe,_e))}},order:function ie(le){ie.cache=ie.cache||{},arguments.length>1&&(le=[].slice.call(arguments,0));var pe=ie.options,_e=pe.context.templatePath.join("."),Ce=ie.cache[_e]=ie.cache[_e]||{index:0,array:le};return Ce.array[Ce.index++%Ce.array.length]}}},function($,z){$.exports={first:function(){var oe=["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(oe)},last:function(){var oe=["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(oe)},name:function(oe){return this.first()+" "+(oe?this.first()+" ":"")+this.last()},cfirst:function(){var oe="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(oe)},clast:function(){var oe="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(oe)},cname:function(){return this.cfirst()+this.clast()}}},function($,z){$.exports={url:function(oe,ae){return(oe||this.protocol())+"://"+(ae||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(oe){return this.word()+"."+(oe||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(oe){return this.character("lower")+"."+this.word()+"@"+(oe||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function($,z,oe){var ae=oe(18),ie=["东北","华北","华东","华中","华南","西南","西北"];$.exports={region:function(){return this.pick(ie)},province:function(){return this.pick(ae).name},city:function(le){var pe=this.pick(ae),_e=this.pick(pe.children);return le?[pe.name,_e.name].join(" "):_e.name},county:function(le){var pe=this.pick(ae),_e=this.pick(pe.children),Ce=this.pick(_e.children)||{name:"-"};return le?[pe.name,_e.name,Ce.name].join(" "):Ce.name},zip:function(le){for(var pe="",_e=0;_e<(le||6);_e++)pe+=this.natural(0,9);return pe}}},function($,z){var oe={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 ae(le){for(var pe={},_e=0,Ce;_e<le.length;_e++)Ce=le[_e],!(!Ce||!Ce.id)&&(pe[Ce.id]=Ce);for(var $e=[],xe=0;xe<le.length;xe++)if(Ce=le[xe],!!Ce){if(Ce.pid==null&&Ce.parentId==null){$e.push(Ce);continue}var Ie=pe[Ce.pid]||pe[Ce.parentId];Ie&&(Ie.children||(Ie.children=[]),Ie.children.push(Ce))}return $e}var ie=function(){var le=[];for(var pe in oe){var _e=pe.slice(2,6)==="0000"?void 0:pe.slice(4,6)=="00"?pe.slice(0,2)+"0000":pe.slice(0,4)+"00";le.push({id:pe,pid:_e,name:oe[pe]})}return ae(le)}();$.exports=ie},function($,z,oe){var ae=oe(18);$.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var ie="abcdefABCDEF1234567890",le=this.string(ie,8)+"-"+this.string(ie,4)+"-"+this.string(ie,4)+"-"+this.string(ie,4)+"-"+this.string(ie,12);return le},uuid:function(){return this.guid()},id:function(){var ie,le=0,pe=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],_e=["1","0","X","9","8","7","6","5","4","3","2"];ie=this.pick(ae).id+this.date("yyyyMMdd")+this.string("number",3);for(var Ce=0;Ce<ie.length;Ce++)le+=ie[Ce]*pe[Ce];return ie+=_e[le%11],ie},increment:function(){var ie=0;return function(le){return ie+=+le||1}}(),inc:function(ie){return this.increment(ie)}}},function($,z,oe){var ae=oe(21),ie=oe(22);$.exports={Parser:ae,Handler:ie}},function($,z){function oe(bn){this.type=bn,this.offset=oe.offset(),this.text=oe.text()}function ae(bn,Cn){oe.call(this,"alternate"),this.left=bn,this.right=Cn}function ie(bn){oe.call(this,"match"),this.body=bn.filter(Boolean)}function le(bn,Cn){oe.call(this,bn),this.body=Cn}function pe(bn){le.call(this,"capture-group"),this.index=_n[this.offset]||(_n[this.offset]=vn++),this.body=bn}function _e(bn,Cn){oe.call(this,"quantified"),this.body=bn,this.quantifier=Cn}function Ce(bn,Cn){oe.call(this,"quantifier"),this.min=bn,this.max=Cn,this.greedy=!0}function $e(bn,Cn){oe.call(this,"charset"),this.invert=bn,this.body=Cn}function xe(bn,Cn){oe.call(this,"range"),this.start=bn,this.end=Cn}function Ie(bn){oe.call(this,"literal"),this.body=bn,this.escaped=this.body!=this.text}function Ne(bn){oe.call(this,"unicode"),this.code=bn.toUpperCase()}function Fe(bn){oe.call(this,"hex"),this.code=bn.toUpperCase()}function ze(bn){oe.call(this,"octal"),this.code=bn.toUpperCase()}function At(bn){oe.call(this,"back-reference"),this.code=bn.toUpperCase()}function Lt(bn){oe.call(this,"control-character"),this.code=bn.toUpperCase()}var hn=function(){function bn($n,wn){function Tn(){this.constructor=$n}Tn.prototype=wn.prototype,$n.prototype=new Tn}function Cn($n,wn,Tn,xn,kn){function An(On,Mn){function Fn(Vn){function Bn(zn){return zn.charCodeAt(0).toString(16).toUpperCase()}return Vn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(zn){return"\\x0"+Bn(zn)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(zn){return"\\x"+Bn(zn)}).replace(/[\u0180-\u0FFF]/g,function(zn){return"\\u0"+Bn(zn)}).replace(/[\u1080-\uFFFF]/g,function(zn){return"\\u"+Bn(zn)})}var Dn,Nn;switch(On.length){case 0:Dn="end of input";break;case 1:Dn=On[0];break;default:Dn=On.slice(0,-1).join(", ")+" or "+On[On.length-1]}return Nn=Mn?'"'+Fn(Mn)+'"':"end of input","Expected "+Dn+" but "+Nn+" found."}this.expected=$n,this.found=wn,this.offset=Tn,this.line=xn,this.column=kn,this.name="SyntaxError",this.message=An($n,wn)}function En($n){function wn(){return $n.substring(Wr,nr)}function Tn(){return Wr}function xn(Rn){function jn(Ir,jr,Xr){var to,io;for(to=jr;Xr>to;to++)io=$n.charAt(to),io===`
|
||
`?(Ir.seenCR||Ir.line++,Ir.column=1,Ir.seenCR=!1):io==="\r"||io==="\u2028"||io==="\u2029"?(Ir.line++,Ir.column=1,Ir.seenCR=!0):(Ir.column++,Ir.seenCR=!1)}return ao!==Rn&&(ao>Rn&&(ao=0,go={line:1,column:1,seenCR:!1}),jn(go,ao,Rn),ao=Rn),go}function kn(Rn){fo>nr||(nr>fo&&(fo=nr,po=[]),po.push(Rn))}function An(Rn){var jn=0;for(Rn.sort();jn<Rn.length;)Rn[jn-1]===Rn[jn]?Rn.splice(jn,1):jn++}function On(){var Rn,jn,Ir,jr,Xr;return Rn=nr,jn=Mn(),jn!==null?(Ir=nr,$n.charCodeAt(nr)===124?(jr=no,nr++):(jr=null,Fr===0&&kn(ea)),jr!==null?(Xr=On(),Xr!==null?(jr=[jr,Xr],Ir=jr):(nr=Ir,Ir=Vr)):(nr=Ir,Ir=Vr),Ir===null&&(Ir=Qr),Ir!==null?(Wr=Rn,jn=ta(jn,Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Mn(){var Rn,jn,Ir,jr,Xr;if(Rn=nr,jn=Dn(),jn===null&&(jn=Qr),jn!==null)if(Ir=nr,Fr++,jr=Bn(),Fr--,jr===null?Ir=Qr:(nr=Ir,Ir=Vr),Ir!==null){for(jr=[],Xr=Vn(),Xr===null&&(Xr=Fn());Xr!==null;)jr.push(Xr),Xr=Vn(),Xr===null&&(Xr=Fn());jr!==null?(Xr=Nn(),Xr===null&&(Xr=Qr),Xr!==null?(Wr=Rn,jn=na(jn,jr,Xr),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)}else nr=Rn,Rn=Vr;else nr=Rn,Rn=Vr;return Rn}function Fn(){var Rn;return Rn=Wn(),Rn===null&&(Rn=rr(),Rn===null&&(Rn=gr())),Rn}function Dn(){var Rn,jn;return Rn=nr,$n.charCodeAt(nr)===94?(jn=_o,nr++):(jn=null,Fr===0&&kn(bo)),jn!==null&&(Wr=Rn,jn=ra()),jn===null&&(nr=Rn),Rn=jn,Rn}function Nn(){var Rn,jn;return Rn=nr,$n.charCodeAt(nr)===36?(jn=oa,nr++):(jn=null,Fr===0&&kn(aa)),jn!==null&&(Wr=Rn,jn=ia()),jn===null&&(nr=Rn),Rn=jn,Rn}function Vn(){var Rn,jn,Ir;return Rn=nr,jn=Fn(),jn!==null?(Ir=Bn(),Ir!==null?(Wr=Rn,jn=sa(jn,Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Bn(){var Rn,jn,Ir;return Fr++,Rn=nr,jn=zn(),jn!==null?(Ir=qn(),Ir===null&&(Ir=Qr),Ir!==null?(Wr=Rn,jn=ua(jn,Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Fr--,Rn===null&&(jn=null,Fr===0&&kn(la)),Rn}function zn(){var Rn;return Rn=Xn(),Rn===null&&(Rn=Un(),Rn===null&&(Rn=Jn(),Rn===null&&(Rn=lr(),Rn===null&&(Rn=_r(),Rn===null&&(Rn=ir()))))),Rn}function Xn(){var Rn,jn,Ir,jr,Xr,to;return Rn=nr,$n.charCodeAt(nr)===123?(jn=ho,nr++):(jn=null,Fr===0&&kn(mo)),jn!==null?(Ir=Yn(),Ir!==null?($n.charCodeAt(nr)===44?(jr=da,nr++):(jr=null,Fr===0&&kn(fa)),jr!==null?(Xr=Yn(),Xr!==null?($n.charCodeAt(nr)===125?(to=So,nr++):(to=null,Fr===0&&kn(Co)),to!==null?(Wr=Rn,jn=pa(Ir,Xr),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Un(){var Rn,jn,Ir,jr;return Rn=nr,$n.charCodeAt(nr)===123?(jn=ho,nr++):(jn=null,Fr===0&&kn(mo)),jn!==null?(Ir=Yn(),Ir!==null?($n.substr(nr,2)===Eo?(jr=Eo,nr+=2):(jr=null,Fr===0&&kn(ha)),jr!==null?(Wr=Rn,jn=ma(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Jn(){var Rn,jn,Ir,jr;return Rn=nr,$n.charCodeAt(nr)===123?(jn=ho,nr++):(jn=null,Fr===0&&kn(mo)),jn!==null?(Ir=Yn(),Ir!==null?($n.charCodeAt(nr)===125?(jr=So,nr++):(jr=null,Fr===0&&kn(Co)),jr!==null?(Wr=Rn,jn=va(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function lr(){var Rn,jn;return Rn=nr,$n.charCodeAt(nr)===43?(jn=ga,nr++):(jn=null,Fr===0&&kn(ya)),jn!==null&&(Wr=Rn,jn=ba()),jn===null&&(nr=Rn),Rn=jn,Rn}function _r(){var Rn,jn;return Rn=nr,$n.charCodeAt(nr)===42?(jn=Sa,nr++):(jn=null,Fr===0&&kn(Ca)),jn!==null&&(Wr=Rn,jn=Ea()),jn===null&&(nr=Rn),Rn=jn,Rn}function ir(){var Rn,jn;return Rn=nr,$n.charCodeAt(nr)===63?(jn=$o,nr++):(jn=null,Fr===0&&kn(wo)),jn!==null&&(Wr=Rn,jn=$a()),jn===null&&(nr=Rn),Rn=jn,Rn}function qn(){var Rn;return $n.charCodeAt(nr)===63?(Rn=$o,nr++):(Rn=null,Fr===0&&kn(wo)),Rn}function Yn(){var Rn,jn,Ir;if(Rn=nr,jn=[],To.test($n.charAt(nr))?(Ir=$n.charAt(nr),nr++):(Ir=null,Fr===0&&kn(xo)),Ir!==null)for(;Ir!==null;)jn.push(Ir),To.test($n.charAt(nr))?(Ir=$n.charAt(nr),nr++):(Ir=null,Fr===0&&kn(xo));else jn=Vr;return jn!==null&&(Wr=Rn,jn=wa(jn)),jn===null&&(nr=Rn),Rn=jn,Rn}function Wn(){var Rn,jn,Ir,jr;return Rn=nr,$n.charCodeAt(nr)===40?(jn=Ta,nr++):(jn=null,Fr===0&&kn(xa)),jn!==null?(Ir=Gn(),Ir===null&&(Ir=Zn(),Ir===null&&(Ir=pr(),Ir===null&&(Ir=tr()))),Ir!==null?($n.charCodeAt(nr)===41?(jr=Pa,nr++):(jr=null,Fr===0&&kn(ka)),jr!==null?(Wr=Rn,jn=Aa(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function tr(){var Rn,jn;return Rn=nr,jn=On(),jn!==null&&(Wr=Rn,jn=Oa(jn)),jn===null&&(nr=Rn),Rn=jn,Rn}function pr(){var Rn,jn,Ir;return Rn=nr,$n.substr(nr,2)===Po?(jn=Po,nr+=2):(jn=null,Fr===0&&kn(Ia)),jn!==null?(Ir=On(),Ir!==null?(Wr=Rn,jn=Na(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Gn(){var Rn,jn,Ir;return Rn=nr,$n.substr(nr,2)===ko?(jn=ko,nr+=2):(jn=null,Fr===0&&kn(Ma)),jn!==null?(Ir=On(),Ir!==null?(Wr=Rn,jn=Ra(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Zn(){var Rn,jn,Ir;return Rn=nr,$n.substr(nr,2)===Ao?(jn=Ao,nr+=2):(jn=null,Fr===0&&kn(Da)),jn!==null?(Ir=On(),Ir!==null?(Wr=Rn,jn=La(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function rr(){var Rn,jn,Ir,jr,Xr;if(Fr++,Rn=nr,$n.charCodeAt(nr)===91?(jn=Va,nr++):(jn=null,Fr===0&&kn(Fa)),jn!==null)if($n.charCodeAt(nr)===94?(Ir=_o,nr++):(Ir=null,Fr===0&&kn(bo)),Ir===null&&(Ir=Qr),Ir!==null){for(jr=[],Xr=mr(),Xr===null&&(Xr=Sr());Xr!==null;)jr.push(Xr),Xr=mr(),Xr===null&&(Xr=Sr());jr!==null?($n.charCodeAt(nr)===93?(Xr=za,nr++):(Xr=null,Fr===0&&kn(Ha)),Xr!==null?(Wr=Rn,jn=Ua(Ir,jr),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)}else nr=Rn,Rn=Vr;else nr=Rn,Rn=Vr;return Fr--,Rn===null&&(jn=null,Fr===0&&kn(Ba)),Rn}function mr(){var Rn,jn,Ir,jr;return Fr++,Rn=nr,jn=Sr(),jn!==null?($n.charCodeAt(nr)===45?(Ir=Ga,nr++):(Ir=null,Fr===0&&kn(Wa)),Ir!==null?(jr=Sr(),jr!==null?(Wr=Rn,jn=Ka(jn,jr),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Fr--,Rn===null&&(jn=null,Fr===0&&kn(ja)),Rn}function Sr(){var Rn;return Fr++,Rn=xr(),Rn===null&&(Rn=ar()),Fr--,Rn===null&&Fr===0&&kn(Ya),Rn}function ar(){var Rn,jn;return Rn=nr,qa.test($n.charAt(nr))?(jn=$n.charAt(nr),nr++):(jn=null,Fr===0&&kn(Za)),jn!==null&&(Wr=Rn,jn=vo(jn)),jn===null&&(nr=Rn),Rn=jn,Rn}function xr(){var Rn;return Rn=cr(),Rn===null&&(Rn=Cr(),Rn===null&&(Rn=Dr(),Rn===null&&(Rn=Lr(),Rn===null&&(Rn=Mr(),Rn===null&&(Rn=Er(),Rn===null&&(Rn=$r(),Rn===null&&(Rn=ur(),Rn===null&&(Rn=er(),Rn===null&&(Rn=or(),Rn===null&&(Rn=Tr(),Rn===null&&(Rn=Or(),Rn===null&&(Rn=zr(),Rn===null&&(Rn=Hr(),Rn===null&&(Rn=Ur(),Rn===null&&(Rn=Gr(),Rn===null&&(Rn=qr(),Rn===null&&(Rn=Jr()))))))))))))))))),Rn}function gr(){var Rn;return Rn=Pr(),Rn===null&&(Rn=sr(),Rn===null&&(Rn=dr())),Rn}function Pr(){var Rn,jn;return Rn=nr,$n.charCodeAt(nr)===46?(jn=Xa,nr++):(jn=null,Fr===0&&kn(Ja)),jn!==null&&(Wr=Rn,jn=Qa()),jn===null&&(nr=Rn),Rn=jn,Rn}function dr(){var Rn,jn;return Fr++,Rn=nr,ti.test($n.charAt(nr))?(jn=$n.charAt(nr),nr++):(jn=null,Fr===0&&kn(ni)),jn!==null&&(Wr=Rn,jn=vo(jn)),jn===null&&(nr=Rn),Rn=jn,Fr--,Rn===null&&(jn=null,Fr===0&&kn(ei)),Rn}function sr(){var Rn;return Rn=hr(),Rn===null&&(Rn=Ar(),Rn===null&&(Rn=Cr(),Rn===null&&(Rn=Dr(),Rn===null&&(Rn=Lr(),Rn===null&&(Rn=Mr(),Rn===null&&(Rn=Er(),Rn===null&&(Rn=$r(),Rn===null&&(Rn=ur(),Rn===null&&(Rn=er(),Rn===null&&(Rn=or(),Rn===null&&(Rn=Tr(),Rn===null&&(Rn=Or(),Rn===null&&(Rn=zr(),Rn===null&&(Rn=Nr(),Rn===null&&(Rn=Hr(),Rn===null&&(Rn=Ur(),Rn===null&&(Rn=Gr(),Rn===null&&(Rn=qr(),Rn===null&&(Rn=Jr()))))))))))))))))))),Rn}function cr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===so?(jn=so,nr+=2):(jn=null,Fr===0&&kn(Oo)),jn!==null&&(Wr=Rn,jn=ri()),jn===null&&(nr=Rn),Rn=jn,Rn}function hr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===so?(jn=so,nr+=2):(jn=null,Fr===0&&kn(Oo)),jn!==null&&(Wr=Rn,jn=oi()),jn===null&&(nr=Rn),Rn=jn,Rn}function Ar(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Io?(jn=Io,nr+=2):(jn=null,Fr===0&&kn(ai)),jn!==null&&(Wr=Rn,jn=ii()),jn===null&&(nr=Rn),Rn=jn,Rn}function Dr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===No?(jn=No,nr+=2):(jn=null,Fr===0&&kn(si)),jn!==null&&(Wr=Rn,jn=li()),jn===null&&(nr=Rn),Rn=jn,Rn}function Lr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Mo?(jn=Mo,nr+=2):(jn=null,Fr===0&&kn(ui)),jn!==null&&(Wr=Rn,jn=ci()),jn===null&&(nr=Rn),Rn=jn,Rn}function Mr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Ro?(jn=Ro,nr+=2):(jn=null,Fr===0&&kn(di)),jn!==null&&(Wr=Rn,jn=fi()),jn===null&&(nr=Rn),Rn=jn,Rn}function Er(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Do?(jn=Do,nr+=2):(jn=null,Fr===0&&kn(pi)),jn!==null&&(Wr=Rn,jn=hi()),jn===null&&(nr=Rn),Rn=jn,Rn}function $r(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Lo?(jn=Lo,nr+=2):(jn=null,Fr===0&&kn(mi)),jn!==null&&(Wr=Rn,jn=vi()),jn===null&&(nr=Rn),Rn=jn,Rn}function ur(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Bo?(jn=Bo,nr+=2):(jn=null,Fr===0&&kn(gi)),jn!==null&&(Wr=Rn,jn=yi()),jn===null&&(nr=Rn),Rn=jn,Rn}function er(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Vo?(jn=Vo,nr+=2):(jn=null,Fr===0&&kn(_i)),jn!==null&&(Wr=Rn,jn=bi()),jn===null&&(nr=Rn),Rn=jn,Rn}function or(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Fo?(jn=Fo,nr+=2):(jn=null,Fr===0&&kn(Si)),jn!==null&&(Wr=Rn,jn=Ci()),jn===null&&(nr=Rn),Rn=jn,Rn}function Tr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===zo?(jn=zo,nr+=2):(jn=null,Fr===0&&kn(Ei)),jn!==null&&(Wr=Rn,jn=$i()),jn===null&&(nr=Rn),Rn=jn,Rn}function Or(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Ho?(jn=Ho,nr+=2):(jn=null,Fr===0&&kn(wi)),jn!==null&&(Wr=Rn,jn=Ti()),jn===null&&(nr=Rn),Rn=jn,Rn}function zr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===Uo?(jn=Uo,nr+=2):(jn=null,Fr===0&&kn(xi)),jn!==null&&(Wr=Rn,jn=Pi()),jn===null&&(nr=Rn),Rn=jn,Rn}function Cr(){var Rn,jn,Ir;return Rn=nr,$n.substr(nr,2)===jo?(jn=jo,nr+=2):(jn=null,Fr===0&&kn(ki)),jn!==null?($n.length>nr?(Ir=$n.charAt(nr),nr++):(Ir=null,Fr===0&&kn(Go)),Ir!==null?(Wr=Rn,jn=Ai(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Nr(){var Rn,jn,Ir;return Rn=nr,$n.charCodeAt(nr)===92?(jn=Wo,nr++):(jn=null,Fr===0&&kn(Ko)),jn!==null?(Oi.test($n.charAt(nr))?(Ir=$n.charAt(nr),nr++):(Ir=null,Fr===0&&kn(Ii)),Ir!==null?(Wr=Rn,jn=Ni(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}function Hr(){var Rn,jn,Ir,jr;if(Rn=nr,$n.substr(nr,2)===lo?(jn=lo,nr+=2):(jn=null,Fr===0&&kn(Yo)),jn!==null){if(Ir=[],qo.test($n.charAt(nr))?(jr=$n.charAt(nr),nr++):(jr=null,Fr===0&&kn(Zo)),jr!==null)for(;jr!==null;)Ir.push(jr),qo.test($n.charAt(nr))?(jr=$n.charAt(nr),nr++):(jr=null,Fr===0&&kn(Zo));else Ir=Vr;Ir!==null?(Wr=Rn,jn=Mi(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)}else nr=Rn,Rn=Vr;return Rn}function Ur(){var Rn,jn,Ir,jr;if(Rn=nr,$n.substr(nr,2)===Xo?(jn=Xo,nr+=2):(jn=null,Fr===0&&kn(Ri)),jn!==null){if(Ir=[],uo.test($n.charAt(nr))?(jr=$n.charAt(nr),nr++):(jr=null,Fr===0&&kn(co)),jr!==null)for(;jr!==null;)Ir.push(jr),uo.test($n.charAt(nr))?(jr=$n.charAt(nr),nr++):(jr=null,Fr===0&&kn(co));else Ir=Vr;Ir!==null?(Wr=Rn,jn=Di(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)}else nr=Rn,Rn=Vr;return Rn}function Gr(){var Rn,jn,Ir,jr;if(Rn=nr,$n.substr(nr,2)===Jo?(jn=Jo,nr+=2):(jn=null,Fr===0&&kn(Li)),jn!==null){if(Ir=[],uo.test($n.charAt(nr))?(jr=$n.charAt(nr),nr++):(jr=null,Fr===0&&kn(co)),jr!==null)for(;jr!==null;)Ir.push(jr),uo.test($n.charAt(nr))?(jr=$n.charAt(nr),nr++):(jr=null,Fr===0&&kn(co));else Ir=Vr;Ir!==null?(Wr=Rn,jn=Bi(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)}else nr=Rn,Rn=Vr;return Rn}function qr(){var Rn,jn;return Rn=nr,$n.substr(nr,2)===lo?(jn=lo,nr+=2):(jn=null,Fr===0&&kn(Yo)),jn!==null&&(Wr=Rn,jn=Vi()),jn===null&&(nr=Rn),Rn=jn,Rn}function Jr(){var Rn,jn,Ir;return Rn=nr,$n.charCodeAt(nr)===92?(jn=Wo,nr++):(jn=null,Fr===0&&kn(Ko)),jn!==null?($n.length>nr?(Ir=$n.charAt(nr),nr++):(Ir=null,Fr===0&&kn(Go)),Ir!==null?(Wr=Rn,jn=vo(Ir),jn===null&&(nr=Rn),Rn=jn):(nr=Rn,Rn=Vr)):(nr=Rn,Rn=Vr),Rn}var kr,Rr=arguments.length>1?arguments[1]:{},Kr={regexp:On},Yr=On,Vr=null,Qr="",no="|",ea='"|"',ta=function(Rn,jn){return jn?new ae(Rn,jn[1]):Rn},na=function(Rn,jn,Ir){return new ie([Rn].concat(jn).concat([Ir]))},_o="^",bo='"^"',ra=function(){return new oe("start")},oa="$",aa='"$"',ia=function(){return new oe("end")},sa=function(Rn,jn){return new _e(Rn,jn)},la="Quantifier",ua=function(Rn,jn){return jn&&(Rn.greedy=!1),Rn},ho="{",mo='"{"',da=",",fa='","',So="}",Co='"}"',pa=function(Rn,jn){return new Ce(Rn,jn)},Eo=",}",ha='",}"',ma=function(Rn){return new Ce(Rn,1/0)},va=function(Rn){return new Ce(Rn,Rn)},ga="+",ya='"+"',ba=function(){return new Ce(1,1/0)},Sa="*",Ca='"*"',Ea=function(){return new Ce(0,1/0)},$o="?",wo='"?"',$a=function(){return new Ce(0,1)},To=/^[0-9]/,xo="[0-9]",wa=function(Rn){return+Rn.join("")},Ta="(",xa='"("',Pa=")",ka='")"',Aa=function(Rn){return Rn},Oa=function(Rn){return new pe(Rn)},Po="?:",Ia='"?:"',Na=function(Rn){return new le("non-capture-group",Rn)},ko="?=",Ma='"?="',Ra=function(Rn){return new le("positive-lookahead",Rn)},Ao="?!",Da='"?!"',La=function(Rn){return new le("negative-lookahead",Rn)},Ba="CharacterSet",Va="[",Fa='"["',za="]",Ha='"]"',Ua=function(Rn,jn){return new $e(!!Rn,jn)},ja="CharacterRange",Ga="-",Wa='"-"',Ka=function(Rn,jn){return new xe(Rn,jn)},Ya="Character",qa=/^[^\\\]]/,Za="[^\\\\\\]]",vo=function(Rn){return new Ie(Rn)},Xa=".",Ja='"."',Qa=function(){return new oe("any-character")},ei="Literal",ti=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",so="\\b",Oo='"\\\\b"',ri=function(){return new oe("backspace")},oi=function(){return new oe("word-boundary")},Io="\\B",ai='"\\\\B"',ii=function(){return new oe("non-word-boundary")},No="\\d",si='"\\\\d"',li=function(){return new oe("digit")},Mo="\\D",ui='"\\\\D"',ci=function(){return new oe("non-digit")},Ro="\\f",di='"\\\\f"',fi=function(){return new oe("form-feed")},Do="\\n",pi='"\\\\n"',hi=function(){return new oe("line-feed")},Lo="\\r",mi='"\\\\r"',vi=function(){return new oe("carriage-return")},Bo="\\s",gi='"\\\\s"',yi=function(){return new oe("white-space")},Vo="\\S",_i='"\\\\S"',bi=function(){return new oe("non-white-space")},Fo="\\t",Si='"\\\\t"',Ci=function(){return new oe("tab")},zo="\\v",Ei='"\\\\v"',$i=function(){return new oe("vertical-tab")},Ho="\\w",wi='"\\\\w"',Ti=function(){return new oe("word")},Uo="\\W",xi='"\\\\W"',Pi=function(){return new oe("non-word")},jo="\\c",ki='"\\\\c"',Go="any character",Ai=function(Rn){return new Lt(Rn)},Wo="\\",Ko='"\\\\"',Oi=/^[1-9]/,Ii="[1-9]",Ni=function(Rn){return new At(Rn)},lo="\\0",Yo='"\\\\0"',qo=/^[0-7]/,Zo="[0-7]",Mi=function(Rn){return new ze(Rn.join(""))},Xo="\\x",Ri='"\\\\x"',uo=/^[0-9a-fA-F]/,co="[0-9a-fA-F]",Di=function(Rn){return new Fe(Rn.join(""))},Jo="\\u",Li='"\\\\u"',Bi=function(Rn){return new Ne(Rn.join(""))},Vi=function(){return new oe("null-character")},nr=0,Wr=0,ao=0,go={line:1,column:1,seenCR:!1},fo=0,po=[],Fr=0;if("startRule"in Rr){if(!(Rr.startRule in Kr))throw new Error(`Can't start parsing from rule "`+Rr.startRule+'".');Yr=Kr[Rr.startRule]}if(oe.offset=Tn,oe.text=wn,kr=Yr(),kr!==null&&nr===$n.length)return kr;throw An(po),Wr=Math.max(nr,fo),new Cn(po,Wr<$n.length?$n.charAt(Wr):null,Wr,xn(Wr).line,xn(Wr).column)}return bn(Cn,Error),{SyntaxError:Cn,parse:En}}(),vn=1,_n={};$.exports=hn},function($,z,oe){var ae=oe(3),ie=oe(5),le={extend:ae.extend},pe=Fe(97,122),_e=Fe(65,90),Ce=Fe(48,57),$e=Fe(32,47)+Fe(58,64)+Fe(91,96)+Fe(123,126),xe=Fe(32,126),Ie=` \f
|
||
\r \v \u2028\u2029`,Ne={"\\w":pe+_e+Ce+"_","\\W":$e.replace("_",""),"\\s":Ie,"\\S":function(){for(var ze=xe,At=0;At<Ie.length;At++)ze=ze.replace(Ie[At],"");return ze}(),"\\d":Ce,"\\D":pe+_e+$e};function Fe(ze,At){for(var Lt="",hn=ze;hn<=At;hn++)Lt+=String.fromCharCode(hn);return Lt}le.gen=function(ze,At,Lt){return Lt=Lt||{guid:1},le[ze.type]?le[ze.type](ze,At,Lt):le.token(ze,At,Lt)},le.extend({token:function(ze,At,Lt){switch(ze.type){case"start":case"end":return"";case"any-character":return ie.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return ie.pick(Ce.split(""));case"non-digit":return ie.pick((pe+_e+$e).split(""));case"form-feed":break;case"line-feed":return ze.body||ze.text;case"carriage-return":break;case"white-space":return ie.pick(Ie.split(""));case"non-white-space":return ie.pick((pe+_e+Ce).split(""));case"tab":break;case"vertical-tab":break;case"word":return ie.pick((pe+_e+Ce).split(""));case"non-word":return ie.pick($e.replace("_","").split(""))}return ze.body||ze.text},alternate:function(ze,At,Lt){return this.gen(ie.boolean()?ze.left:ze.right,At,Lt)},match:function(ze,At,Lt){At="";for(var hn=0;hn<ze.body.length;hn++)At+=this.gen(ze.body[hn],At,Lt);return At},"capture-group":function(ze,At,Lt){return At=this.gen(ze.body,At,Lt),Lt[Lt.guid++]=At,At},"non-capture-group":function(ze,At,Lt){return this.gen(ze.body,At,Lt)},"positive-lookahead":function(ze,At,Lt){return this.gen(ze.body,At,Lt)},"negative-lookahead":function(ze,At,Lt){return""},quantified:function(ze,At,Lt){At="";for(var hn=this.quantifier(ze.quantifier),vn=0;vn<hn;vn++)At+=this.gen(ze.body,At,Lt);return At},quantifier:function(ze,At,Lt){var hn=Math.max(ze.min,0),vn=isFinite(ze.max)?ze.max:hn+ie.integer(3,7);return ie.integer(hn,vn)},charset:function(ze,At,Lt){if(ze.invert)return this["invert-charset"](ze,At,Lt);var hn=ie.pick(ze.body);return this.gen(hn,At,Lt)},"invert-charset":function(ze,At,Lt){for(var hn=xe,vn=0,_n;vn<ze.body.length;vn++)switch(_n=ze.body[vn],_n.type){case"literal":hn=hn.replace(_n.body,"");break;case"range":for(var bn=this.gen(_n.start,At,Lt).charCodeAt(),Cn=this.gen(_n.end,At,Lt).charCodeAt(),En=bn;En<=Cn;En++)hn=hn.replace(String.fromCharCode(En),"");default:var $n=Ne[_n.text];if($n)for(var wn=0;wn<=$n.length;wn++)hn=hn.replace($n[wn],"")}return ie.pick(hn.split(""))},range:function(ze,At,Lt){var hn=this.gen(ze.start,At,Lt).charCodeAt(),vn=this.gen(ze.end,At,Lt).charCodeAt();return String.fromCharCode(ie.integer(hn,vn))},literal:function(ze,At,Lt){return ze.escaped?ze.body:ze.text},unicode:function(ze,At,Lt){return String.fromCharCode(parseInt(ze.code,16))},hex:function(ze,At,Lt){return String.fromCharCode(parseInt(ze.code,16))},octal:function(ze,At,Lt){return String.fromCharCode(parseInt(ze.code,8))},"back-reference":function(ze,At,Lt){return Lt[ze.code]||""},CONTROL_CHARACTER_MAP:function(){for(var ze="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),At=`\0 \x07 \b
|
||
\v \f \r \x1B `.split(" "),Lt={},hn=0;hn<ze.length;hn++)Lt[ze[hn]]=At[hn];return Lt}(),"control-character":function(ze,At,Lt){return this.CONTROL_CHARACTER_MAP[ze.code]}}),$.exports=le},function($,z,oe){$.exports=oe(24)},function($,z,oe){var ae=oe(2),ie=oe(3),le=oe(4);function pe(_e,Ce,$e){$e=$e||[];var xe={name:typeof Ce=="string"?Ce.replace(ae.RE_KEY,"$1"):Ce,template:_e,type:ie.type(_e),rule:le.parse(Ce)};switch(xe.path=$e.slice(0),xe.path.push(Ce===void 0?"ROOT":xe.name),xe.type){case"array":xe.items=[],ie.each(_e,function(Ie,Ne){xe.items.push(pe(Ie,Ne,xe.path))});break;case"object":xe.properties=[],ie.each(_e,function(Ie,Ne){xe.properties.push(pe(Ie,Ne,xe.path))});break}return xe}$.exports=pe},function($,z,oe){$.exports=oe(26)},function($,z,oe){var ae=oe(2),ie=oe(3),le=oe(23);function pe($e,xe){for(var Ie=le($e),Ne=_e.diff(Ie,xe),Fe=0;Fe<Ne.length;Fe++);return Ne}var _e={diff:function(xe,Ie,Ne){var Fe=[];return this.name(xe,Ie,Ne,Fe)&&this.type(xe,Ie,Ne,Fe)&&(this.value(xe,Ie,Ne,Fe),this.properties(xe,Ie,Ne,Fe),this.items(xe,Ie,Ne,Fe)),Fe},name:function($e,xe,Ie,Ne){var Fe=Ne.length;return Ce.equal("name",$e.path,Ie+"",$e.name+"",Ne),Ne.length===Fe},type:function($e,xe,Ie,Ne){var Fe=Ne.length;switch($e.type){case"string":if($e.template.match(ae.RE_PLACEHOLDER))return!0;break;case"array":if($e.rule.parameters&&($e.rule.min!==void 0&&$e.rule.max===void 0&&$e.rule.count===1||$e.rule.parameters[2]))return!0;break;case"function":return!0}return Ce.equal("type",$e.path,ie.type(xe),$e.type,Ne),Ne.length===Fe},value:function($e,xe,Ie,Ne){var Fe=Ne.length,ze=$e.rule,At=$e.type;if(At==="object"||At==="array"||At==="function")return!0;if(!ze.parameters){switch(At){case"regexp":return Ce.match("value",$e.path,xe,$e.template,Ne),Ne.length===Fe;case"string":if($e.template.match(ae.RE_PLACEHOLDER))return Ne.length===Fe;break}return Ce.equal("value",$e.path,xe,$e.template,Ne),Ne.length===Fe}var Lt;switch(At){case"number":var hn=(xe+"").split(".");hn[0]=+hn[0],ze.min!==void 0&&ze.max!==void 0&&(Ce.greaterThanOrEqualTo("value",$e.path,hn[0],Math.min(ze.min,ze.max),Ne),Ce.lessThanOrEqualTo("value",$e.path,hn[0],Math.max(ze.min,ze.max),Ne)),ze.min!==void 0&&ze.max===void 0&&Ce.equal("value",$e.path,hn[0],ze.min,Ne,"[value] "+Ie),ze.decimal&&(ze.dmin!==void 0&&ze.dmax!==void 0&&(Ce.greaterThanOrEqualTo("value",$e.path,hn[1].length,ze.dmin,Ne),Ce.lessThanOrEqualTo("value",$e.path,hn[1].length,ze.dmax,Ne)),ze.dmin!==void 0&&ze.dmax===void 0&&Ce.equal("value",$e.path,hn[1].length,ze.dmin,Ne));break;case"boolean":break;case"string":Lt=xe.match(new RegExp($e.template,"g")),Lt=Lt?Lt.length:0,ze.min!==void 0&&ze.max!==void 0&&(Ce.greaterThanOrEqualTo("repeat count",$e.path,Lt,ze.min,Ne),Ce.lessThanOrEqualTo("repeat count",$e.path,Lt,ze.max,Ne)),ze.min!==void 0&&ze.max===void 0&&Ce.equal("repeat count",$e.path,Lt,ze.min,Ne);break;case"regexp":Lt=xe.match(new RegExp($e.template.source.replace(/^\^|\$$/g,""),"g")),Lt=Lt?Lt.length:0,ze.min!==void 0&&ze.max!==void 0&&(Ce.greaterThanOrEqualTo("repeat count",$e.path,Lt,ze.min,Ne),Ce.lessThanOrEqualTo("repeat count",$e.path,Lt,ze.max,Ne)),ze.min!==void 0&&ze.max===void 0&&Ce.equal("repeat count",$e.path,Lt,ze.min,Ne);break}return Ne.length===Fe},properties:function($e,xe,Ie,Ne){var Fe=Ne.length,ze=$e.rule,At=ie.keys(xe);if($e.properties){if($e.rule.parameters?(ze.min!==void 0&&ze.max!==void 0&&(Ce.greaterThanOrEqualTo("properties length",$e.path,At.length,Math.min(ze.min,ze.max),Ne),Ce.lessThanOrEqualTo("properties length",$e.path,At.length,Math.max(ze.min,ze.max),Ne)),ze.min!==void 0&&ze.max===void 0&&ze.count!==1&&Ce.equal("properties length",$e.path,At.length,ze.min,Ne)):Ce.equal("properties length",$e.path,At.length,$e.properties.length,Ne),Ne.length!==Fe)return!1;for(var Lt=0;Lt<At.length;Lt++)Ne.push.apply(Ne,this.diff(function(){var hn;return ie.each($e.properties,function(vn){vn.name===At[Lt]&&(hn=vn)}),hn||$e.properties[Lt]}(),xe[At[Lt]],At[Lt]));return Ne.length===Fe}},items:function($e,xe,Ie,Ne){var Fe=Ne.length;if($e.items){var ze=$e.rule;if(!$e.rule.parameters)Ce.equal("items length",$e.path,xe.length,$e.items.length,Ne);else{if(ze.min!==void 0&&ze.max!==void 0&&(Ce.greaterThanOrEqualTo("items",$e.path,xe.length,Math.min(ze.min,ze.max)*$e.items.length,Ne,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),Ce.lessThanOrEqualTo("items",$e.path,xe.length,Math.max(ze.min,ze.max)*$e.items.length,Ne,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),ze.min!==void 0&&ze.max===void 0){if(ze.count===1)return Ne.length===Fe;Ce.equal("items length",$e.path,xe.length,ze.min*$e.items.length,Ne)}if(ze.parameters[2])return Ne.length===Fe}if(Ne.length!==Fe)return!1;for(var At=0;At<xe.length;At++)Ne.push.apply(Ne,this.diff($e.items[At%$e.items.length],xe[At],At%$e.items.length));return Ne.length===Fe}}},Ce={message:function($e){return($e.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",$e.type.toUpperCase()).replace("{ltype}",$e.type.toLowerCase()).replace("{path}",ie.isArray($e.path)&&$e.path.join(".")||$e.path).replace("{action}",$e.action).replace("{expected}",$e.expected).replace("{actual}",$e.actual)},equal:function($e,xe,Ie,Ne,Fe,ze){if(Ie===Ne)return!0;switch($e){case"type":if(Ne==="regexp"&&Ie==="string")return!0;break}var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"is equal to",message:ze};return At.message=Ce.message(At),Fe.push(At),!1},match:function($e,xe,Ie,Ne,Fe,ze){if(Ne.test(Ie))return!0;var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"matches",message:ze};return At.message=Ce.message(At),Fe.push(At),!1},notEqual:function($e,xe,Ie,Ne,Fe,ze){if(Ie!==Ne)return!0;var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"is not equal to",message:ze};return At.message=Ce.message(At),Fe.push(At),!1},greaterThan:function($e,xe,Ie,Ne,Fe,ze){if(Ie>Ne)return!0;var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"is greater than",message:ze};return At.message=Ce.message(At),Fe.push(At),!1},lessThan:function($e,xe,Ie,Ne,Fe,ze){if(Ie<Ne)return!0;var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"is less to",message:ze};return At.message=Ce.message(At),Fe.push(At),!1},greaterThanOrEqualTo:function($e,xe,Ie,Ne,Fe,ze){if(Ie>=Ne)return!0;var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"is greater than or equal to",message:ze};return At.message=Ce.message(At),Fe.push(At),!1},lessThanOrEqualTo:function($e,xe,Ie,Ne,Fe,ze){if(Ie<=Ne)return!0;var At={path:xe,type:$e,actual:Ie,expected:Ne,action:"is less than or equal to",message:ze};return At.message=Ce.message(At),Fe.push(At),!1}};pe.Diff=_e,pe.Assert=Ce,$.exports=pe},function($,z,oe){$.exports=oe(28)},function($,z,oe){var ae=oe(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(ze,At,Lt,hn){var vn=document.createEvent("CustomEvent");return vn.initCustomEvent(ze,At,Lt,hn),vn}}var ie={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},le="readystatechange loadstart progress abort error load timeout loadend".split(" "),pe="timeout withCredentials".split(" "),_e="readyState responseURL status statusText responseType response responseText responseXML".split(" "),Ce={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 $e(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}$e._settings={timeout:"10-100"},$e.setup=function(Fe){return ae.extend($e._settings,Fe),$e._settings},ae.extend($e,ie),ae.extend($e.prototype,ie),$e.prototype.mock=!0,$e.prototype.match=!1,ae.extend($e.prototype,{open:function(Fe,ze,At,Lt,hn){var vn=this;ae.extend(this.custom,{method:Fe,url:ze,async:typeof At=="boolean"?At:!0,username:Lt,password:hn,options:{url:ze,type:Fe}}),this.custom.timeout=function(wn){if(typeof wn=="number")return wn;if(typeof wn=="string"&&!~wn.indexOf("-"))return parseInt(wn,10);if(typeof wn=="string"&&~wn.indexOf("-")){var Tn=wn.split("-"),xn=parseInt(Tn[0],10),kn=parseInt(Tn[1],10);return Math.round(Math.random()*(kn-xn))+xn}}($e._settings.timeout);var _n=Ie(this.custom.options);function bn(wn){for(var Tn=0;Tn<_e.length;Tn++)try{vn[_e[Tn]]=Cn[_e[Tn]]}catch{}vn.dispatchEvent(new Event(wn.type))}if(!_n){var Cn=xe();this.custom.xhr=Cn;for(var En=0;En<le.length;En++)Cn.addEventListener(le[En],bn);Lt?Cn.open(Fe,ze,At,Lt,hn):Cn.open(Fe,ze,At);for(var $n=0;$n<pe.length;$n++)try{Cn[pe[$n]]=vn[pe[$n]]}catch{}return}this.match=!0,this.custom.template=_n,this.readyState=$e.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(Fe,ze){if(!this.match){this.custom.xhr.setRequestHeader(Fe,ze);return}var At=this.custom.requestHeaders;At[Fe]?At[Fe]+=","+ze:At[Fe]=ze},timeout:0,withCredentials:!1,upload:{},send:function(ze){var At=this;if(this.custom.options.body=ze,!this.match){this.custom.xhr.send(ze);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(Lt,this.custom.timeout):Lt();function Lt(){At.readyState=$e.HEADERS_RECEIVED,At.dispatchEvent(new Event("readystatechange")),At.readyState=$e.LOADING,At.dispatchEvent(new Event("readystatechange")),At.status=200,At.statusText=Ce[200],At.response=At.responseText=JSON.stringify(Ne(At.custom.template,At.custom.options),null,4),At.readyState=$e.DONE,At.dispatchEvent(new Event("readystatechange")),At.dispatchEvent(new Event("load")),At.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=$e.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),ae.extend($e.prototype,{responseURL:"",status:$e.UNSENT,statusText:"",getResponseHeader:function(Fe){return this.match?this.custom.responseHeaders[Fe.toLowerCase()]:this.custom.xhr.getResponseHeader(Fe)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var Fe=this.custom.responseHeaders,ze="";for(var At in Fe)Fe.hasOwnProperty(At)&&(ze+=At+": "+Fe[At]+`\r
|
||
`);return ze},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),ae.extend($e.prototype,{addEventListener:function(ze,At){var Lt=this.custom.events;Lt[ze]||(Lt[ze]=[]),Lt[ze].push(At)},removeEventListener:function(ze,At){for(var Lt=this.custom.events[ze]||[],hn=0;hn<Lt.length;hn++)Lt[hn]===At&&Lt.splice(hn--,1)},dispatchEvent:function(ze){for(var At=this.custom.events[ze.type]||[],Lt=0;Lt<At.length;Lt++)At[Lt].call(this,ze);var hn="on"+ze.type;this[hn]&&this[hn](ze)}});function xe(){var Fe=function(){var Lt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,hn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=location.href,_n=hn.exec(vn.toLowerCase())||[];return Lt.test(_n[1])}();return window.ActiveXObject?!Fe&&ze()||At():ze();function ze(){try{return new window._XMLHttpRequest}catch{}}function At(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function Ie(Fe){for(var ze in $e.Mock._mocked){var At=$e.Mock._mocked[ze];if((!At.rurl||Lt(At.rurl,Fe.url))&&(!At.rtype||Lt(At.rtype,Fe.type.toLowerCase())))return At}function Lt(hn,vn){if(ae.type(hn)==="string")return hn===vn;if(ae.type(hn)==="regexp")return hn.test(vn)}}function Ne(Fe,ze){return ae.isFunction(Fe.template)?Fe.template(ze):$e.Mock.mock(Fe.template)}$.exports=$e}])})})(mock);var mockExports=mock.exports;const mockJs=getDefaultExportFromCjs(mockExports);function lexer($){for(var z=[],oe=0;oe<$.length;){var ae=$[oe];if(ae==="*"||ae==="+"||ae==="?"){z.push({type:"MODIFIER",index:oe,value:$[oe++]});continue}if(ae==="\\"){z.push({type:"ESCAPED_CHAR",index:oe++,value:$[oe++]});continue}if(ae==="{"){z.push({type:"OPEN",index:oe,value:$[oe++]});continue}if(ae==="}"){z.push({type:"CLOSE",index:oe,value:$[oe++]});continue}if(ae===":"){for(var ie="",le=oe+1;le<$.length;){var pe=$.charCodeAt(le);if(pe>=48&&pe<=57||pe>=65&&pe<=90||pe>=97&&pe<=122||pe===95){ie+=$[le++];continue}break}if(!ie)throw new TypeError("Missing parameter name at ".concat(oe));z.push({type:"NAME",index:oe,value:ie}),oe=le;continue}if(ae==="("){var _e=1,Ce="",le=oe+1;if($[le]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(le));for(;le<$.length;){if($[le]==="\\"){Ce+=$[le++]+$[le++];continue}if($[le]===")"){if(_e--,_e===0){le++;break}}else if($[le]==="("&&(_e++,$[le+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(le));Ce+=$[le++]}if(_e)throw new TypeError("Unbalanced pattern at ".concat(oe));if(!Ce)throw new TypeError("Missing pattern at ".concat(oe));z.push({type:"PATTERN",index:oe,value:Ce}),oe=le;continue}z.push({type:"CHAR",index:oe,value:$[oe++]})}return z.push({type:"END",index:oe,value:""}),z}function parse($,z){z===void 0&&(z={});for(var oe=lexer($),ae=z.prefixes,ie=ae===void 0?"./":ae,le="[^".concat(escapeString(z.delimiter||"/#?"),"]+?"),pe=[],_e=0,Ce=0,$e="",xe=function(En){if(Ce<oe.length&&oe[Ce].type===En)return oe[Ce++].value},Ie=function(En){var $n=xe(En);if($n!==void 0)return $n;var wn=oe[Ce],Tn=wn.type,xn=wn.index;throw new TypeError("Unexpected ".concat(Tn," at ").concat(xn,", expected ").concat(En))},Ne=function(){for(var En="",$n;$n=xe("CHAR")||xe("ESCAPED_CHAR");)En+=$n;return En};Ce<oe.length;){var Fe=xe("CHAR"),ze=xe("NAME"),At=xe("PATTERN");if(ze||At){var Lt=Fe||"";ie.indexOf(Lt)===-1&&($e+=Lt,Lt=""),$e&&(pe.push($e),$e=""),pe.push({name:ze||_e++,prefix:Lt,suffix:"",pattern:At||le,modifier:xe("MODIFIER")||""});continue}var hn=Fe||xe("ESCAPED_CHAR");if(hn){$e+=hn;continue}$e&&(pe.push($e),$e="");var vn=xe("OPEN");if(vn){var Lt=Ne(),_n=xe("NAME")||"",bn=xe("PATTERN")||"",Cn=Ne();Ie("CLOSE"),pe.push({name:_n||(bn?_e++:""),pattern:_n&&!bn?le:bn,prefix:Lt,suffix:Cn,modifier:xe("MODIFIER")||""});continue}Ie("END")}return pe}function escapeString($){return $.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags($){return $&&$.sensitive?"":"i"}function regexpToRegexp($,z){if(!z)return $;for(var oe=/\((?:\?<(.*?)>)?(?!\?)/g,ae=0,ie=oe.exec($.source);ie;)z.push({name:ie[1]||ae++,prefix:"",suffix:"",modifier:"",pattern:""}),ie=oe.exec($.source);return $}function arrayToRegexp($,z,oe){var ae=$.map(function(ie){return pathToRegexp(ie,z,oe).source});return new RegExp("(?:".concat(ae.join("|"),")"),flags(oe))}function stringToRegexp($,z,oe){return tokensToRegexp(parse($,oe),z,oe)}function tokensToRegexp($,z,oe){oe===void 0&&(oe={});for(var ae=oe.strict,ie=ae===void 0?!1:ae,le=oe.start,pe=le===void 0?!0:le,_e=oe.end,Ce=_e===void 0?!0:_e,$e=oe.encode,xe=$e===void 0?function(xn){return xn}:$e,Ie=oe.delimiter,Ne=Ie===void 0?"/#?":Ie,Fe=oe.endsWith,ze=Fe===void 0?"":Fe,At="[".concat(escapeString(ze),"]|$"),Lt="[".concat(escapeString(Ne),"]"),hn=pe?"^":"",vn=0,_n=$;vn<_n.length;vn++){var bn=_n[vn];if(typeof bn=="string")hn+=escapeString(xe(bn));else{var Cn=escapeString(xe(bn.prefix)),En=escapeString(xe(bn.suffix));if(bn.pattern)if(z&&z.push(bn),Cn||En)if(bn.modifier==="+"||bn.modifier==="*"){var $n=bn.modifier==="*"?"?":"";hn+="(?:".concat(Cn,"((?:").concat(bn.pattern,")(?:").concat(En).concat(Cn,"(?:").concat(bn.pattern,"))*)").concat(En,")").concat($n)}else hn+="(?:".concat(Cn,"(").concat(bn.pattern,")").concat(En,")").concat(bn.modifier);else bn.modifier==="+"||bn.modifier==="*"?hn+="((?:".concat(bn.pattern,")").concat(bn.modifier,")"):hn+="(".concat(bn.pattern,")").concat(bn.modifier);else hn+="(?:".concat(Cn).concat(En,")").concat(bn.modifier)}}if(Ce)ie||(hn+="".concat(Lt,"?")),hn+=oe.endsWith?"(?=".concat(At,")"):"$";else{var wn=$[$.length-1],Tn=typeof wn=="string"?Lt.indexOf(wn[wn.length-1])>-1:wn===void 0;ie||(hn+="(?:".concat(Lt,"(?=").concat(At,"))?")),Tn||(hn+="(?=".concat(Lt,"|").concat(At,")"))}return new RegExp(hn,flags(oe))}function pathToRegexp($,z,oe){return $ instanceof RegExp?regexpToRegexp($,z):Array.isArray($)?arrayToRegexp($,z,oe):stringToRegexp($,z,oe)}const Mock=mockJs;function createProdMockServer($){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 z={};for(let oe in this.custom.requestHeaders)z[oe.toString().toLowerCase()]=this.custom.requestHeaders[oe];this.custom.options=Object.assign({},this.custom.options,{headers:z})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let z=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&z&&(this.custom.xhr.responseType=z)};for(const{url:z,method:oe,response:ae,timeout:ie}of $)__setupMock__(ie),Mock.mock(pathToRegexp(z,void 0,{end:!1}),oe||"get",__XHR2ExpressReqWrapper__(ae))}function __param2Obj__($){const z=$.split("?")[1];return z?JSON.parse('{"'+decodeURIComponent(z).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__($){return function(z){let oe=null;if(typeof $=="function"){const{body:ae,type:ie,url:le,headers:pe}=z;let _e=ae;try{_e=JSON.parse(ae)}catch{}oe=$({method:ie,body:_e,query:__param2Obj__(le),headers:pe})}else oe=$;return Mock.mock(oe)}}function __setupMock__($=0){$&&Mock.setup({timeout:$})}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($=>{mockModules.push(...modules[$].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=createApp(App);Object.keys(directives).forEach($=>{app.directive($,directives[$])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async $=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,$),setupStore(app),app.use(MotionPlugin).use(useI18n).use(installer).use(Se).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{ElInfiniteScroll as $,normalizeStyle$1 as A,markRaw as B,toDisplayString$1 as C,usePermissionStoreHook as D,extractPathList as E,Fragment as F,transformI18n as G,deleteChildren as H,In as I,Je as J,Ke as K,h$3 as L,ut as M,Et as N,getDefaultExportFromCjs as O,Pn as P,resolveDynamicComponent as Q,Hn as R,Sn as S,onUpdated as T,provide as U,onBeforeUpdate as V,normalizeProps as W,guardReactiveProps as X,useI18n$1 as Y,commonjsGlobal as Z,_export_sfc as _,onMounted as a,toRaw as a$,useRouter as a0,addDialog as a1,closeDialog as a2,closeAllDialog as a3,hot as a4,Br as a5,getCurrentInstance as a6,useCssVars as a7,getCurrentScope as a8,onScopeDispose as a9,responsiveStorageNameSpace as aA,getConfig as aB,store as aC,FontIcon as aD,IconifyIconOffline as aE,IconifyIconOnline as aF,ElMessage as aG,S as aH,withScopeId as aI,shallowReactive as aJ,toHandlers as aK,getAugmentedNamespace as aL,vue_runtime_esmBundler as aM,isVNode$1 as aN,customRef as aO,isClient$1 as aP,noop$5 as aQ,toValue as aR,tryOnScopeDispose$1 as aS,isIOS as aT,watchEffect as aU,toRef as aV,Teleport as aW,isRef as aX,createApp as aY,withKeys as aZ,shallowRef as a_,renderSlot as aa,inject as ab,onUnmounted as ac,reactive as ad,mergeProps as ae,withModifiers as af,Ln as ag,http as ah,onBeforeMount as ai,TransitionGroup as aj,normalizeClass as ak,vShow as al,vr as am,createCommentVNode as an,pt as ao,Ve as ap,qe as aq,Xe as ar,tryOnMounted as as,tryOnUnmounted$1 as at,useDebounceFn as au,Zr as av,useIntervalFn as aw,D$1 as ax,defineStore as ay,Kn as az,onBeforeUnmount as b,createStaticVNode as b0,useRoute as b1,addIcon$1 as b2,getParentPaths as b3,findRouteByPath as b4,useMultiTagsStoreHook as b5,Mt as b6,$t as b7,data$1 as b8,Ae as b9,getAuths as bA,hasAuth as bB,Be as bC,ElCol as bD,handleTree as bE,wr as bF,appendFieldByUniqueId as bG,getNodeByUniqueId as bH,j$2 as ba,getTopMenu as bb,emitter as bc,Transition as bd,handleAliveRoute as be,P$1 as bf,data as bg,routerArrays as bh,Ct as bi,KeepAlive as bj,removeToken as bk,Qn as bl,resetRouter as bm,useMultiTagsStore as bn,storeToRefs as bo,useUserStoreHook as bp,router as bq,remainingPaths as br,cloneVNode as bs,dayjs as bt,tn as bu,LinearGradient$1 as bv,ElMessageBox as bw,render$4 as bx,Ue as by,initRouter as bz,resolveComponent as c,defineComponent as d,createBlock as e,openBlock as f,createVNode as g,createTextVNode as h,createBaseVNode as i,resolveDirective as j,createElementBlock as k,renderList as l,withDirectives as m,nextTick as n,oo as o,pushScopeId as p,popScopeId as q,ref as r,axios$1 as s,_t as t,unref as u,toRef$1 as v,withCtx as w,computed as x,watch as y,zt as z};
|