tensorneko-util 0.3.13__py3-none-any.whl → 0.3.15__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,188 +0,0 @@
1
- const p$1=function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerpolicy&&(o.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?o.credentials="include":a.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}};p$1();/**
2
- * @vue/shared v3.4.24
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function makeMap(t,r){const n=new Set(t.split(","));return r?i=>n.has(i.toLowerCase()):i=>n.has(i)}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),isModelListener=t=>t.startsWith("onUpdate:"),extend$1=Object.assign,remove=(t,r)=>{const n=t.indexOf(r);n>-1&&t.splice(n,1)},hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn$1=(t,r)=>hasOwnProperty$1.call(t,r),isArray$2=Array.isArray,isMap=t=>toTypeString(t)==="[object Map]",isSet=t=>toTypeString(t)==="[object Set]",isDate=t=>toTypeString(t)==="[object Date]",isFunction$2=t=>typeof t=="function",isString$2=t=>typeof t=="string",isSymbol=t=>typeof t=="symbol",isObject$4=t=>t!==null&&typeof t=="object",isPromise=t=>(isObject$4(t)||isFunction$2(t))&&isFunction$2(t.then)&&isFunction$2(t.catch),objectToString=Object.prototype.toString,toTypeString=t=>objectToString.call(t),toRawType=t=>toTypeString(t).slice(8,-1),isPlainObject$1=t=>toTypeString(t)==="[object Object]",isIntegerKey=t=>isString$2(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const r=Object.create(null);return n=>r[n]||(r[n]=t(n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(r,n)=>n?n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize(t)}`:""),hasChanged=(t,r)=>!Object.is(t,r),invokeArrayFns=(t,r)=>{for(let n=0;n<t.length;n++)t[n](r)},def=(t,r,n)=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value:n})},looseToNumber=t=>{const r=parseFloat(t);return isNaN(r)?t:r},toNumber=t=>{const r=isString$2(t)?Number(t):NaN;return isNaN(r)?t:r};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function normalizeStyle$1(t){if(isArray$2(t)){const r={};for(let n=0;n<t.length;n++){const i=t[n],a=isString$2(i)?parseStringStyle(i):normalizeStyle$1(i);if(a)for(const o in a)r[o]=a[o]}return r}else if(isString$2(t)||isObject$4(t))return t}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(t){const r={};return t.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const i=n.split(propertyDelimiterRE);i.length>1&&(r[i[0].trim()]=i[1].trim())}}),r}function normalizeClass(t){let r="";if(isString$2(t))r=t;else if(isArray$2(t))for(let n=0;n<t.length;n++){const i=normalizeClass(t[n]);i&&(r+=i+" ")}else if(isObject$4(t))for(const n in t)t[n]&&(r+=n+" ");return r.trim()}function normalizeProps(t){if(!t)return null;let{class:r,style:n}=t;return r&&!isString$2(r)&&(t.class=normalizeClass(r)),n&&(t.style=normalizeStyle$1(n)),t}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(t){return!!t||t===""}function looseCompareArrays(t,r){if(t.length!==r.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=looseEqual(t[i],r[i]);return n}function looseEqual(t,r){if(t===r)return!0;let n=isDate(t),i=isDate(r);if(n||i)return n&&i?t.getTime()===r.getTime():!1;if(n=isSymbol(t),i=isSymbol(r),n||i)return t===r;if(n=isArray$2(t),i=isArray$2(r),n||i)return n&&i?looseCompareArrays(t,r):!1;if(n=isObject$4(t),i=isObject$4(r),n||i){if(!n||!i)return!1;const a=Object.keys(t).length,o=Object.keys(r).length;if(a!==o)return!1;for(const s in t){const l=t.hasOwnProperty(s),u=r.hasOwnProperty(s);if(l&&!u||!l&&u||!looseEqual(t[s],r[s]))return!1}}return String(t)===String(r)}function looseIndexOf(t,r){return t.findIndex(n=>looseEqual(n,r))}const toDisplayString=t=>isString$2(t)?t:t==null?"":isArray$2(t)||isObject$4(t)&&(t.toString===objectToString||!isFunction$2(t.toString))?JSON.stringify(t,replacer,2):String(t),replacer=(t,r)=>r&&r.__v_isRef?replacer(t,r.value):isMap(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((n,[i,a],o)=>(n[stringifySymbol(i,o)+" =>"]=a,n),{})}:isSet(r)?{[`Set(${r.size})`]:[...r.values()].map(n=>stringifySymbol(n))}:isSymbol(r)?stringifySymbol(r):isObject$4(r)&&!isArray$2(r)&&!isPlainObject$1(r)?String(r):r,stringifySymbol=(t,r="")=>{var n;return isSymbol(t)?`Symbol(${(n=t.description)!=null?n:r})`:t};/**
6
- * @vue/reactivity v3.4.24
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let activeEffectScope;class EffectScope{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!r&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(r){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,r()}finally{activeEffectScope=n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(r){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!r){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function recordEffectScope(t,r=activeEffectScope){r&&r.active&&r.effects.push(t)}function getCurrentScope(){return activeEffectScope}let activeEffect;class ReactiveEffect{constructor(r,n,i,a){this.fn=r,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,recordEffectScope(this,a)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,pauseTracking();for(let r=0;r<this._depsLength;r++){const n=this.deps[r];if(n.computed&&(triggerComputed(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(r){this._dirtyLevel=r?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let r=shouldTrack,n=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=n,shouldTrack=r}}stop(){var r;this.active&&(preCleanupEffect(this),postCleanupEffect(this),(r=this.onStop)==null||r.call(this),this.active=!1)}}function triggerComputed(t){return t.value}function preCleanupEffect(t){t._trackId++,t._depsLength=0}function postCleanupEffect(t){if(t.deps.length>t._depsLength){for(let r=t._depsLength;r<t.deps.length;r++)cleanupDepEffect(t.deps[r],t);t.deps.length=t._depsLength}}function cleanupDepEffect(t,r){const n=t.get(r);n!==void 0&&r._trackId!==n&&(t.delete(r),t.size===0&&t.cleanup())}let shouldTrack=!0,pauseScheduleStack=0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const t=trackStack.pop();shouldTrack=t===void 0?!0:t}function pauseScheduling(){pauseScheduleStack++}function resetScheduling(){for(pauseScheduleStack--;!pauseScheduleStack&&queueEffectSchedulers.length;)queueEffectSchedulers.shift()()}function trackEffect(t,r,n){if(r.get(t)!==t._trackId){r.set(t,t._trackId);const i=t.deps[t._depsLength];i!==r?(i&&cleanupDepEffect(i,t),t.deps[t._depsLength++]=r):t._depsLength++}}const queueEffectSchedulers=[];function triggerEffects(t,r,n){pauseScheduling();for(const i of t.keys()){let a;i._dirtyLevel<r&&(a!=null?a:a=t.get(i)===i._trackId)&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=r),i._shouldSchedule&&(a!=null?a:a=t.get(i)===i._trackId)&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&queueEffectSchedulers.push(i.scheduler)))}resetScheduling()}const createDep=(t,r)=>{const n=new Map;return n.cleanup=t,n.computed=r,n},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(t,r,n){if(shouldTrack&&activeEffect){let i=targetMap.get(t);i||targetMap.set(t,i=new Map);let a=i.get(n);a||i.set(n,a=createDep(()=>i.delete(n))),trackEffect(activeEffect,a)}}function trigger(t,r,n,i,a,o){const s=targetMap.get(t);if(!s)return;let l=[];if(r==="clear")l=[...s.values()];else if(n==="length"&&isArray$2(t)){const u=Number(i);s.forEach((c,d)=>{(d==="length"||!isSymbol(d)&&d>=u)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),r){case"add":isArray$2(t)?isIntegerKey(n)&&l.push(s.get("length")):(l.push(s.get(ITERATE_KEY)),isMap(t)&&l.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$2(t)||(l.push(s.get(ITERATE_KEY)),isMap(t)&&l.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(t)&&l.push(s.get(ITERATE_KEY));break}pauseScheduling();for(const u of l)u&&triggerEffects(u,4);resetScheduling()}function getDepFromReactive(t,r){var n;return(n=targetMap.get(t))==null?void 0:n.get(r)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const t={};return["includes","indexOf","lastIndexOf"].forEach(r=>{t[r]=function(...n){const i=toRaw(this);for(let o=0,s=this.length;o<s;o++)track(i,"get",o+"");const a=i[r](...n);return a===-1||a===!1?i[r](...n.map(toRaw)):a}}),["push","pop","shift","unshift","splice"].forEach(r=>{t[r]=function(...n){pauseTracking(),pauseScheduling();const i=toRaw(this)[r].apply(this,n);return resetScheduling(),resetTracking(),i}}),t}function hasOwnProperty(t){isSymbol(t)||(t=String(t));const r=toRaw(this);return track(r,"has",t),r.hasOwnProperty(t)}class BaseReactiveHandler{constructor(r=!1,n=!1){this._isReadonly=r,this._isShallow=n}get(r,n,i){const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(a?o?shallowReadonlyMap:readonlyMap:o?shallowReactiveMap:reactiveMap).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(i)?r:void 0;const s=isArray$2(r);if(!a){if(s&&hasOwn$1(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,i);if(n==="hasOwnProperty")return hasOwnProperty}const l=Reflect.get(r,n,i);return(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(a||track(r,"get",n),o)?l:isRef(l)?s&&isIntegerKey(n)?l:l.value:isObject$4(l)?a?readonly(l):reactive(l):l}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(r=!1){super(!1,r)}set(r,n,i,a){let o=r[n];if(!this._isShallow){const u=isReadonly(o);if(!isShallow(i)&&!isReadonly(i)&&(o=toRaw(o),i=toRaw(i)),!isArray$2(r)&&isRef(o)&&!isRef(i))return u?!1:(o.value=i,!0)}const s=isArray$2(r)&&isIntegerKey(n)?Number(n)<r.length:hasOwn$1(r,n),l=Reflect.set(r,n,i,a);return r===toRaw(a)&&(s?hasChanged(i,o)&&trigger(r,"set",n,i):trigger(r,"add",n,i)),l}deleteProperty(r,n){const i=hasOwn$1(r,n);r[n];const a=Reflect.deleteProperty(r,n);return a&&i&&trigger(r,"delete",n,void 0),a}has(r,n){const i=Reflect.has(r,n);return(!isSymbol(n)||!builtInSymbols.has(n))&&track(r,"has",n),i}ownKeys(r){return track(r,"iterate",isArray$2(r)?"length":ITERATE_KEY),Reflect.ownKeys(r)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(r=!1){super(!0,r)}set(r,n){return!0}deleteProperty(r,n){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=t=>t,getProto=t=>Reflect.getPrototypeOf(t);function get$1(t,r,n=!1,i=!1){t=t.__v_raw;const a=toRaw(t),o=toRaw(r);n||(hasChanged(r,o)&&track(a,"get",r),track(a,"get",o));const{has:s}=getProto(a),l=i?toShallow:n?toReadonly:toReactive;if(s.call(a,r))return l(t.get(r));if(s.call(a,o))return l(t.get(o));t!==a&&t.get(r)}function has(t,r=!1){const n=this.__v_raw,i=toRaw(n),a=toRaw(t);return r||(hasChanged(t,a)&&track(i,"has",t),track(i,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function size(t,r=!1){return t=t.__v_raw,!r&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add$1(t){t=toRaw(t);const r=toRaw(this);return getProto(r).has.call(r,t)||(r.add(t),trigger(r,"add",t,t)),this}function set$1(t,r){r=toRaw(r);const n=toRaw(this),{has:i,get:a}=getProto(n);let o=i.call(n,t);o||(t=toRaw(t),o=i.call(n,t));const s=a.call(n,t);return n.set(t,r),o?hasChanged(r,s)&&trigger(n,"set",t,r):trigger(n,"add",t,r),this}function deleteEntry(t){const r=toRaw(this),{has:n,get:i}=getProto(r);let a=n.call(r,t);a||(t=toRaw(t),a=n.call(r,t)),i&&i.call(r,t);const o=r.delete(t);return a&&trigger(r,"delete",t,void 0),o}function clear$1(){const t=toRaw(this),r=t.size!==0,n=t.clear();return r&&trigger(t,"clear",void 0,void 0),n}function createForEach(t,r){return function(i,a){const o=this,s=o.__v_raw,l=toRaw(s),u=r?toShallow:t?toReadonly:toReactive;return!t&&track(l,"iterate",ITERATE_KEY),s.forEach((c,d)=>i.call(a,u(c),u(d),o))}}function createIterableMethod(t,r,n){return function(...i){const a=this.__v_raw,o=toRaw(a),s=isMap(o),l=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,c=a[t](...i),d=n?toShallow:r?toReadonly:toReactive;return!r&&track(o,"iterate",u?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:v,done:$}=c.next();return $?{value:v,done:$}:{value:l?[d(v[0]),d(v[1])]:d(v),done:$}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...r){return t==="delete"?!1:t==="clear"?void 0:this}}function createInstrumentations(){const t={get(o){return get$1(this,o)},get size(){return size(this)},has,add:add$1,set:set$1,delete:deleteEntry,clear:clear$1,forEach:createForEach(!1,!1)},r={get(o){return get$1(this,o,!1,!0)},get size(){return size(this)},has,add:add$1,set:set$1,delete:deleteEntry,clear:clear$1,forEach:createForEach(!1,!0)},n={get(o){return get$1(this,o,!0)},get size(){return size(this,!0)},has(o){return has.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},i={get(o){return get$1(this,o,!0,!0)},get size(){return size(this,!0)},has(o){return has.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=createIterableMethod(o,!1,!1),n[o]=createIterableMethod(o,!0,!1),r[o]=createIterableMethod(o,!1,!0),i[o]=createIterableMethod(o,!0,!0)}),[t,n,r,i]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,r){const n=r?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(i,a,o)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?i:Reflect.get(hasOwn$1(n,a)&&a in i?n:i,a,o)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,r,n,i,a){if(!isObject$4(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const o=a.get(t);if(o)return o;const s=getTargetType(t);if(s===0)return t;const l=new Proxy(t,s===2?i:n);return a.set(t,l),l}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return t?!!t.__v_raw:!1}function toRaw(t){const r=t&&t.__v_raw;return r?toRaw(r):t}function markRaw(t){return Object.isExtensible(t)&&def(t,"__v_skip",!0),t}const toReactive=t=>isObject$4(t)?reactive(t):t,toReadonly=t=>isObject$4(t)?readonly(t):t;class ComputedRefImpl{constructor(r,n,i,a){this.getter=r,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect(()=>r(this._value),()=>triggerRefValue(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){const r=toRaw(this);return(!r._cacheable||r.effect.dirty)&&hasChanged(r._value,r._value=r.effect.run())&&triggerRefValue(r,4),trackRefValue(r),r.effect._dirtyLevel>=2&&triggerRefValue(r,2),r._value}set value(r){this._setter(r)}get _dirty(){return this.effect.dirty}set _dirty(r){this.effect.dirty=r}}function computed$1(t,r,n=!1){let i,a;const o=isFunction$2(t);return o?(i=t,a=NOOP):(i=t.get,a=t.set),new ComputedRefImpl(i,a,o||!a,n)}function trackRefValue(t){var r;shouldTrack&&activeEffect&&(t=toRaw(t),trackEffect(activeEffect,(r=t.dep)!=null?r:t.dep=createDep(()=>t.dep=void 0,t instanceof ComputedRefImpl?t:void 0)))}function triggerRefValue(t,r=4,n){t=toRaw(t);const i=t.dep;i&&triggerEffects(i,r)}function isRef(t){return!!(t&&t.__v_isRef===!0)}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,r){return isRef(t)?t:new RefImpl(t,r)}class RefImpl{constructor(r,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?r:toRaw(r),this._value=n?r:toReactive(r)}get value(){return trackRefValue(this),this._value}set value(r){const n=this.__v_isShallow||isShallow(r)||isReadonly(r);r=n?r:toRaw(r),hasChanged(r,this._rawValue)&&(this._rawValue=r,this._value=n?r:toReactive(r),triggerRefValue(this,4))}}function unref(t){return isRef(t)?t.value:t}const shallowUnwrapHandlers={get:(t,r,n)=>unref(Reflect.get(t,r,n)),set:(t,r,n,i)=>{const a=t[r];return isRef(a)&&!isRef(n)?(a.value=n,!0):Reflect.set(t,r,n,i)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}function toRefs(t){const r=isArray$2(t)?new Array(t.length):{};for(const n in t)r[n]=propertyToRef(t,n);return r}class ObjectRefImpl{constructor(r,n,i){this._object=r,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const r=this._object[this._key];return r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function propertyToRef(t,r,n){const i=t[r];return isRef(i)?i:new ObjectRefImpl(t,r,n)}/**
10
- * @vue/runtime-core v3.4.24
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/const stack=[];function warn$1(t,...r){pauseTracking();const n=stack.length?stack[stack.length-1].component:null,i=n&&n.appContext.config.warnHandler,a=getComponentTrace();if(i)callWithErrorHandling(i,n,11,[t+r.map(o=>{var s,l;return(l=(s=o.toString)==null?void 0:s.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,a.map(({vnode:o})=>`at <${formatComponentName(n,o.type)}>`).join(`
14
- `),a]);else{const o=[`[Vue warn]: ${t}`,...r];a.length&&o.push(`
15
- `,...formatTrace(a)),console.warn(...o)}resetTracking()}function getComponentTrace(){let t=stack[stack.length-1];if(!t)return[];const r=[];for(;t;){const n=r[0];n&&n.vnode===t?n.recurseCount++:r.push({vnode:t,recurseCount:0});const i=t.component&&t.component.parent;t=i&&i.vnode}return r}function formatTrace(t){const r=[];return t.forEach((n,i)=>{r.push(...i===0?[]:[`
16
- `],...formatTraceEntry(n))}),r}function formatTraceEntry({vnode:t,recurseCount:r}){const n=r>0?`... (${r} recursive calls)`:"",i=t.component?t.component.parent==null:!1,a=` at <${formatComponentName(t.component,t.type,i)}`,o=">"+n;return t.props?[a,...formatProps(t.props),o]:[a+o]}function formatProps(t){const r=[],n=Object.keys(t);return n.slice(0,3).forEach(i=>{r.push(...formatProp(i,t[i]))}),n.length>3&&r.push(" ..."),r}function formatProp(t,r,n){return isString$2(r)?(r=JSON.stringify(r),n?r:[`${t}=${r}`]):typeof r=="number"||typeof r=="boolean"||r==null?n?r:[`${t}=${r}`]:isRef(r)?(r=formatProp(t,toRaw(r.value),!0),n?r:[`${t}=Ref<`,r,">"]):isFunction$2(r)?[`${t}=fn${r.name?`<${r.name}>`:""}`]:(r=toRaw(r),n?r:[`${t}=`,r])}function callWithErrorHandling(t,r,n,i){try{return i?t(...i):t()}catch(a){handleError(a,r,n)}}function callWithAsyncErrorHandling(t,r,n,i){if(isFunction$2(t)){const a=callWithErrorHandling(t,r,n,i);return a&&isPromise(a)&&a.catch(o=>{handleError(o,r,n)}),a}if(isArray$2(t)){const a=[];for(let o=0;o<t.length;o++)a.push(callWithAsyncErrorHandling(t[o],r,n,i));return a}}function handleError(t,r,n,i=!0){const a=r?r.vnode:null;if(r){let o=r.parent;const s=r.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](t,s,l)===!1)return}o=o.parent}const u=r.appContext.config.errorHandler;if(u){pauseTracking(),callWithErrorHandling(u,null,10,[t,s,l]),resetTracking();return}}logError$1(t,n,a,i)}function logError$1(t,r,n,i=!0){console.error(t)}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(t){const r=currentFlushPromise||resolvedPromise;return t?r.then(this?t.bind(this):t):r}function findInsertionIndex(t){let r=flushIndex+1,n=queue.length;for(;r<n;){const i=r+n>>>1,a=queue[i],o=getId$1(a);o<t||o===t&&a.pre?r=i+1:n=i}return r}function queueJob(t){(!queue.length||!queue.includes(t,isFlushing&&t.allowRecurse?flushIndex+1:flushIndex))&&(t.id==null?queue.push(t):queue.splice(findInsertionIndex(t.id),0,t),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(t){const r=queue.indexOf(t);r>flushIndex&&queue.splice(r,1)}function queuePostFlushCb(t){isArray$2(t)?pendingPostFlushCbs.push(...t):(!activePostFlushCbs||!activePostFlushCbs.includes(t,t.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(t),queueFlush()}function flushPreFlushCbs(t,r,n=isFlushing?flushIndex+1:0){for(;n<queue.length;n++){const i=queue[n];if(i&&i.pre){if(t&&i.id!==t.uid)continue;queue.splice(n,1),n--,i()}}}function flushPostFlushCbs(t){if(pendingPostFlushCbs.length){const r=[...new Set(pendingPostFlushCbs)].sort((n,i)=>getId$1(n)-getId$1(i));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...r);return}for(activePostFlushCbs=r,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=t=>t.id==null?1/0:t.id,comparator=(t,r)=>{const n=getId$1(t)-getId$1(r);if(n===0){if(t.pre&&!r.pre)return-1;if(r.pre&&!t.pre)return 1}return n};function flushJobs(t){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const r=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&n.active!==!1&&callWithErrorHandling(n,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(t,r,...n){if(t.isUnmounted)return;const i=t.vnode.props||EMPTY_OBJ$1;let a=n;const o=r.startsWith("update:"),s=o&&r.slice(7);if(s&&s in i){const d=`${s==="modelValue"?"model":s}Modifiers`,{number:v,trim:$}=i[d]||EMPTY_OBJ$1;$&&(a=n.map(I=>isString$2(I)?I.trim():I)),v&&(a=n.map(looseToNumber))}let l,u=i[l=toHandlerKey(r)]||i[l=toHandlerKey(camelize(r))];!u&&o&&(u=i[l=toHandlerKey(hyphenate(r))]),u&&callWithAsyncErrorHandling(u,t,6,a);const c=i[l+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,callWithAsyncErrorHandling(c,t,6,a)}}function normalizeEmitsOptions(t,r,n=!1){const i=r.emitsCache,a=i.get(t);if(a!==void 0)return a;const o=t.emits;let s={},l=!1;if(!isFunction$2(t)){const u=c=>{const d=normalizeEmitsOptions(c,r,!0);d&&(l=!0,extend$1(s,d))};!n&&r.mixins.length&&r.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!l?(isObject$4(t)&&i.set(t,null),null):(isArray$2(o)?o.forEach(u=>s[u]=null):extend$1(s,o),isObject$4(t)&&i.set(t,s),s)}function isEmitListener(t,r){return!t||!isOn(r)?!1:(r=r.slice(2).replace(/Once$/,""),hasOwn$1(t,r[0].toLowerCase()+r.slice(1))||hasOwn$1(t,hyphenate(r))||hasOwn$1(t,r))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const r=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,r}function withCtx(t,r=currentRenderingInstance,n){if(!r||t._n)return t;const i=(...a)=>{i._d&&setBlockTracking(-1);const o=setCurrentRenderingInstance(r);let s;try{s=t(...a)}finally{setCurrentRenderingInstance(o),i._d&&setBlockTracking(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:r,vnode:n,proxy:i,withProxy:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:d,props:v,data:$,setupState:I,ctx:O,inheritAttrs:R}=t,M=setCurrentRenderingInstance(t);let F,V;try{if(n.shapeFlag&4){const Y=a||i,X=Y;F=normalizeVNode(c.call(X,Y,d,v,I,$,O)),V=l}else{const Y=r;F=normalizeVNode(Y.length>1?Y(v,{attrs:l,slots:s,emit:u}):Y(v,null)),V=r.props?l:getFunctionalFallthrough(l)}}catch(Y){blockStack.length=0,handleError(Y,t,1),F=createVNode(Comment)}let G=F;if(V&&R!==!1){const Y=Object.keys(V),{shapeFlag:X}=G;Y.length&&X&7&&(o&&Y.some(isModelListener)&&(V=filterModelListeners(V,o)),G=cloneVNode(G,V))}return n.dirs&&(G=cloneVNode(G),G.dirs=G.dirs?G.dirs.concat(n.dirs):n.dirs),n.transition&&(G.transition=n.transition),F=G,setCurrentRenderingInstance(M),F}const getFunctionalFallthrough=t=>{let r;for(const n in t)(n==="class"||n==="style"||isOn(n))&&((r||(r={}))[n]=t[n]);return r},filterModelListeners=(t,r)=>{const n={};for(const i in t)(!isModelListener(i)||!(i.slice(9)in r))&&(n[i]=t[i]);return n};function shouldUpdateComponent(t,r,n){const{props:i,children:a,component:o}=t,{props:s,children:l,patchFlag:u}=r,c=o.emitsOptions;if(r.dirs||r.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return i?hasPropsChanged(i,s,c):!!s;if(u&8){const d=r.dynamicProps;for(let v=0;v<d.length;v++){const $=d[v];if(s[$]!==i[$]&&!isEmitListener(c,$))return!0}}}else return(a||l)&&(!l||!l.$stable)?!0:i===s?!1:i?s?hasPropsChanged(i,s,c):!0:!!s;return!1}function hasPropsChanged(t,r,n){const i=Object.keys(r);if(i.length!==Object.keys(t).length)return!0;for(let a=0;a<i.length;a++){const o=i[a];if(r[o]!==t[o]&&!isEmitListener(n,o))return!0}return!1}function updateHOCHostEl({vnode:t,parent:r},n){for(;r;){const i=r.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=r.vnode).el=n,r=r.parent;else break}}const COMPONENTS="components";function resolveComponent(t,r){return resolveAsset(COMPONENTS,t,!0,r)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$2(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveAsset(t,r,n=!0,i=!1){const a=currentRenderingInstance||currentInstance;if(a){const o=a.type;if(t===COMPONENTS){const l=getComponentName(o,!1);if(l&&(l===r||l===camelize(r)||l===capitalize(camelize(r))))return o}const s=resolve(a[t]||o[t],r)||resolve(a.appContext[t],r);return!s&&i?o:s}}function resolve(t,r){return t&&(t[r]||t[camelize(r)]||t[capitalize(camelize(r))])}const isSuspense=t=>t.__isSuspense;function queueEffectWithSuspense(t,r){r&&r.pendingBranch?isArray$2(t)?r.effects.push(...t):r.effects.push(t):queuePostFlushCb(t)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(t,r){return doWatch(t,null,r)}const INITIAL_WATCHER_VALUE={};function watch(t,r,n){return doWatch(t,r,n)}function doWatch(t,r,{immediate:n,deep:i,flush:a,once:o,onTrack:s,onTrigger:l}=EMPTY_OBJ$1){if(r&&o){const q=r;r=(...Z)=>{q(...Z),X()}}const u=currentInstance,c=q=>i===!0?q:traverse(q,i===!1?1:void 0);let d,v=!1,$=!1;if(isRef(t)?(d=()=>t.value,v=isShallow(t)):isReactive(t)?(d=()=>c(t),v=!0):isArray$2(t)?($=!0,v=t.some(q=>isReactive(q)||isShallow(q)),d=()=>t.map(q=>{if(isRef(q))return q.value;if(isReactive(q))return c(q);if(isFunction$2(q))return callWithErrorHandling(q,u,2)})):isFunction$2(t)?r?d=()=>callWithErrorHandling(t,u,2):d=()=>(I&&I(),callWithAsyncErrorHandling(t,u,3,[O])):d=NOOP,r&&i){const q=d;d=()=>traverse(q())}let I,O=q=>{I=G.onStop=()=>{callWithErrorHandling(q,u,4),I=G.onStop=void 0}},R;if(isInSSRComponentSetup)if(O=NOOP,r?n&&callWithAsyncErrorHandling(r,u,3,[d(),$?[]:void 0,O]):d(),a==="sync"){const q=useSSRContext();R=q.__watcherHandles||(q.__watcherHandles=[])}else return NOOP;let M=$?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const F=()=>{if(!(!G.active||!G.dirty))if(r){const q=G.run();(i||v||($?q.some((Z,Q)=>hasChanged(Z,M[Q])):hasChanged(q,M)))&&(I&&I(),callWithAsyncErrorHandling(r,u,3,[q,M===INITIAL_WATCHER_VALUE?void 0:$&&M[0]===INITIAL_WATCHER_VALUE?[]:M,O]),M=q)}else G.run()};F.allowRecurse=!!r;let V;a==="sync"?V=F:a==="post"?V=()=>queuePostRenderEffect(F,u&&u.suspense):(F.pre=!0,u&&(F.id=u.uid),V=()=>queueJob(F));const G=new ReactiveEffect(d,NOOP,V),Y=getCurrentScope(),X=()=>{G.stop(),Y&&remove(Y.effects,G)};return r?n?F():M=G.run():a==="post"?queuePostRenderEffect(G.run.bind(G),u&&u.suspense):G.run(),R&&R.push(X),X}function instanceWatch(t,r,n){const i=this.proxy,a=isString$2(t)?t.includes(".")?createPathGetter(i,t):()=>i[t]:t.bind(i,i);let o;isFunction$2(r)?o=r:(o=r.handler,n=r);const s=setCurrentInstance(this),l=doWatch(a,o.bind(i),n);return s(),l}function createPathGetter(t,r){const n=r.split(".");return()=>{let i=t;for(let a=0;a<n.length&&i;a++)i=i[n[a]];return i}}function traverse(t,r,n=0,i){if(!isObject$4(t)||t.__v_skip)return t;if(r&&r>0){if(n>=r)return t;n++}if(i=i||new Set,i.has(t))return t;if(i.add(t),isRef(t))traverse(t.value,r,n,i);else if(isArray$2(t))for(let a=0;a<t.length;a++)traverse(t[a],r,n,i);else if(isSet(t)||isMap(t))t.forEach(a=>{traverse(a,r,n,i)});else if(isPlainObject$1(t))for(const a in t)traverse(t[a],r,n,i);return t}function withDirectives(t,r){if(currentRenderingInstance===null)return t;const n=getExposeProxy(currentRenderingInstance)||currentRenderingInstance.proxy,i=t.dirs||(t.dirs=[]);for(let a=0;a<r.length;a++){let[o,s,l,u=EMPTY_OBJ$1]=r[a];o&&(isFunction$2(o)&&(o={mounted:o,updated:o}),o.deep&&traverse(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return t}function invokeDirectiveHook(t,r,n,i){const a=t.dirs,o=r&&r.dirs;for(let s=0;s<a.length;s++){const l=a[s];o&&(l.oldValue=o[s].value);let u=l.dir[i];u&&(pauseTracking(),callWithAsyncErrorHandling(u,n,8,[t.el,l,t,r]),resetTracking())}}const leaveCbKey=Symbol("_leaveCb"),enterCbKey=Symbol("_enterCb");function useTransitionState(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:r}){const n=getCurrentInstance(),i=useTransitionState();return()=>{const a=r.default&&getTransitionRawChildren(r.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const $ of a)if($.type!==Comment){o=$;break}}const s=toRaw(t),{mode:l}=s;if(i.isLeaving)return emptyPlaceholder(o);const u=getKeepAliveChild(o);if(!u)return emptyPlaceholder(o);const c=resolveTransitionHooks(u,s,i,n);setTransitionHooks(u,c);const d=n.subTree,v=d&&getKeepAliveChild(d);if(v&&v.type!==Comment&&!isSameVNodeType(u,v)){const $=resolveTransitionHooks(v,s,i,n);if(setTransitionHooks(v,$),l==="out-in")return i.isLeaving=!0,$.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},emptyPlaceholder(o);l==="in-out"&&u.type!==Comment&&($.delayLeave=(I,O,R)=>{const M=getLeavingNodesForType(i,v);M[String(v.key)]=v,I[leaveCbKey]=()=>{O(),I[leaveCbKey]=void 0,delete c.delayedLeave},c.delayedLeave=R})}return o}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,r){const{leavingVNodes:n}=t;let i=n.get(r.type);return i||(i=Object.create(null),n.set(r.type,i)),i}function resolveTransitionHooks(t,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:v,onLeave:$,onAfterLeave:I,onLeaveCancelled:O,onBeforeAppear:R,onAppear:M,onAfterAppear:F,onAppearCancelled:V}=r,G=String(t.key),Y=getLeavingNodesForType(n,t),X=(Q,ie)=>{Q&&callWithAsyncErrorHandling(Q,i,9,ie)},q=(Q,ie)=>{const J=ie[1];X(Q,ie),isArray$2(Q)?Q.every(re=>re.length<=1)&&J():Q.length<=1&&J()},Z={mode:o,persisted:s,beforeEnter(Q){let ie=l;if(!n.isMounted)if(a)ie=R||l;else return;Q[leaveCbKey]&&Q[leaveCbKey](!0);const J=Y[G];J&&isSameVNodeType(t,J)&&J.el[leaveCbKey]&&J.el[leaveCbKey](),X(ie,[Q])},enter(Q){let ie=u,J=c,re=d;if(!n.isMounted)if(a)ie=M||u,J=F||c,re=V||d;else return;let te=!1;const oe=Q[enterCbKey]=le=>{te||(te=!0,le?X(re,[Q]):X(J,[Q]),Z.delayedLeave&&Z.delayedLeave(),Q[enterCbKey]=void 0)};ie?q(ie,[Q,oe]):oe()},leave(Q,ie){const J=String(t.key);if(Q[enterCbKey]&&Q[enterCbKey](!0),n.isUnmounting)return ie();X(v,[Q]);let re=!1;const te=Q[leaveCbKey]=oe=>{re||(re=!0,ie(),oe?X(O,[Q]):X(I,[Q]),Q[leaveCbKey]=void 0,Y[J]===t&&delete Y[J])};Y[J]=t,$?q($,[Q,te]):te()},clone(Q){return resolveTransitionHooks(Q,r,n,i)}};return Z}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getKeepAliveChild(t){if(!isKeepAlive(t))return t;const{shapeFlag:r,children:n}=t;if(r&16)return n[0];if(r&32&&isFunction$2(n.default))return n.default()}function setTransitionHooks(t,r){t.shapeFlag&6&&t.component?setTransitionHooks(t.component.subTree,r):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function getTransitionRawChildren(t,r=!1,n){let i=[],a=0;for(let o=0;o<t.length;o++){let s=t[o];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Fragment?(s.patchFlag&128&&a++,i=i.concat(getTransitionRawChildren(s.children,r,l))):(r||s.type!==Comment)&&i.push(l!=null?cloneVNode(s,{key:l}):s)}if(a>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function defineComponent(t,r){return isFunction$2(t)?(()=>extend$1({name:t.name},r,{setup:t}))():t}const isAsyncWrapper=t=>!!t.type.__asyncLoader,isKeepAlive=t=>t.type.__isKeepAlive;function onActivated(t,r){registerKeepAliveHook(t,"a",r)}function onDeactivated(t,r){registerKeepAliveHook(t,"da",r)}function registerKeepAliveHook(t,r,n=currentInstance){const i=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(injectHook(r,i,n),n){let a=n.parent;for(;a&&a.parent;)isKeepAlive(a.parent.vnode)&&injectToKeepAliveRoot(i,r,n,a),a=a.parent}}function injectToKeepAliveRoot(t,r,n,i){const a=injectHook(r,t,i,!0);onUnmounted(()=>{remove(i[r],a)},n)}function injectHook(t,r,n=currentInstance,i=!1){if(n){const a=n[t]||(n[t]=[]),o=r.__weh||(r.__weh=(...s)=>{if(n.isUnmounted)return;pauseTracking();const l=setCurrentInstance(n),u=callWithAsyncErrorHandling(r,n,t,s);return l(),resetTracking(),u});return i?a.unshift(o):a.push(o),o}}const createHook=t=>(r,n=currentInstance)=>(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...i)=>r(...i),n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,r=currentInstance){injectHook("ec",t,r)}function renderList(t,r,n,i){let a;const o=n&&n[i];if(isArray$2(t)||isString$2(t)){a=new Array(t.length);for(let s=0,l=t.length;s<l;s++)a[s]=r(t[s],s,void 0,o&&o[s])}else if(typeof t=="number"){a=new Array(t);for(let s=0;s<t;s++)a[s]=r(s+1,s,void 0,o&&o[s])}else if(isObject$4(t))if(t[Symbol.iterator])a=Array.from(t,(s,l)=>r(s,l,void 0,o&&o[l]));else{const s=Object.keys(t);a=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];a[l]=r(t[c],c,l,o&&o[l])}}else a=[];return n&&(n[i]=a),a}function createSlots(t,r){for(let n=0;n<r.length;n++){const i=r[n];if(isArray$2(i))for(let a=0;a<i.length;a++)t[i[a].name]=i[a].fn;else i&&(t[i.name]=i.key?(...a)=>{const o=i.fn(...a);return o&&(o.key=i.key),o}:i.fn)}return t}function renderSlot(t,r,n={},i,a){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return r!=="default"&&(n.name=r),createVNode("slot",n,i&&i());let o=t[r];o&&o._c&&(o._d=!1),openBlock();const s=o&&ensureValidVNode(o(n)),l=createBlock(Fragment,{key:n.key||s&&s.key||`_${r}`},s||(i?i():[]),s&&t._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function ensureValidVNode(t){return t.some(r=>isVNode(r)?!(r.type===Comment||r.type===Fragment&&!ensureValidVNode(r.children)):!0)?t:null}const getPublicInstance=t=>t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:getPublicInstance(t.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,queueJob(t.update)}),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,r)=>t!==EMPTY_OBJ$1&&!t.__isScriptSetup&&hasOwn$1(t,r),PublicInstanceProxyHandlers={get({_:t},r){if(r==="__v_skip")return!0;const{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:l,appContext:u}=t;let c;if(r[0]!=="$"){const I=s[r];if(I!==void 0)switch(I){case 1:return i[r];case 2:return a[r];case 4:return n[r];case 3:return o[r]}else{if(hasSetupBinding(i,r))return s[r]=1,i[r];if(a!==EMPTY_OBJ$1&&hasOwn$1(a,r))return s[r]=2,a[r];if((c=t.propsOptions[0])&&hasOwn$1(c,r))return s[r]=3,o[r];if(n!==EMPTY_OBJ$1&&hasOwn$1(n,r))return s[r]=4,n[r];shouldCacheAccess&&(s[r]=0)}}const d=publicPropertiesMap[r];let v,$;if(d)return r==="$attrs"&&track(t.attrs,"get",""),d(t);if((v=l.__cssModules)&&(v=v[r]))return v;if(n!==EMPTY_OBJ$1&&hasOwn$1(n,r))return s[r]=4,n[r];if($=u.config.globalProperties,hasOwn$1($,r))return $[r]},set({_:t},r,n){const{data:i,setupState:a,ctx:o}=t;return hasSetupBinding(a,r)?(a[r]=n,!0):i!==EMPTY_OBJ$1&&hasOwn$1(i,r)?(i[r]=n,!0):hasOwn$1(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(o[r]=n,!0)},has({_:{data:t,setupState:r,accessCache:n,ctx:i,appContext:a,propsOptions:o}},s){let l;return!!n[s]||t!==EMPTY_OBJ$1&&hasOwn$1(t,s)||hasSetupBinding(r,s)||(l=o[0])&&hasOwn$1(l,s)||hasOwn$1(i,s)||hasOwn$1(publicPropertiesMap,s)||hasOwn$1(a.config.globalProperties,s)},defineProperty(t,r,n){return n.get!=null?t._.accessCache[r]=0:hasOwn$1(n,"value")&&this.set(t,r,n.value,null),Reflect.defineProperty(t,r,n)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(t){return isArray$2(t)?t.reduce((r,n)=>(r[n]=null,r),{}):t}let shouldCacheAccess=!0;function applyOptions(t){const r=resolveMergedOptions(t),n=t.proxy,i=t.ctx;shouldCacheAccess=!1,r.beforeCreate&&callHook$1(r.beforeCreate,t,"bc");const{data:a,computed:o,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:v,mounted:$,beforeUpdate:I,updated:O,activated:R,deactivated:M,beforeDestroy:F,beforeUnmount:V,destroyed:G,unmounted:Y,render:X,renderTracked:q,renderTriggered:Z,errorCaptured:Q,serverPrefetch:ie,expose:J,inheritAttrs:re,components:te,directives:oe,filters:le}=r;if(c&&resolveInjections(c,i,null),s)for(const Se in s){const ge=s[Se];isFunction$2(ge)&&(i[Se]=ge.bind(n))}if(a){const Se=a.call(n,n);isObject$4(Se)&&(t.data=reactive(Se))}if(shouldCacheAccess=!0,o)for(const Se in o){const ge=o[Se],Te=isFunction$2(ge)?ge.bind(n,n):isFunction$2(ge.get)?ge.get.bind(n,n):NOOP,ke=!isFunction$2(ge)&&isFunction$2(ge.set)?ge.set.bind(n):NOOP,Ie=computed({get:Te,set:ke});Object.defineProperty(i,Se,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:me=>Ie.value=me})}if(l)for(const Se in l)createWatcher(l[Se],i,n,Se);if(u){const Se=isFunction$2(u)?u.call(n):u;Reflect.ownKeys(Se).forEach(ge=>{provide(ge,Se[ge])})}d&&callHook$1(d,t,"c");function de(Se,ge){isArray$2(ge)?ge.forEach(Te=>Se(Te.bind(n))):ge&&Se(ge.bind(n))}if(de(onBeforeMount,v),de(onMounted,$),de(onBeforeUpdate,I),de(onUpdated,O),de(onActivated,R),de(onDeactivated,M),de(onErrorCaptured,Q),de(onRenderTracked,q),de(onRenderTriggered,Z),de(onBeforeUnmount,V),de(onUnmounted,Y),de(onServerPrefetch,ie),isArray$2(J))if(J.length){const Se=t.exposed||(t.exposed={});J.forEach(ge=>{Object.defineProperty(Se,ge,{get:()=>n[ge],set:Te=>n[ge]=Te})})}else t.exposed||(t.exposed={});X&&t.render===NOOP&&(t.render=X),re!=null&&(t.inheritAttrs=re),te&&(t.components=te),oe&&(t.directives=oe)}function resolveInjections(t,r,n=NOOP){isArray$2(t)&&(t=normalizeInject(t));for(const i in t){const a=t[i];let o;isObject$4(a)?"default"in a?o=inject(a.from||i,a.default,!0):o=inject(a.from||i):o=inject(a),isRef(o)?Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):r[i]=o}}function callHook$1(t,r,n){callWithAsyncErrorHandling(isArray$2(t)?t.map(i=>i.bind(r.proxy)):t.bind(r.proxy),r,n)}function createWatcher(t,r,n,i){const a=i.includes(".")?createPathGetter(n,i):()=>n[i];if(isString$2(t)){const o=r[t];isFunction$2(o)&&watch(a,o)}else if(isFunction$2(t))watch(a,t.bind(n));else if(isObject$4(t))if(isArray$2(t))t.forEach(o=>createWatcher(o,r,n,i));else{const o=isFunction$2(t.handler)?t.handler.bind(n):r[t.handler];isFunction$2(o)&&watch(a,o,t)}}function resolveMergedOptions(t){const r=t.type,{mixins:n,extends:i}=r,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,l=o.get(r);let u;return l?u=l:!a.length&&!n&&!i?u=r:(u={},a.length&&a.forEach(c=>mergeOptions(u,c,s,!0)),mergeOptions(u,r,s)),isObject$4(r)&&o.set(r,u),u}function mergeOptions(t,r,n,i=!1){const{mixins:a,extends:o}=r;o&&mergeOptions(t,o,n,!0),a&&a.forEach(s=>mergeOptions(t,s,n,!0));for(const s in r)if(!(i&&s==="expose")){const l=internalOptionMergeStrats[s]||n&&n[s];t[s]=l?l(t[s],r[s]):r[s]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,r){return r?t?function(){return extend$1(isFunction$2(t)?t.call(this,this):t,isFunction$2(r)?r.call(this,this):r)}:r:t}function mergeInject(t,r){return mergeObjectOptions(normalizeInject(t),normalizeInject(r))}function normalizeInject(t){if(isArray$2(t)){const r={};for(let n=0;n<t.length;n++)r[t[n]]=t[n];return r}return t}function mergeAsArray(t,r){return t?[...new Set([].concat(t,r))]:r}function mergeObjectOptions(t,r){return t?extend$1(Object.create(null),t,r):r}function mergeEmitsOrPropsOptions(t,r){return t?isArray$2(t)&&isArray$2(r)?[...new Set([...t,...r])]:extend$1(Object.create(null),normalizePropsOrEmits(t),normalizePropsOrEmits(r!=null?r:{})):r}function mergeWatchOptions(t,r){if(!t)return r;if(!r)return t;const n=extend$1(Object.create(null),t);for(const i in r)n[i]=mergeAsArray(t[i],r[i]);return n}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(t,r){return function(i,a=null){isFunction$2(i)||(i=extend$1({},i)),a!=null&&!isObject$4(a)&&(a=null);const o=createAppContext(),s=new WeakSet;let l=!1;const u=o.app={_uid:uid$1++,_component:i,_props:a,_container:null,_context:o,_instance:null,version,get config(){return o.config},set config(c){},use(c,...d){return s.has(c)||(c&&isFunction$2(c.install)?(s.add(c),c.install(u,...d)):isFunction$2(c)&&(s.add(c),c(u,...d))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,d){return d?(o.components[c]=d,u):o.components[c]},directive(c,d){return d?(o.directives[c]=d,u):o.directives[c]},mount(c,d,v){if(!l){const $=createVNode(i,a);return $.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),d&&r?r($,c):t($,c,v),l=!0,u._container=c,c.__vue_app__=u,getExposeProxy($.component)||$.component.proxy}},unmount(){l&&(t(null,u._container),delete u._container.__vue_app__)},provide(c,d){return o.provides[c]=d,u},runWithContext(c){const d=currentApp;currentApp=u;try{return c()}finally{currentApp=d}}};return u}}let currentApp=null;function provide(t,r){if(currentInstance){let n=currentInstance.provides;const i=currentInstance.parent&&currentInstance.parent.provides;i===n&&(n=currentInstance.provides=Object.create(i)),n[t]=r}}function inject(t,r,n=!1){const i=currentInstance||currentRenderingInstance;if(i||currentApp){const a=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:currentApp._context.provides;if(a&&t in a)return a[t];if(arguments.length>1)return n&&isFunction$2(r)?r.call(i&&i.proxy):r}}const internalObjectProto=Object.create(null),createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=t=>Object.getPrototypeOf(t)===internalObjectProto;function initProps$1(t,r,n,i=!1){const a={},o=createInternalObject();t.propsDefaults=Object.create(null),setFullProps(t,r,a,o);for(const s in t.propsOptions[0])s in a||(a[s]=void 0);n?t.props=i?a:shallowReactive(a):t.type.props?t.props=a:t.props=o,t.attrs=o}function updateProps$2(t,r,n,i){const{props:a,attrs:o,vnode:{patchFlag:s}}=t,l=toRaw(a),[u]=t.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const d=t.vnode.dynamicProps;for(let v=0;v<d.length;v++){let $=d[v];if(isEmitListener(t.emitsOptions,$))continue;const I=r[$];if(u)if(hasOwn$1(o,$))I!==o[$]&&(o[$]=I,c=!0);else{const O=camelize($);a[O]=resolvePropValue(u,l,O,I,t,!1)}else I!==o[$]&&(o[$]=I,c=!0)}}}else{setFullProps(t,r,a,o)&&(c=!0);let d;for(const v in l)(!r||!hasOwn$1(r,v)&&((d=hyphenate(v))===v||!hasOwn$1(r,d)))&&(u?n&&(n[v]!==void 0||n[d]!==void 0)&&(a[v]=resolvePropValue(u,l,v,void 0,t,!0)):delete a[v]);if(o!==l)for(const v in o)(!r||!hasOwn$1(r,v)&&!0)&&(delete o[v],c=!0)}c&&trigger(t.attrs,"set","")}function setFullProps(t,r,n,i){const[a,o]=t.propsOptions;let s=!1,l;if(r)for(let u in r){if(isReservedProp(u))continue;const c=r[u];let d;a&&hasOwn$1(a,d=camelize(u))?!o||!o.includes(d)?n[d]=c:(l||(l={}))[d]=c:isEmitListener(t.emitsOptions,u)||(!(u in i)||c!==i[u])&&(i[u]=c,s=!0)}if(o){const u=toRaw(n),c=l||EMPTY_OBJ$1;for(let d=0;d<o.length;d++){const v=o[d];n[v]=resolvePropValue(a,u,v,c[v],t,!hasOwn$1(c,v))}}return s}function resolvePropValue(t,r,n,i,a,o){const s=t[n];if(s!=null){const l=hasOwn$1(s,"default");if(l&&i===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&isFunction$2(u)){const{propsDefaults:c}=a;if(n in c)i=c[n];else{const d=setCurrentInstance(a);i=c[n]=u.call(null,r),d()}}else i=u}s[0]&&(o&&!l?i=!1:s[1]&&(i===""||i===hyphenate(n))&&(i=!0))}return i}function normalizePropsOptions(t,r,n=!1){const i=r.propsCache,a=i.get(t);if(a)return a;const o=t.props,s={},l=[];let u=!1;if(!isFunction$2(t)){const d=v=>{u=!0;const[$,I]=normalizePropsOptions(v,r,!0);extend$1(s,$),I&&l.push(...I)};!n&&r.mixins.length&&r.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!o&&!u)return isObject$4(t)&&i.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$2(o))for(let d=0;d<o.length;d++){const v=camelize(o[d]);validatePropName(v)&&(s[v]=EMPTY_OBJ$1)}else if(o)for(const d in o){const v=camelize(d);if(validatePropName(v)){const $=o[d],I=s[v]=isArray$2($)||isFunction$2($)?{type:$}:extend$1({},$);if(I){const O=getTypeIndex(Boolean,I.type),R=getTypeIndex(String,I.type);I[0]=O>-1,I[1]=R<0||O<R,(O>-1||hasOwn$1(I,"default"))&&l.push(v)}}}const c=[s,l];return isObject$4(t)&&i.set(t,c),c}function validatePropName(t){return t[0]!=="$"&&!isReservedProp(t)}function getType(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function isSameType(t,r){return getType(t)===getType(r)}function getTypeIndex(t,r){return isArray$2(r)?r.findIndex(n=>isSameType(n,t)):isFunction$2(r)&&isSameType(r,t)?0:-1}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$2(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,r,n)=>{if(r._n)return r;const i=withCtx((...a)=>normalizeSlotValue(r(...a)),n);return i._c=!1,i},normalizeObjectSlots=(t,r,n)=>{const i=t._ctx;for(const a in t){if(isInternalKey(a))continue;const o=t[a];if(isFunction$2(o))r[a]=normalizeSlot$1(a,o,i);else if(o!=null){const s=normalizeSlotValue(o);r[a]=()=>s}}},normalizeVNodeSlots=(t,r)=>{const n=normalizeSlotValue(r);t.slots.default=()=>n},initSlots=(t,r)=>{const n=t.slots=createInternalObject();if(t.vnode.shapeFlag&32){const i=r._;i?(extend$1(n,r),def(n,"_",i)):normalizeObjectSlots(r,n)}else r&&normalizeVNodeSlots(t,r)},updateSlots=(t,r,n)=>{const{vnode:i,slots:a}=t;let o=!0,s=EMPTY_OBJ$1;if(i.shapeFlag&32){const l=r._;l?n&&l===1?o=!1:(extend$1(a,r),!n&&l===1&&delete a._):(o=!r.$stable,normalizeObjectSlots(r,a)),s=r}else r&&(normalizeVNodeSlots(t,r),s={default:1});if(o)for(const l in a)!isInternalKey(l)&&s[l]==null&&delete a[l]};function setRef(t,r,n,i,a=!1){if(isArray$2(t)){t.forEach(($,I)=>setRef($,r&&(isArray$2(r)?r[I]:r),n,i,a));return}if(isAsyncWrapper(i)&&!a)return;const o=i.shapeFlag&4?getExposeProxy(i.component)||i.component.proxy:i.el,s=a?null:o,{i:l,r:u}=t,c=r&&r.r,d=l.refs===EMPTY_OBJ$1?l.refs={}:l.refs,v=l.setupState;if(c!=null&&c!==u&&(isString$2(c)?(d[c]=null,hasOwn$1(v,c)&&(v[c]=null)):isRef(c)&&(c.value=null)),isFunction$2(u))callWithErrorHandling(u,l,12,[s,d]);else{const $=isString$2(u),I=isRef(u);if($||I){const O=()=>{if(t.f){const R=$?hasOwn$1(v,u)?v[u]:d[u]:u.value;a?isArray$2(R)&&remove(R,o):isArray$2(R)?R.includes(o)||R.push(o):$?(d[u]=[o],hasOwn$1(v,u)&&(v[u]=d[u])):(u.value=[o],t.k&&(d[t.k]=u.value))}else $?(d[u]=s,hasOwn$1(v,u)&&(v[u]=s)):I&&(u.value=s,t.k&&(d[t.k]=s))};s?(O.id=-1,queuePostRenderEffect(O,n)):O()}}}function initFeatureFlags(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(getGlobalThis().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function baseCreateRenderer(t,r){initFeatureFlags();const n=getGlobalThis();n.__VUE__=!0;const{insert:i,remove:a,patchProp:o,createElement:s,createText:l,createComment:u,setText:c,setElementText:d,parentNode:v,nextSibling:$,setScopeId:I=NOOP,insertStaticContent:O}=t,R=(se,ae,ve,be=null,ye=null,Re=null,Me=void 0,xe=null,Pe=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!isSameVNodeType(se,ae)&&(be=st(se),me(se,ye,Re,!0),se=null),ae.patchFlag===-2&&(Pe=!1,ae.dynamicChildren=null);const{type:we,ref:Fe,shapeFlag:We}=ae;switch(we){case Text:M(se,ae,ve,be);break;case Comment:F(se,ae,ve,be);break;case Static:se==null&&V(ae,ve,be,Me);break;case Fragment:te(se,ae,ve,be,ye,Re,Me,xe,Pe);break;default:We&1?X(se,ae,ve,be,ye,Re,Me,xe,Pe):We&6?oe(se,ae,ve,be,ye,Re,Me,xe,Pe):(We&64||We&128)&&we.process(se,ae,ve,be,ye,Re,Me,xe,Pe,Le)}Fe!=null&&ye&&setRef(Fe,se&&se.ref,Re,ae||se,!ae)},M=(se,ae,ve,be)=>{if(se==null)i(ae.el=l(ae.children),ve,be);else{const ye=ae.el=se.el;ae.children!==se.children&&c(ye,ae.children)}},F=(se,ae,ve,be)=>{se==null?i(ae.el=u(ae.children||""),ve,be):ae.el=se.el},V=(se,ae,ve,be)=>{[se.el,se.anchor]=O(se.children,ae,ve,be,se.el,se.anchor)},G=({el:se,anchor:ae},ve,be)=>{let ye;for(;se&&se!==ae;)ye=$(se),i(se,ve,be),se=ye;i(ae,ve,be)},Y=({el:se,anchor:ae})=>{let ve;for(;se&&se!==ae;)ve=$(se),a(se),se=ve;a(ae)},X=(se,ae,ve,be,ye,Re,Me,xe,Pe)=>{ae.type==="svg"?Me="svg":ae.type==="math"&&(Me="mathml"),se==null?q(ae,ve,be,ye,Re,Me,xe,Pe):ie(se,ae,ye,Re,Me,xe,Pe)},q=(se,ae,ve,be,ye,Re,Me,xe)=>{let Pe,we;const{props:Fe,shapeFlag:We,transition:ze,dirs:je}=se;if(Pe=se.el=s(se.type,Re,Fe&&Fe.is,Fe),We&8?d(Pe,se.children):We&16&&Q(se.children,Pe,null,be,ye,resolveChildrenNamespace(se,Re),Me,xe),je&&invokeDirectiveHook(se,null,be,"created"),Z(Pe,se,se.scopeId,Me,be),Fe){for(const it in Fe)it!=="value"&&!isReservedProp(it)&&o(Pe,it,null,Fe[it],Re,se.children,be,ye,Ge);"value"in Fe&&o(Pe,"value",null,Fe.value,Re),(we=Fe.onVnodeBeforeMount)&&invokeVNodeHook(we,be,se)}je&&invokeDirectiveHook(se,null,be,"beforeMount");const Ze=needTransition(ye,ze);Ze&&ze.beforeEnter(Pe),i(Pe,ae,ve),((we=Fe&&Fe.onVnodeMounted)||Ze||je)&&queuePostRenderEffect(()=>{we&&invokeVNodeHook(we,be,se),Ze&&ze.enter(Pe),je&&invokeDirectiveHook(se,null,be,"mounted")},ye)},Z=(se,ae,ve,be,ye)=>{if(ve&&I(se,ve),be)for(let Re=0;Re<be.length;Re++)I(se,be[Re]);if(ye){let Re=ye.subTree;if(ae===Re){const Me=ye.vnode;Z(se,Me,Me.scopeId,Me.slotScopeIds,ye.parent)}}},Q=(se,ae,ve,be,ye,Re,Me,xe,Pe=0)=>{for(let we=Pe;we<se.length;we++){const Fe=se[we]=xe?cloneIfMounted(se[we]):normalizeVNode(se[we]);R(null,Fe,ae,ve,be,ye,Re,Me,xe)}},ie=(se,ae,ve,be,ye,Re,Me)=>{const xe=ae.el=se.el;let{patchFlag:Pe,dynamicChildren:we,dirs:Fe}=ae;Pe|=se.patchFlag&16;const We=se.props||EMPTY_OBJ$1,ze=ae.props||EMPTY_OBJ$1;let je;if(ve&&toggleRecurse(ve,!1),(je=ze.onVnodeBeforeUpdate)&&invokeVNodeHook(je,ve,ae,se),Fe&&invokeDirectiveHook(ae,se,ve,"beforeUpdate"),ve&&toggleRecurse(ve,!0),we?J(se.dynamicChildren,we,xe,ve,be,resolveChildrenNamespace(ae,ye),Re):Me||ge(se,ae,xe,null,ve,be,resolveChildrenNamespace(ae,ye),Re,!1),Pe>0){if(Pe&16)re(xe,ae,We,ze,ve,be,ye);else if(Pe&2&&We.class!==ze.class&&o(xe,"class",null,ze.class,ye),Pe&4&&o(xe,"style",We.style,ze.style,ye),Pe&8){const Ze=ae.dynamicProps;for(let it=0;it<Ze.length;it++){const vt=Ze[it],St=We[vt],Mt=ze[vt];(Mt!==St||vt==="value")&&o(xe,vt,St,Mt,ye,se.children,ve,be,Ge)}}Pe&1&&se.children!==ae.children&&d(xe,ae.children)}else!Me&&we==null&&re(xe,ae,We,ze,ve,be,ye);((je=ze.onVnodeUpdated)||Fe)&&queuePostRenderEffect(()=>{je&&invokeVNodeHook(je,ve,ae,se),Fe&&invokeDirectiveHook(ae,se,ve,"updated")},be)},J=(se,ae,ve,be,ye,Re,Me)=>{for(let xe=0;xe<ae.length;xe++){const Pe=se[xe],we=ae[xe],Fe=Pe.el&&(Pe.type===Fragment||!isSameVNodeType(Pe,we)||Pe.shapeFlag&70)?v(Pe.el):ve;R(Pe,we,Fe,null,be,ye,Re,Me,!0)}},re=(se,ae,ve,be,ye,Re,Me)=>{if(ve!==be){if(ve!==EMPTY_OBJ$1)for(const xe in ve)!isReservedProp(xe)&&!(xe in be)&&o(se,xe,ve[xe],null,Me,ae.children,ye,Re,Ge);for(const xe in be){if(isReservedProp(xe))continue;const Pe=be[xe],we=ve[xe];Pe!==we&&xe!=="value"&&o(se,xe,we,Pe,Me,ae.children,ye,Re,Ge)}"value"in be&&o(se,"value",ve.value,be.value,Me)}},te=(se,ae,ve,be,ye,Re,Me,xe,Pe)=>{const we=ae.el=se?se.el:l(""),Fe=ae.anchor=se?se.anchor:l("");let{patchFlag:We,dynamicChildren:ze,slotScopeIds:je}=ae;je&&(xe=xe?xe.concat(je):je),se==null?(i(we,ve,be),i(Fe,ve,be),Q(ae.children||[],ve,Fe,ye,Re,Me,xe,Pe)):We>0&&We&64&&ze&&se.dynamicChildren?(J(se.dynamicChildren,ze,ve,ye,Re,Me,xe),(ae.key!=null||ye&&ae===ye.subTree)&&traverseStaticChildren(se,ae,!0)):ge(se,ae,ve,Fe,ye,Re,Me,xe,Pe)},oe=(se,ae,ve,be,ye,Re,Me,xe,Pe)=>{ae.slotScopeIds=xe,se==null?ae.shapeFlag&512?ye.ctx.activate(ae,ve,be,Me,Pe):le(ae,ve,be,ye,Re,Me,Pe):fe(se,ae,Pe)},le=(se,ae,ve,be,ye,Re,Me)=>{const xe=se.component=createComponentInstance(se,be,ye);if(isKeepAlive(se)&&(xe.ctx.renderer=Le),setupComponent(xe),xe.asyncDep){if(ye&&ye.registerDep(xe,de),!se.el){const Pe=xe.subTree=createVNode(Comment);F(null,Pe,ae,ve)}}else de(xe,se,ae,ve,ye,Re,Me)},fe=(se,ae,ve)=>{const be=ae.component=se.component;if(shouldUpdateComponent(se,ae,ve))if(be.asyncDep&&!be.asyncResolved){Se(be,ae,ve);return}else be.next=ae,invalidateJob(be.update),be.effect.dirty=!0,be.update();else ae.el=se.el,be.vnode=ae},de=(se,ae,ve,be,ye,Re,Me)=>{const xe=()=>{if(se.isMounted){let{next:Fe,bu:We,u:ze,parent:je,vnode:Ze}=se;{const or=locateNonHydratedAsyncRoot(se);if(or){Fe&&(Fe.el=Ze.el,Se(se,Fe,Me)),or.asyncDep.then(()=>{se.isUnmounted||xe()});return}}let it=Fe,vt;toggleRecurse(se,!1),Fe?(Fe.el=Ze.el,Se(se,Fe,Me)):Fe=Ze,We&&invokeArrayFns(We),(vt=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&invokeVNodeHook(vt,je,Fe,Ze),toggleRecurse(se,!0);const St=renderComponentRoot(se),Mt=se.subTree;se.subTree=St,R(Mt,St,v(Mt.el),st(Mt),se,ye,Re),Fe.el=St.el,it===null&&updateHOCHostEl(se,St.el),ze&&queuePostRenderEffect(ze,ye),(vt=Fe.props&&Fe.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(vt,je,Fe,Ze),ye)}else{let Fe;const{el:We,props:ze}=ae,{bm:je,m:Ze,parent:it}=se,vt=isAsyncWrapper(ae);if(toggleRecurse(se,!1),je&&invokeArrayFns(je),!vt&&(Fe=ze&&ze.onVnodeBeforeMount)&&invokeVNodeHook(Fe,it,ae),toggleRecurse(se,!0),We&&Be){const St=()=>{se.subTree=renderComponentRoot(se),Be(We,se.subTree,se,ye,null)};vt?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&St()):St()}else{const St=se.subTree=renderComponentRoot(se);R(null,St,ve,be,se,ye,Re),ae.el=St.el}if(Ze&&queuePostRenderEffect(Ze,ye),!vt&&(Fe=ze&&ze.onVnodeMounted)){const St=ae;queuePostRenderEffect(()=>invokeVNodeHook(Fe,it,St),ye)}(ae.shapeFlag&256||it&&isAsyncWrapper(it.vnode)&&it.vnode.shapeFlag&256)&&se.a&&queuePostRenderEffect(se.a,ye),se.isMounted=!0,ae=ve=be=null}},Pe=se.effect=new ReactiveEffect(xe,NOOP,()=>queueJob(we),se.scope),we=se.update=()=>{Pe.dirty&&Pe.run()};we.id=se.uid,toggleRecurse(se,!0),we()},Se=(se,ae,ve)=>{ae.component=se;const be=se.vnode.props;se.vnode=ae,se.next=null,updateProps$2(se,ae.props,be,ve),updateSlots(se,ae.children,ve),pauseTracking(),flushPreFlushCbs(se),resetTracking()},ge=(se,ae,ve,be,ye,Re,Me,xe,Pe=!1)=>{const we=se&&se.children,Fe=se?se.shapeFlag:0,We=ae.children,{patchFlag:ze,shapeFlag:je}=ae;if(ze>0){if(ze&128){ke(we,We,ve,be,ye,Re,Me,xe,Pe);return}else if(ze&256){Te(we,We,ve,be,ye,Re,Me,xe,Pe);return}}je&8?(Fe&16&&Ge(we,ye,Re),We!==we&&d(ve,We)):Fe&16?je&16?ke(we,We,ve,be,ye,Re,Me,xe,Pe):Ge(we,ye,Re,!0):(Fe&8&&d(ve,""),je&16&&Q(We,ve,be,ye,Re,Me,xe,Pe))},Te=(se,ae,ve,be,ye,Re,Me,xe,Pe)=>{se=se||EMPTY_ARR,ae=ae||EMPTY_ARR;const we=se.length,Fe=ae.length,We=Math.min(we,Fe);let ze;for(ze=0;ze<We;ze++){const je=ae[ze]=Pe?cloneIfMounted(ae[ze]):normalizeVNode(ae[ze]);R(se[ze],je,ve,null,ye,Re,Me,xe,Pe)}we>Fe?Ge(se,ye,Re,!0,!1,We):Q(ae,ve,be,ye,Re,Me,xe,Pe,We)},ke=(se,ae,ve,be,ye,Re,Me,xe,Pe)=>{let we=0;const Fe=ae.length;let We=se.length-1,ze=Fe-1;for(;we<=We&&we<=ze;){const je=se[we],Ze=ae[we]=Pe?cloneIfMounted(ae[we]):normalizeVNode(ae[we]);if(isSameVNodeType(je,Ze))R(je,Ze,ve,null,ye,Re,Me,xe,Pe);else break;we++}for(;we<=We&&we<=ze;){const je=se[We],Ze=ae[ze]=Pe?cloneIfMounted(ae[ze]):normalizeVNode(ae[ze]);if(isSameVNodeType(je,Ze))R(je,Ze,ve,null,ye,Re,Me,xe,Pe);else break;We--,ze--}if(we>We){if(we<=ze){const je=ze+1,Ze=je<Fe?ae[je].el:be;for(;we<=ze;)R(null,ae[we]=Pe?cloneIfMounted(ae[we]):normalizeVNode(ae[we]),ve,Ze,ye,Re,Me,xe,Pe),we++}}else if(we>ze)for(;we<=We;)me(se[we],ye,Re,!0),we++;else{const je=we,Ze=we,it=new Map;for(we=Ze;we<=ze;we++){const $t=ae[we]=Pe?cloneIfMounted(ae[we]):normalizeVNode(ae[we]);$t.key!=null&&it.set($t.key,we)}let vt,St=0;const Mt=ze-Ze+1;let or=!1,Nr=0;const cr=new Array(Mt);for(we=0;we<Mt;we++)cr[we]=0;for(we=je;we<=We;we++){const $t=se[we];if(St>=Mt){me($t,ye,Re,!0);continue}let kt;if($t.key!=null)kt=it.get($t.key);else for(vt=Ze;vt<=ze;vt++)if(cr[vt-Ze]===0&&isSameVNodeType($t,ae[vt])){kt=vt;break}kt===void 0?me($t,ye,Re,!0):(cr[kt-Ze]=we+1,kt>=Nr?Nr=kt:or=!0,R($t,ae[kt],ve,null,ye,Re,Me,xe,Pe),St++)}const Fr=or?getSequence(cr):EMPTY_ARR;for(vt=Fr.length-1,we=Mt-1;we>=0;we--){const $t=Ze+we,kt=ae[$t],gn=$t+1<Fe?ae[$t+1].el:be;cr[we]===0?R(null,kt,ve,gn,ye,Re,Me,xe,Pe):or&&(vt<0||we!==Fr[vt]?Ie(kt,ve,gn,2):vt--)}}},Ie=(se,ae,ve,be,ye=null)=>{const{el:Re,type:Me,transition:xe,children:Pe,shapeFlag:we}=se;if(we&6){Ie(se.component.subTree,ae,ve,be);return}if(we&128){se.suspense.move(ae,ve,be);return}if(we&64){Me.move(se,ae,ve,Le);return}if(Me===Fragment){i(Re,ae,ve);for(let We=0;We<Pe.length;We++)Ie(Pe[We],ae,ve,be);i(se.anchor,ae,ve);return}if(Me===Static){G(se,ae,ve);return}if(be!==2&&we&1&&xe)if(be===0)xe.beforeEnter(Re),i(Re,ae,ve),queuePostRenderEffect(()=>xe.enter(Re),ye);else{const{leave:We,delayLeave:ze,afterLeave:je}=xe,Ze=()=>i(Re,ae,ve),it=()=>{We(Re,()=>{Ze(),je&&je()})};ze?ze(Re,Ze,it):it()}else i(Re,ae,ve)},me=(se,ae,ve,be=!1,ye=!1)=>{const{type:Re,props:Me,ref:xe,children:Pe,dynamicChildren:we,shapeFlag:Fe,patchFlag:We,dirs:ze}=se;if(xe!=null&&setRef(xe,null,ve,se,!0),Fe&256){ae.ctx.deactivate(se);return}const je=Fe&1&&ze,Ze=!isAsyncWrapper(se);let it;if(Ze&&(it=Me&&Me.onVnodeBeforeUnmount)&&invokeVNodeHook(it,ae,se),Fe&6)Xe(se.component,ve,be);else{if(Fe&128){se.suspense.unmount(ve,be);return}je&&invokeDirectiveHook(se,null,ae,"beforeUnmount"),Fe&64?se.type.remove(se,ae,ve,ye,Le,be):we&&(Re!==Fragment||We>0&&We&64)?Ge(we,ae,ve,!1,!0):(Re===Fragment&&We&384||!ye&&Fe&16)&&Ge(Pe,ae,ve),be&&Oe(se)}(Ze&&(it=Me&&Me.onVnodeUnmounted)||je)&&queuePostRenderEffect(()=>{it&&invokeVNodeHook(it,ae,se),je&&invokeDirectiveHook(se,null,ae,"unmounted")},ve)},Oe=se=>{const{type:ae,el:ve,anchor:be,transition:ye}=se;if(ae===Fragment){Ve(ve,be);return}if(ae===Static){Y(se);return}const Re=()=>{a(ve),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(se.shapeFlag&1&&ye&&!ye.persisted){const{leave:Me,delayLeave:xe}=ye,Pe=()=>Me(ve,Re);xe?xe(se.el,Re,Pe):Pe()}else Re()},Ve=(se,ae)=>{let ve;for(;se!==ae;)ve=$(se),a(se),se=ve;a(ae)},Xe=(se,ae,ve)=>{const{bum:be,scope:ye,update:Re,subTree:Me,um:xe}=se;be&&invokeArrayFns(be),ye.stop(),Re&&(Re.active=!1,me(Me,se,ae,ve)),xe&&queuePostRenderEffect(xe,ae),queuePostRenderEffect(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},Ge=(se,ae,ve,be=!1,ye=!1,Re=0)=>{for(let Me=Re;Me<se.length;Me++)me(se[Me],ae,ve,be,ye)},st=se=>se.shapeFlag&6?st(se.component.subTree):se.shapeFlag&128?se.suspense.next():$(se.anchor||se.el);let at=!1;const ft=(se,ae,ve)=>{se==null?ae._vnode&&me(ae._vnode,null,null,!0):R(ae._vnode||null,se,ae,null,null,null,ve),at||(at=!0,flushPreFlushCbs(),flushPostFlushCbs(),at=!1),ae._vnode=se},Le={p:R,um:me,m:Ie,r:Oe,mt:le,mc:Q,pc:ge,pbc:J,n:st,o:t};let De,Be;return r&&([De,Be]=r(Le)),{render:ft,hydrate:De,createApp:createAppAPI(ft,De)}}function resolveChildrenNamespace({type:t,props:r},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:n}function toggleRecurse({effect:t,update:r},n){t.allowRecurse=r.allowRecurse=n}function needTransition(t,r){return(!t||t&&!t.pendingBranch)&&r&&!r.persisted}function traverseStaticChildren(t,r,n=!1){const i=t.children,a=r.children;if(isArray$2(i)&&isArray$2(a))for(let o=0;o<i.length;o++){const s=i[o];let l=a[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=a[o]=cloneIfMounted(a[o]),l.el=s.el),n||traverseStaticChildren(s,l)),l.type===Text&&(l.el=s.el)}}function getSequence(t){const r=t.slice(),n=[0];let i,a,o,s,l;const u=t.length;for(i=0;i<u;i++){const c=t[i];if(c!==0){if(a=n[n.length-1],t[a]<c){r[i]=a,n.push(i);continue}for(o=0,s=n.length-1;o<s;)l=o+s>>1,t[n[l]]<c?o=l+1:s=l;c<t[n[o]]&&(o>0&&(r[i]=n[o-1]),n[o]=i)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=r[s];return n}function locateNonHydratedAsyncRoot(t){const r=t.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:locateNonHydratedAsyncRoot(r)}const isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTargetSVG=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,isTargetMathML=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,resolveTarget=(t,r)=>{const n=t&&t.to;return isString$2(n)?r?r(n):null:n},TeleportImpl={name:"Teleport",__isTeleport:!0,process(t,r,n,i,a,o,s,l,u,c){const{mc:d,pc:v,pbc:$,o:{insert:I,querySelector:O,createText:R,createComment:M}}=c,F=isTeleportDisabled(r.props);let{shapeFlag:V,children:G,dynamicChildren:Y}=r;if(t==null){const X=r.el=R(""),q=r.anchor=R("");I(X,n,i),I(q,n,i);const Z=r.target=resolveTarget(r.props,O),Q=r.targetAnchor=R("");Z&&(I(Q,Z),s==="svg"||isTargetSVG(Z)?s="svg":(s==="mathml"||isTargetMathML(Z))&&(s="mathml"));const ie=(J,re)=>{V&16&&d(G,J,re,a,o,s,l,u)};F?ie(n,q):Z&&ie(Z,Q)}else{r.el=t.el;const X=r.anchor=t.anchor,q=r.target=t.target,Z=r.targetAnchor=t.targetAnchor,Q=isTeleportDisabled(t.props),ie=Q?n:q,J=Q?X:Z;if(s==="svg"||isTargetSVG(q)?s="svg":(s==="mathml"||isTargetMathML(q))&&(s="mathml"),Y?($(t.dynamicChildren,Y,ie,a,o,s,l),traverseStaticChildren(t,r,!0)):u||v(t,r,ie,J,a,o,s,l,!1),F)Q?r.props&&t.props&&r.props.to!==t.props.to&&(r.props.to=t.props.to):moveTeleport(r,n,X,c,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const re=r.target=resolveTarget(r.props,O);re&&moveTeleport(r,re,null,c,0)}else Q&&moveTeleport(r,q,Z,c,1)}updateCssVars(r)},remove(t,r,n,i,{um:a,o:{remove:o}},s){const{shapeFlag:l,children:u,anchor:c,targetAnchor:d,target:v,props:$}=t;if(v&&o(d),s&&o(c),l&16){const I=s||!isTeleportDisabled($);for(let O=0;O<u.length;O++){const R=u[O];a(R,r,n,I,!!R.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,r,n,{o:{insert:i},m:a},o=2){o===0&&i(t.targetAnchor,r,n);const{el:s,anchor:l,shapeFlag:u,children:c,props:d}=t,v=o===2;if(v&&i(s,r,n),(!v||isTeleportDisabled(d))&&u&16)for(let $=0;$<c.length;$++)a(c[$],r,n,2);v&&i(l,r,n)}function hydrateTeleport(t,r,n,i,a,o,{o:{nextSibling:s,parentNode:l,querySelector:u}},c){const d=r.target=resolveTarget(r.props,u);if(d){const v=d._lpa||d.firstChild;if(r.shapeFlag&16)if(isTeleportDisabled(r.props))r.anchor=c(s(t),r,l(t),n,i,a,o),r.targetAnchor=v;else{r.anchor=s(t);let $=v;for(;$;)if($=s($),$&&$.nodeType===8&&$.data==="teleport anchor"){r.targetAnchor=$,d._lpa=r.targetAnchor&&s(r.targetAnchor);break}c(v,r,d,n,i,a,o)}updateCssVars(r)}return r.anchor&&s(r.anchor)}const Teleport=TeleportImpl;function updateCssVars(t){const r=t.ctx;if(r&&r.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(t=!1){blockStack.push(currentBlock=t?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(t){isBlockTreeEnabled+=t}function setupBlock(t){return t.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(t),t}function createElementBlock(t,r,n,i,a,o){return setupBlock(createBaseVNode(t,r,n,i,a,o,!0))}function createBlock(t,r,n,i,a){return setupBlock(createVNode(t,r,n,i,a,!0))}function isVNode(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,r){return t.type===r.type&&t.key===r.key}const normalizeKey=({key:t})=>t!=null?t:null,normalizeRef=({ref:t,ref_key:r,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?isString$2(t)||isRef(t)||isFunction$2(t)?{i:currentRenderingInstance,r:t,k:r,f:!!n}:t:null);function createBaseVNode(t,r=null,n=null,i=0,a=null,o=t===Fragment?0:1,s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&normalizeKey(r),ref:r&&normalizeRef(r),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return l?(normalizeChildren(u,n),o&128&&t.normalize(u)):n&&(u.shapeFlag|=isString$2(n)?8:16),isBlockTreeEnabled>0&&!s&&currentBlock&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&currentBlock.push(u),u}const createVNode=_createVNode;function _createVNode(t,r=null,n=null,i=0,a=null,o=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode(t)){const l=cloneVNode(t,r,!0);return n&&normalizeChildren(l,n),isBlockTreeEnabled>0&&!o&&currentBlock&&(l.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=l:currentBlock.push(l)),l.patchFlag|=-2,l}if(isClassComponent(t)&&(t=t.__vccOpts),r){r=guardReactiveProps(r);let{class:l,style:u}=r;l&&!isString$2(l)&&(r.class=normalizeClass(l)),isObject$4(u)&&(isProxy(u)&&!isArray$2(u)&&(u=extend$1({},u)),r.style=normalizeStyle$1(u))}const s=isString$2(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$4(t)?4:isFunction$2(t)?2:0;return createBaseVNode(t,r,n,i,a,s,o,!0)}function guardReactiveProps(t){return t?isProxy(t)||isInternalObject(t)?extend$1({},t):t:null}function cloneVNode(t,r,n=!1){const{props:i,ref:a,patchFlag:o,children:s}=t,l=r?mergeProps(i||{},r):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&normalizeKey(l),ref:r&&r.ref?n&&a?isArray$2(a)?a.concat(normalizeRef(r)):[a,normalizeRef(r)]:normalizeRef(r):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Fragment?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function createTextVNode(t=" ",r=0){return createVNode(Text,null,t,r)}function createCommentVNode(t="",r=!1){return r?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$2(t)?createVNode(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode(Text,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,r){let n=0;const{shapeFlag:i}=t;if(r==null)r=null;else if(isArray$2(r))n=16;else if(typeof r=="object")if(i&65){const a=r.default;a&&(a._c&&(a._d=!1),normalizeChildren(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=r._;!a&&!isInternalObject(r)?r._ctx=currentRenderingInstance:a===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else isFunction$2(r)?(r={default:r,_ctx:currentRenderingInstance},n=32):(r=String(r),i&64?(n=16,r=[createTextVNode(r)]):n=8);t.children=r,t.shapeFlag|=n}function mergeProps(...t){const r={};for(let n=0;n<t.length;n++){const i=t[n];for(const a in i)if(a==="class")r.class!==i.class&&(r.class=normalizeClass([r.class,i.class]));else if(a==="style")r.style=normalizeStyle$1([r.style,i.style]);else if(isOn(a)){const o=r[a],s=i[a];s&&o!==s&&!(isArray$2(o)&&o.includes(s))&&(r[a]=o?[].concat(o,s):s)}else a!==""&&(r[a]=i[a])}return r}function invokeVNodeHook(t,r,n,i=null){callWithAsyncErrorHandling(t,r,7,[n,i])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(t,r,n){const i=t.type,a=(r?r.appContext:t.appContext)||emptyAppContext,o={uid:uid++,vnode:t,type:i,parent:r,appContext:a,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:r?r.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(i,a),emitsOptions:normalizeEmitsOptions(i,a),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:i.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:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=r?r.root:o,o.emit=emit.bind(null,o),t.ce&&t.ce(o),o}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const t=getGlobalThis(),r=(n,i)=>{let a;return(a=t[n])||(a=t[n]=[]),a.push(i),o=>{a.length>1?a.forEach(s=>s(o)):a[0](o)}};internalSetCurrentInstance=r("__VUE_INSTANCE_SETTERS__",n=>currentInstance=n),setInSSRSetupState=r("__VUE_SSR_SETTERS__",n=>isInSSRComponentSetup=n)}const setCurrentInstance=t=>{const r=currentInstance;return internalSetCurrentInstance(t),t.scope.on(),()=>{t.scope.off(),internalSetCurrentInstance(r)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,r=!1){r&&setInSSRSetupState(r);const{props:n,children:i}=t.vnode,a=isStatefulComponent(t);initProps$1(t,n,a,r),initSlots(t,i);const o=a?setupStatefulComponent(t,r):void 0;return r&&setInSSRSetupState(!1),o}function setupStatefulComponent(t,r){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,PublicInstanceProxyHandlers);const{setup:i}=n;if(i){const a=t.setupContext=i.length>1?createSetupContext(t):null,o=setCurrentInstance(t);pauseTracking();const s=callWithErrorHandling(i,t,0,[t.props,a]);if(resetTracking(),o(),isPromise(s)){if(s.then(unsetCurrentInstance,unsetCurrentInstance),r)return s.then(l=>{handleSetupResult(t,l,r)}).catch(l=>{handleError(l,t,0)});t.asyncDep=s}else handleSetupResult(t,s,r)}else finishComponentSetup(t,r)}function handleSetupResult(t,r,n){isFunction$2(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:isObject$4(r)&&(t.setupState=proxyRefs(r)),finishComponentSetup(t,n)}let compile;function finishComponentSetup(t,r,n){const i=t.type;if(!t.render){if(!r&&compile&&!i.render){const a=i.template||resolveMergedOptions(t).template;if(a){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:l,compilerOptions:u}=i,c=extend$1(extend$1({isCustomElement:o,delimiters:l},s),u);i.render=compile(a,c)}}t.render=i.render||NOOP}{const a=setCurrentInstance(t);pauseTracking();try{applyOptions(t)}finally{resetTracking(),a()}}}const attrsProxyHandlers={get(t,r){return track(t,"get",""),t[r]}};function createSetupContext(t){const r=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,attrsProxyHandlers),slots:t.slots,emit:t.emit,expose:r}}function getExposeProxy(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(r,n){if(n in r)return r[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](t)},has(r,n){return n in r||n in publicPropertiesMap}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=t=>t.replace(classifyRE,r=>r.toUpperCase()).replace(/[-_]/g,"");function getComponentName(t,r=!0){return isFunction$2(t)?t.displayName||t.name:t.name||r&&t.__name}function formatComponentName(t,r,n=!1){let i=getComponentName(r);if(!i&&r.__file){const a=r.__file.match(/([^/\\]+)\.\w+$/);a&&(i=a[1])}if(!i&&t&&t.parent){const a=o=>{for(const s in o)if(o[s]===r)return s};i=a(t.components||t.parent.type.components)||a(t.appContext.components)}return i?classify(i):n?"App":"Anonymous"}function isClassComponent(t){return isFunction$2(t)&&"__vccOpts"in t}const computed=(t,r)=>computed$1(t,r,isInSSRComponentSetup);function h(t,r,n){const i=arguments.length;return i===2?isObject$4(r)&&!isArray$2(r)?isVNode(r)?createVNode(t,null,[r]):createVNode(t,r):createVNode(t,null,r):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&isVNode(n)&&(n=[n]),createVNode(t,r,n))}const version="3.4.24";/**
17
- * @vue/runtime-dom v3.4.24
18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
- * @license MIT
20
- **/const svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(t,r,n)=>{r.insertBefore(t,n||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,n,i)=>{const a=r==="svg"?doc.createElementNS(svgNS,t):r==="mathml"?doc.createElementNS(mathmlNS,t):doc.createElement(t,n?{is:n}:void 0);return t==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:t=>doc.createTextNode(t),createComment:t=>doc.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,n,i,a,o){const s=n?n.previousSibling:r.lastChild;if(a&&(a===o||a.nextSibling))for(;r.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{templateContainer.innerHTML=i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t;const l=templateContainer.content;if(i==="svg"||i==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}r.insertBefore(l,n)}return[s?s.nextSibling:r.firstChild,n?n.previousSibling:r.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(t,{slots:r})=>h(BaseTransition,resolveTransitionProps(t),r);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(t,r=[])=>{isArray$2(t)?t.forEach(n=>n(...r)):t&&t(...r)},hasExplicitCallback=t=>t?isArray$2(t)?t.some(r=>r.length>1):t.length>1:!1;function resolveTransitionProps(t){const r={};for(const te in t)te in DOMTransitionPropsValidators||(r[te]=t[te]);if(t.css===!1)return r;const{name:n="v",type:i,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:$=`${n}-leave-active`,leaveToClass:I=`${n}-leave-to`}=t,O=normalizeDuration(a),R=O&&O[0],M=O&&O[1],{onBeforeEnter:F,onEnter:V,onEnterCancelled:G,onLeave:Y,onLeaveCancelled:X,onBeforeAppear:q=F,onAppear:Z=V,onAppearCancelled:Q=G}=r,ie=(te,oe,le)=>{removeTransitionClass(te,oe?d:l),removeTransitionClass(te,oe?c:s),le&&le()},J=(te,oe)=>{te._isLeaving=!1,removeTransitionClass(te,v),removeTransitionClass(te,I),removeTransitionClass(te,$),oe&&oe()},re=te=>(oe,le)=>{const fe=te?Z:V,de=()=>ie(oe,te,le);callHook(fe,[oe,de]),nextFrame(()=>{removeTransitionClass(oe,te?u:o),addTransitionClass(oe,te?d:l),hasExplicitCallback(fe)||whenTransitionEnds(oe,i,R,de)})};return extend$1(r,{onBeforeEnter(te){callHook(F,[te]),addTransitionClass(te,o),addTransitionClass(te,s)},onBeforeAppear(te){callHook(q,[te]),addTransitionClass(te,u),addTransitionClass(te,c)},onEnter:re(!1),onAppear:re(!0),onLeave(te,oe){te._isLeaving=!0;const le=()=>J(te,oe);addTransitionClass(te,v),addTransitionClass(te,$),forceReflow(),nextFrame(()=>{!te._isLeaving||(removeTransitionClass(te,v),addTransitionClass(te,I),hasExplicitCallback(Y)||whenTransitionEnds(te,i,M,le))}),callHook(Y,[te,le])},onEnterCancelled(te){ie(te,!1),callHook(G,[te])},onAppearCancelled(te){ie(te,!0),callHook(Q,[te])},onLeaveCancelled(te){J(te),callHook(X,[te])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$4(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const r=NumberOf(t);return[r,r]}}function NumberOf(t){return toNumber(t)}function addTransitionClass(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[vtcKey]||(t[vtcKey]=new Set)).add(r)}function removeTransitionClass(t,r){r.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[vtcKey];n&&(n.delete(r),n.size||(t[vtcKey]=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,r,n,i){const a=t._endId=++endId,o=()=>{a===t._endId&&i()};if(n)return setTimeout(o,n);const{type:s,timeout:l,propCount:u}=getTransitionInfo(t,r);if(!s)return i();const c=s+"end";let d=0;const v=()=>{t.removeEventListener(c,$),o()},$=I=>{I.target===t&&++d>=u&&v()};setTimeout(()=>{d<u&&v()},l+1),t.addEventListener(c,$)}function getTransitionInfo(t,r){const n=window.getComputedStyle(t),i=O=>(n[O]||"").split(", "),a=i(`${TRANSITION}Delay`),o=i(`${TRANSITION}Duration`),s=getTimeout(a,o),l=i(`${ANIMATION}Delay`),u=i(`${ANIMATION}Duration`),c=getTimeout(l,u);let d=null,v=0,$=0;r===TRANSITION?s>0&&(d=TRANSITION,v=s,$=o.length):r===ANIMATION?c>0&&(d=ANIMATION,v=c,$=u.length):(v=Math.max(s,c),d=v>0?s>c?TRANSITION:ANIMATION:null,$=d?d===TRANSITION?o.length:u.length:0);const I=d===TRANSITION&&/\b(transform|all)(,|$)/.test(i(`${TRANSITION}Property`).toString());return{type:d,timeout:v,propCount:$,hasTransform:I}}function getTimeout(t,r){for(;t.length<r.length;)t=t.concat(t);return Math.max(...r.map((n,i)=>toMs(n)+toMs(t[i])))}function toMs(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(t,r,n){const i=t[vtcKey];i&&(r=(r?[r,...i]:[...i]).join(" ")),r==null?t.removeAttribute("class"):n?t.setAttribute("class",r):t.className=r}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(t,r,n){const i=t.style,a=isString$2(n);let o=!1;if(n&&!a){if(r)if(isString$2(r))for(const s of r.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&setStyle(i,l,"")}else for(const s in r)n[s]==null&&setStyle(i,s,"");for(const s in n)s==="display"&&(o=!0),setStyle(i,s,n[s])}else if(a){if(r!==n){const s=i[CSS_VAR_TEXT];s&&(n+=";"+s),i.cssText=n,o=displayRE.test(n)}}else r&&t.removeAttribute("style");vShowOriginalDisplay in t&&(t[vShowOriginalDisplay]=o?i.display:"",t[vShowHidden]&&(i.display="none"))}const importantRE=/\s*!important$/;function setStyle(t,r,n){if(isArray$2(n))n.forEach(i=>setStyle(t,r,i));else if(n==null&&(n=""),r.startsWith("--"))t.setProperty(r,n);else{const i=autoPrefix(t,r);importantRE.test(n)?t.setProperty(hyphenate(i),n.replace(importantRE,""),"important"):t[i]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,r){const n=prefixCache[r];if(n)return n;let i=camelize(r);if(i!=="filter"&&i in t)return prefixCache[r]=i;i=capitalize(i);for(let a=0;a<prefixes.length;a++){const o=prefixes[a]+i;if(o in t)return prefixCache[r]=o}return r}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(t,r,n,i,a){if(i&&r.startsWith("xlink:"))n==null?t.removeAttributeNS(xlinkNS,r.slice(6,r.length)):t.setAttributeNS(xlinkNS,r,n);else{const o=isSpecialBooleanAttr(r);n==null||o&&!includeBooleanAttr(n)?t.removeAttribute(r):t.setAttribute(r,o?"":n)}}function patchDOMProp(t,r,n,i,a,o,s){if(r==="innerHTML"||r==="textContent"){i&&s(i,a,o),t[r]=n==null?"":n;return}const l=t.tagName;if(r==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?t.getAttribute("value")||"":t.value,d=n==null?"":n;(c!==d||!("_value"in t))&&(t.value=d),n==null&&t.removeAttribute(r),t._value=n;return}let u=!1;if(n===""||n==null){const c=typeof t[r];c==="boolean"?n=includeBooleanAttr(n):n==null&&c==="string"?(n="",u=!0):c==="number"&&(n=0,u=!0)}try{t[r]=n}catch{}u&&t.removeAttribute(r)}function addEventListener$1(t,r,n,i){t.addEventListener(r,n,i)}function removeEventListener$1(t,r,n,i){t.removeEventListener(r,n,i)}const veiKey=Symbol("_vei");function patchEvent(t,r,n,i,a=null){const o=t[veiKey]||(t[veiKey]={}),s=o[r];if(i&&s)s.value=i;else{const[l,u]=parseName(r);if(i){const c=o[r]=createInvoker(i,a);addEventListener$1(t,l,c,u)}else s&&(removeEventListener$1(t,l,s,u),o[r]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(t){let r;if(optionsModifierRE.test(t)){r={};let i;for(;i=t.match(optionsModifierRE);)t=t.slice(0,t.length-i[0].length),r[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):hyphenate(t.slice(2)),r]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,r){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(i,n.value),r,5,[i])};return n.value=t,n.attached=getNow(),n}function patchStopImmediatePropagation(t,r){if(isArray$2(r)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},r.map(i=>a=>!a._stopped&&i&&i(a))}else return r}const isNativeOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,patchProp=(t,r,n,i,a,o,s,l,u)=>{const c=a==="svg";r==="class"?patchClass(t,i,c):r==="style"?patchStyle(t,n,i):isOn(r)?isModelListener(r)||patchEvent(t,r,n,i,s):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):shouldSetAsProp(t,r,i,c))?patchDOMProp(t,r,i,o,s,l,u):(r==="true-value"?t._trueValue=i:r==="false-value"&&(t._falseValue=i),patchAttr(t,r,i,c))};function shouldSetAsProp(t,r,n,i){if(i)return!!(r==="innerHTML"||r==="textContent"||r in t&&isNativeOn(r)&&isFunction$2(n));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return isNativeOn(r)&&isString$2(n)?!1:r in t}const getModelAssigner=t=>{const r=t.props["onUpdate:modelValue"]||!1;return isArray$2(r)?n=>invokeArrayFns(r,n):r};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(t,{modifiers:{lazy:r,trim:n,number:i}},a){t[assignKey]=getModelAssigner(a);const o=i||a.props&&a.props.type==="number";addEventListener$1(t,r?"change":"input",s=>{if(s.target.composing)return;let l=t.value;n&&(l=l.trim()),o&&(l=looseToNumber(l)),t[assignKey](l)}),n&&addEventListener$1(t,"change",()=>{t.value=t.value.trim()}),r||(addEventListener$1(t,"compositionstart",onCompositionStart),addEventListener$1(t,"compositionend",onCompositionEnd),addEventListener$1(t,"change",onCompositionEnd))},mounted(t,{value:r}){t.value=r==null?"":r},beforeUpdate(t,{value:r,modifiers:{lazy:n,trim:i,number:a}},o){if(t[assignKey]=getModelAssigner(o),t.composing)return;const s=(a||t.type==="number")&&!/^0\d/.test(t.value)?looseToNumber(t.value):t.value,l=r==null?"":r;s!==l&&(document.activeElement===t&&t.type!=="range"&&(n||i&&t.value.trim()===l)||(t.value=l))}},vModelCheckbox={deep:!0,created(t,r,n){t[assignKey]=getModelAssigner(n),addEventListener$1(t,"change",()=>{const i=t._modelValue,a=getValue(t),o=t.checked,s=t[assignKey];if(isArray$2(i)){const l=looseIndexOf(i,a),u=l!==-1;if(o&&!u)s(i.concat(a));else if(!o&&u){const c=[...i];c.splice(l,1),s(c)}}else if(isSet(i)){const l=new Set(i);o?l.add(a):l.delete(a),s(l)}else s(getCheckboxValue(t,o))})},mounted:setChecked,beforeUpdate(t,r,n){t[assignKey]=getModelAssigner(n),setChecked(t,r,n)}};function setChecked(t,{value:r,oldValue:n},i){t._modelValue=r,isArray$2(r)?t.checked=looseIndexOf(r,i.props.value)>-1:isSet(r)?t.checked=r.has(i.props.value):r!==n&&(t.checked=looseEqual(r,getCheckboxValue(t,!0)))}const vModelRadio={created(t,{value:r},n){t.checked=looseEqual(r,n.props.value),t[assignKey]=getModelAssigner(n),addEventListener$1(t,"change",()=>{t[assignKey](getValue(t))})},beforeUpdate(t,{value:r,oldValue:n},i){t[assignKey]=getModelAssigner(i),r!==n&&(t.checked=looseEqual(r,i.props.value))}},vModelSelect={deep:!0,created(t,{value:r,modifiers:{number:n}},i){const a=isSet(r);addEventListener$1(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?looseToNumber(getValue(s)):getValue(s));t[assignKey](t.multiple?a?new Set(o):o:o[0]),t._assigning=!0,nextTick(()=>{t._assigning=!1})}),t[assignKey]=getModelAssigner(i)},mounted(t,{value:r,modifiers:{number:n}}){setSelected(t,r)},beforeUpdate(t,r,n){t[assignKey]=getModelAssigner(n)},updated(t,{value:r,modifiers:{number:n}}){t._assigning||setSelected(t,r)}};function setSelected(t,r,n){const i=t.multiple,a=isArray$2(r);if(!(i&&!a&&!isSet(r))){for(let o=0,s=t.options.length;o<s;o++){const l=t.options[o],u=getValue(l);if(i)if(a){const c=typeof u;c==="string"||c==="number"?l.selected=r.some(d=>String(d)===String(u)):l.selected=looseIndexOf(r,u)>-1}else l.selected=r.has(u);else if(looseEqual(getValue(l),r)){t.selectedIndex!==o&&(t.selectedIndex=o);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,r){const n=r?"_trueValue":"_falseValue";return n in t?t[n]:r}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>systemModifiers.some(n=>t[`${n}Key`]&&!r.includes(n))},withModifiers=(t,r)=>{const n=t._withMods||(t._withMods={}),i=r.join(".");return n[i]||(n[i]=(a,...o)=>{for(let s=0;s<r.length;s++){const l=modifierGuards[r[s]];if(l&&l(a,r))return}return t(a,...o)})},rendererOptions=extend$1({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(...t)=>{const r=ensureRenderer().createApp(...t),{mount:n}=r;return r.mount=i=>{const a=normalizeContainer(i);if(!a)return;const o=r._component;!isFunction$2(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const s=n(a,!1,resolveRootNamespace(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),s},r};function resolveRootNamespace(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function normalizeContainer(t){return isString$2(t)?document.querySelector(t):t}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(t){if(t.__esModule)return t;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var collapse={exports:{}},baseComponent={exports:{}},data={exports:{}};/*!
21
- * Bootstrap data.js v5.3.3 (https://getbootstrap.com/)
22
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
23
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
24
- */(function(t,r){(function(n,i){t.exports=i()})(commonjsGlobal,function(){const n=new Map;return{set(a,o,s){n.has(a)||n.set(a,new Map);const l=n.get(a);if(!l.has(o)&&l.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(l.keys())[0]}.`);return}l.set(o,s)},get(a,o){return n.has(a)&&n.get(a).get(o)||null},remove(a,o){if(!n.has(a))return;const s=n.get(a);s.delete(o),s.size===0&&n.delete(a)}}})})(data);var eventHandler={exports:{}},util={exports:{}};/*!
25
- * Bootstrap index.js v5.3.3 (https://getbootstrap.com/)
26
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
27
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
28
- */(function(t,r){(function(n,i){i(r)})(commonjsGlobal,function(n){const o="transitionend",s=J=>(J&&window.CSS&&window.CSS.escape&&(J=J.replace(/#([^\s"#']+)/g,(re,te)=>`#${CSS.escape(te)}`)),J),l=J=>J==null?`${J}`:Object.prototype.toString.call(J).match(/\s([a-z]+)/i)[1].toLowerCase(),u=J=>{do J+=Math.floor(Math.random()*1e6);while(document.getElementById(J));return J},c=J=>{if(!J)return 0;let{transitionDuration:re,transitionDelay:te}=window.getComputedStyle(J);const oe=Number.parseFloat(re),le=Number.parseFloat(te);return!oe&&!le?0:(re=re.split(",")[0],te=te.split(",")[0],(Number.parseFloat(re)+Number.parseFloat(te))*1e3)},d=J=>{J.dispatchEvent(new Event(o))},v=J=>!J||typeof J!="object"?!1:(typeof J.jquery!="undefined"&&(J=J[0]),typeof J.nodeType!="undefined"),$=J=>v(J)?J.jquery?J[0]:J:typeof J=="string"&&J.length>0?document.querySelector(s(J)):null,I=J=>{if(!v(J)||J.getClientRects().length===0)return!1;const re=getComputedStyle(J).getPropertyValue("visibility")==="visible",te=J.closest("details:not([open])");if(!te)return re;if(te!==J){const oe=J.closest("summary");if(oe&&oe.parentNode!==te||oe===null)return!1}return re},O=J=>!J||J.nodeType!==Node.ELEMENT_NODE||J.classList.contains("disabled")?!0:typeof J.disabled!="undefined"?J.disabled:J.hasAttribute("disabled")&&J.getAttribute("disabled")!=="false",R=J=>{if(!document.documentElement.attachShadow)return null;if(typeof J.getRootNode=="function"){const re=J.getRootNode();return re instanceof ShadowRoot?re:null}return J instanceof ShadowRoot?J:J.parentNode?R(J.parentNode):null},M=()=>{},F=J=>{J.offsetHeight},V=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,G=[],Y=J=>{document.readyState==="loading"?(G.length||document.addEventListener("DOMContentLoaded",()=>{for(const re of G)re()}),G.push(J)):J()},X=()=>document.documentElement.dir==="rtl",q=J=>{Y(()=>{const re=V();if(re){const te=J.NAME,oe=re.fn[te];re.fn[te]=J.jQueryInterface,re.fn[te].Constructor=J,re.fn[te].noConflict=()=>(re.fn[te]=oe,J.jQueryInterface)}})},Z=(J,re=[],te=J)=>typeof J=="function"?J(...re):te,Q=(J,re,te=!0)=>{if(!te){Z(J);return}const oe=5,le=c(re)+oe;let fe=!1;const de=({target:Se})=>{Se===re&&(fe=!0,re.removeEventListener(o,de),Z(J))};re.addEventListener(o,de),setTimeout(()=>{fe||d(re)},le)},ie=(J,re,te,oe)=>{const le=J.length;let fe=J.indexOf(re);return fe===-1?!te&&oe?J[le-1]:J[0]:(fe+=te?1:-1,oe&&(fe=(fe+le)%le),J[Math.max(0,Math.min(fe,le-1))])};n.defineJQueryPlugin=q,n.execute=Z,n.executeAfterTransition=Q,n.findShadowRoot=R,n.getElement=$,n.getNextActiveElement=ie,n.getTransitionDurationFromElement=c,n.getUID=u,n.getjQuery=V,n.isDisabled=O,n.isElement=v,n.isRTL=X,n.isVisible=I,n.noop=M,n.onDOMContentLoaded=Y,n.parseSelector=s,n.reflow=F,n.toType=l,n.triggerTransitionEnd=d,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(util,util.exports);/*!
29
- * Bootstrap event-handler.js v5.3.3 (https://getbootstrap.com/)
30
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
31
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
32
- */(function(t,r){(function(n,i){t.exports=i(util.exports)})(commonjsGlobal,function(n){const i=/[^.]*(?=\..*)\.|.*/,a=/\..*/,o=/::\d+$/,s={};let l=1;const u={mouseenter:"mouseover",mouseleave:"mouseout"},c=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function d(q,Z){return Z&&`${Z}::${l++}`||q.uidEvent||l++}function v(q){const Z=d(q);return q.uidEvent=Z,s[Z]=s[Z]||{},s[Z]}function $(q,Z){return function Q(ie){return X(ie,{delegateTarget:q}),Q.oneOff&&Y.off(q,ie.type,Z),Z.apply(q,[ie])}}function I(q,Z,Q){return function ie(J){const re=q.querySelectorAll(Z);for(let{target:te}=J;te&&te!==this;te=te.parentNode)for(const oe of re)if(oe===te)return X(J,{delegateTarget:te}),ie.oneOff&&Y.off(q,J.type,Z,Q),Q.apply(te,[J])}}function O(q,Z,Q=null){return Object.values(q).find(ie=>ie.callable===Z&&ie.delegationSelector===Q)}function R(q,Z,Q){const ie=typeof Z=="string",J=ie?Q:Z||Q;let re=G(q);return c.has(re)||(re=q),[ie,J,re]}function M(q,Z,Q,ie,J){if(typeof Z!="string"||!q)return;let[re,te,oe]=R(Z,Q,ie);Z in u&&(te=(ke=>function(Ie){if(!Ie.relatedTarget||Ie.relatedTarget!==Ie.delegateTarget&&!Ie.delegateTarget.contains(Ie.relatedTarget))return ke.call(this,Ie)})(te));const le=v(q),fe=le[oe]||(le[oe]={}),de=O(fe,te,re?Q:null);if(de){de.oneOff=de.oneOff&&J;return}const Se=d(te,Z.replace(i,"")),ge=re?I(q,Q,te):$(q,te);ge.delegationSelector=re?Q:null,ge.callable=te,ge.oneOff=J,ge.uidEvent=Se,fe[Se]=ge,q.addEventListener(oe,ge,re)}function F(q,Z,Q,ie,J){const re=O(Z[Q],ie,J);!re||(q.removeEventListener(Q,re,Boolean(J)),delete Z[Q][re.uidEvent])}function V(q,Z,Q,ie){const J=Z[Q]||{};for(const[re,te]of Object.entries(J))re.includes(ie)&&F(q,Z,Q,te.callable,te.delegationSelector)}function G(q){return q=q.replace(a,""),u[q]||q}const Y={on(q,Z,Q,ie){M(q,Z,Q,ie,!1)},one(q,Z,Q,ie){M(q,Z,Q,ie,!0)},off(q,Z,Q,ie){if(typeof Z!="string"||!q)return;const[J,re,te]=R(Z,Q,ie),oe=te!==Z,le=v(q),fe=le[te]||{},de=Z.startsWith(".");if(typeof re!="undefined"){if(!Object.keys(fe).length)return;F(q,le,te,re,J?Q:null);return}if(de)for(const Se of Object.keys(le))V(q,le,Se,Z.slice(1));for(const[Se,ge]of Object.entries(fe)){const Te=Se.replace(o,"");(!oe||Z.includes(Te))&&F(q,le,te,ge.callable,ge.delegationSelector)}},trigger(q,Z,Q){if(typeof Z!="string"||!q)return null;const ie=n.getjQuery(),J=G(Z),re=Z!==J;let te=null,oe=!0,le=!0,fe=!1;re&&ie&&(te=ie.Event(Z,Q),ie(q).trigger(te),oe=!te.isPropagationStopped(),le=!te.isImmediatePropagationStopped(),fe=te.isDefaultPrevented());const de=X(new Event(Z,{bubbles:oe,cancelable:!0}),Q);return fe&&de.preventDefault(),le&&q.dispatchEvent(de),de.defaultPrevented&&te&&te.preventDefault(),de}};function X(q,Z={}){for(const[Q,ie]of Object.entries(Z))try{q[Q]=ie}catch{Object.defineProperty(q,Q,{configurable:!0,get(){return ie}})}return q}return Y})})(eventHandler);var config={exports:{}},manipulator={exports:{}};/*!
33
- * Bootstrap manipulator.js v5.3.3 (https://getbootstrap.com/)
34
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
35
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
36
- */(function(t,r){(function(n,i){t.exports=i()})(commonjsGlobal,function(){function n(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function i(o){return o.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}return{setDataAttribute(o,s,l){o.setAttribute(`data-bs-${i(s)}`,l)},removeDataAttribute(o,s){o.removeAttribute(`data-bs-${i(s)}`)},getDataAttributes(o){if(!o)return{};const s={},l=Object.keys(o.dataset).filter(u=>u.startsWith("bs")&&!u.startsWith("bsConfig"));for(const u of l){let c=u.replace(/^bs/,"");c=c.charAt(0).toLowerCase()+c.slice(1,c.length),s[c]=n(o.dataset[u])}return s},getDataAttribute(o,s){return n(o.getAttribute(`data-bs-${i(s)}`))}}})})(manipulator);/*!
37
- * Bootstrap config.js v5.3.3 (https://getbootstrap.com/)
38
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
39
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
40
- */(function(t,r){(function(n,i){t.exports=i(manipulator.exports,util.exports)})(commonjsGlobal,function(n,i){class a{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(s){return s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s}_mergeConfigObj(s,l){const u=i.isElement(l)?n.getDataAttribute(l,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...i.isElement(l)?n.getDataAttributes(l):{},...typeof s=="object"?s:{}}}_typeCheckConfig(s,l=this.constructor.DefaultType){for(const[u,c]of Object.entries(l)){const d=s[u],v=i.isElement(d)?"element":i.toType(d);if(!new RegExp(c).test(v))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${u}" provided type "${v}" but expected type "${c}".`)}}}return a})})(config);/*!
41
- * Bootstrap base-component.js v5.3.3 (https://getbootstrap.com/)
42
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
43
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
44
- */(function(t,r){(function(n,i){t.exports=i(data.exports,eventHandler.exports,config.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="5.3.3";class l extends a{constructor(c,d){super(),c=o.getElement(c),c&&(this._element=c,this._config=this._getConfig(d),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),i.off(this._element,this.constructor.EVENT_KEY);for(const c of Object.getOwnPropertyNames(this))this[c]=null}_queueCallback(c,d,v=!0){o.executeAfterTransition(c,d,v)}_getConfig(c){return c=this._mergeConfigObj(c,this._element),c=this._configAfterMerge(c),this._typeCheckConfig(c),c}static getInstance(c){return n.get(o.getElement(c),this.DATA_KEY)}static getOrCreateInstance(c,d={}){return this.getInstance(c)||new this(c,typeof d=="object"?d:null)}static get VERSION(){return s}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(c){return`${c}${this.EVENT_KEY}`}}return l})})(baseComponent);var selectorEngine={exports:{}};/*!
45
- * Bootstrap selector-engine.js v5.3.3 (https://getbootstrap.com/)
46
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
47
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
48
- */(function(t,r){(function(n,i){t.exports=i(util.exports)})(commonjsGlobal,function(n){const i=o=>{let s=o.getAttribute("data-bs-target");if(!s||s==="#"){let l=o.getAttribute("href");if(!l||!l.includes("#")&&!l.startsWith("."))return null;l.includes("#")&&!l.startsWith("#")&&(l=`#${l.split("#")[1]}`),s=l&&l!=="#"?l.trim():null}return s?s.split(",").map(l=>n.parseSelector(l)).join(","):null},a={find(o,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,o))},findOne(o,s=document.documentElement){return Element.prototype.querySelector.call(s,o)},children(o,s){return[].concat(...o.children).filter(l=>l.matches(s))},parents(o,s){const l=[];let u=o.parentNode.closest(s);for(;u;)l.push(u),u=u.parentNode.closest(s);return l},prev(o,s){let l=o.previousElementSibling;for(;l;){if(l.matches(s))return[l];l=l.previousElementSibling}return[]},next(o,s){let l=o.nextElementSibling;for(;l;){if(l.matches(s))return[l];l=l.nextElementSibling}return[]},focusableChildren(o){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(l=>`${l}:not([tabindex^="-"])`).join(",");return this.find(s,o).filter(l=>!n.isDisabled(l)&&n.isVisible(l))},getSelectorFromElement(o){const s=i(o);return s&&a.findOne(s)?s:null},getElementFromSelector(o){const s=i(o);return s?a.findOne(s):null},getMultipleElementsFromSelector(o){const s=i(o);return s?a.find(s):[]}};return a})})(selectorEngine);/*!
49
- * Bootstrap collapse.js v5.3.3 (https://getbootstrap.com/)
50
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
51
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
52
- */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="collapse",u=".bs.collapse",c=".data-api",d=`show${u}`,v=`shown${u}`,$=`hide${u}`,I=`hidden${u}`,O=`click${u}${c}`,R="show",M="collapse",F="collapsing",V="collapsed",G=`:scope .${M} .${M}`,Y="collapse-horizontal",X="width",q="height",Z=".collapse.show, .collapse.collapsing",Q='[data-bs-toggle="collapse"]',ie={parent:null,toggle:!0},J={parent:"(null|element)",toggle:"boolean"};class re extends n{constructor(oe,le){super(oe,le),this._isTransitioning=!1,this._triggerArray=[];const fe=a.find(Q);for(const de of fe){const Se=a.getSelectorFromElement(de),ge=a.find(Se).filter(Te=>Te===this._element);Se!==null&&ge.length&&this._triggerArray.push(de)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ie}static get DefaultType(){return J}static get NAME(){return s}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let oe=[];if(this._config.parent&&(oe=this._getFirstLevelChildren(Z).filter(Te=>Te!==this._element).map(Te=>re.getOrCreateInstance(Te,{toggle:!1}))),oe.length&&oe[0]._isTransitioning||i.trigger(this._element,d).defaultPrevented)return;for(const Te of oe)Te.hide();const fe=this._getDimension();this._element.classList.remove(M),this._element.classList.add(F),this._element.style[fe]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const de=()=>{this._isTransitioning=!1,this._element.classList.remove(F),this._element.classList.add(M,R),this._element.style[fe]="",i.trigger(this._element,v)},ge=`scroll${fe[0].toUpperCase()+fe.slice(1)}`;this._queueCallback(de,this._element,!0),this._element.style[fe]=`${this._element[ge]}px`}hide(){if(this._isTransitioning||!this._isShown()||i.trigger(this._element,$).defaultPrevented)return;const le=this._getDimension();this._element.style[le]=`${this._element.getBoundingClientRect()[le]}px`,o.reflow(this._element),this._element.classList.add(F),this._element.classList.remove(M,R);for(const de of this._triggerArray){const Se=a.getElementFromSelector(de);Se&&!this._isShown(Se)&&this._addAriaAndCollapsedClass([de],!1)}this._isTransitioning=!0;const fe=()=>{this._isTransitioning=!1,this._element.classList.remove(F),this._element.classList.add(M),i.trigger(this._element,I)};this._element.style[le]="",this._queueCallback(fe,this._element,!0)}_isShown(oe=this._element){return oe.classList.contains(R)}_configAfterMerge(oe){return oe.toggle=Boolean(oe.toggle),oe.parent=o.getElement(oe.parent),oe}_getDimension(){return this._element.classList.contains(Y)?X:q}_initializeChildren(){if(!this._config.parent)return;const oe=this._getFirstLevelChildren(Q);for(const le of oe){const fe=a.getElementFromSelector(le);fe&&this._addAriaAndCollapsedClass([le],this._isShown(fe))}}_getFirstLevelChildren(oe){const le=a.find(G,this._config.parent);return a.find(oe,this._config.parent).filter(fe=>!le.includes(fe))}_addAriaAndCollapsedClass(oe,le){if(!!oe.length)for(const fe of oe)fe.classList.toggle(V,!le),fe.setAttribute("aria-expanded",le)}static jQueryInterface(oe){const le={};return typeof oe=="string"&&/show|hide/.test(oe)&&(le.toggle=!1),this.each(function(){const fe=re.getOrCreateInstance(this,le);if(typeof oe=="string"){if(typeof fe[oe]=="undefined")throw new TypeError(`No method named "${oe}"`);fe[oe]()}})}}return i.on(document,O,Q,function(te){(te.target.tagName==="A"||te.delegateTarget&&te.delegateTarget.tagName==="A")&&te.preventDefault();for(const oe of a.getMultipleElementsFromSelector(this))re.getOrCreateInstance(oe,{toggle:!1}).toggle()}),o.defineJQueryPlugin(re),re})})(collapse);var Collapse=collapse.exports,alert={exports:{}},componentFunctions={exports:{}};/*!
53
- * Bootstrap component-functions.js v5.3.3 (https://getbootstrap.com/)
54
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
55
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
56
- */(function(t,r){(function(n,i){i(r,eventHandler.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s=(l,u="hide")=>{const c=`click.dismiss${l.EVENT_KEY}`,d=l.NAME;i.on(document,c,`[data-bs-dismiss="${d}"]`,function(v){if(["A","AREA"].includes(this.tagName)&&v.preventDefault(),o.isDisabled(this))return;const $=a.getElementFromSelector(this)||this.closest(`.${d}`);l.getOrCreateInstance($)[u]()})};n.enableDismissTrigger=s,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(componentFunctions,componentFunctions.exports);/*!
57
- * Bootstrap alert.js v5.3.3 (https://getbootstrap.com/)
58
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
59
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
60
- */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,componentFunctions.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="alert",u=".bs.alert",c=`close${u}`,d=`closed${u}`,v="fade",$="show";class I extends n{static get NAME(){return s}close(){if(i.trigger(this._element,c).defaultPrevented)return;this._element.classList.remove($);const M=this._element.classList.contains(v);this._queueCallback(()=>this._destroyElement(),this._element,M)}_destroyElement(){this._element.remove(),i.trigger(this._element,d),this.dispose()}static jQueryInterface(R){return this.each(function(){const M=I.getOrCreateInstance(this);if(typeof R=="string"){if(M[R]===void 0||R.startsWith("_")||R==="constructor")throw new TypeError(`No method named "${R}"`);M[R](this)}})}}return a.enableDismissTrigger(I,"close"),o.defineJQueryPlugin(I),I})})(alert);var Alert=alert.exports,carousel={exports:{}},swipe={exports:{}};/*!
61
- * Bootstrap swipe.js v5.3.3 (https://getbootstrap.com/)
62
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
63
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
64
- */(function(t,r){(function(n,i){t.exports=i(eventHandler.exports,config.exports,util.exports)})(commonjsGlobal,function(n,i,a){const o="swipe",s=".bs.swipe",l=`touchstart${s}`,u=`touchmove${s}`,c=`touchend${s}`,d=`pointerdown${s}`,v=`pointerup${s}`,$="touch",I="pen",O="pointer-event",R=40,M={endCallback:null,leftCallback:null,rightCallback:null},F={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class V extends i{constructor(Y,X){super(),this._element=Y,!(!Y||!V.isSupported())&&(this._config=this._getConfig(X),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return M}static get DefaultType(){return F}static get NAME(){return o}dispose(){n.off(this._element,s)}_start(Y){if(!this._supportPointerEvents){this._deltaX=Y.touches[0].clientX;return}this._eventIsPointerPenTouch(Y)&&(this._deltaX=Y.clientX)}_end(Y){this._eventIsPointerPenTouch(Y)&&(this._deltaX=Y.clientX-this._deltaX),this._handleSwipe(),a.execute(this._config.endCallback)}_move(Y){this._deltaX=Y.touches&&Y.touches.length>1?0:Y.touches[0].clientX-this._deltaX}_handleSwipe(){const Y=Math.abs(this._deltaX);if(Y<=R)return;const X=Y/this._deltaX;this._deltaX=0,X&&a.execute(X>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(n.on(this._element,d,Y=>this._start(Y)),n.on(this._element,v,Y=>this._end(Y)),this._element.classList.add(O)):(n.on(this._element,l,Y=>this._start(Y)),n.on(this._element,u,Y=>this._move(Y)),n.on(this._element,c,Y=>this._end(Y)))}_eventIsPointerPenTouch(Y){return this._supportPointerEvents&&(Y.pointerType===I||Y.pointerType===$)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return V})})(swipe);/*!
65
- * Bootstrap carousel.js v5.3.3 (https://getbootstrap.com/)
66
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
67
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
68
- */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,manipulator.exports,selectorEngine.exports,util.exports,swipe.exports)})(commonjsGlobal,function(n,i,a,o,s,l){const u="carousel",d=".bs.carousel",v=".data-api",$="ArrowLeft",I="ArrowRight",O=500,R="next",M="prev",F="left",V="right",G=`slide${d}`,Y=`slid${d}`,X=`keydown${d}`,q=`mouseenter${d}`,Z=`mouseleave${d}`,Q=`dragstart${d}`,ie=`load${d}${v}`,J=`click${d}${v}`,re="carousel",te="active",oe="slide",le="carousel-item-end",fe="carousel-item-start",de="carousel-item-next",Se="carousel-item-prev",ge=".active",Te=".carousel-item",ke=ge+Te,Ie=".carousel-item img",me=".carousel-indicators",Oe="[data-bs-slide], [data-bs-slide-to]",Ve='[data-bs-ride="carousel"]',Xe={[$]:V,[I]:F},Ge={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},st={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class at extends n{constructor(Le,De){super(Le,De),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=o.findOne(me,this._element),this._addEventListeners(),this._config.ride===re&&this.cycle()}static get Default(){return Ge}static get DefaultType(){return st}static get NAME(){return u}next(){this._slide(R)}nextWhenVisible(){!document.hidden&&s.isVisible(this._element)&&this.next()}prev(){this._slide(M)}pause(){this._isSliding&&s.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){i.one(this._element,Y,()=>this.cycle());return}this.cycle()}}to(Le){const De=this._getItems();if(Le>De.length-1||Le<0)return;if(this._isSliding){i.one(this._element,Y,()=>this.to(Le));return}const Be=this._getItemIndex(this._getActive());if(Be===Le)return;const se=Le>Be?R:M;this._slide(se,De[Le])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(Le){return Le.defaultInterval=Le.interval,Le}_addEventListeners(){this._config.keyboard&&i.on(this._element,X,Le=>this._keydown(Le)),this._config.pause==="hover"&&(i.on(this._element,q,()=>this.pause()),i.on(this._element,Z,()=>this._maybeEnableCycle())),this._config.touch&&l.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const Be of o.find(Ie,this._element))i.on(Be,Q,se=>se.preventDefault());const De={leftCallback:()=>this._slide(this._directionToOrder(F)),rightCallback:()=>this._slide(this._directionToOrder(V)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),O+this._config.interval))}};this._swipeHelper=new l(this._element,De)}_keydown(Le){if(/input|textarea/i.test(Le.target.tagName))return;const De=Xe[Le.key];De&&(Le.preventDefault(),this._slide(this._directionToOrder(De)))}_getItemIndex(Le){return this._getItems().indexOf(Le)}_setActiveIndicatorElement(Le){if(!this._indicatorsElement)return;const De=o.findOne(ge,this._indicatorsElement);De.classList.remove(te),De.removeAttribute("aria-current");const Be=o.findOne(`[data-bs-slide-to="${Le}"]`,this._indicatorsElement);Be&&(Be.classList.add(te),Be.setAttribute("aria-current","true"))}_updateInterval(){const Le=this._activeElement||this._getActive();if(!Le)return;const De=Number.parseInt(Le.getAttribute("data-bs-interval"),10);this._config.interval=De||this._config.defaultInterval}_slide(Le,De=null){if(this._isSliding)return;const Be=this._getActive(),se=Le===R,ae=De||s.getNextActiveElement(this._getItems(),Be,se,this._config.wrap);if(ae===Be)return;const ve=this._getItemIndex(ae),be=we=>i.trigger(this._element,we,{relatedTarget:ae,direction:this._orderToDirection(Le),from:this._getItemIndex(Be),to:ve});if(be(G).defaultPrevented||!Be||!ae)return;const Re=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(ve),this._activeElement=ae;const Me=se?fe:le,xe=se?de:Se;ae.classList.add(xe),s.reflow(ae),Be.classList.add(Me),ae.classList.add(Me);const Pe=()=>{ae.classList.remove(Me,xe),ae.classList.add(te),Be.classList.remove(te,xe,Me),this._isSliding=!1,be(Y)};this._queueCallback(Pe,Be,this._isAnimated()),Re&&this.cycle()}_isAnimated(){return this._element.classList.contains(oe)}_getActive(){return o.findOne(ke,this._element)}_getItems(){return o.find(Te,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(Le){return s.isRTL()?Le===F?M:R:Le===F?R:M}_orderToDirection(Le){return s.isRTL()?Le===M?F:V:Le===M?V:F}static jQueryInterface(Le){return this.each(function(){const De=at.getOrCreateInstance(this,Le);if(typeof Le=="number"){De.to(Le);return}if(typeof Le=="string"){if(De[Le]===void 0||Le.startsWith("_")||Le==="constructor")throw new TypeError(`No method named "${Le}"`);De[Le]()}})}}return i.on(document,J,Oe,function(ft){const Le=o.getElementFromSelector(this);if(!Le||!Le.classList.contains(re))return;ft.preventDefault();const De=at.getOrCreateInstance(Le),Be=this.getAttribute("data-bs-slide-to");if(Be){De.to(Be),De._maybeEnableCycle();return}if(a.getDataAttribute(this,"slide")==="next"){De.next(),De._maybeEnableCycle();return}De.prev(),De._maybeEnableCycle()}),i.on(window,ie,()=>{const ft=o.find(Ve);for(const Le of ft)at.getOrCreateInstance(Le)}),s.defineJQueryPlugin(at),at})})(carousel);var Carousel=carousel.exports,dropdown={exports:{}},top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start$1="start",end$1="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(t,r){return t.concat([r+"-"+start$1,r+"-"+end$1])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(t,r){return t.concat([r,r+"-"+start$1,r+"-"+end$1])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(t){return t?(t.nodeName||"").toLowerCase():null}function getWindow(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function isElement$1(t){var r=getWindow(t).Element;return t instanceof r||t instanceof Element}function isHTMLElement(t){var r=getWindow(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function isShadowRoot(t){if(typeof ShadowRoot=="undefined")return!1;var r=getWindow(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function applyStyles(t){var r=t.state;Object.keys(r.elements).forEach(function(n){var i=r.styles[n]||{},a=r.attributes[n]||{},o=r.elements[n];!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(s){var l=a[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function effect$2(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(i){var a=r.elements[i],o=r.attributes[i]||{},s=Object.keys(r.styles.hasOwnProperty(i)?r.styles[i]:n[i]),l=s.reduce(function(u,c){return u[c]="",u},{});!isHTMLElement(a)||!getNodeName(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(t){return t.split("-")[0]}var max$2=Math.max,min$2=Math.min,round$2=Math.round;function getUAString(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(t,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),a=1,o=1;r&&isHTMLElement(t)&&(a=t.offsetWidth>0&&round$2(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&round$2(i.height)/t.offsetHeight||1);var s=isElement$1(t)?getWindow(t):window,l=s.visualViewport,u=!isLayoutViewport()&&n,c=(i.left+(u&&l?l.offsetLeft:0))/a,d=(i.top+(u&&l?l.offsetTop:0))/o,v=i.width/a,$=i.height/o;return{width:v,height:$,top:d,right:c+v,bottom:d+$,left:c,x:c,y:d}}function getLayoutRect$1(t){var r=getBoundingClientRect(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-i)<=1&&(i=r.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function contains(t,r){var n=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(n&&isShadowRoot(n)){var i=r;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$3(t){return getWindow(t).getComputedStyle(t)}function isTableElement(t){return["table","td","th"].indexOf(getNodeName(t))>=0}function getDocumentElement(t){return((isElement$1(t)?t.ownerDocument:t.document)||window.document).documentElement}function getParentNode(t){return getNodeName(t)==="html"?t:t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){return!isHTMLElement(t)||getComputedStyle$3(t).position==="fixed"?null:t.offsetParent}function getContainingBlock(t){var r=/firefox/i.test(getUAString()),n=/Trident/i.test(getUAString());if(n&&isHTMLElement(t)){var i=getComputedStyle$3(t);if(i.position==="fixed")return null}var a=getParentNode(t);for(isShadowRoot(a)&&(a=a.host);isHTMLElement(a)&&["html","body"].indexOf(getNodeName(a))<0;){var o=getComputedStyle$3(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||r&&o.willChange==="filter"||r&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function getOffsetParent(t){for(var r=getWindow(t),n=getTrueOffsetParent(t);n&&isTableElement(n)&&getComputedStyle$3(n).position==="static";)n=getTrueOffsetParent(n);return n&&(getNodeName(n)==="html"||getNodeName(n)==="body"&&getComputedStyle$3(n).position==="static")?r:n||getContainingBlock(t)||r}function getMainAxisFromPlacement(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function within(t,r,n){return max$2(t,min$2(r,n))}function withinMaxClamp(t,r,n){var i=within(t,r,n);return i>n?n:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(t){return Object.assign({},getFreshSideObject(),t)}function expandToHashMap(t,r){return r.reduce(function(n,i){return n[i]=t,n},{})}var toPaddingObject=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,mergePaddingObject(typeof r!="number"?r:expandToHashMap(r,basePlacements))};function arrow(t){var r,n=t.state,i=t.name,a=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=getBasePlacement(n.placement),u=getMainAxisFromPlacement(l),c=[left,right].indexOf(l)>=0,d=c?"height":"width";if(!(!o||!s)){var v=toPaddingObject(a.padding,n),$=getLayoutRect$1(o),I=u==="y"?top:left,O=u==="y"?bottom:right,R=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],M=s[u]-n.rects.reference[u],F=getOffsetParent(o),V=F?u==="y"?F.clientHeight||0:F.clientWidth||0:0,G=R/2-M/2,Y=v[I],X=V-$[d]-v[O],q=V/2-$[d]/2+G,Z=within(Y,q,X),Q=u;n.modifiersData[i]=(r={},r[Q]=Z,r.centerOffset=Z-q,r)}}function effect$1(t){var r=t.state,n=t.options,i=n.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||!contains(r.elements.popper,a)||(r.elements.arrow=a))}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(t){return t.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(t,r){var n=t.x,i=t.y,a=r.devicePixelRatio||1;return{x:round$2(n*a)/a||0,y:round$2(i*a)/a||0}}function mapToStyles(t){var r,n=t.popper,i=t.popperRect,a=t.placement,o=t.variation,s=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,v=t.isFixed,$=s.x,I=$===void 0?0:$,O=s.y,R=O===void 0?0:O,M=typeof d=="function"?d({x:I,y:R}):{x:I,y:R};I=M.x,R=M.y;var F=s.hasOwnProperty("x"),V=s.hasOwnProperty("y"),G=left,Y=top,X=window;if(c){var q=getOffsetParent(n),Z="clientHeight",Q="clientWidth";if(q===getWindow(n)&&(q=getDocumentElement(n),getComputedStyle$3(q).position!=="static"&&l==="absolute"&&(Z="scrollHeight",Q="scrollWidth")),q=q,a===top||(a===left||a===right)&&o===end$1){Y=bottom;var ie=v&&q===X&&X.visualViewport?X.visualViewport.height:q[Z];R-=ie-i.height,R*=u?1:-1}if(a===left||(a===top||a===bottom)&&o===end$1){G=right;var J=v&&q===X&&X.visualViewport?X.visualViewport.width:q[Q];I-=J-i.width,I*=u?1:-1}}var re=Object.assign({position:l},c&&unsetSides),te=d===!0?roundOffsetsByDPR({x:I,y:R},getWindow(n)):{x:I,y:R};if(I=te.x,R=te.y,u){var oe;return Object.assign({},re,(oe={},oe[Y]=V?"0":"",oe[G]=F?"0":"",oe.transform=(X.devicePixelRatio||1)<=1?"translate("+I+"px, "+R+"px)":"translate3d("+I+"px, "+R+"px, 0)",oe))}return Object.assign({},re,(r={},r[Y]=V?R+"px":"",r[G]=F?I+"px":"",r.transform="",r))}function computeStyles(t){var r=t.state,n=t.options,i=n.gpuAcceleration,a=i===void 0?!0:i,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:getBasePlacement(r.placement),variation:getVariation(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,mapToStyles(Object.assign({},c,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:s,roundOffsets:u})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,mapToStyles(Object.assign({},c,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(t){var r=t.state,n=t.instance,i=t.options,a=i.scroll,o=a===void 0?!0:a,s=i.resize,l=s===void 0?!0:s,u=getWindow(r.elements.popper),c=[].concat(r.scrollParents.reference,r.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,passive)}),l&&u.addEventListener("resize",n.update,passive),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,passive)}),l&&u.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,function(r){return hash$1[r]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(t){return t.replace(/start|end/g,function(r){return hash[r]})}function getWindowScroll(t){var r=getWindow(t),n=r.pageXOffset,i=r.pageYOffset;return{scrollLeft:n,scrollTop:i}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getWindowScroll(t).scrollLeft}function getViewportRect(t,r){var n=getWindow(t),i=getDocumentElement(t),a=n.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;var c=isLayoutViewport();(c||!c&&r==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l+getWindowScrollBarX(t),y:u}}function getDocumentRect(t){var r,n=getDocumentElement(t),i=getWindowScroll(t),a=(r=t.ownerDocument)==null?void 0:r.body,o=max$2(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=max$2(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+getWindowScrollBarX(t),u=-i.scrollTop;return getComputedStyle$3(a||n).direction==="rtl"&&(l+=max$2(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function isScrollParent(t){var r=getComputedStyle$3(t),n=r.overflow,i=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function getScrollParent(t){return["html","body","#document"].indexOf(getNodeName(t))>=0?t.ownerDocument.body:isHTMLElement(t)&&isScrollParent(t)?t:getScrollParent(getParentNode(t))}function listScrollParents(t,r){var n;r===void 0&&(r=[]);var i=getScrollParent(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),o=getWindow(i),s=a?[o].concat(o.visualViewport||[],isScrollParent(i)?i:[]):i,l=r.concat(s);return a?l:l.concat(listScrollParents(getParentNode(s)))}function rectToClientRect(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function getInnerBoundingClientRect(t,r){var n=getBoundingClientRect(t,!1,r==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(t,r,n){return r===viewport?rectToClientRect(getViewportRect(t,n)):isElement$1(r)?getInnerBoundingClientRect(r,n):rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingParents(t){var r=listScrollParents(getParentNode(t)),n=["absolute","fixed"].indexOf(getComputedStyle$3(t).position)>=0,i=n&&isHTMLElement(t)?getOffsetParent(t):t;return isElement$1(i)?r.filter(function(a){return isElement$1(a)&&contains(a,i)&&getNodeName(a)!=="body"}):[]}function getClippingRect(t,r,n,i){var a=r==="clippingParents"?getClippingParents(t):[].concat(r),o=[].concat(a,[n]),s=o[0],l=o.reduce(function(u,c){var d=getClientRectFromMixedType(t,c,i);return u.top=max$2(d.top,u.top),u.right=min$2(d.right,u.right),u.bottom=min$2(d.bottom,u.bottom),u.left=max$2(d.left,u.left),u},getClientRectFromMixedType(t,s,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function computeOffsets(t){var r=t.reference,n=t.element,i=t.placement,a=i?getBasePlacement(i):null,o=i?getVariation(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2,u;switch(a){case top:u={x:s,y:r.y-n.height};break;case bottom:u={x:s,y:r.y+r.height};break;case right:u={x:r.x+r.width,y:l};break;case left:u={x:r.x-n.width,y:l};break;default:u={x:r.x,y:r.y}}var c=a?getMainAxisFromPlacement(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case start$1:u[c]=u[c]-(r[d]/2-n[d]/2);break;case end$1:u[c]=u[c]+(r[d]/2-n[d]/2);break}}return u}function detectOverflow(t,r){r===void 0&&(r={});var n=r,i=n.placement,a=i===void 0?t.placement:i,o=n.strategy,s=o===void 0?t.strategy:o,l=n.boundary,u=l===void 0?clippingParents:l,c=n.rootBoundary,d=c===void 0?viewport:c,v=n.elementContext,$=v===void 0?popper:v,I=n.altBoundary,O=I===void 0?!1:I,R=n.padding,M=R===void 0?0:R,F=mergePaddingObject(typeof M!="number"?M:expandToHashMap(M,basePlacements)),V=$===popper?reference:popper,G=t.rects.popper,Y=t.elements[O?V:$],X=getClippingRect(isElement$1(Y)?Y:Y.contextElement||getDocumentElement(t.elements.popper),u,d,s),q=getBoundingClientRect(t.elements.reference),Z=computeOffsets({reference:q,element:G,strategy:"absolute",placement:a}),Q=rectToClientRect(Object.assign({},G,Z)),ie=$===popper?Q:q,J={top:X.top-ie.top+F.top,bottom:ie.bottom-X.bottom+F.bottom,left:X.left-ie.left+F.left,right:ie.right-X.right+F.right},re=t.modifiersData.offset;if($===popper&&re){var te=re[a];Object.keys(J).forEach(function(oe){var le=[right,bottom].indexOf(oe)>=0?1:-1,fe=[top,bottom].indexOf(oe)>=0?"y":"x";J[oe]+=te[fe]*le})}return J}function computeAutoPlacement(t,r){r===void 0&&(r={});var n=r,i=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?placements:u,d=getVariation(i),v=d?l?variationPlacements:variationPlacements.filter(function(O){return getVariation(O)===d}):basePlacements,$=v.filter(function(O){return c.indexOf(O)>=0});$.length===0&&($=v);var I=$.reduce(function(O,R){return O[R]=detectOverflow(t,{placement:R,boundary:a,rootBoundary:o,padding:s})[getBasePlacement(R)],O},{});return Object.keys(I).sort(function(O,R){return I[O]-I[R]})}function getExpandedFallbackPlacements(t){if(getBasePlacement(t)===auto)return[];var r=getOppositePlacement(t);return[getOppositeVariationPlacement(t),r,getOppositeVariationPlacement(r)]}function flip(t){var r=t.state,n=t.options,i=t.name;if(!r.modifiersData[i]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,v=n.rootBoundary,$=n.altBoundary,I=n.flipVariations,O=I===void 0?!0:I,R=n.allowedAutoPlacements,M=r.options.placement,F=getBasePlacement(M),V=F===M,G=u||(V||!O?[getOppositePlacement(M)]:getExpandedFallbackPlacements(M)),Y=[M].concat(G).reduce(function(Ve,Xe){return Ve.concat(getBasePlacement(Xe)===auto?computeAutoPlacement(r,{placement:Xe,boundary:d,rootBoundary:v,padding:c,flipVariations:O,allowedAutoPlacements:R}):Xe)},[]),X=r.rects.reference,q=r.rects.popper,Z=new Map,Q=!0,ie=Y[0],J=0;J<Y.length;J++){var re=Y[J],te=getBasePlacement(re),oe=getVariation(re)===start$1,le=[top,bottom].indexOf(te)>=0,fe=le?"width":"height",de=detectOverflow(r,{placement:re,boundary:d,rootBoundary:v,altBoundary:$,padding:c}),Se=le?oe?right:left:oe?bottom:top;X[fe]>q[fe]&&(Se=getOppositePlacement(Se));var ge=getOppositePlacement(Se),Te=[];if(o&&Te.push(de[te]<=0),l&&Te.push(de[Se]<=0,de[ge]<=0),Te.every(function(Ve){return Ve})){ie=re,Q=!1;break}Z.set(re,Te)}if(Q)for(var ke=O?3:1,Ie=function(Xe){var Ge=Y.find(function(st){var at=Z.get(st);if(at)return at.slice(0,Xe).every(function(ft){return ft})});if(Ge)return ie=Ge,"break"},me=ke;me>0;me--){var Oe=Ie(me);if(Oe==="break")break}r.placement!==ie&&(r.modifiersData[i]._skip=!0,r.placement=ie,r.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(t,r,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-r.height-n.y,right:t.right-r.width+n.x,bottom:t.bottom-r.height+n.y,left:t.left-r.width-n.x}}function isAnySideFullyClipped(t){return[top,right,bottom,left].some(function(r){return t[r]>=0})}function hide(t){var r=t.state,n=t.name,i=r.rects.reference,a=r.rects.popper,o=r.modifiersData.preventOverflow,s=detectOverflow(r,{elementContext:"reference"}),l=detectOverflow(r,{altBoundary:!0}),u=getSideOffsets(s,i),c=getSideOffsets(l,a,o),d=isAnySideFullyClipped(u),v=isAnySideFullyClipped(c);r.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:v},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":v})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(t,r,n){var i=getBasePlacement(t),a=[left,top].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},r,{placement:t})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*a,[left,right].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function offset(t){var r=t.state,n=t.options,i=t.name,a=n.offset,o=a===void 0?[0,0]:a,s=placements.reduce(function(d,v){return d[v]=distanceAndSkiddingToXY(v,r.rects,o),d},{}),l=s[r.placement],u=l.x,c=l.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=u,r.modifiersData.popperOffsets.y+=c),r.modifiersData[i]=s}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(t){var r=t.state,n=t.name;r.modifiersData[n]=computeOffsets({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(t){return t==="x"?"y":"x"}function preventOverflow(t){var r=t.state,n=t.options,i=t.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,v=n.padding,$=n.tether,I=$===void 0?!0:$,O=n.tetherOffset,R=O===void 0?0:O,M=detectOverflow(r,{boundary:u,rootBoundary:c,padding:v,altBoundary:d}),F=getBasePlacement(r.placement),V=getVariation(r.placement),G=!V,Y=getMainAxisFromPlacement(F),X=getAltAxis(Y),q=r.modifiersData.popperOffsets,Z=r.rects.reference,Q=r.rects.popper,ie=typeof R=="function"?R(Object.assign({},r.rects,{placement:r.placement})):R,J=typeof ie=="number"?{mainAxis:ie,altAxis:ie}:Object.assign({mainAxis:0,altAxis:0},ie),re=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,te={x:0,y:0};if(!!q){if(o){var oe,le=Y==="y"?top:left,fe=Y==="y"?bottom:right,de=Y==="y"?"height":"width",Se=q[Y],ge=Se+M[le],Te=Se-M[fe],ke=I?-Q[de]/2:0,Ie=V===start$1?Z[de]:Q[de],me=V===start$1?-Q[de]:-Z[de],Oe=r.elements.arrow,Ve=I&&Oe?getLayoutRect$1(Oe):{width:0,height:0},Xe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Ge=Xe[le],st=Xe[fe],at=within(0,Z[de],Ve[de]),ft=G?Z[de]/2-ke-at-Ge-J.mainAxis:Ie-at-Ge-J.mainAxis,Le=G?-Z[de]/2+ke+at+st+J.mainAxis:me+at+st+J.mainAxis,De=r.elements.arrow&&getOffsetParent(r.elements.arrow),Be=De?Y==="y"?De.clientTop||0:De.clientLeft||0:0,se=(oe=re==null?void 0:re[Y])!=null?oe:0,ae=Se+ft-se-Be,ve=Se+Le-se,be=within(I?min$2(ge,ae):ge,Se,I?max$2(Te,ve):Te);q[Y]=be,te[Y]=be-Se}if(l){var ye,Re=Y==="x"?top:left,Me=Y==="x"?bottom:right,xe=q[X],Pe=X==="y"?"height":"width",we=xe+M[Re],Fe=xe-M[Me],We=[top,left].indexOf(F)!==-1,ze=(ye=re==null?void 0:re[X])!=null?ye:0,je=We?we:xe-Z[Pe]-Q[Pe]-ze+J.altAxis,Ze=We?xe+Z[Pe]+Q[Pe]-ze-J.altAxis:Fe,it=I&&We?withinMaxClamp(je,xe,Ze):within(I?je:we,xe,I?Ze:Fe);q[X]=it,te[X]=it-xe}r.modifiersData[i]=te}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function getNodeScroll(t){return t===getWindow(t)||!isHTMLElement(t)?getWindowScroll(t):getHTMLElementScroll(t)}function isElementScaled(t){var r=t.getBoundingClientRect(),n=round$2(r.width)/t.offsetWidth||1,i=round$2(r.height)/t.offsetHeight||1;return n!==1||i!==1}function getCompositeRect(t,r,n){n===void 0&&(n=!1);var i=isHTMLElement(r),a=isHTMLElement(r)&&isElementScaled(r),o=getDocumentElement(r),s=getBoundingClientRect(t,a,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((getNodeName(r)!=="body"||isScrollParent(o))&&(l=getNodeScroll(r)),isHTMLElement(r)?(u=getBoundingClientRect(r,!0),u.x+=r.clientLeft,u.y+=r.clientTop):o&&(u.x=getWindowScrollBarX(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function order(t){var r=new Map,n=new Set,i=[];t.forEach(function(o){r.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=r.get(l);u&&a(u)}}),i.push(o)}return t.forEach(function(o){n.has(o.name)||a(o)}),i}function orderModifiers(t){var r=order(t);return modifierPhases.reduce(function(n,i){return n.concat(r.filter(function(a){return a.phase===i}))},[])}function debounce(t){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(t())})})),r}}function mergeByName(t){var r=t.reduce(function(n,i){var a=n[i.name];return n[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,n},{});return Object.keys(r).map(function(n){return r[n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return!r.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function popperGenerator(t){t===void 0&&(t={});var r=t,n=r.defaultModifiers,i=n===void 0?[]:n,a=r.defaultOptions,o=a===void 0?DEFAULT_OPTIONS:a;return function(l,u,c){c===void 0&&(c=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},v=[],$=!1,I={state:d,setOptions:function(F){var V=typeof F=="function"?F(d.options):F;R(),d.options=Object.assign({},o,d.options,V),d.scrollParents={reference:isElement$1(l)?listScrollParents(l):l.contextElement?listScrollParents(l.contextElement):[],popper:listScrollParents(u)};var G=orderModifiers(mergeByName([].concat(i,d.options.modifiers)));return d.orderedModifiers=G.filter(function(Y){return Y.enabled}),O(),I.update()},forceUpdate:function(){if(!$){var F=d.elements,V=F.reference,G=F.popper;if(!!areValidElements(V,G)){d.rects={reference:getCompositeRect(V,getOffsetParent(G),d.options.strategy==="fixed"),popper:getLayoutRect$1(G)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(J){return d.modifiersData[J.name]=Object.assign({},J.data)});for(var Y=0;Y<d.orderedModifiers.length;Y++){if(d.reset===!0){d.reset=!1,Y=-1;continue}var X=d.orderedModifiers[Y],q=X.fn,Z=X.options,Q=Z===void 0?{}:Z,ie=X.name;typeof q=="function"&&(d=q({state:d,options:Q,name:ie,instance:I})||d)}}}},update:debounce(function(){return new Promise(function(M){I.forceUpdate(),M(d)})}),destroy:function(){R(),$=!0}};if(!areValidElements(l,u))return I;I.setOptions(c).then(function(M){!$&&c.onFirstUpdate&&c.onFirstUpdate(M)});function O(){d.orderedModifiers.forEach(function(M){var F=M.name,V=M.options,G=V===void 0?{}:V,Y=M.effect;if(typeof Y=="function"){var X=Y({state:d,name:F,instance:I,options:G}),q=function(){};v.push(X||q)}})}function R(){v.forEach(function(M){return M()}),v=[]}return I}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),lib=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator,detectOverflow,createPopperBase:createPopper$2,createPopper,createPopperLite:createPopper$1,top,bottom,right,left,auto,basePlacements,start:start$1,end:end$1,clippingParents,viewport,popper,reference,variationPlacements,placements,beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite,modifierPhases,applyStyles:applyStyles$1,arrow:arrow$1,computeStyles:computeStyles$1,eventListeners,flip:flip$1,hide:hide$1,offset:offset$1,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(lib);/*!
69
- * Bootstrap dropdown.js v5.3.3 (https://getbootstrap.com/)
70
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
71
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
72
- */(function(t,r){(function(n,i){t.exports=i(require$$0,baseComponent.exports,eventHandler.exports,manipulator.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a,o,s,l){function u(se){const ae=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(se){for(const ve in se)if(ve!=="default"){const be=Object.getOwnPropertyDescriptor(se,ve);Object.defineProperty(ae,ve,be.get?be:{enumerable:!0,get:()=>se[ve]})}}return ae.default=se,Object.freeze(ae)}const c=u(n),d="dropdown",$=".bs.dropdown",I=".data-api",O="Escape",R="Tab",M="ArrowUp",F="ArrowDown",V=2,G=`hide${$}`,Y=`hidden${$}`,X=`show${$}`,q=`shown${$}`,Z=`click${$}${I}`,Q=`keydown${$}${I}`,ie=`keyup${$}${I}`,J="show",re="dropup",te="dropend",oe="dropstart",le="dropup-center",fe="dropdown-center",de='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Se=`${de}.${J}`,ge=".dropdown-menu",Te=".navbar",ke=".navbar-nav",Ie=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",me=l.isRTL()?"top-end":"top-start",Oe=l.isRTL()?"top-start":"top-end",Ve=l.isRTL()?"bottom-end":"bottom-start",Xe=l.isRTL()?"bottom-start":"bottom-end",Ge=l.isRTL()?"left-start":"right-start",st=l.isRTL()?"right-start":"left-start",at="top",ft="bottom",Le={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},De={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Be extends i{constructor(ae,ve){super(ae,ve),this._popper=null,this._parent=this._element.parentNode,this._menu=s.next(this._element,ge)[0]||s.prev(this._element,ge)[0]||s.findOne(ge,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Le}static get DefaultType(){return De}static get NAME(){return d}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l.isDisabled(this._element)||this._isShown())return;const ae={relatedTarget:this._element};if(!a.trigger(this._element,X,ae).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ke))for(const be of[].concat(...document.body.children))a.on(be,"mouseover",l.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(J),this._element.classList.add(J),a.trigger(this._element,q,ae)}}hide(){if(l.isDisabled(this._element)||!this._isShown())return;const ae={relatedTarget:this._element};this._completeHide(ae)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(ae){if(!a.trigger(this._element,G,ae).defaultPrevented){if("ontouchstart"in document.documentElement)for(const be of[].concat(...document.body.children))a.off(be,"mouseover",l.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(J),this._element.classList.remove(J),this._element.setAttribute("aria-expanded","false"),o.removeDataAttribute(this._menu,"popper"),a.trigger(this._element,Y,ae)}}_getConfig(ae){if(ae=super._getConfig(ae),typeof ae.reference=="object"&&!l.isElement(ae.reference)&&typeof ae.reference.getBoundingClientRect!="function")throw new TypeError(`${d.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return ae}_createPopper(){if(typeof c=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let ae=this._element;this._config.reference==="parent"?ae=this._parent:l.isElement(this._config.reference)?ae=l.getElement(this._config.reference):typeof this._config.reference=="object"&&(ae=this._config.reference);const ve=this._getPopperConfig();this._popper=c.createPopper(ae,this._menu,ve)}_isShown(){return this._menu.classList.contains(J)}_getPlacement(){const ae=this._parent;if(ae.classList.contains(te))return Ge;if(ae.classList.contains(oe))return st;if(ae.classList.contains(le))return at;if(ae.classList.contains(fe))return ft;const ve=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return ae.classList.contains(re)?ve?Oe:me:ve?Xe:Ve}_detectNavbar(){return this._element.closest(Te)!==null}_getOffset(){const{offset:ae}=this._config;return typeof ae=="string"?ae.split(",").map(ve=>Number.parseInt(ve,10)):typeof ae=="function"?ve=>ae(ve,this._element):ae}_getPopperConfig(){const ae={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(o.setDataAttribute(this._menu,"popper","static"),ae.modifiers=[{name:"applyStyles",enabled:!1}]),{...ae,...l.execute(this._config.popperConfig,[ae])}}_selectMenuItem({key:ae,target:ve}){const be=s.find(Ie,this._menu).filter(ye=>l.isVisible(ye));!be.length||l.getNextActiveElement(be,ve,ae===F,!be.includes(ve)).focus()}static jQueryInterface(ae){return this.each(function(){const ve=Be.getOrCreateInstance(this,ae);if(typeof ae=="string"){if(typeof ve[ae]=="undefined")throw new TypeError(`No method named "${ae}"`);ve[ae]()}})}static clearMenus(ae){if(ae.button===V||ae.type==="keyup"&&ae.key!==R)return;const ve=s.find(Se);for(const be of ve){const ye=Be.getInstance(be);if(!ye||ye._config.autoClose===!1)continue;const Re=ae.composedPath(),Me=Re.includes(ye._menu);if(Re.includes(ye._element)||ye._config.autoClose==="inside"&&!Me||ye._config.autoClose==="outside"&&Me||ye._menu.contains(ae.target)&&(ae.type==="keyup"&&ae.key===R||/input|select|option|textarea|form/i.test(ae.target.tagName)))continue;const xe={relatedTarget:ye._element};ae.type==="click"&&(xe.clickEvent=ae),ye._completeHide(xe)}}static dataApiKeydownHandler(ae){const ve=/input|textarea/i.test(ae.target.tagName),be=ae.key===O,ye=[M,F].includes(ae.key);if(!ye&&!be||ve&&!be)return;ae.preventDefault();const Re=this.matches(de)?this:s.prev(this,de)[0]||s.next(this,de)[0]||s.findOne(de,ae.delegateTarget.parentNode),Me=Be.getOrCreateInstance(Re);if(ye){ae.stopPropagation(),Me.show(),Me._selectMenuItem(ae);return}Me._isShown()&&(ae.stopPropagation(),Me.hide(),Re.focus())}}return a.on(document,Q,de,Be.dataApiKeydownHandler),a.on(document,Q,ge,Be.dataApiKeydownHandler),a.on(document,Z,Be.clearMenus),a.on(document,ie,Be.clearMenus),a.on(document,Z,de,function(se){se.preventDefault(),Be.getOrCreateInstance(this).toggle()}),l.defineJQueryPlugin(Be),Be})})(dropdown);var Dropdown=dropdown.exports,modal={exports:{}},backdrop={exports:{}};/*!
73
- * Bootstrap backdrop.js v5.3.3 (https://getbootstrap.com/)
74
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
75
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
76
- */(function(t,r){(function(n,i){t.exports=i(eventHandler.exports,config.exports,util.exports)})(commonjsGlobal,function(n,i,a){const o="backdrop",s="fade",l="show",u=`mousedown.bs.${o}`,c={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},d={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class v extends i{constructor(I){super(),this._config=this._getConfig(I),this._isAppended=!1,this._element=null}static get Default(){return c}static get DefaultType(){return d}static get NAME(){return o}show(I){if(!this._config.isVisible){a.execute(I);return}this._append();const O=this._getElement();this._config.isAnimated&&a.reflow(O),O.classList.add(l),this._emulateAnimation(()=>{a.execute(I)})}hide(I){if(!this._config.isVisible){a.execute(I);return}this._getElement().classList.remove(l),this._emulateAnimation(()=>{this.dispose(),a.execute(I)})}dispose(){!this._isAppended||(n.off(this._element,u),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const I=document.createElement("div");I.className=this._config.className,this._config.isAnimated&&I.classList.add(s),this._element=I}return this._element}_configAfterMerge(I){return I.rootElement=a.getElement(I.rootElement),I}_append(){if(this._isAppended)return;const I=this._getElement();this._config.rootElement.append(I),n.on(I,u,()=>{a.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(I){a.executeAfterTransition(I,this._getElement(),this._config.isAnimated)}}return v})})(backdrop);var focustrap={exports:{}};/*!
77
- * Bootstrap focustrap.js v5.3.3 (https://getbootstrap.com/)
78
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
79
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
80
- */(function(t,r){(function(n,i){t.exports=i(eventHandler.exports,selectorEngine.exports,config.exports)})(commonjsGlobal,function(n,i,a){const o="focustrap",l=".bs.focustrap",u=`focusin${l}`,c=`keydown.tab${l}`,d="Tab",v="forward",$="backward",I={autofocus:!0,trapElement:null},O={autofocus:"boolean",trapElement:"element"};class R extends a{constructor(F){super(),this._config=this._getConfig(F),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return I}static get DefaultType(){return O}static get NAME(){return o}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),n.off(document,l),n.on(document,u,F=>this._handleFocusin(F)),n.on(document,c,F=>this._handleKeydown(F)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,n.off(document,l))}_handleFocusin(F){const{trapElement:V}=this._config;if(F.target===document||F.target===V||V.contains(F.target))return;const G=i.focusableChildren(V);G.length===0?V.focus():this._lastTabNavDirection===$?G[G.length-1].focus():G[0].focus()}_handleKeydown(F){F.key===d&&(this._lastTabNavDirection=F.shiftKey?$:v)}}return R})})(focustrap);var scrollbar={exports:{}};/*!
81
- * Bootstrap scrollbar.js v5.3.3 (https://getbootstrap.com/)
82
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
83
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
84
- */(function(t,r){(function(n,i){t.exports=i(manipulator.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a){const o=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s=".sticky-top",l="padding-right",u="margin-right";class c{constructor(){this._element=document.body}getWidth(){const v=document.documentElement.clientWidth;return Math.abs(window.innerWidth-v)}hide(){const v=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,l,$=>$+v),this._setElementAttributes(o,l,$=>$+v),this._setElementAttributes(s,u,$=>$-v)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,l),this._resetElementAttributes(o,l),this._resetElementAttributes(s,u)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(v,$,I){const O=this.getWidth(),R=M=>{if(M!==this._element&&window.innerWidth>M.clientWidth+O)return;this._saveInitialAttribute(M,$);const F=window.getComputedStyle(M).getPropertyValue($);M.style.setProperty($,`${I(Number.parseFloat(F))}px`)};this._applyManipulationCallback(v,R)}_saveInitialAttribute(v,$){const I=v.style.getPropertyValue($);I&&n.setDataAttribute(v,$,I)}_resetElementAttributes(v,$){const I=O=>{const R=n.getDataAttribute(O,$);if(R===null){O.style.removeProperty($);return}n.removeDataAttribute(O,$),O.style.setProperty($,R)};this._applyManipulationCallback(v,I)}_applyManipulationCallback(v,$){if(a.isElement(v)){$(v);return}for(const I of i.find(v,this._element))$(I)}}return c})})(scrollbar);/*!
85
- * Bootstrap modal.js v5.3.3 (https://getbootstrap.com/)
86
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
87
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
88
- */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,selectorEngine.exports,backdrop.exports,componentFunctions.exports,focustrap.exports,util.exports,scrollbar.exports)})(commonjsGlobal,function(n,i,a,o,s,l,u,c){const d="modal",$=".bs.modal",I=".data-api",O="Escape",R=`hide${$}`,M=`hidePrevented${$}`,F=`hidden${$}`,V=`show${$}`,G=`shown${$}`,Y=`resize${$}`,X=`click.dismiss${$}`,q=`mousedown.dismiss${$}`,Z=`keydown.dismiss${$}`,Q=`click${$}${I}`,ie="modal-open",J="fade",re="show",te="modal-static",oe=".modal.show",le=".modal-dialog",fe=".modal-body",de='[data-bs-toggle="modal"]',Se={backdrop:!0,focus:!0,keyboard:!0},ge={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Te extends n{constructor(Ie,me){super(Ie,me),this._dialog=a.findOne(le,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new c,this._addEventListeners()}static get Default(){return Se}static get DefaultType(){return ge}static get NAME(){return d}toggle(Ie){return this._isShown?this.hide():this.show(Ie)}show(Ie){this._isShown||this._isTransitioning||i.trigger(this._element,V,{relatedTarget:Ie}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ie),this._adjustDialog(),this._backdrop.show(()=>this._showElement(Ie)))}hide(){!this._isShown||this._isTransitioning||i.trigger(this._element,R).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(re),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){i.off(window,$),i.off(this._dialog,$),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new o({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new l({trapElement:this._element})}_showElement(Ie){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const me=a.findOne(fe,this._dialog);me&&(me.scrollTop=0),u.reflow(this._element),this._element.classList.add(re);const Oe=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,i.trigger(this._element,G,{relatedTarget:Ie})};this._queueCallback(Oe,this._dialog,this._isAnimated())}_addEventListeners(){i.on(this._element,Z,Ie=>{if(Ie.key===O){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),i.on(window,Y,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),i.on(this._element,q,Ie=>{i.one(this._element,X,me=>{if(!(this._element!==Ie.target||this._element!==me.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ie),this._resetAdjustments(),this._scrollBar.reset(),i.trigger(this._element,F)})}_isAnimated(){return this._element.classList.contains(J)}_triggerBackdropTransition(){if(i.trigger(this._element,M).defaultPrevented)return;const me=this._element.scrollHeight>document.documentElement.clientHeight,Oe=this._element.style.overflowY;Oe==="hidden"||this._element.classList.contains(te)||(me||(this._element.style.overflowY="hidden"),this._element.classList.add(te),this._queueCallback(()=>{this._element.classList.remove(te),this._queueCallback(()=>{this._element.style.overflowY=Oe},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const Ie=this._element.scrollHeight>document.documentElement.clientHeight,me=this._scrollBar.getWidth(),Oe=me>0;if(Oe&&!Ie){const Ve=u.isRTL()?"paddingLeft":"paddingRight";this._element.style[Ve]=`${me}px`}if(!Oe&&Ie){const Ve=u.isRTL()?"paddingRight":"paddingLeft";this._element.style[Ve]=`${me}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(Ie,me){return this.each(function(){const Oe=Te.getOrCreateInstance(this,Ie);if(typeof Ie=="string"){if(typeof Oe[Ie]=="undefined")throw new TypeError(`No method named "${Ie}"`);Oe[Ie](me)}})}}return i.on(document,Q,de,function(ke){const Ie=a.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&ke.preventDefault(),i.one(Ie,V,Ve=>{Ve.defaultPrevented||i.one(Ie,F,()=>{u.isVisible(this)&&this.focus()})});const me=a.findOne(oe);me&&Te.getInstance(me).hide(),Te.getOrCreateInstance(Ie).toggle(this)}),s.enableDismissTrigger(Te),u.defineJQueryPlugin(Te),Te})})(modal);var Modal=modal.exports,offcanvas={exports:{}};/*!
89
- * Bootstrap offcanvas.js v5.3.3 (https://getbootstrap.com/)
90
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
91
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
92
- */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,selectorEngine.exports,backdrop.exports,componentFunctions.exports,focustrap.exports,util.exports,scrollbar.exports)})(commonjsGlobal,function(n,i,a,o,s,l,u,c){const d="offcanvas",$=".bs.offcanvas",I=".data-api",O=`load${$}${I}`,R="Escape",M="show",F="showing",V="hiding",G="offcanvas-backdrop",Y=".offcanvas.show",X=`show${$}`,q=`shown${$}`,Z=`hide${$}`,Q=`hidePrevented${$}`,ie=`hidden${$}`,J=`resize${$}`,re=`click${$}${I}`,te=`keydown.dismiss${$}`,oe='[data-bs-toggle="offcanvas"]',le={backdrop:!0,keyboard:!0,scroll:!1},fe={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class de extends n{constructor(ge,Te){super(ge,Te),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return le}static get DefaultType(){return fe}static get NAME(){return d}toggle(ge){return this._isShown?this.hide():this.show(ge)}show(ge){if(this._isShown||i.trigger(this._element,X,{relatedTarget:ge}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new c().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(F);const ke=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(M),this._element.classList.remove(F),i.trigger(this._element,q,{relatedTarget:ge})};this._queueCallback(ke,this._element,!0)}hide(){if(!this._isShown||i.trigger(this._element,Z).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(V),this._backdrop.hide();const Te=()=>{this._element.classList.remove(M,V),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new c().reset(),i.trigger(this._element,ie)};this._queueCallback(Te,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const ge=()=>{if(this._config.backdrop==="static"){i.trigger(this._element,Q);return}this.hide()},Te=Boolean(this._config.backdrop);return new o({className:G,isVisible:Te,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:Te?ge:null})}_initializeFocusTrap(){return new l({trapElement:this._element})}_addEventListeners(){i.on(this._element,te,ge=>{if(ge.key===R){if(this._config.keyboard){this.hide();return}i.trigger(this._element,Q)}})}static jQueryInterface(ge){return this.each(function(){const Te=de.getOrCreateInstance(this,ge);if(typeof ge=="string"){if(Te[ge]===void 0||ge.startsWith("_")||ge==="constructor")throw new TypeError(`No method named "${ge}"`);Te[ge](this)}})}}return i.on(document,re,oe,function(Se){const ge=a.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&Se.preventDefault(),u.isDisabled(this))return;i.one(ge,ie,()=>{u.isVisible(this)&&this.focus()});const Te=a.findOne(Y);Te&&Te!==ge&&de.getInstance(Te).hide(),de.getOrCreateInstance(ge).toggle(this)}),i.on(window,O,()=>{for(const Se of a.find(Y))de.getOrCreateInstance(Se).show()}),i.on(window,J,()=>{for(const Se of a.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(Se).position!=="fixed"&&de.getOrCreateInstance(Se).hide()}),s.enableDismissTrigger(de),u.defineJQueryPlugin(de),de})})(offcanvas);var Offcanvas=offcanvas.exports,popover={exports:{}},tooltip={exports:{}},sanitizer={exports:{}};/*!
93
- * Bootstrap sanitizer.js v5.3.3 (https://getbootstrap.com/)
94
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
95
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
96
- */(function(t,r){(function(n,i){i(r)})(commonjsGlobal,function(n){const a={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},o=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),s=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,l=(c,d)=>{const v=c.nodeName.toLowerCase();return d.includes(v)?o.has(v)?Boolean(s.test(c.nodeValue)):!0:d.filter($=>$ instanceof RegExp).some($=>$.test(v))};function u(c,d,v){if(!c.length)return c;if(v&&typeof v=="function")return v(c);const I=new window.DOMParser().parseFromString(c,"text/html"),O=[].concat(...I.body.querySelectorAll("*"));for(const R of O){const M=R.nodeName.toLowerCase();if(!Object.keys(d).includes(M)){R.remove();continue}const F=[].concat(...R.attributes),V=[].concat(d["*"]||[],d[M]||[]);for(const G of F)l(G,V)||R.removeAttribute(G.nodeName)}return I.body.innerHTML}n.DefaultAllowlist=a,n.sanitizeHtml=u,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(sanitizer,sanitizer.exports);var templateFactory={exports:{}};/*!
97
- * Bootstrap template-factory.js v5.3.3 (https://getbootstrap.com/)
98
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
99
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
100
- */(function(t,r){(function(n,i){t.exports=i(selectorEngine.exports,config.exports,sanitizer.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="TemplateFactory",l={allowList:a.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},u={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},c={entry:"(string|element|function|null)",selector:"(string|element)"};class d extends i{constructor($){super(),this._config=this._getConfig($)}static get Default(){return l}static get DefaultType(){return u}static get NAME(){return s}getContent(){return Object.values(this._config.content).map($=>this._resolvePossibleFunction($)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent($){return this._checkContent($),this._config.content={...this._config.content,...$},this}toHtml(){const $=document.createElement("div");$.innerHTML=this._maybeSanitize(this._config.template);for(const[R,M]of Object.entries(this._config.content))this._setContent($,M,R);const I=$.children[0],O=this._resolvePossibleFunction(this._config.extraClass);return O&&I.classList.add(...O.split(" ")),I}_typeCheckConfig($){super._typeCheckConfig($),this._checkContent($.content)}_checkContent($){for(const[I,O]of Object.entries($))super._typeCheckConfig({selector:I,entry:O},c)}_setContent($,I,O){const R=n.findOne(O,$);if(!!R){if(I=this._resolvePossibleFunction(I),!I){R.remove();return}if(o.isElement(I)){this._putElementInTemplate(o.getElement(I),R);return}if(this._config.html){R.innerHTML=this._maybeSanitize(I);return}R.textContent=I}}_maybeSanitize($){return this._config.sanitize?a.sanitizeHtml($,this._config.allowList,this._config.sanitizeFn):$}_resolvePossibleFunction($){return o.execute($,[this])}_putElementInTemplate($,I){if(this._config.html){I.innerHTML="",I.append($);return}I.textContent=$.textContent}}return d})})(templateFactory);/*!
101
- * Bootstrap tooltip.js v5.3.3 (https://getbootstrap.com/)
102
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
103
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
104
- */(function(t,r){(function(n,i){t.exports=i(require$$0,baseComponent.exports,eventHandler.exports,manipulator.exports,util.exports,sanitizer.exports,templateFactory.exports)})(commonjsGlobal,function(n,i,a,o,s,l,u){function c(Ie){const me=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(Ie){for(const Oe in Ie)if(Oe!=="default"){const Ve=Object.getOwnPropertyDescriptor(Ie,Oe);Object.defineProperty(me,Oe,Ve.get?Ve:{enumerable:!0,get:()=>Ie[Oe]})}}return me.default=Ie,Object.freeze(me)}const d=c(n),v="tooltip",$=new Set(["sanitize","allowList","sanitizeFn"]),I="fade",O="modal",R="show",M=".tooltip-inner",F=`.${O}`,V="hide.bs.modal",G="hover",Y="focus",X="click",q="manual",Z="hide",Q="hidden",ie="show",J="shown",re="inserted",te="click",oe="focusin",le="focusout",fe="mouseenter",de="mouseleave",Se={AUTO:"auto",TOP:"top",RIGHT:s.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:s.isRTL()?"right":"left"},ge={allowList:l.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Te={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ke extends i{constructor(me,Oe){if(typeof d=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(me,Oe),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ge}static get DefaultType(){return Te}static get NAME(){return v}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),a.off(this._element.closest(F),V,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const me=a.trigger(this._element,this.constructor.eventName(ie)),Ve=(s.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(me.defaultPrevented||!Ve)return;this._disposePopper();const Xe=this._getTipElement();this._element.setAttribute("aria-describedby",Xe.getAttribute("id"));const{container:Ge}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Ge.append(Xe),a.trigger(this._element,this.constructor.eventName(re))),this._popper=this._createPopper(Xe),Xe.classList.add(R),"ontouchstart"in document.documentElement)for(const at of[].concat(...document.body.children))a.on(at,"mouseover",s.noop);const st=()=>{a.trigger(this._element,this.constructor.eventName(J)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(st,this.tip,this._isAnimated())}hide(){if(!this._isShown()||a.trigger(this._element,this.constructor.eventName(Z)).defaultPrevented)return;if(this._getTipElement().classList.remove(R),"ontouchstart"in document.documentElement)for(const Xe of[].concat(...document.body.children))a.off(Xe,"mouseover",s.noop);this._activeTrigger[X]=!1,this._activeTrigger[Y]=!1,this._activeTrigger[G]=!1,this._isHovered=null;const Ve=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),a.trigger(this._element,this.constructor.eventName(Q)))};this._queueCallback(Ve,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(me){const Oe=this._getTemplateFactory(me).toHtml();if(!Oe)return null;Oe.classList.remove(I,R),Oe.classList.add(`bs-${this.constructor.NAME}-auto`);const Ve=s.getUID(this.constructor.NAME).toString();return Oe.setAttribute("id",Ve),this._isAnimated()&&Oe.classList.add(I),Oe}setContent(me){this._newContent=me,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(me){return this._templateFactory?this._templateFactory.changeContent(me):this._templateFactory=new u({...this._config,content:me,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[M]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(me){return this.constructor.getOrCreateInstance(me.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(I)}_isShown(){return this.tip&&this.tip.classList.contains(R)}_createPopper(me){const Oe=s.execute(this._config.placement,[this,me,this._element]),Ve=Se[Oe.toUpperCase()];return d.createPopper(this._element,me,this._getPopperConfig(Ve))}_getOffset(){const{offset:me}=this._config;return typeof me=="string"?me.split(",").map(Oe=>Number.parseInt(Oe,10)):typeof me=="function"?Oe=>me(Oe,this._element):me}_resolvePossibleFunction(me){return s.execute(me,[this._element])}_getPopperConfig(me){const Oe={placement:me,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:Ve=>{this._getTipElement().setAttribute("data-popper-placement",Ve.state.placement)}}]};return{...Oe,...s.execute(this._config.popperConfig,[Oe])}}_setListeners(){const me=this._config.trigger.split(" ");for(const Oe of me)if(Oe==="click")a.on(this._element,this.constructor.eventName(te),this._config.selector,Ve=>{this._initializeOnDelegatedTarget(Ve).toggle()});else if(Oe!==q){const Ve=Oe===G?this.constructor.eventName(fe):this.constructor.eventName(oe),Xe=Oe===G?this.constructor.eventName(de):this.constructor.eventName(le);a.on(this._element,Ve,this._config.selector,Ge=>{const st=this._initializeOnDelegatedTarget(Ge);st._activeTrigger[Ge.type==="focusin"?Y:G]=!0,st._enter()}),a.on(this._element,Xe,this._config.selector,Ge=>{const st=this._initializeOnDelegatedTarget(Ge);st._activeTrigger[Ge.type==="focusout"?Y:G]=st._element.contains(Ge.relatedTarget),st._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},a.on(this._element.closest(F),V,this._hideModalHandler)}_fixTitle(){const me=this._element.getAttribute("title");!me||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",me),this._element.setAttribute("data-bs-original-title",me),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(me,Oe){clearTimeout(this._timeout),this._timeout=setTimeout(me,Oe)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(me){const Oe=o.getDataAttributes(this._element);for(const Ve of Object.keys(Oe))$.has(Ve)&&delete Oe[Ve];return me={...Oe,...typeof me=="object"&&me?me:{}},me=this._mergeConfigObj(me),me=this._configAfterMerge(me),this._typeCheckConfig(me),me}_configAfterMerge(me){return me.container=me.container===!1?document.body:s.getElement(me.container),typeof me.delay=="number"&&(me.delay={show:me.delay,hide:me.delay}),typeof me.title=="number"&&(me.title=me.title.toString()),typeof me.content=="number"&&(me.content=me.content.toString()),me}_getDelegateConfig(){const me={};for(const[Oe,Ve]of Object.entries(this._config))this.constructor.Default[Oe]!==Ve&&(me[Oe]=Ve);return me.selector=!1,me.trigger="manual",me}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(me){return this.each(function(){const Oe=ke.getOrCreateInstance(this,me);if(typeof me=="string"){if(typeof Oe[me]=="undefined")throw new TypeError(`No method named "${me}"`);Oe[me]()}})}}return s.defineJQueryPlugin(ke),ke})})(tooltip);var Tooltip=tooltip.exports;/*!
105
- * Bootstrap popover.js v5.3.3 (https://getbootstrap.com/)
106
- * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
107
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
108
- */(function(t,r){(function(n,i){t.exports=i(tooltip.exports,util.exports)})(commonjsGlobal,function(n,i){const a="popover",o=".popover-header",s=".popover-body",l={...n.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},u={...n.DefaultType,content:"(null|string|element|function)"};class c extends n{static get Default(){return l}static get DefaultType(){return u}static get NAME(){return a}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[o]:this._getTitle(),[s]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(v){return this.each(function(){const $=c.getOrCreateInstance(this,v);if(typeof v=="string"){if(typeof $[v]=="undefined")throw new TypeError(`No method named "${v}"`);$[v]()}})}}return i.defineJQueryPlugin(c),c})})(popover);var Popover=popover.exports;function getID(t=""){return`__BVID__${Math.random().toString().slice(2,8)}___BV_${t}__`}function useId(t,r){return computed(()=>t||getID(r))}const _hoisted_1$J=["id"],injectionKey$5=Symbol(),_sfc_main$1p=defineComponent({__name:"BAccordion",props:{flush:{type:Boolean,default:!1},free:{type:Boolean,default:!1},id:{default:void 0}},setup(t){const r=t,n=useId(r.id,"accordion"),i=computed(()=>({"accordion-flush":r.flush}));return r.free||provide(injectionKey$5,n.value.toString()),(a,o)=>(openBlock(),createElementBlock("div",{id:unref(n),class:normalizeClass(["accordion",unref(i)])},[renderSlot(a.$slots,"default")],10,_hoisted_1$J))}});function useEventListener(t,r,n){onMounted(()=>{var i;(i=t==null?void 0:t.value)==null||i.addEventListener(r,n)}),onBeforeUnmount(()=>{var i;(i=t==null?void 0:t.value)==null||i.removeEventListener(r,n)})}const _sfc_main$1o=defineComponent({__name:"BCollapse",props:{accordion:null,id:{default:getID()},modelValue:{type:Boolean,default:!1},tag:{default:"div"},toggle:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["update:modelValue","show","shown","hide","hidden"],setup(t,{emit:r}){const n=t,i=ref(),a=ref(),o=computed(()=>({show:n.modelValue})),s=()=>r("update:modelValue",!1);return useEventListener(i,"show.bs.collapse",()=>{r("show"),r("update:modelValue",!0)}),useEventListener(i,"hide.bs.collapse",()=>{r("hide"),r("update:modelValue",!1)}),useEventListener(i,"shown.bs.collapse",()=>r("shown")),useEventListener(i,"hidden.bs.collapse",()=>r("hidden")),onMounted(()=>{var l;a.value=new Collapse(i.value,{parent:n.accordion?`#${n.accordion}`:void 0,toggle:n.toggle}),(n.visible||n.modelValue)&&(r("update:modelValue",!0),(l=a.value)==null||l.show())}),watch(()=>n.modelValue,l=>{var u,c;l?(u=a.value)==null||u.show():(c=a.value)==null||c.hide()}),watch(()=>n.visible,l=>{var u,c;l?(r("update:modelValue",!!l),(u=a.value)==null||u.show()):(r("update:modelValue",!!l),(c=a.value)==null||c.hide())}),(l,u)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,ref_key:"element",ref:i,class:normalizeClass(["collapse",unref(o)]),"data-bs-parent":t.accordion||null},{default:withCtx(()=>[renderSlot(l.$slots,"default",{visible:t.modelValue,close:s})]),_:3},8,["id","class","data-bs-parent"]))}}),RX_UNDERSCORE=/_/g,RX_LOWER_UPPER=/([a-z])([A-Z])/g,RX_FIRST_START_SPACE_WORD=/(\s|^)(\w)/,RX_SPACE_SPLIT=/\s+/,RX_HASH=/^#/,RX_HASH_ID=/^#[A-Za-z]+[\w\-:.]*$/,arrayIncludes=(t,r)=>t.indexOf(r)!==-1,from=(...t)=>Array.from([...t]),concat=(...t)=>Array.prototype.concat.apply([],t),HAS_WINDOW_SUPPORT=typeof window!="undefined",HAS_DOCUMENT_SUPPORT=typeof document!="undefined",HAS_NAVIGATOR_SUPPORT=typeof navigator!="undefined",IS_BROWSER=HAS_WINDOW_SUPPORT&&HAS_DOCUMENT_SUPPORT&&HAS_NAVIGATOR_SUPPORT,DOCUMENT=HAS_DOCUMENT_SUPPORT?document:{},RX_NUMBER=/^[0-9]*\.?[0-9]+$/,isBoolean=t=>toType(t)==="boolean",isObject$3=t=>t!==null&&typeof t=="object",isString$1=t=>typeof t=="string",isUndefined=t=>t===void 0,isNull=t=>t===null,isUndefinedOrNull=t=>isUndefined(t)||isNull(t),isNumeric$1=t=>RX_NUMBER.test(String(t)),isNumber$1=t=>typeof t=="number",toType=t=>typeof t,isFunction$1=t=>toType(t)==="function",isPlainObject=t=>Object.prototype.toString.call(t)==="[object Object]",isArray$1=t=>Array.isArray(t),toString=(t,r=2)=>isUndefinedOrNull(t)?"":isArray$1(t)||isPlainObject(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,r):String(t),startCase=t=>t.replace(RX_UNDERSCORE," ").replace(RX_LOWER_UPPER,(r,n,i)=>`${n} ${i}`).replace(RX_FIRST_START_SPACE_WORD,(r,n,i)=>n+i.toUpperCase()),upperFirst=t=>(t=isString$1(t)?t.trim():String(t),t.charAt(0).toUpperCase()+t.slice(1)),isElement=t=>!!(t&&t.nodeType===Node.ELEMENT_NODE),getBCR=t=>isElement(t)?t.getBoundingClientRect():null,getActiveElement=(t=[])=>{const{activeElement:r}=document;return r&&!t.some(n=>n===r)?r:null},isActiveElement=t=>isElement(t)&&t===getActiveElement(),attemptFocus=(t,r={})=>{try{t.focus(r)}catch(n){console.error(n)}return isActiveElement(t)},getStyle$1=(t,r)=>r&&isElement(t)&&t.getAttribute(r)||null,isVisible=t=>{if(getStyle$1(t,"display")==="none")return!1;const r=getBCR(t);return!!(r&&r.height>0&&r.width>0)},isEmptySlot=(t,r)=>!t||t(r).filter(n=>n.type!==Comment).length<1,select=(t,r)=>(isElement(r)?r:DOCUMENT).querySelector(t)||null,selectAll=(t,r)=>from((isElement(r)?r:DOCUMENT).querySelectorAll(t)),getAttr=(t,r)=>r&&isElement(t)?t.getAttribute(r):null,setAttr=(t,r,n)=>{r&&isElement(t)&&t.setAttribute(r,n)},removeAttr=(t,r)=>{r&&isElement(t)&&t.removeAttribute(r)},isTag=(t,r)=>toString(t).toLowerCase()===toString(r).toLowerCase(),requestAF=HAS_WINDOW_SUPPORT?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||(t=>setTimeout(t,16)):t=>setTimeout(t,0);function resolveToggleType(t){if(t.classList.contains("offcanvas"))return"offcanvas";if(t.classList.contains("collapse"))return"collapse";throw Error("Couldn't resolve toggle type")}const getTargets=(t,r)=>{const{modifiers:n,arg:i,value:a}=t,o=Object.keys(n||{}),s=isString$1(a)?a.split(RX_SPACE_SPLIT):a;if(isTag(r.tagName,"a")){const l=getAttr(r,"href")||"";RX_HASH_ID.test(l)&&o.push(l.replace(RX_HASH,""))}return concat(i,s).forEach(l=>isString$1(l)&&o.push(l)),o.filter((l,u,c)=>l&&c.indexOf(l)===u)},BToggle={mounted(t,r){const n=getTargets(r,t),i=[];let a="data-bs-target";t.tagName==="a"&&(a="href");for(let o=0;o<n.length;o++){const s=n[o],l=document.getElementById(s);l&&(t.setAttribute("data-bs-toggle",resolveToggleType(l)),i.push(`#${s}`))}i.length>0&&t.setAttribute(a,i.join(","))}},_hoisted_1$I={class:"accordion-item"},_hoisted_2$n=["id"],_hoisted_3$9=["aria-expanded","aria-controls"],_hoisted_4$6={class:"accordion-body"},_sfc_main$1n=defineComponent({__name:"BAccordionItem",props:{id:null,title:null,visible:{type:Boolean,default:!1}},setup(t){const n=useId(t.id,"accordion_item"),i=inject(injectionKey$5,"");return(a,o)=>(openBlock(),createElementBlock("div",_hoisted_1$I,[createBaseVNode("h2",{id:`${unref(n)}heading`,class:"accordion-header"},[withDirectives((openBlock(),createElementBlock("button",{class:normalizeClass(["accordion-button",{collapsed:!t.visible}]),type:"button","aria-expanded":t.visible?"true":"false","aria-controls":unref(n)},[renderSlot(a.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])],10,_hoisted_3$9)),[[unref(BToggle),void 0,unref(n)]])],8,_hoisted_2$n),createVNode(_sfc_main$1o,{id:unref(n),class:"accordion-collapse",visible:t.visible,accordion:unref(i),"aria-labelledby":`heading${unref(n)}`},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$6,[renderSlot(a.$slots,"default")])]),_:3},8,["id","visible","accordion","aria-labelledby"])]))}}),toInteger=(t,r=NaN)=>Number.isInteger(t)?t:r,stringToInteger=(t,r=NaN)=>{const n=parseInt(t,10);return isNaN(n)?r:n},toFloat=(t,r=NaN)=>{const n=parseFloat(t.toString());return isNaN(n)?r:n},_hoisted_1$H=["aria-label"],_sfc_main$1m=defineComponent({__name:"BAlert",props:{dismissLabel:{default:"Close"},dismissible:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},modelValue:{type:[Boolean,Number],default:!1},show:{type:Boolean,default:!1},variant:{default:"info"}},emits:["dismissed","dismiss-count-down","update:modelValue"],setup(t,{emit:r}){const n=t,i=ref(),a=ref(),o=computed(()=>({[`alert-${n.variant}`]:n.variant,show:n.modelValue,"alert-dismissible":n.dismissible,fade:n.modelValue}));let s;const l=O=>{if(typeof O=="boolean")return 0;const R=toInteger(O,0);return R>0?R:0},u=()=>{s!==void 0&&(clearTimeout(s),s=void 0)},c=ref(l(n.modelValue)),d=computed(()=>!!n.modelValue||n.show);onBeforeUnmount(()=>{var O;u(),(O=a.value)==null||O.dispose(),a.value=void 0});const v=computed(()=>n.modelValue===!0?!0:n.modelValue===!1||toInteger(n.modelValue,0)<1?!1:!!n.modelValue),$=()=>{c.value=l(n.modelValue),(v.value||n.show)&&!a.value&&(a.value=new Alert(i.value))},I=()=>{typeof n.modelValue=="boolean"?r("update:modelValue",!1):r("update:modelValue",0),r("dismissed")};return watch(()=>n.modelValue,$),watch(()=>n.show,$),watch(c,O=>{u(),typeof n.modelValue!="boolean"&&(r("dismiss-count-down",O),O===0&&n.modelValue>0&&r("dismissed"),n.modelValue!==O&&r("update:modelValue",O),O>0&&(s=setTimeout(()=>{c.value--},1e3)))}),(O,R)=>unref(d)?(openBlock(),createElementBlock("div",{key:0,ref_key:"element",ref:i,class:normalizeClass(["alert",unref(o)]),role:"alert"},[renderSlot(O.$slots,"default"),t.dismissible?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"btn-close","data-bs-dismiss":"alert","aria-label":t.dismissLabel,onClick:I},null,8,_hoisted_1$H)):createCommentVNode("",!0)],2)):createCommentVNode("",!0)}}),mathMin$6=Math.min,mathMax$6=Math.max,injectionKey$4=Symbol(),_sfc_main$1l=defineComponent({__name:"BAvatarGroup",props:{overlap:{default:.3},rounded:{type:[Boolean,String],default:!1},size:null,square:{type:Boolean,default:!1},tag:{default:"div"},variant:null},setup(t){const r=t,n=computed(()=>computeSize(r.size)),i=s=>isString$1(s)&&isNumeric$1(s)?toFloat(s,0):s||0,a=computed(()=>mathMin$6(mathMax$6(i(r.overlap),0),1)/2),o=computed(()=>{let{value:s}=n;return s=s?`calc(${s} * ${a.value})`:null,s?{paddingLeft:s,paddingRight:s}:{}});return provide(injectionKey$4,{overlapScale:a,size:r.size,square:r.square,rounded:r.rounded,variant:r.variant}),(s,l)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"b-avatar-group",role:"group"},{default:withCtx(()=>[createBaseVNode("div",{class:"b-avatar-group-inner",style:normalizeStyle$1(unref(o))},[renderSlot(s.$slots,"default")],4)]),_:3}))}}),_hoisted_1$G={key:0,class:"b-avatar-custom"},_hoisted_2$m={key:1,class:"b-avatar-img"},_hoisted_3$8=["src","alt"],computeSize=t=>{const r=isString$1(t)&&isNumeric$1(t)?toFloat(t,0):t;return isNumber$1(r)?`${r}px`:r||null},_sfc_main$1k=defineComponent({__name:"BAvatar",props:{alt:{default:"avatar"},ariaLabel:null,badge:{type:[Boolean,String],default:!1},badgeLeft:{type:Boolean,default:!1},badgeOffset:null,badgeTop:{type:Boolean,default:!1},badgeVariant:{default:"primary"},button:{type:Boolean,default:!1},buttonType:{default:"button"},disabled:{type:Boolean,default:!1},icon:null,rounded:{type:[Boolean,String],default:"circle"},size:null,square:{type:Boolean,default:!1},src:null,text:null,textVariant:{default:void 0},variant:{default:"secondary"}},emits:["click","img-error"],setup(t,{emit:r}){const n=t,i=useSlots(),a=["sm",null,"lg"],o=.4,s=o*.7,l=inject(injectionKey$4,null),u=te=>{const oe=te;return oe==="light"||oe==="warning"?"dark":"light"},c=computed(()=>!isEmptySlot(i.default)),d=computed(()=>!isEmptySlot(i.badge)),v=computed(()=>n.badge||n.badge===""||d.value),$=computed(()=>l!=null&&l.size?l.size:computeSize(n.size)),I=computed(()=>l!=null&&l.variant?l.variant:n.variant),O=computed(()=>l!=null&&l.rounded?l.rounded:n.rounded),R=computed(()=>({"aria-label":n.ariaLabel||null,disabled:n.disabled||null})),M=computed(()=>({[`bg-${n.badgeVariant}`]:n.badgeVariant})),F=computed(()=>n.badge===!0?"":n.badge),V=computed(()=>`text-${u(n.badgeVariant)}`),G=computed(()=>({[`b-avatar-${n.size}`]:n.size&&a.indexOf(computeSize(n.size))!==-1,[`bg-${I.value}`]:I.value,badge:!n.button&&I.value&&c.value,rounded:O.value===""||O.value===!0,["rounded-circle"]:!n.square&&O.value==="circle",["rounded-0"]:n.square||O.value==="0",["rounded-1"]:!n.square&&O.value==="sm",["rounded-3"]:!n.square&&O.value==="lg",["rounded-top"]:!n.square&&O.value==="top",["rounded-bottom"]:!n.square&&O.value==="bottom",["rounded-start"]:!n.square&&O.value==="left",["rounded-end"]:!n.square&&O.value==="right",btn:n.button,[`btn-${I.value}`]:n.button?I.value:null})),Y=computed(()=>`text-${n.textVariant||u(I.value)}`),X=computed(()=>{const te=n.badgeOffset||"0px";return{fontSize:(a.indexOf($.value||null)===-1?`calc(${$.value} * ${s})`:"")||"",top:n.badgeTop?te:"",bottom:n.badgeTop?"":te,left:n.badgeLeft?te:"",right:n.badgeLeft?"":te}}),q=computed(()=>{const te=a.indexOf($.value||null)===-1?`calc(${$.value} * ${o})`:null;return te?{fontSize:te}:{}}),Z=computed(()=>{var te;const oe=((te=l==null?void 0:l.overlapScale)==null?void 0:te.value)||0,le=$.value&&oe?`calc(${$.value} * -${oe})`:null;return le?{marginLeft:le,marginRight:le}:{}}),Q=computed(()=>n.button?n.buttonType:"span"),ie=computed(()=>({...Z.value,width:$.value,height:$.value})),J=te=>{!n.disabled&&n.button&&r("click",te)},re=te=>r("img-error",te);return(te,oe)=>(openBlock(),createBlock(resolveDynamicComponent(unref(Q)),mergeProps({class:["b-avatar",unref(G)],style:unref(ie)},unref(R),{onClick:J}),{default:withCtx(()=>[unref(c)?(openBlock(),createElementBlock("span",_hoisted_1$G,[renderSlot(te.$slots,"default")])):t.src?(openBlock(),createElementBlock("span",_hoisted_2$m,[createBaseVNode("img",{src:t.src,alt:t.alt,onError:re},null,40,_hoisted_3$8)])):t.text?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(["b-avatar-text",unref(Y)]),style:normalizeStyle$1(unref(q))},toDisplayString(t.text),7)):createCommentVNode("",!0),unref(v)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(["b-avatar-badge",unref(M)]),style:normalizeStyle$1(unref(X))},[unref(d)?renderSlot(te.$slots,"badge",{key:0}):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(V))},toDisplayString(unref(F)),3))],6)):createCommentVNode("",!0)]),_:3},16,["class","style"]))}}),assign=(t,...r)=>Object.assign(t,...r),defineProperties=(t,r)=>Object.defineProperties(t,r),defineProperty=(t,r,n)=>Object.defineProperty(t,r,n),omit=(t,r)=>Object.keys(t).filter(n=>r.indexOf(n)===-1).reduce((n,i)=>({...n,[i]:t[i]}),{}),readonlyDescriptor=()=>({enumerable:!0,configurable:!1,writable:!1});var _export_sfc$1=(t,r)=>{const n=t.__vccOpts||t;for(const[i,a]of r)n[i]=a;return n};const BLINK_PROPS={active:{type:Boolean,default:!1},activeClass:{type:String,default:"router-link-active"},append:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},event:{type:[String,Array],default:"click"},exact:{type:Boolean,default:!1},exactActiveClass:{type:String,default:"router-link-exact-active"},href:{type:String},rel:{type:String,default:null},replace:{type:Boolean,default:!1},routerComponentName:{type:String,default:"router-link"},routerTag:{type:String,default:"a"},target:{type:String,default:"_self"},to:{type:[String,Object],default:null}},_sfc_main$1j=defineComponent({name:"BLink",props:BLINK_PROPS,emits:["click"],setup(t,{emit:r,attrs:n}){const i=getCurrentInstance(),a=ref(null),o=computed(()=>{const c=t.routerComponentName.split("-").map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("");return!((i==null?void 0:i.appContext.app.component(c))!==void 0)||t.disabled||!t.to?"a":t.routerComponentName}),s=computed(()=>{const c="#";if(t.href)return t.href;if(typeof t.to=="string")return t.to||c;const d=t.to;if(Object.prototype.toString.call(d)==="[object Object]"&&(d.path||d.query||d.hash)){const v=d.path||"",$=d.query?`?${Object.keys(d.query).map(O=>`${O}=${d.query[O]}`).join("=")}`:"",I=!d.hash||d.hash.charAt(0)==="#"?d.hash||"":`#${d.hash}`;return`${v}${$}${I}`||c}return c}),l=computed(()=>({to:t.to,href:s.value,target:t.target,rel:t.target==="_blank"&&t.rel===null?"noopener":t.rel||null,tabindex:t.disabled?"-1":typeof n.tabindex=="undefined"?null:n.tabindex,"aria-disabled":t.disabled?"true":null}));return{tag:o,routerAttr:l,link:a,clicked:c=>{if(t.disabled){c.preventDefault(),c.stopImmediatePropagation();return}r("click",c)}}}});function _sfc_render$b(t,r,n,i,a,o){return t.tag==="router-link"?(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({key:0},t.routerAttr,{custom:""}),{default:withCtx(({href:s,navigate:l,isActive:u,isExactActive:c})=>[(openBlock(),createBlock(resolveDynamicComponent(t.routerTag),mergeProps({ref:"link",href:s,class:[u&&t.activeClass,c&&t.exactActiveClass]},t.$attrs,{onClick:l}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:2},1040,["href","class","onClick"]))]),_:3},16)):(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({key:1,ref:"link",class:{active:t.active,disabled:t.disabled}},t.routerAttr,{onClick:t.clicked}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["class","onClick"]))}var BLink=_export_sfc$1(_sfc_main$1j,[["render",_sfc_render$b]]);const isLink=t=>!!(t.href||t.to),suffixPropName=(t,r)=>r+(t?upperFirst(t):""),pluckProps=(t,r,n=i=>i)=>(isArray$1(t)?t.slice():Object.keys(t)).reduce((i,a)=>(i[n(a)]=r[a],i),{}),linkProps=omit(BLINK_PROPS,["event","routerTag"]),_sfc_main$1i=defineComponent({name:"BBadge",props:{pill:{type:Boolean,default:!1},tag:{type:String,default:"span"},variant:{type:String,default:"secondary"},textIndicator:{type:Boolean,default:!1},dotIndicator:{type:Boolean,default:!1},...linkProps},setup(t){const r=computed(()=>isLink(t)),n=computed(()=>r.value?"b-link":t.tag);return{classes:computed(()=>({[`bg-${t.variant}`]:t.variant,active:t.active,disabled:t.disabled,"text-dark":["warning","info","light"].includes(t.variant),"rounded-pill":t.pill,"position-absolute top-0 start-100 translate-middle":t.textIndicator||t.dotIndicator,"p-2 border border-light rounded-circle":t.dotIndicator,"text-decoration-none":r})),props:r.value?pluckProps(linkProps,t):{},computedTag:n}}});function _sfc_render$a(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.computedTag),mergeProps({class:["badge",t.classes]},t.props),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["class"])}var BBadge=_export_sfc$1(_sfc_main$1i,[["render",_sfc_render$a]]);const BREADCRUMB_SYMBOL=Symbol(),BREADCRUMB_OBJECT={items:reactive([]),reset(){this.items=reactive([])}};function createBreadcrumb(t){t.provide(BREADCRUMB_SYMBOL,BREADCRUMB_OBJECT)}function useBreadcrumb(){const t=inject(BREADCRUMB_SYMBOL);return t||BREADCRUMB_OBJECT}const _sfc_main$1h=defineComponent({name:"BBreadcrumbItem",props:{...omit(BLINK_PROPS,["event","routerTag"]),active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"location"},disabled:{type:Boolean,default:!1},text:{type:String,required:!1}},emits:["click"],setup(t,{emit:r}){const n=computed(()=>({active:t.active})),i=computed(()=>t.active?"span":"b-link"),a=computed(()=>({"aria-current":t.active?t.ariaCurrent:void 0}));return{liClasses:n,computedTag:i,computedAriaCurrent:a,clicked:s=>{if(t.disabled||t.active){s.preventDefault(),s.stopImmediatePropagation();return}t.disabled||r("click",s)}}}});function _sfc_render$9(t,r,n,i,a,o){return openBlock(),createElementBlock("li",{class:normalizeClass(["breadcrumb-item",t.liClasses])},[(openBlock(),createBlock(resolveDynamicComponent(t.computedTag),mergeProps({"aria-current":t.computedAriaCurrent},t.$props,{onClick:t.clicked}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["aria-current","onClick"]))],2)}var BBreadcrumbItem=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$9]]);const _hoisted_1$F={"aria-label":"breadcrumb"},_hoisted_2$l={class:"breadcrumb"},_sfc_main$1g=defineComponent({__name:"BBreadcrumb",props:{items:null},setup(t){const r=t,n=useBreadcrumb(),i=computed(()=>{const a=r.items||(n==null?void 0:n.items)||[];let o=!1;return a.map((l,u)=>(typeof l=="string"&&(l={text:l},u<a.length-1&&(l.href="#")),l.active&&(o=!0),!l.active&&!o&&(l.active=u+1===a.length),l))});return(a,o)=>(openBlock(),createElementBlock("nav",_hoisted_1$F,[createBaseVNode("ol",_hoisted_2$l,[renderSlot(a.$slots,"prepend"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i),(s,l)=>(openBlock(),createBlock(BBreadcrumbItem,mergeProps({key:l},s),{default:withCtx(()=>[createTextVNode(toDisplayString(s.text),1)]),_:2},1040))),128)),renderSlot(a.$slots,"default"),renderSlot(a.$slots,"append")])]))}}),_sfc_main$1f=defineComponent({name:"BButton",props:{...BLINK_PROPS,active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,required:!1},pill:{type:Boolean,default:!1},pressed:{type:Boolean,default:null},rel:{type:String,default:null},size:{type:String},squared:{type:Boolean,default:!1},tag:{type:String,default:"button"},target:{type:String,default:"_self"},type:{type:String,default:"button"},variant:{type:String,default:"secondary"}},emits:["click","update:pressed"],setup(t,{emit:r}){const n=t.pressed!==null,i=t.tag==="button"&&!t.href&&!t.to,a=!!(t.href||t.to),o=!!t.to,s=t.href?!1:!i,l=computed(()=>({[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:t.size,active:t.active||t.pressed,"rounded-pill":t.pill,"rounded-0":t.squared,disabled:t.disabled})),u=computed(()=>({"aria-disabled":s?String(t.disabled):null,"aria-pressed":n?String(t.pressed):null,autocomplete:n?"off":null,disabled:i?t.disabled:null,href:t.href,rel:a?t.rel:null,role:s||a?"button":null,target:a?t.target:null,type:i?t.type:null,to:i?null:t.to,append:a?t.append:null,activeClass:o?t.activeClass:null,event:o?t.event:null,exact:o?t.exact:null,exactActiveClass:o?t.exactActiveClass:null,replace:o?t.replace:null,routerComponentName:o?t.routerComponentName:null,routerTag:o?t.routerTag:null})),c=computed(()=>o?"b-link":t.href?"a":t.tag);return{classes:l,attrs:u,computedTag:c,clicked:v=>{if(t.disabled){v.preventDefault(),v.stopPropagation();return}r("click",v),n&&r("update:pressed",!t.pressed)}}}});function _sfc_render$8(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.computedTag),mergeProps({class:["btn",t.classes]},t.attrs,{onClick:t.clicked}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["class","onClick"])}var BButton=_export_sfc$1(_sfc_main$1f,[["render",_sfc_render$8]]);const _sfc_main$1e=defineComponent({__name:"BButtonGroup",props:{ariaRole:{default:"group"},size:null,tag:{default:"div"},vertical:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"btn-group":!r.vertical,"btn-group-vertical":r.vertical,[`btn-group-${r.size}`]:r.size}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(unref(n)),role:"group","aria-role":t.ariaRole},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},8,["class","aria-role"]))}}),_hoisted_1$E=["aria-label"],_sfc_main$1d=defineComponent({__name:"BButtonToolbar",props:{ariaRole:{default:"group"},justify:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"justify-content-between":r.justify}));return(i,a)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n),"btn-toolbar"]),role:"toolbar","aria-label":t.ariaRole},[renderSlot(i.$slots,"default")],10,_hoisted_1$E))}}),_hoisted_1$D=["innerHTML"],_hoisted_2$k=["innerHTML"],_sfc_main$1c=defineComponent({__name:"BCard",props:{align:null,bgVariant:null,bodyBgVariant:null,bodyClass:null,bodyTag:{default:"div"},bodyTextVariant:null,borderVariant:null,footer:null,footerBgVariant:null,footerBorderVariant:null,footerClass:null,footerHtml:{default:""},footerTag:{default:"div"},footerTextVariant:null,header:null,headerBgVariant:null,headerBorderVariant:null,headerClass:null,headerHtml:{default:""},headerTag:{default:"div"},headerTextVariant:null,imgAlt:null,imgBottom:{type:Boolean,default:!1},imgEnd:{type:Boolean,default:!1},imgHeight:null,imgLeft:{type:Boolean,default:!1},imgRight:{type:Boolean,default:!1},imgSrc:null,imgStart:{type:Boolean,default:!1},imgTop:{type:Boolean,default:!1},imgWidth:null,noBody:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},subTitle:null,subTitleTag:{default:"h6"},subTitleTextVariant:{default:"muted"},tag:{default:"div"},textVariant:null,title:null,titleTag:{default:"h4"}},setup(t){const r=t,n=computed(()=>({[`text-${r.align}`]:r.align,[`text-${r.textVariant}`]:r.textVariant,[`bg-${r.bgVariant}`]:r.bgVariant,[`border-${r.borderVariant}`]:r.borderVariant,"flex-row":r.imgLeft||r.imgStart,"flex-row-reverse":r.imgEnd||r.imgRight})),i=computed(()=>({"card-body":!r.noBody,"card-img-overlay":r.overlay,[`bg-${r.bodyBgVariant}`]:r.bodyBgVariant,[`text-${r.bodyTextVariant}`]:r.bodyTextVariant})),a=computed(()=>({[`bg-${r.footerBgVariant}`]:r.footerBgVariant,[`border-${r.footerBorderVariant}`]:r.footerBorderVariant,[`text-${r.footerTextVariant}`]:r.footerTextVariant})),o=computed(()=>({[`bg-${r.headerBgVariant}`]:r.headerBgVariant,[`border-${r.headerBorderVariant}`]:r.headerBorderVariant,[`text-${r.headerTextVariant}`]:r.headerTextVariant})),s=computed(()=>({"card-img":!r.imgEnd&&!r.imgRight&&!r.imgStart&&!r.imgLeft&&!r.imgTop&&!r.imgTop,"card-img-right":r.imgEnd||r.imgRight,"card-img-left":r.imgStart||r.imgLeft,"card-img-top":r.imgTop,"card-img-bottom":r.imgBottom})),l=computed(()=>({src:r.imgSrc,alt:r.imgAlt,height:r.imgHeight,width:r.imgWidth})),u=computed(()=>({[`text-${r.subTitleTextVariant}`]:r.subTitleTextVariant}));return(c,d)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(["card",unref(n)])},{default:withCtx(()=>[t.imgSrc&&!t.imgBottom?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(l),{class:unref(s)}),null,16)):createCommentVNode("",!0),t.header||c.$slots.header||t.headerHtml?(openBlock(),createBlock(resolveDynamicComponent(t.headerTag),{key:1,class:normalizeClass(["card-header",[t.headerClass,unref(o)]])},{default:withCtx(()=>[t.headerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.headerHtml},null,8,_hoisted_1$D)):renderSlot(c.$slots,"header",{key:1},()=>[createTextVNode(toDisplayString(t.header),1)])]),_:3},8,["class"])):createCommentVNode("",!0),t.noBody?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(t.bodyTag),{key:2,class:normalizeClass([t.bodyClass,unref(i)])},{default:withCtx(()=>[t.title&&!t.noBody?(openBlock(),createBlock(resolveDynamicComponent(t.titleTag),{key:0,class:"card-title"},{default:withCtx(()=>[createTextVNode(toDisplayString(t.title),1)]),_:1})):createCommentVNode("",!0),t.subTitle&&!t.noBody?(openBlock(),createBlock(resolveDynamicComponent(t.subTitleTag),{key:1,class:normalizeClass(["card-subtitle mb-2",unref(u)])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.subTitle),1)]),_:1},8,["class"])):createCommentVNode("",!0),renderSlot(c.$slots,"default")]),_:3},8,["class"])),t.noBody?renderSlot(c.$slots,"default",{key:3}):createCommentVNode("",!0),t.footer||c.$slots.footer||t.footerHtml?(openBlock(),createBlock(resolveDynamicComponent(t.footerTag),{key:4,class:normalizeClass(["card-footer",[t.footerClass,unref(a)]])},{default:withCtx(()=>[t.footerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.footerHtml},null,8,_hoisted_2$k)):renderSlot(c.$slots,"footer",{key:1},()=>[createTextVNode(toDisplayString(t.footer),1)])]),_:3},8,["class"])):createCommentVNode("",!0),t.imgSrc&&t.imgBottom?(openBlock(),createElementBlock("img",mergeProps({key:5},unref(l),{class:unref(s)}),null,16)):createCommentVNode("",!0)]),_:3},8,["class"]))}}),_sfc_main$1b=defineComponent({__name:"BCardTitle",props:{title:null,titleTag:{default:"h4"}},setup(t){return(r,n)=>(openBlock(),createBlock(resolveDynamicComponent(t.titleTag),{class:"card-title"},{default:withCtx(()=>[renderSlot(r.$slots,"default",{},()=>[createTextVNode(toDisplayString(t.title),1)])]),_:3}))}}),_sfc_main$1a=defineComponent({__name:"BCardSubTitle",props:{subTitle:null,subTitleTag:{default:"h6"},subTitleTextVariant:{default:"muted"}},setup(t){const r=t,n=computed(()=>({[`text-${r.subTitleTextVariant}`]:r.subTitleTextVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.subTitleTag),{class:normalizeClass(["card-subtitle mb-2",unref(n)])},{default:withCtx(()=>[renderSlot(i.$slots,"default",{},()=>[createTextVNode(toDisplayString(t.subTitle),1)])]),_:3},8,["class"]))}}),_sfc_main$19=defineComponent({__name:"BCardBody",props:{bodyBgVariant:null,bodyClass:null,bodyTag:{default:"div"},bodyTextVariant:null,overlay:{type:Boolean,default:!1},subTitle:null,subTitleTag:{default:"h4"},subTitleTextVariant:null,title:null,titleTag:{default:"h4"}},setup(t){const r=t,n=computed(()=>({[`text-${r.bodyTextVariant}`]:r.bodyTextVariant,[`bg-${r.bodyBgVariant}`]:r.bodyBgVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.bodyTag),{class:normalizeClass(["card-body",unref(n)])},{default:withCtx(()=>[t.title?(openBlock(),createBlock(_sfc_main$1b,{key:0,"title-tag":t.titleTag,title:t.title},null,8,["title-tag","title"])):createCommentVNode("",!0),t.subTitle?(openBlock(),createBlock(_sfc_main$1a,{key:1,"sub-title-tag":t.subTitleTag,"sub-title":t.subTitle,"sub-title-text-variant":t.subTitleTextVariant},null,8,["sub-title-tag","sub-title","sub-title-text-variant"])):createCommentVNode("",!0),renderSlot(i.$slots,"default")]),_:3},8,["class"]))}}),_hoisted_1$C=["innerHTML"],_sfc_main$18=defineComponent({__name:"BCardFooter",props:{footer:null,footerBgVariant:null,footerBorderVariant:null,footerClass:null,footerHtml:null,footerTag:{default:"div"},footerTextVariant:null},setup(t){const r=t,n=computed(()=>({[`text-${r.footerTextVariant}`]:r.footerTextVariant,[`bg-${r.footerBgVariant}`]:r.footerBgVariant,[`border-${r.footerBorderVariant}`]:r.footerBorderVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.footerTag),{class:normalizeClass(["card-footer",[t.footerClass,unref(n)]])},{default:withCtx(()=>[t.footerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.footerHtml},null,8,_hoisted_1$C)):renderSlot(i.$slots,"default",{key:1},()=>[createTextVNode(toDisplayString(t.footer),1)])]),_:3},8,["class"]))}}),_sfc_main$17=defineComponent({__name:"BCardGroup",props:{columns:{type:Boolean,default:!1},deck:{type:Boolean,default:!1},tag:{default:"div"}},setup(t){const r=t,n=computed(()=>r.deck?"card-deck":r.columns?"card-columns":"card-group");return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(unref(n))},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},8,["class"]))}}),_hoisted_1$B=["innerHTML"],_sfc_main$16=defineComponent({__name:"BCardHeader",props:{header:null,headerBgVariant:null,headerBorderVariant:null,headerClass:null,headerHtml:null,headerTag:{default:"div"},headerTextVariant:null},setup(t){const r=t,n=computed(()=>({[`text-${r.headerTextVariant}`]:r.headerTextVariant,[`bg-${r.headerBgVariant}`]:r.headerBgVariant,[`border-${r.headerBorderVariant}`]:r.headerBorderVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.headerTag),{class:normalizeClass(["card-header",[t.headerClass,unref(n)]])},{default:withCtx(()=>[t.headerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.headerHtml},null,8,_hoisted_1$B)):renderSlot(i.$slots,"default",{key:1},()=>[createTextVNode(toDisplayString(t.header),1)])]),_:3},8,["class"]))}}),_sfc_main$15=defineComponent({__name:"BCardImg",props:{alt:{default:void 0},bottom:{type:Boolean,default:!1},end:{type:Boolean,default:!1},height:null,left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},src:null,start:{type:Boolean,default:!1},top:{type:Boolean,default:!1},width:null},setup(t){const r=t,n=computed(()=>({src:r.src,alt:r.alt,width:(typeof r.width=="number"?r.width:parseInt(r.width,10))||void 0,height:(typeof r.height=="number"?r.height:parseInt(r.height,10))||void 0})),i=computed(()=>{const a=r.left?"float-left":r.right?"float-right":"";let o="card-img";return r.top?o+="-top":r.right||r.end?o+="-right":r.bottom?o+="-bottom":(r.left||r.start)&&(o+="-left"),{[a]:!!a,[o]:!0}});return(a,o)=>(openBlock(),createElementBlock("img",mergeProps({class:unref(i)},unref(n)),null,16))}}),_sfc_main$14={},_hoisted_1$A={class:"card-text"};function _sfc_render$7(t,r){return openBlock(),createElementBlock("p",_hoisted_1$A,[renderSlot(t.$slots,"default")])}var BCardText=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$7]]);const _hoisted_1$z=["id"],_hoisted_2$j={key:0,class:"carousel-indicators"},_hoisted_3$7=["data-bs-target","data-bs-slide-to","aria-label"],_hoisted_4$5={class:"carousel-inner"},_hoisted_5$5=["data-bs-target"],_hoisted_6$3=createBaseVNode("span",{class:"carousel-control-prev-icon","aria-hidden":"true"},null,-1),_hoisted_7$2=createBaseVNode("span",{class:"visually-hidden"},"Previous",-1),_hoisted_8$2=[_hoisted_6$3,_hoisted_7$2],_hoisted_9$2=["data-bs-target"],_hoisted_10$2=createBaseVNode("span",{class:"carousel-control-next-icon","aria-hidden":"true"},null,-1),_hoisted_11$2=createBaseVNode("span",{class:"visually-hidden"},"Next",-1),_hoisted_12$2=[_hoisted_10$2,_hoisted_11$2],injectionKey$3=Symbol(),_sfc_main$13=defineComponent({__name:"BCarousel",props:{id:null,imgHeight:null,imgWidth:null,background:null,modelValue:{default:0},controls:{type:Boolean,default:!1},indicators:{type:Boolean,default:!1},interval:{default:5e3},noTouch:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1}},emits:["sliding-start","sliding-end"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(),o=ref(),s=useId(n.id,"accordion"),l=ref([]);return useEventListener(a,"slide.bs.carousel",u=>r("sliding-start",u)),useEventListener(a,"slid.bs.carousel",u=>r("sliding-end",u)),onMounted(()=>{o.value=new Carousel(a.value,{wrap:!n.noTouch,interval:n.interval,touch:!n.noTouch}),i.default&&(l.value=i.default().filter(u=>{var c;return((c=u.type)==null?void 0:c.name)==="BCarouselSlide"}))}),provide(injectionKey$3,{background:n.background,width:n.imgWidth,height:n.imgHeight}),(u,c)=>(openBlock(),createElementBlock("div",{id:unref(s),ref_key:"element",ref:a,class:"carousel slide","data-bs-ride":"carousel"},[t.indicators?(openBlock(),createElementBlock("div",_hoisted_2$j,[(openBlock(!0),createElementBlock(Fragment,null,renderList(l.value,(d,v)=>(openBlock(),createElementBlock("button",{key:v,type:"button","data-bs-target":`#${unref(s)}`,"data-bs-slide-to":v,class:normalizeClass(v===0?"active":""),"aria-current":"true","aria-label":`Slide ${v}`},null,10,_hoisted_3$7))),128))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$5,[renderSlot(u.$slots,"default")]),t.controls?(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("button",{class:"carousel-control-prev",type:"button","data-bs-target":`#${unref(s)}`,"data-bs-slide":"prev"},_hoisted_8$2,8,_hoisted_5$5),createBaseVNode("button",{class:"carousel-control-next",type:"button","data-bs-target":`#${unref(s)}`,"data-bs-slide":"next"},_hoisted_12$2,8,_hoisted_9$2)],64)):createCommentVNode("",!0)],8,_hoisted_1$z))}}),_hoisted_1$y=["id","data-bs-interval"],_hoisted_2$i={key:0},_hoisted_3$6=["innerHTML"],_hoisted_4$4={key:0},_hoisted_5$4=["innerHTML"],_sfc_main$12=defineComponent({__name:"BCarouselSlide",props:{imgSrc:null,imgHeight:null,imgWidth:null,interval:null,active:{type:Boolean,default:!1},background:null,caption:null,captionHtml:null,captionTag:{default:"h3"},contentTag:{default:"div"},contentVisibleUp:null,id:null,imgAlt:null,imgBlank:{type:Boolean,default:!1},imgBlankColor:{default:"transparent"},text:null,textHtml:null,textTag:{default:"p"}},setup(t){const r=t,n=inject(injectionKey$3,{}),i=useId(r.id,"accordion");computed(()=>r.imgBlank?r.imgBlank:r.imgSrc);const a=computed(()=>({background:`${r.background||n.background||"rgb(171, 171, 171)"} none repeat scroll 0% 0%`})),o=computed(()=>({"d-none":r.contentVisibleUp,[`d-${r.contentVisibleUp}-block`]:r.contentVisibleUp})),s=computed(()=>r.text&&!r.textHtml),l=computed(()=>r.textHtml),u=computed(()=>r.caption&&!r.captionHtml),c=computed(()=>r.captionHtml),d=computed(()=>n.width),v=computed(()=>n.height);return($,I)=>{const O=resolveComponent("b-img");return openBlock(),createElementBlock("div",{id:unref(i),class:normalizeClass(["carousel-item",{active:t.active}]),"data-bs-interval":t.interval,style:normalizeStyle$1(unref(a))},[renderSlot($.$slots,"img",{},()=>[createVNode(O,{class:"d-block w-100",alt:t.imgAlt,src:t.imgSrc,width:t.imgWidth||unref(d),height:t.imgHeight||unref(v),blank:t.imgBlank,"blank-color":t.imgBlankColor},null,8,["alt","src","width","height","blank","blank-color"])]),t.caption||t.captionHtml||t.text||t.textHtml||$.$slots.default?(openBlock(),createBlock(resolveDynamicComponent(t.contentTag),{key:0,class:normalizeClass(["carousel-caption",unref(o)])},{default:withCtx(()=>[t.caption||t.captionHtml?(openBlock(),createBlock(resolveDynamicComponent(t.captionTag),{key:0},{default:withCtx(()=>[unref(u)?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString(t.caption),1)):createCommentVNode("",!0),unref(c)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.captionHtml},null,8,_hoisted_3$6)):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),t.text||t.textHtml?(openBlock(),createBlock(resolveDynamicComponent(t.textTag),{key:1},{default:withCtx(()=>[unref(s)?(openBlock(),createElementBlock("span",_hoisted_4$4,toDisplayString(t.text),1)):createCommentVNode("",!0),unref(l)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.textHtml},null,8,_hoisted_5$4)):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),renderSlot($.$slots,"default")]),_:3},8,["class"])):createCommentVNode("",!0)],14,_hoisted_1$y)}}}),_hoisted_1$x=["disabled"],_sfc_main$11=defineComponent({__name:"BCloseButton",props:{disabled:{type:Boolean,default:!1},white:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"btn-close-white":r.white}));return(i,a)=>(openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-close",unref(n)]),disabled:t.disabled,"aria-label":"Close"},null,10,_hoisted_1$x))}});var getBreakpointProps=(t,r,n)=>r.concat(["sm","md","lg","xl","xxl"]).reduce((i,a)=>(i[t?`${t}${a.charAt(0).toUpperCase()+a.slice(1)}`:a]=n,i),Object.create(null)),getClasses$1=(t,r,n,i=n)=>Object.keys(r).reduce((a,o)=>(t[o]&&a.push([i,o.replace(n,""),t[o]].filter(s=>s&&typeof s!="boolean").join("-").toLowerCase()),a),[]);const breakpointCol=getBreakpointProps("",[],{type:[Boolean,String,Number],default:!1}),breakpointOffset=getBreakpointProps("offset",[""],{type:[String,Number],default:null}),breakpointOrder=getBreakpointProps("order",[""],{type:[String,Number],default:null}),_sfc_main$10=defineComponent({name:"BCol",props:{col:{type:Boolean,default:!1},cols:{type:[String,Number],default:null},...breakpointCol,offset:{type:[String,Number],default:null},...breakpointOffset,order:{type:[String,Number],default:null},...breakpointOrder,alignSelf:{type:String,default:null},tag:{type:String,default:"div"}},setup(t){const n=[{content:breakpointCol,propPrefix:"cols",classPrefix:"col"},{content:breakpointOffset,propPrefix:"offset"},{content:breakpointOrder,propPrefix:"order"}].flatMap(a=>getClasses$1(t,a.content,a.propPrefix,a.classPrefix));return{classes:computed(()=>({col:t.col||!n.some(a=>/^col-/.test(a)&&!t.cols),[`col-${t.cols}`]:!!t.cols,[`offset-${t.offset}`]:!!t.offset,[`order-${t.order}`]:!!t.order,[`align-self-${t.alignSelf}`]:!!t.alignSelf})),classList:n}}});function _sfc_render$6(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass([t.classes,t.classList])},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["class"])}var BCol=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$6]]);const defaultToastOptions={delay:5e3,value:!0,pos:"top-right"};class ToastInstance{constructor(r){isReactive(r)?this.vm=r:this.vm=reactive(r),this.containerPositions=computed(()=>{const n=new Set([]);return this.vm.toasts.map(i=>{i.options.pos&&n.add(i.options.pos)}),n})}toasts(r){return computed(r?()=>this.vm.toasts.filter(n=>{if(n.options.pos===r&&n.options.value)return n}):()=>this.vm.toasts)}remove(...r){this.vm.toasts=this.vm.toasts.filter(n=>{if(n.options.id&&!r.includes(n.options.id))return n})}isRoot(){var r;return(r=this.vm.root)!=null?r:!1}show(r,n=defaultToastOptions){const i={id:getID(),...defaultToastOptions,...n},a={options:reactive(i),content:r};return this.vm.toasts.push(a),a}info(r,n=defaultToastOptions){return this.show(r,{variant:"info",...n})}danger(r,n=defaultToastOptions){return this.show(r,{variant:"danger",...n})}warning(r,n=defaultToastOptions){return this.show(r,{variant:"warning",...n})}success(r,n=defaultToastOptions){return this.show(r,{variant:"success",...n})}hide(){}}class ToastController{constructor(){this.useToast=useToast,this.vms={}}getOrCreateViewModel(r){if(!r){if(this.rootInstance)return this.vms[this.rootInstance];const n={root:!0,toasts:[],container:void 0,id:Symbol("toast")};return this.rootInstance=n.id,this.vms[n.id]=n,n}if(r.root){if(this.rootInstance)return this.vms[this.rootInstance];this.rootInstance=r.id}return this.vms[r.id]=r,r}getVM(r){if(!r&&this.rootInstance)return this.vms[this.rootInstance];if(r)return this.vms[r]}}const injectkey=Symbol(),fetchKey=Symbol(),defaults$1={container:void 0,toasts:[],root:!1};function getKey(){return inject(fetchKey)}function useToast(t,r=injectkey){const n=inject(getKey());if(!t)return new ToastInstance(n.getOrCreateViewModel());const i={id:Symbol("toastInstance")},a={...defaults$1,...i,...t},o=n.getOrCreateViewModel(a);return new ToastInstance(o)}const BToastPlugin={install:(t,r={})=>{var n,i,a,o;t.provide(fetchKey,(i=(n=r==null?void 0:r.BToast)==null?void 0:n.injectkey)!=null?i:injectkey),t.provide((o=(a=r==null?void 0:r.BToast)==null?void 0:a.injectkey)!=null?o:injectkey,new ToastController)}},_sfc_main$$=defineComponent({__name:"BToaster",props:{position:{default:"top-right"},instance:null},setup(t){const r=t,n={"top-left":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-right":"top-0 end-0","middle-left":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-right":"top-50 end-0 translate-middle-y","bottom-left":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-right":"bottom-0 end-0"},i=computed(()=>n[r.position]),a=o=>{var s;(s=r.instance)==null||s.remove(o)};return(o,s)=>{var l;const u=resolveComponent("b-toast");return openBlock(),createElementBlock("div",{class:normalizeClass([[unref(i)],"b-toaster position-fixed p-3"]),style:{"z-index":"11"}},[(openBlock(!0),createElementBlock(Fragment,null,renderList((l=t.instance)==null?void 0:l.toasts(t.position).value,c=>(openBlock(),createBlock(u,{id:c.options.id,key:c.options.id,modelValue:c.options.value,"onUpdate:modelValue":d=>c.options.value=d,delay:c.options.delay,title:c.content.title,body:c.content.body,component:c.content.body,variant:c.options.variant,onDestroyed:a},null,8,["id","modelValue","onUpdate:modelValue","delay","title","body","component","variant"]))),128))],2)}}}),_sfc_main$_=defineComponent({name:"BContainer",props:{gutterX:{type:String,default:null},gutterY:{type:String,default:null},fluid:{type:[Boolean,String],default:!1},toast:{type:Object},position:{type:String,required:!1}},setup(t,{slots:r,expose:n}){const i=ref();let a;const o=computed(()=>({container:!t.fluid,["container-fluid"]:typeof t.fluid=="boolean"&&t.fluid,[`container-${t.fluid}`]:typeof t.fluid=="string",[`gx-${t.gutterX}`]:t.gutterX!==null,[`gy-${t.gutterY}`]:t.gutterY!==null}));return onMounted(()=>{t.toast}),t.toast&&(a=useToast({container:i,root:t.toast.root}),n({})),()=>{var s;const l=[];return a==null||a.containerPositions.value.forEach(u=>{l.push(h(_sfc_main$$,{key:u,instance:a,position:u}))}),h("div",{class:[o.value,t.position],ref:i},[...l,(s=r.default)==null?void 0:s.call(r)])}},methods:{}});function _isObject(t){return t&&typeof t=="object"&&t.constructor===Object}function mergeDeep(t,r,n=!0){const i=t instanceof Date&&typeof t.getMonth=="function"?new Date(t):Object.assign({},t);return _isObject(t)&&_isObject(r)&&Object.keys(r).forEach(a=>{_isObject(r[a])?a in t?i[a]=mergeDeep(t[a],r[a],n):Object.assign(i,{[a]:r[a]}):Array.isArray(r[a])&&Array.isArray(t[a])?Object.assign(i,{[a]:n?t[a].concat(r[a].filter(o=>!t[a].includes(o))):r[a]}):Object.assign(i,{[a]:r[a]})}),i}const _hoisted_1$w={class:"visually-hidden"},_hoisted_2$h=["aria-labelledby","role"],_sfc_main$Z=defineComponent({__name:"BDropdown",props:{id:null,menuClass:null,size:null,splitClass:null,splitVariant:null,text:null,toggleClass:null,autoClose:{type:[Boolean,String],default:!0},block:{type:Boolean,default:!1},boundary:{default:"clippingParents"},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},noFlip:{type:Boolean,default:!1},offset:{default:0},popperOpts:{default:()=>({})},right:{type:Boolean,default:!1},role:{default:"menu"},split:{type:Boolean,default:!1},splitButtonType:{default:"button"},splitHref:{default:void 0},noCaret:{type:Boolean,default:!1},toggleText:{default:"Toggle dropdown"},variant:{default:"secondary"}},emits:["show","shown","hide","hidden","click","toggle"],setup(t,{expose:r,emit:n}){const i=t,a=ref(),o=ref(),s=ref(),l=useId(i.id,"dropdown");useEventListener(a,"show.bs.dropdown",()=>n("show")),useEventListener(a,"shown.bs.dropdown",()=>n("shown")),useEventListener(a,"hide.bs.dropdown",()=>n("hide")),useEventListener(a,"hidden.bs.dropdown",()=>n("hidden"));const u=R=>{i.split&&n("click",R)},c=computed(()=>({"d-grid":i.block,"d-flex":i.block&&i.split})),d=computed(()=>({"dropdown-toggle":!i.split,"dropdown-toggle-no-caret":i.noCaret&&!i.split,"w-100":i.split&&i.block})),v=computed(()=>({"dropdown-menu-dark":i.dark,"dropdown-menu-right":i.right})),$=computed(()=>({"data-bs-toggle":i.split?void 0:"dropdown","aria-expanded":i.split?void 0:!1,ref:i.split?void 0:o,href:i.split?i.splitHref:void 0})),I=computed(()=>({ref:i.split?o:void 0})),O=()=>{var R;(R=s.value)==null||R.hide()};return onMounted(()=>{var R;s.value=new Dropdown((R=o.value)==null?void 0:R.$el,{autoClose:i.autoClose,boundary:i.boundary,offset:i.offset?i.offset.toString():"",reference:i.offset||i.split?"parent":"toggle",popperConfig:M=>{const F={placement:"bottom-start",modifiers:i.noFlip?[{name:"flip",options:{fallbackPlacements:[]}}]:[]};return i.dropup?F.placement=i.right?"top-end":"top-start":i.dropright?F.placement="right-start":i.dropleft?F.placement="left-start":i.right&&(F.placement="bottom-end"),mergeDeep(M,mergeDeep(F,i.popperOpts))}})}),r({hide:O}),(R,M)=>(openBlock(),createElementBlock("div",{ref_key:"parent",ref:a,class:normalizeClass([unref(c),"btn-group"])},[createVNode(BButton,mergeProps({id:unref(l),variant:t.splitVariant||t.variant,size:t.size,class:[unref(d),t.split?t.splitClass:t.toggleClass],disabled:t.disabled,type:t.splitButtonType},unref($),{onClick:u}),{default:withCtx(()=>[createTextVNode(toDisplayString(t.text)+" ",1),renderSlot(R.$slots,"button-content")]),_:3},16,["id","variant","size","class","disabled","type"]),t.split?(openBlock(),createBlock(BButton,mergeProps({key:0,variant:t.variant,size:t.size,disabled:t.disabled},unref(I),{class:[t.toggleClass,"dropdown-toggle-split dropdown-toggle"],"data-bs-toggle":"dropdown","aria-expanded":"false",onClick:M[0]||(M[0]=F=>n("toggle"))}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$w,toDisplayString(t.toggleText),1)]),_:1},16,["variant","size","disabled","class"])):createCommentVNode("",!0),createBaseVNode("ul",{class:normalizeClass(["dropdown-menu",[t.menuClass,unref(v)]]),"aria-labelledby":unref(l),role:t.role},[renderSlot(R.$slots,"default")],10,_hoisted_2$h)],2))}}),_hoisted_1$v={role:"presentation"},_sfc_main$Y=defineComponent({__name:"BDropdownDivider",props:{tag:{default:"hr"}},setup(t){return(r,n)=>(openBlock(),createElementBlock("li",_hoisted_1$v,[(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"dropdown-divider",role:"separator","aria-orientation":"horizontal"}))]))}}),_sfc_main$X={},_hoisted_1$u={role:"presentation"},_hoisted_2$g={class:"px-4 py-3"};function _sfc_render$5(t,r){return openBlock(),createElementBlock("li",_hoisted_1$u,[createBaseVNode("form",_hoisted_2$g,[renderSlot(t.$slots,"default")])])}var BDropdownForm=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$5]]);const _hoisted_1$t={role:"presentation"},_hoisted_2$f=["id","aria-describedby"],__default__$4=defineComponent({inheritAttrs:!1}),_sfc_main$W=defineComponent({...__default__$4,__name:"BDropdownGroup",props:{id:null,ariaDescribedby:null,header:null,headerClasses:{default:void 0},headerTag:{default:"header"},headerVariant:{default:void 0}},setup(t){const r=t,n=computed(()=>r.id?[r.id,"group_dd_header"].join("_"):void 0),i=computed(()=>r.headerTag==="header"?void 0:"heading"),a=computed(()=>({[`text-${r.headerVariant}`]:r.headerVariant}));return(o,s)=>(openBlock(),createElementBlock("li",_hoisted_1$t,[(openBlock(),createBlock(resolveDynamicComponent(t.headerTag),{id:unref(n),class:normalizeClass(["dropdown-header",[unref(a),t.headerClasses]]),role:unref(i)},{default:withCtx(()=>[renderSlot(o.$slots,"header",{},()=>[createTextVNode(toDisplayString(t.header),1)])]),_:3},8,["id","class","role"])),createBaseVNode("ul",mergeProps({id:t.id,role:"group",class:"list-unstyled"},o.$attrs,{"aria-describedby":t.ariaDescribedby||unref(n)}),[renderSlot(o.$slots,"default")],16,_hoisted_2$f)]))}}),_sfc_main$V={},_hoisted_1$s={class:"dropdown-header"};function _sfc_render$4(t,r){return openBlock(),createElementBlock("li",null,[createBaseVNode("h6",_hoisted_1$s,[renderSlot(t.$slots,"default")])])}var BDropdownHeader=_export_sfc$1(_sfc_main$V,[["render",_sfc_render$4]]);const _hoisted_1$r={role:"presentation"},__default__$3=defineComponent({inheritAttrs:!1}),_sfc_main$U=defineComponent({...__default__$3,__name:"BDropdownItem",props:{href:null,linkClass:null,active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rel:{default:void 0},target:{default:"_self"},variant:{default:void 0}},emits:["click"],setup(t,{emit:r}){const n=t,i=useAttrs(),a=computed(()=>({active:n.active,disabled:n.disabled,[`text-${n.variant}`]:n.variant})),o=computed(()=>n.href?"a":i.to?"b-link":"button"),s=computed(()=>({"aria-current":n.active?"true":null,href:o.value==="a"?n.href:null,rel:n.rel,type:o.value==="button"?"button":null,target:n.target,...i.to?{activeClass:"active",...i}:{}})),l=u=>r("click",u);return(u,c)=>(openBlock(),createElementBlock("li",_hoisted_1$r,[(openBlock(),createBlock(resolveDynamicComponent(unref(o)),mergeProps({class:["dropdown-item",[unref(a),t.linkClass]]},unref(s),{onClick:l}),{default:withCtx(()=>[renderSlot(u.$slots,"default")]),_:3},16,["class"]))]))}}),_hoisted_1$q={role:"presentation"},__default__$2=defineComponent({inheritAttrs:!1}),_sfc_main$T=defineComponent({...__default__$2,__name:"BDropdownItemButton",props:{buttonClass:null,active:{type:Boolean,default:!1},activeClass:{default:"active"},disabled:{type:Boolean,default:!1},variant:{default:void 0}},emits:["click"],setup(t,{emit:r}){const n=t,i=computed(()=>({[n.activeClass]:n.active,disabled:n.disabled,[`text-${n.variant}`]:n.variant})),a=computed(()=>({role:"menuitem",type:"button",disabled:n.disabled})),o=s=>r("click",s);return(s,l)=>(openBlock(),createElementBlock("li",_hoisted_1$q,[createBaseVNode("button",mergeProps({class:["dropdown-item",[unref(i),t.buttonClass]]},unref(a),{onClick:o}),[renderSlot(s.$slots,"default")],16)]))}}),_sfc_main$S={},_hoisted_1$p={role:"presentation"},_hoisted_2$e={class:"px-4 py-1 mb-0 text-muted"};function _sfc_render$3(t,r){return openBlock(),createElementBlock("li",_hoisted_1$p,[createBaseVNode("p",_hoisted_2$e,[renderSlot(t.$slots,"default")])])}var BDropdownText=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$3]]);const _hoisted_1$o=["id","novalidate","onSubmit"],_sfc_main$R=defineComponent({__name:"BForm",props:{id:null,floating:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}},emits:["submit"],setup(t,{emit:r}){const n=t,i=computed(()=>({"form-floating":n.floating,"was-validated":n.validated})),a=o=>r("submit",o);return(o,s)=>(openBlock(),createElementBlock("form",{id:t.id,novalidate:t.novalidate,class:normalizeClass(unref(i)),onSubmit:withModifiers(a,["prevent"])},[renderSlot(o.$slots,"default")],42,_hoisted_1$o))}}),_hoisted_1$n={class:"form-floating"},_hoisted_2$d=["for"],_sfc_main$Q=defineComponent({__name:"BFormFloatingLabel",props:{labelFor:null,label:null},setup(t){return(r,n)=>(openBlock(),createElementBlock("div",_hoisted_1$n,[renderSlot(r.$slots,"default"),createBaseVNode("label",{for:t.labelFor},toDisplayString(t.label),9,_hoisted_2$d)]))}}),_sfc_main$P=defineComponent({__name:"BFormInvalidFeedback",props:{ariaLive:null,forceShow:{type:Boolean,default:!1},id:null,role:null,state:{type:Boolean,default:void 0},tag:{default:"div"},tooltip:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>r.forceShow===!0||r.state===!1),i=computed(()=>({"d-block":n.value,"invalid-feedback":!r.tooltip,"invalid-tooltip":r.tooltip})),a=computed(()=>({id:r.id||null,role:r.role||null,"aria-live":r.ariaLive||null,"aria-atomic":r.ariaLive?"true":null}));return(o,s)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({class:unref(i)},unref(a)),{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$O=defineComponent({__name:"BFormRow",props:{tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"row d-flex flex-wrap"},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3}))}}),_sfc_main$N=defineComponent({__name:"BFormText",props:{id:null,inline:{type:Boolean,default:!1},tag:{default:"small"},textVariant:{default:"muted"}},setup(t){const r=t,n=computed(()=>({"form-text":!r.inline,[`text-${r.textVariant}`]:r.textVariant})),i=computed(()=>({id:r.id||null}));return(a,o)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({class:unref(n)},unref(i)),{default:withCtx(()=>[renderSlot(a.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$M=defineComponent({__name:"BFormValidFeedback",props:{ariaLive:null,forceShow:{type:Boolean,default:!1},id:null,role:null,state:{type:Boolean,default:void 0},tag:{default:"div"},tooltip:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>r.forceShow===!0||r.state===!0),i=computed(()=>({"d-block":n.value,"valid-feedback":!r.tooltip,"valid-tooltip":r.tooltip})),a=computed(()=>({id:r.id||null,role:r.role||null,"aria-live":r.ariaLive||null,"aria-atomic":r.ariaLive?"true":null}));return(o,s)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({class:unref(i)},unref(a)),{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),_getComputedAriaInvalid=t=>computed(()=>t.ariaInvalid===!0||t.ariaInvalid==="true"||t.ariaInvalid===""||(typeof t.state=="boolean"?t.state:null)===!1?"true":t.ariaInvalid),getClasses=t=>computed(()=>({"form-check":!t.plain&&!t.button,"form-check-inline":t.inline,"form-switch":t.switch,[`form-control-${t.size}`]:t.size&&t.size!=="md"})),getInputClasses=t=>computed(()=>({"form-check-input":!t.plain&&!t.button,"is-valid":t.state===!0,"is-invalid":t.state===!1,"btn-check":t.button})),getLabelClasses=t=>computed(()=>({"form-check-label":!t.plain&&!t.button,btn:t.button,[`btn-${t.buttonVariant}`]:t.button,[`btn-${t.size}`]:t.button&&t.size&&t.size!=="md"})),getGroupAttr=t=>computed(()=>({"aria-invalid":_getComputedAriaInvalid(t).value,"aria-required":t.required.toString()==="true"?"true":null})),getGroupClasses=t=>computed(()=>({"was-validated":t.validated,"btn-group":t.buttons&&!t.stacked,"btn-group-vertical":t.stacked,[`btn-group-${t.size}`]:t.size})),slotsToElements=(t,r,n)=>t.filter(i=>i.type.name===r).map(i=>{const a=(i.children.default?i.children.default():[]).find(o=>o.type.toString()==="Symbol(Text)");return{props:{disabled:n,...i.props},text:a?a.children:""}}),optionToElement=(t,r)=>typeof t=="string"?{props:{value:t,disabled:r.disabled},text:t}:{props:{value:t[r.valueField],disabled:r.disabled||t[r.disabledField],...t.props},text:t[r.textField],html:t[r.htmlField]},bindGroupProps=(t,r,n,i,a)=>({...t,props:{"button-variant":n.buttonVariant,form:n.form,name:i.value,id:`${a.value}_option_${r}`,button:n.buttons,state:n.state,plain:n.plain,size:n.size,inline:!n.stacked,required:n.required,...t.props}}),_hoisted_1$m=["id","disabled","required","name","form","aria-label","aria-labelledby","aria-required","value","indeterminate"],_hoisted_2$c=["for"],__default__$1=defineComponent({inheritAttrs:!1}),_sfc_main$L=defineComponent({...__default__$1,__name:"BFormCheckbox",props:{ariaLabel:null,ariaLabelledBy:null,form:null,indeterminate:{type:Boolean},name:null,id:{default:void 0},autofocus:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},inline:{type:Boolean,default:!1},required:{type:Boolean,default:void 0},size:{default:"md"},state:{type:Boolean,default:void 0},uncheckedValue:{type:[Array,Set,Boolean,String,Object,Number],default:!1},value:{type:[Array,Set,Boolean,String,Object,Number],default:!0},modelValue:{type:[Array,Set,Boolean,String,Object,Number],default:void 0}},emits:["update:modelValue","input","change"],setup(t,{emit:r}){const n=t,i=useId(n.id,"form-check"),a=ref(null),o=ref(!1),s=computed({get:()=>n.uncheckedValue?Array.isArray(n.modelValue)?n.modelValue.indexOf(n.value)>-1:n.modelValue===n.value:n.modelValue,set:v=>{let $=v;Array.isArray(n.modelValue)?n.uncheckedValue&&($=n.modelValue,v?($.indexOf(n.uncheckedValue)>-1&&$.splice($.indexOf(n.uncheckedValue),1),$.push(n.value)):($.indexOf(n.value)>-1&&$.splice($.indexOf(n.value),1),$.push(n.uncheckedValue))):$=v?n.value:n.uncheckedValue,r("input",$),r("update:modelValue",$),r("change",$)}}),l=computed(()=>Array.isArray(n.modelValue)?n.modelValue.indexOf(n.value)>-1:JSON.stringify(n.modelValue)===JSON.stringify(n.value)),u=getClasses(n),c=getInputClasses(n),d=getLabelClasses(n);return onMounted(()=>{n.autofocus&&a.value.focus()}),(v,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(u))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(i)},v.$attrs,{ref_key:"input",ref:a,"onUpdate:modelValue":$[0]||($[0]=I=>isRef(s)?s.value=I:null),class:unref(c),type:"checkbox",disabled:t.disabled,required:!!t.name&&!!t.required,name:t.name,form:t.form,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-required":t.name&&t.required?"true":void 0,value:t.value,indeterminate:t.indeterminate,onFocus:$[1]||($[1]=I=>o.value=!0),onBlur:$[2]||($[2]=I=>o.value=!1)}),null,16,_hoisted_1$m),[[vModelCheckbox,unref(s)]]),v.$slots.default||!t.plain?(openBlock(),createElementBlock("label",{key:0,for:unref(i),class:normalizeClass([unref(d),{active:unref(l),focus:o.value}])},[renderSlot(v.$slots,"default")],10,_hoisted_2$c)):createCommentVNode("",!0)],2))}}),_hoisted_1$l=["id"],_hoisted_2$b=["innerHTML"],_hoisted_3$5=["textContent"],_sfc_main$K=defineComponent({__name:"BFormCheckboxGroup",props:{id:null,form:null,modelValue:{default:()=>[]},ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},buttons:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},htmlField:{default:"html"},name:null,options:{default:()=>[]},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:null,stacked:{type:Boolean,default:!1},state:{type:Boolean,default:void 0},switches:{type:Boolean,default:!1},textField:{default:"text"},validated:{type:Boolean,default:!1},valueField:{default:"value"}},emits:["input","update:modelValue","change"],setup(t,{emit:r}){const n=t,i=useSlots(),a="BFormCheckbox",o=useId(n.id,"checkbox"),s=useId(n.name,"checkbox"),l=computed({get:()=>n.modelValue,set:v=>{JSON.stringify(v)!==JSON.stringify(n.modelValue)&&(r("input",v),r("update:modelValue",v),r("change",v))}}),u=computed(()=>(i.first?slotsToElements(i.first(),a,n.disabled):[]).concat(n.options.map(v=>optionToElement(v,n))).concat(i.default?slotsToElements(i.default(),a,n.disabled):[]).map((v,$)=>bindGroupProps(v,$,n,s,o)).map(v=>({...v,props:{switch:n.switches,...v.props}}))),c=getGroupAttr(n),d=getGroupClasses(n);return(v,$)=>(openBlock(),createElementBlock("div",mergeProps(unref(c),{id:unref(o),role:"group",class:[unref(d),"bv-no-focus-ring"],tabindex:"-1"}),[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(u),(I,O)=>(openBlock(),createBlock(_sfc_main$L,mergeProps({key:O,modelValue:unref(l),"onUpdate:modelValue":$[0]||($[0]=R=>isRef(l)?l.value=R:null)},I.props),{default:withCtx(()=>[I.html?(openBlock(),createElementBlock("span",{key:0,innerHTML:I.html},null,8,_hoisted_2$b)):(openBlock(),createElementBlock("span",{key:1,textContent:toDisplayString(I.text)},null,8,_hoisted_3$5))]),_:2},1040,["modelValue"]))),128))],16,_hoisted_1$l))}}),escapeChar=t=>"\\"+t,cssEscape=t=>{t=toString(t);const r=t.length,n=t.charCodeAt(0);return t.split("").reduce((i,a,o)=>{const s=t.charCodeAt(o);return s===0?i+"\uFFFD":s===127||s>=1&&s<=31||o===0&&s>=48&&s<=57||o===1&&s>=48&&s<=57&&n===45?i+escapeChar(`${s.toString(16)} `):o===0&&s===45&&r===1?i+escapeChar(a):s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+a:i+escapeChar(a)},"")},normalizeSlot=(t,r={},n={})=>{const i=[t];let a;for(let o=0;o<i.length&&!a;o++){const s=i[o];a=n[s]}return a&&isFunction$1(a)?a(r):a},INPUTS=["input","select","textarea"],INPUT_SELECTOR=INPUTS.map(t=>`${t}:not([disabled])`).join(),LEGEND_INTERACTIVE_ELEMENTS=[...INPUTS,"a","button","label"],SLOT_NAME_LABEL="label",SLOT_NAME_INVALID_FEEDBACK="invalid-feedback",SLOT_NAME_VALID_FEEDBACK="valid-feedback",SLOT_NAME_DESCRIPTION="description",SLOT_NAME_DEFAULT$1="default",_sfc_main$J=defineComponent({name:"BFormGroup",components:{BCol,BFormInvalidFeedback:_sfc_main$P,BFormRow:_sfc_main$O,BFormText:_sfc_main$N,BFormValidFeedback:_sfc_main$M},props:{contentCols:{type:[Boolean,String,Number],required:!1},contentColsLg:{type:[Boolean,String,Number],required:!1},contentColsMd:{type:[Boolean,String,Number],required:!1},contentColsSm:{type:[Boolean,String,Number],required:!1},contentColsXl:{type:[Boolean,String,Number],required:!1},description:{type:[String],required:!1},disabled:{type:Boolean,default:!1},feedbackAriaLive:{type:String,default:"assertive"},id:{type:String,required:!1},invalidFeedback:{type:String,required:!1},label:{type:String,required:!1},labelAlign:{type:[Boolean,String,Number],required:!1},labelAlignLg:{type:[Boolean,String,Number],required:!1},labelAlignMd:{type:[Boolean,String,Number],required:!1},labelAlignSm:{type:[Boolean,String,Number],required:!1},labelAlignXl:{type:[Boolean,String,Number],required:!1},labelClass:{type:[Array,Object,String],required:!1},labelCols:{type:[Boolean,String,Number],required:!1},labelColsLg:{type:[Boolean,String,Number],required:!1},labelColsMd:{type:[Boolean,String,Number],required:!1},labelColsSm:{type:[Boolean,String,Number],required:!1},labelColsXl:{type:[Boolean,String,Number],required:!1},labelFor:{type:String,required:!1},labelSize:{type:String,required:!1},labelSrOnly:{type:Boolean,default:!1},state:{type:Boolean,default:null},tooltip:{type:Boolean,default:!1},validFeedback:{type:String,required:!1},validated:{type:Boolean,default:!1},floating:{type:Boolean,default:!1}},setup(t,{attrs:r}){const i=["xs","sm","md","lg","xl"],a=(M,F)=>i.reduce((V,G)=>{const Y=M[suffixPropName(G,`${F}Align`)]||null;return Y&&V.push(["text",G,Y].filter(X=>X).join("-")),V},[]),o=(M,F)=>i.reduce((V,G)=>{let Y=M[suffixPropName(G,`${F}Cols`)];return Y=Y===""?!0:Y||!1,!isBoolean(Y)&&Y!=="auto"&&(Y=stringToInteger(Y,0),Y=Y>0?Y:!1),Y&&(V[G||(isBoolean(Y)?"col":"cols")]=Y),V},{}),s=ref(),l=(M,F=null)=>{if(IS_BROWSER&&t.labelFor){const V=select(`#${cssEscape(t.labelFor)}`,s);if(V){const G="aria-describedby",Y=(M||"").split(RX_SPACE_SPLIT),X=(F||"").split(RX_SPACE_SPLIT),q=(getAttr(V,G)||"").split(RX_SPACE_SPLIT).filter(Z=>!arrayIncludes(X,Z)).concat(Y).filter((Z,Q,ie)=>ie.indexOf(Z)===Q).filter(Z=>Z).join(" ").trim();q?setAttr(V,G,q):removeAttr(V,G)}}},u=computed(()=>o(t,"content")),c=computed(()=>a(t,"label")),d=computed(()=>o(t,"label")),v=computed(()=>Object.keys(u.value).length>0||Object.keys(d.value).length>0),$=computed(()=>isBoolean(t.state)?t.state:null),I=computed(()=>{const M=$.value;return M===!0?"is-valid":M===!1?"is-invalid":null}),O=computed(()=>r.ariaInvalid===!0||r.ariaInvalid==="true"||r.ariaInvalid===""||$.value===!1?"true":r.ariaInvalid);return watch(()=>null,(M,F)=>{M!==F&&l(M,F)}),onMounted(()=>{nextTick(()=>{l(null)})}),{ariaDescribedby:null,computedAriaInvalid:O,contentColProps:u,isHorizontal:v,labelAlignClasses:c,labelColProps:d,onLegendClick:M=>{if(t.labelFor)return;const{target:F}=M,V=F?F.tagName:"";if(LEGEND_INTERACTIVE_ELEMENTS.indexOf(V)!==-1)return;const G=selectAll(INPUT_SELECTOR,s).filter(isVisible);G.length===1&&attemptFocus(G[0])},stateClass:I}},render(){const t=this.$props,r=this.$slots,n=useId(),i=!t.labelFor;let a=null;const o=normalizeSlot(SLOT_NAME_LABEL,{},r)||t.label,s=o?getID("_BV_label_"):null;if(o||this.isHorizontal){const Y=i?"legend":"label";if(t.labelSrOnly)o&&(a=h(Y,{class:"visually-hidden",id:s,for:t.labelFor||null},o)),this.isHorizontal?a=h(BCol,this.labelColProps,{default:()=>a}):a=h("div",{},[a]);else{const X={onClick:i?this.onLegendClick:null,...this.isHorizontal?this.labelColProps:{},tag:this.isHorizontal?Y:null,id:s,for:t.labelFor||null,tabIndex:i?"-1":null,class:[this.isHorizontal?"col-form-label":"form-label",{"bv-no-focus-ring":i,"col-form-label":this.isHorizontal||i,"pt-0":!this.isHorizontal&&i,"d-block":!this.isHorizontal&&!i,[`col-form-label-${t.labelSize}`]:!!t.labelSize},this.labelAlignClasses,t.labelClass]};this.isHorizontal?a=h(BCol,X,{default:()=>o}):a=h(Y,X,o)}}let l=null;const u=normalizeSlot(SLOT_NAME_INVALID_FEEDBACK,{},r)||this.invalidFeedback,c=u?getID("_BV_feedback_invalid_"):void 0;u&&(l=h(_sfc_main$P,{ariaLive:t.feedbackAriaLive,id:c,state:t.state,tooltip:t.tooltip},{default:()=>u}));let d=null;const v=normalizeSlot(SLOT_NAME_VALID_FEEDBACK,{},r)||this.validFeedback,$=v?getID("_BV_feedback_valid_"):void 0;v&&(d=h(_sfc_main$M,{ariaLive:t.feedbackAriaLive,id:$,state:t.state,tooltip:t.tooltip},{default:()=>v}));let I=null;const O=normalizeSlot(SLOT_NAME_DESCRIPTION,{},r)||this.description,R=O?getID("_BV_description_"):void 0;O&&(I=h(_sfc_main$N,{id:R},{default:()=>O}));const M=this.ariaDescribedby=[R,t.state===!1?c:null,t.state===!0?$:null].filter(Y=>Y).join(" ")||null,F=[normalizeSlot(SLOT_NAME_DEFAULT$1,{ariaDescribedby:M,descriptionId:R,id:n,labelId:s},r)||"",l,d,I];!this.isHorizontal&&t.floating&&F.push(a);let V=h("div",{ref:"content",class:[{"form-floating":!this.isHorizontal&&t.floating}]},F);this.isHorizontal&&(V=h(BCol,{ref:"content",...this.contentColProps},{default:()=>F}));const G={class:["mb-3",this.stateClass,{"was-validated":t.validated}],id:useId(t.id).value,disabled:i?t.disabled:null,role:i?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":i&&this.isHorizontal?s:null};return this.isHorizontal&&!i?h(_sfc_main$O,G,{default:()=>[a,V]}):h(i?"fieldset":"div",G,this.isHorizontal&&i?[h(_sfc_main$O,{},{default:()=>[a,V]})]:this.isHorizontal||!t.floating?[a,V]:[V])}}),COMMON_INPUT_PROPS={ariaInvalid:{type:[Boolean,String],default:!1},autocomplete:{type:String,required:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{type:String,required:!1},formatter:{type:Function,required:!1},id:{type:String,required:!1},lazy:{type:Boolean,default:!1},lazyFormatter:{type:Boolean,default:!1},list:{type:String,required:!1},modelValue:{type:[String,Number],default:""},name:{type:String,required:!1},number:{type:Boolean,default:!1},placeholder:{type:String,required:!1},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{type:String,required:!1},state:{type:Boolean,default:null},trim:{type:Boolean,default:!1}};function useFormInput(t,r){const n=ref();let i=null,a=!0;const o=useId(t.id,"input"),s=(R,M,F=!1)=>(R=String(R),typeof t.formatter=="function"&&(!t.lazyFormatter||F)?(a=!1,t.formatter(R,M)):R),l=R=>t.trim?R.trim():t.number?parseFloat(R):R,u=()=>{nextTick(()=>{var R;t.autofocus&&((R=n.value)==null||R.focus())})};onMounted(u),onMounted(()=>{n.value&&(n.value.value=t.modelValue)}),onActivated(u);const c=computed(()=>{if(t.state===!1)return!0;if(t.state!==!0)return typeof t.ariaInvalid=="boolean"&&t.ariaInvalid===!1?void 0:t.ariaInvalid}),d=R=>{const{value:M}=R.target,F=s(M,R);if(F===!1||R.defaultPrevented){R.preventDefault();return}if(t.lazy)return;r("input",F);const V=l(F);t.modelValue!==V&&(i=M,r("update:modelValue",V))},v=R=>{const{value:M}=R.target,F=s(M,R);if(F===!1||R.defaultPrevented){R.preventDefault();return}if(!t.lazy)return;i=M,r("update:modelValue",F);const V=l(F);t.modelValue!==V&&r("change",F)},$=R=>{if(r("blur",R),!t.lazy&&!t.lazyFormatter)return;const{value:M}=R.target,F=s(M,R,!0);i=M,r("update:modelValue",F)},I=()=>{var R;t.disabled||(R=n.value)==null||R.focus()},O=()=>{var R;t.disabled||(R=n.value)==null||R.blur()};return watch(()=>t.modelValue,R=>{!n.value||(n.value.value=i&&a?i:R,i=null,a=!0)}),{input:n,computedId:o,computedAriaInvalid:c,onInput:d,onChange:v,onBlur:$,focus:I,blur:O}}const allowedTypes=["text","number","email","password","search","url","tel","date","time","range","color"],_sfc_main$I=defineComponent({name:"BFormInput",props:{...COMMON_INPUT_PROPS,max:{type:[String,Number],required:!1},min:{type:[String,Number],required:!1},step:{type:[String,Number],required:!1},type:{type:String,default:"text",validator:t=>allowedTypes.includes(t)}},emits:["update:modelValue","change","blur","input"],setup(t,{emit:r}){const n=computed(()=>{const $=t.type==="range",I=t.type==="color";return{"form-range":$,"form-control":I||!t.plaintext&&!$,"form-control-color":I,"form-control-plaintext":t.plaintext&&!$&&!I,[`form-control-${t.size}`]:t.size,"is-valid":t.state===!0,"is-invalid":t.state===!1}}),i=computed(()=>allowedTypes.includes(t.type)?t.type:"text"),{input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v}=useFormInput(t,r);return{classes:n,localType:i,input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v}}}),_hoisted_1$k=["id","name","form","type","disabled","placeholder","required","autocomplete","readonly","min","max","step","list","aria-required","aria-invalid"];function _sfc_render$2(t,r,n,i,a,o){return openBlock(),createElementBlock("input",mergeProps({id:t.computedId,ref:"input",class:t.classes,name:t.name||void 0,form:t.form||void 0,type:t.localType,disabled:t.disabled,placeholder:t.placeholder,required:t.required,autocomplete:t.autocomplete||void 0,readonly:t.readonly||t.plaintext,min:t.min,max:t.max,step:t.step,list:t.type!=="password"?t.list:void 0,"aria-required":t.required?"true":void 0,"aria-invalid":t.computedAriaInvalid},t.$attrs,{onInput:r[0]||(r[0]=s=>t.onInput(s)),onChange:r[1]||(r[1]=s=>t.onChange(s)),onBlur:r[2]||(r[2]=s=>t.onBlur(s))}),null,16,_hoisted_1$k)}var BFormInput=_export_sfc$1(_sfc_main$I,[["render",_sfc_render$2]]);const _hoisted_1$j=["id","disabled","required","name","form","aria-label","aria-labelledby","value","aria-required"],_hoisted_2$a=["for"],_sfc_main$H=defineComponent({__name:"BFormRadio",props:{ariaLabel:null,ariaLabelledBy:null,form:null,id:null,name:null,size:null,autofocus:{type:Boolean,default:!1},modelValue:{type:[Boolean,String,Array,Object,Number],default:void 0},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},inline:{type:Boolean,default:!1},required:{type:Boolean,default:!1},state:{type:[Boolean,null],default:void 0},value:{type:[String,Boolean,Object,Number],default:!0}},emits:["input","change","update:modelValue"],setup(t,{emit:r}){const n=t,i=useId(n.id,"form-check"),a=ref(null),o=ref(!1),s=computed({get:()=>Array.isArray(n.modelValue)?n.modelValue[0]:n.modelValue,set:v=>{const $=v?n.value:!1,I=Array.isArray(n.modelValue)?[$]:$;r("input",I),r("change",I),r("update:modelValue",I)}}),l=computed(()=>Array.isArray(n.modelValue)?(n.modelValue||[]).find(v=>v===n.value):JSON.stringify(n.modelValue)===JSON.stringify(n.value)),u=getClasses(n),c=getInputClasses(n),d=getLabelClasses(n);return onMounted(()=>{n.autofocus&&a.value.focus()}),(v,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(u))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(i)},v.$attrs,{ref_key:"input",ref:a,"onUpdate:modelValue":$[0]||($[0]=I=>isRef(s)?s.value=I:null),class:unref(c),type:"radio",disabled:t.disabled,required:!!t.name&&!!t.required,name:t.name,form:t.form,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,value:t.value,"aria-required":t.name&&t.required?!0:void 0,onFocus:$[1]||($[1]=I=>o.value=!0),onBlur:$[2]||($[2]=I=>o.value=!1)}),null,16,_hoisted_1$j),[[vModelRadio,unref(s)]]),v.$slots.default||!t.plain?(openBlock(),createElementBlock("label",{key:0,for:unref(i),class:normalizeClass([unref(d),{active:unref(l),focus:o.value}])},[renderSlot(v.$slots,"default")],10,_hoisted_2$a)):createCommentVNode("",!0)],2))}}),_hoisted_1$i=["id"],_hoisted_2$9=["innerHTML"],_hoisted_3$4=["textContent"],_sfc_main$G=defineComponent({__name:"BFormRadioGroup",props:{size:null,form:null,id:null,name:null,modelValue:{type:[String,Boolean,Array,Object,Number],default:""},ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},buttons:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},htmlField:{default:"html"},options:{default:()=>[]},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},state:{type:Boolean,default:void 0},textField:{default:"text"},validated:{type:Boolean,default:!1},valueField:{default:"value"}},emits:["input","update:modelValue","change"],setup(t,{emit:r}){const n=t,i=useSlots(),a="BFormRadio",o=useId(n.id,"radio"),s=useId(n.name,"checkbox"),l=computed({get:()=>n.modelValue,set:v=>{r("input",v),r("update:modelValue",v),r("change",v)}}),u=computed(()=>(i.first?slotsToElements(i.first(),a,n.disabled):[]).concat(n.options.map(v=>optionToElement(v,n))).concat(i.default?slotsToElements(i.default(),a,n.disabled):[]).map((v,$)=>bindGroupProps(v,$,n,s,o)).map(v=>({...v}))),c=getGroupAttr(n),d=getGroupClasses(n);return(v,$)=>(openBlock(),createElementBlock("div",mergeProps(unref(c),{id:unref(o),role:"radiogroup",class:[unref(d),"bv-no-focus-ring"],tabindex:"-1"}),[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(u),(I,O)=>(openBlock(),createBlock(_sfc_main$H,mergeProps({key:O,modelValue:unref(l),"onUpdate:modelValue":$[0]||($[0]=R=>isRef(l)?l.value=R:null)},I.props),{default:withCtx(()=>[I.html?(openBlock(),createElementBlock("span",{key:0,innerHTML:I.html},null,8,_hoisted_2$9)):(openBlock(),createElementBlock("span",{key:1,textContent:toDisplayString(I.text)},null,8,_hoisted_3$4))]),_:2},1040,["modelValue"]))),128))],16,_hoisted_1$i))}}),_hoisted_1$h=["value","disabled"],_sfc_main$F=defineComponent({__name:"BFormSelectOption",props:{value:null,disabled:{type:Boolean,default:!1}},setup(t){return(r,n)=>{var i;return openBlock(),createElementBlock("option",{value:(i=t.value)!=null?i:"",disabled:t.disabled},[renderSlot(r.$slots,"default")],8,_hoisted_1$h)}}}),_getNested=(t,r)=>{if(!t)return t;if(r in t)return t[r];const n=r.split(".");return _getNested(t[n[0]],n.splice(1).join("."))},_normalizeOption=(t,r=null,n,i)=>{if(Object.prototype.toString.call(t)==="[object Object]"){const a=_getNested(t,i.valueField),o=_getNested(t,i.textField),s=_getNested(t,i.htmlField),l=_getNested(t,i.disabledField),u=t[i.optionsField]||null;return u!==null?{label:String(_getNested(t,i.labelField)||o),options:normalizeOptions(u,n,i)}:{value:typeof a=="undefined"?r||o:a,text:String(typeof o=="undefined"?r:o),html:s,disabled:Boolean(l)}}return{value:r||t,text:String(t),disabled:!1}},normalizeOptions=(t,r,n)=>Array.isArray(t)?t.map(i=>_normalizeOption(i,null,r,n)):Object.prototype.toString.call(t)==="[object Object]"?(console.warn(`[BootstrapVue warn]: ${r} - Setting prop "options" to an object is deprecated. Use the array format instead.`),Object.keys(t).map(i=>{const a=t[i];switch(typeof a){case"object":return _normalizeOption(a.text,String(a.value),r,n);default:return _normalizeOption(a,String(i),r,n)}})):[],_hoisted_1$g=["label"],_sfc_main$E=defineComponent({__name:"BFormSelectOptionGroup",props:{label:null,disabledField:{default:"disabled"},htmlField:{default:"html"},options:{default:()=>[]},textField:{default:"text"},valueField:{default:"value"}},setup(t){const r=t,n=computed(()=>normalizeOptions(r.options,"BFormSelectOptionGroup",r));return(i,a)=>(openBlock(),createElementBlock("optgroup",{label:t.label},[renderSlot(i.$slots,"first"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n),(o,s)=>(openBlock(),createBlock(_sfc_main$F,mergeProps({key:`option_${s}`,value:o.value,disabled:o.disabled},i.$attrs,{innerHTML:o.html||o.text}),null,16,["value","disabled","innerHTML"]))),128)),renderSlot(i.$slots,"default")],8,_hoisted_1$g))}}),_hoisted_1$f=["id","name","form","multiple","size","disabled","required","aria-required","aria-invalid"],_sfc_main$D=defineComponent({__name:"BFormSelect",props:{ariaInvalid:{type:[Boolean,String],default:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},form:null,htmlField:{default:"html"},id:null,labelField:{default:"label"},multiple:{type:Boolean,default:!1},name:null,options:{default:()=>[]},optionsField:{default:"options"},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},selectSize:{default:0},size:null,state:{type:Boolean,default:void 0},textField:{default:"text"},valueField:{default:"value"},modelValue:{default:""}},emits:["input","update:modelValue","change"],setup(t,{expose:r,emit:n}){const i=t,a=ref(),o=useId(i.id,"input"),s=()=>{nextTick(()=>{var O;i.autofocus&&((O=a.value)==null||O.focus())})};onMounted(s),onActivated(s);const l=computed(()=>({"form-control":i.plain,[`form-control-${i.size}`]:i.size&&i.plain,"form-select":!i.plain,[`form-select-${i.size}`]:i.size&&!i.plain,"is-valid":i.state===!0,"is-invalid":i.state===!1})),u=computed(()=>{if(i.selectSize||i.plain)return i.selectSize}),c=computed(()=>typeof i.state=="boolean"?i.state?void 0:!0:typeof i.ariaInvalid=="boolean"?i.ariaInvalid?i.ariaInvalid:void 0:i.ariaInvalid),d=computed(()=>normalizeOptions(i.options,"BFormSelect",i)),v=computed({get(){return i.modelValue},set(O){n("change",O),n("update:modelValue",O),n("input",O)}});return r({blur:()=>{var O;i.disabled||(O=a.value)==null||O.blur()},focus:()=>{var O;i.disabled||(O=a.value)==null||O.focus()}}),(O,R)=>withDirectives((openBlock(),createElementBlock("select",mergeProps({id:unref(o),ref_key:"input",ref:a},O.$attrs,{"onUpdate:modelValue":R[0]||(R[0]=M=>isRef(v)?v.value=M:null),class:unref(l),name:t.name,form:t.form||void 0,multiple:t.multiple||void 0,size:unref(u),disabled:t.disabled,required:t.required,"aria-required":t.required?!0:void 0,"aria-invalid":unref(c)}),[renderSlot(O.$slots,"first"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d),(M,F)=>(openBlock(),createElementBlock(Fragment,null,[Array.isArray(M.options)?(openBlock(),createBlock(_sfc_main$E,{key:`option_${F}`,label:M.label,options:M.options},null,8,["label","options"])):(openBlock(),createBlock(_sfc_main$F,{key:`option2_${F}`,value:M.value,disabled:M.disabled,innerHTML:M.html||M.text},null,8,["value","disabled","innerHTML"]))],64))),256)),renderSlot(O.$slots,"default")],16,_hoisted_1$f)),[[vModelSelect,unref(v)]])}}),_hoisted_1$e=["id"],_hoisted_2$8=["aria-label","aria-controls","aria-describedby"],_sfc_main$C=defineComponent({__name:"BFormTag",props:{id:null,title:null,disabled:{type:Boolean,default:!1},noRemove:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},removeLabel:{default:"Remove tag"},tag:{default:"span"},variant:{default:"secondary"}},emits:["remove"],setup(t,{emit:r}){const n=t,i=useSlots(),a=computed(()=>{var u,c,d;return(d=((c=(u=i.default)==null?void 0:u.call(i)[0].children)==null?void 0:c.toString())||n.title)!=null?d:""}),o=useId(n.id),s=computed(()=>`${o.value}taglabel__`),l=computed(()=>[`bg-${n.variant}`,{"text-dark":["warning","info","light"].includes(n.variant),"rounded-pill":n.pill,disabled:n.disabled}]);return(u,c)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:unref(o),title:unref(a),class:normalizeClass(["badge b-form-tag d-inline-flex align-items-center mw-100",unref(l)]),"aria-labelledby":unref(s)},{default:withCtx(()=>[createBaseVNode("span",{id:unref(s),class:"b-form-tag-content flex-grow-1 text-truncate"},[renderSlot(u.$slots,"default",{},()=>[createTextVNode(toDisplayString(unref(a)),1)])],8,_hoisted_1$e),!t.disabled&&!t.noRemove?(openBlock(),createElementBlock("button",{key:0,"aria-keyshortcuts":"Delete",type:"button","aria-label":t.removeLabel,class:normalizeClass(["btn-close b-form-tag-remove",{"btn-close-white":!["warning","info","light"].includes(t.variant)}]),"aria-controls":t.id,"aria-describedby":unref(s),onClick:c[0]||(c[0]=d=>r("remove",unref(a)))},null,10,_hoisted_2$8)):createCommentVNode("",!0)]),_:3},8,["id","title","class","aria-labelledby"]))}}),_hoisted_1$d=["id"],_hoisted_2$7=["id","for","aria-live"],_hoisted_3$3=["id","aria-live"],_hoisted_4$3=["id"],_hoisted_5$3=["aria-controls"],_hoisted_6$2={role:"group",class:"d-flex"},_hoisted_7$1=["id","disabled","value","type","placeholder","form","required"],_hoisted_8$1=["disabled"],_hoisted_9$1={"aria-live":"polite","aria-atomic":"true"},_hoisted_10$1={key:0,class:"d-block invalid-feedback"},_hoisted_11$1={key:1,class:"form-text text-muted"},_hoisted_12$1={key:2,class:"form-text text-muted"},_hoisted_13=["name","value"],_sfc_main$B=defineComponent({__name:"BFormTags",props:{addButtonText:{default:"Add"},addButtonVariant:{default:"outline-secondary"},addOnChange:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duplicateTagText:{default:"Duplicate tag(s)"},inputAttrs:null,inputClass:null,inputId:null,inputType:{default:"text"},invalidTagText:{default:"Invalid tag(s)"},form:null,limit:null,limitTagsText:{default:"Tag limit reached"},modelValue:{default:()=>[]},name:null,noAddOnEnter:{type:Boolean,default:!1},noOuterFocus:{type:Boolean,default:!1},noTagRemove:{type:Boolean,default:!1},placeholder:{default:"Add tag..."},removeOnDelete:{type:Boolean,default:!1},required:{type:Boolean,default:!1},separator:null,state:{type:Boolean,default:void 0},size:null,tagClass:null,tagPills:{type:Boolean,default:!1},tagRemoveLabel:null,tagRemovedLabel:{default:"Tag removed"},tagValidator:{type:Function,default:()=>!0},tagVariant:{default:"secondary"}},emits:["update:modelValue","input","tag-state","focus","focusin","focusout","blur"],setup(t,{emit:r}){const n=t,i=ref(null),a=useId(),o=computed(()=>n.inputId||`${a.value}input__`);onMounted(()=>{G(),n.modelValue.length>0&&(u.value=!0)}),onActivated(()=>G()),watch(()=>n.modelValue,oe=>{s.value=oe});const s=ref(n.modelValue),l=ref(""),u=ref(!1),c=ref(!1),d=ref(""),v=ref([]),$=ref([]),I=ref([]),O=computed(()=>({[`form-control-${n.size}`]:n.size,disabled:n.disabled,focus:c.value,"is-invalid":n.state===!1,"is-valid":n.state===!0})),R=computed(()=>s.value.includes(l.value)),M=computed(()=>l.value===""?!1:!n.tagValidator(l.value)),F=computed(()=>s.value.length===n.limit),V=computed(()=>!M.value&&!R.value),G=()=>{var oe;n.autofocus&&((oe=i.value)==null||oe.focus())},Y=oe=>{if(n.disabled){oe.target.blur();return}r("focusin",oe)},X=oe=>{n.disabled||n.noOuterFocus||(c.value=!0,r("focus",oe))},q=oe=>{c.value=!1,r("blur",oe)},Z=oe=>{var le,fe;const de=typeof oe=="string"?oe:oe.target.value;if(u.value=!1,((le=n.separator)==null?void 0:le.includes(de.charAt(0)))&&de.length>0){i.value&&(i.value.value="");return}if(l.value=de,(fe=n.separator)!=null&&fe.includes(de.charAt(de.length-1))){J(de.slice(0,de.length-1));return}v.value=n.tagValidator(de)&&!R.value?[de]:[],$.value=n.tagValidator(de)?[]:[de],I.value=R.value?[de]:[],r("tag-state",v.value,$.value,I.value)},Q=oe=>{n.addOnChange&&(Z(oe),R.value||J(l.value))},ie=oe=>{if(oe.key==="Enter"&&!n.noAddOnEnter){J(l.value);return}(oe.key==="Backspace"||oe.key==="Delete")&&n.removeOnDelete&&l.value===""&&u.value&&s.value.length>0?re(s.value[s.value.length-1]):u.value=!0},J=oe=>{var le;if(oe=(oe||l.value).trim(),oe===""||R.value||!n.tagValidator(oe)||n.limit&&F.value)return;const fe=[...n.modelValue,oe];l.value="",u.value=!0,r("update:modelValue",fe),r("input",fe),(le=i.value)==null||le.focus()},re=oe=>{var le;const fe=s.value.indexOf((le=oe==null?void 0:oe.toString())!=null?le:"");d.value=s.value.splice(fe,1).toString(),r("update:modelValue",s.value)},te=computed(()=>{const{addButtonText:oe,addButtonVariant:le,disabled:fe,duplicateTagText:de,inputAttrs:Se,form:ge,inputType:Te,invalidTagText:ke,limitTagsText:Ie,limit:me,noTagRemove:Oe,placeholder:Ve,required:Xe,separator:Ge,size:st,state:at,tagClass:ft,tagPills:Le,tagRemoveLabel:De,tagVariant:Be}=n;return{addButtonText:oe,addButtonVariant:le,addTag:J,disableAddButton:V,disabled:fe,duplicateTagText:de,duplicateTags:I,form:ge,inputAttrs:{...Se,disabled:fe,form:ge,id:o,value:l},inputHandlers:{input:Z,keydown:ie,change:Q},inputId:o,inputType:Te,invalidTagText:ke,invalidTags:$,isDuplicate:R,isInvalid:M,isLimitReached:F,limitTagsText:Ie,limit:me,noTagRemove:Oe,placeholder:Ve,removeTag:re,required:Xe,separator:Ge,size:st,state:at,tagClass:ft,tagPills:Le,tagRemoveLabel:De,tagVariant:Be,tags:s}});return(oe,le)=>(openBlock(),createElementBlock("div",{id:unref(a),class:normalizeClass(["b-form-tags form-control h-auto",unref(O)]),role:"group",tabindex:"-1",onFocusin:Y,onFocusout:le[1]||(le[1]=fe=>oe.$emit("focusout",fe))},[createBaseVNode("output",{id:`${unref(a)}selected_tags__`,class:"visually-hidden",role:"status",for:unref(o),"aria-live":c.value?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"},toDisplayString(s.value.join(", ")),9,_hoisted_2$7),createBaseVNode("div",{id:`${unref(a)}removed_tags__`,role:"status","aria-live":c.value?"assertive":"off","aria-atomic":"true",class:"visually-hidden"}," ("+toDisplayString(t.tagRemovedLabel)+") "+toDisplayString(d.value),9,_hoisted_3$3),renderSlot(oe.$slots,"default",normalizeProps(guardReactiveProps(unref(te))),()=>[createBaseVNode("ul",{id:`${unref(a)}tag_list__`,class:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.value,fe=>(openBlock(),createBlock(_sfc_main$C,{key:fe,class:normalizeClass(t.tagClass),tag:"li",variant:t.tagVariant,pill:t.tagPills,onRemove:re},{default:withCtx(()=>[createTextVNode(toDisplayString(fe),1)]),_:2},1032,["class","variant","pill"]))),128)),createBaseVNode("li",{role:"none","aria-live":"off",class:"b-from-tags-field flex-grow-1","aria-controls":`${unref(a)}tag_list__`},[createBaseVNode("div",_hoisted_6$2,[createBaseVNode("input",mergeProps({id:unref(o),ref_key:"input",ref:i,disabled:t.disabled,value:l.value,type:t.inputType,placeholder:t.placeholder,class:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",style:{outline:"currentcolor none 0px","min-width":"5rem"}},t.inputAttrs,{form:t.form,required:t.required,onInput:Z,onChange:Q,onKeydown:ie,onFocus:X,onBlur:q}),null,16,_hoisted_7$1),unref(V)?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["btn b-form-tags-button py-0",[`btn-${t.addButtonVariant}`,{"disabled invisible":l.value.length===0},t.inputClass]]),style:{"font-size":"90%"},disabled:t.disabled||l.value.length===0||unref(F),onClick:le[0]||(le[0]=fe=>J(l.value))},[renderSlot(oe.$slots,"add-button-text",{},()=>[createTextVNode(toDisplayString(t.addButtonText),1)])],10,_hoisted_8$1)):createCommentVNode("",!0)])],8,_hoisted_5$3)],8,_hoisted_4$3),createBaseVNode("div",_hoisted_9$1,[unref(M)?(openBlock(),createElementBlock("div",_hoisted_10$1,toDisplayString(t.invalidTagText)+": "+toDisplayString(l.value),1)):createCommentVNode("",!0),unref(R)?(openBlock(),createElementBlock("small",_hoisted_11$1,toDisplayString(t.duplicateTagText)+": "+toDisplayString(l.value),1)):createCommentVNode("",!0),s.value.length===t.limit?(openBlock(),createElementBlock("small",_hoisted_12$1,"Tag limit reached")):createCommentVNode("",!0)])]),t.name?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(s.value,fe=>(openBlock(),createElementBlock("input",{key:fe,type:"hidden",name:t.name,value:fe},null,8,_hoisted_13))),128)):createCommentVNode("",!0)],42,_hoisted_1$d))}}),_sfc_main$A=defineComponent({name:"BFormTextarea",props:{...COMMON_INPUT_PROPS,noResize:{type:Boolean,default:!1},rows:{type:[String,Number],required:!1,default:2},wrap:{type:String,default:"soft"}},emits:["update:modelValue","change","blur","input"],setup(t,{emit:r}){const n=computed(()=>({"form-control":!t.plaintext,"form-control-plaintext":t.plaintext,[`form-control-${t.size}`]:t.size,"is-valid":t.state===!0,"is-invalid":t.state===!1})),i=computed(()=>t.noResize?{resize:"none"}:void 0),{input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v}=useFormInput(t,r);return{input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v,classes:n,computedStyles:i}}}),_hoisted_1$c=["id","name","form","disabled","placeholder","required","autocomplete","readonly","aria-required","aria-invalid","rows","wrap"];function _sfc_render$1(t,r,n,i,a,o){return openBlock(),createElementBlock("textarea",mergeProps({id:t.computedId,ref:"input",class:t.classes,name:t.name||void 0,form:t.form||void 0,disabled:t.disabled,placeholder:t.placeholder,required:t.required,autocomplete:t.autocomplete||void 0,readonly:t.readonly||t.plaintext,"aria-required":t.required?"true":void 0,"aria-invalid":t.computedAriaInvalid,rows:t.rows,style:t.computedStyles,wrap:t.wrap||void 0},t.$attrs,{onInput:r[0]||(r[0]=s=>t.onInput(s)),onChange:r[1]||(r[1]=s=>t.onChange(s)),onBlur:r[2]||(r[2]=s=>t.onBlur(s))}),null,16,_hoisted_1$c)}var BFormTextarea=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$1]]);const _sfc_main$z=defineComponent({__name:"BImg",props:{alt:{default:void 0},blank:{type:Boolean,default:!1},blankColor:{default:"transparent"},block:{type:Boolean,default:!1},center:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},height:null,left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},sizes:null,src:null,srcset:null,thumbnail:{type:Boolean,default:!1},width:null},setup(t){const r=t,n='<svg width="%{w}" height="%{h}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %{w} %{h}" preserveAspectRatio="none"><rect width="100%" height="100%" style="fill:%{f};"></rect></svg>',i=(s,l,u)=>`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(n.replace("%{w}",String(s)).replace("%{h}",String(l)).replace("%{f}",u))}`,a=computed(()=>{let s=r.src,l=(typeof r.width=="number"?r.width:parseInt(r.width,10))||void 0,u=(typeof r.height=="number"?r.height:parseInt(r.height,10))||void 0,c="";typeof r.srcset=="string"?c=r.srcset.split(",").filter(v=>v).join(","):Array.isArray(r.srcset)&&(c=r.srcset.filter(v=>v).join(","));let d="";return typeof r.sizes=="string"?d=r.sizes.split(",").filter(v=>v).join(","):Array.isArray(r.sizes)&&(d=r.sizes.filter(v=>v).join(",")),r.blank&&(!u&&l?u=l:!l&&u&&(l=u),!l&&!u&&(l=1,u=1),s=i(l,u,r.blankColor||"transparent"),c="",d=""),{src:s,alt:r.alt,width:l||void 0,height:u||void 0,srcset:c||void 0,sizes:d||void 0}}),o=computed(()=>{let s="",l=r.block;return r.left?s="float-start":r.right?s="float-end":r.center&&(s="mx-auto",l=!0),{"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||r.fluidGrow,"w-100":r.fluidGrow,rounded:r.rounded===""||r.rounded===!0,[`rounded-${r.rounded}`]:typeof r.rounded=="string"&&r.rounded!=="",[s]:!!s,"d-block":l}});return(s,l)=>(openBlock(),createElementBlock("img",mergeProps({class:unref(o)},unref(a)),null,16))}}),_hoisted_1$b={key:0,class:"input-group-text"},_hoisted_2$6={key:0},_hoisted_3$2$1=["innerHTML"],_hoisted_4$2={key:0,class:"input-group-text"},_hoisted_5$2={key:0},_hoisted_6$1=["innerHTML"],_sfc_main$y=defineComponent({__name:"BInputGroup",props:{append:null,appendHtml:null,id:null,prepend:null,prependHtml:null,size:null,tag:{default:"div"}},setup(t){const r=t,n=computed(()=>({"input-group-sm":r.size==="sm","input-group-lg":r.size==="lg"})),i=computed(()=>!!r.append||!!r.appendHtml),a=computed(()=>!!r.prepend||!!r.prependHtml),o=computed(()=>!!r.appendHtml),s=computed(()=>!!r.prependHtml);return(l,u)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["input-group",unref(n)]),role:"group"},{default:withCtx(()=>[renderSlot(l.$slots,"prepend",{},()=>[unref(a)?(openBlock(),createElementBlock("span",_hoisted_1$b,[unref(s)?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_2$6,toDisplayString(t.prepend),1)),unref(s)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.prependHtml},null,8,_hoisted_3$2$1)):createCommentVNode("",!0)])):createCommentVNode("",!0)]),renderSlot(l.$slots,"default"),renderSlot(l.$slots,"append",{},()=>[unref(i)?(openBlock(),createElementBlock("span",_hoisted_4$2,[unref(o)?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_5$2,toDisplayString(t.append),1)),unref(o)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.appendHtml},null,8,_hoisted_6$1)):createCommentVNode("",!0)])):createCommentVNode("",!0)])]),_:3},8,["id","class"]))}}),_sfc_main$x=defineComponent({__name:"BInputGroupText",props:{tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"input-group-text"},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3}))}}),_sfc_main$w=defineComponent({__name:"BInputGroupAddon",props:{append:{type:Boolean,default:!1},id:null,isText:{type:Boolean},tag:{default:"div"}},setup(t){const r=t,n=computed(()=>({"input-group-append":r.append,"input-group-prepend":!r.append}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["d-flex",unref(n)])},{default:withCtx(()=>[t.isText?(openBlock(),createBlock(_sfc_main$x,{key:0},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3})):createCommentVNode("",!0),t.isText?createCommentVNode("",!0):renderSlot(i.$slots,"default",{key:1})]),_:3},8,["id","class"]))}}),_sfc_main$v=defineComponent({__name:"BInputGroupAppend",props:{id:null,isText:{type:Boolean},tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$w,{id:t.id,"is-text":t.isText,tag:t.tag,append:""},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3},8,["id","is-text","tag"]))}}),_sfc_main$u=defineComponent({__name:"BInputGroupPrepend",props:{id:null,isText:{type:Boolean},tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$w,{id:t.id,"is-text":t.isText,tag:t.tag,append:!1},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3},8,["id","is-text","tag"]))}}),injectionKey$2=Symbol(),_sfc_main$t=defineComponent({__name:"BListGroup",props:{flush:{type:Boolean,default:!1},horizontal:{type:[Boolean,null],default:!1},numbered:{type:Boolean,default:!1},tag:{default:"div"}},setup(t){const r=t,n=computed(()=>{const a=r.flush?!1:r.horizontal;return{"list-group-flush":r.flush,"list-group-horizontal":a===!0,[`list-group-horizontal-${a}`]:typeof a=="string","list-group-numbered":r.numbered}}),i=computed(()=>r.numbered===!0?"ol":r.tag);return provide(injectionKey$2,{numbered:r.numbered}),(a,o)=>(openBlock(),createBlock(resolveDynamicComponent(unref(i)),{class:normalizeClass(["list-group",unref(n)])},{default:withCtx(()=>[renderSlot(a.$slots,"default")]),_:3},8,["class"]))}}),_sfc_main$s=defineComponent({__name:"BListGroupItem",props:{action:{type:Boolean,default:!1},active:{type:Boolean,default:!1},button:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:null,tag:{default:"div"},target:{default:"_self"},to:null,variant:null},setup(t){const r=t,n=useAttrs(),i=inject(injectionKey$2,null),a=computed(()=>!r.button&&(!!r.href||!!r.to)),o=computed(()=>i!=null&&i.numbered?"li":r.button?"button":a.value?BLink:r.tag),s=computed(()=>{const u=r.action||a.value||r.button||["a","router-link","button","b-link"].includes(r.tag);return{[`list-group-item-${r.variant}`]:r.variant,"list-group-item-action":u,active:r.active,disabled:r.disabled}}),l=computed(()=>{const u={};return r.button&&((!n||!n.type)&&(u.type="button"),r.disabled&&(u.disabled=!0)),u});return(u,c)=>(openBlock(),createBlock(resolveDynamicComponent(unref(o)),mergeProps({class:["list-group-item",unref(s)],"aria-current":t.active?!0:null,"aria-disabled":t.disabled?!0:null,target:unref(a)?t.target:null,href:t.button?null:t.href,to:t.button?null:t.to},unref(l)),{default:withCtx(()=>[renderSlot(u.$slots,"default")]),_:3},16,["class","aria-current","aria-disabled","target","href","to"]))}}),_hoisted_1$a=["id"],_hoisted_2$5=["aria-label"],__default__=defineComponent({inheritAttrs:!1}),_sfc_main$r=defineComponent({...__default__,__name:"BModal",props:{bodyBgVariant:null,bodyClass:null,bodyTextVariant:null,busy:{type:Boolean,default:!1},buttonSize:{default:"md"},cancelDisabled:{type:Boolean,default:!1},cancelTitle:{default:"Cancel"},cancelVariant:{default:"secondary"},centered:{type:Boolean,default:!1},contentClass:null,dialogClass:null,footerBgVariant:null,footerBorderVariant:null,footerClass:null,footerTextVariant:null,fullscreen:{type:[Boolean,String],default:!1},headerBgVariant:null,headerBorderVariant:null,headerClass:null,headerCloseLabel:{default:"Close"},headerCloseWhite:{type:Boolean,default:!1},headerTextVariant:null,hideBackdrop:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},id:null,modalClass:null,modelValue:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noFocus:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okTitle:{default:"Ok"},okVariant:{default:"primary"},scrollable:{type:Boolean,default:!1},show:{type:Boolean,default:!1},size:null,title:null,titleClass:null,titleSrOnly:{type:Boolean,default:!1},titleTag:{default:"h5"}},emits:["update:modelValue","show","shown","hide","hidden","hide-prevented","ok","cancel"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(),o=ref(),s=computed(()=>[{fade:!n.noFade,show:n.show},n.modalClass]),l=computed(()=>[{"modal-fullscreen":typeof n.fullscreen=="boolean"?n.fullscreen:!1,[`modal-fullscreen-${n.fullscreen}-down`]:typeof n.fullscreen=="string"?n.fullscreen:!1,[`modal-${n.size}`]:n.size,"modal-dialog-centered":n.centered,"modal-dialog-scrollable":n.scrollable},n.dialogClass]),u=computed(()=>[{[`bg-${n.bodyBgVariant}`]:n.bodyBgVariant,[`text-${n.bodyTextVariant}`]:n.bodyTextVariant},n.bodyClass]),c=computed(()=>[{[`bg-${n.headerBgVariant}`]:n.headerBgVariant,[`border-${n.headerBorderVariant}`]:n.headerBorderVariant,[`text-${n.headerTextVariant}`]:n.headerTextVariant},n.headerClass]),d=computed(()=>[{[`bg-${n.footerBgVariant}`]:n.footerBgVariant,[`border-${n.footerBorderVariant}`]:n.footerBorderVariant,[`text-${n.footerTextVariant}`]:n.footerTextVariant},n.footerClass]),v=computed(()=>[{["visually-hidden"]:n.titleSrOnly},n.titleClass]),$=computed(()=>!!i["header-close"]),I=computed(()=>[{["btn-close-content"]:$.value,["d-flex"]:$.value,["btn-close-white"]:!$.value&&n.headerCloseWhite}]),O=computed(()=>n.cancelDisabled||n.busy),R=computed(()=>n.okDisabled||n.busy);return useEventListener(a,"shown.bs.modal",M=>r("shown",M)),useEventListener(a,"hidden.bs.modal",M=>r("hidden",M)),useEventListener(a,"hidePrevented.bs.modal",M=>r("hide-prevented",M)),useEventListener(a,"show.bs.modal",M=>{r("show",M),M.defaultPrevented||r("update:modelValue",!0)}),useEventListener(a,"hide.bs.modal",M=>{r("hide",M),M.defaultPrevented||r("update:modelValue",!1)}),onMounted(()=>{var M;o.value=new Modal(a.value,{backdrop:n.hideBackdrop?!1:n.noCloseOnBackdrop?"static":!n.hideBackdrop,keyboard:!n.noCloseOnEsc,focus:!n.noFocus}),n.modelValue&&((M=o.value)==null||M.show())}),watch(()=>n.modelValue,M=>{var F,V;M?(F=o.value)==null||F.show():(V=o.value)==null||V.hide()}),(M,F)=>(openBlock(),createBlock(Teleport,{to:"body"},[createBaseVNode("div",mergeProps({id:t.id,ref_key:"element",ref:a,class:["modal",unref(s)],tabindex:"-1"},M.$attrs),[createBaseVNode("div",{class:normalizeClass(["modal-dialog",unref(l)])},[createBaseVNode("div",{class:normalizeClass(["modal-content",t.contentClass])},[t.hideHeader?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["modal-header",unref(c)])},[(openBlock(),createBlock(resolveDynamicComponent(t.titleTag),{class:normalizeClass(["modal-title",unref(v)])},{default:withCtx(()=>[renderSlot(M.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])]),_:3},8,["class"])),t.hideHeaderClose?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["btn-close",unref(I)]),"data-bs-dismiss":"modal","aria-label":t.headerCloseLabel},[renderSlot(M.$slots,"header-close")],10,_hoisted_2$5))],2)),createBaseVNode("div",{class:normalizeClass(["modal-body",unref(u)])},[renderSlot(M.$slots,"default")],2),t.hideFooter?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["modal-footer",unref(d)])},[renderSlot(M.$slots,"footer",{},()=>[t.okOnly?createCommentVNode("",!0):(openBlock(),createBlock(BButton,{key:0,type:"button",class:"btn","data-bs-dismiss":"modal",disabled:unref(O),size:t.buttonSize,variant:t.cancelVariant,onClick:F[0]||(F[0]=V=>M.$emit("cancel"))},{default:withCtx(()=>[createTextVNode(toDisplayString(t.cancelTitle),1)]),_:1},8,["disabled","size","variant"])),createVNode(BButton,{type:"button",class:"btn","data-bs-dismiss":"modal",disabled:unref(R),size:t.buttonSize,variant:t.okVariant,onClick:F[1]||(F[1]=V=>M.$emit("ok"))},{default:withCtx(()=>[createTextVNode(toDisplayString(t.okTitle),1)]),_:1},8,["disabled","size","variant"])])],2))],2)],2)],16,_hoisted_1$a)]))}}),_sfc_main$q=defineComponent({__name:"BNav",props:{align:null,fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},tabs:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"flex-column":r.vertical,[`justify-content-${r.align}`]:r.align,"nav-tabs":r.tabs,"nav-pills":r.pills,"nav-fill":r.fill,"nav-justified":r.justified}));return(i,a)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(["nav",unref(n)])},[renderSlot(i.$slots,"default")],2))}}),_hoisted_1$9=["href","tabindex","aria-disabled"],_sfc_main$p=defineComponent({__name:"BNavItem",props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:null},setup(t){const r=t,n=computed(()=>({active:r.active,disabled:r.disabled}));return(i,a)=>(openBlock(),createElementBlock("li",{class:normalizeClass(["nav-item",unref(n)])},[createBaseVNode("a",{href:t.href,class:"nav-link",tabindex:t.disabled?-1:void 0,"aria-disabled":t.disabled?!0:void 0},[renderSlot(i.$slots,"default")],8,_hoisted_1$9)],2))}}),_hoisted_1$8={class:"nav-item dropdown"},_sfc_main$o=defineComponent({__name:"BNavItemDropdown",props:{id:null,text:null,size:null,offset:null,autoClose:{type:[Boolean,String],default:!0},dark:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropup:{type:Boolean,default:!1},right:{type:Boolean,default:!1},left:{type:[Boolean,String],default:!1},offsetParent:{type:Boolean,default:!1},split:{type:Boolean,default:!1},splitVariant:null,noCaret:{type:Boolean,default:!1},variant:{default:"link"}},setup(t){return(r,n)=>(openBlock(),createElementBlock("li",_hoisted_1$8,[createVNode(_sfc_main$Z,normalizeProps(guardReactiveProps(r.$props)),createSlots({_:2},[renderList(r.$slots,(i,a)=>({name:a,fn:withCtx(o=>[renderSlot(r.$slots,a,normalizeProps(guardReactiveProps(o||{})))])}))]),1040)]))}}),_hoisted_1$7$1=["data-bs-backdrop","data-bs-scroll"],_hoisted_2$4={class:"offcanvas-header"},_hoisted_3$1$1={id:"offcanvasLabel",class:"offcanvas-title"},_hoisted_4$1=createBaseVNode("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas","aria-label":"Close"},null,-1),_hoisted_5$1={class:"offcanvas-body"},_sfc_main$n=defineComponent({__name:"BOffcanvas",props:{modelValue:{type:Boolean,default:!1},bodyScrolling:{type:Boolean,default:!1},backdrop:{type:Boolean,default:!0},placement:{default:"start"},title:null},emits:["update:modelValue","show","shown","hide","hidden"],setup(t,{emit:r}){const n=t,i=ref(),a=ref();useEventListener(i,"shown.bs.offcanvas",()=>r("shown")),useEventListener(i,"hidden.bs.offcanvas",()=>r("hidden")),useEventListener(i,"show.bs.offcanvas",()=>{r("show"),r("update:modelValue",!0)}),useEventListener(i,"hide.bs.offcanvas",()=>{r("hide"),r("update:modelValue",!1)}),onMounted(()=>{var s;a.value=new Offcanvas(i.value),n.modelValue&&((s=a.value)==null||s.show(i.value))});const o=computed(()=>({[`offcanvas-${n.placement}`]:n.placement}));return watch(()=>n.modelValue,s=>{var l,u;s?(l=a.value)==null||l.show(i.value):(u=a.value)==null||u.hide()}),(s,l)=>(openBlock(),createElementBlock("div",{ref_key:"element",ref:i,class:normalizeClass(["offcanvas",unref(o)]),tabindex:"-1","aria-labelledby":"offcanvasLabel","data-bs-backdrop":t.backdrop,"data-bs-scroll":t.bodyScrolling},[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("h5",_hoisted_3$1$1,[renderSlot(s.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])]),_hoisted_4$1]),createBaseVNode("div",_hoisted_5$1,[renderSlot(s.$slots,"default")])],10,_hoisted_1$7$1))}}),NO_FADE_PROPS={name:"",enterActiveClass:"",enterToClass:"",leaveActiveClass:"",leaveToClass:"showing",enterFromClass:"showing",leaveFromClass:""},FADE_PROPS={...NO_FADE_PROPS,enterActiveClass:"fade showing",leaveActiveClass:"fade showing"},_sfc_main$m=defineComponent({name:"BTransition",props:{appear:{type:Boolean,default:!1},mode:{type:String,required:!1},noFade:{type:Boolean,default:!1},transProps:{type:Object,required:!1}},setup(t,{slots:r}){const n=ref(t.transProps);return isPlainObject(n.value)||(n.value=t.noFade?NO_FADE_PROPS:FADE_PROPS,t.appear&&(n.value={...n.value,appear:!0,appearClass:n.value.enterClass,appearActiveClass:n.value.enterActiveClass,appearToClass:n.value.enterToClass})),n.value={mode:t.mode,...n.value,css:!0},()=>h(Transition,{...n.value},{default:()=>r.default?r.default():[]})}}),POSITION_COVER={top:0,left:0,bottom:0,right:0},SLOT_NAME_DEFAULT="default",SLOT_NAME_OVERLAY="overlay",_sfc_main$l=defineComponent({name:"BOverlay",components:{BTransition:_sfc_main$m},props:{bgColor:{type:String,required:!1},blur:{type:String,default:"2px"},fixed:{type:Boolean,default:!1},noCenter:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},opacity:{type:[Number,String],default:.85,validator:t=>{const r=toFloat(t,0);return r>=0&&r<=1}},overlayTag:{type:String,default:"div"},rounded:{type:[Boolean,String],default:!1},show:{type:Boolean,default:!1},spinnerSmall:{type:Boolean,default:!1},spinnerType:{type:String,default:"border"},spinnerVariant:{type:String,required:!1},variant:{type:String,default:"light"},wrapTag:{type:String,default:"div"},zIndex:{type:[Number,String],default:10}},emits:["click","hidden","shown"],setup(t,{slots:r,emit:n}){const i=computed(()=>t.rounded===!0||t.rounded===""?"rounded":t.rounded?`rounded-${t.rounded}`:""),a=computed(()=>t.variant&&!t.bgColor?`bg-${t.variant}`:""),o=computed(()=>({spinnerType:t.spinnerType||null,spinnerVariant:t.spinnerVariant||null,spinnerSmall:t.spinnerSmall}));return()=>{const s=d=>h(resolveComponent("BSpinner"),{type:d.spinnerType,variant:d.spinnerVariant,small:d.spinnerSmall});let l="";if(t.show){const d=h("div",{class:["position-absolute",a.value,i.value],style:{...POSITION_COVER,opacity:t.opacity,backgroundColor:t.bgColor||null,backdropFilter:t.blur?`blur(${t.blur})`:null}}),v=h("div",{class:"position-absolute",style:t.noCenter?{...POSITION_COVER}:{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},normalizeSlot(SLOT_NAME_OVERLAY,o.value,r)||s(o.value)||"");l=h(t.overlayTag,{class:["b-overlay",{"position-absolute":!t.noWrap||t.noWrap&&!t.fixed,"position-fixed":t.noWrap&&t.fixed}],style:{...POSITION_COVER,zIndex:t.zIndex||10},onClick:$=>n("click",$),key:"overlay"},[d,v])}const u=()=>h(_sfc_main$m,{noFade:t.noFade,transProps:{enterToClass:"show"},name:"fade",onAfterEnter:()=>n("shown"),onAfterLeave:()=>n("hidden")},{default:()=>l});return t.noWrap?u():h(t.wrapTag,{class:["b-overlay-wrap position-relative"],"aria-busy":t.show?"true":null},[h("span",normalizeSlot(SLOT_NAME_DEFAULT,{},r)),u()])}}});function alignment(t){return computed(()=>t.align==="center"?"justify-content-center":t.align==="end"?"justify-content-end":(t.align==="start","justify-content-start"))}class BvEvent{constructor(r,n={}){if(this.cancelable=!0,this.componentId=null,this.defaultPrevented=!1,this.nativeEvent=null,this.relatedTarget=null,this.target=null,this.eventType="",this.vueTarget=null,!r)throw new TypeError(`Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`);assign(this,BvEvent.Defaults,this.constructor.Defaults,n,{eventType:r}),defineProperties(this,{type:readonlyDescriptor(),cancelable:readonlyDescriptor(),nativeEvent:readonlyDescriptor(),target:readonlyDescriptor(),relatedTarget:readonlyDescriptor(),vueTarget:readonlyDescriptor(),componentId:readonlyDescriptor()});let i=!1;this.preventDefault=function(){this.cancelable&&(i=!0)},defineProperty(this,"defaultPrevented",{enumerable:!0,get(){return i}})}static get Defaults(){return{eventType:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}const DEFAULT_LIMIT=5,DEFAULT_PER_PAGE=20,DEFAULT_TOTAL_ROWS=0,ELLIPSIS_THRESHOLD=3,SLOT_NAME_ELLIPSIS_TEXT="ellipsis-text",SLOT_NAME_FIRST_TEXT="first-text",SLOT_NAME_LAST_TEXT="last-text",SLOT_NAME_NEXT_TEXT="next-text",SLOT_NAME_PAGE="page",SLOT_NAME_PREV_TEXT="prev-text",sanitizePerPage=t=>Math.max(toInteger(t)||DEFAULT_PER_PAGE,1),sanitizeTotalRows=t=>Math.max(toInteger(t)||DEFAULT_TOTAL_ROWS,0),sanitizeCurrentPage=(t,r)=>{const n=toInteger(t)||1;return n>r?r:n<1?1:n},_sfc_main$k=defineComponent({name:"BPagination",props:{align:{type:String,default:"start"},ariaControls:{type:String,required:!1},ariaLabel:{type:String,default:"Pagination"},disabled:{type:Boolean,default:!1},ellipsisClass:{type:[Array,String],default:()=>[]},ellipsisText:{type:String,default:"\u2026"},firstClass:{type:[Array,String],default:()=>[]},firstNumber:{type:Boolean,default:!1},firstText:{type:String,default:"\xAB"},hideEllipsis:{type:Boolean,default:!1},hideGotoEndButtons:{type:Boolean,default:!1},labelFirstPage:{type:String,default:"Go to first page"},labelLastPage:{type:String,default:"Go to last page"},labelNextPage:{type:String,default:"Go to next page"},labelPage:{type:String,default:"Go to page"},labelPrevPage:{type:String,default:"Go to previous page"},lastClass:{type:[Array,String],default:()=>[]},lastNumber:{type:Boolean,default:!1},lastText:{type:String,default:"\xBB"},limit:{type:Number,default:DEFAULT_LIMIT},modelValue:{type:Number,default:1},nextClass:{type:[Array,String],default:()=>[]},nextText:{type:String,default:"\u203A"},pageClass:{type:[Array,String],default:()=>[]},perPage:{type:Number,default:DEFAULT_PER_PAGE},pills:{type:Boolean,default:!1},prevClass:{type:[Array,String],default:()=>[]},prevText:{type:String,default:"\u2039"},size:{type:String,required:!1},totalRows:{type:Number,default:DEFAULT_TOTAL_ROWS}},emits:["update:modelValue","page-click"],setup(t,{emit:r,slots:n}){const i=alignment(t),a=computed(()=>Math.ceil(sanitizeTotalRows(t.totalRows)/sanitizePerPage(t.perPage))),o=computed(()=>{let O;return a.value-t.modelValue+2<t.limit&&t.limit>ELLIPSIS_THRESHOLD?O=a.value-l.value+1:O=t.modelValue-Math.floor(l.value/2),O<1?O=1:O>a.value-l.value&&(O=a.value-l.value+1),t.limit<=ELLIPSIS_THRESHOLD&&t.lastNumber&&a.value===O+l.value-1&&(O=Math.max(O-1,1)),O}),s=computed(()=>{const O=a.value-t.modelValue;let R=!1;return O+2<t.limit&&t.limit>ELLIPSIS_THRESHOLD?t.limit>ELLIPSIS_THRESHOLD&&(R=!0):t.limit>ELLIPSIS_THRESHOLD&&(R=!!(!t.hideEllipsis||t.firstNumber)),o.value<=1&&(R=!1),R&&t.firstNumber&&o.value<4&&(R=!1),R}),l=computed(()=>{let O=t.limit;return a.value<=t.limit?O=a.value:t.modelValue<t.limit-1&&t.limit>ELLIPSIS_THRESHOLD?((!t.hideEllipsis||t.lastNumber)&&(O=t.limit-(t.firstNumber?0:1)),O=Math.min(O,t.limit)):a.value-t.modelValue+2<t.limit&&t.limit>ELLIPSIS_THRESHOLD?(!t.hideEllipsis||t.firstNumber)&&(O=t.limit-(t.lastNumber?0:1)):t.limit>ELLIPSIS_THRESHOLD&&(O=t.limit-(t.hideEllipsis?0:2)),O}),u=computed(()=>{const O=a.value-l.value;let R=!1;t.modelValue<t.limit-1&&t.limit>ELLIPSIS_THRESHOLD?(!t.hideEllipsis||t.lastNumber)&&(R=!0):t.limit>ELLIPSIS_THRESHOLD&&(R=!!(!t.hideEllipsis||t.lastNumber)),o.value>O&&(R=!1);const M=o.value+l.value-1;return R&&t.lastNumber&&M>a.value-3&&(R=!1),R}),c=reactive({pageSize:sanitizePerPage(t.perPage),totalRows:sanitizeTotalRows(t.totalRows),numberOfPages:a.value}),d=(O,R)=>{if(R===t.modelValue)return;const{target:M}=O,F=new BvEvent("page-click",{cancelable:!0,vueTarget:this,target:M});r("page-click",F,R),!F.defaultPrevented&&r("update:modelValue",R)},v=computed(()=>t.size?`pagination-${t.size}`:""),$=computed(()=>t.pills?"b-pagination-pills":"");watch(()=>t.modelValue,O=>{const R=sanitizeCurrentPage(O,a.value);R!==t.modelValue&&r("update:modelValue",R)}),watch(c,(O,R)=>{isUndefinedOrNull(O)||(R.pageSize!==O.pageSize&&R.totalRows===O.totalRows||R.numberOfPages!==O.numberOfPages&&t.modelValue>R.numberOfPages)&&r("update:modelValue",1)});const I=computed(()=>{const O=[];for(let R=0;R<l.value;R++)O.push({number:o.value+R,classes:null});return O});return()=>{const O=[],R=I.value.map(Q=>Q.number),M=Q=>Q===t.modelValue,F=t.modelValue<1,V=t.align==="fill",G=(Q,ie,J,re,te,oe)=>{const le=t.disabled||M(oe)||F||Q<1||Q>a.value,fe=Q<1?1:Q>a.value?a.value:Q,de={disabled:le,page:fe,index:fe-1},Se=normalizeSlot(J,de,n)||re||"";return h("li",{class:["page-item",{disabled:le,"flex-fill":V,"d-flex":V&&!le},te]},h(le?"span":"button",{class:["page-link",{"flex-grow-1":!le&&V}],"aria-label":ie,"aria-controls":t.ariaControls||null,"aria-disabled":le?"true":null,role:"menuitem",type:le?null:"button",tabindex:le?null:"-1",onClick:ge=>{le||d(ge,fe)}},Se))},Y=Q=>h("li",{class:["page-item","disabled","bv-d-xs-down-none",V?"flex-fill":"",t.ellipsisClass],role:"separator",key:`ellipsis-${Q?"last":"first"}`},[h("span",{class:["page-link"]},normalizeSlot(SLOT_NAME_ELLIPSIS_TEXT,{},n)||t.ellipsisText||"...")]),X=(Q,ie)=>{const J=M(Q.number)&&!F,re=t.disabled?null:J||F&&ie===0?"0":"-1",te={active:J,disabled:t.disabled,page:Q.number,index:Q.number-1,content:Q.number},oe=normalizeSlot(SLOT_NAME_PAGE,te,n)||Q.number,le=h(t.disabled?"span":"button",{class:["page-link",{"flex-grow-1":!t.disabled&&V}],"aria-controls":t.ariaControls||null,"aria-disabled":t.disabled?"true":null,"aria-label":t.labelPage?`${t.labelPage} ${Q.number}`:null,role:"menuitemradio",type:t.disabled?null:"button",tabindex:re,onClick:fe=>{t.disabled||d(fe,Q.number)}},oe);return h("li",{class:["page-item",{disabled:t.disabled,active:J,"flex-fill":V,"d-flex":V&&!t.disabled},t.pageClass],role:"presentation",key:`page-${Q.number}`},le)};if(!t.hideGotoEndButtons&&!t.firstNumber){const Q=G(1,t.labelFirstPage,SLOT_NAME_FIRST_TEXT,t.firstText,t.firstClass,1);O.push(Q)}const q=G(t.modelValue-1,t.labelFirstPage,SLOT_NAME_PREV_TEXT,t.prevText,t.prevClass,1);O.push(q),t.firstNumber&&R[0]!==1&&O.push(X({number:1},0)),s.value&&O.push(Y(!1)),I.value.forEach((Q,ie)=>{const J=s.value&&t.firstNumber&&R[0]!==1?1:0;O.push(X(Q,ie+J))}),u.value&&O.push(Y(!0)),t.lastNumber&&R[R.length-1]!==a.value&&O.push(X({number:a.value},-1));const Z=G(t.modelValue+1,t.labelNextPage,SLOT_NAME_NEXT_TEXT,t.nextText,t.nextClass,a.value);if(O.push(Z),!t.lastNumber&&!t.hideGotoEndButtons){const Q=G(a.value,t.labelLastPage,SLOT_NAME_LAST_TEXT,t.lastText,t.lastClass,a.value);O.push(Q)}return h("ul",{class:["pagination",v.value,i.value,$.value],role:"menubar","aria-disabled":t.disabled,"aria-label":t.ariaLabel||null},O)}}}),_hoisted_1$6$1=["id"],_sfc_main$j=defineComponent({__name:"BPopover",props:{id:null,title:null,content:null,container:{default:"body"},noninteractive:{type:Boolean,default:!1},placement:{default:"right"},target:{default:void 0},delay:{default:0},triggers:{default:"click"},show:{type:Boolean,default:!1},variant:{default:void 0},html:{type:Boolean,default:!0},sanitize:{type:Boolean,default:!1},offset:{default:"0"}},emits:["show","shown","hide","hidden","inserted"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(),o=ref(),s=ref(),l=ref(),u=ref(),c=computed(()=>({[`b-popover-${n.variant}`]:n.variant})),d=I=>{if(typeof I=="string")return I;if(I instanceof HTMLElement)return I;if(typeof I!="undefined")return I.$el},v=I=>{if(!!I){if(typeof I=="string"){const O=document.getElementById(I);return O||void 0}return I}},$=I=>{o.value=v(d(I)),o.value&&(s.value=new Popover(o.value,{container:d(n.container),trigger:n.triggers,placement:n.placement,title:n.title||i.title?l.value:"",content:u.value,html:n.html,delay:n.delay,sanitize:n.sanitize,offset:n.offset}))};return onMounted(()=>{var I,O,R;nextTick(()=>{$(n.target)}),(O=(I=a.value)==null?void 0:I.parentNode)==null||O.removeChild(a.value),n.show&&((R=s.value)==null||R.show())}),onBeforeUnmount(()=>{var I;(I=s.value)==null||I.dispose()}),watch(()=>n.target,I=>{var O;(O=s.value)==null||O.dispose(),$(I)}),watch(()=>n.show,(I,O)=>{var R,M;I!==O&&(I?(R=s.value)==null||R.show():(M=s.value)==null||M.hide())}),useEventListener(o,"show.bs.popover",()=>r("show")),useEventListener(o,"shown.bs.popover",()=>r("shown")),useEventListener(o,"hide.bs.popover",()=>r("hide")),useEventListener(o,"hidden.bs.popover",()=>r("hidden")),useEventListener(o,"inserted.bs.popover",()=>r("inserted")),(I,O)=>(openBlock(),createElementBlock("div",{id:t.id,ref_key:"element",ref:a,class:normalizeClass(["popover b-popover",unref(c)]),role:"tooltip",tabindex:"-1"},[createBaseVNode("div",{ref_key:"titleRef",ref:l},[renderSlot(I.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])],512),createBaseVNode("div",{ref_key:"contentRef",ref:u},[renderSlot(I.$slots,"default",{},()=>[createTextVNode(toDisplayString(t.content),1)])],512)],10,_hoisted_1$6$1))}}),_sfc_main$i=defineComponent({name:"BProgressBar",props:{animated:{type:Boolean,default:!1},label:{type:String},labelHtml:{type:String},max:{type:[Number,String]},precision:{type:[Number,String],default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},value:{type:[Number,String],default:0},variant:{type:String}},setup(t,{slots:r}){const n=inject(injectionKey$1),i=computed(()=>({"progress-bar-animated":t.animated||(n==null?void 0:n.animated),"progress-bar-striped":t.striped||(n==null?void 0:n.striped)||t.animated||(n==null?void 0:n.animated),[`bg-${t.variant}`]:t.variant})),a=computed(()=>{if(t.showValue||(n==null?void 0:n.showValue))return parseFloat(t.value).toFixed(t.precision);if(t.showProgress||(n==null?void 0:n.showProgress)){const l=(t.value*100/parseInt(t.max||100)).toString();return parseFloat(l).toFixed(t.precision)}return t.label||""}),o=computed(()=>t.max||(n==null?void 0:n.max)?`${t.value*100/parseInt(t.max||(n==null?void 0:n.max))}%`:typeof t.value=="string"?t.value:`${t.value}%`),s=computed(()=>{const l={class:["progress-bar",i.value],role:"progressbar","aria-valuenow":t.value,"aria-valuemin":0,"aria-valuemax":t.max,style:{width:o.value}};return t.labelHtml?{...l,innerHTML:t.labelHtml}:l});return()=>{var l;return h("div",s.value,((l=r.default)==null?void 0:l.call(r))||a.value)}}}),injectionKey$1=Symbol(),_sfc_main$h=defineComponent({__name:"BProgress",props:{variant:null,max:null,height:null,animated:{type:Boolean,default:!1},precision:{default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},value:{default:0}},setup(t){const r=t;return provide(injectionKey$1,{animated:r.animated,max:r.max,showProgress:r.showProgress,showValue:r.showValue,striped:r.striped}),(n,i)=>(openBlock(),createElementBlock("div",{class:"progress",style:normalizeStyle$1({height:t.height})},[renderSlot(n.$slots,"default",{},()=>[createVNode(_sfc_main$i,normalizeProps(guardReactiveProps({animated:t.animated,max:t.max,precision:t.precision,showProgress:t.showProgress,showValue:t.showValue,striped:t.striped,value:t.value,variant:t.variant})),null,16)])],4))}}),rowColsProps=getBreakpointProps("cols",[""],{type:[String,Number],default:null}),_sfc_main$g=defineComponent({name:"BRow",props:{tag:{type:String,default:"div"},gutterX:{type:String,default:null},gutterY:{type:String,default:null},alignV:{type:String,default:null},alignH:{type:String,default:null},alignContent:{type:String,default:null},...rowColsProps},setup(t){const r=getClasses$1(t,rowColsProps,"cols","row-cols");return{classes:computed(()=>({[`gx-${t.gutterX}`]:t.gutterX!==null,[`gy-${t.gutterY}`]:t.gutterY!==null,[`align-items-${t.alignV}`]:t.alignV,[`justify-content-${t.alignH}`]:t.alignH,[`align-content-${t.alignContent}`]:t.alignContent})),rowColsClasses:r}}});function _sfc_render(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(["row",[t.classes,t.rowColsClasses]])},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["class"])}var BRow=_export_sfc$1(_sfc_main$g,[["render",_sfc_render]]);const _sfc_main$f=defineComponent({__name:"BSkeleton",props:{height:null,width:null,size:null,animation:{default:"wave"},type:{default:"text"},variant:null},setup(t){const r=t,n=computed(()=>[`b-skeleton-${r.type}`,{[`b-skeleton-animate-${r.animation}`]:typeof r.animation=="boolean"?void 0:r.animation,[`bg-${r.variant}`]:r.variant}]),i=computed(()=>({width:r.size||r.width,height:r.size||r.height}));return(a,o)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["b-skeleton",unref(n)]),style:normalizeStyle$1(unref(i))},null,6))}}),_sfc_main$e=defineComponent({__name:"BSkeletonIcon",props:{animation:{default:"wave"}},setup(t){const r=t,n=computed(()=>[`b-skeleton-animate-${r.animation}`]);return(i,a)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["b-skeleton-icon-wrapper position-relative d-inline-block overflow-hidden",unref(n)])},[renderSlot(i.$slots,"default")],2))}}),_sfc_main$d=defineComponent({__name:"BTableSimple",props:{bordered:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},borderVariant:{type:String},captionTop:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!1},stacked:{type:[Boolean,String],default:!1},striped:{type:Boolean,default:!1},small:{type:Boolean,default:!1},tableClass:{type:[Array,Object,String]},tableVariant:{type:String}},setup(t){const r=t,n=computed(()=>["table","b-table",{"table-bordered":r.bordered,"table-borderless":r.borderless,[`border-${r.borderVariant}`]:r.borderVariant,"caption-top":r.captionTop,"table-dark":r.dark,"table-hover":r.hover,"b-table-stacked":typeof r.stacked=="boolean"&&r.stacked,[`b-table-stacked-${r.stacked}`]:typeof r.stacked=="string","table-striped":r.striped,"table-sm":r.small,[`table-${r.tableVariant}`]:r.tableVariant},r.tableClass]),i=computed(()=>[{"table-responsive":typeof r.responsive=="boolean"&&r.responsive,[`table-responsive-${r.responsive}`]:typeof r.responsive=="string"}]);return(a,o)=>t.responsive?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i))},[createBaseVNode("table",{role:"table",class:normalizeClass(unref(n))},[renderSlot(a.$slots,"default")],2)],2)):(openBlock(),createElementBlock("table",{key:1,role:"table",class:normalizeClass(unref(n))},[renderSlot(a.$slots,"default")],2))}}),_hoisted_1$5$1={key:0},_hoisted_2$3={key:1},_sfc_main$c=defineComponent({__name:"BSkeletonTable",props:{animation:{default:"wave"},columns:{default:5},hideHeader:{type:Boolean,default:!1},rows:{default:3},showFooter:{type:Boolean,default:!1},tableProps:null},setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$d,normalizeProps(guardReactiveProps(t.tableProps)),{default:withCtx(()=>[t.hideHeader?createCommentVNode("",!0):(openBlock(),createElementBlock("thead",_hoisted_1$5$1,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.columns,(i,a)=>(openBlock(),createElementBlock("th",{key:a},[createVNode(_sfc_main$f)]))),128))])])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.rows,(i,a)=>(openBlock(),createElementBlock("tr",{key:a},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.columns,(o,s)=>(openBlock(),createElementBlock("td",{key:s},[createVNode(_sfc_main$f,{width:"75%"})]))),128))]))),128))]),t.showFooter?(openBlock(),createElementBlock("tfoot",_hoisted_2$3,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.columns,(i,a)=>(openBlock(),createElementBlock("th",{key:a},[createVNode(_sfc_main$f)]))),128))])])):createCommentVNode("",!0)]),_:1},16))}}),_sfc_main$b$1=defineComponent({__name:"BSkeletonWrapper",props:{loading:{type:Boolean,default:!1}},setup(t){return(r,n)=>t.loading?renderSlot(r.$slots,"loading",{key:0}):renderSlot(r.$slots,"default",{key:1})}}),_hoisted_1$4$1={key:0,class:"visually-hidden"},_sfc_main$a$1=defineComponent({__name:"BSpinner",props:{label:null,role:{default:"status"},small:{type:Boolean,default:!1},tag:{default:"span"},type:{default:"border"},variant:null},setup(t){const r=t,n=computed(()=>({"spinner-border":r.type==="border","spinner-border-sm":r.type==="border"&&r.small,"spinner-grow":r.type==="grow","spinner-grow-sm":r.type==="grow"&&r.small,[`text-${r.variant}`]:!!r.variant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(unref(n)),role:t.label||i.$slots.label?t.role:null,"aria-hidden":t.label||i.$slots.label?null:!0},{default:withCtx(()=>[t.label||i.$slots.label?(openBlock(),createElementBlock("span",_hoisted_1$4$1,[renderSlot(i.$slots,"label",{},()=>[createTextVNode(toDisplayString(t.label),1)])])):createCommentVNode("",!0)]),_:3},8,["class","role","aria-hidden"]))}}),_hoisted_1$3$1=["id","data-bs-target","aria-controls","aria-selected","onClick"],injectionKey=Symbol(),_sfc_main$9$1=defineComponent({__name:"BTabs",props:{activeNavItemClass:{default:void 0},activeTabClass:{default:void 0},align:{default:void 0},card:{type:Boolean,default:!1},contentClass:{default:void 0},end:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},id:{default:void 0},justified:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},navClass:{default:void 0},navWrapperClass:{default:void 0},noFade:{type:Boolean,default:!1},noNavStyle:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},small:{type:Boolean,default:!1},tag:{default:"div"},vertical:{type:Boolean,default:!1},modelValue:{default:-1}},emits:["update:modelValue","activate-tab","click"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(n.modelValue),o=ref(""),s=computed({get:()=>a.value,set:O=>{a.value=O,l.value.length>0&&O>=0&&O<l.value.length?o.value=l.value[O].buttonId:o.value="",r("update:modelValue",O)}}),l=computed(()=>{let O=[];return i.default&&(O=I(i).map((R,M)=>{R.props||(R.props={});const F=R.props["button-id"]||getID("tab"),V=R.props.id||getID(),G=s.value>-1?M===s.value:R.props.active==="",Y=R.props["title-item-class"],X=R.props["title-link-attributes"];return{buttonId:F,contentId:V,active:G,disabled:R.props.disabled===""||R.props.disabled===!0,navItemClasses:[{active:G,disabled:R.props.disabled===""||R.props.disabled===!0},G&&n.activeNavItemClass?n.activeNavItemClass:null,R.props["title-link-class"]],tabClasses:[{fade:!n.noFade},G&&n.activeTabClass?n.activeTabClass:null],target:`#${V}`,title:R.props.title,titleItemClass:Y,titleLinkAttributes:X,onClick:R.props.onClick,tab:R}})),O}),u=computed(()=>!((l==null?void 0:l.value)&&l.value.length>0)),c=computed(()=>({"d-flex align-items-start":n.vertical})),d=computed(()=>({"nav-pills":n.pills,"flex-column me-3":n.vertical,[`justify-content-${n.align}`]:!!n.align,"nav-fill":n.fill,"card-header-tabs":n.card,"nav-justified":n.justified,"nav-tabs":!n.noNavStyle&&!n.pills,small:n.small})),v=O=>{let R=!1;if(O!==void 0&&O>-1&&O<l.value.length&&!l.value[O].disabled&&(s.value<0||l.value[O].buttonId!==o.value)){const M=new BvEvent("activate-tab",{cancelable:!0,vueTarget:this});r("activate-tab",O,s.value,M),M.defaultPrevented||(s.value=O,R=!0)}return!R&&n.modelValue!==s.value&&r("update:modelValue",s.value),R},$=(O,R)=>{var M;v(R),R>=0&&!l.value[R].disabled&&((M=l.value[R])==null?void 0:M.onClick)&&isFunction$1(l.value[R].onClick)&&l.value[R].onClick(O)},I=O=>!O||!O.default?[]:O.default().reduce((R,M)=>(typeof M.type=="symbol"?R=R.concat(M.children):R.push(M),R),[]).filter(R=>{var M;return((M=R.type)==null?void 0:M.__name)==="BTab"});return v(a.value),watch(()=>n.modelValue,(O,R)=>{if(O===R)return;if(O=mathMax$6(O,-1),R=mathMax$6(R,-1),l.value.length<=0){s.value=-1;return}const M=O>R;let F=O;const V=l.value.length-1;for(;F>=0&&F<=V&&l.value[F].disabled;)F+=M?1:-1;if(F<0){v(0);return}if(F>=l.value.length){v(l.value.length-1);return}v(F)}),watch(()=>l.value,()=>{let O=l.value.map(R=>R.active&&!R.disabled).lastIndexOf(!0);O<0&&(s.value>=l.value.length?O=l.value.map(R=>!R.disabled).lastIndexOf(!0):l.value[s.value]&&!l.value[s.value].disabled&&(O=s.value)),O<0&&(O=l.value.map(R=>!R.disabled).indexOf(!0)),l.value.forEach((R,M)=>R.active=M===O),v(O)}),onMounted(()=>{if(s.value<0&&l.value.length>0&&!l.value.some(O=>O.active)){const O=l.value.map(R=>!R.disabled).indexOf(!0);v(O>=0?O:-1)}}),provide(injectionKey,{lazy:n.lazy,card:n.card}),(O,R)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["tabs",unref(c)])},{default:withCtx(()=>[t.end?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["tab-content",t.contentClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(l),({tab:M,contentId:F,tabClasses:V,active:G},Y)=>(openBlock(),createBlock(resolveDynamicComponent(M),{key:Y,id:F,class:normalizeClass(V),active:G},null,8,["id","class","active"]))),128)),unref(u)?(openBlock(),createElementBlock("div",{key:"bv-empty-tab",class:normalizeClass(["tab-pane active",{"card-body":t.card}])},[renderSlot(O.$slots,"empty")],2)):createCommentVNode("",!0)],2)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass([t.navWrapperClass,{"card-header":t.card,"ms-auto":t.vertical&&t.end}])},[createBaseVNode("ul",{class:normalizeClass(["nav",[unref(d),t.navClass]]),role:"tablist"},[renderSlot(O.$slots,"tabs-start"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(l),({tab:M,buttonId:F,contentId:V,navItemClasses:G,active:Y,target:X},q)=>(openBlock(),createElementBlock("li",{key:q,class:normalizeClass(["nav-item",M.props["title-item-class"]])},[createBaseVNode("button",mergeProps({id:F,class:["nav-link",G],"data-bs-toggle":"tab","data-bs-target":X,role:"tab","aria-controls":V,"aria-selected":Y},M.props["title-link-attributes"],{onClick:withModifiers(Z=>$(Z,q),["stop","prevent"])}),[M.children&&M.children.title?(openBlock(),createBlock(resolveDynamicComponent(M.children.title),{key:0})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(M.props.title),1)],64))],16,_hoisted_1$3$1)],2))),128)),renderSlot(O.$slots,"tabs-end")],2)],2),t.end?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["tab-content",t.contentClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(l),({tab:M,contentId:F,tabClasses:V,active:G},Y)=>(openBlock(),createBlock(resolveDynamicComponent(M),{key:Y,id:F,class:normalizeClass(V),active:G},null,8,["id","class","active"]))),128)),unref(u)?(openBlock(),createElementBlock("div",{key:"bv-empty-tab",class:normalizeClass(["tab-pane active",{"card-body":t.card}])},[renderSlot(O.$slots,"empty")],2)):createCommentVNode("",!0)],2))]),_:3},8,["id","class"]))}}),_sfc_main$8$1=defineComponent({__name:"BTab",props:{id:null,title:null,active:{type:Boolean,default:!1},buttonId:{default:void 0},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},noBody:{type:[Boolean,String],default:!1},tag:{default:"div"},titleItemClass:{default:void 0},titleLinkAttributes:{default:void 0},titleLinkClass:{default:void 0}},setup(t){const r=t,n=inject(injectionKey,null),i=computed(()=>(n==null?void 0:n.lazy)||r.lazy),a=computed(()=>r.active&&!r.disabled),o=computed(()=>a.value||!i.value),s=computed(()=>({active:r.active,show:r.active,"card-body":(n==null?void 0:n.card)&&r.noBody===!1}));return(l,u)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["tab-pane",unref(s)]),role:"tabpanel","aria-labelledby":"profile-tab"},{default:withCtx(()=>[unref(o)?renderSlot(l.$slots,"default",{key:0}):createCommentVNode("",!0)]),_:3},8,["id","class"]))}}),useItemHelper=()=>({normaliseFields:(r,n)=>{const i=[];return!(r!=null&&r.length)&&(n==null?void 0:n.length)?(Object.keys(n[0]).forEach(a=>i.push({key:a,label:startCase(a)})),i):(Array.isArray(r)&&r.forEach(a=>{typeof a=="string"?i.push({key:a,label:startCase(a)}):isObject$3(a)&&a.key&&isString$1(a.key)&&i.push({...a})}),i)}}),_hoisted_1$2$1=["title","abbr"],_hoisted_2$2$1={key:1},_hoisted_3$a={key:0},_hoisted_4$7=["title","abbr"],_hoisted_5={key:1},_hoisted_6={key:2},_hoisted_7=["title","abbr"],_hoisted_8={key:1},_hoisted_9={key:0},_hoisted_10=["title","abbr"],_hoisted_11={key:1},_hoisted_12={key:2},_sfc_main$7$1=defineComponent({__name:"BTable",props:{align:{type:String},caption:{type:String},captionTop:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},borderVariant:{type:String},dark:{type:Boolean,default:!1},fields:{type:Array,default:()=>[]},footClone:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},responsive:{type:[Boolean,String],default:!1},small:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},variant:{type:String}},setup(t){const r=t,n=computed(()=>["table",{[`align-${r.align}`]:r.align,[`table-${r.variant}`]:r.variant,"table-striped":r.striped,"table-hover":r.hover,"table-dark":r.dark,"table-bordered":r.bordered,[`border-${r.borderVariant}`]:r.borderVariant,"table-borderless":r.borderless,"table-sm":r.small,"caption-top":r.captionTop}]),i=useItemHelper(),a=computed(()=>i.normaliseFields(r.fields,r.items)),o=computed(()=>[{"table-responsive":typeof r.responsive=="boolean"&&r.responsive,[`table-responsive-${r.responsive}`]:typeof r.responsive=="string"}]);return(s,l)=>t.responsive?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(o))},[createBaseVNode("table",{class:normalizeClass(unref(n))},[createBaseVNode("thead",null,[s.$slots["thead-top"]?renderSlot(s.$slots,"thead-top",{key:0}):createCommentVNode("",!0),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key,scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle},u.thAttr),[s.$slots["head("+u.key+")"]?renderSlot(s.$slots,"head("+u.key+")",{key:0,label:u.label}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],16,_hoisted_1$2$1))),128))]),s.$slots["thead-sub"]?(openBlock(),createElementBlock("tr",_hoisted_2$2$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("td",{key:u.key,scope:"col",class:normalizeClass([u.class,u.thClass,u.variant?`table-${u.variant}`:""])},[s.$slots["thead-sub"]?renderSlot(s.$slots,"thead-sub",mergeProps({key:0,items:unref(a)},u)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],2))),128))])):createCommentVNode("",!0)]),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,u=>(openBlock(),createElementBlock("tr",{class:normalizeClass([u._rowVariant?`table-${u._rowVariant}`:null])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),(c,d)=>(openBlock(),createElementBlock("td",mergeProps({key:c.key},c.tdAttr,{class:[c.class,c.tdClass,c.variant?`table-${c.variant}`:"",(u==null?void 0:u._cellVariants)&&(u==null?void 0:u._cellVariants[c.key])?`table-${u==null?void 0:u._cellVariants[c.key]}`:""]}),[s.$slots["cell("+c.key+")"]?renderSlot(s.$slots,"cell("+c.key+")",{key:0,value:u[c.key],index:d,item:u,items:t.items}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u[c.key]),1)],64))],16))),128))],2))),256))]),t.footClone?(openBlock(),createElementBlock("tfoot",_hoisted_3$a,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key},u.thAttr,{scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle}),toDisplayString(u.label),17,_hoisted_4$7))),128))])])):createCommentVNode("",!0),s.$slots["table-caption"]?(openBlock(),createElementBlock("caption",_hoisted_5,[renderSlot(s.$slots,"table-caption")])):t.caption?(openBlock(),createElementBlock("caption",_hoisted_6,toDisplayString(t.caption),1)):createCommentVNode("",!0)],2)],2)):(openBlock(),createElementBlock("table",{key:1,class:normalizeClass(unref(n))},[createBaseVNode("thead",null,[s.$slots["thead-top"]?renderSlot(s.$slots,"thead-top",{key:0}):createCommentVNode("",!0),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key,scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle},u.thAttr),[s.$slots["head("+u.key+")"]?renderSlot(s.$slots,"head("+u.key+")",{key:0,label:u.label}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],16,_hoisted_7))),128))]),s.$slots["thead-sub"]?(openBlock(),createElementBlock("tr",_hoisted_8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("td",{key:u.key,scope:"col",class:normalizeClass([u.class,u.thClass,u.variant?`table-${u.variant}`:""])},[s.$slots["thead-sub"]?renderSlot(s.$slots,"thead-sub",mergeProps({key:0,items:unref(a)},u)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],2))),128))])):createCommentVNode("",!0)]),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,u=>(openBlock(),createElementBlock("tr",{class:normalizeClass([u._rowVariant?`table-${u._rowVariant}`:null])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),(c,d)=>(openBlock(),createElementBlock("td",mergeProps({key:c.key},c.tdAttr,{class:[c.class,c.tdClass,c.variant?`table-${c.variant}`:"",(u==null?void 0:u._cellVariants)&&(u==null?void 0:u._cellVariants[c.key])?`table-${u==null?void 0:u._cellVariants[c.key]}`:""]}),[s.$slots["cell("+c.key+")"]?renderSlot(s.$slots,"cell("+c.key+")",{key:0,value:u[c.key],index:d,item:u,items:t.items}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u[c.key]),1)],64))],16))),128))],2))),256))]),t.footClone?(openBlock(),createElementBlock("tfoot",_hoisted_9,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key},u.thAttr,{scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle}),toDisplayString(u.label),17,_hoisted_10))),128))])])):createCommentVNode("",!0),s.$slots["table-caption"]?(openBlock(),createElementBlock("caption",_hoisted_11,[renderSlot(s.$slots,"table-caption")])):t.caption?(openBlock(),createElementBlock("caption",_hoisted_12,toDisplayString(t.caption),1)):createCommentVNode("",!0)],2))}}),_sfc_main$6$1=defineComponent({__name:"BTbody",props:{headVariant:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({[`thead-${r.headVariant}`]:r.headVariant}));return(i,a)=>(openBlock(),createElementBlock("tbody",{role:"rowgroup",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),_hoisted_1$1$1=["scope","colspan","rowspan","data-label"],_hoisted_2$1$1={key:0},_sfc_main$5$1=defineComponent({__name:"BTd",props:{colspan:{type:[String,Number]},rowspan:{type:[String,Number]},stackedHeading:{type:String},stickyColumn:{type:Boolean,default:!1},variant:{type:String}},setup(t){const r=t,n=computed(()=>({[`table-${r.variant}`]:r.variant,"b-table-sticky-column":r.stickyColumn,"table-b-table-default":r.stickyColumn&&!r.variant})),i=computed(()=>r.colspan?"colspan":r.rowspan?"rowspan":"col");return(a,o)=>(openBlock(),createElementBlock("td",{role:"cell",scope:unref(i),class:normalizeClass(unref(n)),colspan:t.colspan,rowspan:t.rowspan,"data-label":t.stackedHeading},[t.stackedHeading?(openBlock(),createElementBlock("div",_hoisted_2$1$1,[renderSlot(a.$slots,"default")])):renderSlot(a.$slots,"default",{key:1})],10,_hoisted_1$1$1))}}),_sfc_main$4$1=defineComponent({__name:"BTfoot",props:{footVariant:null},setup(t){const r=t,n=computed(()=>({[`table-${r.footVariant}`]:r.footVariant}));return(i,a)=>(openBlock(),createElementBlock("tfoot",{role:"rowgroup",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),_hoisted_1$K=["scope","colspan","rowspan","data-label"],_hoisted_2$o={key:0},_sfc_main$3$1=defineComponent({__name:"BTh",props:{colspan:{type:[String,Number]},rowspan:{type:[String,Number]},stackedHeading:{type:String},stickyColumn:{type:Boolean,default:!1},variant:{type:String}},setup(t){const r=t,n=computed(()=>({[`table-${r.variant}`]:r.variant,"b-table-sticky-column":r.stickyColumn,"table-b-table-default":r.stickyColumn&&!r.variant})),i=computed(()=>r.colspan?"colspan":r.rowspan?"rowspan":"col");return(a,o)=>(openBlock(),createElementBlock("th",{role:"columnheader",scope:unref(i),class:normalizeClass(unref(n)),colspan:t.colspan,rowspan:t.rowspan,"data-label":t.stackedHeading},[t.stackedHeading?(openBlock(),createElementBlock("div",_hoisted_2$o,[renderSlot(a.$slots,"default")])):renderSlot(a.$slots,"default",{key:1})],10,_hoisted_1$K))}}),_sfc_main$2$1=defineComponent({__name:"BThead",props:{headVariant:null},setup(t){const r=t,n=computed(()=>({[`table-${r.headVariant}`]:r.headVariant}));return(i,a)=>(openBlock(),createElementBlock("thead",{role:"rowgroup",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),_sfc_main$1$1=defineComponent({__name:"BTr",props:{variant:null},setup(t){const r=t,n=computed(()=>({[`table-${r.variant}`]:r.variant}));return(i,a)=>(openBlock(),createElementBlock("tr",{role:"row",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),SLOT_NAME_TOAST_TITLE="toast-title",MIN_DURATION=1e3,_sfc_main$1q=defineComponent({name:"BToast",props:{...BLINK_PROPS,delay:{type:Number,default:5e3},bodyClass:{type:String},body:{type:[Object,String]},headerClass:{type:String},headerTag:{type:String,default:"div"},animation:{type:Boolean,default:!0},id:{type:String},isStatus:{type:Boolean,default:!1},autoHide:{type:Boolean,default:!0},noCloseButton:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},solid:{type:Boolean,default:!1},static:{type:Boolean,default:!1},title:{type:String},modelValue:{type:Boolean,default:!1},toastClass:{type:Array},variant:{type:String}},emits:["destroyed","update:modelValue"],setup(t,{emit:r,slots:n}){const i=ref(!1),a=ref(!1),o=ref(!1),s=computed(()=>({[`b-toast-${t.variant}`]:t.variant,show:o.value||i.value}));let l,u,c;const d=()=>{typeof l!="undefined"&&(clearTimeout(l),l=void 0)},v=computed(()=>Math.max(toInteger(t.delay,0),MIN_DURATION)),$=()=>{t.modelValue&&(u=c=0,d(),a.value=!0,requestAF(()=>{o.value=!1}))},I=()=>{d(),r("update:modelValue",!0),u=c=0,a.value=!1,nextTick(()=>{requestAF(()=>{o.value=!0})})},O=()=>{if(!t.autoHide||t.noHoverPause||!l||c)return;const q=Date.now()-u;q>0&&(d(),c=Math.max(v.value-q,MIN_DURATION))},R=()=>{(!t.autoHide||t.noHoverPause||!c)&&(c=u=0),M()};watch(()=>t.modelValue,q=>{q?I():$()});const M=()=>{d(),t.autoHide&&(l=setTimeout($,c||v.value),u=Date.now(),c=0)},F=()=>{i.value=!0,r("update:modelValue",!0)},V=()=>{i.value=!1,M()},G=()=>{i.value=!0},Y=()=>{i.value=!1,c=u=0,r("update:modelValue",!1)};onUnmounted(()=>{d(),t.autoHide&&r("destroyed",t.id)}),onMounted(()=>{nextTick(()=>{t.modelValue&&requestAF(()=>{I()})})});const X=()=>{nextTick(()=>{requestAF(()=>{$()})})};return()=>{const q=()=>{const Z=[],Q=normalizeSlot(SLOT_NAME_TOAST_TITLE,{hide:$},n);Q?Z.push(h(Q)):t.title&&Z.push(h("strong",{class:"me-auto"},t.title)),!t.noCloseButton&&Z.length!==0&&Z.push(h(_sfc_main$11,{class:["btn-close"],onClick:()=>{$()}}));const ie=[];if(Z.length>0&&ie.push(h(t.headerTag,{class:"toast-header"},{default:()=>Z})),normalizeSlot("default",{hide:$},n)||t.body){const J=h(isLink(t)?"b-link":"div",{class:["toast-body",t.bodyClass],onClick:isLink(t)?{click:X}:{}},normalizeSlot("default",{hide:$},n)||t.body);ie.push(J)}return h("div",{class:["toast",t.toastClass,s.value],tabindex:"0"},ie)};return h("div",{class:["b-toast"],id:t.id,role:a.value?null:t.isStatus?"status":"alert","aria-live":a.value?null:t.isStatus?"polite":"assertive","aria-atomic":a.value?null:"true",onmouseenter:O,onmouseleave:R},[h(_sfc_main$m,{noFade:t.noFade,onAfterEnter:V,onBeforeEnter:F,onAfterLeave:Y,onBeforeLeave:G},()=>[o.value?q():""])])}}});var Components={BAccordion:_sfc_main$1p,BAccordionItem:_sfc_main$1n,BAlert:_sfc_main$1m,BAvatar:_sfc_main$1k,BAvatarGroup:_sfc_main$1l,BBadge,BBreadcrumb:_sfc_main$1g,BBreadcrumbItem,BButton,BButtonGroup:_sfc_main$1e,BButtonToolbar:_sfc_main$1d,BCard:_sfc_main$1c,BCardBody:_sfc_main$19,BCardFooter:_sfc_main$18,BCardGroup:_sfc_main$17,BCardHeader:_sfc_main$16,BCardImg:_sfc_main$15,BCardSubTitle:_sfc_main$1a,BCardText,BCardTitle:_sfc_main$1b,BCarousel:_sfc_main$13,BCarouselSlide:_sfc_main$12,BCloseButton:_sfc_main$11,BCol,BCollapse:_sfc_main$1o,BContainer:_sfc_main$_,BDropdown:_sfc_main$Z,BDropdownDivider:_sfc_main$Y,BDropdownForm,BDropdownGroup:_sfc_main$W,BDropdownHeader,BDropdownItem:_sfc_main$U,BDropdownItemButton:_sfc_main$T,BDropdownText,BForm:_sfc_main$R,BFormCheckbox:_sfc_main$L,BFormCheckboxGroup:_sfc_main$K,BFormFloatingLabel:_sfc_main$Q,BFormGroup:_sfc_main$J,BFormInput,BFormInvalidFeedback:_sfc_main$P,BFormRadio:_sfc_main$H,BFormRadioGroup:_sfc_main$G,BFormRow:_sfc_main$O,BFormSelect:_sfc_main$D,BFormSelectOption:_sfc_main$F,BFormSelectOptionGroup:_sfc_main$E,BFormText:_sfc_main$N,BFormTextarea,BFormTag:_sfc_main$C,BFormTags:_sfc_main$B,BFormValidFeedback:_sfc_main$M,BImg:_sfc_main$z,BInputGroup:_sfc_main$y,BInputGroupAddon:_sfc_main$w,BInputGroupAppend:_sfc_main$v,BInputGroupPrepend:_sfc_main$u,BInputGroupText:_sfc_main$x,BLink,BListGroup:_sfc_main$t,BListGroupItem:_sfc_main$s,BModal:_sfc_main$r,BNav:_sfc_main$q,BNavItem:_sfc_main$p,BNavItemDropdown:_sfc_main$o,BOffcanvas:_sfc_main$n,BOverlay:_sfc_main$l,BPagination:_sfc_main$k,BPopover:_sfc_main$j,BProgress:_sfc_main$h,BProgressBar:_sfc_main$i,BRow,BSkeleton:_sfc_main$f,BSkeletonIcon:_sfc_main$e,BSkeletonTable:_sfc_main$c,BSkeletonWrapper:_sfc_main$b$1,BSpinner:_sfc_main$a$1,BTab:_sfc_main$8$1,BTable:_sfc_main$7$1,BTableSimple:_sfc_main$d,BTbody:_sfc_main$6$1,BTd:_sfc_main$5$1,BTfoot:_sfc_main$4$1,BTh:_sfc_main$3$1,BThead:_sfc_main$2$1,BTr:_sfc_main$1$1,BToast:_sfc_main$1q,BToaster:_sfc_main$$,BToastContainer:_sfc_main$$,BTabs:_sfc_main$9$1,BTransition:_sfc_main$m,BToastPlugin},BModal={mounted(t,r){let n=r.value;Object.keys(r.modifiers).length>0&&([n]=Object.keys(r.modifiers)),t.setAttribute("data-bs-toggle","modal"),t.setAttribute("data-bs-target",`#${n}`)}};const BPopover={mounted(t,r){let n="right";const i=[];r.modifiers.left?n="left":r.modifiers.right?n="right":r.modifiers.bottom?n="bottom":r.modifiers.top&&(n="top"),r.modifiers.manual?i.push("manual"):(r.modifiers.click&&i.push("click"),r.modifiers.hover&&i.push("hover"),r.modifiers.focus&&i.push("focus")),t.setAttribute("data-bs-toggle","popover"),new Popover(t,{trigger:i.length===0?"click":i.join(" "),placement:n,content:r.value})},unmounted(t){const r=Popover.getInstance(t);r==null||r.dispose()}};function resolveTrigger(t){if(t.manual)return"manual";const r=[];return t.click&&r.push("click"),t.hover&&r.push("hover"),t.focus&&r.push("focus"),r.length>0?r.join(" "):"hover focus"}function resolvePlacement(t){return t.left?"left":t.right?"right":t.bottom?"bottom":"top"}function resolveDelay(t){return t!=null&&t.delay?t.delay:0}const BTooltip={beforeMount(t,r){t.setAttribute("data-bs-toggle","tooltip");const n=/<("[^"]*"|'[^']*'|[^'">])*>/.test(t.title),i=resolveTrigger(r.modifiers),a=resolvePlacement(r.modifiers),o=resolveDelay(r.value),s=t.getAttribute("title");new Tooltip(t,{trigger:i,placement:a,delay:o,html:n}),s&&t.setAttribute("data-bs-original-title",s)},updated(t){const r=t.getAttribute("title"),n=t.getAttribute("data-bs-original-title"),i=Tooltip.getInstance(t);t.removeAttribute("title"),r&&r!==n&&(i==null||i.setContent({".tooltip-inner":r}),t.setAttribute("data-bs-original-title",r))},unmounted(t){const r=Tooltip.getInstance(t);r==null||r.dispose()}},observerInstances=new Map;function destroy(t){if(observerInstances.has(t)){const r=observerInstances.get(t);r&&r.stop&&r.stop(),observerInstances.delete(t)}}function bind$2(t,r){const n={margin:"0px",once:!1,callback:r.value};Object.keys(r.modifiers).forEach(a=>{Number.isInteger(a)?n.margin=`${a}px`:a.toLowerCase()==="once"&&(n.once=!0)}),destroy(t);const i=new VisibilityObserver(t,n.margin,n.once,n.callback,r.instance);observerInstances.set(t,i)}const BVisible={beforeMount(t,r){bind$2(t,r)},updated(t,r){bind$2(t,r)},unmounted(t){destroy(t)}};class VisibilityObserver{constructor(r,n,i,a,o){this.element=r,this.margin=n,this.once=i,this.callback=a,this.instance=o,this.createObserver()}createObserver(){if(this.observer&&this.stop(),!(this.doneOnce||typeof this.callback!="function")){try{this.observer=new IntersectionObserver(this.handler.bind(this),{root:null,rootMargin:this.margin,threshold:0})}catch{console.error("Intersection Observer not supported"),this.doneOnce=!0,this.observer=void 0,this.callback(null);return}this.instance.$nextTick(()=>{this.observer&&this.observer.observe(this.element)})}}handler(r){const[n]=r,i=Boolean(n.isIntersecting||n.intersectionRatio>0);i!==this.visible&&(this.visible=i,this.callback(i),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}stop(){this.observer&&this.observer.disconnect(),this.observer=null}}var focus={mounted(t,r){r.value!==!1&&t.focus()}},Directives={BModal,BPopover,BToggle,BTooltip,BVisible,focus};const plugin={install(t,r={}){Object.entries(Components).forEach(([n,i])=>{t.component(n,i)}),Object.entries(Directives).forEach(([n,i])=>{t.directive(n,i)}),createBreadcrumb(t)}},variables=reactive({}),progressbars=reactive({}),images=reactive({}),logs=reactive({}),lineCharts=reactive({});var ProgressBarRow_vue_vue_type_style_index_0_scoped_true_lang="",_export_sfc=(t,r)=>{const n=t.__vccOpts||t;for(const[i,a]of r)n[i]=a;return n};const _hoisted_1$7={scope:"row"},_sfc_main$b=defineComponent({__name:"ProgressBarRow",props:{k:{}},setup(t,{expose:r}){let n=ref(null),i=null,a=+new Date;const o=ref("warning"),s=t;let l=null;function u(){var R;return+new Date-a>1e4?"warning":((R=i==null?void 0:i.value)!=null?R:null)!==null?I.value>(l!=null?l:0)?"success":I.value<(l!=null?l:0)?"danger":"warning":"warning"}function c(){o.value=u(),setTimeout(c,1e4)}function d(){var O;i=n.value,n.value=progressbars[s.k],l=(O=i==null?void 0:i.value)!=null?O:0,a=+new Date}onMounted(()=>{d(),setTimeout(c,2e3)});const v=computed(()=>{var O;return(O=n.value)==null?void 0:O.total}),$=computed(()=>{var O,R;return(R=(O=n.value)==null?void 0:O.name)!=null?R:""}),I=computed(()=>{var O,R;return(R=(O=n.value)==null?void 0:O.value)!=null?R:0});return r({update:d}),(O,R)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("th",_hoisted_1$7,toDisplayString($.value),1),createBaseVNode("td",null,[createVNode(unref(_sfc_main$h),{striped:"",animated:"",style:{height:"30px"}},{default:withCtx(()=>[createVNode(unref(_sfc_main$i),{value:I.value,variant:o.value,max:v.value},{default:withCtx(()=>[createBaseVNode("span",null,[createBaseVNode("strong",null,toDisplayString(I.value)+" / "+toDisplayString(v.value),1)])]),_:1},8,["value","variant","max"])]),_:1})])],64))}});var ProgressBarRow=_export_sfc(_sfc_main$b,[["__scopeId","data-v-5ff3baf4"]]);const _hoisted_1$6=createBaseVNode("h6",{class:"display-6"},"ProgressBars",-1),_hoisted_2$2={class:"table table-striped table-hover"},_hoisted_3$2=createBaseVNode("thead",null,[createBaseVNode("tr",null,[createBaseVNode("th",{scope:"col",style:{width:"200px"}},"Name"),createBaseVNode("th",{scope:"col"})])],-1),_sfc_main$a=defineComponent({__name:"ProgressBarTable",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[_hoisted_1$6,createBaseVNode("table",_hoisted_2$2,[_hoisted_3$2,createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(progressbars)),o=>(openBlock(),createElementBlock("tr",{key:o,class:"table-secondary"},[createVNode(ProgressBarRow,{k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"])]))),128))])])],64))}}),_hoisted_1$5={scope:"row"},_sfc_main$9=defineComponent({__name:"VariableRow",props:{k:{}},setup(t,{expose:r}){const n=t,i=ref(""),a=ref("");let o=null;function s(){o=variables[n.k],i.value=o.name,a.value=o.value}return onMounted(()=>{s()}),r({update:s}),(l,u)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("th",_hoisted_1$5,toDisplayString(i.value),1),createBaseVNode("td",null,toDisplayString(a.value),1)],64))}}),_hoisted_1$4=createBaseVNode("h6",{class:"display-6"},"Variables",-1),_hoisted_2$1={class:"table table-striped table-hover"},_hoisted_3$1=createBaseVNode("thead",null,[createBaseVNode("tr",null,[createBaseVNode("th",{scope:"col",style:{width:"200px"}},"Name"),createBaseVNode("th",{scope:"col"},"Value")])],-1),_sfc_main$8=defineComponent({__name:"VariableTable",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[_hoisted_1$4,createBaseVNode("table",_hoisted_2$1,[_hoisted_3$1,createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(variables)),o=>(openBlock(),createElementBlock("tr",{key:o},[createVNode(_sfc_main$9,{k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"])]))),128))])])],64))}});var ImageCard_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$7=defineComponent({__name:"ImageCard",props:{k:{}},setup(t,{expose:r}){const n=t,i=ref("");function a(){i.value=images[n.k].value}return onMounted(()=>a()),r({update:a}),(o,s)=>(openBlock(),createBlock(unref(_sfc_main$1c),{"img-src":i.value,"img-alt":"NULL",class:"image-card m-1","img-top":""},{default:withCtx(()=>[createVNode(unref(_sfc_main$1b),null,{default:withCtx(()=>[createTextVNode(toDisplayString(o.k),1)]),_:1})]),_:1},8,["img-src"]))}});var ImageCard=_export_sfc(_sfc_main$7,[["__scopeId","data-v-53a10700"]]);const _hoisted_1$3=createBaseVNode("h6",{class:"display-6"},"Images",-1),_sfc_main$6=defineComponent({__name:"ImageSection",setup(__props,{expose:__expose}){const subs=new Map;__expose({subs});function imageGroups(){const groups=[{}];let index=0,group_ind=0;for(const[k,image]of Object.entries(images))index!==4?(groups[group_ind][k]=image,index++):(index=1,group_ind++,eval(`groups.push({${k}: image})`));return groups}return(t,r)=>(openBlock(),createElementBlock(Fragment,null,[_hoisted_1$3,createVNode(unref(_sfc_main$1c),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.entries(imageGroups()),([n,i])=>(openBlock(),createBlock(unref(_sfc_main$17),{key:n},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(i),a=>(openBlock(),createBlock(ImageCard,{key:a,k:a,ref_for:!0,ref:o=>unref(subs).set(a,o)},null,8,["k"]))),128))]),_:2},1024))),128))]),_:1})],64))}}),_sfc_main$5=defineComponent({__name:"LoggerCard",props:{k:{}},setup(t,{expose:r}){const n=t,i=ref(logs[n.k].value);function a(){i.value=logs[n.k].value}return r({update:a}),(o,s)=>(openBlock(),createBlock(unref(_sfc_main$1c),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$1c),{title:o.k},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.value,l=>(openBlock(),createBlock(unref(BCardText),{key:l},{default:withCtx(()=>[createTextVNode(toDisplayString(l),1)]),_:2},1024))),128))]),_:1},8,["title"])]),_:1}))}}),_hoisted_1$2=createBaseVNode("h6",{class:"display-6"},"Logs",-1),_sfc_main$4=defineComponent({__name:"LoggerSection",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[_hoisted_1$2,(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(logs)),o=>(openBlock(),createBlock(_sfc_main$5,{key:o,k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"]))),128))],64))}});/*! *****************************************************************************
109
- Copyright (c) Microsoft Corporation.
110
-
111
- Permission to use, copy, modify, and/or distribute this software for any
112
- purpose with or without fee is hereby granted.
113
-
114
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
115
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
116
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
117
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
118
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
119
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
120
- PERFORMANCE OF THIS SOFTWARE.
121
- ***************************************************************************** */var extendStatics=function(t,r){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},extendStatics(t,r)};function __extends(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");extendStatics(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Browser=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Env=function(){function t(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return t}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?env.worker=!0:typeof navigator=="undefined"||navigator.userAgent.indexOf("Node.js")===0?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(t,r){var n=r.browser,i=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),a&&(n.ie=!0,n.version=a[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),s&&(n.weChat=!0),r.svgSupported=typeof SVGRect!="undefined",r.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,r.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),r.domSupported=typeof document!="undefined";var l=document.documentElement.style;r.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),r.transformSupported=r.transform3dSupported||n.ie&&+n.version>=9}var env$1=env,DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(t){var r={};if(typeof JSON=="undefined")return r;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),a=(t.charCodeAt(n)-OFFSET)/SCALE;r[i]=a}return r}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var t,r;return function(n,i){if(!t){var a=platformApi.createCanvas();t=a&&a.getContext("2d")}if(t)return r!==i&&(r=t.font=i||DEFAULT_FONT),t.measureText(n);n=n||"",i=i||DEFAULT_FONT;var o=/(\d+)px/.exec(i),s=o&&+o[1]||DEFAULT_FONT_SIZE,l=0;if(i.indexOf("mono")>=0)l=s*n.length;else for(var u=0;u<n.length;u++){var c=DEFAULT_TEXT_WIDTH_MAP[n[u]];l+=c==null?s:c*s}return{width:l}}}(),loadImage:function(t,r,n){var i=new Image;return i.onload=r,i.onerror=n,i.src=t,i}},BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,r){return t["[object "+r+"]"]=!0,t},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,r){return t["[object "+r+"Array]"]=!0,t},{}),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 t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];typeof console!="undefined"&&console.error.apply(console,t)}function clone$2(t){if(t==null||typeof t!="object")return t;var r=t,n=objToString.call(t);if(n==="[object Array]"){if(!isPrimitive(t)){r=[];for(var i=0,a=t.length;i<a;i++)r[i]=clone$2(t[i])}}else if(TYPED_ARRAY[n]){if(!isPrimitive(t)){var o=t.constructor;if(o.from)r=o.from(t);else{r=new o(t.length);for(var i=0,a=t.length;i<a;i++)r[i]=t[i]}}}else if(!BUILTIN_OBJECT[n]&&!isPrimitive(t)&&!isDom(t)){r={};for(var s in t)t.hasOwnProperty(s)&&s!==protoKey&&(r[s]=clone$2(t[s]))}return r}function merge(t,r,n){if(!isObject$2(r)||!isObject$2(t))return n?clone$2(r):t;for(var i in r)if(r.hasOwnProperty(i)&&i!==protoKey){var a=t[i],o=r[i];isObject$2(o)&&isObject$2(a)&&!isArray(o)&&!isArray(a)&&!isDom(o)&&!isDom(a)&&!isBuiltInObject(o)&&!isBuiltInObject(a)&&!isPrimitive(o)&&!isPrimitive(a)?merge(a,o,n):(n||!(i in t))&&(t[i]=clone$2(r[i]))}return t}function extend(t,r){if(Object.assign)Object.assign(t,r);else for(var n in r)r.hasOwnProperty(n)&&n!==protoKey&&(t[n]=r[n]);return t}function defaults(t,r,n){for(var i=keys(r),a=0;a<i.length;a++){var o=i[a];(n?r[o]!=null:t[o]==null)&&(t[o]=r[o])}return t}function indexOf(t,r){if(t){if(t.indexOf)return t.indexOf(r);for(var n=0,i=t.length;n<i;n++)if(t[n]===r)return n}return-1}function inherits(t,r){var n=t.prototype;function i(){}i.prototype=r.prototype,t.prototype=new i;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=r}function mixin(t,r,n){if(t="prototype"in t?t.prototype:t,r="prototype"in r?r.prototype:r,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(r),a=0;a<i.length;a++){var o=i[a];o!=="constructor"&&(n?r[o]!=null:t[o]==null)&&(t[o]=r[o])}else defaults(t,r,n)}function isArrayLike(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function each$4(t,r,n){if(!!(t&&r))if(t.forEach&&t.forEach===nativeForEach)t.forEach(r,n);else if(t.length===+t.length)for(var i=0,a=t.length;i<a;i++)r.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&r.call(n,t[o],o,t)}function map$1(t,r,n){if(!t)return[];if(!r)return slice(t);if(t.map&&t.map===nativeMap)return t.map(r,n);for(var i=[],a=0,o=t.length;a<o;a++)i.push(r.call(n,t[a],a,t));return i}function reduce(t,r,n,i){if(!!(t&&r)){for(var a=0,o=t.length;a<o;a++)n=r.call(i,n,t[a],a,t);return n}}function filter(t,r,n){if(!t)return[];if(!r)return slice(t);if(t.filter&&t.filter===nativeFilter)return t.filter(r,n);for(var i=[],a=0,o=t.length;a<o;a++)r.call(n,t[a],a,t)&&i.push(t[a]);return i}function keys(t){if(!t)return[];if(Object.keys)return Object.keys(t);var r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(n);return r}function bindPolyfill(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(r,n.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return function(){return t.apply(this,r.concat(nativeSlice.call(arguments)))}}function isArray(t){return Array.isArray?Array.isArray(t):objToString.call(t)==="[object Array]"}function isFunction(t){return typeof t=="function"}function isString(t){return typeof t=="string"}function isStringSafe(t){return objToString.call(t)==="[object String]"}function isNumber(t){return typeof t=="number"}function isObject$2(t){var r=typeof t;return r==="function"||!!t&&r==="object"}function isBuiltInObject(t){return!!BUILTIN_OBJECT[objToString.call(t)]}function isTypedArray(t){return!!TYPED_ARRAY[objToString.call(t)]}function isDom(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function isGradientObject(t){return t.colorStops!=null}function isImagePatternObject(t){return t.image!=null}function eqNaN(t){return t!==t}function retrieve(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=t.length;n<i;n++)if(t[n]!=null)return t[n]}function retrieve2(t,r){return t!=null?t:r}function retrieve3(t,r,n){return t!=null?t:r!=null?r:n}function slice(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return nativeSlice.apply(t,r)}function normalizeCssArray$1(t){if(typeof t=="number")return[t,t,t,t];var r=t.length;return r===2?[t[0],t[1],t[0],t[1]]:r===3?[t[0],t[1],t[2],t[1]]:t}function assert(t,r){if(!t)throw new Error(r)}function trim(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive(t){t[primitiveKey]=!0}function isPrimitive(t){return t[primitiveKey]}var MapPolyfill=function(){function t(){this.data={}}return t.prototype.delete=function(r){var n=this.has(r);return n&&delete this.data[r],n},t.prototype.has=function(r){return this.data.hasOwnProperty(r)},t.prototype.get=function(r){return this.data[r]},t.prototype.set=function(r,n){return this.data[r]=n,this},t.prototype.keys=function(){return keys(this.data)},t.prototype.forEach=function(r){var n=this.data;for(var i in n)n.hasOwnProperty(i)&&r(n[i],i)},t}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function t(r){var n=isArray(r);this.data=maybeNativeMap();var i=this;r instanceof t?r.each(a):r&&each$4(r,a);function a(o,s){n?i.set(o,s):i.set(s,o)}}return t.prototype.hasKey=function(r){return this.data.has(r)},t.prototype.get=function(r){return this.data.get(r)},t.prototype.set=function(r,n){return this.data.set(r,n),n},t.prototype.each=function(r,n){this.data.forEach(function(i,a){r.call(n,i,a)})},t.prototype.keys=function(){var r=this.data.keys();return isNativeMapSupported?Array.from(r):r},t.prototype.removeKey=function(r){this.data.delete(r)},t}();function createHashMap(t){return new HashMap(t)}function concatArray(t,r){for(var n=new t.constructor(t.length+r.length),i=0;i<t.length;i++)n[i]=t[i];for(var a=t.length,i=0;i<r.length;i++)n[i+a]=r[i];return n}function createObject(t,r){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return r&&extend(n,r),n}function disableUserSelect(t){var r=t.style;r.webkitUserSelect="none",r.userSelect="none",r.webkitTapHighlightColor="rgba(0,0,0,0)",r["-webkit-touch-callout"]="none"}function hasOwn(t,r){return t.hasOwnProperty(r)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;function create$1(t,r){return t==null&&(t=0),r==null&&(r=0),[t,r]}function clone$1(t){return[t[0],t[1]]}function add(t,r,n){return t[0]=r[0]+n[0],t[1]=r[1]+n[1],t}function sub(t,r,n){return t[0]=r[0]-n[0],t[1]=r[1]-n[1],t}function len(t){return Math.sqrt(lenSquare(t))}function lenSquare(t){return t[0]*t[0]+t[1]*t[1]}function scale$2(t,r,n){return t[0]=r[0]*n,t[1]=r[1]*n,t}function normalize$1(t,r){var n=len(r);return n===0?(t[0]=0,t[1]=0):(t[0]=r[0]/n,t[1]=r[1]/n),t}function distance(t,r){return Math.sqrt((t[0]-r[0])*(t[0]-r[0])+(t[1]-r[1])*(t[1]-r[1]))}var dist$1=distance;function distanceSquare(t,r){return(t[0]-r[0])*(t[0]-r[0])+(t[1]-r[1])*(t[1]-r[1])}var distSquare=distanceSquare;function applyTransform$1(t,r,n){var i=r[0],a=r[1];return t[0]=n[0]*i+n[2]*a+n[4],t[1]=n[1]*i+n[3]*a+n[5],t}function min$1(t,r,n){return t[0]=Math.min(r[0],n[0]),t[1]=Math.min(r[1],n[1]),t}function max$1(t,r,n){return t[0]=Math.max(r[0],n[0]),t[1]=Math.max(r[1],n[1]),t}var Param=function(){function t(r,n){this.target=r,this.topTarget=n&&n.topTarget}return t}(),Draggable=function(){function t(r){this.handler=r,r.on("mousedown",this._dragStart,this),r.on("mousemove",this._drag,this),r.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(r){for(var n=r.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=r.offsetX,this._y=r.offsetY,this.handler.dispatchToElement(new Param(n,r),"dragstart",r.event))},t.prototype._drag=function(r){var n=this._draggingTarget;if(n){var i=r.offsetX,a=r.offsetY,o=i-this._x,s=a-this._y;this._x=i,this._y=a,n.drift(o,s,r),this.handler.dispatchToElement(new Param(n,r),"drag",r.event);var l=this.handler.findHover(i,a,n).target,u=this._dropTarget;this._dropTarget=l,n!==l&&(u&&l!==u&&this.handler.dispatchToElement(new Param(u,r),"dragleave",r.event),l&&l!==u&&this.handler.dispatchToElement(new Param(l,r),"dragenter",r.event))}},t.prototype._dragEnd=function(r){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Param(n,r),"dragend",r.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,r),"drop",r.event),this._draggingTarget=null,this._dropTarget=null},t}(),Draggable$1=Draggable,Eventful=function(){function t(r){r&&(this._$eventProcessor=r)}return t.prototype.on=function(r,n,i,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(a=i,i=n,n=null),!i||!r)return this;var s=this._$eventProcessor;n!=null&&s&&s.normalizeQuery&&(n=s.normalizeQuery(n)),o[r]||(o[r]=[]);for(var l=0;l<o[r].length;l++)if(o[r][l].h===i)return this;var u={h:i,query:n,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},c=o[r].length-1,d=o[r][c];return d&&d.callAtLast?o[r].splice(c,0,u):o[r].push(u),this},t.prototype.isSilent=function(r){var n=this._$handlers;return!n||!n[r]||!n[r].length},t.prototype.off=function(r,n){var i=this._$handlers;if(!i)return this;if(!r)return this._$handlers={},this;if(n){if(i[r]){for(var a=[],o=0,s=i[r].length;o<s;o++)i[r][o].h!==n&&a.push(i[r][o]);i[r]=a}i[r]&&i[r].length===0&&delete i[r]}else delete i[r];return this},t.prototype.trigger=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[r],o=this._$eventProcessor;if(a)for(var s=n.length,l=a.length,u=0;u<l;u++){var c=a[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(r,c.query)))switch(s){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(r),this},t.prototype.triggerWithContext=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[r],o=this._$eventProcessor;if(a)for(var s=n.length,l=n[s-1],u=a.length,c=0;c<u;c++){var d=a[c];if(!(o&&o.filter&&d.query!=null&&!o.filter(r,d.query)))switch(s){case 0:d.h.call(l);break;case 1:d.h.call(l,n[0]);break;case 2:d.h.call(l,n[0],n[1]);break;default:d.h.apply(l,n.slice(1,s-1));break}}return o&&o.afterTrigger&&o.afterTrigger(r),this},t}(),Eventful$1=Eventful,LN2=Math.log(2);function determinant(t,r,n,i,a,o){var s=i+"-"+a,l=t.length;if(o.hasOwnProperty(s))return o[s];if(r===1){var u=Math.round(Math.log((1<<l)-1&~a)/LN2);return t[n][u]}for(var c=i|1<<n,d=n+1;i&1<<d;)d++;for(var v=0,$=0,I=0;$<l;$++){var O=1<<$;O&a||(v+=(I%2?-1:1)*t[n][$]*determinant(t,r-1,d,c,a|O,o),I++)}return o[s]=v,v}function buildTransformer(t,r){var n=[[t[0],t[1],1,0,0,0,-r[0]*t[0],-r[0]*t[1]],[0,0,0,t[0],t[1],1,-r[1]*t[0],-r[1]*t[1]],[t[2],t[3],1,0,0,0,-r[2]*t[2],-r[2]*t[3]],[0,0,0,t[2],t[3],1,-r[3]*t[2],-r[3]*t[3]],[t[4],t[5],1,0,0,0,-r[4]*t[4],-r[4]*t[5]],[0,0,0,t[4],t[5],1,-r[5]*t[4],-r[5]*t[5]],[t[6],t[7],1,0,0,0,-r[6]*t[6],-r[6]*t[7]],[0,0,0,t[6],t[7],1,-r[7]*t[6],-r[7]*t[7]]],i={},a=determinant(n,8,0,0,0,i);if(a!==0){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)o[l]==null&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*determinant(n,7,s===0?1:0,1<<s,1<<l,i)/a*r[s];return function(u,c,d){var v=c*o[6]+d*o[7]+1;u[0]=(c*o[0]+d*o[1]+o[2])/v,u[1]=(c*o[3]+d*o[4]+o[5])/v}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord(t,r,n,i,a){return transformCoordWithViewport(_calcOut$1,r,i,a,!0)&&transformCoordWithViewport(t,n,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport(t,r,n,i,a){if(r.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(r)){var o=r[EVENT_SAVED_PROP]||(r[EVENT_SAVED_PROP]={}),s=prepareCoordMarkers(r,o),l=preparePointerTransformer(s,o,a);if(l)return l(t,n,i),!0}return!1}function prepareCoordMarkers(t,r){var n=r.markers;if(n)return n;n=r.markers=[];for(var i=["left","right"],a=["top","bottom"],o=0;o<4;o++){var s=document.createElement("div"),l=s.style,u=o%2,c=(o>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",a[c]+":0",i[1-u]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(s),n.push(s)}return n}function preparePointerTransformer(t,r,n){for(var i=n?"invTrans":"trans",a=r[i],o=r.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var d=t[c].getBoundingClientRect(),v=2*c,$=d.left,I=d.top;s.push($,I),u=u&&o&&$===o[v]&&I===o[v+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&a?a:(r.srcCoords=s,r[i]=n?buildTransformer(l,s):buildTransformer(s,l))}function isCanvasEl(t){return t.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function encodeHTML(t){return t==null?"":(t+"").replace(replaceReg,function(r,n){return replaceMap[n]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(t,r,n,i){return n=n||{},i?calculateZrXY(t,r,n):firefoxNotSupportOffsetXY&&r.layerX!=null&&r.layerX!==r.offsetX?(n.zrX=r.layerX,n.zrY=r.layerY):r.offsetX!=null?(n.zrX=r.offsetX,n.zrY=r.offsetY):calculateZrXY(t,r,n),n}function calculateZrXY(t,r,n){if(env$1.domSupported&&t.getBoundingClientRect){var i=r.clientX,a=r.clientY;if(isCanvasEl(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=a-o.top;return}else if(transformCoordWithViewport(_calcOut,t,i,a)){n.zrX=_calcOut[0],n.zrY=_calcOut[1];return}}n.zrX=n.zrY=0}function getNativeEvent(t){return t||window.event}function normalizeEvent(t,r,n){if(r=getNativeEvent(r),r.zrX!=null)return r;var i=r.type,a=i&&i.indexOf("touch")>=0;if(a){var s=i!=="touchend"?r.targetTouches[0]:r.changedTouches[0];s&&clientToLocal(t,s,r,n)}else{clientToLocal(t,r,r,n);var o=getWheelDeltaMayPolyfill(r);r.zrDelta=o?o/120:-(r.detail||0)/3}var l=r.button;return r.which==null&&l!==void 0&&MOUSE_EVENT_REG.test(r.type)&&(r.which=l&1?1:l&2?3:l&4?2:0),r}function getWheelDeltaMayPolyfill(t){var r=t.wheelDelta;if(r)return r;var n=t.deltaX,i=t.deltaY;if(n==null||i==null)return r;var a=Math.abs(i!==0?i:n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*a*o}function addEventListener(t,r,n,i){t.addEventListener(r,n,i)}function removeEventListener(t,r,n,i){t.removeEventListener(r,n,i)}var stop=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},GestureMgr=function(){function t(){this._track=[]}return t.prototype.recognize=function(r,n,i){return this._doTrack(r,n,i),this._recognize(r)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(r,n,i){var a=r.touches;if(!!a){for(var o={points:[],touches:[],target:n,event:r},s=0,l=a.length;s<l;s++){var u=a[s],c=clientToLocal(i,u,{});o.points.push([c.zrX,c.zrY]),o.touches.push(u)}this._track.push(o)}},t.prototype._recognize=function(r){for(var n in recognizers)if(recognizers.hasOwnProperty(n)){var i=recognizers[n](this._track,r);if(i)return i}},t}();function dist(t){var r=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(r*r+n*n)}function center(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var recognizers={pinch:function(t,r){var n=t.length;if(!!n){var i=(t[n-1]||{}).points,a=(t[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=dist(i)/dist(a);!isFinite(o)&&(o=1),r.pinchScale=o;var s=center(i);return r.pinchX=s[0],r.pinchY=s[1],{type:"pinch",target:t[0].target,event:r}}}}};function create(){return[1,0,0,1,0,0]}function identity(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function copy(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t}function mul(t,r,n){var i=r[0]*n[0]+r[2]*n[1],a=r[1]*n[0]+r[3]*n[1],o=r[0]*n[2]+r[2]*n[3],s=r[1]*n[2]+r[3]*n[3],l=r[0]*n[4]+r[2]*n[5]+r[4],u=r[1]*n[4]+r[3]*n[5]+r[5];return t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=l,t[5]=u,t}function translate(t,r,n){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4]+n[0],t[5]=r[5]+n[1],t}function rotate(t,r,n,i){i===void 0&&(i=[0,0]);var a=r[0],o=r[2],s=r[4],l=r[1],u=r[3],c=r[5],d=Math.sin(n),v=Math.cos(n);return t[0]=a*v+l*d,t[1]=-a*d+l*v,t[2]=o*v+u*d,t[3]=-o*d+v*u,t[4]=v*(s-i[0])+d*(c-i[1])+i[0],t[5]=v*(c-i[1])-d*(s-i[0])+i[1],t}function scale$1(t,r,n){var i=n[0],a=n[1];return t[0]=r[0]*i,t[1]=r[1]*a,t[2]=r[2]*i,t[3]=r[3]*a,t[4]=r[4]*i,t[5]=r[5]*a,t}function invert(t,r){var n=r[0],i=r[2],a=r[4],o=r[1],s=r[3],l=r[5],u=n*s-o*i;return u?(u=1/u,t[0]=s*u,t[1]=-o*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*l-s*a)*u,t[5]=(o*a-n*l)*u,t):null}var Point=function(){function t(r,n){this.x=r||0,this.y=n||0}return t.prototype.copy=function(r){return this.x=r.x,this.y=r.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(r,n){return this.x=r,this.y=n,this},t.prototype.equal=function(r){return r.x===this.x&&r.y===this.y},t.prototype.add=function(r){return this.x+=r.x,this.y+=r.y,this},t.prototype.scale=function(r){this.x*=r,this.y*=r},t.prototype.scaleAndAdd=function(r,n){this.x+=r.x*n,this.y+=r.y*n},t.prototype.sub=function(r){return this.x-=r.x,this.y-=r.y,this},t.prototype.dot=function(r){return this.x*r.x+this.y*r.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var r=this.len();return this.x/=r,this.y/=r,this},t.prototype.distance=function(r){var n=this.x-r.x,i=this.y-r.y;return Math.sqrt(n*n+i*i)},t.prototype.distanceSquare=function(r){var n=this.x-r.x,i=this.y-r.y;return n*n+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(r){if(!!r){var n=this.x,i=this.y;return this.x=r[0]*n+r[2]*i+r[4],this.y=r[1]*n+r[3]*i+r[5],this}},t.prototype.toArray=function(r){return r[0]=this.x,r[1]=this.y,r},t.prototype.fromArray=function(r){this.x=r[0],this.y=r[1]},t.set=function(r,n,i){r.x=n,r.y=i},t.copy=function(r,n){r.x=n.x,r.y=n.y},t.len=function(r){return Math.sqrt(r.x*r.x+r.y*r.y)},t.lenSquare=function(r){return r.x*r.x+r.y*r.y},t.dot=function(r,n){return r.x*n.x+r.y*n.y},t.add=function(r,n,i){r.x=n.x+i.x,r.y=n.y+i.y},t.sub=function(r,n,i){r.x=n.x-i.x,r.y=n.y-i.y},t.scale=function(r,n,i){r.x=n.x*i,r.y=n.y*i},t.scaleAndAdd=function(r,n,i,a){r.x=n.x+i.x*a,r.y=n.y+i.y*a},t.lerp=function(r,n,i,a){var o=1-a;r.x=o*n.x+a*i.x,r.y=o*n.y+a*i.y},t}(),Point$1=Point,mathMin$5=Math.min,mathMax$5=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function t(r,n,i,a){i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),this.x=r,this.y=n,this.width=i,this.height=a}return t.prototype.union=function(r){var n=mathMin$5(r.x,this.x),i=mathMin$5(r.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$5(r.x+r.width,this.x+this.width)-n:this.width=r.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$5(r.y+r.height,this.y+this.height)-i:this.height=r.height,this.x=n,this.y=i},t.prototype.applyTransform=function(r){t.applyTransform(this,this,r)},t.prototype.calculateTransform=function(r){var n=this,i=r.width/n.width,a=r.height/n.height,o=create();return translate(o,o,[-n.x,-n.y]),scale$1(o,o,[i,a]),translate(o,o,[r.x,r.y]),o},t.prototype.intersect=function(r,n){if(!r)return!1;r instanceof t||(r=t.create(r));var i=this,a=i.x,o=i.x+i.width,s=i.y,l=i.y+i.height,u=r.x,c=r.x+r.width,d=r.y,v=r.y+r.height,$=!(o<u||c<a||l<d||v<s);if(n){var I=1/0,O=0,R=Math.abs(o-u),M=Math.abs(c-a),F=Math.abs(l-d),V=Math.abs(v-s),G=Math.min(R,M),Y=Math.min(F,V);o<u||c<a?G>O&&(O=G,R<M?Point$1.set(maxTv$1,-R,0):Point$1.set(maxTv$1,M,0)):G<I&&(I=G,R<M?Point$1.set(minTv$1,R,0):Point$1.set(minTv$1,-M,0)),l<d||v<s?Y>O&&(O=Y,F<V?Point$1.set(maxTv$1,0,-F):Point$1.set(maxTv$1,0,V)):G<I&&(I=G,F<V?Point$1.set(minTv$1,0,F):Point$1.set(minTv$1,0,-V))}return n&&Point$1.copy(n,$?minTv$1:maxTv$1),$},t.prototype.contain=function(r,n){var i=this;return r>=i.x&&r<=i.x+i.width&&n>=i.y&&n<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(r){t.copy(this,r)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(r){return new t(r.x,r.y,r.width,r.height)},t.copy=function(r,n){r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height},t.applyTransform=function(r,n,i){if(!i){r!==n&&t.copy(r,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],o=i[3],s=i[4],l=i[5];r.x=n.x*a+s,r.y=n.y*o+l,r.width=n.width*a,r.height=n.height*o,r.width<0&&(r.x+=r.width,r.width=-r.width),r.height<0&&(r.y+=r.height,r.height=-r.height);return}lt.x=lb.x=n.x,lt.y=rt.y=n.y,rb.x=rt.x=n.x+n.width,rb.y=lb.y=n.y+n.height,lt.transform(i),rt.transform(i),rb.transform(i),lb.transform(i),r.x=mathMin$5(lt.x,rb.x,lb.x,rt.x),r.y=mathMin$5(lt.y,rb.y,lb.y,rt.y);var u=mathMax$5(lt.x,rb.x,lb.x,rt.x),c=mathMax$5(lt.y,rb.y,lb.y,rt.y);r.width=u-r.x,r.height=c-r.y},t}(),BoundingRect$1=BoundingRect,SILENT="silent";function makeEventPacket(t,r,n){return{type:t,event:n,target:r.target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return r.prototype.dispose=function(){},r.prototype.setCursor=function(){},r}(Eventful$1),HoveredResult=function(){function t(r,n){this.x=r,this.y=n}return t}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(t){__extends(r,t);function r(n,i,a,o,s){var l=t.call(this)||this;return l._hovered=new HoveredResult(0,0),l.storage=n,l.painter=i,l.painterRoot=o,l._pointerSize=s,a=a||new EmptyProxy,l.proxy=null,l.setHandlerProxy(a),l._draggingMgr=new Draggable$1(l),l}return r.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(each$4(handlerNames,function(i){n.on&&n.on(i,this[i],this)},this),n.handler=this),this.proxy=n},r.prototype.mousemove=function(n){var i=n.zrX,a=n.zrY,o=isOutsideBoundary(this,i,a),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var u=this._hovered=o?new HoveredResult(i,a):this.findHover(i,a),c=u.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),l&&c!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(u,"mousemove",n),c&&c!==l&&this.dispatchToElement(u,"mouseover",n)},r.prototype.mouseout=function(n){var i=n.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},r.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},r.prototype.dispatch=function(n,i){var a=this[n];a&&a.call(this,i)},r.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},r.prototype.setCursorStyle=function(n){var i=this.proxy;i.setCursor&&i.setCursor(n)},r.prototype.dispatchToElement=function(n,i,a){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var s="on"+i,l=makeEventPacket(i,n,a);o&&(o[s]&&(l.cancelBubble=!!o[s].call(o,l)),o.trigger(i,l),o=o.__hostTarget?o.__hostTarget:o.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(i,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[s]=="function"&&u[s].call(u,l),u.trigger&&u.trigger(i,l)}))}},r.prototype.findHover=function(n,i,a){var o=this.storage.getDisplayList(),s=new HoveredResult(n,i);if(setHoverTarget(o,s,n,i,a),this._pointerSize&&!s.target){for(var l=[],u=this._pointerSize,c=u/2,d=new BoundingRect$1(n-c,i-c,u,u),v=o.length-1;v>=0;v--){var $=o[v];$!==a&&!$.ignore&&!$.ignoreCoarsePointer&&(!$.parent||!$.parent.ignoreCoarsePointer)&&(tmpRect$1.copy($.getBoundingRect()),$.transform&&tmpRect$1.applyTransform($.transform),tmpRect$1.intersect(d)&&l.push($))}if(l.length)for(var I=4,O=Math.PI/12,R=Math.PI*2,M=0;M<c;M+=I)for(var F=0;F<R;F+=O){var V=n+M*Math.cos(F),G=i+M*Math.sin(F);if(setHoverTarget(l,s,V,G,a),s.target)return s}}return s},r.prototype.processGesture=function(n,i){this._gestureMgr||(this._gestureMgr=new GestureMgr);var a=this._gestureMgr;i==="start"&&a.clear();var o=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),o){var s=o.type;n.gestureEvent=s;var l=new HoveredResult;l.target=o.target,this.dispatchToElement(l,s,o.event)}},r}(Eventful$1);each$4(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Handler.prototype[t]=function(r){var n=r.zrX,i=r.zrY,a=isOutsideBoundary(this,n,i),o,s;if((t!=="mouseup"||!a)&&(o=this.findHover(n,i),s=o.target),t==="mousedown")this._downEl=s,this._downPoint=[r.zrX,r.zrY],this._upEl=s;else if(t==="mouseup")this._upEl=s;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[r.zrX,r.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,t,r)}});function isHover(t,r,n){if(t[t.rectHover?"rectContain":"contain"](r,n)){for(var i=t,a=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var s=i.getClipPath();if(s&&!s.contain(r,n))return!1}i.silent&&(a=!0);var l=i.__hostTarget;i=l||i.parent}return a?SILENT:!0}return!1}function setHoverTarget(t,r,n,i,a){for(var o=t.length-1;o>=0;o--){var s=t[o],l=void 0;if(s!==a&&!s.ignore&&(l=isHover(s,n,i))&&(!r.topTarget&&(r.topTarget=s),l!==SILENT)){r.target=s;break}}}function isOutsideBoundary(t,r,n){var i=t.painter;return r<0||r>i.getWidth()||n<0||n>i.getHeight()}var Handler$1=Handler,DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(t){for(var r=0;t>=DEFAULT_MIN_MERGE;)r|=t&1,t>>=1;return t+r}function makeAscendingRun(t,r,n,i){var a=r+1;if(a===n)return 1;if(i(t[a++],t[r])<0){for(;a<n&&i(t[a],t[a-1])<0;)a++;reverseRun(t,r,a)}else for(;a<n&&i(t[a],t[a-1])>=0;)a++;return a-r}function reverseRun(t,r,n){for(n--;r<n;){var i=t[r];t[r++]=t[n],t[n--]=i}}function binaryInsertionSort(t,r,n,i,a){for(i===r&&i++;i<n;i++){for(var o=t[i],s=r,l=i,u;s<l;)u=s+l>>>1,a(o,t[u])<0?l=u:s=u+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=o}}function gallopLeft(t,r,n,i,a,o){var s=0,l=0,u=1;if(o(t,r[n+a])>0){for(l=i-a;u<l&&o(t,r[n+a+u])>0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l),s+=a,u+=a}else{for(l=a+1;u<l&&o(t,r[n+a-u])<=0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l);var c=s;s=a-u,u=a-c}for(s++;s<u;){var d=s+(u-s>>>1);o(t,r[n+d])>0?s=d+1:u=d}return u}function gallopRight(t,r,n,i,a,o){var s=0,l=0,u=1;if(o(t,r[n+a])<0){for(l=a+1;u<l&&o(t,r[n+a-u])<0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l);var c=s;s=a-u,u=a-c}else{for(l=i-a;u<l&&o(t,r[n+a+u])>=0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l),s+=a,u+=a}for(s++;s<u;){var d=s+(u-s>>>1);o(t,r[n+d])<0?u=d:s=d+1}return u}function TimSort(t,r){var n=DEFAULT_MIN_GALLOPING,i,a,o=0,s=[];i=[],a=[];function l(I,O){i[o]=I,a[o]=O,o+=1}function u(){for(;o>1;){var I=o-2;if(I>=1&&a[I-1]<=a[I]+a[I+1]||I>=2&&a[I-2]<=a[I]+a[I-1])a[I-1]<a[I+1]&&I--;else if(a[I]>a[I+1])break;d(I)}}function c(){for(;o>1;){var I=o-2;I>0&&a[I-1]<a[I+1]&&I--,d(I)}}function d(I){var O=i[I],R=a[I],M=i[I+1],F=a[I+1];a[I]=R+F,I===o-3&&(i[I+1]=i[I+2],a[I+1]=a[I+2]),o--;var V=gallopRight(t[M],t,O,R,0,r);O+=V,R-=V,R!==0&&(F=gallopLeft(t[O+R-1],t,M,F,F-1,r),F!==0&&(R<=F?v(O,R,M,F):$(O,R,M,F)))}function v(I,O,R,M){var F=0;for(F=0;F<O;F++)s[F]=t[I+F];var V=0,G=R,Y=I;if(t[Y++]=t[G++],--M===0){for(F=0;F<O;F++)t[Y+F]=s[V+F];return}if(O===1){for(F=0;F<M;F++)t[Y+F]=t[G+F];t[Y+M]=s[V];return}for(var X=n,q,Z,Q;;){q=0,Z=0,Q=!1;do if(r(t[G],s[V])<0){if(t[Y++]=t[G++],Z++,q=0,--M===0){Q=!0;break}}else if(t[Y++]=s[V++],q++,Z=0,--O===1){Q=!0;break}while((q|Z)<X);if(Q)break;do{if(q=gallopRight(t[G],s,V,O,0,r),q!==0){for(F=0;F<q;F++)t[Y+F]=s[V+F];if(Y+=q,V+=q,O-=q,O<=1){Q=!0;break}}if(t[Y++]=t[G++],--M===0){Q=!0;break}if(Z=gallopLeft(s[V],t,G,M,0,r),Z!==0){for(F=0;F<Z;F++)t[Y+F]=t[G+F];if(Y+=Z,G+=Z,M-=Z,M===0){Q=!0;break}}if(t[Y++]=s[V++],--O===1){Q=!0;break}X--}while(q>=DEFAULT_MIN_GALLOPING||Z>=DEFAULT_MIN_GALLOPING);if(Q)break;X<0&&(X=0),X+=2}if(n=X,n<1&&(n=1),O===1){for(F=0;F<M;F++)t[Y+F]=t[G+F];t[Y+M]=s[V]}else{if(O===0)throw new Error;for(F=0;F<O;F++)t[Y+F]=s[V+F]}}function $(I,O,R,M){var F=0;for(F=0;F<M;F++)s[F]=t[R+F];var V=I+O-1,G=M-1,Y=R+M-1,X=0,q=0;if(t[Y--]=t[V--],--O===0){for(X=Y-(M-1),F=0;F<M;F++)t[X+F]=s[F];return}if(M===1){for(Y-=O,V-=O,q=Y+1,X=V+1,F=O-1;F>=0;F--)t[q+F]=t[X+F];t[Y]=s[G];return}for(var Z=n;;){var Q=0,ie=0,J=!1;do if(r(s[G],t[V])<0){if(t[Y--]=t[V--],Q++,ie=0,--O===0){J=!0;break}}else if(t[Y--]=s[G--],ie++,Q=0,--M===1){J=!0;break}while((Q|ie)<Z);if(J)break;do{if(Q=O-gallopRight(s[G],t,I,O,O-1,r),Q!==0){for(Y-=Q,V-=Q,O-=Q,q=Y+1,X=V+1,F=Q-1;F>=0;F--)t[q+F]=t[X+F];if(O===0){J=!0;break}}if(t[Y--]=s[G--],--M===1){J=!0;break}if(ie=M-gallopLeft(t[V],s,0,M,M-1,r),ie!==0){for(Y-=ie,G-=ie,M-=ie,q=Y+1,X=G+1,F=0;F<ie;F++)t[q+F]=s[X+F];if(M<=1){J=!0;break}}if(t[Y--]=t[V--],--O===0){J=!0;break}Z--}while(Q>=DEFAULT_MIN_GALLOPING||ie>=DEFAULT_MIN_GALLOPING);if(J)break;Z<0&&(Z=0),Z+=2}if(n=Z,n<1&&(n=1),M===1){for(Y-=O,V-=O,q=Y+1,X=V+1,F=O-1;F>=0;F--)t[q+F]=t[X+F];t[Y]=s[G]}else{if(M===0)throw new Error;for(X=Y-(M-1),F=0;F<M;F++)t[X+F]=s[F]}}return{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function sort(t,r,n,i){n||(n=0),i||(i=t.length);var a=i-n;if(!(a<2)){var o=0;if(a<DEFAULT_MIN_MERGE){o=makeAscendingRun(t,n,i,r),binaryInsertionSort(t,n,i,n+o,r);return}var s=TimSort(t,r),l=minRunLength(a);do{if(o=makeAscendingRun(t,n,i,r),o<l){var u=a;u>l&&(u=l),binaryInsertionSort(t,n,n+u,n+o,r),o=u}s.pushRun(n,o),s.mergeRuns(),a-=o,n+=o}while(a!==0);s.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(t,r){return t.zlevel===r.zlevel?t.z===r.z?t.z2-r.z2:t.z-r.z:t.zlevel-r.zlevel}var Storage=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return t.prototype.traverse=function(r,n){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(r,n)},t.prototype.getDisplayList=function(r,n){n=n||!1;var i=this._displayList;return(r||!i.length)&&this.updateDisplayList(n),i},t.prototype.updateDisplayList=function(r){this._displayListLen=0;for(var n=this._roots,i=this._displayList,a=0,o=n.length;a<o;a++)this._updateAndAddDisplayable(n[a],null,r);i.length=this._displayListLen,sort(i,shapeCompareFunc)},t.prototype._updateAndAddDisplayable=function(r,n,i){if(!(r.ignore&&!i)){r.beforeUpdate(),r.update(),r.afterUpdate();var a=r.getClipPath();if(r.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var o=a,s=r;o;)o.parent=s,o.updateTransform(),n.push(o),s=o,o=o.getClipPath()}if(r.childrenRef){for(var l=r.childrenRef(),u=0;u<l.length;u++){var c=l[u];r.__dirty&&(c.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(c,n,i)}r.__dirty=0}else{var d=r;n&&n.length?d.__clipPaths=n:d.__clipPaths&&d.__clipPaths.length>0&&(d.__clipPaths=[]),isNaN(d.z)&&(logInvalidZError(),d.z=0),isNaN(d.z2)&&(logInvalidZError(),d.z2=0),isNaN(d.zlevel)&&(logInvalidZError(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=r.getDecalElement&&r.getDecalElement();v&&this._updateAndAddDisplayable(v,n,i);var $=r.getTextGuideLine();$&&this._updateAndAddDisplayable($,n,i);var I=r.getTextContent();I&&this._updateAndAddDisplayable(I,n,i)}},t.prototype.addRoot=function(r){r.__zr&&r.__zr.storage===this||this._roots.push(r)},t.prototype.delRoot=function(r){if(r instanceof Array){for(var n=0,i=r.length;n<i;n++)this.delRoot(r[n]);return}var a=indexOf(this._roots,r);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Storage$1=Storage,requestAnimationFrame$2;requestAnimationFrame$2=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var requestAnimationFrame$3=requestAnimationFrame$2,easingFuncs={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var r,n=.1,i=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=i/4):r=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/i)))},elasticOut:function(t){var r,n=.1,i=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=i/4):r=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-r)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var r,n=.1,i=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=i/4):r=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var r=1.70158;return t*t*((r+1)*t-r)},backOut:function(t){var r=1.70158;return--t*t*((r+1)*t+r)+1},backInOut:function(t){var r=2.5949095;return(t*=2)<1?.5*(t*t*((r+1)*t-r)):.5*((t-=2)*t*((r+1)*t+r)+2)},bounceIn:function(t){return 1-easingFuncs.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?easingFuncs.bounceIn(t*2)*.5:easingFuncs.bounceOut(t*2-1)*.5+.5}},easingFuncs$1=easingFuncs,mathPow$1=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$2=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(t){return t>-EPSILON$2&&t<EPSILON$2}function isNotAroundZero$1(t){return t>EPSILON$2||t<-EPSILON$2}function cubicAt(t,r,n,i,a){var o=1-a;return o*o*(o*t+3*a*r)+a*a*(a*i+3*o*n)}function cubicDerivativeAt(t,r,n,i,a){var o=1-a;return 3*(((r-t)*o+2*(n-r)*a)*o+(i-n)*a*a)}function cubicRootAt(t,r,n,i,a,o){var s=i+3*(r-n)-t,l=3*(n-r*2+t),u=3*(r-t),c=t-a,d=l*l-3*s*u,v=l*u-9*s*c,$=u*u-3*l*c,I=0;if(isAroundZero(d)&&isAroundZero(v))if(isAroundZero(l))o[0]=0;else{var O=-u/l;O>=0&&O<=1&&(o[I++]=O)}else{var R=v*v-4*d*$;if(isAroundZero(R)){var M=v/d,O=-l/s+M,F=-M/2;O>=0&&O<=1&&(o[I++]=O),F>=0&&F<=1&&(o[I++]=F)}else if(R>0){var V=mathSqrt$3(R),G=d*l+1.5*s*(-v+V),Y=d*l+1.5*s*(-v-V);G<0?G=-mathPow$1(-G,ONE_THIRD):G=mathPow$1(G,ONE_THIRD),Y<0?Y=-mathPow$1(-Y,ONE_THIRD):Y=mathPow$1(Y,ONE_THIRD);var O=(-l-(G+Y))/(3*s);O>=0&&O<=1&&(o[I++]=O)}else{var X=(2*d*l-3*s*v)/(2*mathSqrt$3(d*d*d)),q=Math.acos(X)/3,Z=mathSqrt$3(d),Q=Math.cos(q),O=(-l-2*Z*Q)/(3*s),F=(-l+Z*(Q+THREE_SQRT*Math.sin(q)))/(3*s),ie=(-l+Z*(Q-THREE_SQRT*Math.sin(q)))/(3*s);O>=0&&O<=1&&(o[I++]=O),F>=0&&F<=1&&(o[I++]=F),ie>=0&&ie<=1&&(o[I++]=ie)}}return I}function cubicExtrema(t,r,n,i,a){var o=6*n-12*r+6*t,s=9*r+3*i-3*t-9*n,l=3*r-3*t,u=0;if(isAroundZero(s)){if(isNotAroundZero$1(o)){var c=-l/o;c>=0&&c<=1&&(a[u++]=c)}}else{var d=o*o-4*s*l;if(isAroundZero(d))a[0]=-o/(2*s);else if(d>0){var v=mathSqrt$3(d),c=(-o+v)/(2*s),$=(-o-v)/(2*s);c>=0&&c<=1&&(a[u++]=c),$>=0&&$<=1&&(a[u++]=$)}}return u}function cubicSubdivide(t,r,n,i,a,o){var s=(r-t)*a+t,l=(n-r)*a+r,u=(i-n)*a+n,c=(l-s)*a+s,d=(u-l)*a+l,v=(d-c)*a+c;o[0]=t,o[1]=s,o[2]=c,o[3]=v,o[4]=v,o[5]=d,o[6]=u,o[7]=i}function cubicProjectPoint(t,r,n,i,a,o,s,l,u,c,d){var v,$=.005,I=1/0,O,R,M,F;_v0[0]=u,_v0[1]=c;for(var V=0;V<1;V+=.05)_v1[0]=cubicAt(t,n,a,s,V),_v1[1]=cubicAt(r,i,o,l,V),M=distSquare(_v0,_v1),M<I&&(v=V,I=M);I=1/0;for(var G=0;G<32&&!($<EPSILON_NUMERIC);G++)O=v-$,R=v+$,_v1[0]=cubicAt(t,n,a,s,O),_v1[1]=cubicAt(r,i,o,l,O),M=distSquare(_v1,_v0),O>=0&&M<I?(v=O,I=M):(_v2[0]=cubicAt(t,n,a,s,R),_v2[1]=cubicAt(r,i,o,l,R),F=distSquare(_v2,_v0),R<=1&&F<I?(v=R,I=F):$*=.5);return d&&(d[0]=cubicAt(t,n,a,s,v),d[1]=cubicAt(r,i,o,l,v)),mathSqrt$3(I)}function cubicLength(t,r,n,i,a,o,s,l,u){for(var c=t,d=r,v=0,$=1/u,I=1;I<=u;I++){var O=I*$,R=cubicAt(t,n,a,s,O),M=cubicAt(r,i,o,l,O),F=R-c,V=M-d;v+=Math.sqrt(F*F+V*V),c=R,d=M}return v}function quadraticAt(t,r,n,i){var a=1-i;return a*(a*t+2*i*r)+i*i*n}function quadraticDerivativeAt(t,r,n,i){return 2*((1-i)*(r-t)+i*(n-r))}function quadraticRootAt(t,r,n,i,a){var o=t-2*r+n,s=2*(r-t),l=t-i,u=0;if(isAroundZero(o)){if(isNotAroundZero$1(s)){var c=-l/s;c>=0&&c<=1&&(a[u++]=c)}}else{var d=s*s-4*o*l;if(isAroundZero(d)){var c=-s/(2*o);c>=0&&c<=1&&(a[u++]=c)}else if(d>0){var v=mathSqrt$3(d),c=(-s+v)/(2*o),$=(-s-v)/(2*o);c>=0&&c<=1&&(a[u++]=c),$>=0&&$<=1&&(a[u++]=$)}}return u}function quadraticExtremum(t,r,n){var i=t+n-2*r;return i===0?.5:(t-r)/i}function quadraticSubdivide(t,r,n,i,a){var o=(r-t)*i+t,s=(n-r)*i+r,l=(s-o)*i+o;a[0]=t,a[1]=o,a[2]=l,a[3]=l,a[4]=s,a[5]=n}function quadraticProjectPoint(t,r,n,i,a,o,s,l,u){var c,d=.005,v=1/0;_v0[0]=s,_v0[1]=l;for(var $=0;$<1;$+=.05){_v1[0]=quadraticAt(t,n,a,$),_v1[1]=quadraticAt(r,i,o,$);var I=distSquare(_v0,_v1);I<v&&(c=$,v=I)}v=1/0;for(var O=0;O<32&&!(d<EPSILON_NUMERIC);O++){var R=c-d,M=c+d;_v1[0]=quadraticAt(t,n,a,R),_v1[1]=quadraticAt(r,i,o,R);var I=distSquare(_v1,_v0);if(R>=0&&I<v)c=R,v=I;else{_v2[0]=quadraticAt(t,n,a,M),_v2[1]=quadraticAt(r,i,o,M);var F=distSquare(_v2,_v0);M<=1&&F<v?(c=M,v=F):d*=.5}}return u&&(u[0]=quadraticAt(t,n,a,c),u[1]=quadraticAt(r,i,o,c)),mathSqrt$3(v)}function quadraticLength(t,r,n,i,a,o,s){for(var l=t,u=r,c=0,d=1/s,v=1;v<=s;v++){var $=v*d,I=quadraticAt(t,n,a,$),O=quadraticAt(r,i,o,$),R=I-l,M=O-u;c+=Math.sqrt(R*R+M*M),l=I,u=O}return c}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(t){var r=t&&regexp.exec(t);if(r){var n=r[1].split(","),i=+trim(n[0]),a=+trim(n[1]),o=+trim(n[2]),s=+trim(n[3]);if(isNaN(i+a+o+s))return;var l=[];return function(u){return u<=0?0:u>=1?1:cubicRootAt(0,i,o,1,u,l)&&cubicAt(0,a,s,1,l[0])}}}var Clip=function(){function t(r){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=r.life||1e3,this._delay=r.delay||0,this.loop=r.loop||!1,this.onframe=r.onframe||noop,this.ondestroy=r.ondestroy||noop,this.onrestart=r.onrestart||noop,r.easing&&this.setEasing(r.easing)}return t.prototype.step=function(r,n){if(this._inited||(this._startTime=r+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var i=this._life,a=r-this._startTime-this._pausedTime,o=a/i;o<0&&(o=0),o=Math.min(o,1);var s=this.easingFunc,l=s?s(o):o;if(this.onframe(l),o===1)if(this.loop){var u=a%i;this._startTime=r-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(r){this.easing=r,this.easingFunc=isFunction(r)?r:easingFuncs$1[r]||createCubicEasingFunc(r)},t}(),Clip$1=Clip,Entry=function(){function t(r){this.value=r}return t}(),LinkedList=function(){function t(){this._len=0}return t.prototype.insert=function(r){var n=new Entry(r);return this.insertEntry(n),n},t.prototype.insertEntry=function(r){this.head?(this.tail.next=r,r.prev=this.tail,r.next=null,this.tail=r):this.head=this.tail=r,this._len++},t.prototype.remove=function(r){var n=r.prev,i=r.next;n?n.next=i:this.head=i,i?i.prev=n:this.tail=n,r.next=r.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),LRU=function(){function t(r){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=r}return t.prototype.put=function(r,n){var i=this._list,a=this._map,o=null;if(a[r]==null){var s=i.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var u=i.head;i.remove(u),delete a[u.key],o=u.value,this._lastRemovedEntry=u}l?l.value=n:l=new Entry(n),l.key=r,i.insertEntry(l),a[r]=l}return o},t.prototype.get=function(r){var n=this._map[r],i=this._list;if(n!=null)return n!==i.tail&&(i.remove(n),i.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),LRU$1=LRU,kCSSColorTable={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function clampCssByte(t){return t=Math.round(t),t<0?0:t>255?255:t}function clampCssFloat(t){return t<0?0:t>1?1:t}function parseCssInt(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssByte(parseFloat(r)/100*255):clampCssByte(parseInt(r,10))}function parseCssFloat(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssFloat(parseFloat(r)/100):clampCssFloat(parseFloat(r))}function cssHueToRgb(t,r,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(r-t)*n*6:n*2<1?r:n*3<2?t+(r-t)*(2/3-n)*6:t}function lerpNumber(t,r,n){return t+(r-t)*n}function setRgba(t,r,n,i,a){return t[0]=r,t[1]=n,t[2]=i,t[3]=a,t}function copyRgba(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(t,r){lastRemovedArr&&copyRgba(lastRemovedArr,r),lastRemovedArr=colorCache.put(t,lastRemovedArr||r.slice())}function parse(t,r){if(!!t){r=r||[];var n=colorCache.get(t);if(n)return copyRgba(r,n);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in kCSSColorTable)return copyRgba(r,kCSSColorTable[i]),putToCache(t,r),r;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){setRgba(r,0,0,0,1);return}return setRgba(r,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),putToCache(t,r),r}else if(a===7||a===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){setRgba(r,0,0,0,1);return}return setRgba(r,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(i.slice(7),16)/255:1),putToCache(t,r),r}return}var s=i.indexOf("("),l=i.indexOf(")");if(s!==-1&&l+1===a){var u=i.substr(0,s),c=i.substr(s+1,l-(s+1)).split(","),d=1;switch(u){case"rgba":if(c.length!==4)return c.length===3?setRgba(r,+c[0],+c[1],+c[2],1):setRgba(r,0,0,0,1);d=parseCssFloat(c.pop());case"rgb":if(c.length>=3)return setRgba(r,parseCssInt(c[0]),parseCssInt(c[1]),parseCssInt(c[2]),c.length===3?d:parseCssFloat(c[3])),putToCache(t,r),r;setRgba(r,0,0,0,1);return;case"hsla":if(c.length!==4){setRgba(r,0,0,0,1);return}return c[3]=parseCssFloat(c[3]),hsla2rgba(c,r),putToCache(t,r),r;case"hsl":if(c.length!==3){setRgba(r,0,0,0,1);return}return hsla2rgba(c,r),putToCache(t,r),r;default:return}}setRgba(r,0,0,0,1)}}function hsla2rgba(t,r){var n=(parseFloat(t[0])%360+360)%360/360,i=parseCssFloat(t[1]),a=parseCssFloat(t[2]),o=a<=.5?a*(i+1):a+i-a*i,s=a*2-o;return r=r||[],setRgba(r,clampCssByte(cssHueToRgb(s,o,n+1/3)*255),clampCssByte(cssHueToRgb(s,o,n)*255),clampCssByte(cssHueToRgb(s,o,n-1/3)*255),1),t.length===4&&(r[3]=t[3]),r}function lift(t,r){var n=parse(t);if(n){for(var i=0;i<3;i++)r<0?n[i]=n[i]*(1-r)|0:n[i]=(255-n[i])*r+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return stringify(n,n.length===4?"rgba":"rgb")}}function lerp(t,r,n){if(!(!(r&&r.length)||!(t>=0&&t<=1))){var i=t*(r.length-1),a=Math.floor(i),o=Math.ceil(i),s=parse(r[a]),l=parse(r[o]),u=i-a,c=stringify([clampCssByte(lerpNumber(s[0],l[0],u)),clampCssByte(lerpNumber(s[1],l[1],u)),clampCssByte(lerpNumber(s[2],l[2],u)),clampCssFloat(lerpNumber(s[3],l[3],u))],"rgba");return n?{color:c,leftIndex:a,rightIndex:o,value:i}:c}}function stringify(t,r){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(r==="rgba"||r==="hsva"||r==="hsla")&&(n+=","+t[3]),r+"("+n+")"}}function lum(t,r){var n=parse(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*r:0}var liftedColorCache=new LRU$1(100);function liftColor(t){if(isString(t)){var r=liftedColorCache.get(t);return r||(r=lift(t,-.1),liftedColorCache.put(t,r)),r}else if(isGradientObject(t)){var n=extend({},t);return n.colorStops=map$1(t.colorStops,function(i){return{offset:i.offset,color:lift(i.color,-.1)}}),n}return t}function isLinearGradient(t){return t.type==="linear"}function isRadialGradient(t){return t.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer!="undefined"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(t,r,n){return(r-t)*n+t}function interpolate1DArray(t,r,n,i){for(var a=r.length,o=0;o<a;o++)t[o]=interpolateNumber$1(r[o],n[o],i);return t}function interpolate2DArray(t,r,n,i){for(var a=r.length,o=a&&r[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<o;l++)t[s][l]=interpolateNumber$1(r[s][l],n[s][l],i)}return t}function add1DArray(t,r,n,i){for(var a=r.length,o=0;o<a;o++)t[o]=r[o]+n[o]*i;return t}function add2DArray(t,r,n,i){for(var a=r.length,o=a&&r[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<o;l++)t[s][l]=r[s][l]+n[s][l]*i}return t}function fillColorStops(t,r){for(var n=t.length,i=r.length,a=n>i?r:t,o=Math.min(n,i),s=a[o-1]||{color:[0,0,0,0],offset:0},l=o;l<Math.max(n,i);l++)a.push({offset:s.offset,color:s.color.slice()})}function fillArray(t,r,n){var i=t,a=r;if(!(!i.push||!a.push)){var o=i.length,s=a.length;if(o!==s){var l=o>s;if(l)i.length=s;else for(var u=o;u<s;u++)i.push(n===1?a[u]:arraySlice.call(a[u]))}for(var c=i[0]&&i[0].length,u=0;u<i.length;u++)if(n===1)isNaN(i[u])&&(i[u]=a[u]);else for(var d=0;d<c;d++)isNaN(i[u][d])&&(i[u][d]=a[u][d])}}function cloneValue(t){if(isArrayLike(t)){var r=t.length;if(isArrayLike(t[0])){for(var n=[],i=0;i<r;i++)n.push(arraySlice.call(t[i]));return n}return arraySlice.call(t)}return t}function rgba2String(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function guessArrayDim(t){return isArrayLike(t&&t[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(t){return t===VALUE_TYPE_LINEAR_GRADIENT||t===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType(t){return t===VALUE_TYPE_1D_ARRAY||t===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function t(r){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=r}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(r,n,i){this._needsSort=!0;var a=this.keyframes,o=a.length,s=!1,l=VALUE_TYPE_UNKOWN,u=n;if(isArrayLike(n)){var c=guessArrayDim(n);l=c,(c===1&&!isNumber(n[0])||c===2&&!isNumber(n[0][0]))&&(s=!0)}else if(isNumber(n)&&!eqNaN(n))l=VALUE_TYPE_NUMBER;else if(isString(n))if(!isNaN(+n))l=VALUE_TYPE_NUMBER;else{var d=parse(n);d&&(u=d,l=VALUE_TYPE_COLOR)}else if(isGradientObject(n)){var v=extend({},u);v.colorStops=map$1(n.colorStops,function(I){return{offset:I.offset,color:parse(I.color)}}),isLinearGradient(n)?l=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(n)&&(l=VALUE_TYPE_RADIAL_GRADIENT),u=v}o===0?this.valType=l:(l!==this.valType||l===VALUE_TYPE_UNKOWN)&&(s=!0),this.discrete=this.discrete||s;var $={time:r,value:u,rawValue:n,percent:0};return i&&($.easing=i,$.easingFunc=isFunction(i)?i:easingFuncs$1[i]||createCubicEasingFunc(i)),a.push($),$},t.prototype.prepare=function(r,n){var i=this.keyframes;this._needsSort&&i.sort(function(R,M){return R.time-M.time});for(var a=this.valType,o=i.length,s=i[o-1],l=this.discrete,u=isArrayValueType(a),c=isGradientValueType(a),d=0;d<o;d++){var v=i[d],$=v.value,I=s.value;v.percent=v.time/r,l||(u&&d!==o-1?fillArray($,I,a):c&&fillColorStops($.colorStops,I.colorStops))}if(!l&&a!==VALUE_TYPE_RADIAL_GRADIENT&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var O=i[0].value,d=0;d<o;d++)a===VALUE_TYPE_NUMBER?i[d].additiveValue=i[d].value-O:a===VALUE_TYPE_COLOR?i[d].additiveValue=add1DArray([],i[d].value,O,-1):isArrayValueType(a)&&(i[d].additiveValue=a===VALUE_TYPE_1D_ARRAY?add1DArray([],i[d].value,O,-1):add2DArray([],i[d].value,O,-1))}},t.prototype.step=function(r,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",o=this.valType,s=this.keyframes,l=s.length,u=this.propName,c=o===VALUE_TYPE_COLOR,d,v=this._lastFr,$=Math.min,I,O;if(l===1)I=O=s[0];else{if(n<0)d=0;else if(n<this._lastFrP){var R=$(v+1,l-1);for(d=R;d>=0&&!(s[d].percent<=n);d--);d=$(d,l-2)}else{for(d=v;d<l&&!(s[d].percent>n);d++);d=$(d-1,l-2)}O=s[d+1],I=s[d]}if(!!(I&&O)){this._lastFr=d,this._lastFrP=n;var M=O.percent-I.percent,F=M===0?1:$((n-I.percent)/M,1);O.easingFunc&&(F=O.easingFunc(F));var V=i?this._additiveValue:c?tmpRgba:r[u];if((isArrayValueType(o)||c)&&!V&&(V=this._additiveValue=[]),this.discrete)r[u]=F<1?I.rawValue:O.rawValue;else if(isArrayValueType(o))o===VALUE_TYPE_1D_ARRAY?interpolate1DArray(V,I[a],O[a],F):interpolate2DArray(V,I[a],O[a],F);else if(isGradientValueType(o)){var G=I[a],Y=O[a],X=o===VALUE_TYPE_LINEAR_GRADIENT;r[u]={type:X?"linear":"radial",x:interpolateNumber$1(G.x,Y.x,F),y:interpolateNumber$1(G.y,Y.y,F),colorStops:map$1(G.colorStops,function(Z,Q){var ie=Y.colorStops[Q];return{offset:interpolateNumber$1(Z.offset,ie.offset,F),color:rgba2String(interpolate1DArray([],Z.color,ie.color,F))}}),global:Y.global},X?(r[u].x2=interpolateNumber$1(G.x2,Y.x2,F),r[u].y2=interpolateNumber$1(G.y2,Y.y2,F)):r[u].r=interpolateNumber$1(G.r,Y.r,F)}else if(c)interpolate1DArray(V,I[a],O[a],F),i||(r[u]=rgba2String(V));else{var q=interpolateNumber$1(I[a],O[a],F);i?this._additiveValue=q:r[u]=q}i&&this._addToTarget(r)}}},t.prototype._addToTarget=function(r){var n=this.valType,i=this.propName,a=this._additiveValue;n===VALUE_TYPE_NUMBER?r[i]=r[i]+a:n===VALUE_TYPE_COLOR?(parse(r[i],tmpRgba),add1DArray(tmpRgba,tmpRgba,a,1),r[i]=rgba2String(tmpRgba)):n===VALUE_TYPE_1D_ARRAY?add1DArray(r[i],r[i],a,1):n===VALUE_TYPE_2D_ARRAY&&add2DArray(r[i],r[i],a,1)},t}(),Animator=function(){function t(r,n,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=r,this._loop=n,n&&a){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(r){this._target=r},t.prototype.when=function(r,n,i){return this.whenWithKeys(r,n,keys(n),i)},t.prototype.whenWithKeys=function(r,n,i,a){for(var o=this._tracks,s=0;s<i.length;s++){var l=i[s],u=o[l];if(!u){u=o[l]=new Track(l);var c=void 0,d=this._getAdditiveTrack(l);if(d){var v=d.keyframes,$=v[v.length-1];c=$&&$.value,d.valType===VALUE_TYPE_COLOR&&c&&(c=rgba2String(c))}else c=this._target[l];if(c==null)continue;r>0&&u.addKeyframe(0,cloneValue(c),a),this._trackKeys.push(l)}u.addKeyframe(r,cloneValue(n[l]),a)}return this._maxTime=Math.max(this._maxTime,r),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(r){return this._maxTime=r,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var r=this._doneCbs;if(r)for(var n=r.length,i=0;i<n;i++)r[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var r=this.animation,n=this._abortedCbs;if(r&&r.removeClip(this._clip),this._clip=null,n)for(var i=0;i<n.length;i++)n[i].call(this)},t.prototype._setTracksFinished=function(){for(var r=this._tracks,n=this._trackKeys,i=0;i<n.length;i++)r[n[i]].setFinished()},t.prototype._getAdditiveTrack=function(r){var n,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var o=i[a].getTrack(r);o&&(n=o)}return n},t.prototype.start=function(r){if(!(this._started>0)){this._started=1;for(var n=this,i=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var s=this._trackKeys[o],l=this._tracks[s],u=this._getAdditiveTrack(s),c=l.keyframes,d=c.length;if(l.prepare(a,u),l.needsAnimate())if(!this._allowDiscrete&&l.discrete){var v=c[d-1];v&&(n._target[l.propName]=v.rawValue),l.setFinished()}else i.push(l)}if(i.length||this._force){var $=new Clip$1({life:a,loop:this._loop,delay:this._delay||0,onframe:function(I){n._started=2;var O=n._additiveAnimators;if(O){for(var R=!1,M=0;M<O.length;M++)if(O[M]._clip){R=!0;break}R||(n._additiveAnimators=null)}for(var M=0;M<i.length;M++)i[M].step(n._target,I);var F=n._onframeCbs;if(F)for(var M=0;M<F.length;M++)F[M](n._target,I)},ondestroy:function(){n._doneCallback()}});this._clip=$,this.animation&&this.animation.addClip($),r&&$.setEasing(r)}else this._doneCallback();return this}},t.prototype.stop=function(r){if(!!this._clip){var n=this._clip;r&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(r){return this._delay=r,this},t.prototype.during=function(r){return r&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(r)),this},t.prototype.done=function(r){return r&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(r)),this},t.prototype.aborted=function(r){return r&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(r)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(r){return this._tracks[r]},t.prototype.getTracks=function(){var r=this;return map$1(this._trackKeys,function(n){return r._tracks[n]})},t.prototype.stopTracks=function(r,n){if(!r.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,o=0;o<r.length;o++){var s=i[r[o]];s&&!s.isFinished()&&(n?s.step(this._target,1):this._started===1&&s.step(this._target,0),s.setFinished())}for(var l=!0,o=0;o<a.length;o++)if(!i[a[o]].isFinished()){l=!1;break}return l&&this._abortedCallback(),l},t.prototype.saveTo=function(r,n,i){if(!!r){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var o=n[a],s=this._tracks[o];if(!(!s||s.isFinished())){var l=s.keyframes,u=l[i?0:l.length-1];u&&(r[o]=cloneValue(u.rawValue))}}}},t.prototype.__changeFinalValue=function(r,n){n=n||keys(r);for(var i=0;i<n.length;i++){var a=n[i],o=this._tracks[a];if(!!o){var s=o.keyframes;if(s.length>1){var l=s.pop();o.addKeyframe(l.time,r[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}(),Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(t){__extends(r,t);function r(n){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,n=n||{},i.stage=n.stage||{},i}return r.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},r.prototype.addAnimator=function(n){n.animation=this;var i=n.getClip();i&&this.addClip(i)},r.prototype.removeClip=function(n){if(!!n.animation){var i=n.prev,a=n.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,n.next=n.prev=n.animation=null}},r.prototype.removeAnimator=function(n){var i=n.getClip();i&&this.removeClip(i),n.animation=null},r.prototype.update=function(n){for(var i=getTime()-this._pausedTime,a=i-this._time,o=this._head;o;){var s=o.next,l=o.step(i,a);l&&(o.ondestroy(),this.removeClip(o)),o=s}this._time=i,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},r.prototype._startLoop=function(){var n=this;this._running=!0;function i(){n._running&&(requestAnimationFrame$3(i),!n._paused&&n.update())}requestAnimationFrame$3(i)},r.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},r.prototype.stop=function(){this._running=!1},r.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},r.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},r.prototype.clear=function(){for(var n=this._head;n;){var i=n.next;n.prev=n.next=n.animation=null,n=i}this._head=this._tail=null},r.prototype.isFinished=function(){return this._head==null},r.prototype.animate=function(n,i){i=i||{},this.start();var a=new Animator$1(n,i.loop);return this.addAnimator(a),a},r}(Eventful$1),Animation$1=Animation,TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],r=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=map$1(t,function(a){var o=a.replace("mouse","pointer");return n.hasOwnProperty(o)?o:a});return{mouse:t,touch:r,pointer:i}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(t){var r=t.pointerType;return r==="pen"||r==="touch"}function setTouchTimer(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function markTouch(t){t&&(t.zrByTouch=!0)}function normalizeGlobalEvent(t,r){return normalizeEvent(t.dom,new FakeGlobalEvent(t,r),!0)}function isLocalEl(t,r){for(var n=r,i=!1;n&&n.nodeType!==9&&!(i=n.domBelongToZr||n!==r&&n===t.painterRoot);)n=n.parentNode;return i}var FakeGlobalEvent=function(){function t(r,n){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=n.type,this.target=this.currentTarget=r.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),localDOMHandlers={mousedown:function(t){t=normalizeEvent(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=normalizeEvent(this.dom,t);var r=this.__mayPointerCapture;r&&(t.zrX!==r[0]||t.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=normalizeEvent(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=normalizeEvent(this.dom,t);var r=t.toElement||t.relatedTarget;isLocalEl(this,r)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wheelEventSupported=!0,t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wheelEventSupported||(t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),localDOMHandlers.mousemove.call(this,t),localDOMHandlers.mousedown.call(this,t)},touchmove:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"change"),localDOMHandlers.mousemove.call(this,t)},touchend:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"end"),localDOMHandlers.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,t)},pointerdown:function(t){localDOMHandlers.mousedown.call(this,t)},pointermove:function(t){isPointerFromTouch(t)||localDOMHandlers.mousemove.call(this,t)},pointerup:function(t){localDOMHandlers.mouseup.call(this,t)},pointerout:function(t){isPointerFromTouch(t)||localDOMHandlers.mouseout.call(this,t)}};each$4(["click","dblclick","contextmenu"],function(t){localDOMHandlers[t]=function(r){r=normalizeEvent(this.dom,r),this.trigger(t,r)}});var globalDOMHandlers={pointermove:function(t){isPointerFromTouch(t)||globalDOMHandlers.mousemove.call(this,t)},pointerup:function(t){globalDOMHandlers.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),r&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function mountLocalDOMEventListeners(t,r){var n=r.domHandlers;env$1.pointerEventsSupported?each$4(localNativeListenerNames.pointer,function(i){mountSingleDOMEventListener(r,i,function(a){n[i].call(t,a)})}):(env$1.touchEventsSupported&&each$4(localNativeListenerNames.touch,function(i){mountSingleDOMEventListener(r,i,function(a){n[i].call(t,a),setTouchTimer(r)})}),each$4(localNativeListenerNames.mouse,function(i){mountSingleDOMEventListener(r,i,function(a){a=getNativeEvent(a),r.touching||n[i].call(t,a)})}))}function mountGlobalDOMEventListeners(t,r){env$1.pointerEventsSupported?each$4(globalNativeListenerNames.pointer,n):env$1.touchEventsSupported||each$4(globalNativeListenerNames.mouse,n);function n(i){function a(o){o=getNativeEvent(o),isLocalEl(t,o.target)||(o=normalizeGlobalEvent(t,o),r.domHandlers[i].call(t,o))}mountSingleDOMEventListener(r,i,a,{capture:!0})}}function mountSingleDOMEventListener(t,r,n,i){t.mounted[r]=n,t.listenerOpts[r]=i,addEventListener(t.domTarget,r,n,i)}function unmountDOMEventListeners(t){var r=t.mounted;for(var n in r)r.hasOwnProperty(n)&&removeEventListener(t.domTarget,n,r[n],t.listenerOpts[n]);t.mounted={}}var DOMHandlerScope=function(){function t(r,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=r,this.domHandlers=n}return t}(),HandlerDomProxy=function(t){__extends(r,t);function r(n,i){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=i,a._localHandlerScope=new DOMHandlerScope(n,localDOMHandlers),globalEventSupported&&(a._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(a,a._localHandlerScope),a}return r.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},r.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},r.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var i=this._globalHandlerScope;n?mountGlobalDOMEventListeners(this,i):unmountDOMEventListeners(i)}},r}(Eventful$1),HandlerProxy=HandlerDomProxy,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$1=5e-5;function isNotAroundZero(t){return t>EPSILON$1||t<-EPSILON$1}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function t(){}return t.prototype.getLocalTransform=function(r){return t.getLocalTransform(this,r)},t.prototype.setPosition=function(r){this.x=r[0],this.y=r[1]},t.prototype.setScale=function(r){this.scaleX=r[0],this.scaleY=r[1]},t.prototype.setSkew=function(r){this.skewX=r[0],this.skewY=r[1]},t.prototype.setOrigin=function(r){this.originX=r[0],this.originY=r[1]},t.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},t.prototype.updateTransform=function(){var r=this.parent&&this.parent.transform,n=this.needLocalTransform(),i=this.transform;if(!(n||r)){i&&(mIdentity(i),this.invTransform=null);return}i=i||create(),n?this.getLocalTransform(i):mIdentity(i),r&&(n?mul(i,r,i):copy(i,r)),this.transform=i,this._resolveGlobalScaleRatio(i)},t.prototype._resolveGlobalScaleRatio=function(r){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(scaleTmp);var i=scaleTmp[0]<0?-1:1,a=scaleTmp[1]<0?-1:1,o=((scaleTmp[0]-i)*n+i)/scaleTmp[0]||0,s=((scaleTmp[1]-a)*n+a)/scaleTmp[1]||0;r[0]*=o,r[1]*=o,r[2]*=s,r[3]*=s}this.invTransform=this.invTransform||create(),invert(this.invTransform,r)},t.prototype.getComputedTransform=function(){for(var r=this,n=[];r;)n.push(r),r=r.parent;for(;r=n.pop();)r.updateTransform();return this.transform},t.prototype.setLocalTransform=function(r){if(!!r){var n=r[0]*r[0]+r[1]*r[1],i=r[2]*r[2]+r[3]*r[3],a=Math.atan2(r[1],r[0]),o=Math.PI/2+a-Math.atan2(r[3],r[2]);i=Math.sqrt(i)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+r[4],this.y=+r[5],this.scaleX=n,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(!!this.transform){var r=this.parent,n=this.transform;r&&r.transform&&(r.invTransform=r.invTransform||create(),mul(tmpTransform,r.invTransform,n),n=tmpTransform);var i=this.originX,a=this.originY;(i||a)&&(originTransform[4]=i,originTransform[5]=a,mul(tmpTransform,n,originTransform),tmpTransform[4]-=i,tmpTransform[5]-=a,n=tmpTransform),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(r){var n=this.transform;return r=r||[],n?(r[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),r[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(r[0]=-r[0]),n[3]<0&&(r[1]=-r[1]),r):(r[0]=1,r[1]=1,r)},t.prototype.transformCoordToLocal=function(r,n){var i=[r,n],a=this.invTransform;return a&&applyTransform$1(i,i,a),i},t.prototype.transformCoordToGlobal=function(r,n){var i=[r,n],a=this.transform;return a&&applyTransform$1(i,i,a),i},t.prototype.getLineScale=function(){var r=this.transform;return r&&abs(r[0]-1)>1e-10&&abs(r[3]-1)>1e-10?Math.sqrt(abs(r[0]*r[3]-r[2]*r[1])):1},t.prototype.copyTransform=function(r){copyTransform(this,r)},t.getLocalTransform=function(r,n){n=n||[];var i=r.originX||0,a=r.originY||0,o=r.scaleX,s=r.scaleY,l=r.anchorX,u=r.anchorY,c=r.rotation||0,d=r.x,v=r.y,$=r.skewX?Math.tan(r.skewX):0,I=r.skewY?Math.tan(-r.skewY):0;if(i||a||l||u){var O=i+l,R=a+u;n[4]=-O*o-$*R*s,n[5]=-R*s-I*O*o}else n[4]=n[5]=0;return n[0]=o,n[3]=s,n[1]=I*o,n[2]=$*s,c&&rotate(n,n,c),n[4]+=i+d,n[5]+=a+v,n},t.initDefaultProps=function(){var r=t.prototype;r.scaleX=r.scaleY=r.globalScaleRatio=1,r.x=r.y=r.originX=r.originY=r.skewX=r.skewY=r.rotation=r.anchorX=r.anchorY=0}(),t}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(t,r){for(var n=0;n<TRANSFORMABLE_PROPS.length;n++){var i=TRANSFORMABLE_PROPS[n];t[i]=r[i]}}var textWidthCache={};function getWidth(t,r){r=r||DEFAULT_FONT;var n=textWidthCache[r];n||(n=textWidthCache[r]=new LRU$1(500));var i=n.get(t);return i==null&&(i=platformApi.measureText(t,r).width,n.put(t,i)),i}function innerGetBoundingRect(t,r,n,i){var a=getWidth(t,r),o=getLineHeight(r),s=adjustTextX(0,a,n),l=adjustTextY(0,o,i),u=new BoundingRect$1(s,l,a,o);return u}function getBoundingRect(t,r,n,i){var a=((t||"")+"").split(`
122
- `),o=a.length;if(o===1)return innerGetBoundingRect(a[0],r,n,i);for(var s=new BoundingRect$1(0,0,0,0),l=0;l<a.length;l++){var u=innerGetBoundingRect(a[l],r,n,i);l===0?s.copy(u):s.union(u)}return s}function adjustTextX(t,r,n){return n==="right"?t-=r:n==="center"&&(t-=r/2),t}function adjustTextY(t,r,n){return n==="middle"?t-=r/2:n==="bottom"&&(t-=r),t}function getLineHeight(t){return getWidth("\u56FD",t)}function parsePercent$1(t,r){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*r:parseFloat(t):t}function calculateTextPosition(t,r,n){var i=r.position||"inside",a=r.distance!=null?r.distance:5,o=n.height,s=n.width,l=o/2,u=n.x,c=n.y,d="left",v="top";if(i instanceof Array)u+=parsePercent$1(i[0],n.width),c+=parsePercent$1(i[1],n.height),d=null,v=null;else switch(i){case"left":u-=a,c+=l,d="right",v="middle";break;case"right":u+=a+s,c+=l,v="middle";break;case"top":u+=s/2,c-=a,d="center",v="bottom";break;case"bottom":u+=s/2,c+=o+a,d="center";break;case"inside":u+=s/2,c+=l,d="center",v="middle";break;case"insideLeft":u+=a,c+=l,v="middle";break;case"insideRight":u+=s-a,c+=l,d="right",v="middle";break;case"insideTop":u+=s/2,c+=a,d="center";break;case"insideBottom":u+=s/2,c+=o-a,d="center",v="bottom";break;case"insideTopLeft":u+=a,c+=a;break;case"insideTopRight":u+=s-a,c+=a,d="right";break;case"insideBottomLeft":u+=a,c+=o-a,v="bottom";break;case"insideBottomRight":u+=s-a,c+=o-a,d="right",v="bottom";break}return t=t||{},t.x=u,t.y=c,t.align=d,t.verticalAlign=v,t}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=!0,t},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function t(r){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(r)}return t.prototype._init=function(r){this.attr(r)},t.prototype.drift=function(r,n,i){switch(this.draggable){case"horizontal":n=0;break;case"vertical":r=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=r,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(r){var n=this._textContent;if(n&&(!n.ignore||r)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,o=n.innerTransformable,s=void 0,l=void 0,u=!1;o.parent=a?this:null;var c=!1;if(o.copyTransform(n),i.position!=null){var d=tmpBoundingRect;i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,i,d):calculateTextPosition(tmpTextPosCalcRes,i,d),o.x=tmpTextPosCalcRes.x,o.y=tmpTextPosCalcRes.y,s=tmpTextPosCalcRes.align,l=tmpTextPosCalcRes.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var $=void 0,I=void 0;v==="center"?($=d.width*.5,I=d.height*.5):($=parsePercent$1(v[0],d.width),I=parsePercent$1(v[1],d.height)),c=!0,o.originX=-o.x+$+(a?0:d.x),o.originY=-o.y+I+(a?0:d.y)}}i.rotation!=null&&(o.rotation=i.rotation);var O=i.offset;O&&(o.x+=O[0],o.y+=O[1],c||(o.originX=-O[0],o.originY=-O[1]));var R=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,M=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),F=void 0,V=void 0,G=void 0;R&&this.canBeInsideText()?(F=i.insideFill,V=i.insideStroke,(F==null||F==="auto")&&(F=this.getInsideTextFill()),(V==null||V==="auto")&&(V=this.getInsideTextStroke(F),G=!0)):(F=i.outsideFill,V=i.outsideStroke,(F==null||F==="auto")&&(F=this.getOutsideFill()),(V==null||V==="auto")&&(V=this.getOutsideStroke(F),G=!0)),F=F||"#000",(F!==M.fill||V!==M.stroke||G!==M.autoStroke||s!==M.align||l!==M.verticalAlign)&&(u=!0,M.fill=F,M.stroke=V,M.autoStroke=G,M.align=s,M.verticalAlign=l,n.setDefaultTextStyle(M)),n.__dirty|=REDRAW_BIT,u&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(r){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(r){var n=this.__zr&&this.__zr.getBackgroundColor(),i=typeof n=="string"&&parse(n);i||(i=[255,255,255,1]);for(var a=i[3],o=this.__zr.isDarkMode(),s=0;s<3;s++)i[s]=i[s]*a+(o?0:255)*(1-a);return i[3]=1,stringify(i,"rgba")},t.prototype.traverse=function(r,n){},t.prototype.attrKV=function(r,n){r==="textConfig"?this.setTextConfig(n):r==="textContent"?this.setTextContent(n):r==="clipPath"?this.setClipPath(n):r==="extra"?(this.extra=this.extra||{},extend(this.extra,n)):this[r]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(r,n){if(typeof r=="string")this.attrKV(r,n);else if(isObject$2(r))for(var i=r,a=keys(i),o=0;o<a.length;o++){var s=a[o];this.attrKV(s,r[s])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(r){this._innerSaveToNormal(r);for(var n=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==PRESERVED_NORMAL_STATE)){var s=a.targetName,l=s?n[s]:n;a.saveTo(l)}}},t.prototype._innerSaveToNormal=function(r){var n=this._normalState;n||(n=this._normalState={}),r.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(r,n,PRIMARY_STATES_KEYS$1)},t.prototype._savePrimaryToNormal=function(r,n,i){for(var a=0;a<i.length;a++){var o=i[a];r[o]!=null&&!(o in n)&&(n[o]=this[o])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(r){return this.states[r]},t.prototype.ensureState=function(r){var n=this.states;return n[r]||(n[r]={}),n[r]},t.prototype.clearStates=function(r){this.useState(PRESERVED_NORMAL_STATE,!1,r)},t.prototype.useState=function(r,n,i,a){var o=r===PRESERVED_NORMAL_STATE,s=this.hasState();if(!(!s&&o)){var l=this.currentStates,u=this.stateTransition;if(!(indexOf(l,r)>=0&&(n||l.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(r)),c||(c=this.states&&this.states[r]),!c&&!o){logError("State "+r+" not exists.");return}o||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(r,c,this._normalState,n,!i&&!this.__inHover&&u&&u.duration>0,u);var v=this._textContent,$=this._textGuide;return v&&v.useState(r,n,i,d),$&&$.useState(r,n,i,d),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(r):this.currentStates=[r],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),c}}},t.prototype.useStates=function(r,n,i){if(!r.length)this.clearStates();else{var a=[],o=this.currentStates,s=r.length,l=s===o.length;if(l){for(var u=0;u<s;u++)if(r[u]!==o[u]){l=!1;break}}if(l)return;for(var u=0;u<s;u++){var c=r[u],d=void 0;this.stateProxy&&(d=this.stateProxy(c,r)),d||(d=this.states[c]),d&&a.push(d)}var v=a[s-1],$=!!(v&&v.hoverLayer||i);$&&this._toggleHoverLayerFlag(!0);var I=this._mergeStates(a),O=this.stateTransition;this.saveCurrentToNormalState(I),this._applyStateObj(r.join(","),I,this._normalState,!1,!n&&!this.__inHover&&O&&O.duration>0,O);var R=this._textContent,M=this._textGuide;R&&R.useStates(r,n,$),M&&M.useStates(r,n,$),this._updateAnimationTargets(),this.currentStates=r.slice(),this.markRedraw(),!$&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},t.prototype.isSilent=function(){for(var r=this.silent,n=this.parent;!r&&n;){if(n.silent){r=!0;break}n=n.parent}return r},t.prototype._updateAnimationTargets=function(){for(var r=0;r<this.animators.length;r++){var n=this.animators[r];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(r){var n=indexOf(this.currentStates,r);if(n>=0){var i=this.currentStates.slice();i.splice(n,1),this.useStates(i)}},t.prototype.replaceState=function(r,n,i){var a=this.currentStates.slice(),o=indexOf(a,r),s=indexOf(a,n)>=0;o>=0?s?a.splice(o,1):a[o]=n:i&&!s&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(r,n){n?this.useState(r,!0):this.removeState(r)},t.prototype._mergeStates=function(r){for(var n={},i,a=0;a<r.length;a++){var o=r[a];extend(n,o),o.textConfig&&(i=i||{},extend(i,o.textConfig))}return i&&(n.textConfig=i),n},t.prototype._applyStateObj=function(r,n,i,a,o,s){var l=!(n&&a);n&&n.textConfig?(this.textConfig=extend({},a?this.textConfig:i.textConfig),extend(this.textConfig,n.textConfig)):l&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},c=!1,d=0;d<PRIMARY_STATES_KEYS$1.length;d++){var v=PRIMARY_STATES_KEYS$1[d],$=o&&DEFAULT_ANIMATABLE_MAP[v];n&&n[v]!=null?$?(c=!0,u[v]=n[v]):this[v]=n[v]:l&&i[v]!=null&&($?(c=!0,u[v]=i[v]):this[v]=i[v])}if(!o)for(var d=0;d<this.animators.length;d++){var I=this.animators[d],O=I.targetName;I.getLoop()||I.__changeFinalValue(O?(n||i)[O]:n||i)}c&&this._transitionState(r,u,s)},t.prototype._attachComponent=function(r){if(!(r.__zr&&!r.__hostTarget)&&r!==this){var n=this.__zr;n&&r.addSelfToZr(n),r.__zr=n,r.__hostTarget=this}},t.prototype._detachComponent=function(r){r.__zr&&r.removeSelfFromZr(r.__zr),r.__zr=null,r.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(r){this._clipPath&&this._clipPath!==r&&this.removeClipPath(),this._attachComponent(r),this._clipPath=r,this.markRedraw()},t.prototype.removeClipPath=function(){var r=this._clipPath;r&&(this._detachComponent(r),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(r){var n=this._textContent;n!==r&&(n&&n!==r&&this.removeTextContent(),r.innerTransformable=new Transformable,this._attachComponent(r),this._textContent=r,this.markRedraw())},t.prototype.setTextConfig=function(r){this.textConfig||(this.textConfig={}),extend(this.textConfig,r),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var r=this._textContent;r&&(r.innerTransformable=null,this._detachComponent(r),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(r){this._textGuide&&this._textGuide!==r&&this.removeTextGuideLine(),this._attachComponent(r),this._textGuide=r,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var r=this._textGuide;r&&(this._detachComponent(r),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var r=this.__zr;r&&(this.__inHover?r.refreshHover():r.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(r){this.__inHover=r;var n=this._textContent,i=this._textGuide;n&&(n.__inHover=r),i&&(i.__inHover=r)},t.prototype.addSelfToZr=function(r){if(this.__zr!==r){this.__zr=r;var n=this.animators;if(n)for(var i=0;i<n.length;i++)r.animation.addAnimator(n[i]);this._clipPath&&this._clipPath.addSelfToZr(r),this._textContent&&this._textContent.addSelfToZr(r),this._textGuide&&this._textGuide.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){if(!!this.__zr){this.__zr=null;var n=this.animators;if(n)for(var i=0;i<n.length;i++)r.animation.removeAnimator(n[i]);this._clipPath&&this._clipPath.removeSelfFromZr(r),this._textContent&&this._textContent.removeSelfFromZr(r),this._textGuide&&this._textGuide.removeSelfFromZr(r)}},t.prototype.animate=function(r,n,i){var a=r?this[r]:this,o=new Animator$1(a,n,i);return r&&(o.targetName=r),this.addAnimator(o,r),o},t.prototype.addAnimator=function(r,n){var i=this.__zr,a=this;r.during(function(){a.updateDuringAnimation(n)}).done(function(){var o=a.animators,s=indexOf(o,r);s>=0&&o.splice(s,1)}),this.animators.push(r),i&&i.animation.addAnimator(r),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(r){this.markRedraw()},t.prototype.stopAnimation=function(r,n){for(var i=this.animators,a=i.length,o=[],s=0;s<a;s++){var l=i[s];!r||r===l.scope?l.stop(n):o.push(l)}return this.animators=o,this},t.prototype.animateTo=function(r,n,i){animateTo(this,r,n,i)},t.prototype.animateFrom=function(r,n,i){animateTo(this,r,n,i,!0)},t.prototype._transitionState=function(r,n,i,a){for(var o=animateTo(this,n,i,a),s=0;s<o.length;s++)o[s].__fromStateTransition=r},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var r=t.prototype;r.type="element",r.name="",r.ignore=r.silent=r.isGroup=r.draggable=r.dragging=r.ignoreClip=r.__inHover=!1,r.__dirty=REDRAW_BIT;function n(i,a,o,s){Object.defineProperty(r,i,{get:function(){if(!this[a]){var u=this[a]=[];l(this,u)}return this[a]},set:function(u){this[o]=u[0],this[s]=u[1],this[a]=u,l(this,u)}});function l(u,c){Object.defineProperty(c,0,{get:function(){return u[o]},set:function(d){u[o]=d}}),Object.defineProperty(c,1,{get:function(){return u[s]},set:function(d){u[s]=d}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();mixin(Element$1,Eventful$1);mixin(Element$1,Transformable);function animateTo(t,r,n,i,a){n=n||{};var o=[];animateToShallow(t,"",t,r,n,i,o,a);var s=o.length,l=!1,u=n.done,c=n.aborted,d=function(){l=!0,s--,s<=0&&(l?u&&u():c&&c())},v=function(){s--,s<=0&&(l?u&&u():c&&c())};s||u&&u(),o.length>0&&n.during&&o[0].during(function(O,R){n.during(R)});for(var $=0;$<o.length;$++){var I=o[$];d&&I.done(d),v&&I.aborted(v),n.force&&I.duration(n.duration),I.start(n.easing)}return o}function copyArrShallow(t,r,n){for(var i=0;i<n;i++)t[i]=r[i]}function is2DArray(t){return isArrayLike(t[0])}function copyValue(t,r,n){if(isArrayLike(r[n]))if(isArrayLike(t[n])||(t[n]=[]),isTypedArray(r[n])){var i=r[n].length;t[n].length!==i&&(t[n]=new r[n].constructor(i),copyArrShallow(t[n],r[n],i))}else{var a=r[n],o=t[n],s=a.length;if(is2DArray(a))for(var l=a[0].length,u=0;u<s;u++)o[u]?copyArrShallow(o[u],a[u],l):o[u]=Array.prototype.slice.call(a[u]);else copyArrShallow(o,a,s);o.length=a.length}else t[n]=r[n]}function isValueSame(t,r){return t===r||isArrayLike(t)&&isArrayLike(r)&&is1DArraySame(t,r)}function is1DArraySame(t,r){var n=t.length;if(n!==r.length)return!1;for(var i=0;i<n;i++)if(t[i]!==r[i])return!1;return!0}function animateToShallow(t,r,n,i,a,o,s,l){for(var u=keys(i),c=a.duration,d=a.delay,v=a.additive,$=a.setToFinal,I=!isObject$2(o),O=t.animators,R=[],M=0;M<u.length;M++){var F=u[M],V=i[F];if(V!=null&&n[F]!=null&&(I||o[F]))if(isObject$2(V)&&!isArrayLike(V)&&!isGradientObject(V)){if(r){l||(n[F]=V,t.updateDuringAnimation(r));continue}animateToShallow(t,F,n[F],V,a,o&&o[F],s,l)}else R.push(F);else l||(n[F]=V,t.updateDuringAnimation(r),R.push(F))}var G=R.length;if(!v&&G)for(var Y=0;Y<O.length;Y++){var X=O[Y];if(X.targetName===r){var q=X.stopTracks(R);if(q){var Z=indexOf(O,X);O.splice(Z,1)}}}if(a.force||(R=filter(R,function(re){return!isValueSame(i[re],n[re])}),G=R.length),G>0||a.force&&!s.length){var Q=void 0,ie=void 0,J=void 0;if(l){ie={},$&&(Q={});for(var Y=0;Y<G;Y++){var F=R[Y];ie[F]=n[F],$?Q[F]=i[F]:n[F]=i[F]}}else if($){J={};for(var Y=0;Y<G;Y++){var F=R[Y];J[F]=cloneValue(n[F]),copyValue(n,i,F)}}var X=new Animator$1(n,!1,!1,v?filter(O,function(te){return te.targetName===r}):null);X.targetName=r,a.scope&&(X.scope=a.scope),$&&Q&&X.whenWithKeys(0,Q,R),J&&X.whenWithKeys(0,J,R),X.whenWithKeys(c==null?500:c,l?ie:i,R).delay(d||0),t.addAnimator(X,r),s.push(X)}}var Element$2=Element$1,Group$2=function(t){__extends(r,t);function r(n){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(n),i}return r.prototype.childrenRef=function(){return this._children},r.prototype.children=function(){return this._children.slice()},r.prototype.childAt=function(n){return this._children[n]},r.prototype.childOfName=function(n){for(var i=this._children,a=0;a<i.length;a++)if(i[a].name===n)return i[a]},r.prototype.childCount=function(){return this._children.length},r.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},r.prototype.addBefore=function(n,i){if(n&&n!==this&&n.parent!==this&&i&&i.parent===this){var a=this._children,o=a.indexOf(i);o>=0&&(a.splice(o,0,n),this._doAdd(n))}return this},r.prototype.replace=function(n,i){var a=indexOf(this._children,n);return a>=0&&this.replaceAt(i,a),this},r.prototype.replaceAt=function(n,i){var a=this._children,o=a[i];if(n&&n!==this&&n.parent!==this&&n!==o){a[i]=n,o.parent=null;var s=this.__zr;s&&o.removeSelfFromZr(s),this._doAdd(n)}return this},r.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var i=this.__zr;i&&i!==n.__zr&&n.addSelfToZr(i),i&&i.refresh()},r.prototype.remove=function(n){var i=this.__zr,a=this._children,o=indexOf(a,n);return o<0?this:(a.splice(o,1),n.parent=null,i&&n.removeSelfFromZr(i),i&&i.refresh(),this)},r.prototype.removeAll=function(){for(var n=this._children,i=this.__zr,a=0;a<n.length;a++){var o=n[a];i&&o.removeSelfFromZr(i),o.parent=null}return n.length=0,this},r.prototype.eachChild=function(n,i){for(var a=this._children,o=0;o<a.length;o++){var s=a[o];n.call(i,s,o)}return this},r.prototype.traverse=function(n,i){for(var a=0;a<this._children.length;a++){var o=this._children[a],s=n.call(i,o);o.isGroup&&!s&&o.traverse(n,i)}return this},r.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(n)}},r.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(n)}},r.prototype.getBoundingRect=function(n){for(var i=new BoundingRect$1(0,0,0,0),a=n||this._children,o=[],s=null,l=0;l<a.length;l++){var u=a[l];if(!(u.ignore||u.invisible)){var c=u.getBoundingRect(),d=u.getLocalTransform(o);d?(BoundingRect$1.applyTransform(i,c,d),s=s||i.clone(),s.union(i)):(s=s||c.clone(),s.union(c))}}return s||i},r}(Element$2);Group$2.prototype.type="group";var Group$3=Group$2;/*!
123
- * ZRender, a high performance 2d drawing library.
124
- *
125
- * Copyright (c) 2013, Baidu Inc.
126
- * All rights reserved.
127
- *
128
- * LICENSE
129
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
130
- */var painterCtors={},instances$1={};function delInstance(t){delete instances$1[t]}function isDarkMode(t){if(!t)return!1;if(typeof t=="string")return lum(t,1)<DARK_MODE_THRESHOLD;if(t.colorStops){for(var r=t.colorStops,n=0,i=r.length,a=0;a<i;a++)n+=lum(r[a].color,1);return n/=i,n<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function t(r,n,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=n,this.id=r;var o=new Storage$1,s=i.renderer||"canvas";painterCtors[s]||(s=keys(painterCtors)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var l=new painterCtors[s](n,o,i,r),u=i.ssr||l.ssrOnly;this.storage=o,this.painter=l;var c=!env$1.node&&!env$1.worker&&!u?new HandlerProxy(l.getViewportRoot(),l.root):null,d=i.useCoarsePointer,v=d==null||d==="auto"?env$1.touchEventsSupported:!!d,$=44,I;v&&(I=retrieve2(i.pointerSize,$)),this.handler=new Handler$1(o,l,c,l.root,I),this.animation=new Animation$1({stage:{update:u?null:function(){return a._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(r){this._disposed||!r||(this.storage.addRoot(r),r.addSelfToZr(this),this.refresh())},t.prototype.remove=function(r){this._disposed||!r||(this.storage.delRoot(r),r.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(r,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(r,n),this.refresh())},t.prototype.setBackgroundColor=function(r){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(r),this.refresh(),this._backgroundColor=r,this._darkMode=isDarkMode(r))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(r){this._darkMode=r},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(r){this._disposed||(r||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(r){var n,i=getTime();this._needsRefresh&&(n=!0,this.refreshImmediately(r)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=getTime();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(r){this._sleepAfterStill=r},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(r){this._disposed||(r=r||{},this.painter.resize(r.width,r.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(r){this._disposed||this.handler.setCursorStyle(r)},t.prototype.findHover=function(r,n){if(!this._disposed)return this.handler.findHover(r,n)},t.prototype.on=function(r,n,i){return this._disposed||this.handler.on(r,n,i),this},t.prototype.off=function(r,n){this._disposed||this.handler.off(r,n)},t.prototype.trigger=function(r,n){this._disposed||this.handler.trigger(r,n)},t.prototype.clear=function(){if(!this._disposed){for(var r=this.storage.getRoots(),n=0;n<r.length;n++)r[n]instanceof Group$3&&r[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,delInstance(this.id))},t}();function init$1(t,r){var n=new ZRender(guid(),t,r);return instances$1[n.id]=n,n}function registerPainter(t,r){painterCtors[t]=r}var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim(t){return t.replace(/^\s+|\s+$/g,"")}function linearMap(t,r,n,i){var a=r[0],o=r[1],s=n[0],l=n[1],u=o-a,c=l-s;if(u===0)return c===0?s:(s+l)/2;if(i)if(u>0){if(t<=a)return s;if(t>=o)return l}else{if(t>=a)return s;if(t<=o)return l}else{if(t===a)return s;if(t===o)return l}return(t-a)/u*c+s}function parsePercent(t,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return isString(t)?_trim(t).match(/%$/)?parseFloat(t)/100*r:parseFloat(t):t==null?NaN:+t}function round$1(t,r,n){return r==null&&(r=10),r=Math.min(Math.max(0,r),ROUND_SUPPORTED_PRECISION_MAX),t=(+t).toFixed(r),n?t:+t}function getPrecision(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var r=1,n=0;n<15;n++,r*=10)if(Math.round(t*r)/r===t)return n}return getPrecisionSafe(t)}function getPrecisionSafe(t){var r=t.toString().toLowerCase(),n=r.indexOf("e"),i=n>0?+r.slice(n+1):0,a=n>0?n:r.length,o=r.indexOf("."),s=o<0?0:a-1-o;return Math.max(0,s-i)}function getPixelPrecision(t,r){var n=Math.log,i=Math.LN10,a=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(r[1]-r[0]))/i),s=Math.min(Math.max(-a+o,0),20);return isFinite(s)?s:20}function addSafe(t,r){var n=Math.max(getPrecision(t),getPrecision(r)),i=t+r;return n>ROUND_SUPPORTED_PRECISION_MAX?i:round$1(i,n)}function remRadian(t){var r=Math.PI*2;return(t%r+r)%r}function isRadianAroundZero(t){return t>-RADIAN_EPSILON&&t<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(t){if(t instanceof Date)return t;if(isString(t)){var r=TIME_REG.exec(t);if(!r)return new Date(NaN);if(r[8]){var n=+r[4]||0;return r[8].toUpperCase()!=="Z"&&(n-=+r[8].slice(0,3)),new Date(Date.UTC(+r[1],+(r[2]||1)-1,+r[3]||1,n,+(r[5]||0),+r[6]||0,r[7]?+r[7].substring(0,3):0))}else return new Date(+r[1],+(r[2]||1)-1,+r[3]||1,+r[4]||0,+(r[5]||0),+r[6]||0,r[7]?+r[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function quantity(t){return Math.pow(10,quantityExponent(t))}function quantityExponent(t){if(t===0)return 0;var r=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,r)>=10&&r++,r}function nice(t,r){var n=quantityExponent(t),i=Math.pow(10,n),a=t/i,o;return r?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,t=o*i,n>=-20?+t.toFixed(n<0?-n:0):t}function numericToNumber(t){var r=parseFloat(t);return r==t&&(r!==0||!isString(t)||t.indexOf("x")<=0)?r:NaN}function isNumeric(t){return!isNaN(numericToNumber(t))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor(t,r){return r===0?t:getGreatestCommonDividor(r,t%r)}function getLeastCommonMultiple(t,r){return t==null?r:r==null?t:t*r/getGreatestCommonDividor(t,r)}function throwError(t){throw new Error(t)}function interpolateNumber(t,r,n){return(r-t)*n+t}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray(t){return t instanceof Array?t:t==null?[]:[t]}function defaultEmphasis(t,r,n){if(t){t[r]=t[r]||{},t.emphasis=t.emphasis||{},t.emphasis[r]=t.emphasis[r]||{};for(var i=0,a=n.length;i<a;i++){var o=n[i];!t.emphasis[r].hasOwnProperty(o)&&t[r].hasOwnProperty(o)&&(t.emphasis[r][o]=t[r][o])}}}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(t){return isObject$2(t)&&!isArray(t)&&!(t instanceof Date)?t.value:t}function isDataItemOption(t){return isObject$2(t)&&!(t instanceof Array)}function mappingToExists(t,r,n){var i=n==="normalMerge",a=n==="replaceMerge",o=n==="replaceAll";t=t||[],r=(r||[]).slice();var s=createHashMap();each$4(r,function(u,c){if(!isObject$2(u)){r[c]=null;return}});var l=prepareResult(t,s,n);return(i||a)&&mappingById(l,t,s,r),i&&mappingByName(l,r),i||a?mappingByIndex(l,r,a):o&&mappingInReplaceAllMode(l,r),makeIdAndName(l),l}function prepareResult(t,r,n){var i=[];if(n==="replaceAll")return i;for(var a=0;a<t.length;a++){var o=t[a];o&&o.id!=null&&r.set(o.id,a),i.push({existing:n==="replaceMerge"||isComponentIdInternal(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function mappingById(t,r,n,i){each$4(i,function(a,o){if(!(!a||a.id==null)){var s=makeComparableKey(a.id),l=n.get(s);if(l!=null){var u=t[l];assert(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=a,u.existing=r[l],i[o]=null}}})}function mappingByName(t,r){each$4(r,function(n,i){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var o=t[a].existing;if(!t[a].newOption&&o&&(o.id==null||n.id==null)&&!isComponentIdInternal(n)&&!isComponentIdInternal(o)&&keyExistAndEqual("name",o,n)){t[a].newOption=n,r[i]=null;return}}})}function mappingByIndex(t,r,n){each$4(r,function(i){if(!!i){for(var a,o=0;(a=t[o])&&(a.newOption||isComponentIdInternal(a.existing)||a.existing&&i.id!=null&&!keyExistAndEqual("id",i,a.existing));)o++;a?(a.newOption=i,a.brandNew=n):t.push({newOption:i,brandNew:n,existing:null,keyInfo:null}),o++}})}function mappingInReplaceAllMode(t,r){each$4(r,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName(t){var r=createHashMap();each$4(t,function(n){var i=n.existing;i&&r.set(i.id,n)}),each$4(t,function(n){var i=n.newOption;assert(!i||i.id==null||!r.get(i.id)||r.get(i.id)===n,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&r.set(i.id,n),!n.keyInfo&&(n.keyInfo={})}),each$4(t,function(n,i){var a=n.existing,o=n.newOption,s=n.keyInfo;if(!!isObject$2(o)){if(s.name=o.name!=null?makeComparableKey(o.name):a?a.name:DUMMY_COMPONENT_NAME_PREFIX+i,a)s.id=makeComparableKey(a.id);else if(o.id!=null)s.id=makeComparableKey(o.id);else{var l=0;do s.id="\0"+s.name+"\0"+l++;while(r.get(s.id))}r.set(s.id,n)}})}function keyExistAndEqual(t,r,n){var i=convertOptionIdName(r[t],null),a=convertOptionIdName(n[t],null);return i!=null&&a!=null&&i===a}function makeComparableKey(t){return convertOptionIdName(t,"")}function convertOptionIdName(t,r){return t==null?r:isString(t)?t:isNumber(t)||isStringSafe(t)?t+"":r}function isNameSpecified(t){var r=t.name;return!!(r&&r.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal(t){return t&&t.id!=null&&makeComparableKey(t.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function setComponentTypeToKeyInfo(t,r,n){each$4(t,function(i){var a=i.newOption;isObject$2(a)&&(i.keyInfo.mainType=r,i.keyInfo.subType=determineSubType(r,a,i.existing,n))})}function determineSubType(t,r,n,i){var a=r.type?r.type:n?n.subType:i.determineSubType(t,r);return a}function queryDataIndex(t,r){if(r.dataIndexInside!=null)return r.dataIndexInside;if(r.dataIndex!=null)return isArray(r.dataIndex)?map$1(r.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(r.dataIndex);if(r.name!=null)return isArray(r.name)?map$1(r.name,function(n){return t.indexOfName(n)}):t.indexOfName(r.name)}function makeInner(){var t="__ec_inner_"+innerUniqueIndex++;return function(r){return r[t]||(r[t]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder(t,r,n){var i=preParseFinder(r,n),a=i.mainTypeSpecified,o=i.queryOptionMap,s=i.others,l=s,u=n?n.defaultMainType:null;return!a&&u&&o.set(u,{}),o.each(function(c,d){var v=queryReferringComponents(t,d,c,{useDefault:u===d,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});l[d+"Models"]=v.models,l[d+"Model"]=v.models[0]}),l}function preParseFinder(t,r){var n;if(isString(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var a=createHashMap(),o={},s=!1;return each$4(n,function(l,u){if(u==="dataIndex"||u==="dataIndexInside"){o[u]=l;return}var c=u.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],v=(c[2]||"").toLowerCase();if(!(!d||!v||r&&r.includeMainTypes&&indexOf(r.includeMainTypes,d)<0)){s=s||!!d;var $=a.get(d)||a.set(d,{});$[v]=l}}),{mainTypeSpecified:s,queryOptionMap:a,others:o}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1};function queryReferringComponents(t,r,n,i){i=i||SINGLE_REFERRING;var a=n.index,o=n.id,s=n.name,l={models:null,specified:a!=null||o!=null||s!=null};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=t.getComponent(r))?[u]:[],l}return a==="none"||a===!1?(assert(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):(a==="all"&&(assert(i.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),l.models=t.queryComponents({mainType:r,index:a,id:o,name:s}),l)}function setAttribute(t,r,n){t.setAttribute?t.setAttribute(r,n):t[r]=n}function getAttribute(t,r){return t.getAttribute?t.getAttribute(r):t[r]}function getTooltipRenderMode(t){return t==="auto"?env$1.domSupported?"html":"richText":t||"html"}function interpolateRawValues(t,r,n,i,a){var o=r==null||r==="auto";if(i==null)return i;if(isNumber(i)){var s=interpolateNumber(n||0,i,a);return round$1(s,o?Math.max(getPrecision(n||0),getPrecision(i)):r)}else{if(isString(i))return a<1?n:i;for(var l=[],u=n,c=i,d=Math.max(u?u.length:0,c.length),v=0;v<d;++v){var $=t.getDimensionInfo(v);if($&&$.type==="ordinal")l[v]=(a<1&&u?u:c)[v];else{var I=u&&u[v]?u[v]:0,O=c[v],s=interpolateNumber(I,O,a);l[v]=round$1(s,o?Math.max(getPrecision(I),getPrecision(O)):r)}}return l}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType(t){var r={main:"",sub:""};if(t){var n=t.split(TYPE_DELIMITER);r.main=n[0]||"",r.sub=n[1]||""}return r}function checkClassType(t){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function isExtendedClass(t){return!!(t&&t[IS_EXTENDED_CLASS])}function enableClassExtend(t,r){t.$constructor=t,t.extend=function(n){var i=this,a;return isESClass(i)?a=function(o){__extends(s,o);function s(){return o.apply(this,arguments)||this}return s}(i):(a=function(){(n.$constructor||i).apply(this,arguments)},inherits(a,this)),extend(a.prototype,n),a[IS_EXTENDED_CLASS]=!0,a.extend=this.extend,a.superCall=superCall,a.superApply=superApply,a.superClass=i,a}}function isESClass(t){return isFunction(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function mountExtend(t,r){t.extend=r.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck(t){var r=["__\0is_clz",classBase++].join("_");t.prototype[r]=!0,t.isInstance=function(n){return!!(n&&n[r])}}function superCall(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[r].apply(t,n)}function superApply(t,r,n){return this.superClass.prototype[r].apply(t,n)}function enableClassManagement(t){var r={};t.registerClass=function(i){var a=i.type||i.prototype.type;if(a){checkClassType(a),i.prototype.type=a;var o=parseClassType(a);if(!o.sub)r[o.main]=i;else if(o.sub!==IS_CONTAINER){var s=n(o);s[o.sub]=i}}return i},t.getClass=function(i,a,o){var s=r[i];if(s&&s[IS_CONTAINER]&&(s=a?s[a]:null),o&&!s)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return s},t.getClassesByMainType=function(i){var a=parseClassType(i),o=[],s=r[a.main];return s&&s[IS_CONTAINER]?each$4(s,function(l,u){u!==IS_CONTAINER&&o.push(l)}):o.push(s),o},t.hasClass=function(i){var a=parseClassType(i);return!!r[a.main]},t.getAllClassMainTypes=function(){var i=[];return each$4(r,function(a,o){i.push(o)}),i},t.hasSubTypes=function(i){var a=parseClassType(i),o=r[a.main];return o&&o[IS_CONTAINER]};function n(i){var a=r[i.main];return(!a||!a[IS_CONTAINER])&&(a=r[i.main]={},a[IS_CONTAINER]=!0),a}}function makeStyleMapper(t,r){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return r=r||!1,function(i,a,o){for(var s={},l=0;l<t.length;l++){var u=t[l][1];if(!(a&&indexOf(a,u)>=0||o&&indexOf(o,u)<0)){var c=i.getShallow(u,r);c!=null&&(s[t[l][0]]=c)}}return s}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function t(){}return t.prototype.getAreaStyle=function(r,n){return getAreaStyle(this,r,n)},t}(),globalImageCache=new LRU$1(50);function findExistImage(t){if(typeof t=="string"){var r=globalImageCache.get(t);return r&&r.image}else return t}function createOrUpdateImage(t,r,n,i,a){if(t)if(typeof t=="string"){if(r&&r.__zrImageSrc===t||!n)return r;var o=globalImageCache.get(t),s={hostEl:n,cb:i,cbPayload:a};return o?(r=o.image,!isImageReady(r)&&o.pending.push(s)):(r=platformApi.loadImage(t,imageOnLoad,imageOnLoad),r.__zrImageSrc=t,globalImageCache.put(t,r.__cachedImgObj={image:r,pending:[s]})),r}else return t;else return r}function imageOnLoad(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var r=0;r<t.pending.length;r++){var n=t.pending[r],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function isImageReady(t){return t&&t.width&&t.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText(t,r,n,i,a){if(!r)return"";var o=(t+"").split(`
131
- `);a=prepareTruncateOptions(r,n,i,a);for(var s=0,l=o.length;s<l;s++)o[s]=truncateSingleLine(o[s],a);return o.join(`
132
- `)}function prepareTruncateOptions(t,r,n,i){i=i||{};var a=extend({},i);a.font=r,n=retrieve2(n,"..."),a.maxIterations=retrieve2(i.maxIterations,2);var o=a.minChar=retrieve2(i.minChar,0);a.cnCharWidth=getWidth("\u56FD",r);var s=a.ascCharWidth=getWidth("a",r);a.placeholder=retrieve2(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=getWidth(n,r);return c>l&&(n="",c=0),l=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=l,a.containerWidth=t,a}function truncateSingleLine(t,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n)return"";var o=getWidth(t,i);if(o<=n)return t;for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?estimateLength(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=getWidth(t,i)}return t===""&&(t=r.placeholder),t}function estimateLength(t,r,n,i){for(var a=0,o=0,s=t.length;o<s&&a<r;o++){var l=t.charCodeAt(o);a+=0<=l&&l<=127?n:i}return o}function parsePlainText(t,r){t!=null&&(t+="");var n=r.overflow,i=r.padding,a=r.font,o=n==="truncate",s=getLineHeight(a),l=retrieve2(r.lineHeight,s),u=!!r.backgroundColor,c=r.lineOverflow==="truncate",d=r.width,v;d!=null&&(n==="break"||n==="breakAll")?v=t?wrapText(t,r.font,d,n==="breakAll",0).lines:[]:v=t?t.split(`
133
- `):[];var $=v.length*l,I=retrieve2(r.height,$);if($>I&&c){var O=Math.floor(I/l);v=v.slice(0,O)}if(t&&o&&d!=null)for(var R=prepareTruncateOptions(d,a,r.ellipsis,{minChar:r.truncateMinChar,placeholder:r.placeholder}),M=0;M<v.length;M++)v[M]=truncateSingleLine(v[M],R);for(var F=I,V=0,M=0;M<v.length;M++)V=Math.max(getWidth(v[M],a),V);d==null&&(d=V);var G=V;return i&&(F+=i[0]+i[2],G+=i[1]+i[3],d+=i[1]+i[3]),u&&(G=d),{lines:v,height:I,outerWidth:G,outerHeight:F,lineHeight:l,calculatedLineHeight:s,contentWidth:V,contentHeight:$,width:d}}var RichTextToken=function(){function t(){}return t}(),RichTextLine=function(){function t(r){this.tokens=[],r&&(this.tokens=r)}return t}(),RichTextContentBlock=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function parseRichText(t,r){var n=new RichTextContentBlock;if(t!=null&&(t+=""),!t)return n;for(var i=r.width,a=r.height,o=r.overflow,s=(o==="break"||o==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:o==="breakAll"}:null,l=STYLE_REG.lastIndex=0,u;(u=STYLE_REG.exec(t))!=null;){var c=u.index;c>l&&pushTokens(n,t.substring(l,c),r,s),pushTokens(n,u[2],r,s,u[1]),l=STYLE_REG.lastIndex}l<t.length&&pushTokens(n,t.substring(l,t.length),r,s);var d=[],v=0,$=0,I=r.padding,O=o==="truncate",R=r.lineOverflow==="truncate";function M(ge,Te,ke){ge.width=Te,ge.lineHeight=ke,v+=ke,$=Math.max($,Te)}e:for(var F=0;F<n.lines.length;F++){for(var V=n.lines[F],G=0,Y=0,X=0;X<V.tokens.length;X++){var q=V.tokens[X],Z=q.styleName&&r.rich[q.styleName]||{},Q=q.textPadding=Z.padding,ie=Q?Q[1]+Q[3]:0,J=q.font=Z.font||r.font;q.contentHeight=getLineHeight(J);var re=retrieve2(Z.height,q.contentHeight);if(q.innerHeight=re,Q&&(re+=Q[0]+Q[2]),q.height=re,q.lineHeight=retrieve3(Z.lineHeight,r.lineHeight,re),q.align=Z&&Z.align||r.align,q.verticalAlign=Z&&Z.verticalAlign||"middle",R&&a!=null&&v+q.lineHeight>a){X>0?(V.tokens=V.tokens.slice(0,X),M(V,Y,G),n.lines=n.lines.slice(0,F+1)):n.lines=n.lines.slice(0,F);break e}var te=Z.width,oe=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")q.percentWidth=te,d.push(q),q.contentWidth=getWidth(q.text,J);else{if(oe){var le=Z.backgroundColor,fe=le&&le.image;fe&&(fe=findExistImage(fe),isImageReady(fe)&&(q.width=Math.max(q.width,fe.width*re/fe.height)))}var de=O&&i!=null?i-Y:null;de!=null&&de<q.width?!oe||de<ie?(q.text="",q.width=q.contentWidth=0):(q.text=truncateText(q.text,de-ie,J,r.ellipsis,{minChar:r.truncateMinChar}),q.width=q.contentWidth=getWidth(q.text,J)):q.contentWidth=getWidth(q.text,J)}q.width+=ie,Y+=q.width,Z&&(G=Math.max(G,q.lineHeight))}M(V,Y,G)}n.outerWidth=n.width=retrieve2(i,$),n.outerHeight=n.height=retrieve2(a,v),n.contentHeight=v,n.contentWidth=$,I&&(n.outerWidth+=I[1]+I[3],n.outerHeight+=I[0]+I[2]);for(var F=0;F<d.length;F++){var q=d[F],Se=q.percentWidth;q.width=parseInt(Se,10)/100*n.width}return n}function pushTokens(t,r,n,i,a){var o=r==="",s=a&&n.rich[a]||{},l=t.lines,u=s.font||n.font,c=!1,d,v;if(i){var $=s.padding,I=$?$[1]+$[3]:0;if(s.width!=null&&s.width!=="auto"){var O=parsePercent$1(s.width,i.width)+I;l.length>0&&O+i.accumWidth>i.width&&(d=r.split(`
134
- `),c=!0),i.accumWidth=O}else{var R=wrapText(r,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=R.accumWidth+I,v=R.linesWidths,d=R.lines}}else d=r.split(`
135
- `);for(var M=0;M<d.length;M++){var F=d[M],V=new RichTextToken;if(V.styleName=a,V.text=F,V.isLineHolder=!F&&!o,typeof s.width=="number"?V.width=s.width:V.width=v?v[M]:getWidth(F,u),!M&&!c){var G=(l[l.length-1]||(l[0]=new RichTextLine)).tokens,Y=G.length;Y===1&&G[0].isLineHolder?G[0]=V:(F||!Y||o)&&G.push(V)}else l.push(new RichTextLine([V]))}}function isAlphabeticLetter(t){var r=t.charCodeAt(0);return r>=32&&r<=591||r>=880&&r<=4351||r>=4608&&r<=5119||r>=7680&&r<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(t,r){return t[r]=!0,t},{});function isWordBreakChar(t){return isAlphabeticLetter(t)?!!breakCharMap[t]:!0}function wrapText(t,r,n,i,a){for(var o=[],s=[],l="",u="",c=0,d=0,v=0;v<t.length;v++){var $=t.charAt(v);if($===`
136
- `){u&&(l+=u,d+=c),o.push(l),s.push(d),l="",u="",c=0,d=0;continue}var I=getWidth($,r),O=i?!1:!isWordBreakChar($);if(o.length?d+I>n:a+d+I>n){d?(l||u)&&(O?(l||(l=u,u="",c=0,d=c),o.push(l),s.push(d-c),u+=$,c+=I,l="",d=c):(u&&(l+=u,u="",c=0),o.push(l),s.push(d),l=$,d=I)):O?(o.push(u),s.push(c),u=$,c=I):(o.push($),s.push(I));continue}d+=I,O?(u+=$,c+=I):(u&&(l+=u,u="",c=0),l+=$)}return!o.length&&!l&&(l=t,u="",c=0),u&&(l+=u),l&&(o.push(l),s.push(d)),o.length===1&&(d+=a),{accumWidth:d,lines:o,linesWidths:s}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype._init=function(n){for(var i=keys(n),a=0;a<i.length;a++){var o=i[a];o==="style"?this.useStyle(n[o]):t.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(n,i,a,o){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,n,i)||s&&!s[0]&&!s[3])return!1;if(a&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(o&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},r.prototype.contain=function(n,i){return this.rectContain(n,i)},r.prototype.traverse=function(n,i){n.call(i,this)},r.prototype.rectContain=function(n,i){var a=this.transformCoordToLocal(n,i),o=this.getBoundingRect();return o.contain(a[0],a[1])},r.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),o=this.style,s=o.shadowBlur||0,l=o.shadowOffsetX||0,u=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),i?BoundingRect$1.applyTransform(n,a,i):n.copy(a),(s||l||u)&&(n.width+=s*2+Math.abs(l),n.height+=s*2+Math.abs(u),n.x=Math.min(n.x,n.x+l-s),n.y=Math.min(n.y,n.y+u-s));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},r.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(n){return this.animate("style",n)},r.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(n,i){n!=="style"?t.prototype.attrKV.call(this,n,i):this.style?this.setStyle(i):this.useStyle(i)},r.prototype.setStyle=function(n,i){return typeof n=="string"?this.style[n]=i:extend(this.style,n),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},r.prototype.dirty=function(){this.dirtyStyle()},r.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},r.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},r.prototype.createStyle=function(n){return createObject(DEFAULT_COMMON_STYLE,n)},r.prototype.useStyle=function(n){n[STYLE_MAGIC_KEY]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},r.prototype.isStyleObject=function(n){return n[STYLE_MAGIC_KEY]},r.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var i=this._normalState;n.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,i,PRIMARY_STATES_KEYS)},r.prototype._applyStateObj=function(n,i,a,o,s,l){t.prototype._applyStateObj.call(this,n,i,a,o,s,l);var u=!(i&&o),c;if(i&&i.style?s?o?c=i.style:(c=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(c,i.style)):u&&(c=a.style),c)if(s){var d=this.style;if(this.style=this.createStyle(u?{}:d),u)for(var v=keys(d),$=0;$<v.length;$++){var I=v[$];I in c&&(c[I]=c[I],this.style[I]=d[I])}for(var O=keys(c),$=0;$<O.length;$++){var I=O[$];this.style[I]=this.style[I]}this._transitionState(n,{style:c},l,this.getAnimationStyleProps())}else this.useStyle(c);for(var R=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,$=0;$<R.length;$++){var I=R[$];i&&i[I]!=null?this[I]=i[I]:u&&a[I]!=null&&(this[I]=a[I])}},r.prototype._mergeStates=function(n){for(var i=t.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var s=n[o];s.style&&(a=a||{},this._mergeStyle(a,s.style))}return a&&(i.style=a),i},r.prototype._mergeStyle=function(n,i){return extend(n,i),n},r.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},r.initDefaultProps=function(){var n=r.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),r}(Element$2),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled(t,r,n){return tmpRect.copy(t.getBoundingRect()),t.transform&&tmpRect.applyTransform(t.transform),viewRect.width=r,viewRect.height=n,!tmpRect.intersect(viewRect)}var Displayable$1=Displayable,mathMin$4=Math.min,mathMax$4=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$5=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine(t,r,n,i,a,o){a[0]=mathMin$4(t,n),a[1]=mathMin$4(r,i),o[0]=mathMax$4(t,n),o[1]=mathMax$4(r,i)}var xDim=[],yDim=[];function fromCubic(t,r,n,i,a,o,s,l,u,c){var d=cubicExtrema,v=cubicAt,$=d(t,n,a,s,xDim);u[0]=1/0,u[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var I=0;I<$;I++){var O=v(t,n,a,s,xDim[I]);u[0]=mathMin$4(O,u[0]),c[0]=mathMax$4(O,c[0])}$=d(r,i,o,l,yDim);for(var I=0;I<$;I++){var R=v(r,i,o,l,yDim[I]);u[1]=mathMin$4(R,u[1]),c[1]=mathMax$4(R,c[1])}u[0]=mathMin$4(t,u[0]),c[0]=mathMax$4(t,c[0]),u[0]=mathMin$4(s,u[0]),c[0]=mathMax$4(s,c[0]),u[1]=mathMin$4(r,u[1]),c[1]=mathMax$4(r,c[1]),u[1]=mathMin$4(l,u[1]),c[1]=mathMax$4(l,c[1])}function fromQuadratic(t,r,n,i,a,o,s,l){var u=quadraticExtremum,c=quadraticAt,d=mathMax$4(mathMin$4(u(t,n,a),1),0),v=mathMax$4(mathMin$4(u(r,i,o),1),0),$=c(t,n,a,d),I=c(r,i,o,v);s[0]=mathMin$4(t,a,$),s[1]=mathMin$4(r,o,I),l[0]=mathMax$4(t,a,$),l[1]=mathMax$4(r,o,I)}function fromArc(t,r,n,i,a,o,s,l,u){var c=min$1,d=max$1,v=Math.abs(a-o);if(v%PI2$5<1e-4&&v>1e-4){l[0]=t-n,l[1]=r-i,u[0]=t+n,u[1]=r+i;return}if(start[0]=mathCos$3(a)*n+t,start[1]=mathSin$3(a)*i+r,end[0]=mathCos$3(o)*n+t,end[1]=mathSin$3(o)*i+r,c(l,start,end),d(u,start,end),a=a%PI2$5,a<0&&(a=a+PI2$5),o=o%PI2$5,o<0&&(o=o+PI2$5),a>o&&!s?o+=PI2$5:a<o&&s&&(a+=PI2$5),s){var $=o;o=a,a=$}for(var I=0;I<o;I+=Math.PI/2)I>a&&(extremity[0]=mathCos$3(I)*n+t,extremity[1]=mathSin$3(I)*i+r,c(l,extremity,l),d(u,extremity,u))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$3=Math.min,mathMax$3=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$4=PI$4*2,hasTypedArray=typeof Float32Array!="undefined",tmpAngles=[];function modPI2(t){var r=Math.round(t/PI$4*1e8)/1e8;return r%2*PI$4}function normalizeArcAngles(t,r){var n=modPI2(t[0]);n<0&&(n+=PI2$4);var i=n-t[0],a=t[1];a+=i,!r&&a-n>=PI2$4?a=n+PI2$4:r&&n-a>=PI2$4?a=n-PI2$4:!r&&n>a?a=n+(PI2$4-modPI2(n-a)):r&&n<a&&(a=n-(PI2$4-modPI2(a-n))),t[0]=n,t[1]=a}var PathProxy=function(){function t(r){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,r&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(r,n,i){i=i||0,i>0&&(this._ux=mathAbs$1(i/devicePixelRatio/r)||0,this._uy=mathAbs$1(i/devicePixelRatio/n)||0)},t.prototype.setDPR=function(r){this.dpr=r},t.prototype.setContext=function(r){this._ctx=r},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(r,n){return this._drawPendingPt(),this.addData(CMD$2.M,r,n),this._ctx&&this._ctx.moveTo(r,n),this._x0=r,this._y0=n,this._xi=r,this._yi=n,this},t.prototype.lineTo=function(r,n){var i=mathAbs$1(r-this._xi),a=mathAbs$1(n-this._yi),o=i>this._ux||a>this._uy;if(this.addData(CMD$2.L,r,n),this._ctx&&o&&this._ctx.lineTo(r,n),o)this._xi=r,this._yi=n,this._pendingPtDist=0;else{var s=i*i+a*a;s>this._pendingPtDist&&(this._pendingPtX=r,this._pendingPtY=n,this._pendingPtDist=s)}return this},t.prototype.bezierCurveTo=function(r,n,i,a,o,s){return this._drawPendingPt(),this.addData(CMD$2.C,r,n,i,a,o,s),this._ctx&&this._ctx.bezierCurveTo(r,n,i,a,o,s),this._xi=o,this._yi=s,this},t.prototype.quadraticCurveTo=function(r,n,i,a){return this._drawPendingPt(),this.addData(CMD$2.Q,r,n,i,a),this._ctx&&this._ctx.quadraticCurveTo(r,n,i,a),this._xi=i,this._yi=a,this},t.prototype.arc=function(r,n,i,a,o,s){this._drawPendingPt(),tmpAngles[0]=a,tmpAngles[1]=o,normalizeArcAngles(tmpAngles,s),a=tmpAngles[0],o=tmpAngles[1];var l=o-a;return this.addData(CMD$2.A,r,n,i,i,a,l,0,s?0:1),this._ctx&&this._ctx.arc(r,n,i,a,o,s),this._xi=mathCos$2(o)*i+r,this._yi=mathSin$2(o)*i+n,this},t.prototype.arcTo=function(r,n,i,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(r,n,i,a,o),this},t.prototype.rect=function(r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(r,n,i,a),this.addData(CMD$2.R,r,n,i,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var r=this._ctx,n=this._x0,i=this._y0;return r&&r.closePath(),this._xi=n,this._yi=i,this},t.prototype.fill=function(r){r&&r.fill(),this.toStatic()},t.prototype.stroke=function(r){r&&r.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(r){var n=r.length;!(this.data&&this.data.length===n)&&hasTypedArray&&(this.data=new Float32Array(n));for(var i=0;i<n;i++)this.data[i]=r[i];this._len=n},t.prototype.appendPath=function(r){r instanceof Array||(r=[r]);for(var n=r.length,i=0,a=this._len,o=0;o<n;o++)i+=r[o].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+i));for(var o=0;o<n;o++)for(var s=r[o].data,l=0;l<s.length;l++)this.data[a++]=s[l];this._len=a},t.prototype.addData=function(r,n,i,a,o,s,l,u,c){if(!!this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var v=0;v<arguments.length;v++)d[this._len++]=arguments[v]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var r=[],n=0;n<this._len;n++)r[n]=this.data[n];this.data=r}},t.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var r=this.data;r instanceof Array&&(r.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(r)))}},t.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var r=this.data,n=0,i=0,a=0,o=0,s;for(s=0;s<this._len;){var l=r[s++],u=s===1;switch(u&&(n=r[s],i=r[s+1],a=n,o=i),l){case CMD$2.M:n=a=r[s++],i=o=r[s++],min2[0]=a,min2[1]=o,max2[0]=a,max2[1]=o;break;case CMD$2.L:fromLine(n,i,r[s],r[s+1],min2,max2),n=r[s++],i=r[s++];break;case CMD$2.C:fromCubic(n,i,r[s++],r[s++],r[s++],r[s++],r[s],r[s+1],min2,max2),n=r[s++],i=r[s++];break;case CMD$2.Q:fromQuadratic(n,i,r[s++],r[s++],r[s],r[s+1],min2,max2),n=r[s++],i=r[s++];break;case CMD$2.A:var c=r[s++],d=r[s++],v=r[s++],$=r[s++],I=r[s++],O=r[s++]+I;s+=1;var R=!r[s++];u&&(a=mathCos$2(I)*v+c,o=mathSin$2(I)*$+d),fromArc(c,d,v,$,I,O,R,min2,max2),n=mathCos$2(O)*v+c,i=mathSin$2(O)*$+d;break;case CMD$2.R:a=n=r[s++],o=i=r[s++];var M=r[s++],F=r[s++];fromLine(a,o,a+M,o+F,min2,max2);break;case CMD$2.Z:n=a,i=o;break}min$1(min,min,min2),max$1(max,max,max2)}return s===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])},t.prototype._calculateLength=function(){var r=this.data,n=this._len,i=this._ux,a=this._uy,o=0,s=0,l=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,v=0,$=0;$<n;){var I=r[$++],O=$===1;O&&(o=r[$],s=r[$+1],l=o,u=s);var R=-1;switch(I){case CMD$2.M:o=l=r[$++],s=u=r[$++];break;case CMD$2.L:{var M=r[$++],F=r[$++],V=M-o,G=F-s;(mathAbs$1(V)>i||mathAbs$1(G)>a||$===n-1)&&(R=Math.sqrt(V*V+G*G),o=M,s=F);break}case CMD$2.C:{var Y=r[$++],X=r[$++],M=r[$++],F=r[$++],q=r[$++],Z=r[$++];R=cubicLength(o,s,Y,X,M,F,q,Z,10),o=q,s=Z;break}case CMD$2.Q:{var Y=r[$++],X=r[$++],M=r[$++],F=r[$++];R=quadraticLength(o,s,Y,X,M,F,10),o=M,s=F;break}case CMD$2.A:var Q=r[$++],ie=r[$++],J=r[$++],re=r[$++],te=r[$++],oe=r[$++],le=oe+te;$+=1,O&&(l=mathCos$2(te)*J+Q,u=mathSin$2(te)*re+ie),R=mathMax$3(J,re)*mathMin$3(PI2$4,Math.abs(oe)),o=mathCos$2(le)*J+Q,s=mathSin$2(le)*re+ie;break;case CMD$2.R:{l=o=r[$++],u=s=r[$++];var fe=r[$++],de=r[$++];R=fe*2+de*2;break}case CMD$2.Z:{var V=l-o,G=u-s;R=Math.sqrt(V*V+G*G),o=l,s=u;break}}R>=0&&(c[v++]=R,d+=R)}return this._pathLen=d,d},t.prototype.rebuildPath=function(r,n){var i=this.data,a=this._ux,o=this._uy,s=this._len,l,u,c,d,v,$,I=n<1,O,R,M=0,F=0,V,G=0,Y,X;if(I&&(this._pathSegLen||this._calculateLength(),O=this._pathSegLen,R=this._pathLen,V=n*R,!V))return;e:for(var q=0;q<s;){var Z=i[q++],Q=q===1;switch(Q&&(c=i[q],d=i[q+1],l=c,u=d),Z!==CMD$2.L&&G>0&&(r.lineTo(Y,X),G=0),Z){case CMD$2.M:l=c=i[q++],u=d=i[q++],r.moveTo(c,d);break;case CMD$2.L:{v=i[q++],$=i[q++];var ie=mathAbs$1(v-c),J=mathAbs$1($-d);if(ie>a||J>o){if(I){var re=O[F++];if(M+re>V){var te=(V-M)/re;r.lineTo(c*(1-te)+v*te,d*(1-te)+$*te);break e}M+=re}r.lineTo(v,$),c=v,d=$,G=0}else{var oe=ie*ie+J*J;oe>G&&(Y=v,X=$,G=oe)}break}case CMD$2.C:{var le=i[q++],fe=i[q++],de=i[q++],Se=i[q++],ge=i[q++],Te=i[q++];if(I){var re=O[F++];if(M+re>V){var te=(V-M)/re;cubicSubdivide(c,le,de,ge,te,tmpOutX),cubicSubdivide(d,fe,Se,Te,te,tmpOutY),r.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}M+=re}r.bezierCurveTo(le,fe,de,Se,ge,Te),c=ge,d=Te;break}case CMD$2.Q:{var le=i[q++],fe=i[q++],de=i[q++],Se=i[q++];if(I){var re=O[F++];if(M+re>V){var te=(V-M)/re;quadraticSubdivide(c,le,de,te,tmpOutX),quadraticSubdivide(d,fe,Se,te,tmpOutY),r.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}M+=re}r.quadraticCurveTo(le,fe,de,Se),c=de,d=Se;break}case CMD$2.A:var ke=i[q++],Ie=i[q++],me=i[q++],Oe=i[q++],Ve=i[q++],Xe=i[q++],Ge=i[q++],st=!i[q++],at=me>Oe?me:Oe,ft=mathAbs$1(me-Oe)>.001,Le=Ve+Xe,De=!1;if(I){var re=O[F++];M+re>V&&(Le=Ve+Xe*(V-M)/re,De=!0),M+=re}if(ft&&r.ellipse?r.ellipse(ke,Ie,me,Oe,Ge,Ve,Le,st):r.arc(ke,Ie,at,Ve,Le,st),De)break e;Q&&(l=mathCos$2(Ve)*me+ke,u=mathSin$2(Ve)*Oe+Ie),c=mathCos$2(Le)*me+ke,d=mathSin$2(Le)*Oe+Ie;break;case CMD$2.R:l=c=i[q],u=d=i[q+1],v=i[q++],$=i[q++];var Be=i[q++],se=i[q++];if(I){var re=O[F++];if(M+re>V){var ae=V-M;r.moveTo(v,$),r.lineTo(v+mathMin$3(ae,Be),$),ae-=Be,ae>0&&r.lineTo(v+Be,$+mathMin$3(ae,se)),ae-=se,ae>0&&r.lineTo(v+mathMax$3(Be-ae,0),$+se),ae-=Be,ae>0&&r.lineTo(v,$+mathMax$3(se-ae,0));break e}M+=re}r.rect(v,$,Be,se);break;case CMD$2.Z:if(I){var re=O[F++];if(M+re>V){var te=(V-M)/re;r.lineTo(c*(1-te)+l*te,d*(1-te)+u*te);break e}M+=re}r.closePath(),c=l,d=u}}},t.prototype.clone=function(){var r=new t,n=this.data;return r.data=n.slice?n.slice():Array.prototype.slice.call(n),r._len=this._len,r},t.CMD=CMD$2,t.initDefaultProps=function(){var r=t.prototype;r._saveData=!0,r._ux=0,r._uy=0,r._pendingPtDist=0,r._version=0}(),t}(),PathProxy$1=PathProxy;function containStroke$4(t,r,n,i,a,o,s){if(a===0)return!1;var l=a,u=0,c=t;if(s>r+l&&s>i+l||s<r-l&&s<i-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t!==n)u=(r-i)/(t-n),c=(t*i-n*r)/(t-n);else return Math.abs(o-t)<=l/2;var d=u*o-s+c,v=d*d/(u*u+1);return v<=l/2*l/2}function containStroke$3(t,r,n,i,a,o,s,l,u,c,d){if(u===0)return!1;var v=u;if(d>r+v&&d>i+v&&d>o+v&&d>l+v||d<r-v&&d<i-v&&d<o-v&&d<l-v||c>t+v&&c>n+v&&c>a+v&&c>s+v||c<t-v&&c<n-v&&c<a-v&&c<s-v)return!1;var $=cubicProjectPoint(t,r,n,i,a,o,s,l,c,d,null);return $<=v/2}function containStroke$2(t,r,n,i,a,o,s,l,u){if(s===0)return!1;var c=s;if(u>r+c&&u>i+c&&u>o+c||u<r-c&&u<i-c&&u<o-c||l>t+c&&l>n+c&&l>a+c||l<t-c&&l<n-c&&l<a-c)return!1;var d=quadraticProjectPoint(t,r,n,i,a,o,l,u,null);return d<=c/2}var PI2$3=Math.PI*2;function normalizeRadian(t){return t%=PI2$3,t<0&&(t+=PI2$3),t}var PI2$2=Math.PI*2;function containStroke$1(t,r,n,i,a,o,s,l,u){if(s===0)return!1;var c=s;l-=t,u-=r;var d=Math.sqrt(l*l+u*u);if(d-c>n||d+c<n)return!1;if(Math.abs(i-a)%PI2$2<1e-4)return!0;if(o){var v=i;i=normalizeRadian(a),a=normalizeRadian(v)}else i=normalizeRadian(i),a=normalizeRadian(a);i>a&&(a+=PI2$2);var $=Math.atan2(u,l);return $<0&&($+=PI2$2),$>=i&&$<=a||$+PI2$2>=i&&$+PI2$2<=a}function windingLine(t,r,n,i,a,o){if(o>r&&o>i||o<r&&o<i||i===r)return 0;var s=(o-r)/(i-r),l=i<r?1:-1;(s===1||s===0)&&(l=i<r?.5:-.5);var u=s*(n-t)+t;return u===a?1/0:u>a?l:0}var CMD$1=PathProxy$1.CMD,PI2$1=Math.PI*2,EPSILON=1e-4;function isAroundEqual(t,r){return Math.abs(t-r)<EPSILON}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var t=extrema[0];extrema[0]=extrema[1],extrema[1]=t}function windingCubic(t,r,n,i,a,o,s,l,u,c){if(c>r&&c>i&&c>o&&c>l||c<r&&c<i&&c<o&&c<l)return 0;var d=cubicRootAt(r,i,o,l,c,roots);if(d===0)return 0;for(var v=0,$=-1,I=void 0,O=void 0,R=0;R<d;R++){var M=roots[R],F=M===0||M===1?.5:1,V=cubicAt(t,n,a,s,M);V<u||($<0&&($=cubicExtrema(r,i,o,l,extrema),extrema[1]<extrema[0]&&$>1&&swapExtrema(),I=cubicAt(r,i,o,l,extrema[0]),$>1&&(O=cubicAt(r,i,o,l,extrema[1]))),$===2?M<extrema[0]?v+=I<r?F:-F:M<extrema[1]?v+=O<I?F:-F:v+=l<O?F:-F:M<extrema[0]?v+=I<r?F:-F:v+=l<I?F:-F)}return v}function windingQuadratic(t,r,n,i,a,o,s,l){if(l>r&&l>i&&l>o||l<r&&l<i&&l<o)return 0;var u=quadraticRootAt(r,i,o,l,roots);if(u===0)return 0;var c=quadraticExtremum(r,i,o);if(c>=0&&c<=1){for(var d=0,v=quadraticAt(r,i,o,c),$=0;$<u;$++){var I=roots[$]===0||roots[$]===1?.5:1,O=quadraticAt(t,n,a,roots[$]);O<s||(roots[$]<c?d+=v<r?I:-I:d+=o<v?I:-I)}return d}else{var I=roots[0]===0||roots[0]===1?.5:1,O=quadraticAt(t,n,a,roots[0]);return O<s?0:o<r?I:-I}}function windingArc(t,r,n,i,a,o,s,l){if(l-=r,l>n||l<-n)return 0;var u=Math.sqrt(n*n-l*l);roots[0]=-u,roots[1]=u;var c=Math.abs(i-a);if(c<1e-4)return 0;if(c>=PI2$1-1e-4){i=0,a=PI2$1;var d=o?1:-1;return s>=roots[0]+t&&s<=roots[1]+t?d:0}if(i>a){var v=i;i=a,a=v}i<0&&(i+=PI2$1,a+=PI2$1);for(var $=0,I=0;I<2;I++){var O=roots[I];if(O+t>s){var R=Math.atan2(l,O),d=o?1:-1;R<0&&(R=PI2$1+R),(R>=i&&R<=a||R+PI2$1>=i&&R+PI2$1<=a)&&(R>Math.PI/2&&R<Math.PI*1.5&&(d=-d),$+=d)}}return $}function containPath(t,r,n,i,a){for(var o=t.data,s=t.len(),l=0,u=0,c=0,d=0,v=0,$,I,O=0;O<s;){var R=o[O++],M=O===1;switch(R===CMD$1.M&&O>1&&(n||(l+=windingLine(u,c,d,v,i,a))),M&&(u=o[O],c=o[O+1],d=u,v=c),R){case CMD$1.M:d=o[O++],v=o[O++],u=d,c=v;break;case CMD$1.L:if(n){if(containStroke$4(u,c,o[O],o[O+1],r,i,a))return!0}else l+=windingLine(u,c,o[O],o[O+1],i,a)||0;u=o[O++],c=o[O++];break;case CMD$1.C:if(n){if(containStroke$3(u,c,o[O++],o[O++],o[O++],o[O++],o[O],o[O+1],r,i,a))return!0}else l+=windingCubic(u,c,o[O++],o[O++],o[O++],o[O++],o[O],o[O+1],i,a)||0;u=o[O++],c=o[O++];break;case CMD$1.Q:if(n){if(containStroke$2(u,c,o[O++],o[O++],o[O],o[O+1],r,i,a))return!0}else l+=windingQuadratic(u,c,o[O++],o[O++],o[O],o[O+1],i,a)||0;u=o[O++],c=o[O++];break;case CMD$1.A:var F=o[O++],V=o[O++],G=o[O++],Y=o[O++],X=o[O++],q=o[O++];O+=1;var Z=!!(1-o[O++]);$=Math.cos(X)*G+F,I=Math.sin(X)*Y+V,M?(d=$,v=I):l+=windingLine(u,c,$,I,i,a);var Q=(i-F)*Y/G+F;if(n){if(containStroke$1(F,V,Y,X,X+q,Z,r,Q,a))return!0}else l+=windingArc(F,V,Y,X,X+q,Z,Q,a);u=Math.cos(X+q)*G+F,c=Math.sin(X+q)*Y+V;break;case CMD$1.R:d=u=o[O++],v=c=o[O++];var ie=o[O++],J=o[O++];if($=d+ie,I=v+J,n){if(containStroke$4(d,v,$,v,r,i,a)||containStroke$4($,v,$,I,r,i,a)||containStroke$4($,I,d,I,r,i,a)||containStroke$4(d,I,d,v,r,i,a))return!0}else l+=windingLine($,v,$,I,i,a),l+=windingLine(d,I,d,v,i,a);break;case CMD$1.Z:if(n){if(containStroke$4(u,c,d,v,r,i,a))return!0}else l+=windingLine(u,c,d,v,i,a);u=d,c=v;break}}return!n&&!isAroundEqual(c,v)&&(l+=windingLine(u,c,d,v,i,a)||0),l!==0}function contain$1(t,r,n){return containPath(t,0,!1,r,n)}function containStroke(t,r,n,i){return containPath(t,r,!0,n,i)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new r;a.buildPath===r.prototype.buildPath&&(a.buildPath=function(u){n.buildPath(u,n.shape)}),a.silent=!0;var o=a.style;for(var s in i)o[s]!==i[s]&&(o[s]=i[s]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var l=0;l<pathCopyParams.length;++l)a[pathCopyParams[l]]=this[pathCopyParams[l]];a.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},r.prototype.getDecalElement=function(){return this._decalEl},r.prototype._init=function(n){var i=keys(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<i.length;o++){var s=i[o],l=n[s];s==="style"?this.style?extend(this.style,l):this.useStyle(l):s==="shape"?extend(this.shape,l):t.prototype.attrKV.call(this,s,l)}this.style||this.useStyle({})},r.prototype.getDefaultStyle=function(){return null},r.prototype.getDefaultShape=function(){return{}},r.prototype.canBeInsideText=function(){return this.hasFill()},r.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(isString(n)){var i=lum(n,0);return i>.5?DARK_LABEL_COLOR:i>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(n)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},r.prototype.getInsideTextStroke=function(n){var i=this.style.fill;if(isString(i)){var a=this.__zr,o=!!(a&&a.isDarkMode()),s=lum(n,0)<DARK_MODE_THRESHOLD;if(o===s)return i}},r.prototype.buildPath=function(n,i,a){},r.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},r.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},r.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},r.prototype.hasStroke=function(){var n=this.style,i=n.stroke;return!(i==null||i==="none"||!(n.lineWidth>0))},r.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},r.prototype.getBoundingRect=function(){var n=this._rect,i=this.style,a=!n;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var s=this.path;(o||this.__dirty&SHAPE_CHANGED_BIT)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){l.copy(n);var u=i.strokeNoScale?this.getLineScale():1,c=i.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d==null?4:d)}u>1e-10&&(l.width+=c/u,l.height+=c/u,l.x-=c/u/2,l.y-=c/u/2)}return l}return n},r.prototype.contain=function(n,i){var a=this.transformCoordToLocal(n,i),o=this.getBoundingRect(),s=this.style;if(n=a[0],i=a[1],o.contain(n,i)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,c=s.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),containStroke(l,u/c,n,i)))return!0}if(this.hasFill())return contain$1(l,n,i)}return!1},r.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},r.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},r.prototype.animateShape=function(n){return this.animate("shape",n)},r.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(n,i){n==="shape"?this.setShape(i):t.prototype.attrKV.call(this,n,i)},r.prototype.setShape=function(n,i){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=i:extend(a,n),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},r.prototype.createStyle=function(n){return createObject(DEFAULT_PATH_STYLE,n)},r.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var i=this._normalState;n.shape&&!i.shape&&(i.shape=extend({},this.shape))},r.prototype._applyStateObj=function(n,i,a,o,s,l){t.prototype._applyStateObj.call(this,n,i,a,o,s,l);var u=!(i&&o),c;if(i&&i.shape?s?o?c=i.shape:(c=extend({},a.shape),extend(c,i.shape)):(c=extend({},o?this.shape:a.shape),extend(c,i.shape)):u&&(c=a.shape),c)if(s){this.shape=extend({},this.shape);for(var d={},v=keys(c),$=0;$<v.length;$++){var I=v[$];typeof c[I]=="object"?this.shape[I]=c[I]:d[I]=c[I]}this._transitionState(n,{shape:d},l)}else this.shape=c,this.dirtyShape()},r.prototype._mergeStates=function(n){for(var i=t.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var s=n[o];s.shape&&(a=a||{},this._mergeStyle(a,s.shape))}return a&&(i.shape=a),i},r.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},r.prototype.isZeroArea=function(){return!1},r.extend=function(n){var i=function(o){__extends(s,o);function s(l){var u=o.call(this,l)||this;return n.init&&n.init.call(u,l),u}return s.prototype.getDefaultStyle=function(){return clone$2(n.style)},s.prototype.getDefaultShape=function(){return clone$2(n.shape)},s}(r);for(var a in n)typeof n[a]=="function"&&(i.prototype[a]=n[a]);return i},r.initDefaultProps=function(){var n=r.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),r}(Displayable$1),Path$1=Path,DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.hasStroke=function(){var n=this.style,i=n.stroke;return i!=null&&i!=="none"&&n.lineWidth>0},r.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},r.prototype.createStyle=function(n){return createObject(DEFAULT_TSPAN_STYLE,n)},r.prototype.setBoundingRect=function(n){this._rect=n},r.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var i=n.text;i!=null?i+="":i="";var a=getBoundingRect(i,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},r.initDefaultProps=function(){var n=r.prototype;n.dirtyRectTolerance=10}(),r}(Displayable$1);TSpan.prototype.type="tspan";var TSpan$1=TSpan,DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ZRImage=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.createStyle=function(n){return createObject(DEFAULT_IMAGE_STYLE,n)},r.prototype._getSize=function(n){var i=this.style,a=i[n];if(a!=null)return a;var o=isImageLike(i.image)?i.image:this.__image;if(!o)return 0;var s=n==="width"?"height":"width",l=i[s];return l==null?o[n]:o[n]/o[s]*l},r.prototype.getWidth=function(){return this._getSize("width")},r.prototype.getHeight=function(){return this._getSize("height")},r.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},r.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new BoundingRect$1(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},r}(Displayable$1);ZRImage.prototype.type="image";var ZRImage$1=ZRImage;function buildPath$2(t,r){var n=r.x,i=r.y,a=r.width,o=r.height,s=r.r,l,u,c,d;a<0&&(n=n+a,a=-a),o<0&&(i=i+o,o=-o),typeof s=="number"?l=u=c=d=s:s instanceof Array?s.length===1?l=u=c=d=s[0]:s.length===2?(l=c=s[0],u=d=s[1]):s.length===3?(l=s[0],u=d=s[1],c=s[2]):(l=s[0],u=s[1],c=s[2],d=s[3]):l=u=c=d=0;var v;l+u>a&&(v=l+u,l*=a/v,u*=a/v),c+d>a&&(v=c+d,c*=a/v,d*=a/v),u+c>o&&(v=u+c,u*=o/v,c*=o/v),l+d>o&&(v=l+d,l*=o/v,d*=o/v),t.moveTo(n+l,i),t.lineTo(n+a-u,i),u!==0&&t.arc(n+a-u,i+u,u,-Math.PI/2,0),t.lineTo(n+a,i+o-c),c!==0&&t.arc(n+a-c,i+o-c,c,0,Math.PI/2),t.lineTo(n+d,i+o),d!==0&&t.arc(n+d,i+o-d,d,Math.PI/2,Math.PI),t.lineTo(n,i+l),l!==0&&t.arc(n+l,i+l,l,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(t,r,n){if(!!r){var i=r.x1,a=r.x2,o=r.y1,s=r.y2;t.x1=i,t.x2=a,t.y1=o,t.y2=s;var l=n&&n.lineWidth;return l&&(round(i*2)===round(a*2)&&(t.x1=t.x2=subPixelOptimize$1(i,l,!0)),round(o*2)===round(s*2)&&(t.y1=t.y2=subPixelOptimize$1(o,l,!0))),t}}function subPixelOptimizeRect$1(t,r,n){if(!!r){var i=r.x,a=r.y,o=r.width,s=r.height;t.x=i,t.y=a,t.width=o,t.height=s;var l=n&&n.lineWidth;return l&&(t.x=subPixelOptimize$1(i,l,!0),t.y=subPixelOptimize$1(a,l,!0),t.width=Math.max(subPixelOptimize$1(i+o,l,!1)-t.x,o===0?0:1),t.height=Math.max(subPixelOptimize$1(a+s,l,!1)-t.y,s===0?0:1)),t}}function subPixelOptimize$1(t,r,n){if(!r)return t;var i=round(t*2);return(i+round(r))%2===0?i/2:(i+(n?1:-1))/2}var RectShape=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),subPixelOptimizeOutputShape$1={},Rect=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new RectShape},r.prototype.buildPath=function(n,i){var a,o,s,l;if(this.subPixelOptimize){var u=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,i,this.style);a=u.x,o=u.y,s=u.width,l=u.height,u.r=i.r,i=u}else a=i.x,o=i.y,s=i.width,l=i.height;i.r?buildPath$2(n,i):n.rect(a,o,s,l)},r.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},r}(Path$1);Rect.prototype.type="rect";var Rect$1=Rect,DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(t){__extends(r,t);function r(n){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=DEFAULT_RICH_TEXT_COLOR,i.attr(n),i}return r.prototype.childrenRef=function(){return this._children},r.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var i=this._children[n];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},r.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},r.prototype.getLocalTransform=function(n){var i=this.innerTransformable;return i?i.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},r.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},r.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},r.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++)this._children[i].__zr=n},r.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},r.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new BoundingRect$1(0,0,0,0),i=this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s],u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(n.copy(u),n.applyTransform(c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}this._rect=o||n}return this._rect},r.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||DEFAULT_RICH_TEXT_COLOR},r.prototype.setTextContent=function(n){},r.prototype._mergeStyle=function(n,i){if(!i)return n;var a=i.rich,o=n.rich||a&&{};return extend(n,i),a&&o?(this._mergeRich(o,a),n.rich=o):o&&(n.rich=o),n},r.prototype._mergeRich=function(n,i){for(var a=keys(i),o=0;o<a.length;o++){var s=a[o];n[s]=n[s]||{},extend(n[s],i[s])}},r.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},r.prototype._getOrCreateChild=function(n){var i=this._children[this._childCursor];return(!i||!(i instanceof n))&&(i=new n),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},r.prototype._updatePlainTexts=function(){var n=this.style,i=n.font||DEFAULT_FONT,a=n.padding,o=getStyleText(n),s=parsePlainText(o,n),l=needDrawBackground(n),u=!!n.backgroundColor,c=s.outerHeight,d=s.outerWidth,v=s.contentWidth,$=s.lines,I=s.lineHeight,O=this._defaultStyle,R=n.x||0,M=n.y||0,F=n.align||O.align||"left",V=n.verticalAlign||O.verticalAlign||"top",G=R,Y=adjustTextY(M,s.contentHeight,V);if(l||a){var X=adjustTextX(R,d,F),q=adjustTextY(M,c,V);l&&this._renderBackground(n,n,X,q,d,c)}Y+=I/2,a&&(G=getTextXForPadding(R,F,a),V==="top"?Y+=a[0]:V==="bottom"&&(Y-=a[2]));for(var Z=0,Q=!1,ie=getFill("fill"in n?n.fill:(Q=!0,O.fill)),J=getStroke("stroke"in n?n.stroke:!u&&(!O.autoStroke||Q)?(Z=DEFAULT_STROKE_LINE_WIDTH,O.stroke):null),re=n.textShadowBlur>0,te=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),oe=s.calculatedLineHeight,le=0;le<$.length;le++){var fe=this._getOrCreateChild(TSpan$1),de=fe.createStyle();fe.useStyle(de),de.text=$[le],de.x=G,de.y=Y,F&&(de.textAlign=F),de.textBaseline="middle",de.opacity=n.opacity,de.strokeFirst=!0,re&&(de.shadowBlur=n.textShadowBlur||0,de.shadowColor=n.textShadowColor||"transparent",de.shadowOffsetX=n.textShadowOffsetX||0,de.shadowOffsetY=n.textShadowOffsetY||0),de.stroke=J,de.fill=ie,J&&(de.lineWidth=n.lineWidth||Z,de.lineDash=n.lineDash,de.lineDashOffset=n.lineDashOffset||0),de.font=i,setSeparateFont(de,n),Y+=I,te&&fe.setBoundingRect(new BoundingRect$1(adjustTextX(de.x,n.width,de.textAlign),adjustTextY(de.y,oe,de.textBaseline),v,oe))}},r.prototype._updateRichTexts=function(){var n=this.style,i=getStyleText(n),a=parseRichText(i,n),o=a.width,s=a.outerWidth,l=a.outerHeight,u=n.padding,c=n.x||0,d=n.y||0,v=this._defaultStyle,$=n.align||v.align,I=n.verticalAlign||v.verticalAlign,O=adjustTextX(c,s,$),R=adjustTextY(d,l,I),M=O,F=R;u&&(M+=u[3],F+=u[0]);var V=M+o;needDrawBackground(n)&&this._renderBackground(n,n,O,R,s,l);for(var G=!!n.backgroundColor,Y=0;Y<a.lines.length;Y++){for(var X=a.lines[Y],q=X.tokens,Z=q.length,Q=X.lineHeight,ie=X.width,J=0,re=M,te=V,oe=Z-1,le=void 0;J<Z&&(le=q[J],!le.align||le.align==="left");)this._placeToken(le,n,Q,F,re,"left",G),ie-=le.width,re+=le.width,J++;for(;oe>=0&&(le=q[oe],le.align==="right");)this._placeToken(le,n,Q,F,te,"right",G),ie-=le.width,te-=le.width,oe--;for(re+=(o-(re-M)-(V-te)-ie)/2;J<=oe;)le=q[J],this._placeToken(le,n,Q,F,re+le.width/2,"center",G),re+=le.width,J++;F+=Q}},r.prototype._placeToken=function(n,i,a,o,s,l,u){var c=i.rich[n.styleName]||{};c.text=n.text;var d=n.verticalAlign,v=o+a/2;d==="top"?v=o+n.height/2:d==="bottom"&&(v=o+a-n.height/2);var $=!n.isLineHolder&&needDrawBackground(c);$&&this._renderBackground(c,i,l==="right"?s-n.width:l==="center"?s-n.width/2:s,v-n.height/2,n.width,n.height);var I=!!c.backgroundColor,O=n.textPadding;O&&(s=getTextXForPadding(s,l,O),v-=n.height/2-O[0]-n.innerHeight/2);var R=this._getOrCreateChild(TSpan$1),M=R.createStyle();R.useStyle(M);var F=this._defaultStyle,V=!1,G=0,Y=getFill("fill"in c?c.fill:"fill"in i?i.fill:(V=!0,F.fill)),X=getStroke("stroke"in c?c.stroke:"stroke"in i?i.stroke:!I&&!u&&(!F.autoStroke||V)?(G=DEFAULT_STROKE_LINE_WIDTH,F.stroke):null),q=c.textShadowBlur>0||i.textShadowBlur>0;M.text=n.text,M.x=s,M.y=v,q&&(M.shadowBlur=c.textShadowBlur||i.textShadowBlur||0,M.shadowColor=c.textShadowColor||i.textShadowColor||"transparent",M.shadowOffsetX=c.textShadowOffsetX||i.textShadowOffsetX||0,M.shadowOffsetY=c.textShadowOffsetY||i.textShadowOffsetY||0),M.textAlign=l,M.textBaseline="middle",M.font=n.font||DEFAULT_FONT,M.opacity=retrieve3(c.opacity,i.opacity,1),setSeparateFont(M,c),X&&(M.lineWidth=retrieve3(c.lineWidth,i.lineWidth,G),M.lineDash=retrieve2(c.lineDash,i.lineDash),M.lineDashOffset=i.lineDashOffset||0,M.stroke=X),Y&&(M.fill=Y);var Z=n.contentWidth,Q=n.contentHeight;R.setBoundingRect(new BoundingRect$1(adjustTextX(M.x,Z,M.textAlign),adjustTextY(M.y,Q,M.textBaseline),Z,Q))},r.prototype._renderBackground=function(n,i,a,o,s,l){var u=n.backgroundColor,c=n.borderWidth,d=n.borderColor,v=u&&u.image,$=u&&!v,I=n.borderRadius,O=this,R,M;if($||n.lineHeight||c&&d){R=this._getOrCreateChild(Rect$1),R.useStyle(R.createStyle()),R.style.fill=null;var F=R.shape;F.x=a,F.y=o,F.width=s,F.height=l,F.r=I,R.dirtyShape()}if($){var V=R.style;V.fill=u||null,V.fillOpacity=retrieve2(n.fillOpacity,1)}else if(v){M=this._getOrCreateChild(ZRImage$1),M.onload=function(){O.dirtyStyle()};var G=M.style;G.image=u.image,G.x=a,G.y=o,G.width=s,G.height=l}if(c&&d){var V=R.style;V.lineWidth=c,V.stroke=d,V.strokeOpacity=retrieve2(n.strokeOpacity,1),V.lineDash=n.borderDash,V.lineDashOffset=n.borderDashOffset||0,R.strokeContainThreshold=0,R.hasFill()&&R.hasStroke()&&(V.strokeFirst=!0,V.lineWidth*=2)}var Y=(R||M).style;Y.shadowBlur=n.shadowBlur||0,Y.shadowColor=n.shadowColor||"transparent",Y.shadowOffsetX=n.shadowOffsetX||0,Y.shadowOffsetY=n.shadowOffsetY||0,Y.opacity=retrieve3(n.opacity,i.opacity,1)},r.makeFont=function(n){var i="";return hasSeparateFont(n)&&(i=[n.fontStyle,n.fontWeight,parseFontSize(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),i&&trim(i)||n.textFont||n.font},r}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?DEFAULT_FONT_SIZE+"px":t+"px"}function setSeparateFont(t,r){for(var n=0;n<FONT_PARTS.length;n++){var i=FONT_PARTS[n],a=r[i];a!=null&&(t[i]=a)}}function hasSeparateFont(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function normalizeTextStyle(t){return normalizeStyle(t),each$4(t.rich,normalizeStyle),t}function normalizeStyle(t){if(t){t.font=ZRText.makeFont(t);var r=t.align;r==="middle"&&(r="center"),t.align=r==null||VALID_TEXT_ALIGN[r]?r:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||VALID_TEXT_VERTICAL_ALIGN[n]?n:"top";var i=t.padding;i&&(t.padding=normalizeCssArray$1(t.padding))}}function getStroke(t,r){return t==null||r<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function getFill(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function getTextXForPadding(t,r,n){return r==="right"?t-n[1]:r==="center"?t+n[3]/2-n[1]/2:t+n[3]}function getStyleText(t){var r=t.text;return r!=null&&(r+=""),r}function needDrawBackground(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ZRText$1=ZRText,getECData=makeInner(),setCommonECData=function(t,r,n,i){if(i){var a=getECData(i);a.dataIndex=n,a.dataType=r,a.seriesIndex=t,a.ssrType="chart",i.type==="group"&&i.traverse(function(o){var s=getECData(o);s.seriesIndex=t,s.dataIndex=n,s.dataType=r,s.ssrType="chart"})}},_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(t){return t!=null&&t!=="none"}function doChangeHoverState(t,r,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(r),t.hoverState=n}function singleEnterEmphasis(t){doChangeHoverState(t,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis(t){t.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState(t,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur(t){doChangeHoverState(t,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur(t){t.hoverState===HOVER_STATE_BLUR&&doChangeHoverState(t,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect(t){t.selected=!0}function singleLeaveSelect(t){t.selected=!1}function updateElementState(t,r,n){r(t,n)}function traverseUpdateState(t,r,n){updateElementState(t,r,n),t.isGroup&&t.traverse(function(i){updateElementState(i,r,n)})}function setStatesFlag(t,r){switch(r){case"emphasis":t.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":t.hoverState=HOVER_STATE_NORMAL;break;case"blur":t.hoverState=HOVER_STATE_BLUR;break;case"select":t.selected=!0}}function getFromStateStyle(t,r,n,i){for(var a=t.style,o={},s=0;s<r.length;s++){var l=r[s],u=a[l];o[l]=u==null?i&&i[l]:u}for(var s=0;s<t.animators.length;s++){var c=t.animators[s];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(o,r)}return o}function createEmphasisDefaultState(t,r,n,i){var a=n&&indexOf(n,"select")>=0,o=!1;if(t instanceof Path$1){var s=getSavedStates(t),l=a&&s.selectFill||s.normalFill,u=a&&s.selectStroke||s.normalStroke;if(hasFillOrStroke(l)||hasFillOrStroke(u)){i=i||{};var c=i.style||{};c.fill==="inherit"?(o=!0,i=extend({},i),c=extend({},c),c.fill=l):!hasFillOrStroke(c.fill)&&hasFillOrStroke(l)?(o=!0,i=extend({},i),c=extend({},c),c.fill=liftColor(l)):!hasFillOrStroke(c.stroke)&&hasFillOrStroke(u)&&(o||(i=extend({},i),c=extend({},c)),c.stroke=liftColor(u)),i.style=c}}if(i&&i.z2==null){o||(i=extend({},i));var d=t.z2EmphasisLift;i.z2=t.z2+(d!=null?d:Z2_EMPHASIS_LIFT)}return i}function createSelectDefaultState(t,r,n){if(n&&n.z2==null){n=extend({},n);var i=t.z2SelectLift;n.z2=t.z2+(i!=null?i:Z2_SELECT_LIFT)}return n}function createBlurDefaultState(t,r,n){var i=indexOf(t.currentStates,r)>=0,a=t.style.opacity,o=i?null:getFromStateStyle(t,["opacity"],r,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=extend({},n),s=extend({opacity:i?a:o.opacity*.1},s),n.style=s),n}function elementStateProxy(t,r){var n=this.states[t];if(this.style){if(t==="emphasis")return createEmphasisDefaultState(this,t,r,n);if(t==="blur")return createBlurDefaultState(this,t,n);if(t==="select")return createSelectDefaultState(this,t,n)}return n}function setDefaultStateProxy(t){t.stateProxy=elementStateProxy;var r=t.getTextContent(),n=t.getTextGuideLine();r&&(r.stateProxy=elementStateProxy),n&&(n.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleLeaveEmphasis)}function enterEmphasis(t,r){t.__highByOuter|=1<<(r||0),traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasis(t,r){!(t.__highByOuter&=~(1<<(r||0)))&&traverseUpdateState(t,singleLeaveEmphasis)}function enterBlur(t){traverseUpdateState(t,singleEnterBlur)}function leaveBlur(t){traverseUpdateState(t,singleLeaveBlur)}function enterSelect(t){traverseUpdateState(t,singleEnterSelect)}function leaveSelect(t){traverseUpdateState(t,singleLeaveSelect)}function shouldSilent(t,r){return t.__highDownSilentOnTouch&&r.zrByTouch}function allLeaveBlur(t){var r=t.getModel(),n=[],i=[];r.eachComponent(function(a,o){var s=getComponentStates(o),l=a==="series",u=l?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!l&&i.push(u),s.isBlured&&(u.group.traverse(function(c){singleLeaveBlur(c)}),l&&n.push(o)),s.isBlured=!1}),each$4(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,r)})}function blurSeries(t,r,n,i){var a=i.getModel();n=n||"coordinateSystem";function o(c,d){for(var v=0;v<d.length;v++){var $=c.getItemGraphicEl(d[v]);$&&leaveBlur($)}}if(t!=null&&!(!r||r==="none")){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries(function(c){var d=s===c,v=c.coordinateSystem;v&&v.master&&(v=v.master);var $=v&&l?v===l:d;if(!(n==="series"&&!d||n==="coordinateSystem"&&!$||r==="series"&&d)){var I=i.getViewOfSeriesModel(c);if(I.group.traverse(function(M){M.__highByOuter&&d&&r==="self"||singleEnterBlur(M)}),isArrayLike(r))o(c.getData(),r);else if(isObject$2(r))for(var O=keys(r),R=0;R<O.length;R++)o(c.getData(O[R]),r[O[R]]);u.push(c),getComponentStates(c).isBlured=!0}}),a.eachComponent(function(c,d){if(c!=="series"){var v=i.getViewOfComponentModel(d);v&&v.toggleBlurSeries&&v.toggleBlurSeries(u,!0,a)}})}}function blurComponent(t,r,n){if(!(t==null||r==null)){var i=n.getModel().getComponent(t,r);if(!!i){getComponentStates(i).isBlured=!0;var a=n.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(o){singleEnterBlur(o)})}}}function blurSeriesFromHighlightPayload(t,r,n){var i=t.seriesIndex,a=t.getData(r.dataType);if(!!a){var o=queryDataIndex(a,r);o=(isArray(o)?o[0]:o)||0;var s=a.getItemGraphicEl(o);if(!s)for(var l=a.count(),u=0;!s&&u<l;)s=a.getItemGraphicEl(u++);if(s){var c=getECData(s);blurSeries(i,c.focus,c.blurScope,n)}else{var d=t.get(["emphasis","focus"]),v=t.get(["emphasis","blurScope"]);d!=null&&blurSeries(i,d,v,n)}}}function findComponentHighDownDispatchers(t,r,n,i){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||r==null||n==null)return a;var o=i.getModel().getComponent(t,r);if(!o)return a;var s=i.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),u,c=0;c<l.length;c++)if(getECData(l[c]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:l}}function handleGlobalMouseOverForHighDown(t,r,n){var i=getECData(t),a=findComponentHighDownDispatchers(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=a.dispatchers,s=a.focusSelf;o?(s&&blurComponent(i.componentMainType,i.componentIndex,n),each$4(o,function(l){return enterEmphasisWhenMouseOver(l,r)})):(blurSeries(i.seriesIndex,i.focus,i.blurScope,n),i.focus==="self"&&blurComponent(i.componentMainType,i.componentIndex,n),enterEmphasisWhenMouseOver(t,r))}function handleGlobalMouseOutForHighDown(t,r,n){allLeaveBlur(n);var i=getECData(t),a=findComponentHighDownDispatchers(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;a?each$4(a,function(o){return leaveEmphasisWhenMouseOut(o,r)}):leaveEmphasisWhenMouseOut(t,r)}function toggleSelectionFromPayload(t,r,n){if(!!isSelectChangePayload(r)){var i=r.dataType,a=t.getData(i),o=queryDataIndex(a,r);isArray(o)||(o=[o]),t[r.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":r.type===SELECT_ACTION_TYPE?"select":"unselect"](o,i)}}function updateSeriesElementSelection(t){var r=t.getAllData();each$4(r,function(n){var i=n.data,a=n.type;i.eachItemGraphicEl(function(o,s){t.isSelected(s,a)?enterSelect(o):leaveSelect(o)})})}function getAllSelectedIndices(t){var r=[];return t.eachSeries(function(n){var i=n.getAllData();each$4(i,function(a){a.data;var o=a.type,s=n.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:n.seriesIndex};o!=null&&(l.dataType=o),r.push(l)}})}),r}function enableHoverEmphasis(t,r,n){setAsHighDownDispatcher(t,!0),traverseUpdateState(t,setDefaultStateProxy),enableHoverFocus(t,r,n)}function disableHoverEmphasis(t){setAsHighDownDispatcher(t,!1)}function toggleHoverEmphasis(t,r,n,i){i?disableHoverEmphasis(t):enableHoverEmphasis(t,r,n)}function enableHoverFocus(t,r,n){var i=getECData(t);r!=null?(i.focus=r,i.blurScope=n):i.focus&&(i.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(t,r,n,i){n=n||"itemStyle";for(var a=0;a<OTHER_STATES.length;a++){var o=OTHER_STATES[a],s=r.getModel([o,n]),l=t.ensureState(o);l.style=i?i(s):s[defaultStyleGetterMap[n]]()}}function setAsHighDownDispatcher(t,r){var n=r===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function isHighDownDispatcher(t){return!!(t&&t.__highDownDispatcher)}function getHighlightDigit(t){var r=_highlightKeyMap[t];return r==null&&_highlightNextDigit<=32&&(r=_highlightKeyMap[t]=_highlightNextDigit++),r}function isSelectChangePayload(t){var r=t.type;return r===SELECT_ACTION_TYPE||r===UNSELECT_ACTION_TYPE||r===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload(t){var r=t.type;return r===HIGHLIGHT_ACTION_TYPE||r===DOWNPLAY_ACTION_TYPE}function savePathStates(t){var r=getSavedStates(t);r.normalFill=t.style.fill,r.normalStroke=t.style.stroke;var n=t.states.select||{};r.selectFill=n.style&&n.style.fill||null,r.selectStroke=n.style&&n.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath(t,r){if(!!r){var n=t.data,i=t.len(),a,o,s,l,u,c,d=CMD.M,v=CMD.C,$=CMD.L,I=CMD.R,O=CMD.A,R=CMD.Q;for(s=0,l=0;s<i;){switch(a=n[s++],l=s,o=0,a){case d:o=1;break;case $:o=1;break;case v:o=3;break;case R:o=2;break;case O:var M=r[4],F=r[5],V=mathSqrt$2(r[0]*r[0]+r[1]*r[1]),G=mathSqrt$2(r[2]*r[2]+r[3]*r[3]),Y=mathAtan2(-r[1]/G,r[0]/V);n[s]*=V,n[s++]+=M,n[s]*=G,n[s++]+=F,n[s++]*=V,n[s++]*=G,n[s++]+=Y,n[s++]+=Y,s+=2,l=s;break;case I:c[0]=n[s++],c[1]=n[s++],applyTransform$1(c,c,r),n[l++]=c[0],n[l++]=c[1],c[0]+=n[s++],c[1]+=n[s++],applyTransform$1(c,c,r),n[l++]=c[0],n[l++]=c[1]}for(u=0;u<o;u++){var X=points[u];X[0]=n[s++],X[1]=n[s++],applyTransform$1(X,X,r),n[l++]=X[0],n[l++]=X[1]}}t.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function vRatio(t,r){return(t[0]*r[0]+t[1]*r[1])/(vMag(t)*vMag(r))}function vAngle(t,r){return(t[0]*r[1]<t[1]*r[0]?-1:1)*Math.acos(vRatio(t,r))}function processArc(t,r,n,i,a,o,s,l,u,c,d){var v=u*(PI$3/180),$=mathCos$1(v)*(t-n)/2+mathSin$1(v)*(r-i)/2,I=-1*mathSin$1(v)*(t-n)/2+mathCos$1(v)*(r-i)/2,O=$*$/(s*s)+I*I/(l*l);O>1&&(s*=mathSqrt$1(O),l*=mathSqrt$1(O));var R=(a===o?-1:1)*mathSqrt$1((s*s*(l*l)-s*s*(I*I)-l*l*($*$))/(s*s*(I*I)+l*l*($*$)))||0,M=R*s*I/l,F=R*-l*$/s,V=(t+n)/2+mathCos$1(v)*M-mathSin$1(v)*F,G=(r+i)/2+mathSin$1(v)*M+mathCos$1(v)*F,Y=vAngle([1,0],[($-M)/s,(I-F)/l]),X=[($-M)/s,(I-F)/l],q=[(-1*$-M)/s,(-1*I-F)/l],Z=vAngle(X,q);if(vRatio(X,q)<=-1&&(Z=PI$3),vRatio(X,q)>=1&&(Z=0),Z<0){var Q=Math.round(Z/PI$3*1e6)/1e6;Z=PI$3*2+Q%2*PI$3}d.addData(c,V,G,s,l,Y,Z,v,o)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(t){var r=new PathProxy$1;if(!t)return r;var n=0,i=0,a=n,o=i,s,l=PathProxy$1.CMD,u=t.match(commandReg);if(!u)return r;for(var c=0;c<u.length;c++){for(var d=u[c],v=d.charAt(0),$=void 0,I=d.match(numberReg)||[],O=I.length,R=0;R<O;R++)I[R]=parseFloat(I[R]);for(var M=0;M<O;){var F=void 0,V=void 0,G=void 0,Y=void 0,X=void 0,q=void 0,Z=void 0,Q=n,ie=i,J=void 0,re=void 0;switch(v){case"l":n+=I[M++],i+=I[M++],$=l.L,r.addData($,n,i);break;case"L":n=I[M++],i=I[M++],$=l.L,r.addData($,n,i);break;case"m":n+=I[M++],i+=I[M++],$=l.M,r.addData($,n,i),a=n,o=i,v="l";break;case"M":n=I[M++],i=I[M++],$=l.M,r.addData($,n,i),a=n,o=i,v="L";break;case"h":n+=I[M++],$=l.L,r.addData($,n,i);break;case"H":n=I[M++],$=l.L,r.addData($,n,i);break;case"v":i+=I[M++],$=l.L,r.addData($,n,i);break;case"V":i=I[M++],$=l.L,r.addData($,n,i);break;case"C":$=l.C,r.addData($,I[M++],I[M++],I[M++],I[M++],I[M++],I[M++]),n=I[M-2],i=I[M-1];break;case"c":$=l.C,r.addData($,I[M++]+n,I[M++]+i,I[M++]+n,I[M++]+i,I[M++]+n,I[M++]+i),n+=I[M-2],i+=I[M-1];break;case"S":F=n,V=i,J=r.len(),re=r.data,s===l.C&&(F+=n-re[J-4],V+=i-re[J-3]),$=l.C,Q=I[M++],ie=I[M++],n=I[M++],i=I[M++],r.addData($,F,V,Q,ie,n,i);break;case"s":F=n,V=i,J=r.len(),re=r.data,s===l.C&&(F+=n-re[J-4],V+=i-re[J-3]),$=l.C,Q=n+I[M++],ie=i+I[M++],n+=I[M++],i+=I[M++],r.addData($,F,V,Q,ie,n,i);break;case"Q":Q=I[M++],ie=I[M++],n=I[M++],i=I[M++],$=l.Q,r.addData($,Q,ie,n,i);break;case"q":Q=I[M++]+n,ie=I[M++]+i,n+=I[M++],i+=I[M++],$=l.Q,r.addData($,Q,ie,n,i);break;case"T":F=n,V=i,J=r.len(),re=r.data,s===l.Q&&(F+=n-re[J-4],V+=i-re[J-3]),n=I[M++],i=I[M++],$=l.Q,r.addData($,F,V,n,i);break;case"t":F=n,V=i,J=r.len(),re=r.data,s===l.Q&&(F+=n-re[J-4],V+=i-re[J-3]),n+=I[M++],i+=I[M++],$=l.Q,r.addData($,F,V,n,i);break;case"A":G=I[M++],Y=I[M++],X=I[M++],q=I[M++],Z=I[M++],Q=n,ie=i,n=I[M++],i=I[M++],$=l.A,processArc(Q,ie,n,i,q,Z,G,Y,X,$,r);break;case"a":G=I[M++],Y=I[M++],X=I[M++],q=I[M++],Z=I[M++],Q=n,ie=i,n+=I[M++],i+=I[M++],$=l.A,processArc(Q,ie,n,i,q,Z,G,Y,X,$,r);break}}(v==="z"||v==="Z")&&($=l.Z,r.addData($),n=a,i=o),s=$}return r.toStatic(),r}var SVGPath=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.applyTransform=function(n){},r}(Path$1);function isPathProxy(t){return t.setData!=null}function createPathOptions(t,r){var n=createPathProxyFromString(t),i=extend({},r);return i.buildPath=function(a){if(isPathProxy(a)){a.setData(n.data);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=a;n.rebuildPath(o,1)}},i.applyTransform=function(a){transformPath(n,a),this.dirtyShape()},i}function createFromString(t,r){return new SVGPath(createPathOptions(t,r))}function extendFromString(t,r){var n=createPathOptions(t,r),i=function(a){__extends(o,a);function o(s){var l=a.call(this,s)||this;return l.applyTransform=n.applyTransform,l.buildPath=n.buildPath,l}return o}(SVGPath);return i}function mergePath$1(t,r){for(var n=[],i=t.length,a=0;a<i;a++){var o=t[a];n.push(o.getUpdatedPathProxy(!0))}var s=new Path$1(r);return s.createPathProxy(),s.buildPath=function(l){if(isPathProxy(l)){l.appendPath(n);var u=l.getContext();u&&l.rebuildPath(u,1)}},s}var CircleShape=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Circle=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new CircleShape},r.prototype.buildPath=function(n,i){n.moveTo(i.cx+i.r,i.cy),n.arc(i.cx,i.cy,i.r,0,Math.PI*2)},r}(Path$1);Circle.prototype.type="circle";var Circle$1=Circle,EllipseShape=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Ellipse=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new EllipseShape},r.prototype.buildPath=function(n,i){var a=.5522848,o=i.cx,s=i.cy,l=i.rx,u=i.ry,c=l*a,d=u*a;n.moveTo(o-l,s),n.bezierCurveTo(o-l,s-d,o-c,s-u,o,s-u),n.bezierCurveTo(o+c,s-u,o+l,s-d,o+l,s),n.bezierCurveTo(o+l,s+d,o+c,s+u,o,s+u),n.bezierCurveTo(o-c,s+u,o-l,s+d,o-l,s),n.closePath()},r}(Path$1);Ellipse.prototype.type="ellipse";var Ellipse$1=Ellipse,PI$2=Math.PI,PI2=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$2=Math.max,mathMin$2=Math.min,e=1e-4;function intersect(t,r,n,i,a,o,s,l){var u=n-t,c=i-r,d=s-a,v=l-o,$=v*u-d*c;if(!($*$<e))return $=(d*(r-o)-v*(t-a))/$,[t+$*u,r+$*c]}function computeCornerTangents(t,r,n,i,a,o,s){var l=t-n,u=r-i,c=(s?o:-o)/mathSqrt(l*l+u*u),d=c*u,v=-c*l,$=t+d,I=r+v,O=n+d,R=i+v,M=($+O)/2,F=(I+R)/2,V=O-$,G=R-I,Y=V*V+G*G,X=a-o,q=$*R-O*I,Z=(G<0?-1:1)*mathSqrt(mathMax$2(0,X*X*Y-q*q)),Q=(q*G-V*Z)/Y,ie=(-q*V-G*Z)/Y,J=(q*G+V*Z)/Y,re=(-q*V+G*Z)/Y,te=Q-M,oe=ie-F,le=J-M,fe=re-F;return te*te+oe*oe>le*le+fe*fe&&(Q=J,ie=re),{cx:Q,cy:ie,x0:-d,y0:-v,x1:Q*(a/X-1),y1:ie*(a/X-1)}}function normalizeCornerRadius(t){var r;if(isArray(t)){var n=t.length;if(!n)return t;n===1?r=[t[0],t[0],0,0]:n===2?r=[t[0],t[0],t[1],t[1]]:n===3?r=t.concat(t[2]):r=t}else r=[t,t,t,t];return r}function buildPath$1(t,r){var n,i=mathMax$2(r.r,0),a=mathMax$2(r.r0||0,0),o=i>0,s=a>0;if(!(!o&&!s)){if(o||(i=a,a=0),a>i){var l=i;i=a,a=l}var u=r.startAngle,c=r.endAngle;if(!(isNaN(u)||isNaN(c))){var d=r.cx,v=r.cy,$=!!r.clockwise,I=mathAbs(c-u),O=I>PI2&&I%PI2;if(O>e&&(I=O),!(i>e))t.moveTo(d,v);else if(I>PI2-e)t.moveTo(d+i*mathCos(u),v+i*mathSin(u)),t.arc(d,v,i,u,c,!$),a>e&&(t.moveTo(d+a*mathCos(c),v+a*mathSin(c)),t.arc(d,v,a,c,u,$));else{var R=void 0,M=void 0,F=void 0,V=void 0,G=void 0,Y=void 0,X=void 0,q=void 0,Z=void 0,Q=void 0,ie=void 0,J=void 0,re=void 0,te=void 0,oe=void 0,le=void 0,fe=i*mathCos(u),de=i*mathSin(u),Se=a*mathCos(c),ge=a*mathSin(c),Te=I>e;if(Te){var ke=r.cornerRadius;ke&&(n=normalizeCornerRadius(ke),R=n[0],M=n[1],F=n[2],V=n[3]);var Ie=mathAbs(i-a)/2;if(G=mathMin$2(Ie,F),Y=mathMin$2(Ie,V),X=mathMin$2(Ie,R),q=mathMin$2(Ie,M),ie=Z=mathMax$2(G,Y),J=Q=mathMax$2(X,q),(Z>e||Q>e)&&(re=i*mathCos(c),te=i*mathSin(c),oe=a*mathCos(u),le=a*mathSin(u),I<PI$2)){var me=intersect(fe,de,oe,le,re,te,Se,ge);if(me){var Oe=fe-me[0],Ve=de-me[1],Xe=re-me[0],Ge=te-me[1],st=1/mathSin(mathACos((Oe*Xe+Ve*Ge)/(mathSqrt(Oe*Oe+Ve*Ve)*mathSqrt(Xe*Xe+Ge*Ge)))/2),at=mathSqrt(me[0]*me[0]+me[1]*me[1]);ie=mathMin$2(Z,(i-at)/(st+1)),J=mathMin$2(Q,(a-at)/(st-1))}}}if(!Te)t.moveTo(d+fe,v+de);else if(ie>e){var ft=mathMin$2(F,ie),Le=mathMin$2(V,ie),De=computeCornerTangents(oe,le,fe,de,i,ft,$),Be=computeCornerTangents(re,te,Se,ge,i,Le,$);t.moveTo(d+De.cx+De.x0,v+De.cy+De.y0),ie<Z&&ft===Le?t.arc(d+De.cx,v+De.cy,ie,mathATan2(De.y0,De.x0),mathATan2(Be.y0,Be.x0),!$):(ft>0&&t.arc(d+De.cx,v+De.cy,ft,mathATan2(De.y0,De.x0),mathATan2(De.y1,De.x1),!$),t.arc(d,v,i,mathATan2(De.cy+De.y1,De.cx+De.x1),mathATan2(Be.cy+Be.y1,Be.cx+Be.x1),!$),Le>0&&t.arc(d+Be.cx,v+Be.cy,Le,mathATan2(Be.y1,Be.x1),mathATan2(Be.y0,Be.x0),!$))}else t.moveTo(d+fe,v+de),t.arc(d,v,i,u,c,!$);if(!(a>e)||!Te)t.lineTo(d+Se,v+ge);else if(J>e){var ft=mathMin$2(R,J),Le=mathMin$2(M,J),De=computeCornerTangents(Se,ge,re,te,a,-Le,$),Be=computeCornerTangents(fe,de,oe,le,a,-ft,$);t.lineTo(d+De.cx+De.x0,v+De.cy+De.y0),J<Q&&ft===Le?t.arc(d+De.cx,v+De.cy,J,mathATan2(De.y0,De.x0),mathATan2(Be.y0,Be.x0),!$):(Le>0&&t.arc(d+De.cx,v+De.cy,Le,mathATan2(De.y0,De.x0),mathATan2(De.y1,De.x1),!$),t.arc(d,v,a,mathATan2(De.cy+De.y1,De.cx+De.x1),mathATan2(Be.cy+Be.y1,Be.cx+Be.x1),$),ft>0&&t.arc(d+Be.cx,v+Be.cy,ft,mathATan2(Be.y1,Be.x1),mathATan2(Be.y0,Be.x0),!$))}else t.lineTo(d+Se,v+ge),t.arc(d,v,a,c,u,$)}t.closePath()}}}var SectorShape=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),Sector=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new SectorShape},r.prototype.buildPath=function(n,i){buildPath$1(n,i)},r.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},r}(Path$1);Sector.prototype.type="sector";var Sector$1=Sector,RingShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Ring=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new RingShape},r.prototype.buildPath=function(n,i){var a=i.cx,o=i.cy,s=Math.PI*2;n.moveTo(a+i.r,o),n.arc(a,o,i.r,0,s,!1),n.moveTo(a+i.r0,o),n.arc(a,o,i.r0,0,s,!0)},r}(Path$1);Ring.prototype.type="ring";var Ring$1=Ring;function smoothBezier(t,r,n,i){var a=[],o=[],s=[],l=[],u,c,d,v;if(i){d=[1/0,1/0],v=[-1/0,-1/0];for(var $=0,I=t.length;$<I;$++)min$1(d,d,t[$]),max$1(v,v,t[$]);min$1(d,d,i[0]),max$1(v,v,i[1])}for(var $=0,I=t.length;$<I;$++){var O=t[$];if(n)u=t[$?$-1:I-1],c=t[($+1)%I];else if($===0||$===I-1){a.push(clone$1(t[$]));continue}else u=t[$-1],c=t[$+1];sub(o,c,u),scale$2(o,o,r);var R=distance(O,u),M=distance(O,c),F=R+M;F!==0&&(R/=F,M/=F),scale$2(s,o,-R),scale$2(l,o,M);var V=add([],O,s),G=add([],O,l);i&&(max$1(V,V,d),min$1(V,V,v),max$1(G,G,d),min$1(G,G,v)),a.push(V),a.push(G)}return n&&a.push(a.shift()),a}function buildPath(t,r,n){var i=r.smooth,a=r.points;if(a&&a.length>=2){if(i){var o=smoothBezier(a,i,n,r.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(n?s:s-1);l++){var u=o[l*2],c=o[l*2+1],d=a[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],d[0],d[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var l=1,v=a.length;l<v;l++)t.lineTo(a[l][0],a[l][1])}n&&t.closePath()}}var PolygonShape=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Polygon=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new PolygonShape},r.prototype.buildPath=function(n,i){buildPath(n,i,!0)},r}(Path$1);Polygon.prototype.type="polygon";var Polygon$1=Polygon,PolylineShape=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Polyline=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new PolylineShape},r.prototype.buildPath=function(n,i){buildPath(n,i,!1)},r}(Path$1);Polyline.prototype.type="polyline";var Polyline$1=Polyline,subPixelOptimizeOutputShape={},LineShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Line=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new LineShape},r.prototype.buildPath=function(n,i){var a,o,s,l;if(this.subPixelOptimize){var u=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,i,this.style);a=u.x1,o=u.y1,s=u.x2,l=u.y2}else a=i.x1,o=i.y1,s=i.x2,l=i.y2;var c=i.percent;c!==0&&(n.moveTo(a,o),c<1&&(s=a*(1-c)+s*c,l=o*(1-c)+l*c),n.lineTo(s,l))},r.prototype.pointAt=function(n){var i=this.shape;return[i.x1*(1-n)+i.x2*n,i.y1*(1-n)+i.y2*n]},r}(Path$1);Line.prototype.type="line";var Line$1=Line,out=[],BezierCurveShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function someVectorAt(t,r,n){var i=t.cpx2,a=t.cpy2;return i!=null||a!=null?[(n?cubicDerivativeAt:cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,r),(n?cubicDerivativeAt:cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,r)]:[(n?quadraticDerivativeAt:quadraticAt)(t.x1,t.cpx1,t.x2,r),(n?quadraticDerivativeAt:quadraticAt)(t.y1,t.cpy1,t.y2,r)]}var BezierCurve=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new BezierCurveShape},r.prototype.buildPath=function(n,i){var a=i.x1,o=i.y1,s=i.x2,l=i.y2,u=i.cpx1,c=i.cpy1,d=i.cpx2,v=i.cpy2,$=i.percent;$!==0&&(n.moveTo(a,o),d==null||v==null?($<1&&(quadraticSubdivide(a,u,s,$,out),u=out[1],s=out[2],quadraticSubdivide(o,c,l,$,out),c=out[1],l=out[2]),n.quadraticCurveTo(u,c,s,l)):($<1&&(cubicSubdivide(a,u,d,s,$,out),u=out[1],d=out[2],s=out[3],cubicSubdivide(o,c,v,l,$,out),c=out[1],v=out[2],l=out[3]),n.bezierCurveTo(u,c,d,v,s,l)))},r.prototype.pointAt=function(n){return someVectorAt(this.shape,n,!1)},r.prototype.tangentAt=function(n){var i=someVectorAt(this.shape,n,!0);return normalize$1(i,i)},r}(Path$1);BezierCurve.prototype.type="bezier-curve";var BezierCurve$1=BezierCurve,ArcShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Arc=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ArcShape},r.prototype.buildPath=function(n,i){var a=i.cx,o=i.cy,s=Math.max(i.r,0),l=i.startAngle,u=i.endAngle,c=i.clockwise,d=Math.cos(l),v=Math.sin(l);n.moveTo(d*s+a,v*s+o),n.arc(a,o,s,l,u,!c)},r}(Path$1);Arc.prototype.type="arc";var Arc$1=Arc,CompoundPath=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return r.prototype._updatePathDirty=function(){for(var n=this.shape.paths,i=this.shapeChanged(),a=0;a<n.length;a++)i=i||n[a].shapeChanged();i&&this.dirtyShape()},r.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(i[0],i[1],n[a].segmentIgnoreThreshold)},r.prototype.buildPath=function(n,i){for(var a=i.paths||[],o=0;o<a.length;o++)a[o].buildPath(n,a[o].shape,!0)},r.prototype.afterBrush=function(){for(var n=this.shape.paths||[],i=0;i<n.length;i++)n[i].pathUpdated()},r.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},r}(Path$1),CompoundPath$1=CompoundPath,Gradient=function(){function t(r){this.colorStops=r||[]}return t.prototype.addColorStop=function(r,n){this.colorStops.push({offset:r,color:n})},t}(),Gradient$1=Gradient,LinearGradient=function(t){__extends(r,t);function r(n,i,a,o,s,l){var u=t.call(this,s)||this;return u.x=n==null?0:n,u.y=i==null?0:i,u.x2=a==null?1:a,u.y2=o==null?0:o,u.type="linear",u.global=l||!1,u}return r}(Gradient$1),LinearGradient$1=LinearGradient,RadialGradient=function(t){__extends(r,t);function r(n,i,a,o,s){var l=t.call(this,o)||this;return l.x=n==null?.5:n,l.y=i==null?.5:i,l.r=a==null?.5:a,l.type="radial",l.global=s||!1,l}return r}(Gradient$1),RadialGradient$1=RadialGradient,extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function t(r,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Point$1;for(var i=0;i<2;i++)this._axes[i]=new Point$1;r&&this.fromBoundingRect(r,n)}return t.prototype.fromBoundingRect=function(r,n){var i=this._corners,a=this._axes,o=r.x,s=r.y,l=o+r.width,u=s+r.height;if(i[0].set(o,s),i[1].set(l,s),i[2].set(l,u),i[3].set(o,u),n)for(var c=0;c<4;c++)i[c].transform(n);Point$1.sub(a[0],i[1],i[0]),Point$1.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var c=0;c<2;c++)this._origin[c]=a[c].dot(i[0])},t.prototype.intersect=function(r,n){var i=!0,a=!n;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,r,minTv,maxTv,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(r,this,minTv,maxTv,a,-1)&&(i=!1,a)||a||Point$1.copy(n,i?minTv:maxTv),i},t.prototype._intersectCheckOneSide=function(r,n,i,a,o,s){for(var l=!0,u=0;u<2;u++){var c=this._axes[u];if(this._getProjMinMaxOnAxis(u,r._corners,extent),this._getProjMinMaxOnAxis(u,n._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(l=!1,o)return l;var d=Math.abs(extent2[0]-extent[1]),v=Math.abs(extent[0]-extent2[1]);Math.min(d,v)>a.len()&&(d<v?Point$1.scale(a,c,-d*s):Point$1.scale(a,c,v*s))}else if(i){var d=Math.abs(extent2[0]-extent[1]),v=Math.abs(extent[0]-extent2[1]);Math.min(d,v)<i.len()&&(d<v?Point$1.scale(i,c,d*s):Point$1.scale(i,c,-v*s))}}return l},t.prototype._getProjMinMaxOnAxis=function(r,n,i){for(var a=this._axes[r],o=this._origin,s=n[0].dot(a)+o[r],l=s,u=s,c=1;c<n.length;c++){var d=n[c].dot(a)+o[r];l=Math.min(d,l),u=Math.max(d,u)}i[0]=l,i[1]=u},t}(),OrientedBoundingRect$1=OrientedBoundingRect,m=[],IncrementalDisplayable=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return r.prototype.traverse=function(n,i){n.call(i,this)},r.prototype.useStyle=function(){this.style={}},r.prototype.getCursor=function(){return this._cursor},r.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},r.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},r.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},r.prototype.addDisplayable=function(n,i){i?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},r.prototype.addDisplayables=function(n,i){i=i||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],i)},r.prototype.getDisplayables=function(){return this._displayables},r.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},r.prototype.eachPendingDisplayable=function(n){for(var i=this._cursor;i<this._displayables.length;i++)n&&n(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)n&&n(this._temporaryDisplayables[i])},r.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.parent=this,i.update(),i.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var i=this._temporaryDisplayables[n];i.parent=this,i.update(),i.parent=null}},r.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new BoundingRect$1(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(m)),n.union(o)}this._rect=n}return this._rect},r.prototype.contain=function(n,i){var a=this.transformCoordToLocal(n,i),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var s=0;s<this._displayables.length;s++){var l=this._displayables[s];if(l.contain(n,i))return!0}return!1},r}(Displayable$1),IncrementalDisplayable$1=IncrementalDisplayable,transitionStore=makeInner();function getAnimationConfig(t,r,n,i,a){var o;if(r&&r.ecModel){var s=r.ecModel.getUpdatePayload();o=s&&s.animation}var l=r&&r.isAnimationEnabled(),u=t==="update";if(l){var c=void 0,d=void 0,v=void 0;i?(c=retrieve2(i.duration,200),d=retrieve2(i.easing,"cubicOut"),v=0):(c=r.getShallow(u?"animationDurationUpdate":"animationDuration"),d=r.getShallow(u?"animationEasingUpdate":"animationEasing"),v=r.getShallow(u?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(d=o.easing),o.delay!=null&&(v=o.delay)),isFunction(v)&&(v=v(n,a)),isFunction(c)&&(c=c(n));var $={duration:c||0,delay:v,easing:d};return $}else return null}function animateOrSetProps(t,r,n,i,a,o,s){var l=!1,u;isFunction(a)?(s=o,o=a,a=null):isObject$2(a)&&(o=a.cb,s=a.during,l=a.isFrom,u=a.removeOpt,a=a.dataIndex);var c=t==="leave";c||r.stopAnimation("leave");var d=getAnimationConfig(t,i,a,c?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(r,a):null);if(d&&d.duration>0){var v=d.duration,$=d.delay,I=d.easing,O={duration:v,delay:$||0,easing:I,done:o,force:!!o||!!s,setToFinal:!c,scope:t,during:s};l?r.animateFrom(n,O):r.animateTo(n,O)}else r.stopAnimation(),!l&&r.attr(n),s&&s(1),o&&o()}function updateProps$1(t,r,n,i,a,o){animateOrSetProps("update",t,r,n,i,a,o)}function initProps(t,r,n,i,a,o){animateOrSetProps("enter",t,r,n,i,a,o)}function isElementRemoved(t){if(!t.__zr)return!0;for(var r=0;r<t.animators.length;r++){var n=t.animators[r];if(n.scope==="leave")return!0}return!1}function removeElement(t,r,n,i,a,o){isElementRemoved(t)||animateOrSetProps("leave",t,r,n,i,a,o)}function fadeOutDisplayable(t,r,n,i){t.removeTextContent(),t.removeTextGuideLine(),removeElement(t,{style:{opacity:0}},r,n,i)}function removeElementWithFadeOut(t,r,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||fadeOutDisplayable(a,r,n,i)}):fadeOutDisplayable(t,r,n,i)}function saveOldStyle(t){transitionStore(t).oldStyle=t.style}var mathMax$1=Math.max,mathMin$1=Math.min,_customShapeMap={};function extendShape(t){return Path$1.extend(t)}var extendPathFromString=extendFromString;function extendPath(t,r){return extendPathFromString(t,r)}function registerShape(t,r){_customShapeMap[t]=r}function getShapeClass(t){if(_customShapeMap.hasOwnProperty(t))return _customShapeMap[t]}function makePath(t,r,n,i){var a=createFromString(t,r);return n&&(i==="center"&&(n=centerGraphic(n,a.getBoundingRect())),resizePath(a,n)),a}function makeImage(t,r,n){var i=new ZRImage$1({style:{image:t,x:r.x,y:r.y,width:r.width,height:r.height},onload:function(a){if(n==="center"){var o={width:a.width,height:a.height};i.setStyle(centerGraphic(r,o))}}});return i}function centerGraphic(t,r){var n=r.width/r.height,i=t.height*n,a;i<=t.width?a=t.height:(i=t.width,a=i/n);var o=t.x+t.width/2,s=t.y+t.height/2;return{x:o-i/2,y:s-a/2,width:i,height:a}}var mergePath=mergePath$1;function resizePath(t,r){if(!!t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(r);t.applyTransform(i)}}function subPixelOptimizeLine(t,r){return subPixelOptimizeLine$1(t,t,{lineWidth:r}),t}function subPixelOptimizeRect(t){return subPixelOptimizeRect$1(t.shape,t.shape,t.style),t}var subPixelOptimize=subPixelOptimize$1;function getTransform(t,r){for(var n=identity([]);t&&t!==r;)mul(n,t.getLocalTransform(),n),t=t.parent;return n}function applyTransform(t,r,n){return r&&!isArrayLike(r)&&(r=Transformable.getLocalTransform(r)),n&&(r=invert([],r)),applyTransform$1([],t,r)}function transformDirection(t,r,n){var i=r[4]===0||r[5]===0||r[0]===0?1:Math.abs(2*r[4]/r[0]),a=r[4]===0||r[5]===0||r[2]===0?1:Math.abs(2*r[4]/r[2]),o=[t==="left"?-i:t==="right"?i:0,t==="top"?-a:t==="bottom"?a:0];return o=applyTransform(o,r,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function isNotGroup(t){return!t.isGroup}function isPath(t){return t.shape!=null}function groupTransition(t,r,n){if(!t||!r)return;function i(s){var l={};return s.traverse(function(u){isNotGroup(u)&&u.anid&&(l[u.anid]=u)}),l}function a(s){var l={x:s.x,y:s.y,rotation:s.rotation};return isPath(s)&&(l.shape=extend({},s.shape)),l}var o=i(t);r.traverse(function(s){if(isNotGroup(s)&&s.anid){var l=o[s.anid];if(l){var u=a(s);s.attr(a(l)),updateProps$1(s,u,n,getECData(s).dataIndex)}}})}function clipPointsByRect(t,r){return map$1(t,function(n){var i=n[0];i=mathMax$1(i,r.x),i=mathMin$1(i,r.x+r.width);var a=n[1];return a=mathMax$1(a,r.y),a=mathMin$1(a,r.y+r.height),[i,a]})}function clipRectByRect(t,r){var n=mathMax$1(t.x,r.x),i=mathMin$1(t.x+t.width,r.x+r.width),a=mathMax$1(t.y,r.y),o=mathMin$1(t.y+t.height,r.y+r.height);if(i>=n&&o>=a)return{x:n,y:a,width:i-n,height:o-a}}function createIcon(t,r,n){var i=extend({rectHover:!0},r),a=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),defaults(a,n),new ZRImage$1(i)):makePath(t.replace("path://",""),i,n,"center")}function linePolygonIntersect(t,r,n,i,a){for(var o=0,s=a[a.length-1];o<a.length;o++){var l=a[o];if(lineLineIntersect(t,r,n,i,l[0],l[1],s[0],s[1]))return!0;s=l}}function lineLineIntersect(t,r,n,i,a,o,s,l){var u=n-t,c=i-r,d=s-a,v=l-o,$=crossProduct2d(d,v,u,c);if(nearZero($))return!1;var I=t-a,O=r-o,R=crossProduct2d(I,O,u,c)/$;if(R<0||R>1)return!1;var M=crossProduct2d(I,O,d,v)/$;return!(M<0||M>1)}function crossProduct2d(t,r,n,i){return t*i-n*r}function nearZero(t){return t<=1e-6&&t>=-1e-6}function setTooltipConfig(t){var r=t.itemTooltipOption,n=t.componentModel,i=t.itemName,a=isString(r)?{formatter:r}:r,o=n.mainType,s=n.componentIndex,l={componentType:o,name:i,$vars:["name"]};l[o+"Index"]=s;var u=t.formatterParamsExtra;u&&each$4(keys(u),function(d){hasOwn(l,d)||(l[d]=u[d],l.$vars.push(d))});var c=getECData(t.el);c.componentMainType=o,c.componentIndex=s,c.tooltipConfig={name:i,option:defaults({content:i,formatterParams:l},a)}}function traverseElement(t,r){var n;t.isGroup&&(n=r(t)),n||t.traverse(r)}function traverseElements(t,r){if(t)if(isArray(t))for(var n=0;n<t.length;n++)traverseElement(t[n],r);else traverseElement(t,r)}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$1);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);var graphic=Object.freeze(Object.defineProperty({__proto__:null,updateProps:updateProps$1,initProps,removeElement,removeElementWithFadeOut,isElementRemoved,extendShape,extendPath,registerShape,getShapeClass,makePath,makeImage,mergePath,resizePath,subPixelOptimizeLine,subPixelOptimizeRect,subPixelOptimize,getTransform,applyTransform,transformDirection,groupTransition,clipPointsByRect,clipRectByRect,createIcon,linePolygonIntersect,lineLineIntersect,setTooltipConfig,traverseElements,Group:Group$3,Image:ZRImage$1,Text:ZRText$1,Circle:Circle$1,Ellipse:Ellipse$1,Sector:Sector$1,Ring:Ring$1,Polygon:Polygon$1,Polyline:Polyline$1,Rect:Rect$1,Line:Line$1,BezierCurve:BezierCurve$1,Arc:Arc$1,IncrementalDisplayable:IncrementalDisplayable$1,CompoundPath:CompoundPath$1,LinearGradient:LinearGradient$1,RadialGradient:RadialGradient$1,BoundingRect:BoundingRect$1,OrientedBoundingRect:OrientedBoundingRect$1,Point:Point$1,Path:Path$1},Symbol.toStringTag,{value:"Module"})),EMPTY_OBJ={};function setLabelText(t,r){for(var n=0;n<SPECIAL_STATES.length;n++){var i=SPECIAL_STATES[n],a=r[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=a}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:r.normal}),t.useStates(s,!0)}function getLabelText(t,r,n){var i=t.labelFetcher,a=t.labelDataIndex,o=t.labelDimIndex,s=r.normal,l;i&&(l=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),n!=null?{interpolatedValue:n}:null)),l==null&&(l=isFunction(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var u={normal:l},c=0;c<SPECIAL_STATES.length;c++){var d=SPECIAL_STATES[c],v=r[d];u[d]=retrieve2(i?i.getFormattedLabel(a,d,null,o,v&&v.get("formatter")):null,l)}return u}function setLabelStyle(t,r,n,i){n=n||EMPTY_OBJ;for(var a=t instanceof ZRText$1,o=!1,s=0;s<DISPLAY_STATES.length;s++){var l=r[DISPLAY_STATES[s]];if(l&&l.getShallow("show")){o=!0;break}}var u=a?t:t.getTextContent();if(o){a||(u||(u=new ZRText$1,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var c=getLabelText(n,r),d=r.normal,v=!!d.getShallow("show"),$=createTextStyle(d,i&&i.normal,n,!1,!a);$.text=c.normal,a||t.setTextConfig(createTextConfig(d,n,!1));for(var s=0;s<SPECIAL_STATES.length;s++){var I=SPECIAL_STATES[s],l=r[I];if(l){var O=u.ensureState(I),R=!!retrieve2(l.getShallow("show"),v);if(R!==v&&(O.ignore=!R),O.style=createTextStyle(l,i&&i[I],n,!0,!a),O.style.text=c[I],!a){var M=t.ensureState(I);M.textConfig=createTextConfig(l,n,!0)}}}u.silent=!!d.getShallow("silent"),u.style.x!=null&&($.x=u.style.x),u.style.y!=null&&($.y=u.style.y),u.ignore=!v,u.useStyle($),u.dirty(),n.enableTextSetter&&(labelInner(u).setLabelText=function(F){var V=getLabelText(n,r,F);setLabelText(u,V)})}else u&&(u.ignore=!0);t.dirty()}function getLabelStatesModels(t,r){r=r||"label";for(var n={normal:t.getModel(r)},i=0;i<SPECIAL_STATES.length;i++){var a=SPECIAL_STATES[i];n[a]=t.getModel([a,r])}return n}function createTextStyle(t,r,n,i,a){var o={};return setTextStyleCommon(o,t,n,i,a),r&&extend(o,r),o}function createTextConfig(t,r,n){r=r||{};var i={},a,o=t.getShallow("rotate"),s=retrieve2(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=r.defaultOutsidePosition||"top"),a!=null&&(i.position=a),l!=null&&(i.offset=l),o!=null&&(o*=Math.PI/180,i.rotation=o),s!=null&&(i.distance=s),i.outsideFill=t.get("color")==="inherit"?r.inheritColor||null:"auto",i}function setTextStyleCommon(t,r,n,i,a){n=n||EMPTY_OBJ;var o=r.ecModel,s=o&&o.option.textStyle,l=getRichItemNames(r),u;if(l){u={};for(var c in l)if(l.hasOwnProperty(c)){var d=r.getModel(["rich",c]);setTokenTextStyle(u[c]={},d,s,n,i,a,!1,!0)}}u&&(t.rich=u);var v=r.get("overflow");v&&(t.overflow=v);var $=r.get("minMargin");$!=null&&(t.margin=$),setTokenTextStyle(t,r,s,n,i,a,!0,!1)}function getRichItemNames(t){for(var r;t&&t!==t.ecModel;){var n=(t.option||EMPTY_OBJ).rich;if(n){r=r||{};for(var i=keys(n),a=0;a<i.length;a++){var o=i[a];r[o]=1}}t=t.parentModel}return r}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle(t,r,n,i,a,o,s,l){n=!a&&n||EMPTY_OBJ;var u=i&&i.inheritColor,c=r.getShallow("color"),d=r.getShallow("textBorderColor"),v=retrieve2(r.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(u?c=u:c=null),(d==="inherit"||d==="auto")&&(u?d=u:d=null),o||(c=c||n.color,d=d||n.textBorderColor),c!=null&&(t.fill=c),d!=null&&(t.stroke=d);var $=retrieve2(r.getShallow("textBorderWidth"),n.textBorderWidth);$!=null&&(t.lineWidth=$);var I=retrieve2(r.getShallow("textBorderType"),n.textBorderType);I!=null&&(t.lineDash=I);var O=retrieve2(r.getShallow("textBorderDashOffset"),n.textBorderDashOffset);O!=null&&(t.lineDashOffset=O),!a&&v==null&&!l&&(v=i&&i.defaultOpacity),v!=null&&(t.opacity=v),!a&&!o&&t.fill==null&&i.inheritColor&&(t.fill=i.inheritColor);for(var R=0;R<TEXT_PROPS_WITH_GLOBAL.length;R++){var M=TEXT_PROPS_WITH_GLOBAL[R],F=retrieve2(r.getShallow(M),n[M]);F!=null&&(t[M]=F)}for(var R=0;R<TEXT_PROPS_SELF.length;R++){var M=TEXT_PROPS_SELF[R],F=r.getShallow(M);F!=null&&(t[M]=F)}if(t.verticalAlign==null){var V=r.getShallow("baseline");V!=null&&(t.verticalAlign=V)}if(!s||!i.disableBox){for(var R=0;R<TEXT_PROPS_BOX.length;R++){var M=TEXT_PROPS_BOX[R],F=r.getShallow(M);F!=null&&(t[M]=F)}var G=r.getShallow("borderType");G!=null&&(t.borderDash=G),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&u&&(t.backgroundColor=u),(t.borderColor==="auto"||t.borderColor==="inherit")&&u&&(t.borderColor=u)}}function getFont(t,r){var n=r&&r.getModel("textStyle");return trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner(),PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function t(){}return t.prototype.getTextColor=function(r){var n=this.ecModel;return this.getShallow("color")||(!r&&n?n.get(PATH_COLOR):null)},t.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(r){for(var n={text:r,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<textStyleParams.length;i++)n[textStyleParams[i]]=this.getShallow(textStyleParams[i]);return tmpText.useStyle(n),tmpText.update(),tmpText.getBoundingRect()},t}(),TextStyleMixin$1=TextStyleMixin,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 t(){}return t.prototype.getLineStyle=function(r){return getLineStyle(this,r)},t}(),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 t(){}return t.prototype.getItemStyle=function(r,n){return getItemStyle(this,r,n)},t}(),Model=function(){function t(r,n,i){this.parentModel=n,this.ecModel=i,this.option=r}return t.prototype.init=function(r,n,i){},t.prototype.mergeOption=function(r,n){merge(this.option,r,!0)},t.prototype.get=function(r,n){return r==null?this.option:this._doGet(this.parsePath(r),!n&&this.parentModel)},t.prototype.getShallow=function(r,n){var i=this.option,a=i==null?i:i[r];if(a==null&&!n){var o=this.parentModel;o&&(a=o.getShallow(r))}return a},t.prototype.getModel=function(r,n){var i=r!=null,a=i?this.parsePath(r):null,o=i?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var r=this.constructor;return new r(clone$2(this.option))},t.prototype.parsePath=function(r){return typeof r=="string"?r.split("."):r},t.prototype.resolveParentPath=function(r){return r},t.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()}},t.prototype._doGet=function(r,n){var i=this.option;if(!r)return i;for(var a=0;a<r.length&&!(!!r[a]&&(i=i&&typeof i=="object"?i[r[a]]:null,i==null));a++);return i==null&&n&&(i=n._doGet(this.resolveParentPath(r),n.parentModel)),i},t}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);var Model$1=Model,base=Math.round(Math.random()*10);function getUID(t){return[t||"",base++].join("_")}function enableSubTypeDefaulter(t){var r={};t.registerSubTypeDefaulter=function(n,i){var a=parseClassType(n);r[a.main]=i},t.determineSubType=function(n,i){var a=i.type;if(!a){var o=parseClassType(n).main;t.hasSubTypes(n)&&r[o]&&(a=r[o](i))}return a}}function enableTopologicalTravel(t,r){t.topologicalTravel=function(o,s,l,u){if(!o.length)return;var c=n(s),d=c.graph,v=c.noEntryList,$={};for(each$4(o,function(V){$[V]=!0});v.length;){var I=v.pop(),O=d[I],R=!!$[I];R&&(l.call(u,I,O.originalDeps.slice()),delete $[I]),each$4(O.successor,R?F:M)}each$4($,function(){var V="";throw new Error(V)});function M(V){d[V].entryCount--,d[V].entryCount===0&&v.push(V)}function F(V){$[V]=!0,M(V)}};function n(o){var s={},l=[];return each$4(o,function(u){var c=i(s,u),d=c.originalDeps=r(u),v=a(d,o);c.entryCount=v.length,c.entryCount===0&&l.push(u),each$4(v,function($){indexOf(c.predecessor,$)<0&&c.predecessor.push($);var I=i(s,$);indexOf(I.successor,$)<0&&I.successor.push(u)})}),{graph:s,noEntryList:l}}function i(o,s){return o[s]||(o[s]={predecessor:[],successor:[]}),o[s]}function a(o,s){var l=[];return each$4(o,function(u){indexOf(s,u)>=0&&l.push(u)}),l}}function inheritDefaultOption(t,r){return merge(merge({},t,!0),r,!0)}var 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",custom:"Custom chart",chart:"Chart"}},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:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||DEFAULT_LOCALE).toUpperCase();return t.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(t,r){t=t.toUpperCase(),localeModels[t]=new Model$1(r),localeStorage[t]=r}function createLocaleObject(t){if(isString(t)){var r=localeStorage[t.toUpperCase()]||{};return t===LOCALE_ZH||t===LOCALE_EN?clone$2(r):merge(clone$2(r),clone$2(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$2(t),clone$2(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(t){return localeModels[t]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(t,r){return t+="","0000".substr(0,r-t.length)+t}function getPrimaryTimeUnit(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function isPrimaryTimeUnit(t){return t===getPrimaryTimeUnit(t)}function getDefaultFormatPrecisionOfInterval(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format(t,r,n,i){var a=parseDate(t),o=a[fullYearGetterName(n)](),s=a[monthGetterName(n)]()+1,l=Math.floor((s-1)/3)+1,u=a[dateGetterName(n)](),c=a["get"+(n?"UTC":"")+"Day"](),d=a[hoursGetterName(n)](),v=(d-1)%12+1,$=a[minutesGetterName(n)](),I=a[secondsGetterName(n)](),O=a[millisecondsGetterName(n)](),R=i instanceof Model$1?i:getLocaleModel(i||SYSTEM_LANG)||getDefaultLocaleModel(),M=R.getModel("time"),F=M.get("month"),V=M.get("monthAbbr"),G=M.get("dayOfWeek"),Y=M.get("dayOfWeekAbbr");return(r||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,pad(o%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,F[s-1]).replace(/{MMM}/g,V[s-1]).replace(/{MM}/g,pad(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,pad(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,G[c]).replace(/{ee}/g,Y[c]).replace(/{e}/g,c+"").replace(/{HH}/g,pad(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,pad(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,pad($,2)).replace(/{m}/g,$+"").replace(/{ss}/g,pad(I,2)).replace(/{s}/g,I+"").replace(/{SSS}/g,pad(O,3)).replace(/{S}/g,O+"")}function leveledFormat(t,r,n,i,a){var o=null;if(isString(n))o=n;else if(isFunction(n))o=n(t.value,r,{level:t.level});else{var s=extend({},defaultLeveledFormatter);if(t.level>0)for(var l=0;l<primaryTimeUnits.length;++l)s[primaryTimeUnits[l]]="{primary|"+s[primaryTimeUnits[l]]+"}";var u=n?n.inherit===!1?n:defaults(n,s):s,c=getUnitFromValue(t.value,a);if(u[c])o=u[c];else if(u.inherit){for(var d=timeUnits.indexOf(c),l=d-1;l>=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(isArray(o)){var v=t.level==null?0:t.level>=0?t.level:o.length+t.level;v=Math.min(v,o.length-1),o=o[v]}}return format(new Date(t.value),o,a,i)}function getUnitFromValue(t,r){var n=parseDate(t),i=n[monthGetterName(r)]()+1,a=n[dateGetterName(r)](),o=n[hoursGetterName(r)](),s=n[minutesGetterName(r)](),l=n[secondsGetterName(r)](),u=n[millisecondsGetterName(r)](),c=u===0,d=c&&l===0,v=d&&s===0,$=v&&o===0,I=$&&a===1,O=I&&i===1;return O?"year":I?"month":$?"day":v?"hour":d?"minute":c?"second":"millisecond"}function getUnitValue(t,r,n){var i=isNumber(t)?parseDate(t):t;switch(r=r||getUnitFromValue(t,n),r){case"year":return i[fullYearGetterName(n)]();case"half-year":return i[monthGetterName(n)]()>=6?1:0;case"quarter":return Math.floor((i[monthGetterName(n)]()+1)/4);case"month":return i[monthGetterName(n)]();case"day":return i[dateGetterName(n)]();case"half-day":return i[hoursGetterName(n)]()/24;case"hour":return i[hoursGetterName(n)]();case"minute":return i[minutesGetterName(n)]();case"second":return i[secondsGetterName(n)]();case"millisecond":return i[millisecondsGetterName(n)]()}}function fullYearGetterName(t){return t?"getUTCFullYear":"getFullYear"}function monthGetterName(t){return t?"getUTCMonth":"getMonth"}function dateGetterName(t){return t?"getUTCDate":"getDate"}function hoursGetterName(t){return t?"getUTCHours":"getHours"}function minutesGetterName(t){return t?"getUTCMinutes":"getMinutes"}function secondsGetterName(t){return t?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(t){return t?"setUTCFullYear":"setFullYear"}function monthSetterName(t){return t?"setUTCMonth":"setMonth"}function dateSetterName(t){return t?"setUTCDate":"setDate"}function hoursSetterName(t){return t?"setUTCHours":"setHours"}function minutesSetterName(t){return t?"setUTCMinutes":"setMinutes"}function secondsSetterName(t){return t?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(t){return t?"setUTCMilliseconds":"setMilliseconds"}function addCommas(t){if(!isNumeric(t))return isString(t)?t:"-";var r=(t+"").split(".");return r[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(r.length>1?"."+r[1]:"")}function toCamelCase(t,r){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,i){return i.toUpperCase()}),r&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(t,r,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(d){return d&&trim(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var s=r==="time",l=t instanceof Date;if(s||l){var u=s?parseDate(t):t;if(isNaN(+u)){if(l)return"-"}else return format(u,i,n)}if(r==="ordinal")return isStringSafe(t)?a(t):isNumber(t)&&o(t)?t+"":"-";var c=numericToNumber(t);return o(c)?addCommas(c):isStringSafe(t)?a(t):typeof t=="boolean"?t+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(t,r){return"{"+t+(r==null?"":r)+"}"};function formatTpl(t,r,n){isArray(r)||(r=[r]);var i=r.length;if(!i)return"";for(var a=r[0].$vars||[],o=0;o<a.length;o++){var s=TPL_VAR_ALIAS[o];t=t.replace(wrapVar(s),wrapVar(s,0))}for(var l=0;l<i;l++)for(var u=0;u<a.length;u++){var c=r[l][a[u]];t=t.replace(wrapVar(TPL_VAR_ALIAS[u],l),n?encodeHTML(c):c)}return t}function getTooltipMarker(t,r){var n=isString(t)?{color:t,extraCssText:r}:t||{},i=n.color,a=n.type;r=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if(o==="html")return a==="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(i)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(i)+";"+(r||"")+'"></span>';var s=n.markerId||"markerX";return{renderMode:o,content:"{"+s+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function convertToColorString(t,r){return r=r||"transparent",isString(t)?t:isObject$2(t)&&t.colorStops&&(t.colorStops[0]||{}).color||r}function windowOpen(t,r){if(r==="_blank"||r==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,r)}var each$3=each$4,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(t,r,n,i,a){var o=0,s=0;i==null&&(i=1/0),a==null&&(a=1/0);var l=0;r.eachChild(function(u,c){var d=u.getBoundingRect(),v=r.childAt(c+1),$=v&&v.getBoundingRect(),I,O;if(t==="horizontal"){var R=d.width+($?-$.x+d.x:0);I=o+R,I>i||u.newline?(o=0,I=R,s+=l+n,l=d.height):l=Math.max(l,d.height)}else{var M=d.height+($?-$.y+d.y:0);O=s+M,O>a||u.newline?(o+=l+n,s=0,O=M,l=d.width):l=Math.max(l,d.width)}u.newline||(u.x=o,u.y=s,u.markRedraw(),t==="horizontal"?o=I+n:s=O+n)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(t,r,n){n=normalizeCssArray(n||0);var i=r.width,a=r.height,o=parsePercent(t.left,i),s=parsePercent(t.top,a),l=parsePercent(t.right,i),u=parsePercent(t.bottom,a),c=parsePercent(t.width,i),d=parsePercent(t.height,a),v=n[2]+n[0],$=n[1]+n[3],I=t.aspect;switch(isNaN(c)&&(c=i-l-$-o),isNaN(d)&&(d=a-u-v-s),I!=null&&(isNaN(c)&&isNaN(d)&&(I>i/a?c=i*.8:d=a*.8),isNaN(c)&&(c=I*d),isNaN(d)&&(d=c/I)),isNaN(o)&&(o=i-l-c-$),isNaN(s)&&(s=a-u-d-v),t.left||t.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-$;break}switch(t.top||t.bottom){case"middle":case"center":s=a/2-d/2-n[0];break;case"bottom":s=a-d-v;break}o=o||0,s=s||0,isNaN(c)&&(c=i-$-o-(l||0)),isNaN(d)&&(d=a-v-s-(u||0));var O=new BoundingRect$1(o+n[3],s+n[0],c,d);return O.margin=n,O}function fetchLayoutMode(t){var r=t.layoutMode||t.constructor.layoutMode;return isObject$2(r)?r:r?{type:r}:null}function mergeLayoutParam(t,r,n){var i=n&&n.ignoreSize;!isArray(i)&&(i=[i,i]);var a=s(HV_NAMES[0],0),o=s(HV_NAMES[1],1);c(HV_NAMES[0],t,a),c(HV_NAMES[1],t,o);function s(d,v){var $={},I=0,O={},R=0,M=2;if(each$3(d,function(G){O[G]=t[G]}),each$3(d,function(G){l(r,G)&&($[G]=O[G]=r[G]),u($,G)&&I++,u(O,G)&&R++}),i[v])return u(r,d[1])?O[d[2]]=null:u(r,d[2])&&(O[d[1]]=null),O;if(R===M||!I)return O;if(I>=M)return $;for(var F=0;F<d.length;F++){var V=d[F];if(!l($,V)&&l(t,V)){$[V]=t[V];break}}return $}function l(d,v){return d.hasOwnProperty(v)}function u(d,v){return d[v]!=null&&d[v]!=="auto"}function c(d,v,$){each$3(d,function(I){v[I]=$[I]})}}function getLayoutParams(t){return copyLayoutParams({},t)}function copyLayoutParams(t,r){return r&&t&&each$3(LOCATION_PARAMS,function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t}var inner$9=makeInner(),ComponentModel=function(t){__extends(r,t);function r(n,i,a){var o=t.call(this,n,i,a)||this;return o.uid=getUID("ec_cpt_model"),o}return r.prototype.init=function(n,i,a){this.mergeDefaultAndTheme(n,a)},r.prototype.mergeDefaultAndTheme=function(n,i){var a=fetchLayoutMode(this),o=a?getLayoutParams(n):{},s=i.getTheme();merge(n,s.get(this.mainType)),merge(n,this.getDefaultOption()),a&&mergeLayoutParam(n,o,a)},r.prototype.mergeOption=function(n,i){merge(this.option,n,!0);var a=fetchLayoutMode(this);a&&mergeLayoutParam(this.option,n,a)},r.prototype.optionUpdated=function(n,i){},r.prototype.getDefaultOption=function(){var n=this.constructor;if(!isExtendedClass(n))return n.defaultOption;var i=inner$9(this);if(!i.defaultOption){for(var a=[],o=n;o;){var s=o.prototype.defaultOption;s&&a.push(s),o=o.superClass}for(var l={},u=a.length-1;u>=0;u--)l=merge(l,a[u],!0);i.defaultOption=l}return i.defaultOption},r.prototype.getReferringComponents=function(n,i){var a=n+"Index",o=n+"Id";return queryReferringComponents(this.ecModel,n,{index:this.get(a,!0),id:this.get(o,!0)},i)},r.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},r.prototype.getZLevelKey=function(){return""},r.prototype.setZLevel=function(n){this.option.zlevel=n},r.protoInitialize=function(){var n=r.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),r}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(t){var r=[];return each$4(ComponentModel.getClassesByMainType(t),function(n){r=r.concat(n.dependencies||n.prototype.dependencies||[])}),r=map$1(r,function(n){return parseClassType(n).main}),t!=="dataset"&&indexOf(r,"dataset")<=0&&r.unshift("dataset"),r}var ComponentModel$1=ComponentModel,platform="";typeof navigator!="undefined"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)",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},VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(t){innerGlobalModel(t).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(t,r,n){var i={},a=querySeriesUpstreamDatasetModel(r);if(!a||!t)return i;var o=[],s=[],l=r.ecModel,u=innerGlobalModel(l).datasetMap,c=a.uid+"_"+n.seriesLayoutBy,d,v;t=t.slice(),each$4(t,function(R,M){var F=isObject$2(R)?R:t[M]={name:R};F.type==="ordinal"&&d==null&&(d=M,v=O(F)),i[F.name]=[]});var $=u.get(c)||u.set(c,{categoryWayDim:v,valueWayDim:0});each$4(t,function(R,M){var F=R.name,V=O(R);if(d==null){var G=$.valueWayDim;I(i[F],G,V),I(s,G,V),$.valueWayDim+=V}else if(d===M)I(i[F],0,V),I(o,0,V);else{var G=$.categoryWayDim;I(i[F],G,V),I(s,G,V),$.categoryWayDim+=V}});function I(R,M,F){for(var V=0;V<F;V++)R.push(M+V)}function O(R){var M=R.dimsDef;return M?M.length:1}return o.length&&(i.itemName=o),s.length&&(i.seriesName=s),i}function querySeriesUpstreamDatasetModel(t){var r=t.get("data",!0);if(!r)return queryReferringComponents(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:queryReferringComponents(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal(t,r){return doGuessOrdinal(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,r)}function doGuessOrdinal(t,r,n,i,a,o){var s,l=5;if(isTypedArray(t))return BE_ORDINAL.Not;var u,c;if(i){var d=i[o];isObject$2(d)?(u=d.name,c=d.type):isString(d)&&(u=d)}if(c!=null)return c==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(r===SOURCE_FORMAT_ARRAY_ROWS){var v=t;if(n===SERIES_LAYOUT_BY_ROW){for(var $=v[o],I=0;I<($||[]).length&&I<l;I++)if((s=Y($[a+I]))!=null)return s}else for(var I=0;I<v.length&&I<l;I++){var O=v[a+I];if(O&&(s=Y(O[o]))!=null)return s}}else if(r===SOURCE_FORMAT_OBJECT_ROWS){var R=t;if(!u)return BE_ORDINAL.Not;for(var I=0;I<R.length&&I<l;I++){var M=R[I];if(M&&(s=Y(M[u]))!=null)return s}}else if(r===SOURCE_FORMAT_KEYED_COLUMNS){var F=t;if(!u)return BE_ORDINAL.Not;var $=F[u];if(!$||isTypedArray($))return BE_ORDINAL.Not;for(var I=0;I<$.length&&I<l;I++)if((s=Y($[I]))!=null)return s}else if(r===SOURCE_FORMAT_ORIGINAL)for(var V=t,I=0;I<V.length&&I<l;I++){var M=V[I],G=getDataItemValue(M);if(!isArray(G))return BE_ORDINAL.Not;if((s=Y(G[o]))!=null)return s}function Y(X){var q=isString(X);if(X!=null&&isFinite(X)&&X!=="")return q?BE_ORDINAL.Might:BE_ORDINAL.Not;if(q&&X!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function concatInternalOptions(t,r,n){var i=internalOptionCreatorMap.get(r);if(!i)return n;var a=i(t);return a?n.concat(a):n}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function t(){}return t.prototype.getColorFromPalette=function(r,n,i){var a=normalizeToArray(this.get("color",!0)),o=this.get("colorLayer",!0);return getFromPalette(this,innerColor,a,o,r,n,i)},t.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},t}();function getNearestPalette(t,r){for(var n=t.length,i=0;i<n;i++)if(t[i].length>r)return t[i];return t[n-1]}function getFromPalette(t,r,n,i,a,o,s){o=o||t;var l=r(o),u=l.paletteIdx||0,c=l.paletteNameMap=l.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var d=s==null||!i?n:getNearestPalette(i,s);if(d=d||n,!(!d||!d.length)){var v=d[u];return a&&(c[a]=v),l.paletteIdx=(u+1)%d.length,v}}function clearPalette(t,r){r(t).paletteIdx=0,r(t).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(n,i,a,o,s,l){o=o||{},this.option=null,this._theme=new Model$1(o),this._locale=new Model$1(s),this._optionManager=l},r.prototype.setOption=function(n,i,a){var o=normalizeSetOptionInput(i);this._optionManager.setOption(n,a,o),this._resetOption(null,o)},r.prototype.resetOption=function(n,i){return this._resetOption(n,normalizeSetOptionInput(i))},r.prototype._resetOption=function(n,i){var a=!1,o=this._optionManager;if(!n||n==="recreate"){var s=o.mountOption(n==="recreate");!this.option||n==="recreate"?initBase(this,s):(this.restoreData(),this._mergeOption(s,i)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=o.getTimelineOption(this);l&&(a=!0,this._mergeOption(l,i))}if(!n||n==="recreate"||n==="media"){var u=o.getMediaOption(this);u.length&&each$4(u,function(c){a=!0,this._mergeOption(c,i)},this)}return a},r.prototype.mergeOption=function(n){this._mergeOption(n,null)},r.prototype._mergeOption=function(n,i){var a=this.option,o=this._componentsMap,s=this._componentsCount,l=[],u=createHashMap(),c=i&&i.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$4(n,function(v,$){v!=null&&(ComponentModel$1.hasClass($)?$&&(l.push($),u.set($,!0)):a[$]=a[$]==null?clone$2(v):merge(a[$],v,!0))}),c&&c.each(function(v,$){ComponentModel$1.hasClass($)&&!u.get($)&&(l.push($),u.set($,!0))}),ComponentModel$1.topologicalTravel(l,ComponentModel$1.getAllClassMainTypes(),d,this);function d(v){var $=concatInternalOptions(this,v,normalizeToArray(n[v])),I=o.get(v),O=I?c&&c.get(v)?"replaceMerge":"normalMerge":"replaceAll",R=mappingToExists(I,$,O);setComponentTypeToKeyInfo(R,v,ComponentModel$1),a[v]=null,o.set(v,null),s.set(v,0);var M=[],F=[],V=0,G;each$4(R,function(Y,X){var q=Y.existing,Z=Y.newOption;if(!Z)q&&(q.mergeOption({},this),q.optionUpdated({},!1));else{var Q=v==="series",ie=ComponentModel$1.getClass(v,Y.keyInfo.subType,!Q);if(!ie)return;if(v==="tooltip"){if(G)return;G=!0}if(q&&q.constructor===ie)q.name=Y.keyInfo.name,q.mergeOption(Z,this),q.optionUpdated(Z,!1);else{var J=extend({componentIndex:X},Y.keyInfo);q=new ie(Z,this,this,J),extend(q,J),Y.brandNew&&(q.__requireNewView=!0),q.init(Z,this,this),q.optionUpdated(null,!0)}}q?(M.push(q.option),F.push(q),V++):(M.push(void 0),F.push(void 0))},this),a[v]=M,o.set(v,F),s.set(v,V),v==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},r.prototype.getOption=function(){var n=clone$2(this.option);return each$4(n,function(i,a){if(ComponentModel$1.hasClass(a)){for(var o=normalizeToArray(i),s=o.length,l=!1,u=s-1;u>=0;u--)o[u]&&!isComponentIdInternal(o[u])?l=!0:(o[u]=null,!l&&s--);o.length=s,n[a]=o}}),delete n[OPTION_INNER_KEY],n},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.setUpdatePayload=function(n){this._payload=n},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function(n,i){var a=this._componentsMap.get(n);if(a){var o=a[i||0];if(o)return o;if(i==null){for(var s=0;s<a.length;s++)if(a[s])return a[s]}}},r.prototype.queryComponents=function(n){var i=n.mainType;if(!i)return[];var a=n.index,o=n.id,s=n.name,l=this._componentsMap.get(i);if(!l||!l.length)return[];var u;return a!=null?(u=[],each$4(normalizeToArray(a),function(c){l[c]&&u.push(l[c])})):o!=null?u=queryByIdOrName("id",o,l):s!=null?u=queryByIdOrName("name",s,l):u=filter(l,function(c){return!!c}),filterBySubType(u,n)},r.prototype.findComponents=function(n){var i=n.query,a=n.mainType,o=l(i),s=o?this.queryComponents(o):filter(this._componentsMap.get(a),function(c){return!!c});return u(filterBySubType(s,n));function l(c){var d=a+"Index",v=a+"Id",$=a+"Name";return c&&(c[d]!=null||c[v]!=null||c[$]!=null)?{mainType:a,index:c[d],id:c[v],name:c[$]}:null}function u(c){return n.filter?filter(c,n.filter):c}},r.prototype.eachComponent=function(n,i,a){var o=this._componentsMap;if(isFunction(n)){var s=i,l=n;o.each(function(v,$){for(var I=0;v&&I<v.length;I++){var O=v[I];O&&l.call(s,$,O,O.componentIndex)}})}else for(var u=isString(n)?o.get(n):isObject$2(n)?this.findComponents(n):null,c=0;u&&c<u.length;c++){var d=u[c];d&&i.call(a,d,d.componentIndex)}},r.prototype.getSeriesByName=function(n){var i=convertOptionIdName(n,null);return filter(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},r.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},r.prototype.getSeriesByType=function(n){return filter(this._componentsMap.get("series"),function(i){return!!i&&i.subType===n})},r.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(n){return!!n})},r.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},r.prototype.eachSeries=function(n,i){assertSeriesInitialized(this),each$4(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(i,o,a)},this)},r.prototype.eachRawSeries=function(n,i){each$4(this._componentsMap.get("series"),function(a){a&&n.call(i,a,a.componentIndex)})},r.prototype.eachSeriesByType=function(n,i,a){assertSeriesInitialized(this),each$4(this._seriesIndices,function(o){var s=this._componentsMap.get("series")[o];s.subType===n&&i.call(a,s,o)},this)},r.prototype.eachRawSeriesByType=function(n,i,a){return each$4(this.getSeriesByType(n),i,a)},r.prototype.isSeriesFiltered=function(n){return assertSeriesInitialized(this),this._seriesIndicesMap.get(n.componentIndex)==null},r.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},r.prototype.filterSeries=function(n,i){assertSeriesInitialized(this);var a=[];each$4(this._seriesIndices,function(o){var s=this._componentsMap.get("series")[o];n.call(i,s,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=createHashMap(a)},r.prototype.restoreData=function(n){reCreateSeriesIndices(this);var i=this._componentsMap,a=[];i.each(function(o,s){ComponentModel$1.hasClass(s)&&a.push(s)}),ComponentModel$1.topologicalTravel(a,ComponentModel$1.getAllClassMainTypes(),function(o){each$4(i.get(o),function(s){s&&(o!=="series"||!isNotTargetSeries(s,n))&&s.restoreData()})})},r.internalField=function(){reCreateSeriesIndices=function(n){var i=n._seriesIndices=[];each$4(n._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),n._seriesIndicesMap=createHashMap(i)},assertSeriesInitialized=function(n){},initBase=function(n,i){n.option={},n.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,n._componentsMap=createHashMap({series:[]}),n._componentsCount=createHashMap();var a=i.aria;isObject$2(a)&&a.enabled==null&&(a.enabled=!0),mergeTheme(i,n._theme.option),merge(i,globalDefault,!1),n._mergeOption(i,null)}}(),r}(Model$1);function isNotTargetSeries(t,r){if(r){var n=r.seriesIndex,i=r.seriesId,a=r.seriesName;return n!=null&&t.componentIndex!==n||i!=null&&t.id!==i||a!=null&&t.name!==a}}function mergeTheme(t,r){var n=t.color&&!t.colorLayer;each$4(r,function(i,a){a==="colorLayer"&&n||ComponentModel$1.hasClass(a)||(typeof i=="object"?t[a]=t[a]?merge(t[a],i,!1):clone$2(i):t[a]==null&&(t[a]=i))})}function queryByIdOrName(t,r,n){if(isArray(r)){var i=createHashMap();return each$4(r,function(o){if(o!=null){var s=convertOptionIdName(o,null);s!=null&&i.set(o,!0)}}),filter(n,function(o){return o&&i.get(o[t])})}else{var a=convertOptionIdName(r,null);return filter(n,function(o){return o&&a!=null&&o[t]===a})}}function filterBySubType(t,r){return r.hasOwnProperty("subType")?filter(t,function(n){return n&&n.subType===r.subType}):t}function normalizeSetOptionInput(t){var r=createHashMap();return t&&each$4(normalizeToArray(t.replaceMerge),function(n){r.set(n,!0)}),{replaceMergeMainTypeMap:r}}mixin(GlobalModel,PaletteMixin);var GlobalModel$1=GlobalModel,availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function t(r){each$4(availableMethods,function(n){this[n]=bind$1(r[n],r)},this)}return t}(),ExtensionAPI$1=ExtensionAPI,coordinateSystemCreators={},CoordinateSystemManager=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(r,n){var i=[];each$4(coordinateSystemCreators,function(a,o){var s=a.create(r,n);i=i.concat(s||[])}),this._coordinateSystems=i},t.prototype.update=function(r,n){each$4(this._coordinateSystems,function(i){i.update&&i.update(r,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(r,n){coordinateSystemCreators[r]=n},t.get=function(r){return coordinateSystemCreators[r]},t}(),CoordinateSystem=CoordinateSystemManager,QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function t(r){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=r}return t.prototype.setOption=function(r,n,i){r&&(each$4(normalizeToArray(r.series),function(s){s&&s.data&&isTypedArray(s.data)&&setAsPrimitive(s.data)}),each$4(normalizeToArray(r.dataset),function(s){s&&s.source&&isTypedArray(s.source)&&setAsPrimitive(s.source)})),r=clone$2(r);var a=this._optionBackup,o=parseRawOption(r,n,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(r){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],clone$2(r?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(r){var n,i=this._timelineOptions;if(i.length){var a=r.getComponent("timeline");a&&(n=clone$2(i[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(r){var n=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)applyMediaQuery(a[u].query,n,i)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&!indicesEquals(s,this._currentMediaIndices)&&(l=map$1(s,function(d){return clone$2(d===-1?o.option:a[d].option)})),this._currentMediaIndices=s,l},t}();function parseRawOption(t,r,n){var i=[],a,o,s=t.baseOption,l=t.timeline,u=t.options,c=t.media,d=!!t.media,v=!!(u||l||s&&s.timeline);s?(o=s,o.timeline||(o.timeline=l)):((v||d)&&(t.options=t.media=null),o=t),d&&isArray(c)&&each$4(c,function(I){I&&I.option&&(I.query?i.push(I):a||(a=I))}),$(o),each$4(u,function(I){return $(I)}),each$4(i,function(I){return $(I.option)});function $(I){each$4(r,function(O){O(I,n)})}return{baseOption:o,timelineOptions:u||[],mediaDefault:a,mediaList:i}}function applyMediaQuery(t,r,n){var i={width:r,height:n,aspectratio:r/n},a=!0;return each$4(t,function(o,s){var l=s.match(QUERY_REG);if(!(!l||!l[1]||!l[2])){var u=l[1],c=l[2].toLowerCase();compare(i[c],o,u)||(a=!1)}}),a}function compare(t,r,n){return n==="min"?t>=r:n==="max"?t<=r:t===r}function indicesEquals(t,r){return t.join(",")===r.join(",")}var OptionManager$1=OptionManager,each$2=each$4,isObject$1=isObject$2,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(t){var r=t&&t.itemStyle;if(!!r)for(var n=0,i=POSSIBLE_STYLES.length;n<i;n++){var a=POSSIBLE_STYLES[n],o=r.normal,s=r.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?merge(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function convertNormalEmphasis(t,r,n){if(t&&t[r]&&(t[r].normal||t[r].emphasis)){var i=t[r].normal,a=t[r].emphasis;i&&(n?(t[r].normal=t[r].emphasis=null,defaults(t[r],i)):t[r]=i),a&&(t.emphasis=t.emphasis||{},t.emphasis[r]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function removeEC3NormalStatus(t){convertNormalEmphasis(t,"itemStyle"),convertNormalEmphasis(t,"lineStyle"),convertNormalEmphasis(t,"areaStyle"),convertNormalEmphasis(t,"label"),convertNormalEmphasis(t,"labelLine"),convertNormalEmphasis(t,"upperLabel"),convertNormalEmphasis(t,"edgeLabel")}function compatTextStyle(t,r){var n=isObject$1(t)&&t[r],i=isObject$1(n)&&n.textStyle;if(i)for(var a=0,o=TEXT_STYLE_OPTIONS.length;a<o;a++){var s=TEXT_STYLE_OPTIONS[a];i.hasOwnProperty(s)&&(n[s]=i[s])}}function compatEC3CommonStyles(t){t&&(removeEC3NormalStatus(t),compatTextStyle(t,"label"),t.emphasis&&compatTextStyle(t.emphasis,"label"))}function processSeries(t){if(!!isObject$1(t)){compatEC2ItemStyle(t),removeEC3NormalStatus(t),compatTextStyle(t,"label"),compatTextStyle(t,"upperLabel"),compatTextStyle(t,"edgeLabel"),t.emphasis&&(compatTextStyle(t.emphasis,"label"),compatTextStyle(t.emphasis,"upperLabel"),compatTextStyle(t.emphasis,"edgeLabel"));var r=t.markPoint;r&&(compatEC2ItemStyle(r),compatEC3CommonStyles(r));var n=t.markLine;n&&(compatEC2ItemStyle(n),compatEC3CommonStyles(n));var i=t.markArea;i&&compatEC3CommonStyles(i);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var o=t.links||t.edges;if(o&&!isTypedArray(o))for(var s=0;s<o.length;s++)compatEC3CommonStyles(o[s]);each$4(t.categories,function(c){removeEC3NormalStatus(c)})}if(a&&!isTypedArray(a))for(var s=0;s<a.length;s++)compatEC3CommonStyles(a[s]);if(r=t.markPoint,r&&r.data)for(var l=r.data,s=0;s<l.length;s++)compatEC3CommonStyles(l[s]);if(n=t.markLine,n&&n.data)for(var u=n.data,s=0;s<u.length;s++)isArray(u[s])?(compatEC3CommonStyles(u[s][0]),compatEC3CommonStyles(u[s][1])):compatEC3CommonStyles(u[s]);t.type==="gauge"?(compatTextStyle(t,"axisLabel"),compatTextStyle(t,"title"),compatTextStyle(t,"detail")):t.type==="treemap"?(convertNormalEmphasis(t.breadcrumb,"itemStyle"),each$4(t.levels,function(c){removeEC3NormalStatus(c)})):t.type==="tree"&&removeEC3NormalStatus(t.leaves)}}function toArr(t){return isArray(t)?t:t?[t]:[]}function toObj(t){return(isArray(t)?t[0]:t)||{}}function globalCompatStyle(t,r){each$2(toArr(t.series),function(i){isObject$1(i)&&processSeries(i)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];r&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$2(n,function(i){each$2(toArr(t[i]),function(a){a&&(compatTextStyle(a,"axisLabel"),compatTextStyle(a.axisPointer,"label"))})}),each$2(toArr(t.parallel),function(i){var a=i&&i.parallelAxisDefault;compatTextStyle(a,"axisLabel"),compatTextStyle(a&&a.axisPointer,"label")}),each$2(toArr(t.calendar),function(i){convertNormalEmphasis(i,"itemStyle"),compatTextStyle(i,"dayLabel"),compatTextStyle(i,"monthLabel"),compatTextStyle(i,"yearLabel")}),each$2(toArr(t.radar),function(i){compatTextStyle(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),each$2(toArr(t.geo),function(i){isObject$1(i)&&(compatEC3CommonStyles(i),each$2(toArr(i.regions),function(a){compatEC3CommonStyles(a)}))}),each$2(toArr(t.timeline),function(i){compatEC3CommonStyles(i),convertNormalEmphasis(i,"label"),convertNormalEmphasis(i,"itemStyle"),convertNormalEmphasis(i,"controlStyle",!0);var a=i.data;isArray(a)&&each$4(a,function(o){isObject$2(o)&&(convertNormalEmphasis(o,"label"),convertNormalEmphasis(o,"itemStyle"))})}),each$2(toArr(t.toolbox),function(i){convertNormalEmphasis(i,"iconStyle"),each$2(i.feature,function(a){convertNormalEmphasis(a,"iconStyle")})}),compatTextStyle(toObj(t.axisPointer),"label"),compatTextStyle(toObj(t.tooltip).axisPointer,"label")}function get(t,r){for(var n=r.split(","),i=t,a=0;a<n.length&&(i=i&&i[n[a]],i!=null);a++);return i}function set(t,r,n,i){for(var a=r.split(","),o=t,s,l=0;l<a.length-1;l++)s=a[l],o[s]==null&&(o[s]={}),o=o[s];(i||o[a[l]]==null)&&(o[a[l]]=n)}function compatLayoutProperties(t){t&&each$4(LAYOUT_PROPERTIES,function(r){r[0]in t&&!(r[1]in t)&&(t[r[1]]=t[r[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(t){var r=t&&t.itemStyle;if(r)for(var n=0;n<BAR_ITEM_STYLE_MAP.length;n++){var i=BAR_ITEM_STYLE_MAP[n][1],a=BAR_ITEM_STYLE_MAP[n][0];r[i]!=null&&(r[a]=r[i])}}function compatPieLabel(t){!t||t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function compatSunburstState(t){!t||t.downplay&&!t.blur&&(t.blur=t.downplay)}function compatGraphFocus(t){!t||t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function traverseTree(t,r){if(t)for(var n=0;n<t.length;n++)r(t[n]),t[n]&&traverseTree(t[n].children,r)}function globalBackwardCompat(t,r){globalCompatStyle(t,r),t.series=normalizeToArray(t.series),each$4(t.series,function(n){if(!!isObject$2(n)){var i=n.type;if(i==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(i==="pie"||i==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),compatPieLabel(n.label);var a=n.data;if(a&&!isTypedArray(a))for(var o=0;o<a.length;o++)compatPieLabel(a[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(i==="gauge"){var s=get(n,"pointer.color");s!=null&&set(n,"itemStyle.color",s)}else if(i==="bar"){compatBarItemStyle(n),compatBarItemStyle(n.backgroundStyle),compatBarItemStyle(n.emphasis);var a=n.data;if(a&&!isTypedArray(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(compatBarItemStyle(a[o]),compatBarItemStyle(a[o]&&a[o].emphasis))}else if(i==="sunburst"){var l=n.highlightPolicy;l&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=l)),compatSunburstState(n),traverseTree(n.data,compatSunburstState)}else i==="graph"||i==="sankey"?compatGraphFocus(n):i==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&defaults(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),compatLayoutProperties(n)}}),t.dataRange&&(t.visualMap=t.dataRange),each$4(COMPATITABLE_COMPONENTS,function(n){var i=t[n];i&&(isArray(i)||(i=[i]),each$4(i,function(a){compatLayoutProperties(a)}))})}function dataStack(t){var r=createHashMap();t.eachSeries(function(n){var i=n.get("stack");if(i){var a=r.get(i)||r.set(i,[]),o=n.getData(),s={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;a.length&&o.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(s)}}),r.each(calculateStack)}function calculateStack(t){each$4(t,function(r,n){var i=[],a=[NaN,NaN],o=[r.stackResultDimension,r.stackedOverDimension],s=r.data,l=r.isStackedByIndex,u=r.seriesModel.get("stackStrategy")||"samesign";s.modify(o,function(c,d,v){var $=s.get(r.stackedDimension,v);if(isNaN($))return a;var I,O;l?O=s.getRawIndex(v):I=s.get(r.stackedByDimension,v);for(var R=NaN,M=n-1;M>=0;M--){var F=t[M];if(l||(O=F.data.rawIndexOf(F.stackedByDimension,I)),O>=0){var V=F.data.getByRawIndex(F.stackResultDimension,O);if(u==="all"||u==="positive"&&V>0||u==="negative"&&V<0||u==="samesign"&&$>=0&&V>0||u==="samesign"&&$<=0&&V<0){$=addSafe($,V),R=V;break}}}return i[0]=$,i[1]=R,i})})}var SourceImpl=function(){function t(r){this.data=r.data||(r.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=r.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=r.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=r.startIndex||0,this.dimensionsDetectedCount=r.dimensionsDetectedCount,this.metaRawOption=r.metaRawOption;var n=this.dimensionsDefine=r.dimensionsDefine;if(n)for(var i=0;i<n.length;i++){var a=n[i];a.type==null&&guessOrdinal(this,i)===BE_ORDINAL.Must&&(a.type="ordinal")}}return t}();function isSourceInstance(t){return t instanceof SourceImpl}function createSource(t,r,n){n=n||detectSourceFormat(t);var i=r.seriesLayoutBy,a=determineSourceDimensions(t,n,i,r.sourceHeader,r.dimensions),o=new SourceImpl({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:clone$2(r)});return o}function createSourceFromSeriesDataOption(t){return new SourceImpl({data:t,sourceFormat:isTypedArray(t)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow(t){return new SourceImpl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:clone$2(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function detectSourceFormat(t){var r=SOURCE_FORMAT_UNKNOWN;if(isTypedArray(t))r=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray(t)){t.length===0&&(r=SOURCE_FORMAT_ARRAY_ROWS);for(var n=0,i=t.length;n<i;n++){var a=t[n];if(a!=null){if(isArray(a)||isTypedArray(a)){r=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$2(a)){r=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$2(t)){for(var o in t)if(hasOwn(t,o)&&isArrayLike(t[o])){r=SOURCE_FORMAT_KEYED_COLUMNS;break}}return r}function determineSourceDimensions(t,r,n,i,a){var o,s;if(!t)return{dimensionsDefine:normalizeDimensionsOption(a),startIndex:s,dimensionsDetectedCount:o};if(r===SOURCE_FORMAT_ARRAY_ROWS){var l=t;i==="auto"||i==null?arrayRowsTravelFirst(function(c){c!=null&&c!=="-"&&(isString(c)?s==null&&(s=1):s=0)},n,l,10):s=isNumber(i)?i:i?1:0,!a&&s===1&&(a=[],arrayRowsTravelFirst(function(c,d){a[d]=c!=null?c+"":""},n,l,1/0)),o=a?a.length:n===SERIES_LAYOUT_BY_ROW?l.length:l[0]?l[0].length:null}else if(r===SOURCE_FORMAT_OBJECT_ROWS)a||(a=objectRowsCollectDimensions(t));else if(r===SOURCE_FORMAT_KEYED_COLUMNS)a||(a=[],each$4(t,function(c,d){a.push(d)}));else if(r===SOURCE_FORMAT_ORIGINAL){var u=getDataItemValue(t[0]);o=isArray(u)&&u.length||1}return{startIndex:s,dimensionsDefine:normalizeDimensionsOption(a),dimensionsDetectedCount:o}}function objectRowsCollectDimensions(t){for(var r=0,n;r<t.length&&!(n=t[r++]););if(n)return keys(n)}function normalizeDimensionsOption(t){if(!!t){var r=createHashMap();return map$1(t,function(n,i){n=isObject$2(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var o=r.get(a.name);return o?a.name+="-"+o.count++:r.set(a.name,{count:1}),a})}}function arrayRowsTravelFirst(t,r,n,i){if(r===SERIES_LAYOUT_BY_ROW)for(var a=0;a<n.length&&a<i;a++)t(n[a]?n[a][0]:null,a);else for(var o=n[0]||[],a=0;a<o.length&&a<i;a++)t(o[a],a)}function shouldRetrieveDataByName(t){var r=t.sourceFormat;return r===SOURCE_FORMAT_OBJECT_ROWS||r===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function t(r,n){var i=isSourceInstance(r)?r:createSourceFromSeriesDataOption(r);this._source=i;var a=this._data=i.data;i.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=n,this._data=a),mountMethods(this,a,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(r,n){},t.prototype.appendData=function(r){},t.prototype.clean=function(){},t.protoInitialize=function(){var r=t.prototype;r.pure=!1,r.persistent=!0}(),t.internalField=function(){var r;mountMethods=function(s,l,u){var c=u.sourceFormat,d=u.seriesLayoutBy,v=u.startIndex,$=u.dimensionsDefine,I=providerMethods[getMethodMapKey(c,d)];if(extend(s,I),c===SOURCE_FORMAT_TYPED_ARRAY)s.getItem=n,s.count=a,s.fillStorage=i;else{var O=getRawSourceItemGetter(c,d);s.getItem=bind$1(O,null,l,v,$);var R=getRawSourceDataCounter(c,d);s.count=bind$1(R,null,l,v,$)}};var n=function(s,l){s=s-this._offset,l=l||[];for(var u=this._data,c=this._dimSize,d=c*s,v=0;v<c;v++)l[v]=u[d+v];return l},i=function(s,l,u,c){for(var d=this._data,v=this._dimSize,$=0;$<v;$++){for(var I=c[$],O=I[0]==null?1/0:I[0],R=I[1]==null?-1/0:I[1],M=l-s,F=u[$],V=0;V<M;V++){var G=d[V*v+$];F[s+V]=G,G<O&&(O=G),G>R&&(R=G)}I[0]=O,I[1]=R}},a=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(r={},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:o},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},r[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:o},r[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(s){var l=this._data;each$4(s,function(u,c){for(var d=l[c]||(l[c]=[]),v=0;v<(u||[]).length;v++)d.push(u[v])})}},r[SOURCE_FORMAT_ORIGINAL]={appendData:o},r[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},r);function o(s){for(var l=0;l<s.length;l++)this._data.push(s[l])}}(),t}(),getItemSimply=function(t,r,n,i){return t[i]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(t,r,n,i){return t[i+r]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(t,r,n,i,a){i+=r;for(var o=a||[],s=t,l=0;l<s.length;l++){var u=s[l];o[l]=u?u[i]:null}return o},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(t,r,n,i,a){for(var o=a||[],s=0;s<n.length;s++){var l=n[s].name,u=t[l];o[s]=u?u[i]:null}return o},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter(t,r){var n=rawSourceItemGetterMap[getMethodMapKey(t,r)];return n}var countSimply=function(t,r,n){return t.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(t,r,n){return Math.max(0,t.length-r)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(t,r,n){var i=t[0];return i?Math.max(0,i.length-r):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function(t,r,n){var i=n[0].name,a=t[i];return a?a.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter(t,r){var n=rawSourceDataCounterMap[getMethodMapKey(t,r)];return n}var getRawValueSimply=function(t,r,n){return t[r]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function(t,r,n){return t[n]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function(t,r,n){var i=getDataItemValue(t);return i instanceof Array?i[r]:i},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter(t){var r=rawSourceValueGetterMap[t];return r}function getMethodMapKey(t,r){return t===SOURCE_FORMAT_ARRAY_ROWS?t+"_"+r:t}function retrieveRawValue(t,r,n){if(!!t){var i=t.getRawDataItem(r);if(i!=null){var a=t.getStore(),o=a.getSource().sourceFormat;if(n!=null){var s=t.getDimensionIndex(n),l=a.getDimensionProperty(s);return getRawSourceValueGetter(o)(i,s,l)}else{var u=i;return o===SOURCE_FORMAT_ORIGINAL&&(u=getDataItemValue(i)),u}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function t(){}return t.prototype.getDataParams=function(r,n){var i=this.getData(n),a=this.getRawValue(r,n),o=i.getRawIndex(r),s=i.getName(r),l=i.getRawDataItem(r),u=i.getItemVisual(r,"style"),c=u&&u[i.getItemVisual(r,"drawType")||"fill"],d=u&&u.stroke,v=this.mainType,$=v==="series",I=i.userOutput&&i.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:$?this.subType:null,seriesIndex:this.seriesIndex,seriesId:$?this.id:null,seriesName:$?this.name:null,name:s,dataIndex:o,data:l,dataType:n,value:a,color:c,borderColor:d,dimensionNames:I?I.fullDimensions:null,encode:I?I.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(r,n,i,a,o,s){n=n||"normal";var l=this.getData(i),u=this.getDataParams(r,i);if(s&&(u.value=s.interpolatedValue),a!=null&&isArray(u.value)&&(u.value=u.value[a]),!o){var c=l.getItemModel(r);o=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(isFunction(o))return u.status=n,u.dimensionIndex=a,o(u);if(isString(o)){var d=formatTpl(o,u);return d.replace(DIMENSION_LABEL_REG,function(v,$){var I=$.length,O=$;O.charAt(0)==="["&&O.charAt(I-1)==="]"&&(O=+O.slice(1,I-1));var R=retrieveRawValue(l,r,O);if(s&&isArray(s.interpolatedValue)){var M=l.getDimensionIndex(O);M>=0&&(R=s.interpolatedValue[M])}return R!=null?R+"":""})}},t.prototype.getRawValue=function(r,n){return retrieveRawValue(this.getData(n),r)},t.prototype.formatTooltip=function(r,n,i){},t}();function normalizeTooltipFormatResult(t){var r,n;return isObject$2(t)?t.type&&(n=t):r=t,{text:r,frag:n}}function createTask(t){return new Task(t)}var Task=function(){function t(r){r=r||{},this._reset=r.reset,this._plan=r.plan,this._count=r.count,this._onDirty=r.onDirty,this._dirty=!0}return t.prototype.perform=function(r){var n=this._upstream,i=r&&r.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var s=d(this._modBy),l=this._modDataCount||0,u=d(r&&r.modBy),c=r&&r.modDataCount||0;(s!==u||l!==c)&&(o="reset");function d(V){return!(V>=1)&&(V=1),V}var v;(this._dirty||o==="reset")&&(this._dirty=!1,v=this._doReset(i)),this._modBy=u,this._modDataCount=c;var $=r&&r.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var I=this._dueIndex,O=Math.min($!=null?this._dueIndex+$:1/0,this._dueEnd);if(!i&&(v||I<O)){var R=this._progress;if(isArray(R))for(var M=0;M<R.length;M++)this._doProgress(R[M],I,O,u,c);else this._doProgress(R,I,O,u,c)}this._dueIndex=O;var F=this._settedOutputEnd!=null?this._settedOutputEnd:O;this._outputDueEnd=F}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(r,n,i,a,o){iterator.reset(n,i,a,o),this._callingProgress=r,this._callingProgress({start:n,end:i,count:i-n,next:iterator.next},this.context)},t.prototype._doReset=function(r){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,i;!r&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),isArray(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(r){(this._downstream!==r||this._dirty)&&(this._downstream=r,r._upstream=this,r.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(r){this._outputDueEnd=this._settedOutputEnd=r},t}(),iterator=function(){var t,r,n,i,a,o={reset:function(u,c,d,v){r=u,t=c,n=d,i=v,a=Math.ceil(i/n),o.next=n>1&&i>0?l:s}};return o;function s(){return r<t?r++:null}function l(){var u=r%a*n+Math.ceil(r/a),c=r>=t?null:u<i?u:r;return r++,c}}();function parseDataValue(t,r){var n=r&&r.type;return n==="ordinal"?t:(n==="time"&&!isNumber(t)&&t!=null&&t!=="-"&&(t=+parseDate(t)),t==null||t===""?NaN:+t)}createHashMap({number:function(t){return parseFloat(t)},time:function(t){return+parseDate(t)},trim:function(t){return isString(t)?trim(t):t}});var SortOrderComparator=function(){function t(r,n){var i=r==="desc";this._resultLT=i?1:-1,n==null&&(n=i?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(r,n){var i=isNumber(r)?r:numericToNumber(r),a=isNumber(n)?n:numericToNumber(n),o=isNaN(i),s=isNaN(a);if(o&&(i=this._incomparable),s&&(a=this._incomparable),o&&s){var l=isString(r),u=isString(n);l&&(i=u?r:0),u&&(a=l?n:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},t}(),ExternalSource=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(r){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(r){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(r,n){},t.prototype.retrieveValueFromItem=function(r,n){},t.prototype.convertValue=function(r,n){return parseDataValue(r,n)},t}();function createExternalSource(t,r){var n=new ExternalSource,i=t.data,a=n.sourceFormat=t.sourceFormat,o=t.startIndex,s="";t.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(s);var l=[],u={},c=t.dimensionsDefine;if(c)each$4(c,function(R,M){var F=R.name,V={index:M,name:F,displayName:R.displayName};if(l.push(V),F!=null){var G="";hasOwn(u,F)&&throwError(G),u[F]=V}});else for(var d=0;d<t.dimensionsDetectedCount;d++)l.push({index:d});var v=getRawSourceItemGetter(a,SERIES_LAYOUT_BY_COLUMN);r.__isBuiltIn&&(n.getRawDataItem=function(R){return v(i,o,l,R)},n.getRawData=bind$1(getRawData,null,t)),n.cloneRawData=bind$1(cloneRawData,null,t);var $=getRawSourceDataCounter(a,SERIES_LAYOUT_BY_COLUMN);n.count=bind$1($,null,i,o,l);var I=getRawSourceValueGetter(a);n.retrieveValue=function(R,M){var F=v(i,o,l,R);return O(F,M)};var O=n.retrieveValueFromItem=function(R,M){if(R!=null){var F=l[M];if(F)return I(R,M,F.name)}};return n.getDimensionInfo=bind$1(getDimensionInfo,null,l,u),n.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,l),n}function getRawData(t){var r=t.sourceFormat;if(!isSupportedSourceFormat(r)){var n="";throwError(n)}return t.data}function cloneRawData(t){var r=t.sourceFormat,n=t.data;if(!isSupportedSourceFormat(r)){var i="";throwError(i)}if(r===SOURCE_FORMAT_ARRAY_ROWS){for(var a=[],o=0,s=n.length;o<s;o++)a.push(n[o].slice());return a}else if(r===SOURCE_FORMAT_OBJECT_ROWS){for(var a=[],o=0,s=n.length;o<s;o++)a.push(extend({},n[o]));return a}}function getDimensionInfo(t,r,n){if(n!=null){if(isNumber(n)||!isNaN(n)&&!hasOwn(r,n))return t[n];if(hasOwn(r,n))return r[n]}}function cloneAllDimensionInfo(t){return clone$2(t)}var externalTransformMap=createHashMap();function registerExternalTransform(t){t=clone$2(t);var r=t.type,n="";r||throwError(n);var i=r.split(":");i.length!==2&&throwError(n);var a=!1;i[0]==="echarts"&&(r=i[1],a=!0),t.__isBuiltIn=a,externalTransformMap.set(r,t)}function applyDataTransform(t,r,n){var i=normalizeToArray(t),a=i.length,o="";a||throwError(o);for(var s=0,l=a;s<l;s++){var u=i[s];r=applySingleDataTransform(u,r),s!==l-1&&(r.length=Math.max(r.length,1))}return r}function applySingleDataTransform(t,r,n,i){var a="";r.length||throwError(a),isObject$2(t)||throwError(a);var o=t.type,s=externalTransformMap.get(o);s||throwError(a);var l=map$1(r,function(c){return createExternalSource(c,s)}),u=normalizeToArray(s.transform({upstream:l[0],upstreamList:l,config:clone$2(t.config)}));return map$1(u,function(c,d){var v="";isObject$2(c)||throwError(v),c.data||throwError(v);var $=detectSourceFormat(c.data);isSupportedSourceFormat($)||throwError(v);var I,O=r[0];if(O&&d===0&&!c.dimensions){var R=O.startIndex;R&&(c.data=O.data.slice(0,R).concat(c.data)),I={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:R,dimensions:O.metaRawOption.dimensions}}else I={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:c.dimensions};return createSource(c.data,I,null)})}function isSupportedSourceFormat(t){return t===SOURCE_FORMAT_ARRAY_ROWS||t===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(t){return t>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(t){var r=t.constructor;return r===Array?t.slice():new r(t)}function prepareStore(t,r,n,i,a){var o=dataCtors[n||"float"];if(a){var s=t[r],l=s&&s.length;if(l!==i){for(var u=new o(i),c=0;c<l;c++)u[c]=s[c];t[r]=u}}else t[r]=new o(i)}var DataStore=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return t.prototype.initData=function(r,n,i){this._provider=r,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=r.getSource(),o=this.defaultDimValueGetter=defaultDimValueGetters[a.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],shouldRetrieveDataByName(a),this._dimensions=map$1(n,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,r.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(r,n){var i=this._calcDimNameToIdx,a=this._dimensions,o=i.get(r);if(o!=null){if(a[o].type===n)return o}else o=a.length;return a[o]={type:n},i.set(r,o),this._chunks[o]=new dataCtors[n||"float"](this._rawCount),this._rawExtent[o]=getInitialExtent(),o},t.prototype.collectOrdinalMeta=function(r,n){var i=this._chunks[r],a=this._dimensions[r],o=this._rawExtent,s=a.ordinalOffset||0,l=i.length;s===0&&(o[r]=getInitialExtent());for(var u=o[r],c=s;c<l;c++){var d=i[c]=n.parseAndCollect(i[c]);isNaN(d)||(u[0]=Math.min(d,u[0]),u[1]=Math.max(d,u[1]))}a.ordinalMeta=n,a.ordinalOffset=l,a.type="ordinal"},t.prototype.getOrdinalMeta=function(r){var n=this._dimensions[r],i=n.ordinalMeta;return i},t.prototype.getDimensionProperty=function(r){var n=this._dimensions[r];return n&&n.property},t.prototype.appendData=function(r){var n=this._provider,i=this.count();n.appendData(r);var a=n.count();return n.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},t.prototype.appendValues=function(r,n){for(var i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=this.count(),u=l+Math.max(r.length,n||0),c=0;c<o;c++){var d=a[c];prepareStore(i,c,d.type,u,!0)}for(var v=[],$=l;$<u;$++)for(var I=$-l,O=0;O<o;O++){var d=a[O],R=defaultDimValueGetters.arrayRows.call(this,r[I]||v,d.property,I,O);i[O][$]=R;var M=s[O];R<M[0]&&(M[0]=R),R>M[1]&&(M[1]=R)}return this._rawCount=this._count=u,{start:l,end:u}},t.prototype._initDataFromProvider=function(r,n,i){for(var a=this._provider,o=this._chunks,s=this._dimensions,l=s.length,u=this._rawExtent,c=map$1(s,function(V){return V.property}),d=0;d<l;d++){var v=s[d];u[d]||(u[d]=getInitialExtent()),prepareStore(o,d,v.type,n,i)}if(a.fillStorage)a.fillStorage(r,n,o,u);else for(var $=[],I=r;I<n;I++){$=a.getItem(I,$);for(var O=0;O<l;O++){var R=o[O],M=this._dimValueGetter($,c[O],I,O);R[I]=M;var F=u[O];M<F[0]&&(F[0]=M),M>F[1]&&(F[1]=M)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(r,n){if(!(n>=0&&n<this._count))return NaN;var i=this._chunks[r];return i?i[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(r,n){var i=[],a=[];if(n==null){n=r,r=[];for(var o=0;o<this._dimensions.length;o++)a.push(o)}else a=r;for(var o=0,s=a.length;o<s;o++)i.push(this.get(a[o],n));return i},t.prototype.getByRawIndex=function(r,n){if(!(n>=0&&n<this._rawCount))return NaN;var i=this._chunks[r];return i?i[n]:NaN},t.prototype.getSum=function(r){var n=this._chunks[r],i=0;if(n)for(var a=0,o=this.count();a<o;a++){var s=this.get(r,a);isNaN(s)||(i+=s)}return i},t.prototype.getMedian=function(r){var n=[];this.each([r],function(o){isNaN(o)||n.push(o)});var i=n.sort(function(o,s){return o-s}),a=this.count();return a===0?0:a%2===1?i[(a-1)/2]:(i[a/2]+i[a/2-1])/2},t.prototype.indexOfRawIndex=function(r){if(r>=this._rawCount||r<0)return-1;if(!this._indices)return r;var n=this._indices,i=n[r];if(i!=null&&i<this._count&&i===r)return r;for(var a=0,o=this._count-1;a<=o;){var s=(a+o)/2|0;if(n[s]<r)a=s+1;else if(n[s]>r)o=s-1;else return s}return-1},t.prototype.indicesOfNearest=function(r,n,i){var a=this._chunks,o=a[r],s=[];if(!o)return s;i==null&&(i=1/0);for(var l=1/0,u=-1,c=0,d=0,v=this.count();d<v;d++){var $=this.getRawIndex(d),I=n-o[$],O=Math.abs(I);O<=i&&((O<l||O===l&&I>=0&&u<0)&&(l=O,u=I,c=0),I===u&&(s[c++]=d))}return s.length=c,s},t.prototype.getIndices=function(){var r,n=this._indices;if(n){var i=n.constructor,a=this._count;if(i===Array){r=new i(a);for(var o=0;o<a;o++)r[o]=n[o]}else r=new i(n.buffer,0,a)}else{var i=getIndicesCtor(this._rawCount);r=new i(this.count());for(var o=0;o<r.length;o++)r[o]=o}return r},t.prototype.filter=function(r,n){if(!this._count)return this;for(var i=this.clone(),a=i.count(),o=getIndicesCtor(i._rawCount),s=new o(a),l=[],u=r.length,c=0,d=r[0],v=i._chunks,$=0;$<a;$++){var I=void 0,O=i.getRawIndex($);if(u===0)I=n($);else if(u===1){var R=v[d][O];I=n(R,$)}else{for(var M=0;M<u;M++)l[M]=v[r[M]][O];l[M]=$,I=n.apply(null,l)}I&&(s[c++]=O)}return c<a&&(i._indices=s),i._count=c,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(r){var n=this.clone(),i=n._count;if(!i)return this;var a=keys(r),o=a.length;if(!o)return this;var s=n.count(),l=getIndicesCtor(n._rawCount),u=new l(s),c=0,d=a[0],v=r[d][0],$=r[d][1],I=n._chunks,O=!1;if(!n._indices){var R=0;if(o===1){for(var M=I[a[0]],F=0;F<i;F++){var V=M[F];(V>=v&&V<=$||isNaN(V))&&(u[c++]=R),R++}O=!0}else if(o===2){for(var M=I[a[0]],G=I[a[1]],Y=r[a[1]][0],X=r[a[1]][1],F=0;F<i;F++){var V=M[F],q=G[F];(V>=v&&V<=$||isNaN(V))&&(q>=Y&&q<=X||isNaN(q))&&(u[c++]=R),R++}O=!0}}if(!O)if(o===1)for(var F=0;F<s;F++){var Z=n.getRawIndex(F),V=I[a[0]][Z];(V>=v&&V<=$||isNaN(V))&&(u[c++]=Z)}else for(var F=0;F<s;F++){for(var Q=!0,Z=n.getRawIndex(F),ie=0;ie<o;ie++){var J=a[ie],V=I[J][Z];(V<r[J][0]||V>r[J][1])&&(Q=!1)}Q&&(u[c++]=n.getRawIndex(F))}return c<s&&(n._indices=u),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(r,n){var i=this.clone(r);return this._updateDims(i,r,n),i},t.prototype.modify=function(r,n){this._updateDims(this,r,n)},t.prototype._updateDims=function(r,n,i){for(var a=r._chunks,o=[],s=n.length,l=r.count(),u=[],c=r._rawExtent,d=0;d<n.length;d++)c[n[d]]=getInitialExtent();for(var v=0;v<l;v++){for(var $=r.getRawIndex(v),I=0;I<s;I++)u[I]=a[n[I]][$];u[s]=v;var O=i&&i.apply(null,u);if(O!=null){typeof O!="object"&&(o[0]=O,O=o);for(var d=0;d<O.length;d++){var R=n[d],M=O[d],F=c[R],V=a[R];V&&(V[$]=M),M<F[0]&&(F[0]=M),M>F[1]&&(F[1]=M)}}}},t.prototype.lttbDownSample=function(r,n){var i=this.clone([r],!0),a=i._chunks,o=a[r],s=this.count(),l=0,u=Math.floor(1/n),c=this.getRawIndex(0),d,v,$,I=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));I[l++]=c;for(var O=1;O<s-1;O+=u){for(var R=Math.min(O+u,s-1),M=Math.min(O+u*2,s),F=(M+R)/2,V=0,G=R;G<M;G++){var Y=this.getRawIndex(G),X=o[Y];isNaN(X)||(V+=X)}V/=M-R;var q=O,Z=Math.min(O+u,s),Q=O-1,ie=o[c];d=-1,$=q;for(var J=-1,re=0,G=q;G<Z;G++){var Y=this.getRawIndex(G),X=o[Y];if(isNaN(X)){re++,J<0&&(J=Y);continue}v=Math.abs((Q-F)*(X-ie)-(Q-G)*(V-ie)),v>d&&(d=v,$=Y)}re>0&&re<Z-q&&(I[l++]=Math.min(J,$),$=Math.max(J,$)),I[l++]=$,c=$}return I[l++]=this.getRawIndex(s-1),i._count=l,i._indices=I,i.getRawIndex=this._getRawIdx,i},t.prototype.downSample=function(r,n,i,a){for(var o=this.clone([r],!0),s=o._chunks,l=[],u=Math.floor(1/n),c=s[r],d=this.count(),v=o._rawExtent[r]=getInitialExtent(),$=new(getIndicesCtor(this._rawCount))(Math.ceil(d/u)),I=0,O=0;O<d;O+=u){u>d-O&&(u=d-O,l.length=u);for(var R=0;R<u;R++){var M=this.getRawIndex(O+R);l[R]=c[M]}var F=i(l),V=this.getRawIndex(Math.min(O+a(l,F)||0,d-1));c[V]=F,F<v[0]&&(v[0]=F),F>v[1]&&(v[1]=F),$[I++]=V}return o._count=I,o._indices=$,o._updateGetRawIdx(),o},t.prototype.each=function(r,n){if(!!this._count)for(var i=r.length,a=this._chunks,o=0,s=this.count();o<s;o++){var l=this.getRawIndex(o);switch(i){case 0:n(o);break;case 1:n(a[r[0]][l],o);break;case 2:n(a[r[0]][l],a[r[1]][l],o);break;default:for(var u=0,c=[];u<i;u++)c[u]=a[r[u]][l];c[u]=o,n.apply(null,c)}}},t.prototype.getDataExtent=function(r){var n=this._chunks[r],i=getInitialExtent();if(!n)return i;var a=this.count(),o=!this._indices,s;if(o)return this._rawExtent[r].slice();if(s=this._extent[r],s)return s.slice();s=i;for(var l=s[0],u=s[1],c=0;c<a;c++){var d=this.getRawIndex(c),v=n[d];v<l&&(l=v),v>u&&(u=v)}return s=[l,u],this._extent[r]=s,s},t.prototype.getRawDataItem=function(r){var n=this.getRawIndex(r);if(this._provider.persistent)return this._provider.getItem(n);for(var i=[],a=this._chunks,o=0;o<a.length;o++)i.push(a[o][n]);return i},t.prototype.clone=function(r,n){var i=new t,a=this._chunks,o=r&&reduce(r,function(l,u){return l[u]=!0,l},{});if(o)for(var s=0;s<a.length;s++)i._chunks[s]=o[s]?cloneChunk(a[s]):a[s];else i._chunks=a;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(r){r._count=this._count,r._rawCount=this._rawCount,r._provider=this._provider,r._dimensions=this._dimensions,r._extent=clone$2(this._extent),r._rawExtent=clone$2(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var r=this._indices.constructor,n=void 0;if(r===Array){var i=this._indices.length;n=new r(i);for(var a=0;a<i;a++)n[a]=this._indices[a]}else n=new r(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(r){return r},t.prototype._getRawIdx=function(r){return r<this._count&&r>=0?this._indices[r]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function r(n,i,a,o){return parseDataValue(n[o],this._dimensions[o])}defaultDimValueGetters={arrayRows:r,objectRows:function(n,i,a,o){return parseDataValue(n[i],this._dimensions[o])},keyedColumns:r,original:function(n,i,a,o){var s=n&&(n.value==null?n:n.value);return parseDataValue(s instanceof Array?s[o]:s,this._dimensions[o])},typedArray:function(n,i,a,o){return n[o]}}}(),t}(),DataStore$1=DataStore,SourceManager=function(){function t(r){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=r}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(r,n){this._sourceList=r,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var r=this._sourceHost,n=this._getUpstreamSourceManagers(),i=!!n.length,a,o;if(isSeries(r)){var s=r,l=void 0,u=void 0,c=void 0;if(i){var d=n[0];d.prepareSource(),c=d.getSource(),l=c.data,u=c.sourceFormat,o=[d._getVersionSign()]}else l=s.get("data",!0),u=isTypedArray(l)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,o=[];var v=this._getSourceMetaRawOption()||{},$=c&&c.metaRawOption||{},I=retrieve2(v.seriesLayoutBy,$.seriesLayoutBy)||null,O=retrieve2(v.sourceHeader,$.sourceHeader),R=retrieve2(v.dimensions,$.dimensions),M=I!==$.seriesLayoutBy||!!O!=!!$.sourceHeader||R;a=M?[createSource(l,{seriesLayoutBy:I,sourceHeader:O,dimensions:R},u)]:[]}else{var F=r;if(i){var V=this._applyTransform(n);a=V.sourceList,o=V.upstreamSignList}else{var G=F.get("source",!0);a=[createSource(G,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(a,o)},t.prototype._applyTransform=function(r){var n=this._sourceHost,i=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var o="";r.length!==1&&doThrow(o)}var s,l=[],u=[];return each$4(r,function(c){c.prepareSource();var d=c.getSource(a||0),v="";a!=null&&!d&&doThrow(v),l.push(d),u.push(c._getVersionSign())}),i?s=applyDataTransform(i,l,{datasetIndex:n.componentIndex}):a!=null&&(s=[cloneSourceShallow(l[0])]),{sourceList:s,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var r=this._getUpstreamSourceManagers(),n=0;n<r.length;n++){var i=r[n];if(i._isDirty()||this._upstreamSignList[n]!==i._getVersionSign())return!0}},t.prototype.getSource=function(r){r=r||0;var n=this._sourceList[r];if(!n){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(r)}return n},t.prototype.getSharedDataStore=function(r){var n=r.makeStoreSchema();return this._innerGetDataStore(n.dimensions,r.source,n.hash)},t.prototype._innerGetDataStore=function(r,n,i){var a=0,o=this._storeList,s=o[a];s||(s=o[a]={});var l=s[i];if(!l){var u=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&u?l=u._innerGetDataStore(r,n,i):(l=new DataStore$1,l.initData(new DefaultDataProvider(n,r.length),r)),s[i]=l}return l},t.prototype._getUpstreamSourceManagers=function(){var r=this._sourceHost;if(isSeries(r)){var n=querySeriesUpstreamDatasetModel(r);return n?[n.getSourceManager()]:[]}else return map$1(queryDatasetUpstreamDatasetModels(r),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r=this._sourceHost,n,i,a;if(isSeries(r))n=r.get("seriesLayoutBy",!0),i=r.get("sourceHeader",!0),a=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;n=o.get("seriesLayoutBy",!0),i=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:i,dimensions:a}},t}();function disableTransformOptionMerge(t){var r=t.option.transform;r&&setAsPrimitive(t.option.transform)}function isSeries(t){return t.mainType==="series"}function doThrow(t){throw new Error(t)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle(t,r){var n=t.color||"#6e7079",i=t.fontSize||12,a=t.fontWeight||"400",o=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return r==="html"?{nameStyle:"font-size:"+encodeHTML(i+"")+"px;color:"+encodeHTML(n)+";font-weight:"+encodeHTML(a+""),valueStyle:"font-size:"+encodeHTML(s+"")+"px;color:"+encodeHTML(o)+";font-weight:"+encodeHTML(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
137
- `,`
138
-
139
- `,`
140
-
141
-
142
- `];function createTooltipMarkup(t,r){return r.type=t,r}function isSectionFragment(t){return t.type==="section"}function getBuilder(t){return isSectionFragment(t)?buildSection:buildNameValue}function getBlockGapLevel(t){if(isSectionFragment(t)){var r=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return each$4(t.blocks,function(a){var o=getBlockGapLevel(a);o>=r&&(r=o+ +(i&&(!o||isSectionFragment(a)&&!a.noHeader)))}),r}return 0}function buildSection(t,r,n,i){var a=r.noHeader,o=getGap(getBlockGapLevel(r)),s=[],l=r.blocks||[];assert(!l||isArray(l)),l=l||[];var u=t.orderMode;if(r.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(c,u)){var d=new SortOrderComparator(c[u],null);l.sort(function(O,R){return d.evaluate(O.sortParam,R.sortParam)})}else u==="seriesDesc"&&l.reverse()}each$4(l,function(O,R){var M=r.valueFormatter,F=getBuilder(O)(M?extend(extend({},t),{valueFormatter:M}):t,O,R>0?o.html:0,i);F!=null&&s.push(F)});var v=t.renderMode==="richText"?s.join(o.richText):wrapBlockHTML(s.join(""),a?n:o.html);if(a)return v;var $=makeValueReadable(r.header,"ordinal",t.useUTC),I=getTooltipTextStyle(i,t.renderMode).nameStyle;return t.renderMode==="richText"?wrapInlineNameRichText(t,$,I)+o.richText+v:wrapBlockHTML('<div style="'+I+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML($)+"</div>"+v,n)}function buildNameValue(t,r,n,i){var a=t.renderMode,o=r.noName,s=r.noValue,l=!r.markerType,u=r.name,c=t.useUTC,d=r.valueFormatter||t.valueFormatter||function(Y){return Y=isArray(Y)?Y:[Y],map$1(Y,function(X,q){return makeValueReadable(X,isArray(I)?I[q]:I,c)})};if(!(o&&s)){var v=l?"":t.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",a),$=o?"":makeValueReadable(u,"ordinal",c),I=r.valueType,O=s?[]:d(r.value,r.dataIndex),R=!l||!o,M=!l&&o,F=getTooltipTextStyle(i,a),V=F.nameStyle,G=F.valueStyle;return a==="richText"?(l?"":v)+(o?"":wrapInlineNameRichText(t,$,V))+(s?"":wrapInlineValueRichText(t,O,R,M,G)):wrapBlockHTML((l?"":v)+(o?"":wrapInlineNameHTML($,!l,V))+(s?"":wrapInlineValueHTML(O,R,M,G)),n)}}function buildTooltipMarkup(t,r,n,i,a,o){if(!!t){var s=getBuilder(t),l={useUTC:a,renderMode:n,orderMode:i,markupStyleCreator:r,valueFormatter:t.valueFormatter};return s(l,t,0,o)}}function getGap(t){return{html:HTML_GAPS[t],richText:RICH_TEXT_GAPS[t]}}function wrapBlockHTML(t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0";return'<div style="'+i+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+t+n+"</div>"}function wrapInlineNameHTML(t,r,n){var i=r?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+encodeHTML(t)+"</span>"}function wrapInlineValueHTML(t,r,n,i){var a=n?"10px":"20px",o=r?"float:right;margin-left:"+a:"";return t=isArray(t)?t:[t],'<span style="'+o+";"+i+'">'+map$1(t,function(s){return encodeHTML(s)}).join("&nbsp;&nbsp;")+"</span>"}function wrapInlineNameRichText(t,r,n){return t.markupStyleCreator.wrapRichTextStyle(r,n)}function wrapInlineValueRichText(t,r,n,i,a){var o=[a],s=i?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(isArray(r)?r.join(" "):r,o)}function retrieveVisualColorForTooltipMarker(t,r){var n=t.getData().getItemVisual(r,"style"),i=n[t.visualDrawType];return convertToColorString(i)}function getPaddingFromTooltipModel(t,r){var n=t.get("padding");return n!=null?n:r==="richText"?[8,10]:10}var TooltipMarkupStyleCreator=function(){function t(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(r,n,i){var a=i==="richText"?this._generateStyleName():null,o=getTooltipMarker({color:n,type:r,renderMode:i,markerId:a});return isString(o)?o:(this.richTextStyles[a]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(r,n){var i={};isArray(n)?each$4(n,function(o){return extend(i,o)}):extend(i,n);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+r+"}"},t}();function defaultSeriesFormatTooltip(t){var r=t.series,n=t.dataIndex,i=t.multipleSeries,a=r.getData(),o=a.mapDimensionsAll("defaultedTooltip"),s=o.length,l=r.getRawValue(n),u=isArray(l),c=retrieveVisualColorForTooltipMarker(r,n),d,v,$,I;if(s>1||u&&!s){var O=formatTooltipArrayValue(l,r,n,o,c);d=O.inlineValues,v=O.inlineValueTypes,$=O.blocks,I=O.inlineValues[0]}else if(s){var R=a.getDimensionInfo(o[0]);I=d=retrieveRawValue(a,n,o[0]),v=R.type}else I=d=u?l[0]:l;var M=isNameSpecified(r),F=M&&r.name||"",V=a.getName(n),G=i?F:V;return createTooltipMarkup("section",{header:F,noHeader:i||!M,sortParam:I,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:c,name:G,noName:!trim(G),value:d,valueType:v,dataIndex:n})].concat($||[])})}function formatTooltipArrayValue(t,r,n,i,a){var o=r.getData(),s=reduce(t,function(v,$,I){var O=o.getDimensionInfo(I);return v=v||O&&O.tooltip!==!1&&O.displayName!=null},!1),l=[],u=[],c=[];i.length?each$4(i,function(v){d(retrieveRawValue(o,n,v),v)}):each$4(t,d);function d(v,$){var I=o.getDimensionInfo($);!I||I.otherDims.tooltip===!1||(s?c.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:a,name:I.displayName,value:v,valueType:I.type})):(l.push(v),u.push(I.type)))}return{inlineValues:l,inlineValueTypes:u,blocks:c}}var inner$8=makeInner();function getSelectionKey(t,r){return t.getName(r)||t.getId(r)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return r.prototype.init=function(n,i,a){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var o=inner$8(this).sourceManager=new SourceManager(this);o.prepareSource();var s=this.getInitialData(n,a);wrapData(s,this),this.dataTask.context.data=s,inner$8(this).dataBeforeProcessed=s,autoSeriesName(this),this._initSelectedMapFromData(s)},r.prototype.mergeDefaultAndTheme=function(n,i){var a=fetchLayoutMode(this),o=a?getLayoutParams(n):{},s=this.subType;ComponentModel$1.hasClass(s)&&(s+="Series"),merge(n,i.getTheme().get(this.subType)),merge(n,this.getDefaultOption()),defaultEmphasis(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&mergeLayoutParam(n,o,a)},r.prototype.mergeOption=function(n,i){n=merge(this.option,n,!0),this.fillDataTextStyle(n.data);var a=fetchLayoutMode(this);a&&mergeLayoutParam(this.option,n,a);var o=inner$8(this).sourceManager;o.dirty(),o.prepareSource();var s=this.getInitialData(n,i);wrapData(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,inner$8(this).dataBeforeProcessed=s,autoSeriesName(this),this._initSelectedMapFromData(s)},r.prototype.fillDataTextStyle=function(n){if(n&&!isTypedArray(n))for(var i=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&defaultEmphasis(n[a],"label",i)},r.prototype.getInitialData=function(n,i){},r.prototype.appendData=function(n){var i=this.getRawData();i.appendData(n.data)},r.prototype.getData=function(n){var i=getCurrentTask(this);if(i){var a=i.context.data;return n==null?a:a.getLinkedData(n)}else return inner$8(this).data},r.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},r.prototype.setData=function(n){var i=getCurrentTask(this);if(i){var a=i.context;a.outputData=n,i!==this.dataTask&&(a.data=n)}inner$8(this).data=n},r.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return createHashMap(n)},r.prototype.getSourceManager=function(){return inner$8(this).sourceManager},r.prototype.getSource=function(){return this.getSourceManager().getSource()},r.prototype.getRawData=function(){return inner$8(this).dataBeforeProcessed},r.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},r.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},r.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},r.prototype.formatTooltip=function(n,i,a){return defaultSeriesFormatTooltip({series:this,dataIndex:n,multipleSeries:i})},r.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(env$1.node&&!(n&&n.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(n,i,a){var o=this.ecModel,s=PaletteMixin.prototype.getColorFromPalette.call(this,n,i,a);return s||(s=o.getColorFromPalette(n,i,a)),s},r.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function(n,i){this._innerSelect(this.getData(i),n)},r.prototype.unselect=function(n,i){var a=this.option.selectedMap;if(!!a){var o=this.option.selectedMode,s=this.getData(i);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l<n.length;l++){var u=n[l],c=getSelectionKey(s,u);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},r.prototype.toggleSelect=function(n,i){for(var a=[],o=0;o<n.length;o++)a[0]=n[o],this.isSelected(n[o],i)?this.unselect(a,i):this.select(a,i)},r.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,i=keys(n),a=[],o=0;o<i.length;o++){var s=n[i[o]];s>=0&&a.push(s)}return a},r.prototype.isSelected=function(n,i){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(i);return(a==="all"||a[getSelectionKey(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},r.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},r.prototype._innerSelect=function(n,i){var a,o,s=this.option,l=s.selectedMode,u=i.length;if(!(!l||!u)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){isObject$2(s.selectedMap)||(s.selectedMap={});for(var c=s.selectedMap,d=0;d<u;d++){var v=i[d],$=getSelectionKey(n,v);c[$]=!0,this._selectedDataIndicesMap[$]=n.getRawIndex(v)}}else if(l==="single"||l===!0){var I=i[u-1],$=getSelectionKey(n,I);s.selectedMap=(a={},a[$]=!0,a),this._selectedDataIndicesMap=(o={},o[$]=n.getRawIndex(I),o)}}},r.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var i=[];n.hasItemOption&&n.each(function(a){var o=n.getRawDataItem(a);o&&o.selected&&i.push(a)}),i.length>0&&this._innerSelect(n,i)}},r.registerClass=function(n){return ComponentModel$1.registerClass(n)},r.protoInitialize=function(){var n=r.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),r}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(t){var r=t.name;isNameSpecified(t)||(t.name=getSeriesAutoName(t)||r)}function getSeriesAutoName(t){var r=t.getRawData(),n=r.mapDimensionsAll("seriesName"),i=[];return each$4(n,function(a){var o=r.getDimensionInfo(a);o.displayName&&i.push(o.displayName)}),i.join(" ")}function dataTaskCount(t){return t.model.getRawData().count()}function dataTaskReset(t){var r=t.model;return r.setData(r.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(t,r){r.outputData&&t.end>r.outputData.count()&&r.model.getRawData().cloneShallow(r.outputData)}function wrapData(t,r){each$4(concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,curry$1(onDataChange,r))})}function onDataChange(t,r){var n=getCurrentTask(t);return n&&n.setOutputEnd((r||this).count()),r}function getCurrentTask(t){var r=(t.ecModel||{}).scheduler,n=r&&r.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(t.uid))}return i}}var SeriesModel$1=SeriesModel,ComponentView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewComponent")}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,i,a){},t.prototype.dispose=function(r,n){},t.prototype.updateView=function(r,n,i,a){},t.prototype.updateLayout=function(r,n,i,a){},t.prototype.updateVisual=function(r,n,i,a){},t.prototype.toggleBlurSeries=function(r,n,i){},t.prototype.eachRendered=function(r){var n=this.group;n&&n.traverse(r)},t}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);var ComponentView$1=ComponentView;function createRenderPlanner(){var t=makeInner();return function(r){var n=t(r),i=r.pipelineContext,a=!!n.large,o=!!n.progressiveRender,s=n.large=!!(i&&i.large),l=n.progressiveRender=!!(i&&i.progressiveRender);return(a!==s||o!==l)&&"reset"}}var inner$7=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,i,a){},t.prototype.highlight=function(r,n,i,a){var o=r.getData(a&&a.dataType);!o||toggleHighlight(o,a,"emphasis")},t.prototype.downplay=function(r,n,i,a){var o=r.getData(a&&a.dataType);!o||toggleHighlight(o,a,"normal")},t.prototype.remove=function(r,n){this.group.removeAll()},t.prototype.dispose=function(r,n){},t.prototype.updateView=function(r,n,i,a){this.render(r,n,i,a)},t.prototype.updateLayout=function(r,n,i,a){this.render(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.render(r,n,i,a)},t.prototype.eachRendered=function(r){traverseElements(this.group,r)},t.markUpdateMethod=function(r,n){inner$7(r).updateMethod=n},t.protoInitialize=function(){var r=t.prototype;r.type="chart"}(),t}();function elSetState(t,r,n){t&&isHighDownDispatcher(t)&&(r==="emphasis"?enterEmphasis:leaveEmphasis)(t,n)}function toggleHighlight(t,r,n){var i=queryDataIndex(t,r),a=r&&r.highlightKey!=null?getHighlightDigit(r.highlightKey):null;i!=null?each$4(normalizeToArray(i),function(o){elSetState(t.getItemGraphicEl(o),n,a)}):t.eachItemGraphicEl(function(o){elSetState(o,n,a)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(t){return renderPlanner(t.model)}function renderTaskReset(t){var r=t.model,n=t.ecModel,i=t.api,a=t.payload,o=r.pipelineContext.progressiveRender,s=t.view,l=a&&inner$7(a).updateMethod,u=o?"incrementalPrepareRender":l&&s[l]?l:"render";return u!=="render"&&s[u](r,n,i,a),progressMethodMap[u]}var progressMethodMap={incrementalPrepareRender:{progress:function(t,r){r.view.incrementalRender(t,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(t,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},ChartView$1=ChartView,ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(t,r,n){var i,a=0,o=0,s=null,l,u,c,d;r=r||0;function v(){o=new Date().getTime(),s=null,t.apply(u,c||[])}var $=function(){for(var I=[],O=0;O<arguments.length;O++)I[O]=arguments[O];i=new Date().getTime(),u=this,c=I;var R=d||r,M=d||n;d=null,l=i-(M?a:o)-R,clearTimeout(s),M?s=setTimeout(v,R):l>=0?v():s=setTimeout(v,-l),a=i};return $.clear=function(){s&&(clearTimeout(s),s=null)},$.debounceNextCall=function(I){d=I},$}function createOrUpdate(t,r,n,i){var a=t[r];if(!!a){var o=a[ORIGIN_METHOD]||a,s=a[THROTTLE_TYPE],l=a[RATE];if(l!==n||s!==i){if(n==null||!i)return t[r]=o;a=t[r]=throttle(o,n,i==="debounce"),a[ORIGIN_METHOD]=o,a[THROTTLE_TYPE]=i,a[RATE]=n}return a}}function clear(t,r){var n=t[r];n&&n[ORIGIN_METHOD]&&(n.clear&&n.clear(),t[r]=n[ORIGIN_METHOD])}var inner$6=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(t,r){var n=t.visualStyleMapper||defaultStyleMappers[r];return n||(console.warn("Unknown style type '"+r+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(t,r){var n=t.visualDrawType||defaultColorKey[r];return n||(console.warn("Unknown style type '"+r+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=t.getModel(i),o=getStyleMapper(t,i),s=o(a),l=a.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=getDefaultColorKey(t,i),c=s[u],d=isFunction(c)?c:null,v=s.fill==="auto"||s.stroke==="auto";if(!s[u]||d||v){var $=t.getColorFromPalette(t.name,null,r.getSeriesCount());s[u]||(s[u]=$,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||isFunction(s.fill)?$:s.fill,s.stroke=s.stroke==="auto"||isFunction(s.stroke)?$:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!r.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(I,O){var R=t.getDataParams(O),M=extend({},s);M[u]=d(R),I.setItemVisual(O,"style",M)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!(t.ignoreStyleOnData||r.isSeriesFiltered(t))){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=getStyleMapper(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var u=s.getRawDataItem(l);if(u&&u[i]){sharedModel.option=u[i];var c=a(sharedModel),d=s.ensureUniqueItemVisual(l,"style");extend(d,c),sharedModel.option.decal&&(s.setItemVisual(l,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),o in c&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(t){var r=createHashMap();t.eachSeries(function(n){var i=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+i,o=r.get(a);o||(o={},r.set(a,o)),inner$6(n).scope=o}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var i=n.getRawData(),a={},o=n.getData(),s=inner$6(n).scope,l=n.visualStyleAccessPath||"itemStyle",u=getDefaultColorKey(n,l);o.each(function(c){var d=o.getRawIndex(c);a[d]=c}),i.each(function(c){var d=a[c],v=o.getItemVisual(d,"colorFromPalette");if(v){var $=o.ensureUniqueItemVisual(d,"style"),I=i.getName(c)||c+"",O=i.count();$[u]=n.getColorFromPalette(I,s,O)}})}})}},PI$1=Math.PI;function defaultLoading(t,r){r=r||{},defaults(r,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Group$3,i=new Rect$1({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});n.add(i);var a=new ZRText$1({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001}),o=new Rect$1({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});n.add(o);var s;return r.showSpinner&&(s=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=a.getBoundingRect().width,u=r.showSpinner?r.spinnerRadius:0,c=(t.getWidth()-u*2-(r.showSpinner&&l?10:0)-l)/2-(r.showSpinner&&l?0:5+l/2)+(r.showSpinner?0:l/2)+(l?0:u),d=t.getHeight()/2;r.showSpinner&&s.setShape({cx:c,cy:d}),o.setShape({x:c-u,y:d-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Scheduler=function(){function t(r,n,i,a){this._stageTaskMap=createHashMap(),this.ecInstance=r,this.api=n,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return t.prototype.restoreData=function(r,n){r.restoreData(n),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(r,n){if(!!r.__pipeline){var i=this._pipelineMap.get(r.__pipeline.id),a=i.context,o=!n&&i.progressiveEnabled&&(!a||a.progressiveRender)&&r.__idxInPipeline>i.blockIndex,s=o?i.step:null,l=a&&a.modDataCount,u=l!=null?Math.ceil(l/s):null;return{step:s,modBy:u,modDataCount:l}}},t.prototype.getPipeline=function(r){return this._pipelineMap.get(r)},t.prototype.updateStreamModes=function(r,n){var i=this._pipelineMap.get(r.uid),a=r.getData(),o=a.count(),s=i.progressiveEnabled&&n.incrementalPrepareRender&&o>=i.threshold,l=r.get("large")&&o>=r.get("largeThreshold"),u=r.get("progressiveChunkMode")==="mod"?o:null;r.pipelineContext=i.context={progressiveRender:s,modDataCount:u,large:l}},t.prototype.restorePipelines=function(r){var n=this,i=n._pipelineMap=createHashMap();r.eachSeries(function(a){var o=a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var r=this._stageTaskMap,n=this.api.getModel(),i=this.api;each$4(this._allHandlers,function(a){var o=r.get(a.uid)||r.set(a.uid,{}),s="";assert(!(a.reset&&a.overallReset),s),a.reset&&this._createSeriesStageTask(a,o,n,i),a.overallReset&&this._createOverallStageTask(a,o,n,i)},this)},t.prototype.prepareView=function(r,n,i,a){var o=r.renderTask,s=o.context;s.model=n,s.ecModel=i,s.api=a,o.__block=!r.incrementalPrepareRender,this._pipe(n,o)},t.prototype.performDataProcessorTasks=function(r,n){this._performStageTasks(this._dataProcessorHandlers,r,n,{block:!0})},t.prototype.performVisualTasks=function(r,n,i){this._performStageTasks(this._visualHandlers,r,n,i)},t.prototype._performStageTasks=function(r,n,i,a){a=a||{};var o=!1,s=this;each$4(r,function(u,c){if(!(a.visualType&&a.visualType!==u.visualType)){var d=s._stageTaskMap.get(u.uid),v=d.seriesTaskMap,$=d.overallTask;if($){var I,O=$.agentStubMap;O.each(function(M){l(a,M)&&(M.dirty(),I=!0)}),I&&$.dirty(),s.updatePayload($,i);var R=s.getPerformArgs($,a.block);O.each(function(M){M.perform(R)}),$.perform(R)&&(o=!0)}else v&&v.each(function(M,F){l(a,M)&&M.dirty();var V=s.getPerformArgs(M,a.block);V.skip=!u.performRawSeries&&n.isSeriesFiltered(M.context.model),s.updatePayload(M,i),M.perform(V)&&(o=!0)})}});function l(u,c){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(r){var n;r.eachSeries(function(i){n=i.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(r){var n=r.tail;do{if(n.__block){r.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(r,n){n!=="remain"&&(r.context.payload=n)},t.prototype._createSeriesStageTask=function(r,n,i,a){var o=this,s=n.seriesTaskMap,l=n.seriesTaskMap=createHashMap(),u=r.seriesType,c=r.getTargetSeries;r.createOnAllSeries?i.eachRawSeries(d):u?i.eachRawSeriesByType(u,d):c&&c(i,a).each(d);function d(v){var $=v.uid,I=l.set($,s&&s.get($)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));I.context={model:v,ecModel:i,api:a,useClearVisual:r.isVisual&&!r.isLayout,plan:r.plan,reset:r.reset,scheduler:o},o._pipe(v,I)}},t.prototype._createOverallStageTask=function(r,n,i,a){var o=this,s=n.overallTask=n.overallTask||createTask({reset:overallTaskReset});s.context={ecModel:i,api:a,overallReset:r.overallReset,scheduler:o};var l=s.agentStubMap,u=s.agentStubMap=createHashMap(),c=r.seriesType,d=r.getTargetSeries,v=!0,$=!1,I="";assert(!r.createOnAllSeries,I),c?i.eachRawSeriesByType(c,O):d?d(i,a).each(O):(v=!1,each$4(i.getSeries(),O));function O(R){var M=R.uid,F=u.set(M,l&&l.get(M)||($=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));F.context={model:R,overallProgress:v},F.agent=s,F.__block=v,o._pipe(R,F)}$&&s.dirty()},t.prototype._pipe=function(r,n){var i=r.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(r,n){return isFunction(r)&&(r={overallReset:r,seriesType:detectSeriseType(r)}),r.uid=getUID("stageHandler"),n&&(r.visualType=n),r},t}();function overallTaskReset(t){t.overallReset(t.ecModel,t.api,t.payload)}function stubReset(t){return t.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function seriesTaskReset(t){t.useClearVisual&&t.data.clearAllVisual();var r=t.resetDefines=normalizeToArray(t.reset(t.model,t.ecModel,t.api,t.payload));return r.length>1?map$1(r,function(n,i){return makeSeriesTaskProgress(i)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(t){return function(r,n){var i=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var o=r.start;o<r.end;o++)a.dataEach(i,o);else a&&a.progress&&a.progress(r,i)}}function seriesTaskCount(t){return t.data.count()}function detectSeriseType(t){seriesType=null;try{t(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function(t){seriesType=t};ecModelMock.eachComponent=function(t){t.mainType==="series"&&t.subType&&(seriesType=t.subType)};function mockMethods(t,r){for(var n in r.prototype)t[n]=noop}var Scheduler$1=Scheduler,colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]},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;var darkTheme=theme,ECEventProcessor=function(){function t(){}return t.prototype.normalizeQuery=function(r){var n={},i={},a={};if(isString(r)){var o=parseClassType(r);n.mainType=o.main||null,n.subType=o.sub||null}else{var s=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};each$4(r,function(u,c){for(var d=!1,v=0;v<s.length;v++){var $=s[v],I=c.lastIndexOf($);if(I>0&&I===c.length-$.length){var O=c.slice(0,I);O!=="data"&&(n.mainType=O,n[$.toLowerCase()]=u,d=!0)}}l.hasOwnProperty(c)&&(i[c]=u,d=!0),d||(a[c]=u)})}return{cptQuery:n,dataQuery:i,otherQuery:a}},t.prototype.filter=function(r,n){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,o=i.packedEvent,s=i.model,l=i.view;if(!s||!l)return!0;var u=n.cptQuery,c=n.dataQuery;return d(u,s,"mainType")&&d(u,s,"subType")&&d(u,s,"index","componentIndex")&&d(u,s,"name")&&d(u,s,"id")&&d(c,o,"name")&&d(c,o,"dataIndex")&&d(c,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(r,n.otherQuery,a,o));function d(v,$,I,O){return v[I]==null||$[O||I]===v[I]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},a={},o=!1,s=0;s<SYMBOL_PROPS_WITH_CB.length;s++){var l=SYMBOL_PROPS_WITH_CB[s],u=t.get(l);isFunction(u)?(o=!0,a[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(extend({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),r.isSeriesFiltered(t))return;var c=keys(a);function d(v,$){for(var I=t.getRawValue($),O=t.getDataParams($),R=0;R<c.length;R++){var M=c[R];v.setItemVisual($,M,a[M](I,O))}}return{dataEach:o?d:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!t.hasSymbolVisual||r.isSeriesFiltered(t))return;var n=t.getData();function i(a,o){for(var s=a.getItemModel(o),l=0;l<SYMBOL_PROPS.length;l++){var u=SYMBOL_PROPS[l],c=s.getShallow(u,!0);c!=null&&a.setItemVisual(o,u,c)}}return{dataEach:n.hasItemOption?i:null}}};function getItemVisualFromData(t,r,n){switch(n){case"color":var i=t.getItemVisual(r,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(r,n)}}function getVisualFromData(t,r){switch(r){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(r)}}function handleSeriesLegacySelectEvents(t,r,n,i,a){var o=t+r;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(s){for(var l=s.seriesIndex,u=s.option.selectedMap,c=a.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===l){var v=s.getData(),$=queryDataIndex(v,a.fromActionPayload);n.trigger(o,{type:o,seriesId:s.id,name:isArray($)?v.getName($[0]):v.getName($),selected:isString(u)?u:extend({},u)})}})}function handleLegacySelectEvents(t,r,n){t.on("selectchanged",function(i){var a=n.getModel();i.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",r,a,i),handleSeriesLegacySelectEvents("pie","selectchanged",r,a,i)):i.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",r,a,i),handleSeriesLegacySelectEvents("pie","selected",r,a,i)):i.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",r,a,i),handleSeriesLegacySelectEvents("pie","unselected",r,a,i))})}function findEventDispatcher(t,r,n){for(var i;t&&!(r(t)&&(i=t,n));)t=t.__hostTarget||t.parent;return i}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function t(){this._id="__ec_inner_"+wmUniqueIndex++}return t.prototype.get=function(r){return this._guard(r)[this._id]},t.prototype.set=function(r,n){var i=this._guard(r);return supportDefineProperty?Object.defineProperty(i,this._id,{value:n,enumerable:!1,configurable:!0}):i[this._id]=n,this},t.prototype.delete=function(r){return this.has(r)?(delete this._guard(r)[this._id],!0):!1},t.prototype.has=function(r){return!!this._guard(r)[this._id]},t.prototype._guard=function(r){if(r!==Object(r))throw TypeError("Value of WeakMap is not a non-null object.");return r},t}(),WeakMap$2=WeakMap$1,Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,r){var n=r.cx,i=r.cy,a=r.width/2,o=r.height/2;t.moveTo(n,i-o),t.lineTo(n+a,i+o),t.lineTo(n-a,i+o),t.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,r){var n=r.cx,i=r.cy,a=r.width/2,o=r.height/2;t.moveTo(n,i-o),t.lineTo(n+a,i),t.lineTo(n,i+o),t.lineTo(n-a,i),t.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,r){var n=r.x,i=r.y,a=r.width/5*3,o=Math.max(a,r.height),s=a/2,l=s*s/(o-s),u=i-o+s+l,c=Math.asin(l/s),d=Math.cos(c)*s,v=Math.sin(c),$=Math.cos(c),I=s*.6,O=s*.7;t.moveTo(n-d,u+l),t.arc(n,u,s,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+d-v*I,u+l+$*I,n,i-O,n,i),t.bezierCurveTo(n,i-O,n-d+v*I,u+l+$*I,n-d,u+l),t.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,r){var n=r.height,i=r.width,a=r.x,o=r.y,s=i/3*2;t.moveTo(a,o),t.lineTo(a+s,o+n),t.lineTo(a,o+n/4*3),t.lineTo(a-s,o+n),t.lineTo(a,o),t.closePath()}}),symbolCtors={line:Line$1,rect:Rect$1,roundRect:Rect$1,square:Rect$1,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function(t,r,n,i,a){a.x1=t,a.y1=r+i/2,a.x2=t+n,a.y2=r+i/2},rect:function(t,r,n,i,a){a.x=t,a.y=r,a.width=n,a.height=i},roundRect:function(t,r,n,i,a){a.x=t,a.y=r,a.width=n,a.height=i,a.r=Math.min(n,i)/4},square:function(t,r,n,i,a){var o=Math.min(n,i);a.x=t,a.y=r,a.width=o,a.height=o},circle:function(t,r,n,i,a){a.cx=t+n/2,a.cy=r+i/2,a.r=Math.min(n,i)/2},diamond:function(t,r,n,i,a){a.cx=t+n/2,a.cy=r+i/2,a.width=n,a.height=i},pin:function(t,r,n,i,a){a.x=t+n/2,a.y=r+i/2,a.width=n,a.height=i},arrow:function(t,r,n,i,a){a.x=t+n/2,a.y=r+i/2,a.width=n,a.height=i},triangle:function(t,r,n,i,a){a.cx=t+n/2,a.cy=r+i/2,a.width=n,a.height=i}},symbolBuildProxies={};each$4(symbolCtors,function(t,r){symbolBuildProxies[r]=new t});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,r,n){var i=calculateTextPosition(t,r,n),a=this.shape;return a&&a.symbolType==="pin"&&r.position==="inside"&&(i.y=n.y+n.height*.4),i},buildPath:function(t,r,n){var i=r.symbolType;if(i!=="none"){var a=symbolBuildProxies[i];a||(i="rect",a=symbolBuildProxies[i]),symbolShapeMakers[i](r.x,r.y,r.width,r.height,a.shape),a.buildPath(t,a.shape,n)}}});function symbolPathSetColor(t,r){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=r||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function createSymbol(t,r,n,i,a,o,s){var l=t.indexOf("empty")===0;l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=makeImage(t.slice(8),new BoundingRect$1(r,n,i,a),s?"center":"cover"):t.indexOf("path://")===0?u=makePath(t.slice(7),{},new BoundingRect$1(r,n,i,a),s?"center":"cover"):u=new SymbolClz$1({shape:{symbolType:t,x:r,y:n,width:i,height:a}}),u.__isEmptyBrush=l,u.setColor=symbolPathSetColor,o&&u.setColor(o),u}function normalizeSymbolSize(t){return isArray(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function normalizeSymbolOffset(t,r){if(t!=null)return isArray(t)||(t=[t,t]),[parsePercent(t[0],r[0])||0,parsePercent(retrieve2(t[1],t[0]),r[1])||0]}function isSafeNum(t){return isFinite(t)}function createLinearGradient(t,r,n){var i=r.x==null?0:r.x,a=r.x2==null?1:r.x2,o=r.y==null?0:r.y,s=r.y2==null?0:r.y2;r.global||(i=i*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),i=isSafeNum(i)?i:0,a=isSafeNum(a)?a:1,o=isSafeNum(o)?o:0,s=isSafeNum(s)?s:0;var l=t.createLinearGradient(i,o,a,s);return l}function createRadialGradient(t,r,n){var i=n.width,a=n.height,o=Math.min(i,a),s=r.x==null?.5:r.x,l=r.y==null?.5:r.y,u=r.r==null?.5:r.r;r.global||(s=s*i+n.x,l=l*a+n.y,u=u*o),s=isSafeNum(s)?s:.5,l=isSafeNum(l)?l:.5,u=u>=0&&isSafeNum(u)?u:.5;var c=t.createRadialGradient(s,l,0,s,l,u);return c}function getCanvasGradient(t,r,n){for(var i=r.type==="radial"?createRadialGradient(t,r,n):createLinearGradient(t,r,n),a=r.colorStops,o=0;o<a.length;o++)i.addColorStop(a[o].offset,a[o].color);return i}function isClipPathChanged(t,r){if(t===r||!t&&!r)return!1;if(!t||!r||t.length!==r.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==r[n])return!0;return!1}function parseInt10(t){return parseInt(t,10)}function getSize(t,r,n){var i=["width","height"][r],a=["clientWidth","clientHeight"][r],o=["paddingLeft","paddingTop"][r],s=["paddingRight","paddingBottom"][r];if(n[i]!=null&&n[i]!=="auto")return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[a]||parseInt10(l[i])||parseInt10(t.style[i]))-(parseInt10(l[o])||0)-(parseInt10(l[s])||0)|0}function normalizeLineDash(t,r){return!t||t==="solid"||!(r>0)?null:t==="dashed"?[4*r,2*r]:t==="dotted"?[r]:isNumber(t)?[t]:isArray(t)?t:null}function getLineDash(t){var r=t.style,n=r.lineDash&&r.lineWidth>0&&normalizeLineDash(r.lineDash,r.lineWidth),i=r.lineDashOffset;if(n){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=map$1(n,function(o){return o/a}),i/=a)}return[n,i]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(t){var r=t.stroke;return!(r==null||r==="none"||!(t.lineWidth>0))}function isValidStrokeFillStyle(t){return typeof t=="string"&&t!=="none"}function styleHasFill(t){var r=t.fill;return r!=null&&r!=="none"}function doFillPath(t,r){if(r.fillOpacity!=null&&r.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=r.fillOpacity*r.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function doStrokePath(t,r){if(r.strokeOpacity!=null&&r.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=r.strokeOpacity*r.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function createCanvasPattern(t,r,n){var i=createOrUpdateImage(r.image,r.__image,n);if(isImageReady(i)){var a=t.createPattern(i,r.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(r.x||0,r.y||0),o.rotateSelf(0,0,(r.rotation||0)*RADIAN_TO_DEGREE),o.scaleSelf(r.scaleX||1,r.scaleY||1),a.setTransform(o)}return a}}function brushPath(t,r,n,i){var a,o=styleHasStroke(n),s=styleHasFill(n),l=n.strokePercent,u=l<1,c=!r.path;(!r.silent||u)&&c&&r.createPathProxy();var d=r.path||pathProxyForDraw,v=r.__dirty;if(!i){var $=n.fill,I=n.stroke,O=s&&!!$.colorStops,R=o&&!!I.colorStops,M=s&&!!$.image,F=o&&!!I.image,V=void 0,G=void 0,Y=void 0,X=void 0,q=void 0;(O||R)&&(q=r.getBoundingRect()),O&&(V=v?getCanvasGradient(t,$,q):r.__canvasFillGradient,r.__canvasFillGradient=V),R&&(G=v?getCanvasGradient(t,I,q):r.__canvasStrokeGradient,r.__canvasStrokeGradient=G),M&&(Y=v||!r.__canvasFillPattern?createCanvasPattern(t,$,r):r.__canvasFillPattern,r.__canvasFillPattern=Y),F&&(X=v||!r.__canvasStrokePattern?createCanvasPattern(t,I,r):r.__canvasStrokePattern,r.__canvasStrokePattern=Y),O?t.fillStyle=V:M&&(Y?t.fillStyle=Y:s=!1),R?t.strokeStyle=G:F&&(X?t.strokeStyle=X:o=!1)}var Z=r.getGlobalScale();d.setScale(Z[0],Z[1],r.segmentIgnoreThreshold);var Q,ie;t.setLineDash&&n.lineDash&&(a=getLineDash(r),Q=a[0],ie=a[1]);var J=!0;(c||v&SHAPE_CHANGED_BIT)&&(d.setDPR(t.dpr),u?d.setContext(null):(d.setContext(t),J=!1),d.reset(),r.buildPath(d,r.shape,i),d.toStatic(),r.pathUpdated()),J&&d.rebuildPath(t,u?l:1),Q&&(t.setLineDash(Q),t.lineDashOffset=ie),i||(n.strokeFirst?(o&&doStrokePath(t,n),s&&doFillPath(t,n)):(s&&doFillPath(t,n),o&&doStrokePath(t,n))),Q&&t.setLineDash([])}function brushImage(t,r,n){var i=r.__image=createOrUpdateImage(n.image,r.__image,r,r.onload);if(!(!i||!isImageReady(i))){var a=n.x||0,o=n.y||0,s=r.getWidth(),l=r.getHeight(),u=i.width/i.height;if(s==null&&l!=null?s=l*u:l==null&&s!=null?l=s/u:s==null&&l==null&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;t.drawImage(i,c,d,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var c=n.sx,d=n.sy,v=s-c,$=l-d;t.drawImage(i,c,d,v,$,a,o,s,l)}else t.drawImage(i,a,o,s,l)}}function brushText(t,r,n){var i,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||DEFAULT_FONT,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,s=void 0;t.setLineDash&&n.lineDash&&(i=getLineDash(r),o=i[0],s=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=s),n.strokeFirst?(styleHasStroke(n)&&t.strokeText(a,n.x,n.y),styleHasFill(n)&&t.fillText(a,n.x,n.y)):(styleHasFill(n)&&t.fillText(a,n.x,n.y),styleHasStroke(n)&&t.strokeText(a,n.x,n.y)),o&&t.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(t,r,n,i,a){var o=!1;if(!i&&(n=n||{},r===n))return!1;if(i||r.opacity!==n.opacity){flushPathDrawn(t,a),o=!0;var s=Math.max(Math.min(r.opacity,1),0);t.globalAlpha=isNaN(s)?DEFAULT_COMMON_STYLE.opacity:s}(i||r.blend!==n.blend)&&(o||(flushPathDrawn(t,a),o=!0),t.globalCompositeOperation=r.blend||DEFAULT_COMMON_STYLE.blend);for(var l=0;l<SHADOW_NUMBER_PROPS.length;l++){var u=SHADOW_NUMBER_PROPS[l];(i||r[u]!==n[u])&&(o||(flushPathDrawn(t,a),o=!0),t[u]=t.dpr*(r[u]||0))}return(i||r.shadowColor!==n.shadowColor)&&(o||(flushPathDrawn(t,a),o=!0),t.shadowColor=r.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),o}function bindPathAndTextCommonStyle(t,r,n,i,a){var o=getStyle(r,a.inHover),s=i?null:n&&getStyle(n,a.inHover)||{};if(o===s)return!1;var l=bindCommonProps(t,o,s,i,a);if((i||o.fill!==s.fill)&&(l||(flushPathDrawn(t,a),l=!0),isValidStrokeFillStyle(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==s.stroke)&&(l||(flushPathDrawn(t,a),l=!0),isValidStrokeFillStyle(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==s.opacity)&&(l||(flushPathDrawn(t,a),l=!0),t.globalAlpha=o.opacity==null?1:o.opacity),r.hasStroke()){var u=o.lineWidth,c=u/(o.strokeNoScale&&r.getLineScale?r.getLineScale():1);t.lineWidth!==c&&(l||(flushPathDrawn(t,a),l=!0),t.lineWidth=c)}for(var d=0;d<STROKE_PROPS.length;d++){var v=STROKE_PROPS[d],$=v[0];(i||o[$]!==s[$])&&(l||(flushPathDrawn(t,a),l=!0),t[$]=o[$]||v[1])}return l}function bindImageStyle(t,r,n,i,a){return bindCommonProps(t,getStyle(r,a.inHover),n&&getStyle(n,a.inHover),i,a)}function setContextTransform(t,r){var n=r.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function updateClipStatus(t,r,n){for(var i=!1,a=0;a<t.length;a++){var o=t[a];i=i||o.isZeroArea(),setContextTransform(r,o),r.beginPath(),o.buildPath(r,o.shape),r.clip()}n.allClipped=i}function isTransformChanged(t,r){return t&&r?t[0]!==r[0]||t[1]!==r[1]||t[2]!==r[2]||t[3]!==r[3]||t[4]!==r[4]||t[5]!==r[5]:!(!t&&!r)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch(t){var r=styleHasFill(t),n=styleHasStroke(t);return!(t.lineDash||!(+r^+n)||r&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function flushPathDrawn(t,r){r.batchFill&&t.fill(),r.batchStroke&&t.stroke(),r.batchFill="",r.batchStroke=""}function getStyle(t,r){return r&&t.__hoverStyle||t.style}function brushSingle(t,r){brush(t,r,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush(t,r,n,i){var a=r.transform;if(!r.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){r.__dirty&=~REDRAW_BIT,r.__isRendered=!1;return}var o=r.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if((!s||isClipPathChanged(o,s))&&(s&&s.length&&(flushPathDrawn(t,n),t.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(flushPathDrawn(t,n),t.save(),updateClipStatus(o,t,n),l=!0),n.prevElClipPaths=o),n.allClipped){r.__isRendered=!1;return}r.beforeBrush&&r.beforeBrush(),r.innerBeforeBrush();var c=n.prevEl;c||(u=l=!0);var d=r instanceof Path$1&&r.autoBatch&&canPathBatch(r.style);l||isTransformChanged(a,c.transform)?(flushPathDrawn(t,n),setContextTransform(t,r)):d||flushPathDrawn(t,n);var v=getStyle(r,n.inHover);r instanceof Path$1?(n.lastDrawType!==DRAW_TYPE_PATH&&(u=!0,n.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(t,r,c,u,n),(!d||!n.batchFill&&!n.batchStroke)&&t.beginPath(),brushPath(t,r,v,d),d&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):r instanceof TSpan$1?(n.lastDrawType!==DRAW_TYPE_TEXT&&(u=!0,n.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(t,r,c,u,n),brushText(t,r,v)):r instanceof ZRImage$1?(n.lastDrawType!==DRAW_TYPE_IMAGE&&(u=!0,n.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(t,r,c,u,n),brushImage(t,r,v)):r.getTemporalDisplayables&&(n.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(u=!0,n.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(t,r,n)),d&&i&&flushPathDrawn(t,n),r.innerAfterBrush(),r.afterBrush&&r.afterBrush(),n.prevEl=r,r.__dirty=0,r.__isRendered=!0}function brushIncremental(t,r,n){var i=r.getDisplayables(),a=r.getTemporalDisplayables();t.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},s,l;for(s=r.getCursor(),l=i.length;s<l;s++){var u=i[s];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),brush(t,u,o,s===l-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),o.prevEl=u}for(var c=0,d=a.length;c<d;c++){var u=a[c];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),brush(t,u,o,c===d-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),o.prevEl=u}r.clearTemporalDisplayables(),r.notClear=!0,t.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal(t,r){if(t==="none")return null;var n=r.getDevicePixelRatio(),i=r.getZr(),a=i.painter.type==="svg";t.dirty&&decalMap.delete(t);var o=decalMap.get(t);if(o)return o;var s=defaults(t,{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});s.backgroundColor==="none"&&(s.backgroundColor=null);var l={repeat:"repeat"};return u(l),l.rotation=s.rotation,l.scaleX=l.scaleY=a?1:1/n,decalMap.set(t,l),t.dirty=!1,l;function u(c){for(var d=[n],v=!0,$=0;$<decalKeys.length;++$){var I=s[decalKeys[$]];if(I!=null&&!isArray(I)&&!isString(I)&&!isNumber(I)&&typeof I!="boolean"){v=!1;break}d.push(I)}var O;if(v){O=d.join(",")+(a?"-svg":"");var R=decalCache.get(O);R&&(a?c.svgElement=R:c.image=R)}var M=normalizeDashArrayX(s.dashArrayX),F=normalizeDashArrayY(s.dashArrayY),V=normalizeSymbolArray(s.symbol),G=getLineBlockLengthX(M),Y=getLineBlockLengthY(F),X=!a&&platformApi.createCanvas(),q=a&&{tag:"g",attrs:{},key:"dcl",children:[]},Z=ie(),Q;X&&(X.width=Z.width*n,X.height=Z.height*n,Q=X.getContext("2d")),J(),v&&decalCache.put(O,X||q),c.image=X,c.svgElement=q,c.svgWidth=Z.width,c.svgHeight=Z.height;function ie(){for(var re=1,te=0,oe=G.length;te<oe;++te)re=getLeastCommonMultiple(re,G[te]);for(var le=1,te=0,oe=V.length;te<oe;++te)le=getLeastCommonMultiple(le,V[te].length);re*=le;var fe=Y*G.length*V.length;return{width:Math.max(1,Math.min(re,s.maxTileWidth)),height:Math.max(1,Math.min(fe,s.maxTileHeight))}}function J(){Q&&(Q.clearRect(0,0,X.width,X.height),s.backgroundColor&&(Q.fillStyle=s.backgroundColor,Q.fillRect(0,0,X.width,X.height)));for(var re=0,te=0;te<F.length;++te)re+=F[te];if(re<=0)return;for(var oe=-Y,le=0,fe=0,de=0;oe<Z.height;){if(le%2===0){for(var Se=fe/2%V.length,ge=0,Te=0,ke=0;ge<Z.width*2;){for(var Ie=0,te=0;te<M[de].length;++te)Ie+=M[de][te];if(Ie<=0)break;if(Te%2===0){var me=(1-s.symbolSize)*.5,Oe=ge+M[de][Te]*me,Ve=oe+F[le]*me,Xe=M[de][Te]*s.symbolSize,Ge=F[le]*s.symbolSize,st=ke/2%V[Se].length;at(Oe,Ve,Xe,Ge,V[Se][st])}ge+=M[de][Te],++ke,++Te,Te===M[de].length&&(Te=0)}++de,de===M.length&&(de=0)}oe+=F[le],++fe,++le,le===F.length&&(le=0)}function at(ft,Le,De,Be,se){var ae=a?1:n,ve=createSymbol(se,ft*ae,Le*ae,De*ae,Be*ae,s.color,s.symbolKeepAspect);if(a){var be=i.painter.renderOneToVNode(ve);be&&q.children.push(be)}else brushSingle(Q,ve)}}}}function normalizeSymbolArray(t){if(!t||t.length===0)return[["rect"]];if(isString(t))return[[t]];for(var r=!0,n=0;n<t.length;++n)if(!isString(t[n])){r=!1;break}if(r)return normalizeSymbolArray([t]);for(var i=[],n=0;n<t.length;++n)isString(t[n])?i.push([t[n]]):i.push(t[n]);return i}function normalizeDashArrayX(t){if(!t||t.length===0)return[[0,0]];if(isNumber(t)){var r=Math.ceil(t);return[[r,r]]}for(var n=!0,i=0;i<t.length;++i)if(!isNumber(t[i])){n=!1;break}if(n)return normalizeDashArrayX([t]);for(var a=[],i=0;i<t.length;++i)if(isNumber(t[i])){var r=Math.ceil(t[i]);a.push([r,r])}else{var r=map$1(t[i],function(l){return Math.ceil(l)});r.length%2===1?a.push(r.concat(r)):a.push(r)}return a}function normalizeDashArrayY(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(isNumber(t)){var r=Math.ceil(t);return[r,r]}var n=map$1(t,function(i){return Math.ceil(i)});return t.length%2?n.concat(n):n}function getLineBlockLengthX(t){return map$1(t,function(r){return getLineBlockLengthY(r)})}function getLineBlockLengthY(t){for(var r=0,n=0;n<t.length;++n)r+=t[n];return t.length%2===1?r*2:r}function decalVisual(t,r){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(s){var l=i.getItemVisual(s,"decal");if(l){var u=i.ensureUniqueItemVisual(s,"style");u.decal=createOrUpdatePatternFromDecal(l,r)}});var a=i.getVisual("decal");if(a){var o=i.getVisual("style");o.decal=createOrUpdatePatternFromDecal(a,r)}}})}var lifecycle=new Eventful$1,lifecycle$1=lifecycle,implsStore={};function registerImpl(t,r){implsStore[t]=r}function getImpl(t){return implsStore[t]}var 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(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,t,r)}}function createRegisterEventWithLowercaseMessageCenter(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return toLowercaseNameAndCallEventful(this,t,r)}}function toLowercaseNameAndCallEventful(t,r,n){return n[0]=n[0]&&n[0].toLowerCase(),Eventful$1.prototype[r].apply(t,n)}var MessageCenter=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function(t){__extends(r,t);function r(n,i,a){var o=t.call(this,new ECEventProcessor)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},isString(i)&&(i=themeStorage[i]),o._dom=n;var s="canvas",l="auto",u=!1;a.ssr;var c=o._zr=init$1(n,{renderer:a.renderer||s,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:retrieve2(a.useDirtyRect,u),useCoarsePointer:retrieve2(a.useCoarsePointer,l),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=throttle(bind$1(c.flush,c),17),i=clone$2(i),i&&globalBackwardCompat(i,!0),o._theme=i,o._locale=createLocaleObject(a.locale||SYSTEM_LANG),o._coordSysMgr=new CoordinateSystem;var d=o._api=createExtensionAPI(o);function v($,I){return $.__prio-I.__prio}return sort(visualFuncs,v),sort(dataProcessorFuncs,v),o._scheduler=new Scheduler$1(o,d,dataProcessorFuncs,visualFuncs),o._messageCenter=new MessageCenter,o._initEvents(),o.resize=bind$1(o.resize,o),c.animation.on("frame",o._onframe,o),bindRenderedEvent(c,o),bindMouseEvent(c,o),setAsPrimitive(o),o}return r.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var n=this._scheduler;if(this[PENDING_UPDATE]){var i=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(u){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,u}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,i),triggerUpdatedEvent.call(this,i)}else if(n.unfinished){var a=TEST_FRAME_REMAIN_TIME,o=this._model,s=this._api;n.unfinished=!1;do{var l=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),updateStreamModes(this,o),n.performVisualTasks(o),renderSeries(this,this._model,s,"remain",{}),a-=+new Date-l}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},r.prototype.getDom=function(){return this._dom},r.prototype.getId=function(){return this.id},r.prototype.getZr=function(){return this._zr},r.prototype.isSSR=function(){return this._ssr},r.prototype.setOption=function(n,i,a){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var o,s,l;if(isObject$2(i)&&(a=i.lazyUpdate,o=i.silent,s=i.replaceMerge,l=i.transition,i=i.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||i){var u=new OptionManager$1(this._api),c=this._theme,d=this._model=new GlobalModel$1;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,u)}this._model.setOption(n,{replaceMerge:s},optionPreprocessorFuncs);var v={seriesTransition:l,optionChanged:!0};if(a)this[PENDING_UPDATE]={silent:o,updateParams:v},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare(this),updateMethods.update.call(this,null,v)}catch($){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,$}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,o),triggerUpdatedEvent.call(this,o)}}},r.prototype.setTheme=function(){},r.prototype.getModel=function(){return this._model},r.prototype.getOption=function(){return this._model&&this._model.getOption()},r.prototype.getWidth=function(){return this._zr.getWidth()},r.prototype.getHeight=function(){return this._zr.getHeight()},r.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},r.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},r.prototype.renderToCanvas=function(n){n=n||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},r.prototype.renderToSVGString=function(n){n=n||{};var i=this._zr.painter;return i.renderToString({useViewBox:n.useViewBox})},r.prototype.getSvgDataURL=function(){if(!!env$1.svgSupported){var n=this._zr,i=n.storage.getDisplayList();return each$4(i,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},r.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var i=n.excludeComponents,a=this._model,o=[],s=this;each$4(i,function(u){a.eachComponent({mainType:u},function(c){var d=s._componentsMap[c.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return each$4(o,function(u){u.group.ignore=!1}),l},r.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var i=n.type==="svg",a=this.group,o=Math.min,s=Math.max,l=1/0;if(connectedGroups[a]){var u=l,c=l,d=-l,v=-l,$=[],I=n&&n.pixelRatio||this.getDevicePixelRatio();each$4(instances,function(G,Y){if(G.group===a){var X=i?G.getZr().painter.getSvgDom().innerHTML:G.renderToCanvas(clone$2(n)),q=G.getDom().getBoundingClientRect();u=o(q.left,u),c=o(q.top,c),d=s(q.right,d),v=s(q.bottom,v),$.push({dom:X,left:q.left,top:q.top})}}),u*=I,c*=I,d*=I,v*=I;var O=d-u,R=v-c,M=platformApi.createCanvas(),F=init$1(M,{renderer:i?"svg":"canvas"});if(F.resize({width:O,height:R}),i){var V="";return each$4($,function(G){var Y=G.left-u,X=G.top-c;V+='<g transform="translate('+Y+","+X+')">'+G.dom+"</g>"}),F.painter.getSvgRoot().innerHTML=V,n.connectedBackgroundColor&&F.painter.setBackgroundColor(n.connectedBackgroundColor),F.refreshImmediately(),F.painter.toDataURL()}else return n.connectedBackgroundColor&&F.add(new Rect$1({shape:{x:0,y:0,width:O,height:R},style:{fill:n.connectedBackgroundColor}})),each$4($,function(G){var Y=new ZRImage$1({style:{x:G.left*I-u,y:G.top*I-c,image:G.dom}});F.add(Y)}),F.refreshImmediately(),M.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},r.prototype.convertToPixel=function(n,i){return doConvertPixel(this,"convertToPixel",n,i)},r.prototype.convertFromPixel=function(n,i){return doConvertPixel(this,"convertFromPixel",n,i)},r.prototype.containPixel=function(n,i){if(this._disposed){this.id;return}var a=this._model,o,s=parseFinder(a,n);return each$4(s,function(l,u){u.indexOf("Models")>=0&&each$4(l,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(i);else if(u==="seriesModels"){var v=this._chartsMap[c.__viewId];v&&v.containPoint&&(o=o||v.containPoint(i,c))}},this)},this),!!o},r.prototype.getVisual=function(n,i){var a=this._model,o=parseFinder(a,n,{defaultMainType:"series"}),s=o.seriesModel,l=s.getData(),u=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?l.indexOfRawIndex(o.dataIndex):null;return u!=null?getItemVisualFromData(l,u,i):getVisualFromData(l,i)},r.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},r.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},r.prototype._initEvents=function(){var n=this;each$4(MOUSE_EVENT_NAMES,function(i){var a=function(o){var s=n.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&findEventDispatcher(l,function(O){var R=getECData(O);if(R&&R.dataIndex!=null){var M=R.dataModel||s.getSeriesByIndex(R.seriesIndex);return u=M&&M.getDataParams(R.dataIndex,R.dataType,l)||{},!0}else if(R.eventData)return u=extend({},R.eventData),!0},!0),u){var d=u.componentType,v=u.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",v=u.seriesIndex);var $=d&&v!=null&&s.getComponent(d,v),I=$&&n[$.mainType==="series"?"_chartsMap":"_componentsMap"][$.__viewId];u.event=o,u.type=i,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:$,view:I},n.trigger(i,u)}};a.zrEventfulCallAtLast=!0,n._zr.on(i,a,n)}),each$4(eventActionMap,function(i,a){n._messageCenter.on(a,function(o){this.trigger(a,o)},n)}),each$4(["selectchanged"],function(i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},r.prototype.isDisposed=function(){return this._disposed},r.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},r.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var i=this,a=i._api,o=i._model;each$4(i._componentsViews,function(s){s.dispose(o,a)}),each$4(i._chartsViews,function(s){s.dispose(o,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete instances[i.id]},r.prototype.resize=function(n){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(n);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),o=n&&n.silent;this[PENDING_UPDATE]&&(o==null&&(o=this[PENDING_UPDATE].silent),a=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{a&&prepare(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},n&&n.animation)})}catch(s){throw this[IN_MAIN_PROCESS_KEY]=!1,s}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,o),triggerUpdatedEvent.call(this,o)}}},r.prototype.showLoading=function(n,i){if(this._disposed){this.id;return}if(isObject$2(n)&&(i=n,n=""),n=n||"default",this.hideLoading(),!!loadingEffects[n]){var a=loadingEffects[n](this._api,i),o=this._zr;this._loadingFX=a,o.add(a)}},r.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},r.prototype.makeActionFromEvent=function(n){var i=extend({},n);return i.type=eventActionMap[n.type],i},r.prototype.dispatchAction=function(n,i){if(this._disposed){this.id;return}if(isObject$2(i)||(i={silent:!!i}),!!actions[n.type]&&!!this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(n);return}var a=i.silent;doDispatchAction.call(this,n,a);var o=i.flush;o?this._zr.flush():o!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,a),triggerUpdatedEvent.call(this,a)}},r.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},r.prototype.appendData=function(n){if(this._disposed){this.id;return}var i=n.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(i);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},r.internalField=function(){prepare=function(v){var $=v._scheduler;$.restorePipelines(v._model),$.prepareStageTasks(),prepareView(v,!0),prepareView(v,!1),$.plan()},prepareView=function(v,$){for(var I=v._model,O=v._scheduler,R=$?v._componentsViews:v._chartsViews,M=$?v._componentsMap:v._chartsMap,F=v._zr,V=v._api,G=0;G<R.length;G++)R[G].__alive=!1;$?I.eachComponent(function(q,Z){q!=="series"&&Y(Z)}):I.eachSeries(Y);function Y(q){var Z=q.__requireNewView;q.__requireNewView=!1;var Q="_ec_"+q.id+"_"+q.type,ie=!Z&&M[Q];if(!ie){var J=parseClassType(q.type),re=$?ComponentView$1.getClass(J.main,J.sub):ChartView$1.getClass(J.sub);ie=new re,ie.init(I,V),M[Q]=ie,R.push(ie),F.add(ie.group)}q.__viewId=ie.__id=Q,ie.__alive=!0,ie.__model=q,ie.group.__ecComponentInfo={mainType:q.mainType,index:q.componentIndex},!$&&O.prepareView(ie,q,I,V)}for(var G=0;G<R.length;){var X=R[G];X.__alive?G++:(!$&&X.renderTask.dispose(),F.remove(X.group),X.dispose(I,V),R.splice(G,1),M[X.__id]===X&&delete M[X.__id],X.__id=X.group.__ecComponentInfo=null)}},updateDirectly=function(v,$,I,O,R){var M=v._model;if(M.setUpdatePayload(I),!O){each$4([].concat(v._componentsViews).concat(v._chartsViews),X);return}var F={};F[O+"Id"]=I[O+"Id"],F[O+"Index"]=I[O+"Index"],F[O+"Name"]=I[O+"Name"];var V={mainType:O,query:F};R&&(V.subType=R);var G=I.excludeSeriesId,Y;G!=null&&(Y=createHashMap(),each$4(normalizeToArray(G),function(q){var Z=convertOptionIdName(q,null);Z!=null&&Y.set(Z,!0)})),M&&M.eachComponent(V,function(q){var Z=Y&&Y.get(q.id)!=null;if(!Z)if(isHighDownPayload(I))if(q instanceof SeriesModel$1)I.type===HIGHLIGHT_ACTION_TYPE&&!I.notBlur&&!q.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(q,I,v._api);else{var Q=findComponentHighDownDispatchers(q.mainType,q.componentIndex,I.name,v._api),ie=Q.focusSelf,J=Q.dispatchers;I.type===HIGHLIGHT_ACTION_TYPE&&ie&&!I.notBlur&&blurComponent(q.mainType,q.componentIndex,v._api),J&&each$4(J,function(re){I.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(re):leaveEmphasis(re)})}else isSelectChangePayload(I)&&q instanceof SeriesModel$1&&(toggleSelectionFromPayload(q,I,v._api),updateSeriesElementSelection(q),markStatusToUpdate(v))},v),M&&M.eachComponent(V,function(q){var Z=Y&&Y.get(q.id)!=null;Z||X(v[O==="series"?"_chartsMap":"_componentsMap"][q.__viewId])},v);function X(q){q&&q.__alive&&q[$]&&q[$](q.__model,M,v._api,I)}},updateMethods={prepareAndUpdate:function(v){prepare(this),updateMethods.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,$){var I=this._model,O=this._api,R=this._zr,M=this._coordSysMgr,F=this._scheduler;if(!!I){I.setUpdatePayload(v),F.restoreData(I,v),F.performSeriesTasks(I),M.create(I,O),F.performDataProcessorTasks(I,v),updateStreamModes(this,I),M.update(I,O),n(I),F.performVisualTasks(I,v),render(this,I,O,v,$);var V=I.get("backgroundColor")||"transparent",G=I.get("darkMode");R.setBackgroundColor(V),G!=null&&G!=="auto"&&R.setDarkMode(G),lifecycle$1.trigger("afterupdate",I,O)}},updateTransform:function(v){var $=this,I=this._model,O=this._api;if(!!I){I.setUpdatePayload(v);var R=[];I.eachComponent(function(F,V){if(F!=="series"){var G=$.getViewOfComponentModel(V);if(G&&G.__alive)if(G.updateTransform){var Y=G.updateTransform(V,I,O,v);Y&&Y.update&&R.push(G)}else R.push(G)}});var M=createHashMap();I.eachSeries(function(F){var V=$._chartsMap[F.__viewId];if(V.updateTransform){var G=V.updateTransform(F,I,O,v);G&&G.update&&M.set(F.uid,1)}else M.set(F.uid,1)}),n(I),this._scheduler.performVisualTasks(I,v,{setDirty:!0,dirtyMap:M}),renderSeries(this,I,O,v,{},M),lifecycle$1.trigger("afterupdate",I,O)}},updateView:function(v){var $=this._model;!$||($.setUpdatePayload(v),ChartView$1.markUpdateMethod(v,"updateView"),n($),this._scheduler.performVisualTasks($,v,{setDirty:!0}),render(this,$,this._api,v,{}),lifecycle$1.trigger("afterupdate",$,this._api))},updateVisual:function(v){var $=this,I=this._model;!I||(I.setUpdatePayload(v),I.eachSeries(function(O){O.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(v,"updateVisual"),n(I),this._scheduler.performVisualTasks(I,v,{visualType:"visual",setDirty:!0}),I.eachComponent(function(O,R){if(O!=="series"){var M=$.getViewOfComponentModel(R);M&&M.__alive&&M.updateVisual(R,I,$._api,v)}}),I.eachSeries(function(O){var R=$._chartsMap[O.__viewId];R.updateVisual(O,I,$._api,v)}),lifecycle$1.trigger("afterupdate",I,this._api))},updateLayout:function(v){updateMethods.update.call(this,v)}},doConvertPixel=function(v,$,I,O){if(v._disposed){v.id;return}for(var R=v._model,M=v._coordSysMgr.getCoordinateSystems(),F,V=parseFinder(R,I),G=0;G<M.length;G++){var Y=M[G];if(Y[$]&&(F=Y[$](R,V,O))!=null)return F}},updateStreamModes=function(v,$){var I=v._chartsMap,O=v._scheduler;$.eachSeries(function(R){O.updateStreamModes(R,I[R.__viewId])})},doDispatchAction=function(v,$){var I=this,O=this.getModel(),R=v.type,M=v.escapeConnect,F=actions[R],V=F.actionInfo,G=(V.update||"update").split(":"),Y=G.pop(),X=G[0]!=null&&parseClassType(G[0]);this[IN_MAIN_PROCESS_KEY]=!0;var q=[v],Z=!1;v.batch&&(Z=!0,q=map$1(v.batch,function(le){return le=defaults(extend({},le),v),le.batch=null,le}));var Q=[],ie,J=isSelectChangePayload(v),re=isHighDownPayload(v);if(re&&allLeaveBlur(this._api),each$4(q,function(le){if(ie=F.action(le,I._model,I._api),ie=ie||extend({},le),ie.type=V.event||ie.type,Q.push(ie),re){var fe=preParseFinder(v),de=fe.queryOptionMap,Se=fe.mainTypeSpecified,ge=Se?de.keys()[0]:"series";updateDirectly(I,Y,le,ge),markStatusToUpdate(I)}else J?(updateDirectly(I,Y,le,"series"),markStatusToUpdate(I)):X&&updateDirectly(I,Y,le,X.main,X.sub)}),Y!=="none"&&!re&&!J&&!X)try{this[PENDING_UPDATE]?(prepare(this),updateMethods.update.call(this,v),this[PENDING_UPDATE]=null):updateMethods[Y].call(this,v)}catch(le){throw this[IN_MAIN_PROCESS_KEY]=!1,le}if(Z?ie={type:V.event||R,escapeConnect:M,batch:Q}:ie=Q[0],this[IN_MAIN_PROCESS_KEY]=!1,!$){var te=this._messageCenter;if(te.trigger(ie.type,ie),J){var oe={type:"selectchanged",escapeConnect:M,selected:getAllSelectedIndices(O),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};te.trigger(oe.type,oe)}}},flushPendingActions=function(v){for(var $=this._pendingActions;$.length;){var I=$.shift();doDispatchAction.call(this,I,v)}},triggerUpdatedEvent=function(v){!v&&this.trigger("updated")},bindRenderedEvent=function(v,$){v.on("rendered",function(I){$.trigger("rendered",I),v.animation.isFinished()&&!$[PENDING_UPDATE]&&!$._scheduler.unfinished&&!$._pendingActions.length&&$.trigger("finished")})},bindMouseEvent=function(v,$){v.on("mouseover",function(I){var O=I.target,R=findEventDispatcher(O,isHighDownDispatcher);R&&(handleGlobalMouseOverForHighDown(R,I,$._api),markStatusToUpdate($))}).on("mouseout",function(I){var O=I.target,R=findEventDispatcher(O,isHighDownDispatcher);R&&(handleGlobalMouseOutForHighDown(R,I,$._api),markStatusToUpdate($))}).on("click",function(I){var O=I.target,R=findEventDispatcher(O,function(V){return getECData(V).dataIndex!=null},!0);if(R){var M=R.selected?"unselect":"select",F=getECData(R);$._api.dispatchAction({type:M,dataType:F.dataType,dataIndexInside:F.dataIndex,seriesIndex:F.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function($){$.clearColorPalette()})}function i(v){var $=[],I=[],O=!1;if(v.eachComponent(function(V,G){var Y=G.get("zlevel")||0,X=G.get("z")||0,q=G.getZLevelKey();O=O||!!q,(V==="series"?I:$).push({zlevel:Y,z:X,idx:G.componentIndex,type:V,key:q})}),O){var R=$.concat(I),M,F;sort(R,function(V,G){return V.zlevel===G.zlevel?V.z-G.z:V.zlevel-G.zlevel}),each$4(R,function(V){var G=v.getComponent(V.type,V.idx),Y=V.zlevel,X=V.key;M!=null&&(Y=Math.max(M,Y)),X?(Y===M&&X!==F&&Y++,F=X):F&&(Y===M&&Y++,F=""),M=Y,G.setZLevel(Y)})}}render=function(v,$,I,O,R){i($),renderComponents(v,$,I,O,R),each$4(v._chartsViews,function(M){M.__alive=!1}),renderSeries(v,$,I,O,R),each$4(v._chartsViews,function(M){M.__alive||M.remove($,I)})},renderComponents=function(v,$,I,O,R,M){each$4(M||v._componentsViews,function(F){var V=F.__model;c(V,F),F.render(V,$,I,O),l(V,F),d(V,F)})},renderSeries=function(v,$,I,O,R,M){var F=v._scheduler;R=extend(R||{},{updatedSeries:$.getSeries()}),lifecycle$1.trigger("series:beforeupdate",$,I,R);var V=!1;$.eachSeries(function(G){var Y=v._chartsMap[G.__viewId];Y.__alive=!0;var X=Y.renderTask;F.updatePayload(X,O),c(G,Y),M&&M.get(G.uid)&&X.dirty(),X.perform(F.getPerformArgs(X))&&(V=!0),Y.group.silent=!!G.get("silent"),s(G,Y),updateSeriesElementSelection(G)}),F.unfinished=V||F.unfinished,lifecycle$1.trigger("series:layoutlabels",$,I,R),lifecycle$1.trigger("series:transition",$,I,R),$.eachSeries(function(G){var Y=v._chartsMap[G.__viewId];l(G,Y),d(G,Y)}),o(v,$),lifecycle$1.trigger("series:afterupdate",$,I,R)},markStatusToUpdate=function(v){v[STATUS_NEEDS_UPDATE_KEY]=!0,v.getZr().wakeUp()},applyChangedStates=function(v){!v[STATUS_NEEDS_UPDATE_KEY]||(v.getZr().storage.traverse(function($){isElementRemoved($)||a($)}),v[STATUS_NEEDS_UPDATE_KEY]=!1)};function a(v){for(var $=[],I=v.currentStates,O=0;O<I.length;O++){var R=I[O];R==="emphasis"||R==="blur"||R==="select"||$.push(R)}v.selected&&v.states.select&&$.push("select"),v.hoverState===HOVER_STATE_EMPHASIS&&v.states.emphasis?$.push("emphasis"):v.hoverState===HOVER_STATE_BLUR&&v.states.blur&&$.push("blur"),v.useStates($)}function o(v,$){var I=v._zr,O=I.storage,R=0;O.traverse(function(M){M.isGroup||R++}),R>$.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&$.eachSeries(function(M){if(!M.preventUsingHoverLayer){var F=v._chartsMap[M.__viewId];F.__alive&&F.eachRendered(function(V){V.states.emphasis&&(V.states.emphasis.hoverLayer=!0)})}})}function s(v,$){var I=v.get("blendMode")||null;$.eachRendered(function(O){O.isGroup||(O.style.blend=I)})}function l(v,$){if(!v.preventAutoZ){var I=v.get("z")||0,O=v.get("zlevel")||0;$.eachRendered(function(R){return u(R,I,O,-1/0),!0})}}function u(v,$,I,O){var R=v.getTextContent(),M=v.getTextGuideLine(),F=v.isGroup;if(F)for(var V=v.childrenRef(),G=0;G<V.length;G++)O=Math.max(u(V[G],$,I,O),O);else v.z=$,v.zlevel=I,O=Math.max(v.z2,O);if(R&&(R.z=$,R.zlevel=I,isFinite(O)&&(R.z2=O+2)),M){var Y=v.textGuideLineConfig;M.z=$,M.zlevel=I,isFinite(O)&&(M.z2=O+(Y&&Y.showAbove?1:-1))}return O}function c(v,$){$.eachRendered(function(I){if(!isElementRemoved(I)){var O=I.getTextContent(),R=I.getTextGuideLine();I.stateTransition&&(I.stateTransition=null),O&&O.stateTransition&&(O.stateTransition=null),R&&R.stateTransition&&(R.stateTransition=null),I.hasState()?(I.prevStates=I.currentStates,I.clearStates()):I.prevStates&&(I.prevStates=null)}})}function d(v,$){var I=v.getModel("stateAnimation"),O=v.isAnimationEnabled(),R=I.get("duration"),M=R>0?{duration:R,delay:I.get("delay"),easing:I.get("easing")}:null;$.eachRendered(function(F){if(F.states&&F.states.emphasis){if(isElementRemoved(F))return;if(F instanceof Path$1&&savePathStates(F),F.__dirty){var V=F.prevStates;V&&F.useStates(V)}if(O){F.stateTransition=M;var G=F.getTextContent(),Y=F.getTextGuideLine();G&&(G.stateTransition=M),Y&&(Y.stateTransition=M)}F.__dirty&&a(F)}})}createExtensionAPI=function(v){return new(function($){__extends(I,$);function I(){return $!==null&&$.apply(this,arguments)||this}return I.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},I.prototype.getComponentByElement=function(O){for(;O;){var R=O.__ecComponentInfo;if(R!=null)return v._model.getComponent(R.mainType,R.index);O=O.parent}},I.prototype.enterEmphasis=function(O,R){enterEmphasis(O,R),markStatusToUpdate(v)},I.prototype.leaveEmphasis=function(O,R){leaveEmphasis(O,R),markStatusToUpdate(v)},I.prototype.enterBlur=function(O){enterBlur(O),markStatusToUpdate(v)},I.prototype.leaveBlur=function(O){leaveBlur(O),markStatusToUpdate(v)},I.prototype.enterSelect=function(O){enterSelect(O),markStatusToUpdate(v)},I.prototype.leaveSelect=function(O){leaveSelect(O),markStatusToUpdate(v)},I.prototype.getModel=function(){return v.getModel()},I.prototype.getViewOfComponentModel=function(O){return v.getViewOfComponentModel(O)},I.prototype.getViewOfSeriesModel=function(O){return v.getViewOfSeriesModel(O)},I}(ExtensionAPI$1))(v)},enableConnect=function(v){function $(I,O){for(var R=0;R<I.length;R++){var M=I[R];M[CONNECT_STATUS_KEY]=O}}each$4(eventActionMap,function(I,O){v._messageCenter.on(O,function(R){if(connectedGroups[v.group]&&v[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(R&&R.escapeConnect)return;var M=v.makeActionFromEvent(R),F=[];each$4(instances,function(V){V!==v&&V.group===v.group&&F.push(V)}),$(F,CONNECT_STATUS_PENDING),each$4(F,function(V){V[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&V.dispatchAction(M)}),$(F,CONNECT_STATUS_UPDATED)}})})}}(),r}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function(t,r,n){var i=this;function a(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];r&&r.apply&&r.apply(this,o),i.off(t,a)}this.on.call(this,t,a,n)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning(t){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init(t,r,n){var i=!(n&&n.ssr);if(i){var a=getInstanceByDom(t);if(a)return a}var o=new ECharts(t,r,n);return o.id="ec_"+idBase++,instances[o.id]=o,i&&setAttribute(t,DOM_ATTRIBUTE_KEY,o.id),enableConnect(o),lifecycle$1.trigger("afterinit",o),o}function getInstanceByDom(t){return instances[getAttribute(t,DOM_ATTRIBUTE_KEY)]}function registerTheme(t,r){themeStorage[t]=r}function registerPreprocessor(t){indexOf(optionPreprocessorFuncs,t)<0&&optionPreprocessorFuncs.push(t)}function registerProcessor(t,r){normalizeRegister(dataProcessorFuncs,t,r,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit(t){registerUpdateLifecycle("afterinit",t)}function registerPostUpdate(t){registerUpdateLifecycle("afterupdate",t)}function registerUpdateLifecycle(t,r){lifecycle$1.on(t,r)}function registerAction(t,r,n){isFunction(r)&&(n=r,r="");var i=isObject$2(t)?t.type:[t,t={event:r}][0];t.event=(t.event||i).toLowerCase(),r=t.event,!eventActionMap[r]&&(assert(ACTION_REG.test(i)&&ACTION_REG.test(r)),actions[i]||(actions[i]={action:n,actionInfo:t}),eventActionMap[r]=i)}function registerCoordinateSystem(t,r){CoordinateSystem.register(t,r)}function registerLayout(t,r){normalizeRegister(visualFuncs,t,r,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual(t,r){normalizeRegister(visualFuncs,t,r,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister(t,r,n,i,a){if((isFunction(r)||isObject$2(r))&&(n=r,r=i),!(indexOf(registeredTasks,n)>=0)){registeredTasks.push(n);var o=Scheduler$1.wrapStageHandler(n,a);o.__prio=r,o.__raw=n,t.push(o)}}function registerLoading(t,r){loadingEffects[t]=r}function registerMap(t,r,n){var i=getImpl("registerMap");i&&i(t,r,n)}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);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);function dataIndexMapValueLength(t){return t==null?0:t.length||1}function defaultKeyGetter(t){return t}var DataDiffer=function(){function t(r,n,i,a,o,s){this._old=r,this._new=n,this._oldKeyGetter=i||defaultKeyGetter,this._newKeyGetter=a||defaultKeyGetter,this.context=o,this._diffModeMultiple=s==="multiple"}return t.prototype.add=function(r){return this._add=r,this},t.prototype.update=function(r){return this._update=r,this},t.prototype.updateManyToOne=function(r){return this._updateManyToOne=r,this},t.prototype.updateOneToMany=function(r){return this._updateOneToMany=r,this},t.prototype.updateManyToMany=function(r){return this._updateManyToMany=r,this},t.prototype.remove=function(r){return this._remove=r,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var r=this._old,n=this._new,i={},a=new Array(r.length),o=new Array(n.length);this._initIndexMap(r,null,a,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var s=0;s<r.length;s++){var l=a[s],u=i[l],c=dataIndexMapValueLength(u);if(c>1){var d=u.shift();u.length===1&&(i[l]=u[0]),this._update&&this._update(d,s)}else c===1?(i[l]=null,this._update&&this._update(u,s)):this._remove&&this._remove(s)}this._performRestAdd(o,i)},t.prototype._executeMultiple=function(){var r=this._old,n=this._new,i={},a={},o=[],s=[];this._initIndexMap(r,i,o,"_oldKeyGetter"),this._initIndexMap(n,a,s,"_newKeyGetter");for(var l=0;l<o.length;l++){var u=o[l],c=i[u],d=a[u],v=dataIndexMapValueLength(c),$=dataIndexMapValueLength(d);if(v>1&&$===1)this._updateManyToOne&&this._updateManyToOne(d,c),a[u]=null;else if(v===1&&$>1)this._updateOneToMany&&this._updateOneToMany(d,c),a[u]=null;else if(v===1&&$===1)this._update&&this._update(d,c),a[u]=null;else if(v>1&&$>1)this._updateManyToMany&&this._updateManyToMany(d,c),a[u]=null;else if(v>1)for(var I=0;I<v;I++)this._remove&&this._remove(c[I]);else this._remove&&this._remove(c)}this._performRestAdd(s,a)},t.prototype._performRestAdd=function(r,n){for(var i=0;i<r.length;i++){var a=r[i],o=n[a],s=dataIndexMapValueLength(o);if(s>1)for(var l=0;l<s;l++)this._add&&this._add(o[l]);else s===1&&this._add&&this._add(o);n[a]=null}},t.prototype._initIndexMap=function(r,n,i,a){for(var o=this._diffModeMultiple,s=0;s<r.length;s++){var l="_ec_"+this[a](r[s],s);if(o||(i[s]=l),!!n){var u=n[l],c=dataIndexMapValueLength(u);c===0?(n[l]=s,o&&i.push(l)):c===1?n[l]=[u,s]:u.push(s)}}},t}(),DataDiffer$1=DataDiffer,DimensionUserOuput=function(){function t(r,n){this._encode=r,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function summarizeDimensions(t,r){var n={},i=n.encode={},a=createHashMap(),o=[],s=[],l={};each$4(t.dimensions,function($){var I=t.getDimensionInfo($),O=I.coordDim;if(O){var R=I.coordDimIndex;getOrCreateEncodeArr(i,O)[R]=$,I.isExtraCoord||(a.set(O,1),mayLabelDimType(I.type)&&(o[0]=$),getOrCreateEncodeArr(l,O)[R]=t.getDimensionIndex(I.name)),I.defaultTooltip&&s.push($)}VISUAL_DIMENSIONS.each(function(M,F){var V=getOrCreateEncodeArr(i,F),G=I.otherDims[F];G!=null&&G!==!1&&(V[G]=I.name)})});var u=[],c={};a.each(function($,I){var O=i[I];c[I]=O[0],u=u.concat(O)}),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=map$1(u,function($){return t.getDimensionInfo($).storeDimIndex}),n.encodeFirstDimNotExtra=c;var d=i.label;d&&d.length&&(o=d.slice());var v=i.tooltip;return v&&v.length?s=v.slice():s.length||(s=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=s,n.userOutput=new DimensionUserOuput(l,r),n}function getOrCreateEncodeArr(t,r){return t.hasOwnProperty(r)||(t[r]=[]),t[r]}function getDimensionTypeByAxis(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function mayLabelDimType(t){return!(t==="ordinal"||t==="time")}var SeriesDimensionDefine=function(){function t(r){this.otherDims={},r!=null&&extend(this,r)}return t}(),SeriesDimensionDefine$1=SeriesDimensionDefine,inner$5=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function t(r){this.dimensions=r.dimensions,this._dimOmitted=r.dimensionOmitted,this.source=r.source,this._fullDimCount=r.fullDimensionCount,this._updateDimOmitted(r.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(r){this._dimOmitted=r,r&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},t.prototype.getSourceDimensionIndex=function(r){return retrieve2(this._dimNameMap.get(r),-1)},t.prototype.getSourceDimension=function(r){var n=this.source.dimensionsDefine;if(n)return n[r]},t.prototype.makeStoreSchema=function(){for(var r=this._fullDimCount,n=shouldRetrieveDataByName(this.source),i=!shouldOmitUnusedDimensions(r),a="",o=[],s=0,l=0;s<r;s++){var u=void 0,c=void 0,d=void 0,v=this.dimensions[l];if(v&&v.storeDimIndex===s)u=n?v.name:null,c=v.type,d=v.ordinalMeta,l++;else{var $=this.getSourceDimension(s);$&&(u=n?$.name:null,c=$.type)}o.push({property:u,type:c,ordinalMeta:d}),n&&u!=null&&(!v||!v.isCalculationCoord)&&(a+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=dimTypeShort[c]||"f",d&&(a+=d.uid),a+="$"}var I=this.source,O=[I.seriesLayoutBy,I.startIndex,a].join("$$");return{dimensions:o,hash:O}},t.prototype.makeOutputDimensionNames=function(){for(var r=[],n=0,i=0;n<this._fullDimCount;n++){var a=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(a=o.name),i++;else{var s=this.getSourceDimension(n);s&&(a=s.name)}r.push(a)}return r},t.prototype.appendCalculationDimension=function(r){this.dimensions.push(r),r.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function isSeriesDataSchema(t){return t instanceof SeriesDataSchema}function createDimNameMap(t){for(var r=createHashMap(),n=0;n<(t||[]).length;n++){var i=t[n],a=isObject$2(i)?i.name:i;a!=null&&r.get(a)==null&&r.set(a,n)}return r}function ensureSourceDimNameMap(t){var r=inner$5(t);return r.dimNameMap||(r.dimNameMap=createDimNameMap(t.dimensionsDefine))}function shouldOmitUnusedDimensions(t){return t>30}var isObject=isObject$2,map=map$1,CtorInt32Array=typeof Int32Array=="undefined"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function t(r,n){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 i,a=!1;isSeriesDataSchema(r)?(i=r.dimensions,this._dimOmitted=r.isDimensionOmitted(),this._schema=r):(a=!0,i=r),i=i||["x","y"];for(var o={},s=[],l={},u=!1,c={},d=0;d<i.length;d++){var v=i[d],$=isString(v)?new SeriesDimensionDefine$1({name:v}):v instanceof SeriesDimensionDefine$1?v:new SeriesDimensionDefine$1(v),I=$.name;$.type=$.type||"float",$.coordDim||($.coordDim=I,$.coordDimIndex=0);var O=$.otherDims=$.otherDims||{};s.push(I),o[I]=$,c[I]!=null&&(u=!0),$.createInvertedIndices&&(l[I]=[]),O.itemName===0&&(this._nameDimIdx=d),O.itemId===0&&(this._idDimIdx=d),a&&($.storeDimIndex=d)}if(this.dimensions=s,this._dimInfos=o,this._initGetDimensionInfo(u),this.hostModel=n,this._invertedIndicesMap=l,this._dimOmitted){var R=this._dimIdxToName=createHashMap();each$4(s,function(M){R.set(o[M].storeDimIndex,M)})}}return t.prototype.getDimension=function(r){var n=this._recognizeDimIndex(r);if(n==null)return r;if(n=r,!this._dimOmitted)return this.dimensions[n];var i=this._dimIdxToName.get(n);if(i!=null)return i;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(r){var n=this._recognizeDimIndex(r);if(n!=null)return n;if(r==null)return-1;var i=this._getDimInfo(r);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(r):-1},t.prototype._recognizeDimIndex=function(r){if(isNumber(r)||r!=null&&!isNaN(r)&&!this._getDimInfo(r)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(r)<0))return+r},t.prototype._getStoreDimIndex=function(r){var n=this.getDimensionIndex(r);return n},t.prototype.getDimensionInfo=function(r){return this._getDimInfo(this.getDimension(r))},t.prototype._initGetDimensionInfo=function(r){var n=this._dimInfos;this._getDimInfo=r?function(i){return n.hasOwnProperty(i)?n[i]:void 0}:function(i){return n[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(r,n){var i=this._dimSummary;if(n==null)return i.encodeFirstDimNotExtra[r];var a=i.encode[r];return a?a[n]:null},t.prototype.mapDimensionsAll=function(r){var n=this._dimSummary,i=n.encode[r];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(r,n,i){var a=this,o;if(r instanceof DataStore$1&&(o=r),!o){var s=this.dimensions,l=isSourceInstance(r)||isArrayLike(r)?new DefaultDataProvider(r,s.length):r;o=new DataStore$1;var u=map(s,function(c){return{type:a._dimInfos[c].type,property:c}});o.initData(l,u,i)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(r){var n=this._store.appendData(r);this._doInit(n[0],n[1])},t.prototype.appendValues=function(r,n){var i=this._store.appendValues(r,n.length),a=i.start,o=i.end,s=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var l=a;l<o;l++){var u=l-a;this._nameList[l]=n[u],s&&makeIdFromName(this,l)}},t.prototype._updateOrdinalMeta=function(){for(var r=this._store,n=this.dimensions,i=0;i<n.length;i++){var a=this._dimInfos[n[i]];a.ordinalMeta&&r.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var r=this._store.getProvider();return this._idDimIdx==null&&r.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!r.fillStorage},t.prototype._doInit=function(r,n){if(!(r>=n)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var o=this._nameList,s=this._idList,l=a.getSource().sourceFormat,u=l===SOURCE_FORMAT_ORIGINAL;if(u&&!a.pure)for(var c=[],d=r;d<n;d++){var v=a.getItem(d,c);if(!this.hasItemOption&&isDataItemOption(v)&&(this.hasItemOption=!0),v){var $=v.name;o[d]==null&&$!=null&&(o[d]=convertOptionIdName($,null));var I=v.id;s[d]==null&&I!=null&&(s[d]=convertOptionIdName(I,null))}}if(this._shouldMakeIdFromName())for(var d=r;d<n;d++)makeIdFromName(this,d);prepareInvertedIndex(this)}},t.prototype.getApproximateExtent=function(r){return this._approximateExtent[r]||this._store.getDataExtent(this._getStoreDimIndex(r))},t.prototype.setApproximateExtent=function(r,n){n=this.getDimension(n),this._approximateExtent[n]=r.slice()},t.prototype.getCalculationInfo=function(r){return this._calculationInfo[r]},t.prototype.setCalculationInfo=function(r,n){isObject(r)?extend(this._calculationInfo,r):this._calculationInfo[r]=n},t.prototype.getName=function(r){var n=this.getRawIndex(r),i=this._nameList[n];return i==null&&this._nameDimIdx!=null&&(i=getIdNameFromStore(this,this._nameDimIdx,n)),i==null&&(i=""),i},t.prototype._getCategory=function(r,n){var i=this._store.get(r,n),a=this._store.getOrdinalMeta(r);return a?a.categories[i]:i},t.prototype.getId=function(r){return getId(this,this.getRawIndex(r))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(r,n){var i=this._store,a=this._dimInfos[r];if(a)return i.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(r,n){var i=this._store,a=this._dimInfos[r];if(a)return i.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(r){return this._store.getDataExtent(this._getStoreDimIndex(r))},t.prototype.getSum=function(r){return this._store.getSum(this._getStoreDimIndex(r))},t.prototype.getMedian=function(r){return this._store.getMedian(this._getStoreDimIndex(r))},t.prototype.getValues=function(r,n){var i=this,a=this._store;return isArray(r)?a.getValues(map(r,function(o){return i._getStoreDimIndex(o)}),n):a.getValues(r)},t.prototype.hasValue=function(r){for(var n=this._dimSummary.dataDimIndicesOnCoord,i=0,a=n.length;i<a;i++)if(isNaN(this._store.get(n[i],r)))return!1;return!0},t.prototype.indexOfName=function(r){for(var n=0,i=this._store.count();n<i;n++)if(this.getName(n)===r)return n;return-1},t.prototype.getRawIndex=function(r){return this._store.getRawIndex(r)},t.prototype.indexOfRawIndex=function(r){return this._store.indexOfRawIndex(r)},t.prototype.rawIndexOf=function(r,n){var i=r&&this._invertedIndicesMap[r],a=i[n];return a==null||isNaN(a)?INDEX_NOT_FOUND:a},t.prototype.indicesOfNearest=function(r,n,i){return this._store.indicesOfNearest(this._getStoreDimIndex(r),n,i)},t.prototype.each=function(r,n,i){isFunction(r)&&(i=n,n=r,r=[]);var a=i||this,o=map(normalizeDimensions(r),this._getStoreDimIndex,this);this._store.each(o,a?bind$1(n,a):n)},t.prototype.filterSelf=function(r,n,i){isFunction(r)&&(i=n,n=r,r=[]);var a=i||this,o=map(normalizeDimensions(r),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?bind$1(n,a):n),this},t.prototype.selectRange=function(r){var n=this,i={},a=keys(r);return each$4(a,function(o){var s=n._getStoreDimIndex(o);i[s]=r[o]}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(r,n,i){isFunction(r)&&(i=n,n=r,r=[]),i=i||this;var a=[];return this.each(r,function(){a.push(n&&n.apply(this,arguments))},i),a},t.prototype.map=function(r,n,i,a){var o=i||a||this,s=map(normalizeDimensions(r),this._getStoreDimIndex,this),l=cloneListForMapAndSample(this);return l._store=this._store.map(s,o?bind$1(n,o):n),l},t.prototype.modify=function(r,n,i,a){var o=i||a||this,s=map(normalizeDimensions(r),this._getStoreDimIndex,this);this._store.modify(s,o?bind$1(n,o):n)},t.prototype.downSample=function(r,n,i,a){var o=cloneListForMapAndSample(this);return o._store=this._store.downSample(this._getStoreDimIndex(r),n,i,a),o},t.prototype.lttbDownSample=function(r,n){var i=cloneListForMapAndSample(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(r),n),i},t.prototype.getRawDataItem=function(r){return this._store.getRawDataItem(r)},t.prototype.getItemModel=function(r){var n=this.hostModel,i=this.getRawDataItem(r);return new Model$1(i,n,n&&n.ecModel)},t.prototype.diff=function(r){var n=this;return new DataDiffer$1(r?r.getStore().getIndices():[],this.getStore().getIndices(),function(i){return getId(r,i)},function(i){return getId(n,i)})},t.prototype.getVisual=function(r){var n=this._visual;return n&&n[r]},t.prototype.setVisual=function(r,n){this._visual=this._visual||{},isObject(r)?extend(this._visual,r):this._visual[r]=n},t.prototype.getItemVisual=function(r,n){var i=this._itemVisuals[r],a=i&&i[n];return a==null?this.getVisual(n):a},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(r,n){var i=this._itemVisuals,a=i[r];a||(a=i[r]={});var o=a[n];return o==null&&(o=this.getVisual(n),isArray(o)?o=o.slice():isObject(o)&&(o=extend({},o)),a[n]=o),o},t.prototype.setItemVisual=function(r,n,i){var a=this._itemVisuals[r]||{};this._itemVisuals[r]=a,isObject(n)?extend(a,n):a[n]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(r,n){isObject(r)?extend(this._layout,r):this._layout[r]=n},t.prototype.getLayout=function(r){return this._layout[r]},t.prototype.getItemLayout=function(r){return this._itemLayouts[r]},t.prototype.setItemLayout=function(r,n,i){this._itemLayouts[r]=i?extend(this._itemLayouts[r]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(r,n){var i=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(i,this.dataType,r,n),this._graphicEls[r]=n},t.prototype.getItemGraphicEl=function(r){return this._graphicEls[r]},t.prototype.eachItemGraphicEl=function(r,n){each$4(this._graphicEls,function(i,a){i&&r&&r.call(n,i,a)})},t.prototype.cloneShallow=function(r){return r||(r=new t(this._schema?this._schema:map(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(r,this),r._store=this._store,r},t.prototype.wrapMethod=function(r,n){var i=this[r];!isFunction(i)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(r),this[r]=function(){var a=i.apply(this,arguments);return n.apply(this,[a].concat(slice(arguments)))})},t.internalField=function(){prepareInvertedIndex=function(r){var n=r._invertedIndicesMap;each$4(n,function(i,a){var o=r._dimInfos[a],s=o.ordinalMeta,l=r._store;if(s){i=n[a]=new CtorInt32Array(s.categories.length);for(var u=0;u<i.length;u++)i[u]=INDEX_NOT_FOUND;for(var u=0;u<l.count();u++)i[l.get(o.storeDimIndex,u)]=u}})},getIdNameFromStore=function(r,n,i){return convertOptionIdName(r._getCategory(n,i),null)},getId=function(r,n){var i=r._idList[n];return i==null&&r._idDimIdx!=null&&(i=getIdNameFromStore(r,r._idDimIdx,n)),i==null&&(i=ID_PREFIX+n),i},normalizeDimensions=function(r){return isArray(r)||(r=r!=null?[r]:[]),r},cloneListForMapAndSample=function(r){var n=new t(r._schema?r._schema:map(r.dimensions,r._getDimInfo,r),r.hostModel);return transferProperties(n,r),n},transferProperties=function(r,n){each$4(TRANSFERABLE_PROPERTIES.concat(n.__wrappedMethods||[]),function(i){n.hasOwnProperty(i)&&(r[i]=n[i])}),r.__wrappedMethods=n.__wrappedMethods,each$4(CLONE_PROPERTIES,function(i){r[i]=clone$2(n[i])}),r._calculationInfo=extend({},n._calculationInfo)},makeIdFromName=function(r,n){var i=r._nameList,a=r._idList,o=r._nameDimIdx,s=r._idDimIdx,l=i[n],u=a[n];if(l==null&&o!=null&&(i[n]=l=getIdNameFromStore(r,o,n)),u==null&&s!=null&&(a[n]=u=getIdNameFromStore(r,s,n)),u==null&&l!=null){var c=r._nameRepeatCount,d=c[l]=(c[l]||0)+1;u=l,d>1&&(u+="__ec__"+d),a[n]=u}}}(),t}(),SeriesData$1=SeriesData;function prepareSeriesDataSchema(t,r){isSourceInstance(t)||(t=createSourceFromSeriesDataOption(t)),r=r||{};var n=r.coordDimensions||[],i=r.dimensionsDefine||t.dimensionsDefine||[],a=createHashMap(),o=[],s=getDimCount(t,n,i,r.dimensionsCount),l=r.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(s),u=i===t.dimensionsDefine,c=u?ensureSourceDimNameMap(t):createDimNameMap(i),d=r.encodeDefine;!d&&r.encodeDefaulter&&(d=r.encodeDefaulter(t,s));for(var v=createHashMap(d),$=new CtorInt32Array$1(s),I=0;I<$.length;I++)$[I]=-1;function O(ie){var J=$[ie];if(J<0){var re=i[ie],te=isObject$2(re)?re:{name:re},oe=new SeriesDimensionDefine$1,le=te.name;le!=null&&c.get(le)!=null&&(oe.name=oe.displayName=le),te.type!=null&&(oe.type=te.type),te.displayName!=null&&(oe.displayName=te.displayName);var fe=o.length;return $[ie]=fe,oe.storeDimIndex=ie,o.push(oe),oe}return o[J]}if(!l)for(var I=0;I<s;I++)O(I);v.each(function(ie,J){var re=normalizeToArray(ie).slice();if(re.length===1&&!isString(re[0])&&re[0]<0){v.set(J,!1);return}var te=v.set(J,[]);each$4(re,function(oe,le){var fe=isString(oe)?c.get(oe):oe;fe!=null&&fe<s&&(te[le]=fe,M(O(fe),J,le))})});var R=0;each$4(n,function(ie){var J,re,te,oe;if(isString(ie))J=ie,oe={};else{oe=ie,J=oe.name;var le=oe.ordinalMeta;oe.ordinalMeta=null,oe=extend({},oe),oe.ordinalMeta=le,re=oe.dimsDef,te=oe.otherDims,oe.name=oe.coordDim=oe.coordDimIndex=oe.dimsDef=oe.otherDims=null}var fe=v.get(J);if(fe!==!1){if(fe=normalizeToArray(fe),!fe.length)for(var de=0;de<(re&&re.length||1);de++){for(;R<s&&O(R).coordDim!=null;)R++;R<s&&fe.push(R++)}each$4(fe,function(Se,ge){var Te=O(Se);if(u&&oe.type!=null&&(Te.type=oe.type),M(defaults(Te,oe),J,ge),Te.name==null&&re){var ke=re[ge];!isObject$2(ke)&&(ke={name:ke}),Te.name=Te.displayName=ke.name,Te.defaultTooltip=ke.defaultTooltip}te&&defaults(Te.otherDims,te)})}});function M(ie,J,re){VISUAL_DIMENSIONS.get(J)!=null?ie.otherDims[J]=re:(ie.coordDim=J,ie.coordDimIndex=re,a.set(J,!0))}var F=r.generateCoord,V=r.generateCoordCount,G=V!=null;V=F?V||1:0;var Y=F||"value";function X(ie){ie.name==null&&(ie.name=ie.coordDim)}if(l)each$4(o,function(ie){X(ie)}),o.sort(function(ie,J){return ie.storeDimIndex-J.storeDimIndex});else for(var q=0;q<s;q++){var Z=O(q),Q=Z.coordDim;Q==null&&(Z.coordDim=genCoordDimName(Y,a,G),Z.coordDimIndex=0,(!F||V<=0)&&(Z.isExtraCoord=!0),V--),X(Z),Z.type==null&&(guessOrdinal(t,q)===BE_ORDINAL.Must||Z.isExtraCoord&&(Z.otherDims.itemName!=null||Z.otherDims.seriesName!=null))&&(Z.type="ordinal")}return removeDuplication(o),new SeriesDataSchema({source:t,dimensions:o,fullDimensionCount:s,dimensionOmitted:l})}function removeDuplication(t){for(var r=createHashMap(),n=0;n<t.length;n++){var i=t[n],a=i.name,o=r.get(a)||0;o>0&&(i.name=a+(o-1)),o++,r.set(a,o)}}function getDimCount(t,r,n,i){var a=Math.max(t.dimensionsDetectedCount||1,r.length,n.length,i||0);return each$4(r,function(o){var s;isObject$2(o)&&(s=o.dimsDef)&&(a=Math.max(a,s.length))}),a}function genCoordDimName(t,r,n){if(n||r.hasKey(t)){for(var i=0;r.hasKey(t+i);)i++;t+=i}return r.set(t,!0),t}var CoordSysInfo=function(){function t(r){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=r}return t}();function getCoordSysInfoBySeries(t){var r=t.get("coordinateSystem"),n=new CoordSysInfo(r),i=fetchers[r];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var fetchers={cartesian2d:function(t,r,n,i){var a=t.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],o=t.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["x","y"],n.set("x",a),n.set("y",o),isCategory(a)&&(i.set("x",a),r.firstCategoryDimIndex=0),isCategory(o)&&(i.set("y",o),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},singleAxis:function(t,r,n,i){var a=t.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["single"],n.set("single",a),isCategory(a)&&(i.set("single",a),r.firstCategoryDimIndex=0)},polar:function(t,r,n,i){var a=t.getReferringComponents("polar",SINGLE_REFERRING).models[0],o=a.findAxisModel("radiusAxis"),s=a.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",s),isCategory(o)&&(i.set("radius",o),r.firstCategoryDimIndex=0),isCategory(s)&&(i.set("angle",s),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},geo:function(t,r,n,i){r.coordSysDims=["lng","lat"]},parallel:function(t,r,n,i){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=r.coordSysDims=o.dimensions.slice();each$4(o.parallelAxisIndex,function(l,u){var c=a.getComponent("parallelAxis",l),d=s[u];n.set(d,c),isCategory(c)&&(i.set(d,c),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=u))})}};function isCategory(t){return t.get("type")==="category"}function enableDataStack(t,r,n){n=n||{};var i=n.byIndex,a=n.stackedCoordDimension,o,s,l;isLegacyDimensionsInput(r)?o=r:(s=r.schema,o=s.dimensions,l=r.store);var u=!!(t&&t.get("stack")),c,d,v,$;if(each$4(o,function(V,G){isString(V)&&(o[G]=V={name:V}),u&&!V.isExtraCoord&&(!i&&!c&&V.ordinalMeta&&(c=V),!d&&V.type!=="ordinal"&&V.type!=="time"&&(!a||a===V.coordDim)&&(d=V))}),d&&!i&&!c&&(i=!0),d){v="__\0ecstackresult_"+t.id,$="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var I=d.coordDim,O=d.type,R=0;each$4(o,function(V){V.coordDim===I&&R++});var M={name:v,coordDim:I,coordDimIndex:R,type:O,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},F={name:$,coordDim:$,coordDimIndex:R+1,type:O,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};s?(l&&(M.storeDimIndex=l.ensureCalculationDimension($,O),F.storeDimIndex=l.ensureCalculationDimension(v,O)),s.appendCalculationDimension(M),s.appendCalculationDimension(F)):(o.push(M),o.push(F))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:i,stackedOverDimension:$,stackResultDimension:v}}function isLegacyDimensionsInput(t){return!isSeriesDataSchema(t.schema)}function isDimensionStacked(t,r){return!!r&&r===t.getCalculationInfo("stackedDimension")}function getStackedDimension(t,r){return isDimensionStacked(t,r)?t.getCalculationInfo("stackResultDimension"):r}function getCoordSysDimDefs(t,r){var n=t.get("coordinateSystem"),i=CoordinateSystem.get(n),a;return r&&r.coordSysDims&&(a=map$1(r.coordSysDims,function(o){var s={name:o},l=r.axisMap.get(o);if(l){var u=l.get("type");s.type=getDimensionTypeByAxis(u)}return s})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function injectOrdinalMeta(t,r,n){var i,a;return n&&each$4(t,function(o,s){var l=o.coordDim,u=n.categoryAxisMap.get(l);u&&(i==null&&(i=s),o.ordinalMeta=u.getOrdinalMeta(),r&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(t[i].otherDims.itemName=0),i}function createSeriesData(t,r,n){n=n||{};var i=r.getSourceManager(),a,o=!1;t?(o=!0,a=createSourceFromSeriesDataOption(t)):(a=i.getSource(),o=a.sourceFormat===SOURCE_FORMAT_ORIGINAL);var s=getCoordSysInfoBySeries(r),l=getCoordSysDimDefs(r,s),u=n.useEncodeDefaulter,c=isFunction(u)?u:u?curry$1(makeSeriesEncodeForAxisCoordSys,l,r):null,d={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:r.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},v=prepareSeriesDataSchema(a,d),$=injectOrdinalMeta(v.dimensions,n.createInvertedIndices,s),I=o?null:i.getSharedDataStore(v),O=enableDataStack(r,{schema:v,store:I}),R=new SeriesData$1(v,r);R.setCalculationInfo(O);var M=$!=null&&isNeedCompleteOrdinalData(a)?function(F,V,G,Y){return Y===$?G:this.defaultDimValueGetter(F,V,G,Y)}:null;return R.hasItemOption=!1,R.initData(o?a:I,null,M),R}function isNeedCompleteOrdinalData(t){if(t.sourceFormat===SOURCE_FORMAT_ORIGINAL){var r=firstDataNotNull(t.data||[]);return!isArray(getDataItemValue(r))}}function firstDataNotNull(t){for(var r=0;r<t.length&&t[r]==null;)r++;return t[r]}var Scale=function(){function t(r){this._setting=r||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(r){return this._setting[r]},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=r),isNaN(n)||(i[1]=n)},t.prototype.isInExtentRange=function(r){return this._extent[0]<=r&&this._extent[1]>=r},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(r){this._isBlank=r},t}();enableClassManagement(Scale);var Scale$1=Scale,uidBase=0,OrdinalMeta=function(){function t(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this.uid=++uidBase}return t.createByAxisModel=function(r){var n=r.option,i=n.data,a=i&&map$1(i,getName);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(r){return this._getOrCreateMap().get(r)},t.prototype.parseAndCollect=function(r){var n,i=this._needCollect;if(!isString(r)&&!i)return r;if(i&&!this._deduplication)return n=this.categories.length,this.categories[n]=r,n;var a=this._getOrCreateMap();return n=a.get(r),n==null&&(i?(n=this.categories.length,this.categories[n]=r,a.set(r,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},t}();function getName(t){return isObject$2(t)&&t.value!=null?t.value:t+""}var OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(t){return t.type==="interval"||t.type==="log"}function intervalScaleNiceTicks(t,r,n,i){var a={},o=t[1]-t[0],s=a.interval=nice(o/r,!0);n!=null&&s<n&&(s=a.interval=n),i!=null&&s>i&&(s=a.interval=i);var l=a.intervalPrecision=getIntervalPrecision(s),u=a.niceTickExtent=[round$1(Math.ceil(t[0]/s)*s,l),round$1(Math.floor(t[1]/s)*s,l)];return fixExtent(u,t),a}function increaseInterval(t){var r=Math.pow(10,quantityExponent(t)),n=t/r;return n?n===2?n=3:n===3?n=5:n*=2:n=1,round$1(n*r)}function getIntervalPrecision(t){return getPrecision(t)+2}function clamp(t,r,n){t[r]=Math.max(Math.min(t[r],n[1]),n[0])}function fixExtent(t,r){!isFinite(t[0])&&(t[0]=r[0]),!isFinite(t[1])&&(t[1]=r[1]),clamp(t,0,r),clamp(t,1,r),t[0]>t[1]&&(t[0]=t[1])}function contain(t,r){return t>=r[0]&&t<=r[1]}function normalize(t,r){return r[1]===r[0]?.5:(t-r[0])/(r[1]-r[0])}function scale(t,r){return t*(r[1]-r[0])+r[0]}var OrdinalScale=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new OrdinalMeta$1({})),isArray(a)&&(a=new OrdinalMeta$1({categories:map$1(a,function(o){return isObject$2(o)?o.value:o})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return r.prototype.parse=function(n){return n==null?NaN:isString(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},r.prototype.contain=function(n){return n=this.parse(n),contain(n,this._extent)&&this._ordinalMeta.categories[n]!=null},r.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),normalize(n,this._extent)},r.prototype.scale=function(n){return n=Math.round(scale(n,this._extent)),this.getRawOrdinalNumber(n)},r.prototype.getTicks=function(){for(var n=[],i=this._extent,a=i[0];a<=i[1];)n.push({value:a}),a++;return n},r.prototype.getMinorTicks=function(n){},r.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,u=Math.min(l,i.length);s<u;++s){var c=i[s];a[s]=c,o[c]=s}for(var d=0;s<l;++s){for(;o[d]!=null;)d++;a.push(d),o[d]=s}},r.prototype._getTickNumber=function(n){var i=this._ticksByOrdinalNumber;return i&&n>=0&&n<i.length?i[n]:n},r.prototype.getRawOrdinalNumber=function(n){var i=this._ordinalNumbersByTick;return i&&n>=0&&n<i.length?i[n]:n},r.prototype.getLabel=function(n){if(!this.isBlank()){var i=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},r.prototype.count=function(){return this._extent[1]-this._extent[0]+1},r.prototype.unionExtentFromData=function(n,i){this.unionExtent(n.getApproximateExtent(i))},r.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r.prototype.calcNiceTicks=function(){},r.prototype.calcNiceExtent=function(){},r.type="ordinal",r}(Scale$1);Scale$1.registerClass(OrdinalScale);var OrdinalScale$1=OrdinalScale,roundNumber=round$1,IntervalScale=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return r.prototype.parse=function(n){return n},r.prototype.contain=function(n){return contain(n,this._extent)},r.prototype.normalize=function(n){return normalize(n,this._extent)},r.prototype.scale=function(n){return scale(n,this._extent)},r.prototype.setExtent=function(n,i){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(i)||(a[1]=parseFloat(i))},r.prototype.unionExtent=function(n){var i=this._extent;n[0]<i[0]&&(i[0]=n[0]),n[1]>i[1]&&(i[1]=n[1]),this.setExtent(i[0],i[1])},r.prototype.getInterval=function(){return this._interval},r.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(n)},r.prototype.getTicks=function(n){var i=this._interval,a=this._extent,o=this._niceExtent,s=this._intervalPrecision,l=[];if(!i)return l;var u=1e4;a[0]<o[0]&&(n?l.push({value:roundNumber(o[0]-i,s)}):l.push({value:a[0]}));for(var c=o[0];c<=o[1]&&(l.push({value:c}),c=roundNumber(c+i,s),c!==l[l.length-1].value);)if(l.length>u)return[];var d=l.length?l[l.length-1].value:o[1];return a[1]>d&&(n?l.push({value:roundNumber(d+i,s)}):l.push({value:a[1]})),l},r.prototype.getMinorTicks=function(n){for(var i=this.getTicks(!0),a=[],o=this.getExtent(),s=1;s<i.length;s++){for(var l=i[s],u=i[s-1],c=0,d=[],v=l.value-u.value,$=v/n;c<n-1;){var I=roundNumber(u.value+(c+1)*$);I>o[0]&&I<o[1]&&d.push(I),c++}a.push(d)}return a},r.prototype.getLabel=function(n,i){if(n==null)return"";var a=i&&i.precision;a==null?a=getPrecision(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=roundNumber(n.value,a,!0);return addCommas(o)},r.prototype.calcNiceTicks=function(n,i,a){n=n||5;var o=this._extent,s=o[1]-o[0];if(!!isFinite(s)){s<0&&(s=-s,o.reverse());var l=intervalScaleNiceTicks(o,n,i,a);this._intervalPrecision=l.intervalPrecision,this._interval=l.interval,this._niceExtent=l.niceTickExtent}},r.prototype.calcNiceExtent=function(n){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var a=Math.abs(i[0]);n.fixMax||(i[1]+=a/2),i[0]-=a/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var s=this._interval;n.fixMin||(i[0]=roundNumber(Math.floor(i[0]/s)*s)),n.fixMax||(i[1]=roundNumber(Math.ceil(i[1]/s)*s))},r.prototype.setNiceExtent=function(n,i){this._niceExtent=[n,i]},r.type="interval",r}(Scale$1);Scale$1.registerClass(IntervalScale);var IntervalScale$1=IntervalScale,supportFloat32Array=typeof Float32Array!="undefined",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array(t){return isArray(t)?supportFloat32Array?new Float32Array(t):t:new Float32ArrayCtor(t)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId(t){return t.get("stack")||STACK_PREFIX+t.seriesIndex}function getAxisKey(t){return t.dim+t.index}function prepareLayoutBarSeries(t,r){var n=[];return r.eachSeriesByType(t,function(i){isOnCartesian(i)&&n.push(i)}),n}function getValueAxesMinGaps(t){var r={};each$4(t,function(u){var c=u.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var v=u.getData(),$=d.dim+"_"+d.index,I=v.getDimensionIndex(v.mapDimension(d.dim)),O=v.getStore(),R=0,M=O.count();R<M;++R){var F=O.get(I,R);r[$]?r[$].push(F):r[$]=[F]}});var n={};for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];if(a){a.sort(function(u,c){return u-c});for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=o===null?l:Math.min(o,l))}n[i]=o}}return n}function makeColumnLayout(t){var r=getValueAxesMinGaps(t),n=[];return each$4(t,function(i){var a=i.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent(),l;if(o.type==="category")l=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var u=o.dim+"_"+o.index,c=r[u],d=Math.abs(s[1]-s[0]),v=o.scale.getExtent(),$=Math.abs(v[1]-v[0]);l=c?d/$*c:d}else{var I=i.getData();l=Math.abs(s[1]-s[0])/I.count()}var O=parsePercent(i.get("barWidth"),l),R=parsePercent(i.get("barMaxWidth"),l),M=parsePercent(i.get("barMinWidth")||(isInLargeMode(i)?.5:1),l),F=i.get("barGap"),V=i.get("barCategoryGap");n.push({bandWidth:l,barWidth:O,barMaxWidth:R,barMinWidth:M,barGap:F,barCategoryGap:V,axisKey:getAxisKey(o),stackId:getSeriesStackId(i)})}),doCalBarWidthAndOffset(n)}function doCalBarWidthAndOffset(t){var r={};each$4(t,function(i,a){var o=i.axisKey,s=i.bandWidth,l=r[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=l.stacks;r[o]=l;var c=i.stackId;u[c]||l.autoWidthCount++,u[c]=u[c]||{width:0,maxWidth:0};var d=i.barWidth;d&&!u[c].width&&(u[c].width=d,d=Math.min(l.remainedWidth,d),l.remainedWidth-=d);var v=i.barMaxWidth;v&&(u[c].maxWidth=v);var $=i.barMinWidth;$&&(u[c].minWidth=$);var I=i.barGap;I!=null&&(l.gap=I);var O=i.barCategoryGap;O!=null&&(l.categoryGap=O)});var n={};return each$4(r,function(i,a){n[a]={};var o=i.stacks,s=i.bandWidth,l=i.categoryGap;if(l==null){var u=keys(o).length;l=Math.max(35-u*4,15)+"%"}var c=parsePercent(l,s),d=parsePercent(i.gap,1),v=i.remainedWidth,$=i.autoWidthCount,I=(v-c)/($+($-1)*d);I=Math.max(I,0),each$4(o,function(F){var V=F.maxWidth,G=F.minWidth;if(F.width){var Y=F.width;V&&(Y=Math.min(Y,V)),G&&(Y=Math.max(Y,G)),F.width=Y,v-=Y+d*Y,$--}else{var Y=I;V&&V<Y&&(Y=Math.min(V,v)),G&&G>Y&&(Y=G),Y!==I&&(F.width=Y,v-=Y+d*Y,$--)}}),I=(v-c)/($+($-1)*d),I=Math.max(I,0);var O=0,R;each$4(o,function(F,V){F.width||(F.width=I),R=F,O+=F.width*(1+d)}),R&&(O-=R.width*d);var M=-O/2;each$4(o,function(F,V){n[a][V]=n[a][V]||{bandWidth:s,offset:M,width:F.width},M+=F.width*(1+d)})}),n}function retrieveColumnLayout(t,r,n){if(t&&r){var i=t[getAxisKey(r)];return i!=null&&n!=null?i[getSeriesStackId(n)]:i}}function isOnCartesian(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function isInLargeMode(t){return t.pipelineContext&&t.pipelineContext.large}var bisect=function(t,r,n,i){for(;n<i;){var a=n+i>>>1;t[a][1]<r?n=a+1:i=a}return n},TimeScale=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;return i.type="time",i}return r.prototype.getLabel=function(n){var i=this.getSetting("useUTC");return format(n.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,i,this.getSetting("locale"))},r.prototype.getFormattedLabel=function(n,i,a){var o=this.getSetting("useUTC"),s=this.getSetting("locale");return leveledFormat(n,i,a,s,o)},r.prototype.getTicks=function(){var n=this._interval,i=this._extent,a=[];if(!n)return a;a.push({value:i[0],level:0});var o=this.getSetting("useUTC"),s=getIntervalTicks(this._minLevelUnit,this._approxInterval,o,i);return a=a.concat(s),a.push({value:i[1],level:0}),a},r.prototype.calcNiceExtent=function(n){var i=this._extent;if(i[0]===i[1]&&(i[0]-=ONE_DAY,i[1]+=ONE_DAY),i[1]===-1/0&&i[0]===1/0){var a=new Date;i[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),i[0]=i[1]-ONE_DAY}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},r.prototype.calcNiceTicks=function(n,i,a){n=n||10;var o=this._extent,s=o[1]-o[0];this._approxInterval=s/n,i!=null&&this._approxInterval<i&&(this._approxInterval=i),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var l=scaleIntervals.length,u=Math.min(bisect(scaleIntervals,this._approxInterval,0,l),l-1);this._interval=scaleIntervals[u][1],this._minLevelUnit=scaleIntervals[Math.max(u-1,0)][0]},r.prototype.parse=function(n){return isNumber(n)?n:+parseDate(n)},r.prototype.contain=function(n){return contain(this.parse(n),this._extent)},r.prototype.normalize=function(n){return normalize(this.parse(n),this._extent)},r.prototype.scale=function(n){return scale(n,this._extent)},r.type="time",r}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(t,r,n,i){var a=parseDate(r),o=parseDate(n),s=function(O){return getUnitValue(a,O,i)===getUnitValue(o,O,i)},l=function(){return s("year")},u=function(){return l()&&s("month")},c=function(){return u()&&s("day")},d=function(){return c()&&s("hour")},v=function(){return d()&&s("minute")},$=function(){return v()&&s("second")},I=function(){return $()&&s("millisecond")};switch(t){case"year":return l();case"month":return u();case"day":return c();case"hour":return d();case"minute":return v();case"second":return $();case"millisecond":return I()}}function getDateInterval(t,r){return t/=ONE_DAY,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function getMonthInterval(t){var r=30*ONE_DAY;return t/=r,t>6?6:t>3?3:t>2?2:1}function getHourInterval(t){return t/=ONE_HOUR,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function getMinutesAndSecondsInterval(t,r){return t/=r?ONE_MINUTE:ONE_SECOND,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function getMillisecondsInterval(t){return nice(t,!0)}function getFirstTimestampOfUnit(t,r,n){var i=new Date(t);switch(getPrimaryTimeUnit(r)){case"year":case"month":i[monthSetterName(n)](0);case"day":i[dateSetterName(n)](1);case"hour":i[hoursSetterName(n)](0);case"minute":i[minutesSetterName(n)](0);case"second":i[secondsSetterName(n)](0),i[millisecondsSetterName(n)](0)}return i.getTime()}function getIntervalTicks(t,r,n,i){var a=1e4,o=timeUnits,s=0;function l(J,re,te,oe,le,fe,de){for(var Se=new Date(re),ge=re,Te=Se[oe]();ge<te&&ge<=i[1];)de.push({value:ge}),Te+=J,Se[le](Te),ge=Se.getTime();de.push({value:ge,notAdd:!0})}function u(J,re,te){var oe=[],le=!re.length;if(!isUnitValueSame(getPrimaryTimeUnit(J),i[0],i[1],n)){le&&(re=[{value:getFirstTimestampOfUnit(new Date(i[0]),J,n)},{value:i[1]}]);for(var fe=0;fe<re.length-1;fe++){var de=re[fe].value,Se=re[fe+1].value;if(de!==Se){var ge=void 0,Te=void 0,ke=void 0,Ie=!1;switch(J){case"year":ge=Math.max(1,Math.round(r/ONE_DAY/365)),Te=fullYearGetterName(n),ke=fullYearSetterName(n);break;case"half-year":case"quarter":case"month":ge=getMonthInterval(r),Te=monthGetterName(n),ke=monthSetterName(n);break;case"week":case"half-week":case"day":ge=getDateInterval(r),Te=dateGetterName(n),ke=dateSetterName(n),Ie=!0;break;case"half-day":case"quarter-day":case"hour":ge=getHourInterval(r),Te=hoursGetterName(n),ke=hoursSetterName(n);break;case"minute":ge=getMinutesAndSecondsInterval(r,!0),Te=minutesGetterName(n),ke=minutesSetterName(n);break;case"second":ge=getMinutesAndSecondsInterval(r,!1),Te=secondsGetterName(n),ke=secondsSetterName(n);break;case"millisecond":ge=getMillisecondsInterval(r),Te=millisecondsGetterName(n),ke=millisecondsSetterName(n);break}l(ge,de,Se,Te,ke,Ie,oe),J==="year"&&te.length>1&&fe===0&&te.unshift({value:te[0].value-ge})}}for(var fe=0;fe<oe.length;fe++)te.push(oe[fe]);return oe}}for(var c=[],d=[],v=0,$=0,I=0;I<o.length&&s++<a;++I){var O=getPrimaryTimeUnit(o[I]);if(!!isPrimaryTimeUnit(o[I])){u(o[I],c[c.length-1]||[],d);var R=o[I+1]?getPrimaryTimeUnit(o[I+1]):null;if(O!==R){if(d.length){$=v,d.sort(function(J,re){return J.value-re.value});for(var M=[],F=0;F<d.length;++F){var V=d[F].value;(F===0||d[F-1].value!==V)&&(M.push(d[F]),V>=i[0]&&V<=i[1]&&v++)}var G=(i[1]-i[0])/r;if(v>G*1.5&&$>G/1.5||(c.push(M),v>G||t===o[I]))break}d=[]}}}for(var Y=filter(map$1(c,function(J){return filter(J,function(re){return re.value>=i[0]&&re.value<=i[1]&&!re.notAdd})}),function(J){return J.length>0}),X=[],q=Y.length-1,I=0;I<Y.length;++I)for(var Z=Y[I],Q=0;Q<Z.length;++Q)X.push({value:Z[Q].value,level:q-I});X.sort(function(J,re){return J.value-re.value});for(var ie=[],I=0;I<X.length;++I)(I===0||X[I].value!==X[I-1].value)&&ie.push(X[I]);return ie}Scale$1.registerClass(TimeScale);var TimeScale$1=TimeScale,scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow=Math.pow,mathLog$1=Math.log,LogScale=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new IntervalScale$1,n._interval=0,n}return r.prototype.getTicks=function(n){var i=this._originalScale,a=this._extent,o=i.getExtent(),s=intervalScaleProto.getTicks.call(this,n);return map$1(s,function(l){var u=l.value,c=round$1(mathPow(this.base,u));return c=u===a[0]&&this._fixMin?fixRoundingError(c,o[0]):c,c=u===a[1]&&this._fixMax?fixRoundingError(c,o[1]):c,{value:c}},this)},r.prototype.setExtent=function(n,i){var a=mathLog$1(this.base);n=mathLog$1(Math.max(0,n))/a,i=mathLog$1(Math.max(0,i))/a,intervalScaleProto.setExtent.call(this,n,i)},r.prototype.getExtent=function(){var n=this.base,i=scaleProto.getExtent.call(this);i[0]=mathPow(n,i[0]),i[1]=mathPow(n,i[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(i[0]=fixRoundingError(i[0],o[0])),this._fixMax&&(i[1]=fixRoundingError(i[1],o[1])),i},r.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var i=this.base;n[0]=mathLog$1(n[0])/mathLog$1(i),n[1]=mathLog$1(n[1])/mathLog$1(i),scaleProto.unionExtent.call(this,n)},r.prototype.unionExtentFromData=function(n,i){this.unionExtent(n.getApproximateExtent(i))},r.prototype.calcNiceTicks=function(n){n=n||10;var i=this._extent,a=i[1]-i[0];if(!(a===1/0||a<=0)){var o=quantity(a),s=n/a*o;for(s<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var l=[round$1(mathCeil(i[0]/o)*o),round$1(mathFloor(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},r.prototype.calcNiceExtent=function(n){intervalScaleProto.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},r.prototype.parse=function(n){return n},r.prototype.contain=function(n){return n=mathLog$1(n)/mathLog$1(this.base),contain(n,this._extent)},r.prototype.normalize=function(n){return n=mathLog$1(n)/mathLog$1(this.base),normalize(n,this._extent)},r.prototype.scale=function(n){return n=scale(n,this._extent),mathPow(this.base,n)},r.type="log",r}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(t,r){return roundingErrorFix(t,getPrecision(r))}Scale$1.registerClass(LogScale);var LogScale$1=LogScale,ScaleRawExtentInfo=function(){function t(r,n,i){this._prepareParams(r,n,i)}return t.prototype._prepareParams=function(r,n,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var a=this._isOrdinal=r.type==="ordinal";this._needCrossZero=r.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=this._modelMinRaw=n.get("min",!0);isFunction(o)?this._modelMinNum=parseAxisModelMinMax(r,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(r,o));var s=this._modelMaxRaw=n.get("max",!0);if(isFunction(s)?this._modelMaxNum=parseAxisModelMinMax(r,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(r,s)),a)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=isArray(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(u[0],1),parsePercent$1(u[1],1)]}},t.prototype.calculate=function(){var r=this._isOrdinal,n=this._dataMin,i=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=r?null:i-n||Math.abs(n),l=this._modelMinRaw==="dataMin"?n:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,c=l!=null,d=u!=null;l==null&&(l=r?a?0:NaN:n-o[0]*s),u==null&&(u=r?a?a-1:NaN:i+o[1]*s),(l==null||!isFinite(l))&&(l=NaN),(u==null||!isFinite(u))&&(u=NaN);var v=eqNaN(l)||eqNaN(u)||r&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!d&&(u=0));var $=this._determinedMin,I=this._determinedMax;return $!=null&&(l=$,c=!0),I!=null&&(u=I,d=!0),{min:l,max:u,minFixed:c,maxFixed:d,isBlank:v}},t.prototype.modifyDataMinMax=function(r,n){this[DATA_MIN_MAX_ATTR[r]]=n},t.prototype.setDeterminedMinMax=function(r,n){var i=DETERMINED_MIN_MAX_ATTR[r];this[i]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(t,r,n){var i=t.rawExtentInfo;return i||(i=new ScaleRawExtentInfo(t,r,n),t.rawExtentInfo=i,i)}function parseAxisModelMinMax(t,r){return r==null?null:eqNaN(r)?NaN:t.parse(r)}function getScaleExtent(t,r){var n=t.type,i=ensureScaleRawExtentInfo(t,r,t.getExtent()).calculate();t.setBlank(i.isBlank);var a=i.min,o=i.max,s=r.ecModel;if(s&&n==="time"){var l=prepareLayoutBarSeries("bar",s),u=!1;if(each$4(l,function(v){u=u||v.getBaseAxis()===r.axis}),u){var c=makeColumnLayout(l),d=adjustScaleForOverflow(a,o,r,c);a=d.min,o=d.max}}return{extent:[a,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function adjustScaleForOverflow(t,r,n,i){var a=n.axis.getExtent(),o=a[1]-a[0],s=retrieveColumnLayout(i,n.axis);if(s===void 0)return{min:t,max:r};var l=1/0;each$4(s,function(I){l=Math.min(I.offset,l)});var u=-1/0;each$4(s,function(I){u=Math.max(I.offset+I.width,u)}),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=r-t,v=1-(l+u)/o,$=d/v-d;return r+=$*(u/c),t-=$*(l/c),{min:t,max:r}}function niceScaleExtent(t,r){var n=r,i=getScaleExtent(t,n),a=i.extent,o=n.get("splitNumber");t instanceof LogScale$1&&(t.base=n.get("logBase"));var s=t.type,l=n.get("interval"),u=s==="interval"||s==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),l!=null&&t.setInterval&&t.setInterval(l)}function createScaleByModel(t,r){if(r=r||t.get("type"),r)switch(r){case"category":return new OrdinalScale$1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Scale$1.getClass(r)||IntervalScale$1)}}function ifAxisCrossZero(t){var r=t.scale.getExtent(),n=r[0],i=r[1];return!(n>0&&i>0||n<0&&i<0)}function makeLabelFormatter(t){var r=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(i){return function(a,o){return t.scale.getFormattedLabel(a,o,i)}}(r):isString(r)?function(i){return function(a){var o=t.scale.getLabel(a),s=i.replace("{value}",o!=null?o:"");return s}}(r):isFunction(r)?function(i){return function(a,o){return n!=null&&(o=a.value-n),i(getAxisRawValue(t,a),o,a.level!=null?{level:a.level}:null)}}(r):function(i){return t.scale.getLabel(i)}}function getAxisRawValue(t,r){return t.type==="category"?t.scale.getLabel(r):r.value}function estimateLabelUnionRect(t){var r=t.model,n=t.scale;if(!(!r.get(["axisLabel","show"])||n.isBlank())){var i,a,o=n.getExtent();n instanceof OrdinalScale$1?a=n.count():(i=n.getTicks(),a=i.length);var s=t.getLabelModel(),l=makeLabelFormatter(t),u,c=1;a>40&&(c=Math.ceil(a/40));for(var d=0;d<a;d+=c){var v=i?i[d]:{value:o[0]+d},$=l(v,d),I=s.getTextRect($),O=rotateTextRect(I,s.get("rotate")||0);u?u.union(O):u=O}return u}}function rotateTextRect(t,r){var n=r*Math.PI/180,i=t.width,a=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),s=i*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),l=new BoundingRect$1(t.x,t.y,o,s);return l}function getOptionCategoryInterval(t){var r=t.get("interval");return r==null?"auto":r}function shouldShowAllLabels(t){return t.type==="category"&&getOptionCategoryInterval(t.getLabelModel())===0}function getDataDimensionsOnAxis(t,r){var n={};return each$4(t.mapDimensionsAll(r),function(i){n[getStackedDimension(t,i)]=!0}),keys(n)}var AxisModelCommonMixin=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var r=this.option;return!r.scale},t.prototype.getCoordSysModel=function(){},t}(),extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function(t){ComponentModel$1.registerClass(t)},registerComponentView:function(t){ComponentView$1.registerClass(t)},registerSeriesModel:function(t){SeriesModel$1.registerClass(t)},registerChartView:function(t){ChartView$1.registerClass(t)},registerSubTypeDefaulter:function(t,r){ComponentModel$1.registerSubTypeDefaulter(t,r)},registerPainter:function(t,r){registerPainter(t,r)}};function use(t){if(isArray(t)){each$4(t,function(r){use(r)});return}indexOf(extensions,t)>=0||(extensions.push(t),isFunction(t)&&(t={install:t}),t.install(extensionRegisters))}var inner$4=makeInner();function createAxisLabels(t){return t.type==="category"?makeCategoryLabels(t):makeRealNumberLabels(t)}function createAxisTicks(t,r){return t.type==="category"?makeCategoryTicks(t,r):{ticks:map$1(t.scale.getTicks(),function(n){return n.value})}}function makeCategoryLabels(t){var r=t.getLabelModel(),n=makeCategoryLabelsActually(t,r);return!r.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function makeCategoryLabelsActually(t,r){var n=getListCache(t,"labels"),i=getOptionCategoryInterval(r),a=listCacheGet(n,i);if(a)return a;var o,s;return isFunction(i)?o=makeLabelsByCustomizedCategoryInterval(t,i):(s=i==="auto"?makeAutoCategoryInterval(t):i,o=makeLabelsByNumericCategoryInterval(t,s)),listCacheSet(n,i,{labels:o,labelCategoryInterval:s})}function makeCategoryTicks(t,r){var n=getListCache(t,"ticks"),i=getOptionCategoryInterval(r),a=listCacheGet(n,i);if(a)return a;var o,s;if((!r.get("show")||t.scale.isBlank())&&(o=[]),isFunction(i))o=makeLabelsByCustomizedCategoryInterval(t,i,!0);else if(i==="auto"){var l=makeCategoryLabelsActually(t,t.getLabelModel());s=l.labelCategoryInterval,o=map$1(l.labels,function(u){return u.tickValue})}else s=i,o=makeLabelsByNumericCategoryInterval(t,s,!0);return listCacheSet(n,i,{ticks:o,tickCategoryInterval:s})}function makeRealNumberLabels(t){var r=t.scale.getTicks(),n=makeLabelFormatter(t);return{labels:map$1(r,function(i,a){return{level:i.level,formattedLabel:n(i,a),rawLabel:t.scale.getLabel(i),tickValue:i.value}})}}function getListCache(t,r){return inner$4(t)[r]||(inner$4(t)[r]=[])}function listCacheGet(t,r){for(var n=0;n<t.length;n++)if(t[n].key===r)return t[n].value}function listCacheSet(t,r,n){return t.push({key:r,value:n}),n}function makeAutoCategoryInterval(t){var r=inner$4(t).autoInterval;return r!=null?r:inner$4(t).autoInterval=t.calculateCategoryInterval()}function calculateCategoryInterval(t){var r=fetchAutoCategoryIntervalCalculationParams(t),n=makeLabelFormatter(t),i=(r.axisRotate-r.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var u=o[0],c=t.dataToCoord(u+1)-t.dataToCoord(u),d=Math.abs(c*Math.cos(i)),v=Math.abs(c*Math.sin(i)),$=0,I=0;u<=o[1];u+=l){var O=0,R=0,M=getBoundingRect(n({value:u}),r.font,"center","top");O=M.width*1.3,R=M.height*1.3,$=Math.max($,O,7),I=Math.max(I,R,7)}var F=$/d,V=I/v;isNaN(F)&&(F=1/0),isNaN(V)&&(V=1/0);var G=Math.max(0,Math.floor(Math.min(F,V))),Y=inner$4(t.model),X=t.getExtent(),q=Y.lastAutoInterval,Z=Y.lastTickCount;return q!=null&&Z!=null&&Math.abs(q-G)<=1&&Math.abs(Z-s)<=1&&q>G&&Y.axisExtent0===X[0]&&Y.axisExtent1===X[1]?G=q:(Y.lastTickCount=s,Y.lastAutoInterval=G,Y.axisExtent0=X[0],Y.axisExtent1=X[1]),G}function fetchAutoCategoryIntervalCalculationParams(t){var r=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()}}function makeLabelsByNumericCategoryInterval(t,r,n){var i=makeLabelFormatter(t),a=t.scale,o=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((r||0)+1,1),c=o[0],d=a.count();c!==0&&u>1&&d/u>2&&(c=Math.round(Math.ceil(c/u)*u));var v=shouldShowAllLabels(t),$=s.get("showMinLabel")||v,I=s.get("showMaxLabel")||v;$&&c!==o[0]&&R(o[0]);for(var O=c;O<=o[1];O+=u)R(O);I&&O-u!==o[1]&&R(o[1]);function R(M){var F={value:M};l.push(n?M:{formattedLabel:i(F),rawLabel:a.getLabel(F),tickValue:M})}return l}function makeLabelsByCustomizedCategoryInterval(t,r,n){var i=t.scale,a=makeLabelFormatter(t),o=[];return each$4(i.getTicks(),function(s){var l=i.getLabel(s),u=s.value;r(s.value,l)&&o.push(n?u:{formattedLabel:a(s),rawLabel:l,tickValue:u})}),o}var NORMALIZED_EXTENT=[0,1],Axis=function(){function t(r,n,i){this.onBand=!1,this.inverse=!1,this.dim=r,this.scale=n,this._extent=i||[0,0]}return t.prototype.contain=function(r){var n=this._extent,i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r>=i&&r<=a},t.prototype.containData=function(r){return this.scale.contain(r)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(r){return getPixelPrecision(r||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;i[0]=r,i[1]=n},t.prototype.dataToCoord=function(r,n){var i=this._extent,a=this.scale;return r=a.normalize(r),this.onBand&&a.type==="ordinal"&&(i=i.slice(),fixExtentWithBands(i,a.count())),linearMap(r,NORMALIZED_EXTENT,i,n)},t.prototype.coordToData=function(r,n){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),fixExtentWithBands(i,a.count()));var o=linearMap(r,i,NORMALIZED_EXTENT,n);return this.scale.scale(o)},t.prototype.pointToData=function(r,n){},t.prototype.getTicksCoords=function(r){r=r||{};var n=r.tickModel||this.getTickModel(),i=createAxisTicks(this,n),a=i.ticks,o=map$1(a,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return fixOnBandTicksCoords(this,o,s,r.clamp),o},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var r=this.model.getModel("minorTick"),n=r.get("splitNumber");n>0&&n<100||(n=5);var i=this.scale.getMinorTicks(n),a=map$1(i,function(o){return map$1(o,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return a},t.prototype.getViewLabels=function(){return createAxisLabels(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var r=this._extent,n=this.scale.getExtent(),i=n[1]-n[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(r[1]-r[0]);return Math.abs(a)/i},t.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},t}();function fixExtentWithBands(t,r){var n=t[1]-t[0],i=r,a=n/i/2;t[0]+=a,t[1]-=a}function fixOnBandTicksCoords(t,r,n,i){var a=r.length;if(!t.onBand||n||!a)return;var o=t.getExtent(),s,l;if(a===1)r[0].coord=o[0],s=r[1]={coord:o[1]};else{var u=r[a-1].tickValue-r[0].tickValue,c=(r[a-1].coord-r[0].coord)/u;each$4(r,function(I){I.coord-=c/2});var d=t.scale.getExtent();l=1+d[1]-r[a-1].tickValue,s={coord:r[a-1].coord+c*l},r.push(s)}var v=o[0]>o[1];$(r[0].coord,o[0])&&(i?r[0].coord=o[0]:r.shift()),i&&$(o[0],r[0].coord)&&r.unshift({coord:o[0]}),$(o[1],s.coord)&&(i?s.coord=o[1]:r.pop()),i&&$(s.coord,o[1])&&r.push({coord:o[1]});function $(I,O){return I=round$1(I),O=round$1(O),v?I>O:I<O}}var Axis$1=Axis;function prepareLayoutList(t){for(var r=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var a=i.label,o=a.getComputedTransform(),s=a.getBoundingRect(),l=!o||o[1]<1e-5&&o[2]<1e-5,u=a.style.margin||0,c=s.clone();c.applyTransform(o),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var d=l?new OrientedBoundingRect$1(s,o):null;r.push({label:a,labelLine:i.labelLine,rect:c,localRect:s,obb:d,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:o})}}return r}function hideOverlap(t){var r=[];t.sort(function(R,M){return M.priority-R.priority});var n=new BoundingRect$1(0,0,0,0);function i(R){if(!R.ignore){var M=R.ensureState("emphasis");M.ignore==null&&(M.ignore=!1)}R.ignore=!0}for(var a=0;a<t.length;a++){var o=t[a],s=o.axisAligned,l=o.localRect,u=o.transform,c=o.label,d=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var v=o.obb,$=!1,I=0;I<r.length;I++){var O=r[I];if(!!n.intersect(O.rect)){if(s&&O.axisAligned){$=!0;break}if(O.obb||(O.obb=new OrientedBoundingRect$1(O.localRect,O.transform)),v||(v=new OrientedBoundingRect$1(l,u)),v.intersect(O.obb)){$=!0;break}}}$?(i(c),d&&i(d)):(c.attr("ignore",o.defaultAttr.ignore),d&&d.attr("ignore",o.defaultAttr.labelGuideIgnore),r.push(o))}}function createDom(t,r,n){var i=platformApi.createCanvas(),a=r.getWidth(),o=r.getHeight(),s=i.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=a*n,i.height=o*n,i}var Layer=function(t){__extends(r,t);function r(n,i,a){var o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var s;a=a||devicePixelRatio,typeof n=="string"?s=createDom(n,i,a):isObject$2(n)&&(s=n,n=s.id),o.id=n,o.dom=s;var l=s.style;return l&&(disableUserSelect(s),s.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),o.painter=i,o.dpr=a,o}return r.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},r.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},r.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},r.prototype.setUnpainted=function(){this.__firstTimePaint=!0},r.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},r.prototype.createRepaintRects=function(n,i,a,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var s=[],l=this.maxRepaintRectCount,u=!1,c=new BoundingRect$1(0,0,0,0);function d(V){if(!(!V.isFinite()||V.isZero()))if(s.length===0){var G=new BoundingRect$1(0,0,0,0);G.copy(V),s.push(G)}else{for(var Y=!1,X=1/0,q=0,Z=0;Z<s.length;++Z){var Q=s[Z];if(Q.intersect(V)){var ie=new BoundingRect$1(0,0,0,0);ie.copy(Q),ie.union(V),s[Z]=ie,Y=!0;break}else if(u){c.copy(V),c.union(Q);var J=V.width*V.height,re=Q.width*Q.height,te=c.width*c.height,oe=te-J-re;oe<X&&(X=oe,q=Z)}}if(u&&(s[q].union(V),Y=!0),!Y){var G=new BoundingRect$1(0,0,0,0);G.copy(V),s.push(G)}u||(u=s.length>=l)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var $=n[v];if($){var I=$.shouldBePainted(a,o,!0,!0),O=$.__isRendered&&($.__dirty&REDRAW_BIT||!I)?$.getPrevPaintRect():null;O&&d(O);var R=I&&($.__dirty&REDRAW_BIT||!$.__isRendered)?$.getPaintRect():null;R&&d(R)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var $=i[v],I=$&&$.shouldBePainted(a,o,!0,!0);if($&&(!I||!$.__zr)&&$.__isRendered){var O=$.getPrevPaintRect();O&&d(O)}}var M;do{M=!1;for(var v=0;v<s.length;){if(s[v].isZero()){s.splice(v,1);continue}for(var F=v+1;F<s.length;)s[v].intersect(s[F])?(M=!0,s[v].union(s[F]),s.splice(F,1)):F++;v++}}while(M);return this._paintRects=s,s},r.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},r.prototype.resize=function(n,i){var a=this.dpr,o=this.dom,s=o.style,l=this.domBack;s&&(s.width=n+"px",s.height=i+"px"),o.width=n*a,o.height=i*a,l&&(l.width=n*a,l.height=i*a,a!==1&&this.ctxBack.scale(a,a))},r.prototype.clear=function(n,i,a){var o=this.dom,s=this.ctx,l=o.width,u=o.height;i=i||this.clearColor;var c=this.motionBlur&&!n,d=this.lastFrameAlpha,v=this.dpr,$=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,l/v,u/v));var I=this.domBack;function O(R,M,F,V){if(s.clearRect(R,M,F,V),i&&i!=="transparent"){var G=void 0;if(isGradientObject(i)){var Y=i.global||i.__width===F&&i.__height===V;G=Y&&i.__canvasGradient||getCanvasGradient(s,i,{x:0,y:0,width:F,height:V}),i.__canvasGradient=G,i.__width=F,i.__height=V}else isImagePatternObject(i)&&(i.scaleX=i.scaleX||v,i.scaleY=i.scaleY||v,G=createCanvasPattern(s,i,{dirty:function(){$.setUnpainted(),$.painter.refresh()}}));s.save(),s.fillStyle=G||i,s.fillRect(R,M,F,V),s.restore()}c&&(s.save(),s.globalAlpha=d,s.drawImage(I,R,M,F,V),s.restore())}!a||c?O(0,0,l,u):a.length&&each$4(a,function(R){O(R.x*v,R.y*v,R.width*v,R.height*v)})},r}(Eventful$1),Layer$1=Layer,HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function createRoot(t,r){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var CanvasPainter=function(){function t(r,n,i,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!r.nodeName||r.nodeName.toUpperCase()==="CANVAS";this._opts=i=extend({},i||{}),this.dpr=i.devicePixelRatio||devicePixelRatio,this._singleCanvas=o,this.root=r;var s=r.style;s&&(disableUserSelect(r),r.innerHTML=""),this.storage=n;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(o){var d=r,v=d.width,$=d.height;i.width!=null&&(v=i.width),i.height!=null&&($=i.height),this.dpr=i.devicePixelRatio||1,d.width=v*this.dpr,d.height=$*this.dpr,this._width=v,this._height=$;var I=new Layer$1(d,this,this.dpr);I.__builtin__=!0,I.initContext(),u[CANVAS_ZLEVEL]=I,I.zlevel=CANVAS_ZLEVEL,l.push(CANVAS_ZLEVEL),this._domRoot=r}else{this._width=getSize(r,0,i),this._height=getSize(r,1,i);var c=this._domRoot=createRoot(this._width,this._height);r.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},t.prototype.refresh=function(r){var n=this.storage.getDisplayList(!0),i=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,i,r,this._redrawId);for(var o=0;o<a.length;o++){var s=a[o],l=this._layers[s];if(!l.__builtin__&&l.refresh){var u=o===0?this._backgroundColor:null;l.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(r){var n=r.length,i=this._hoverlayer;if(i&&i.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,s=0;s<n;s++){var l=r[s];l.__inHover&&(i||(i=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),o||(o=i.ctx,o.save()),brush(o,l,a,s===n-1))}o&&o.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},t.prototype.paintOne=function(r,n){brushSingle(r,n)},t.prototype._paintList=function(r,n,i,a){if(this._redrawId===a){i=i||!1,this._updateLayerStatus(r);var o=this._doPaintList(r,n,i),s=o.finished,l=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),l&&this._paintHoverList(r),s)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var u=this;requestAnimationFrame$3(function(){u._paintList(r,n,i,a)})}}},t.prototype._compositeManually=function(){var r=this.getLayer(CANVAS_ZLEVEL).ctx,n=this._domRoot.width,i=this._domRoot.height;r.clearRect(0,0,n,i),this.eachBuiltinLayer(function(a){a.virtual&&r.drawImage(a.dom,0,0,n,i)})},t.prototype._doPaintList=function(r,n,i){for(var a=this,o=[],s=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var u=this._zlevelList[l],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&o.push(c)}for(var d=!0,v=!1,$=function(R){var M=o[R],F=M.ctx,V=s&&M.createRepaintRects(r,n,I._width,I._height),G=i?M.__startIndex:M.__drawIndex,Y=!i&&M.incremental&&Date.now,X=Y&&Date.now(),q=M.zlevel===I._zlevelList[0]?I._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,q,V);else if(G===M.__startIndex){var Z=r[G];(!Z.incremental||!Z.notClear||i)&&M.clear(!1,q,V)}G===-1&&(console.error("For some unknown reason. drawIndex is -1"),G=M.__startIndex);var Q,ie=function(oe){var le={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(Q=G;Q<M.__endIndex;Q++){var fe=r[Q];if(fe.__inHover&&(v=!0),a._doPaintEl(fe,M,s,oe,le,Q===M.__endIndex-1),Y){var de=Date.now()-X;if(de>15)break}}le.prevElClipPaths&&F.restore()};if(V)if(V.length===0)Q=M.__endIndex;else for(var J=I.dpr,re=0;re<V.length;++re){var te=V[re];F.save(),F.beginPath(),F.rect(te.x*J,te.y*J,te.width*J,te.height*J),F.clip(),ie(te),F.restore()}else F.save(),ie(),F.restore();M.__drawIndex=Q,M.__drawIndex<M.__endIndex&&(d=!1)},I=this,O=0;O<o.length;O++)$(O);return env$1.wxa&&each$4(this._layers,function(R){R&&R.ctx&&R.ctx.draw&&R.ctx.draw()}),{finished:d,needsRefreshHover:v}},t.prototype._doPaintEl=function(r,n,i,a,o,s){var l=n.ctx;if(i){var u=r.getPaintRect();(!a||u&&u.intersect(a))&&(brush(l,r,o,s),r.setPrevPaintRect(u))}else brush(l,r,o,s)},t.prototype.getLayer=function(r,n){this._singleCanvas&&!this._needsManuallyCompositing&&(r=CANVAS_ZLEVEL);var i=this._layers[r];return i||(i=new Layer$1("zr_"+r,this,this.dpr),i.zlevel=r,i.__builtin__=!0,this._layerConfig[r]?merge(i,this._layerConfig[r],!0):this._layerConfig[r-EL_AFTER_INCREMENTAL_INC]&&merge(i,this._layerConfig[r-EL_AFTER_INCREMENTAL_INC],!0),n&&(i.virtual=n),this.insertLayer(r,i),i.initContext()),i},t.prototype.insertLayer=function(r,n){var i=this._layers,a=this._zlevelList,o=a.length,s=this._domRoot,l=null,u=-1;if(!i[r]&&!!isLayerValid(n)){if(o>0&&r>a[0]){for(u=0;u<o-1&&!(a[u]<r&&a[u+1]>r);u++);l=i[a[u]]}if(a.splice(u+1,0,r),i[r]=n,!n.virtual)if(l){var c=l.dom;c.nextSibling?s.insertBefore(n.dom,c.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(r,n){for(var i=this._zlevelList,a=0;a<i.length;a++){var o=i[a];r.call(n,this._layers[o],o)}},t.prototype.eachBuiltinLayer=function(r,n){for(var i=this._zlevelList,a=0;a<i.length;a++){var o=i[a],s=this._layers[o];s.__builtin__&&r.call(n,s,o)}},t.prototype.eachOtherLayer=function(r,n){for(var i=this._zlevelList,a=0;a<i.length;a++){var o=i[a],s=this._layers[o];s.__builtin__||r.call(n,s,o)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(r){this.eachBuiltinLayer(function(v,$){v.__dirty=v.__used=!1});function n(v){o&&(o.__endIndex!==v&&(o.__dirty=!0),o.__endIndex=v)}if(this._singleCanvas)for(var i=1;i<r.length;i++){var a=r[i];if(a.zlevel!==r[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0,l,u;for(u=0;u<r.length;u++){var a=r[u],c=a.zlevel,d=void 0;l!==c&&(l=c,s=0),a.incremental?(d=this.getLayer(c+INCREMENTAL_INC,this._needsManuallyCompositing),d.incremental=!0,s=1):d=this.getLayer(c+(s>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),d.__builtin__||logError("ZLevel "+c+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==u&&(d.__dirty=!0),d.__startIndex=u,d.incremental?d.__drawIndex=-1:d.__drawIndex=u,n(u),o=d),a.__dirty&REDRAW_BIT&&!a.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=u))}n(u),this.eachBuiltinLayer(function(v,$){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(r){r.clear()},t.prototype.setBackgroundColor=function(r){this._backgroundColor=r,each$4(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(r,n){if(n){var i=this._layerConfig;i[r]?merge(i[r],n,!0):i[r]=n;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===r||o===r+EL_AFTER_INCREMENTAL_INC){var s=this._layers[o];merge(s,i[r],!0)}}}},t.prototype.delLayer=function(r){var n=this._layers,i=this._zlevelList,a=n[r];!a||(a.dom.parentNode.removeChild(a.dom),delete n[r],i.splice(indexOf(i,r),1))},t.prototype.resize=function(r,n){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var a=this._opts,o=this.root;if(r!=null&&(a.width=r),n!=null&&(a.height=n),r=getSize(o,0,a),n=getSize(o,1,a),i.style.display="",this._width!==r||n!==this._height){i.style.width=r+"px",i.style.height=n+"px";for(var s in this._layers)this._layers.hasOwnProperty(s)&&this._layers[s].resize(r,n);this.refresh(!0)}this._width=r,this._height=n}else{if(r==null||n==null)return;this._width=r,this._height=n,this.getLayer(CANVAS_ZLEVEL).resize(r,n)}return this},t.prototype.clearLayer=function(r){var n=this._layers[r];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(r){if(r=r||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var n=new Layer$1("image",this,r.pixelRatio||this.dpr);n.initContext(),n.clear(!1,r.backgroundColor||this._backgroundColor);var i=n.ctx;if(r.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,o=n.dom.height;this.eachLayer(function(v){v.__builtin__?i.drawImage(v.dom,0,0,a,o):v.renderToCanvas&&(i.save(),v.renderToCanvas(i),i.restore())})}else for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height},l=this.storage.getDisplayList(!0),u=0,c=l.length;u<c;u++){var d=l[u];brush(i,d,s,u===c-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),CanvasPainter$1=CanvasPainter;function install$a(t){t.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n}return r.prototype.getInitialData=function(n){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.getLegendIcon=function(n){var i=new Group$3,a=createSymbol("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);i.add(a),a.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),s=this.getData().getVisual("symbolRotate"),l=o==="none"?"circle":o,u=n.itemHeight*.8,c=createSymbol(l,(n.itemWidth-u)/2,(n.itemHeight-u)/2,u,u,n.itemStyle.fill);i.add(c),c.setStyle(n.itemStyle);var d=n.iconRotate==="inherit"?s:n.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),l.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),i},r.type="series.line",r.dependencies=["grid","polar"],r.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},r}(SeriesModel$1),LineSeries=LineSeriesModel;function getDefaultLabel(t,r){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(i===1){var a=retrieveRawValue(t,r,n[0]);return a!=null?a+"":null}else if(i){for(var o=[],s=0;s<n.length;s++)o.push(retrieveRawValue(t,r,n[s]));return o.join(" ")}}function getDefaultInterpolatedLabel(t,r){var n=t.mapDimensionsAll("defaultedLabel");if(!isArray(r))return r+"";for(var i=[],a=0;a<n.length;a++){var o=t.getDimensionIndex(n[a]);o>=0&&i.push(r[o])}return i.join(" ")}var Symbol$1=function(t){__extends(r,t);function r(n,i,a,o){var s=t.call(this)||this;return s.updateData(n,i,a,o),s}return r.prototype._createSymbol=function(n,i,a,o,s){this.removeAll();var l=createSymbol(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=driftSymbol,this._symbolType=n,this.add(l)},r.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},r.prototype.getSymbolType=function(){return this._symbolType},r.prototype.getSymbolPath=function(){return this.childAt(0)},r.prototype.highlight=function(){enterEmphasis(this.childAt(0))},r.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},r.prototype.setZ=function(n,i){var a=this.childAt(0);a.zlevel=n,a.z=i},r.prototype.setDraggable=function(n,i){var a=this.childAt(0);a.draggable=n,a.cursor=!i&&n?"move":a.cursor},r.prototype.updateData=function(n,i,a,o){this.silent=!1;var s=n.getItemVisual(i,"symbol")||"circle",l=n.hostModel,u=r.getSymbolSize(n,i),c=s!==this._symbolType,d=o&&o.disableAnimation;if(c){var v=n.getItemVisual(i,"symbolKeepAspect");this._createSymbol(s,n,i,u,v)}else{var $=this.childAt(0);$.silent=!1;var I={scaleX:u[0]/2,scaleY:u[1]/2};d?$.attr(I):updateProps$1($,I,l,i),saveOldStyle($)}if(this._updateCommon(n,i,u,a,o),c){var $=this.childAt(0);if(!d){var I={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:$.style.opacity}};$.scaleX=$.scaleY=0,$.style.opacity=0,initProps($,I,l,i)}}d&&this.childAt(0).stopAnimation("leave")},r.prototype._updateCommon=function(n,i,a,o,s){var l=this.childAt(0),u=n.hostModel,c,d,v,$,I,O,R,M,F;if(o&&(c=o.emphasisItemStyle,d=o.blurItemStyle,v=o.selectItemStyle,$=o.focus,I=o.blurScope,R=o.labelStatesModels,M=o.hoverScale,F=o.cursorStyle,O=o.emphasisDisabled),!o||n.hasItemOption){var V=o&&o.itemModel?o.itemModel:n.getItemModel(i),G=V.getModel("emphasis");c=G.getModel("itemStyle").getItemStyle(),v=V.getModel(["select","itemStyle"]).getItemStyle(),d=V.getModel(["blur","itemStyle"]).getItemStyle(),$=G.get("focus"),I=G.get("blurScope"),O=G.get("disabled"),R=getLabelStatesModels(V),M=G.getShallow("scale"),F=V.getShallow("cursor")}var Y=n.getItemVisual(i,"symbolRotate");l.attr("rotation",(Y||0)*Math.PI/180||0);var X=normalizeSymbolOffset(n.getItemVisual(i,"symbolOffset"),a);X&&(l.x=X[0],l.y=X[1]),F&&l.attr("cursor",F);var q=n.getItemVisual(i,"style"),Z=q.fill;if(l instanceof ZRImage$1){var Q=l.style;l.useStyle(extend({image:Q.image,x:Q.x,y:Q.y,width:Q.width,height:Q.height},q))}else l.__isEmptyBrush?l.useStyle(extend({},q)):l.useStyle(q),l.style.decal=null,l.setColor(Z,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var ie=n.getItemVisual(i,"liftZ"),J=this._z2;ie!=null?J==null&&(this._z2=l.z2,l.z2+=ie):J!=null&&(l.z2=J,this._z2=null);var re=s&&s.useNameLabel;setLabelStyle(l,R,{labelFetcher:u,labelDataIndex:i,defaultText:te,inheritColor:Z,defaultOpacity:q.opacity});function te(fe){return re?n.getName(fe):getDefaultLabel(n,fe)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var oe=l.ensureState("emphasis");oe.style=c,l.ensureState("select").style=v,l.ensureState("blur").style=d;var le=M==null||M===!0?Math.max(1.1,3/this._sizeY):isFinite(M)&&M>0?+M:1;oe.scaleX=this._sizeX*le,oe.scaleY=this._sizeY*le,this.setSymbolScale(1),toggleHoverEmphasis(this,$,I,O)},r.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},r.prototype.fadeOut=function(n,i,a){var o=this.childAt(0),s=getECData(this).dataIndex,l=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var u=o.getTextContent();u&&removeElement(u,{style:{opacity:0}},i,{dataIndex:s,removeOpt:l,cb:function(){o.removeTextContent()}})}else o.removeTextContent();removeElement(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:s,cb:n,removeOpt:l})},r.getSymbolSize=function(n,i){return normalizeSymbolSize(n.getItemVisual(i,"symbolSize"))},r}(Group$3);function driftSymbol(t,r){this.parent.drift(t,r)}var SymbolClz=Symbol$1;function symbolNeedsDraw(t,r,n,i){return r&&!isNaN(r[0])&&!isNaN(r[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(r[0],r[1]))&&t.getItemVisual(n,"symbol")!=="none"}function normalizeUpdateOpt(t){return t!=null&&!isObject$2(t)&&(t={isIgnore:t}),t||{}}function makeSeriesScope(t){var r=t.hostModel,n=r.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:r.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:r.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:getLabelStatesModels(r),cursorStyle:r.get("cursor")}}var SymbolDraw=function(){function t(r){this.group=new Group$3,this._SymbolCtor=r||SymbolClz}return t.prototype.updateData=function(r,n){this._progressiveEls=null,n=normalizeUpdateOpt(n);var i=this.group,a=r.hostModel,o=this._data,s=this._SymbolCtor,l=n.disableAnimation,u=makeSeriesScope(r),c={disableAnimation:l},d=n.getSymbolPoint||function(v){return r.getItemLayout(v)};o||i.removeAll(),r.diff(o).add(function(v){var $=d(v);if(symbolNeedsDraw(r,$,v,n)){var I=new s(r,v,u,c);I.setPosition($),r.setItemGraphicEl(v,I),i.add(I)}}).update(function(v,$){var I=o.getItemGraphicEl($),O=d(v);if(!symbolNeedsDraw(r,O,v,n)){i.remove(I);return}var R=r.getItemVisual(v,"symbol")||"circle",M=I&&I.getSymbolType&&I.getSymbolType();if(!I||M&&M!==R)i.remove(I),I=new s(r,v,u,c),I.setPosition(O);else{I.updateData(r,v,u,c);var F={x:O[0],y:O[1]};l?I.attr(F):updateProps$1(I,F,a)}i.add(I),r.setItemGraphicEl(v,I)}).remove(function(v){var $=o.getItemGraphicEl(v);$&&$.fadeOut(function(){i.remove($)},a)}).execute(),this._getSymbolPoint=d,this._data=r},t.prototype.updateLayout=function(){var r=this,n=this._data;n&&n.eachItemGraphicEl(function(i,a){var o=r._getSymbolPoint(a);i.setPosition(o),i.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(r){this._seriesScope=makeSeriesScope(r),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(r,n,i){this._progressiveEls=[],i=normalizeUpdateOpt(i);function a(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var o=r.start;o<r.end;o++){var s=n.getItemLayout(o);if(symbolNeedsDraw(n,s,o,i)){var l=new this._SymbolCtor(n,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),n.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(r){traverseElements(this._progressiveEls||this.group,r)},t.prototype.remove=function(r){var n=this.group,i=this._data;i&&r?i.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},i.hostModel)}):n.removeAll()},t}(),SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo(t,r,n){var i=t.getBaseAxis(),a=t.getOtherAxis(i),o=getValueStart(a,n),s=i.dim,l=a.dim,u=r.mapDimension(l),c=r.mapDimension(s),d=l==="x"||l==="radius"?1:0,v=map$1(t.dimensions,function(O){return r.mapDimension(O)}),$=!1,I=r.getCalculationInfo("stackResultDimension");return isDimensionStacked(r,v[0])&&($=!0,v[0]=I),isDimensionStacked(r,v[1])&&($=!0,v[1]=I),{dataDimsForPoint:v,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!$,valueDim:u,baseDim:c,baseDataOffset:d,stackedOverDimension:r.getCalculationInfo("stackedOverDimension")}}function getValueStart(t,r){var n=0,i=t.scale.getExtent();return r==="start"?n=i[0]:r==="end"?n=i[1]:isNumber(r)&&!isNaN(r)?n=r:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function getStackedOnPoint(t,r,n,i){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=t.valueStart);var o=t.baseDataOffset,s=[];return s[o]=n.get(t.baseDim,i),s[1-o]=a,r.dataToPoint(s)}function diffData(t,r){var n=[];return r.diff(t).add(function(i){n.push({cmd:"+",idx:i})}).update(function(i,a){n.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){n.push({cmd:"-",idx:i})}).execute(),n}function lineAnimationDiff(t,r,n,i,a,o,s,l){for(var u=diffData(t,r),c=[],d=[],v=[],$=[],I=[],O=[],R=[],M=prepareDataCoordInfo(a,r,s),F=t.getLayout("points")||[],V=r.getLayout("points")||[],G=0;G<u.length;G++){var Y=u[G],X=!0,q=void 0,Z=void 0;switch(Y.cmd){case"=":q=Y.idx*2,Z=Y.idx1*2;var Q=F[q],ie=F[q+1],J=V[Z],re=V[Z+1];(isNaN(Q)||isNaN(ie))&&(Q=J,ie=re),c.push(Q,ie),d.push(J,re),v.push(n[q],n[q+1]),$.push(i[Z],i[Z+1]),R.push(r.getRawIndex(Y.idx1));break;case"+":var te=Y.idx,oe=M.dataDimsForPoint,le=a.dataToPoint([r.get(oe[0],te),r.get(oe[1],te)]);Z=te*2,c.push(le[0],le[1]),d.push(V[Z],V[Z+1]);var fe=getStackedOnPoint(M,a,r,te);v.push(fe[0],fe[1]),$.push(i[Z],i[Z+1]),R.push(r.getRawIndex(te));break;case"-":X=!1}X&&(I.push(Y),O.push(O.length))}O.sort(function(Xe,Ge){return R[Xe]-R[Ge]});for(var de=c.length,Se=createFloat32Array(de),ge=createFloat32Array(de),Te=createFloat32Array(de),ke=createFloat32Array(de),Ie=[],G=0;G<O.length;G++){var me=O[G],Oe=G*2,Ve=me*2;Se[Oe]=c[Ve],Se[Oe+1]=c[Ve+1],ge[Oe]=d[Ve],ge[Oe+1]=d[Ve+1],Te[Oe]=v[Ve],Te[Oe+1]=v[Ve+1],ke[Oe]=$[Ve],ke[Oe+1]=$[Ve+1],Ie[G]=I[me]}return{current:Se,next:ge,stackedOnCurrent:Te,stackedOnNext:ke,status:Ie}}var mathMin=Math.min,mathMax=Math.max;function isPointNull$1(t,r){return isNaN(t)||isNaN(r)}function drawSegment(t,r,n,i,a,o,s,l,u){for(var c,d,v,$,I,O,R=n,M=0;M<i;M++){var F=r[R*2],V=r[R*2+1];if(R>=a||R<0)break;if(isPointNull$1(F,V)){if(u){R+=o;continue}break}if(R===n)t[o>0?"moveTo":"lineTo"](F,V),v=F,$=V;else{var G=F-c,Y=V-d;if(G*G+Y*Y<.5){R+=o;continue}if(s>0){for(var X=R+o,q=r[X*2],Z=r[X*2+1];q===F&&Z===V&&M<i;)M++,X+=o,R+=o,q=r[X*2],Z=r[X*2+1],F=r[R*2],V=r[R*2+1],G=F-c,Y=V-d;var Q=M+1;if(u)for(;isPointNull$1(q,Z)&&Q<i;)Q++,X+=o,q=r[X*2],Z=r[X*2+1];var ie=.5,J=0,re=0,te=void 0,oe=void 0;if(Q>=i||isPointNull$1(q,Z))I=F,O=V;else{J=q-c,re=Z-d;var le=F-c,fe=q-F,de=V-d,Se=Z-V,ge=void 0,Te=void 0;if(l==="x"){ge=Math.abs(le),Te=Math.abs(fe);var ke=J>0?1:-1;I=F-ke*ge*s,O=V,te=F+ke*Te*s,oe=V}else if(l==="y"){ge=Math.abs(de),Te=Math.abs(Se);var Ie=re>0?1:-1;I=F,O=V-Ie*ge*s,te=F,oe=V+Ie*Te*s}else ge=Math.sqrt(le*le+de*de),Te=Math.sqrt(fe*fe+Se*Se),ie=Te/(Te+ge),I=F-J*s*(1-ie),O=V-re*s*(1-ie),te=F+J*s*ie,oe=V+re*s*ie,te=mathMin(te,mathMax(q,F)),oe=mathMin(oe,mathMax(Z,V)),te=mathMax(te,mathMin(q,F)),oe=mathMax(oe,mathMin(Z,V)),J=te-F,re=oe-V,I=F-J*ge/Te,O=V-re*ge/Te,I=mathMin(I,mathMax(c,F)),O=mathMin(O,mathMax(d,V)),I=mathMax(I,mathMin(c,F)),O=mathMax(O,mathMin(d,V)),J=F-I,re=V-O,te=F+J*Te/ge,oe=V+re*Te/ge}t.bezierCurveTo(v,$,I,O,F,V),v=te,$=oe}else t.lineTo(F,V)}c=F,d=V,R+=o}return M}var ECPolylineShape=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ECPolyline=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;return i.type="ec-polyline",i}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ECPolylineShape},r.prototype.buildPath=function(n,i){var a=i.points,o=0,s=a.length/2;if(i.connectNulls){for(;s>0&&isPointNull$1(a[s*2-2],a[s*2-1]);s--);for(;o<s&&isPointNull$1(a[o*2],a[o*2+1]);o++);}for(;o<s;)o+=drawSegment(n,a,o,s,s,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},r.prototype.getPointOn=function(n,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,o=a.data,s=PathProxy$1.CMD,l,u,c=i==="x",d=[],v=0;v<o.length;){var $=o[v++],I=void 0,O=void 0,R=void 0,M=void 0,F=void 0,V=void 0,G=void 0;switch($){case s.M:l=o[v++],u=o[v++];break;case s.L:if(I=o[v++],O=o[v++],G=c?(n-l)/(I-l):(n-u)/(O-u),G<=1&&G>=0){var Y=c?(O-u)*G+u:(I-l)*G+l;return c?[n,Y]:[Y,n]}l=I,u=O;break;case s.C:I=o[v++],O=o[v++],R=o[v++],M=o[v++],F=o[v++],V=o[v++];var X=c?cubicRootAt(l,I,R,F,n,d):cubicRootAt(u,O,M,V,n,d);if(X>0)for(var q=0;q<X;q++){var Z=d[q];if(Z<=1&&Z>=0){var Y=c?cubicAt(u,O,M,V,Z):cubicAt(l,I,R,F,Z);return c?[n,Y]:[Y,n]}}l=F,u=V;break}}},r}(Path$1),ECPolygonShape=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(ECPolylineShape),ECPolygon=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;return i.type="ec-polygon",i}return r.prototype.getDefaultShape=function(){return new ECPolygonShape},r.prototype.buildPath=function(n,i){var a=i.points,o=i.stackedOnPoints,s=0,l=a.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;l>0&&isPointNull$1(a[l*2-2],a[l*2-1]);l--);for(;s<l&&isPointNull$1(a[s*2],a[s*2+1]);s++);}for(;s<l;){var c=drawSegment(n,a,s,l,l,1,i.smooth,u,i.connectNulls);drawSegment(n,o,s+c-1,c,l,-1,i.stackedOnSmooth,u,i.connectNulls),s+=c+1,n.closePath()}},r}(Path$1);function createGridClipPath(t,r,n,i,a){var o=t.getArea(),s=o.x,l=o.y,u=o.width,c=o.height,d=n.get(["lineStyle","width"])||2;s-=d/2,l-=d/2,u+=d,c+=d,u=Math.ceil(u),s!==Math.floor(s)&&(s=Math.floor(s),u++);var v=new Rect$1({shape:{x:s,y:l,width:u,height:c}});if(r){var $=t.getBaseAxis(),I=$.isHorizontal(),O=$.inverse;I?(O&&(v.shape.x+=u),v.shape.width=0):(O||(v.shape.y+=c),v.shape.height=0);var R=isFunction(a)?function(M){a(M,v)}:null;initProps(v,{shape:{width:u,height:c,x:s,y:l}},n,null,i,R)}return v}function createPolarClipPath(t,r,n){var i=t.getArea(),a=round$1(i.r0,1),o=round$1(i.r,1),s=new Sector$1({shape:{cx:round$1(t.cx,1),cy:round$1(t.cy,1),r0:a,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(r){var l=t.getBaseAxis().dim==="angle";l?s.shape.endAngle=i.startAngle:s.shape.r=a,initProps(s,{shape:{endAngle:i.endAngle,r:o}},n)}return s}function isCoordinateSystemType(t,r){return t.type===r}function isPointsSame(t,r){if(t.length===r.length){for(var n=0;n<t.length;n++)if(t[n]!==r[n])return;return!0}}function bboxFromPoints(t){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],l=t[o++];isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i)),isNaN(l)||(n=Math.min(l,n),a=Math.max(l,a))}return[[r,n],[i,a]]}function getBoundingDiff(t,r){var n=bboxFromPoints(t),i=n[0],a=n[1],o=bboxFromPoints(r),s=o[0],l=o[1];return Math.max(Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]),Math.abs(a[0]-l[0]),Math.abs(a[1]-l[1]))}function getSmooth(t){return isNumber(t)?t:t?.5:0}function getStackedOnPoints(t,r,n){if(!n.valueDim)return[];for(var i=r.count(),a=createFloat32Array(i*2),o=0;o<i;o++){var s=getStackedOnPoint(n,t,r,o);a[o*2]=s[0],a[o*2+1]=s[1]}return a}function turnPointsIntoStep(t,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],d=[],v=[];if(i){for(l=0;l<t.length;l+=2)!isNaN(t[l])&&!isNaN(t[l+1])&&v.push(t[l],t[l+1]);t=v}for(l=0;l<t.length-2;l+=2)switch(d[0]=t[l+2],d[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),n){case"end":u[o]=d[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var $=(c[o]+d[o])/2,I=[];u[o]=I[o]=$,u[1-o]=c[1-o],I[1-o]=d[1-o],s.push(u[0],u[1]),s.push(I[0],I[1]);break;default:u[o]=c[o],u[1-o]=d[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function clipColorStops(t,r){var n=[],i=t.length,a,o;function s(d,v,$){var I=d.coord,O=($-I)/(v.coord-I),R=lerp(O,[d.color,v.color]);return{coord:$,color:R}}for(var l=0;l<i;l++){var u=t[l],c=u.coord;if(c<0)a=u;else if(c>r){o?n.push(s(o,u,r)):a&&n.push(s(a,u,0),s(a,u,r));break}else a&&(n.push(s(a,u,0)),a=null),n.push(u),o=u}return n}function getVisualGradient(t,r,n){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&r.type==="cartesian2d"){for(var a,o,s=i.length-1;s>=0;s--){var l=t.getDimensionInfo(i[s].dimension);if(a=l&&l.coordDim,a==="x"||a==="y"){o=i[s];break}}if(!!o){var u=r.getAxis(a),c=map$1(o.stops,function(G){return{coord:u.toGlobalCoord(u.dataToCoord(G.value)),color:G.color}}),d=c.length,v=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),v.reverse());var $=clipColorStops(c,a==="x"?n.getWidth():n.getHeight()),I=$.length;if(!I&&d)return c[0].coord<0?v[1]?v[1]:c[d-1].color:v[0]?v[0]:c[0].color;var O=10,R=$[0].coord-O,M=$[I-1].coord+O,F=M-R;if(F<.001)return"transparent";each$4($,function(G){G.offset=(G.coord-R)/F}),$.push({offset:I?$[I-1].offset:.5,color:v[1]||"transparent"}),$.unshift({offset:I?$[0].offset:.5,color:v[0]||"transparent"});var V=new LinearGradient$1(0,0,0,0,$,!0);return V[a]=R,V[a+"2"]=M,V}}}function getIsIgnoreFunc(t,r,n){var i=t.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var o=n.getAxesByScale("ordinal")[0];if(!!o&&!(a&&canShowAllSymbolForCategory(o,r))){var s=r.mapDimension(o.dim),l={};return each$4(o.getViewLabels(),function(u){var c=o.scale.getRawOrdinalNumber(u.tickValue);l[c]=1}),function(u){return!l.hasOwnProperty(r.get(s,u))}}}}function canShowAllSymbolForCategory(t,r){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var a=r.count(),o=Math.max(1,Math.round(a/5)),s=0;s<a;s+=o)if(SymbolClz.getSymbolSize(r,s)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function isPointNull(t,r){return isNaN(t)||isNaN(r)}function getLastIndexNotNull(t){for(var r=t.length/2;r>0&&isPointNull(t[r*2-2],t[r*2-1]);r--);return r-1}function getPointAtIndex(t,r){return[t[r*2],t[r*2+1]]}function getIndexRange(t,r,n){for(var i=t.length/2,a=n==="x"?0:1,o,s,l=0,u=-1,c=0;c<i;c++)if(s=t[c*2+a],!(isNaN(s)||isNaN(t[c*2+1-a]))){if(c===0){o=s;continue}if(o<=r&&s>=r||o>=r&&s<=r){u=c;break}l=c,o=s}return{range:[l,u],t:(r-o)/(s-o)}}function anyStateShowEndLabel(t){if(t.get(["endLabel","show"]))return!0;for(var r=0;r<SPECIAL_STATES.length;r++)if(t.get([SPECIAL_STATES[r],"endLabel","show"]))return!0;return!1}function createLineClipPath(t,r,n,i){if(isCoordinateSystemType(r,"cartesian2d")){var a=i.getModel("endLabel"),o=a.get("valueAnimation"),s=i.getData(),l={lastFrameIndex:0},u=anyStateShowEndLabel(i)?function(I,O){t._endLabelOnDuring(I,O,s,l,o,a,r)}:null,c=r.getBaseAxis().isHorizontal(),d=createGridClipPath(r,n,i,function(){var I=t._endLabel;I&&n&&l.originalX!=null&&I.attr({x:l.originalX,y:l.originalY})},u);if(!i.get("clip",!0)){var v=d.shape,$=Math.max(v.width,v.height);c?(v.y-=$,v.height+=$*2):(v.x-=$,v.width+=$*2)}return u&&u(1,d),d}else return createPolarClipPath(r,n,i)}function getEndLabelStateSpecified(t,r){var n=r.getBaseAxis(),i=n.isHorizontal(),a=n.inverse,o=i?a?"right":"left":"center",s=i?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||s}}}var LineView=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(){var n=new Group$3,i=new SymbolDraw$1;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=n},r.prototype.render=function(n,i,a){var o=this,s=n.coordinateSystem,l=this.group,u=n.getData(),c=n.getModel("lineStyle"),d=n.getModel("areaStyle"),v=u.getLayout("points")||[],$=s.type==="polar",I=this._coordSys,O=this._symbolDraw,R=this._polyline,M=this._polygon,F=this._lineGroup,V=!i.ssr&&n.get("animation"),G=!d.isEmpty(),Y=d.get("origin"),X=prepareDataCoordInfo(s,u,Y),q=G&&getStackedOnPoints(s,u,X),Z=n.get("showSymbol"),Q=n.get("connectNulls"),ie=Z&&!$&&getIsIgnoreFunc(n,u,s),J=this._data;J&&J.eachItemGraphicEl(function(Ge,st){Ge.__temp&&(l.remove(Ge),J.setItemGraphicEl(st,null))}),Z||O.remove(),l.add(F);var re=$?!1:n.get("step"),te;s&&s.getArea&&n.get("clip",!0)&&(te=s.getArea(),te.width!=null?(te.x-=.1,te.y-=.1,te.width+=.2,te.height+=.2):te.r0&&(te.r0-=.5,te.r+=.5)),this._clipShapeForSymbol=te;var oe=getVisualGradient(u,s,a)||u.getVisual("style")[u.getVisual("drawType")];if(!(R&&I.type===s.type&&re===this._step))Z&&O.updateData(u,{isIgnore:ie,clipShape:te,disableAnimation:!0,getSymbolPoint:function(Ge){return[v[Ge*2],v[Ge*2+1]]}}),V&&this._initSymbolLabelAnimation(u,s,te),re&&(v=turnPointsIntoStep(v,s,re,Q),q&&(q=turnPointsIntoStep(q,s,re,Q))),R=this._newPolyline(v),G?M=this._newPolygon(v,q):M&&(F.remove(M),M=this._polygon=null),$||this._initOrUpdateEndLabel(n,s,convertToColorString(oe)),F.setClipPath(createLineClipPath(this,s,!0,n));else{G&&!M?M=this._newPolygon(v,q):M&&!G&&(F.remove(M),M=this._polygon=null),$||this._initOrUpdateEndLabel(n,s,convertToColorString(oe));var le=F.getClipPath();if(le){var fe=createLineClipPath(this,s,!1,n);initProps(le,{shape:fe.shape},n)}else F.setClipPath(createLineClipPath(this,s,!0,n));Z&&O.updateData(u,{isIgnore:ie,clipShape:te,disableAnimation:!0,getSymbolPoint:function(Ge){return[v[Ge*2],v[Ge*2+1]]}}),(!isPointsSame(this._stackedOnPoints,q)||!isPointsSame(this._points,v))&&(V?this._doUpdateAnimation(u,q,s,a,re,Y,Q):(re&&(v=turnPointsIntoStep(v,s,re,Q),q&&(q=turnPointsIntoStep(q,s,re,Q))),R.setShape({points:v}),M&&M.setShape({points:v,stackedOnPoints:q})))}var de=n.getModel("emphasis"),Se=de.get("focus"),ge=de.get("blurScope"),Te=de.get("disabled");if(R.useStyle(defaults(c.getLineStyle(),{fill:"none",stroke:oe,lineJoin:"bevel"})),setStatesStylesFromModel(R,n,"lineStyle"),R.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ke=R.getState("emphasis").style;ke.lineWidth=+R.style.lineWidth+1}getECData(R).seriesIndex=n.seriesIndex,toggleHoverEmphasis(R,Se,ge,Te);var Ie=getSmooth(n.get("smooth")),me=n.get("smoothMonotone");if(R.setShape({smooth:Ie,smoothMonotone:me,connectNulls:Q}),M){var Oe=u.getCalculationInfo("stackedOnSeries"),Ve=0;M.useStyle(defaults(d.getAreaStyle(),{fill:oe,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),Oe&&(Ve=getSmooth(Oe.get("smooth"))),M.setShape({smooth:Ie,stackedOnSmooth:Ve,smoothMonotone:me,connectNulls:Q}),setStatesStylesFromModel(M,n,"areaStyle"),getECData(M).seriesIndex=n.seriesIndex,toggleHoverEmphasis(M,Se,ge,Te)}var Xe=function(Ge){o._changePolyState(Ge)};u.eachItemGraphicEl(function(Ge){Ge&&(Ge.onHoverStateChange=Xe)}),this._polyline.onHoverStateChange=Xe,this._data=u,this._coordSys=s,this._stackedOnPoints=q,this._points=v,this._step=re,this._valueOrigin=Y,n.get("triggerLineEvent")&&(this.packEventData(n,R),M&&this.packEventData(n,M))},r.prototype.packEventData=function(n,i){getECData(i).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},r.prototype.highlight=function(n,i,a,o){var s=n.getData(),l=queryDataIndex(s,o);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var u=s.getLayout("points"),c=s.getItemGraphicEl(l);if(!c){var d=u[l*2],v=u[l*2+1];if(isNaN(d)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,v))return;var $=n.get("zlevel")||0,I=n.get("z")||0;c=new SymbolClz(s,l),c.x=d,c.y=v,c.setZ($,I);var O=c.getSymbolPath().getTextContent();O&&(O.zlevel=$,O.z=I,O.z2=this._polyline.z2+1),c.__temp=!0,s.setItemGraphicEl(l,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else ChartView$1.prototype.highlight.call(this,n,i,a,o)},r.prototype.downplay=function(n,i,a,o){var s=n.getData(),l=queryDataIndex(s,o);if(this._changePolyState("normal"),l!=null&&l>=0){var u=s.getItemGraphicEl(l);u&&(u.__temp?(s.setItemGraphicEl(l,null),this.group.remove(u)):u.downplay())}else ChartView$1.prototype.downplay.call(this,n,i,a,o)},r.prototype._changePolyState=function(n){var i=this._polygon;setStatesFlag(this._polyline,n),i&&setStatesFlag(i,n)},r.prototype._newPolyline=function(n){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new ECPolyline({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},r.prototype._newPolygon=function(n,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new ECPolygon({shape:{points:n,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},r.prototype._initSymbolLabelAnimation=function(n,i,a){var o,s,l=i.getBaseAxis(),u=l.inverse;i.type==="cartesian2d"?(o=l.isHorizontal(),s=!1):i.type==="polar"&&(o=l.dim==="angle",s=!0);var c=n.hostModel,d=c.get("animationDuration");isFunction(d)&&(d=d(null));var v=c.get("animationDelay")||0,$=isFunction(v)?v(null):v;n.eachItemGraphicEl(function(I,O){var R=I;if(R){var M=[I.x,I.y],F=void 0,V=void 0,G=void 0;if(a)if(s){var Y=a,X=i.pointToCoord(M);o?(F=Y.startAngle,V=Y.endAngle,G=-X[1]/180*Math.PI):(F=Y.r0,V=Y.r,G=X[0])}else{var q=a;o?(F=q.x,V=q.x+q.width,G=I.x):(F=q.y+q.height,V=q.y,G=I.y)}var Z=V===F?0:(G-F)/(V-F);u&&(Z=1-Z);var Q=isFunction(v)?v(O):d*Z+$,ie=R.getSymbolPath(),J=ie.getTextContent();R.attr({scaleX:0,scaleY:0}),R.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Q}),J&&J.animateFrom({style:{opacity:0}},{duration:300,delay:Q}),ie.disableLabelAnimation=!0}})},r.prototype._initOrUpdateEndLabel=function(n,i,a){var o=n.getModel("endLabel");if(anyStateShowEndLabel(n)){var s=n.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new ZRText$1({z2:200}),c.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var d=getLastIndexNotNull(u);d>=0&&(setLabelStyle(l,getLabelStatesModels(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:d,defaultText:function(v,$,I){return I!=null?getDefaultInterpolatedLabel(s,I):getDefaultLabel(s,v)},enableTextSetter:!0},getEndLabelStateSpecified(o,i)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},r.prototype._endLabelOnDuring=function(n,i,a,o,s,l,u){var c=this._endLabel,d=this._polyline;if(c){n<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var v=a.getLayout("points"),$=a.hostModel,I=$.get("connectNulls"),O=l.get("precision"),R=l.get("distance")||0,M=u.getBaseAxis(),F=M.isHorizontal(),V=M.inverse,G=i.shape,Y=V?F?G.x:G.y+G.height:F?G.x+G.width:G.y,X=(F?R:0)*(V?-1:1),q=(F?0:-R)*(V?-1:1),Z=F?"x":"y",Q=getIndexRange(v,Y,Z),ie=Q.range,J=ie[1]-ie[0],re=void 0;if(J>=1){if(J>1&&!I){var te=getPointAtIndex(v,ie[0]);c.attr({x:te[0]+X,y:te[1]+q}),s&&(re=$.getRawValue(ie[0]))}else{var te=d.getPointOn(Y,Z);te&&c.attr({x:te[0]+X,y:te[1]+q});var oe=$.getRawValue(ie[0]),le=$.getRawValue(ie[1]);s&&(re=interpolateRawValues(a,O,oe,le,Q.t))}o.lastFrameIndex=ie[0]}else{var fe=n===1||o.lastFrameIndex>0?ie[0]:0,te=getPointAtIndex(v,fe);s&&(re=$.getRawValue(fe)),c.attr({x:te[0]+X,y:te[1]+q})}if(s){var de=labelInner(c);typeof de.setLabelText=="function"&&de.setLabelText(re)}}},r.prototype._doUpdateAnimation=function(n,i,a,o,s,l,u){var c=this._polyline,d=this._polygon,v=n.hostModel,$=lineAnimationDiff(this._data,n,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin),I=$.current,O=$.stackedOnCurrent,R=$.next,M=$.stackedOnNext;if(s&&(I=turnPointsIntoStep($.current,a,s,u),O=turnPointsIntoStep($.stackedOnCurrent,a,s,u),R=turnPointsIntoStep($.next,a,s,u),M=turnPointsIntoStep($.stackedOnNext,a,s,u)),getBoundingDiff(I,R)>3e3||d&&getBoundingDiff(O,M)>3e3){c.stopAnimation(),c.setShape({points:R}),d&&(d.stopAnimation(),d.setShape({points:R,stackedOnPoints:M}));return}c.shape.__points=$.current,c.shape.points=I;var F={shape:{points:R}};$.current!==I&&(F.shape.__points=$.next),c.stopAnimation(),updateProps$1(c,F,v),d&&(d.setShape({points:I,stackedOnPoints:O}),d.stopAnimation(),updateProps$1(d,{shape:{stackedOnPoints:M}},v),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var V=[],G=$.status,Y=0;Y<G.length;Y++){var X=G[Y].cmd;if(X==="="){var q=n.getItemGraphicEl(G[Y].idx1);q&&V.push({el:q,ptIdx:Y})}}c.animators&&c.animators.length&&c.animators[0].during(function(){d&&d.dirtyShape();for(var Z=c.shape.__points,Q=0;Q<V.length;Q++){var ie=V[Q].el,J=V[Q].ptIdx*2;ie.x=Z[J],ie.y=Z[J+1],ie.markRedraw()}})},r.prototype.remove=function(n){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,s){o.__temp&&(i.remove(o),a.setItemGraphicEl(s,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},r.type="line",r}(ChartView$1),LineView$1=LineView;function pointsLayout(t,r){return{seriesType:t,plan:createRenderPlanner(),reset:function(n){var i=n.getData(),a=n.coordinateSystem,o=n.pipelineContext,s=r||o.large;if(!!a){var l=map$1(a.dimensions,function(I){return i.mapDimension(I)}).slice(0,2),u=l.length,c=i.getCalculationInfo("stackResultDimension");isDimensionStacked(i,l[0])&&(l[0]=c),isDimensionStacked(i,l[1])&&(l[1]=c);var d=i.getStore(),v=i.getDimensionIndex(l[0]),$=i.getDimensionIndex(l[1]);return u&&{progress:function(I,O){for(var R=I.end-I.start,M=s&&createFloat32Array(R*u),F=[],V=[],G=I.start,Y=0;G<I.end;G++){var X=void 0;if(u===1){var q=d.get(v,G);X=a.dataToPoint(q,null,V)}else F[0]=d.get(v,G),F[1]=d.get($,G),X=a.dataToPoint(F,null,V);s?(M[Y++]=X[0],M[Y++]=X[1]):O.setItemLayout(G,X.slice())}s&&O.setLayout("points",M)}}}}}}var samplers={average:function(t){for(var r=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(r+=t[i],n++);return n===0?NaN:r/n},sum:function(t){for(var r=0,n=0;n<t.length;n++)r+=t[n]||0;return r},max:function(t){for(var r=-1/0,n=0;n<t.length;n++)t[n]>r&&(r=t[n]);return isFinite(r)?r:NaN},min:function(t){for(var r=1/0,n=0;n<t.length;n++)t[n]<r&&(r=t[n]);return isFinite(r)?r:NaN},minmax:function(t){for(var r=-1/0,n=-1/0,i=0;i<t.length;i++){var a=t[i],o=Math.abs(a);o>r&&(r=o,n=a)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},indexSampler=function(t){return Math.round(t.length/2)};function dataSample(t){return{seriesType:t,reset:function(r,n,i){var a=r.getData(),o=r.get("sampling"),s=r.coordinateSystem,l=a.count();if(l>10&&s.type==="cartesian2d"&&o){var u=s.getBaseAxis(),c=s.getOtherAxis(u),d=u.getExtent(),v=i.getDevicePixelRatio(),$=Math.abs(d[1]-d[0])*(v||1),I=Math.round(l/$);if(isFinite(I)&&I>1){o==="lttb"&&r.setData(a.lttbDownSample(a.mapDimension(c.dim),1/I));var O=void 0;isString(o)?O=samplers[o]:isFunction(o)&&(O=o),O&&r.setData(a.downSample(a.mapDimension(c.dim),1/I,O,indexSampler))}}}}}function install$9(t){t.registerChartView(LineView$1),t.registerSeriesModel(LineSeries),t.registerLayout(pointsLayout("line",!0)),t.registerVisual({seriesType:"line",reset:function(r){var n=r.getData(),i=r.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var GridModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.type="grid",r.dependencies=["xAxis","yAxis"],r.layoutMode="box",r.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},r}(ComponentModel$1),GridModel$1=GridModel,CartesianAxisModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},r.type="cartesian2dAxis",r}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption={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),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),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis),axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis},AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator(t,r,n,i){each$4(AXIS_TYPES,function(a,o){var s=merge(merge({},axisDefault[o],!0),i,!0),l=function(u){__extends(c,u);function c(){var d=u!==null&&u.apply(this,arguments)||this;return d.type=r+"Axis."+o,d}return c.prototype.mergeDefaultAndTheme=function(d,v){var $=fetchLayoutMode(this),I=$?getLayoutParams(d):{},O=v.getTheme();merge(d,O.get(o+"Axis")),merge(d,this.getDefaultOption()),d.type=getAxisType(d),$&&mergeLayoutParam(d,I,$)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},c.prototype.getCategories=function(d){var v=this.option;if(v.type==="category")return d?v.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=r+"Axis."+o,c.defaultOption=s,c}(n);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(r+"Axis",getAxisType)}function getAxisType(t){return t.type||(t.data?"category":"value")}var Cartesian=function(){function t(r){this.type="cartesian",this._dimList=[],this._axes={},this.name=r||""}return t.prototype.getAxis=function(r){return this._axes[r]},t.prototype.getAxes=function(){return map$1(this._dimList,function(r){return this._axes[r]},this)},t.prototype.getAxesByScale=function(r){return r=r.toLowerCase(),filter(this.getAxes(),function(n){return n.scale.type===r})},t.prototype.addAxis=function(r){var n=r.dim;this._axes[n]=r,this._dimList.push(n)},t}(),Cartesian$1=Cartesian,cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(t){return t.type==="interval"||t.type==="time"}var Cartesian2D=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=cartesian2DDimensions,n}return r.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(n)||!canCalculateAffineTransform(i))){var a=n.getExtent(),o=i.getExtent(),s=this.dataToPoint([a[0],o[0]]),l=this.dataToPoint([a[1],o[1]]),u=a[1]-a[0],c=o[1]-o[0];if(!(!u||!c)){var d=(l[0]-s[0])/u,v=(l[1]-s[1])/c,$=s[0]-a[0]*d,I=s[1]-o[0]*v,O=this._transform=[d,0,0,v,$,I];this._invTransform=invert([],O)}}},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},r.prototype.containPoint=function(n){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},r.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},r.prototype.containZone=function(n,i){var a=this.dataToPoint(n),o=this.dataToPoint(i),s=this.getArea(),l=new BoundingRect$1(a[0],a[1],o[0]-a[0],o[1]-a[1]);return s.intersect(l)},r.prototype.dataToPoint=function(n,i,a){a=a||[];var o=n[0],s=n[1];if(this._transform&&o!=null&&isFinite(o)&&s!=null&&isFinite(s))return applyTransform$1(a,n,this._transform);var l=this.getAxis("x"),u=this.getAxis("y");return a[0]=l.toGlobalCoord(l.dataToCoord(o,i)),a[1]=u.toGlobalCoord(u.dataToCoord(s,i)),a},r.prototype.clampData=function(n,i){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,s=a.getExtent(),l=o.getExtent(),u=a.parse(n[0]),c=o.parse(n[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i[1]=Math.min(Math.max(Math.min(l[0],l[1]),c),Math.max(l[0],l[1])),i},r.prototype.pointToData=function(n,i){var a=[];if(this._invTransform)return applyTransform$1(a,n,this._invTransform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(n[0]),i),a[1]=s.coordToData(s.toLocalCoord(n[1]),i),a},r.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},r.prototype.getArea=function(n){n=n||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-n,s=Math.min(a[0],a[1])-n,l=Math.max(i[0],i[1])-o+n,u=Math.max(a[0],a[1])-s+n;return new BoundingRect$1(o,s,l,u)},r}(Cartesian$1),Axis2D=function(t){__extends(r,t);function r(n,i,a,o,s){var l=t.call(this,n,i,a)||this;return l.index=0,l.type=o||"value",l.position=s||"bottom",l}return r.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},r.prototype.getGlobalExtent=function(n){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),n&&i[0]>i[1]&&i.reverse(),i},r.prototype.pointToData=function(n,i){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),i)},r.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},r}(Axis$1),Axis2D$1=Axis2D;function layout(t,r,n){n=n||{};var i=t.coordinateSystem,a=r.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,u=s?"onZero":l,c=a.dim,d=i.getRect(),v=[d.x,d.x+d.width,d.y,d.y+d.height],$={left:0,right:1,top:0,bottom:1,onZero:2},I=r.get("offset")||0,O=c==="x"?[v[2]-I,v[3]+I]:[v[0]-I,v[1]+I];if(s){var R=s.toGlobalCoord(s.dataToCoord(0));O[$.onZero]=Math.max(Math.min(R,O[1]),O[0])}o.position=[c==="y"?O[$[u]]:v[0],c==="x"?O[$[u]]:v[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var M={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=M[l],o.labelOffset=s?O[$[l]]-O[$.onZero]:0,r.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),retrieve(n.labelInside,r.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var F=r.get(["axisLabel","rotate"]);return o.labelRotate=u==="top"?-F:F,o.z2=1,o}function isCartesian2DSeries(t){return t.get("coordinateSystem")==="cartesian2d"}function findAxisModels(t){var r={xAxisModel:null,yAxisModel:null};return each$4(r,function(n,i){var a=i.replace(/Model$/,""),o=t.getReferringComponents(a,SINGLE_REFERRING).models[0];r[i]=o}),r}var mathLog=Math.log;function alignScaleTicks(t,r,n){var i=IntervalScale$1.prototype,a=i.getTicks.call(n),o=i.getTicks.call(n,!0),s=a.length-1,l=i.getInterval.call(n),u=getScaleExtent(t,r),c=u.extent,d=u.fixMin,v=u.fixMax;if(t.type==="log"){var $=mathLog(t.base);c=[mathLog(c[0])/$,mathLog(c[1])/$]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:s,fixMin:d,fixMax:v});var I=i.getExtent.call(t);d&&(c[0]=I[0]),v&&(c[1]=I[1]);var O=i.getInterval.call(t),R=c[0],M=c[1];if(d&&v)O=(M-R)/s;else if(d)for(M=c[0]+O*s;M<c[1]&&isFinite(M)&&isFinite(c[1]);)O=increaseInterval(O),M=c[0]+O*s;else if(v)for(R=c[1]-O*s;R>c[0]&&isFinite(R)&&isFinite(c[0]);)O=increaseInterval(O),R=c[1]-O*s;else{var F=t.getTicks().length-1;F>s&&(O=increaseInterval(O));var V=O*s;M=Math.ceil(c[1]/O)*O,R=round$1(M-V),R<0&&c[0]>=0?(R=0,M=round$1(V)):M>0&&c[1]<=0&&(M=0,R=-round$1(V))}var G=(a[0].value-o[0].value)/l,Y=(a[s].value-o[s].value)/l;i.setExtent.call(t,R+O*G,M+O*Y),i.setInterval.call(t,O),(G||Y)&&i.setNiceExtent.call(t,R+O,M-O)}var Grid=function(){function t(r,n,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(r,n,i),this.model=r}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(r,n){var i=this._axesMap;this._updateScale(r,this.model);function a(s){var l,u=keys(s),c=u.length;if(!!c){for(var d=[],v=c-1;v>=0;v--){var $=+u[v],I=s[$],O=I.model,R=I.scale;isIntervalOrLogScale(R)&&O.get("alignTicks")&&O.get("interval")==null?d.push(I):(niceScaleExtent(R,O),isIntervalOrLogScale(R)&&(l=I))}d.length&&(l||(l=d.pop(),niceScaleExtent(l.scale,l.model)),each$4(d,function(M){alignScaleTicks(M.scale,M.model,l.scale)}))}}a(i.x),a(i.y);var o={};each$4(i.x,function(s){fixAxisOnZero(i,"y",s,o)}),each$4(i.y,function(s){fixAxisOnZero(i,"x",s,o)}),this.resize(this.model,n)},t.prototype.resize=function(r,n,i){var a=r.getBoxLayoutParams(),o=!i&&r.get("containLabel"),s=getLayoutRect(a,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;u(),o&&(each$4(l,function(c){if(!c.model.get(["axisLabel","inside"])){var d=estimateLabelUnionRect(c);if(d){var v=c.isHorizontal()?"height":"width",$=c.model.get(["axisLabel","margin"]);s[v]-=d[v]+$,c.position==="top"?s.y+=d.height+$:c.position==="left"&&(s.x+=d.width+$)}}}),u()),each$4(this._coordsList,function(c){c.calcAffineTransform()});function u(){each$4(l,function(c){var d=c.isHorizontal(),v=d?[0,s.width]:[0,s.height],$=c.inverse?1:0;c.setExtent(v[$],v[1-$]),updateAxisTransform(c,d?s.x:s.y)})}},t.prototype.getAxis=function(r,n){var i=this._axesMap[r];if(i!=null)return i[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(r,n){if(r!=null&&n!=null){var i="x"+r+"y"+n;return this._coordsMap[i]}isObject$2(r)&&(n=r.yAxisIndex,r=r.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===r||o[a].getAxis("y").index===n)return o[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(r,n,i){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(r,n,i){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(r){var n=r.seriesModel,i=r.xAxisModel||n&&n.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],a=r.yAxisModel||n&&n.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],o=r.gridModel,s=this._coordsList,l,u;if(n)l=n.coordinateSystem,indexOf(s,l)<0&&(l=null);else if(i&&a)l=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(a)u=this.getAxis("y",a.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(l=this._coordsList[0])}return{cartesian:l,axis:u}},t.prototype.containPoint=function(r){var n=this._coordsList[0];if(n)return n.containPoint(r)},t.prototype._initCartesian=function(r,n,i){var a=this,o=this,s={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},u={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=l,each$4(l.x,function(d,v){each$4(l.y,function($,I){var O="x"+v+"y"+I,R=new Cartesian2D(O);R.master=a,R.model=r,a._coordsMap[O]=R,a._coordsList.push(R),R.addAxis(d),R.addAxis($)})});function c(d){return function(v,$){if(!!isAxisUsedInTheGrid(v,r)){var I=v.get("position");d==="x"?I!=="top"&&I!=="bottom"&&(I=s.bottom?"top":"bottom"):I!=="left"&&I!=="right"&&(I=s.left?"right":"left"),s[I]=!0;var O=new Axis2D$1(d,createScaleByModel(v),[0,0],v.get("type"),I),R=O.type==="category";O.onBand=R&&v.get("boundaryGap"),O.inverse=v.get("inverse"),v.axis=O,O.model=v,O.grid=o,O.index=$,o._axesList.push(O),l[d][$]=O,u[d]++}}}},t.prototype._updateScale=function(r,n){each$4(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),r.eachSeries(function(a){if(isCartesian2DSeries(a)){var o=findAxisModels(a),s=o.xAxisModel,l=o.yAxisModel;if(!isAxisUsedInTheGrid(s,n)||!isAxisUsedInTheGrid(l,n))return;var u=this.getCartesian(s.componentIndex,l.componentIndex),c=a.getData(),d=u.getAxis("x"),v=u.getAxis("y");i(c,d),i(c,v)}},this);function i(a,o){each$4(getDataDimensionsOnAxis(a,o.dim),function(s){o.scale.unionExtentFromData(a,s)})}},t.prototype.getTooltipAxes=function(r){var n=[],i=[];return each$4(this.getCartesians(),function(a){var o=r!=null&&r!=="auto"?a.getAxis(r):a.getBaseAxis(),s=a.getOtherAxis(o);indexOf(n,o)<0&&n.push(o),indexOf(i,s)<0&&i.push(s)}),{baseAxes:n,otherAxes:i}},t.create=function(r,n){var i=[];return r.eachComponent("grid",function(a,o){var s=new t(a,r,n);s.name="grid_"+o,s.resize(a,n,!0),a.coordinateSystem=s,i.push(s)}),r.eachSeries(function(a){if(!!isCartesian2DSeries(a)){var o=findAxisModels(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;a.coordinateSystem=c.getCartesian(s.componentIndex,l.componentIndex)}}),i},t.dimensions=cartesian2DDimensions,t}();function isAxisUsedInTheGrid(t,r){return t.getCoordSysModel()===r}function fixAxisOnZero(t,r,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var a=t[r],o,s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(!l)return;if(u!=null)canOnZeroToAxis(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&canOnZeroToAxis(a[c])&&!i[d(a[c])]){o=a[c];break}o&&(i[d(o)]=!0);function d(v){return v.dim+"_"+v.index}}function canOnZeroToAxis(t){return t&&t.type!=="category"&&t.type!=="time"&&ifAxisCrossZero(t)}function updateAxisTransform(t,r){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+r}:function(a){return i-a+r},t.toLocalCoord=t.dim==="x"?function(a){return a-r}:function(a){return i-a+r}}var Grid$1=Grid,PI=Math.PI,AxisBuilder=function(){function t(r,n){this.group=new Group$3,this.opt=n,this.axisModel=r,defaults(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Group$3({x:n.position[0],y:n.position[1],rotation:n.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(r){return!!builders[r]},t.prototype.add=function(r){builders[r](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(r,n,i){var a=remRadian(n-r),o,s;return isRadianAroundZero(a)?(s=i>0?"top":"bottom",o="center"):isRadianAroundZero(a-PI)?(s=i>0?"bottom":"top",o="center"):(s="middle",a>0&&a<PI?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:s}},t.makeAxisEventDataBase=function(r){var n={componentType:r.mainType,componentIndex:r.componentIndex};return n[r.mainType+"Index"]=r.componentIndex,n},t.isLabelSilent=function(r){var n=r.get("tooltip");return r.get("silent")||!(r.get("triggerEvent")||n&&n.show)},t}(),builders={axisLine:function(t,r,n,i){var a=r.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var o=r.axis.getExtent(),s=i.transform,l=[o[0],0],u=[o[1],0],c=l[0]>u[0];s&&(applyTransform$1(l,l,s),applyTransform$1(u,u,s));var d=extend({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new Line$1({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var $=r.get(["axisLine","symbol"]);if($!=null){var I=r.get(["axisLine","symbolSize"]);isString($)&&($=[$,$]),(isString(I)||isNumber(I))&&(I=[I,I]);var O=normalizeSymbolOffset(r.get(["axisLine","symbolOffset"])||0,I),R=I[0],M=I[1];each$4([{rotate:t.rotation+Math.PI/2,offset:O[0],r:0},{rotate:t.rotation-Math.PI/2,offset:O[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],function(F,V){if($[V]!=="none"&&$[V]!=null){var G=createSymbol($[V],-R/2,-M/2,R,M,d.stroke,!0),Y=F.r+F.offset,X=c?u:l;G.attr({rotation:F.rotate,x:X[0]+Y*Math.cos(t.rotation),y:X[1]-Y*Math.sin(t.rotation),silent:!0,z2:11}),n.add(G)}})}}},axisTickLabel:function(t,r,n,i){var a=buildAxisMajorTicks(n,i,r,t),o=buildAxisLabel(n,i,r,t);if(fixMinMaxLabelShow(r,o,a),buildAxisMinorTicks(n,i,r,t.tickDirection),r.get(["axisLabel","hideOverlap"])){var s=prepareLayoutList(map$1(o,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));hideOverlap(s)}},axisName:function(t,r,n,i){var a=retrieve(t.axisName,r.get("name"));if(!!a){var o=r.get("nameLocation"),s=t.nameDirection,l=r.getModel("nameTextStyle"),u=r.get("nameGap")||0,c=r.axis.getExtent(),d=c[0]>c[1]?-1:1,v=[o==="start"?c[0]-d*u:o==="end"?c[1]+d*u:(c[0]+c[1])/2,isNameLocationCenter(o)?t.labelOffset+s*u:0],$,I=r.get("nameRotate");I!=null&&(I=I*PI/180);var O;isNameLocationCenter(o)?$=AxisBuilder.innerTextLayout(t.rotation,I!=null?I:t.rotation,s):($=endTextLayout(t.rotation,o,I||0,c),O=t.axisNameAvailableWidth,O!=null&&(O=Math.abs(O/Math.sin($.rotation)),!isFinite(O)&&(O=null)));var R=l.getFont(),M=r.get("nameTruncate",!0)||{},F=M.ellipsis,V=retrieve(t.nameTruncateMaxWidth,M.maxWidth,O),G=new ZRText$1({x:v[0],y:v[1],rotation:$.rotation,silent:AxisBuilder.isLabelSilent(r),style:createTextStyle(l,{text:a,font:R,overflow:"truncate",width:V,ellipsis:F,fill:l.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:l.get("align")||$.textAlign,verticalAlign:l.get("verticalAlign")||$.textVerticalAlign}),z2:1});if(setTooltipConfig({el:G,componentModel:r,itemName:a}),G.__fullText=a,G.anid="name",r.get("triggerEvent")){var Y=AxisBuilder.makeAxisEventDataBase(r);Y.targetType="axisName",Y.name=a,getECData(G).eventData=Y}i.add(G),G.updateTransform(),n.add(G),G.decomposeTransform()}}};function endTextLayout(t,r,n,i){var a=remRadian(n-t),o,s,l=i[0]>i[1],u=r==="start"&&!l||r!=="start"&&l;return isRadianAroundZero(a-PI/2)?(s=u?"bottom":"top",o="center"):isRadianAroundZero(a-PI*1.5)?(s=u?"top":"bottom",o="center"):(s="middle",a<PI*1.5&&a>PI/2?o=u?"left":"right":o=u?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:s}}function fixMinMaxLabelShow(t,r,n){if(!shouldShowAllLabels(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);r=r||[],n=n||[];var o=r[0],s=r[1],l=r[r.length-1],u=r[r.length-2],c=n[0],d=n[1],v=n[n.length-1],$=n[n.length-2];i===!1?(ignoreEl(o),ignoreEl(c)):isTwoLabelOverlapped(o,s)&&(i?(ignoreEl(s),ignoreEl(d)):(ignoreEl(o),ignoreEl(c))),a===!1?(ignoreEl(l),ignoreEl(v)):isTwoLabelOverlapped(u,l)&&(a?(ignoreEl(u),ignoreEl($)):(ignoreEl(l),ignoreEl(v)))}}function ignoreEl(t){t&&(t.ignore=!0)}function isTwoLabelOverlapped(t,r){var n=t&&t.getBoundingRect().clone(),i=r&&r.getBoundingRect().clone();if(!(!n||!i)){var a=identity([]);return rotate(a,a,-t.rotation),n.applyTransform(mul([],a,t.getLocalTransform())),i.applyTransform(mul([],a,r.getLocalTransform())),n.intersect(i)}}function isNameLocationCenter(t){return t==="middle"||t==="center"}function createTicks(t,r,n,i,a){for(var o=[],s=[],l=[],u=0;u<t.length;u++){var c=t[u].coord;s[0]=c,s[1]=0,l[0]=c,l[1]=n,r&&(applyTransform$1(s,s,r),applyTransform$1(l,l,r));var d=new Line$1({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:i,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(d.shape,d.style.lineWidth),d.anid=a+"_"+t[u].tickValue,o.push(d)}return o}function buildAxisMajorTicks(t,r,n,i){var a=n.axis,o=n.getModel("axisTick"),s=o.get("show");if(s==="auto"&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick")),!(!s||a.scale.isBlank())){for(var l=o.getModel("lineStyle"),u=i.tickDirection*o.get("length"),c=a.getTicksCoords(),d=createTicks(c,r.transform,u,defaults(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<d.length;v++)t.add(d[v]);return d}}function buildAxisMinorTicks(t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(!!s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=defaults(l.getLineStyle(),defaults(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var v=createTicks(s[d],r.transform,u,c,"minorticks_"+d),$=0;$<v.length;$++)t.add(v[$])}}function buildAxisLabel(t,r,n,i){var a=n.axis,o=retrieve(i.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var s=n.getModel("axisLabel"),l=s.get("margin"),u=a.getViewLabels(),c=(retrieve(i.labelRotate,s.get("rotate"))||0)*PI/180,d=AxisBuilder.innerTextLayout(i.rotation,c,i.labelDirection),v=n.getCategories&&n.getCategories(!0),$=[],I=AxisBuilder.isLabelSilent(n),O=n.get("triggerEvent");return each$4(u,function(R,M){var F=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(R.tickValue):R.tickValue,V=R.formattedLabel,G=R.rawLabel,Y=s;if(v&&v[F]){var X=v[F];isObject$2(X)&&X.textStyle&&(Y=new Model$1(X.textStyle,s,n.ecModel))}var q=Y.getTextColor()||n.get(["axisLine","lineStyle","color"]),Z=a.dataToCoord(F),Q=Y.getShallow("align",!0)||d.textAlign,ie=retrieve2(Y.getShallow("alignMinLabel",!0),Q),J=retrieve2(Y.getShallow("alignMaxLabel",!0),Q),re=Y.getShallow("verticalAlign",!0)||Y.getShallow("baseline",!0)||d.textVerticalAlign,te=retrieve2(Y.getShallow("verticalAlignMinLabel",!0),re),oe=retrieve2(Y.getShallow("verticalAlignMaxLabel",!0),re),le=new ZRText$1({x:Z,y:i.labelOffset+i.labelDirection*l,rotation:d.rotation,silent:I,z2:10+(R.level||0),style:createTextStyle(Y,{text:V,align:M===0?ie:M===u.length-1?J:Q,verticalAlign:M===0?te:M===u.length-1?oe:re,fill:isFunction(q)?q(a.type==="category"?G:a.type==="value"?F+"":F,M):q})});if(le.anid="label_"+F,O){var fe=AxisBuilder.makeAxisEventDataBase(n);fe.targetType="axisLabel",fe.value=G,fe.tickIndex=M,a.type==="category"&&(fe.dataIndex=F),getECData(le).eventData=fe}r.add(le),le.updateTransform(),$.push(le),t.add(le),le.decomposeTransform()}),$}}var AxisBuilder$1=AxisBuilder;function collect(t,r){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(n,t,r),n.seriesInvolved&&collectSeriesInfo(n,t),n}function collectAxesInfo(t,r,n){var i=r.getComponent("tooltip"),a=r.getComponent("axisPointer"),o=a.get("link",!0)||[],s=[];each$4(n.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var u=makeKey(l.model),c=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=l;var d=l.model,v=d.getModel("tooltip",i);if(each$4(l.getAxes(),curry$1(R,!1,null)),l.getTooltipAxes&&i&&v.get("show")){var $=v.get("trigger")==="axis",I=v.get(["axisPointer","type"])==="cross",O=l.getTooltipAxes(v.get(["axisPointer","axis"]));($||I)&&each$4(O.baseAxes,curry$1(R,I?"cross":!0,$)),I&&each$4(O.otherAxes,curry$1(R,"cross",!1))}function R(M,F,V){var G=V.model.getModel("axisPointer",a),Y=G.get("show");if(!(!Y||Y==="auto"&&!M&&!isHandleTrigger(G))){F==null&&(F=G.get("triggerTooltip")),G=M?makeAxisPointerModel(V,v,a,r,M,F):G;var X=G.get("snap"),q=G.get("triggerEmphasis"),Z=makeKey(V.model),Q=F||X||V.type==="category",ie=t.axesInfo[Z]={key:Z,axis:V,coordSys:l,axisPointerModel:G,triggerTooltip:F,triggerEmphasis:q,involveSeries:Q,snap:X,useHandle:isHandleTrigger(G),seriesModels:[],linkGroup:null};c[Z]=ie,t.seriesInvolved=t.seriesInvolved||Q;var J=getLinkGroupIndex(o,V);if(J!=null){var re=s[J]||(s[J]={axesInfo:{}});re.axesInfo[Z]=ie,re.mapper=o[J].mapper,ie.linkGroup=re}}}})}function makeAxisPointerModel(t,r,n,i,a,o){var s=r.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};each$4(l,function($){u[$]=clone$2(s.get($))}),u.snap=t.type!=="category"&&!!o,s.get("type")==="cross"&&(u.type="line");var c=u.label||(u.label={});if(c.show==null&&(c.show=!1),a==="cross"){var d=s.get(["label","show"]);if(c.show=d!=null?d:!0,!o){var v=u.lineStyle=s.get("crossStyle");v&&defaults(c,v.textStyle)}}return t.model.getModel("axisPointer",new Model$1(u,n,i))}function collectSeriesInfo(t,r){r.eachSeries(function(n){var i=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!i||a==="none"||a===!1||a==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||each$4(t.coordSysAxesInfo[makeKey(i.model)],function(s){var l=s.axis;i.getAxis(l.dim)===l&&(s.seriesModels.push(n),s.seriesDataCount==null&&(s.seriesDataCount=0),s.seriesDataCount+=n.getData().count())})})}function getLinkGroupIndex(t,r){for(var n=r.model,i=r.dim,a=0;a<t.length;a++){var o=t[a]||{};if(checkPropInLink(o[i+"AxisId"],n.id)||checkPropInLink(o[i+"AxisIndex"],n.componentIndex)||checkPropInLink(o[i+"AxisName"],n.name))return a}}function checkPropInLink(t,r){return t==="all"||isArray(t)&&indexOf(t,r)>=0||t===r}function fixValue(t){var r=getAxisInfo(t);if(!!r){var n=r.axisPointerModel,i=r.axis.scale,a=n.option,o=n.get("status"),s=n.get("value");s!=null&&(s=i.parse(s));var l=isHandleTrigger(n);o==null&&(a.status=l?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(s==null||s>u[1])&&(s=u[1]),s<u[0]&&(s=u[0]),a.value=s,l&&(a.status=r.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo(t){var r=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return r&&r.axesInfo[makeKey(t)]}function getAxisPointerModel(t){var r=getAxisInfo(t);return r&&r.axisPointerModel}function isHandleTrigger(t){return!!t.get(["handle","show"])}function makeKey(t){return t.type+"||"+t.id}var axisPointerClazz={},AxisView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,i,a,o){this.axisPointerClass&&fixValue(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},r.prototype.updateAxisPointer=function(n,i,a,o){this._doUpdateAxisPointerClass(n,a,!1)},r.prototype.remove=function(n,i){var a=this._axisPointer;a&&a.remove(i)},r.prototype.dispose=function(n,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},r.prototype._doUpdateAxisPointerClass=function(n,i,a){var o=r.getAxisPointerClass(this.axisPointerClass);if(!!o){var s=getAxisPointerModel(n);s?(this._axisPointer||(this._axisPointer=new o)).render(n,s,i,a):this._disposeAxisPointer(i)}},r.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},r.registerAxisPointerClass=function(n,i){axisPointerClazz[n]=i},r.getAxisPointerClass=function(n){return n&&axisPointerClazz[n]},r.type="axis",r}(ComponentView$1),AxisView$1=AxisView,inner$3=makeInner();function rectCoordAxisBuildSplitArea(t,r,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=i.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:o,clamp:!0});if(!!c.length){var d=l.length,v=inner$3(t).splitAreaColors,$=createHashMap(),I=0;if(v)for(var O=0;O<c.length;O++){var R=v.get(c[O].tickValue);if(R!=null){I=(R+(d-1)*O)%d;break}}var M=a.toGlobalCoord(c[0].coord),F=s.getAreaStyle();l=isArray(l)?l:[l];for(var O=1;O<c.length;O++){var V=a.toGlobalCoord(c[O].coord),G=void 0,Y=void 0,X=void 0,q=void 0;a.isHorizontal()?(G=M,Y=u.y,X=V-G,q=u.height,M=G+X):(G=u.x,Y=M,X=u.width,q=V-Y,M=Y+q);var Z=c[O-1].tickValue;Z!=null&&$.set(Z,I),r.add(new Rect$1({anid:Z!=null?"area_"+Z:null,shape:{x:G,y:Y,width:X,height:q},style:defaults({fill:l[I]},F),autoBatch:!0,silent:!0})),I=(I+1)%d}inner$3(t).splitAreaColors=$}}}function rectCoordAxisHandleRemove(t){inner$3(t).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.axisPointerClass="CartesianAxisPointer",n}return r.prototype.render=function(n,i,a,o){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!n.get("show")){var l=n.getCoordSysModel(),u=layout(l,n),c=new AxisBuilder$1(n,extend({handleAutoShown:function(v){for(var $=l.coordinateSystem.getCartesians(),I=0;I<$.length;I++)if(isIntervalOrLogScale($[I].getOtherAxis(n.axis).scale))return!0;return!1}},u));each$4(axisBuilderAttrs,c.add,c),this._axisGroup.add(c.getGroup()),each$4(selfBuilderAttrs,function(v){n.get([v,"show"])&&axisElementBuilders[v](this,this._axisGroup,n,l)},this);var d=o&&o.type==="changeAxisOrder"&&o.isInitSort;d||groupTransition(s,this._axisGroup,n),t.prototype.render.call(this,n,i,a,o)}},r.prototype.remove=function(){rectCoordAxisHandleRemove(this)},r.type="cartesianAxis",r}(AxisView$1),axisElementBuilders={splitLine:function(t,r,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=isArray(l)?l:[l];for(var u=i.coordinateSystem.getRect(),c=a.isHorizontal(),d=0,v=a.getTicksCoords({tickModel:o}),$=[],I=[],O=s.getLineStyle(),R=0;R<v.length;R++){var M=a.toGlobalCoord(v[R].coord);c?($[0]=M,$[1]=u.y,I[0]=M,I[1]=u.y+u.height):($[0]=u.x,$[1]=M,I[0]=u.x+u.width,I[1]=M);var F=d++%l.length,V=v[R].tickValue,G=new Line$1({anid:V!=null?"line_"+v[R].tickValue:null,autoBatch:!0,shape:{x1:$[0],y1:$[1],x2:I[0],y2:I[1]},style:defaults({stroke:l[F]},O),silent:!0});subPixelOptimizeLine(G.shape,O.lineWidth),r.add(G)}}},minorSplitLine:function(t,r,n,i){var a=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(!!c.length)for(var d=[],v=[],$=s.getLineStyle(),I=0;I<c.length;I++)for(var O=0;O<c[I].length;O++){var R=a.toGlobalCoord(c[I][O].coord);u?(d[0]=R,d[1]=l.y,v[0]=R,v[1]=l.y+l.height):(d[0]=l.x,d[1]=R,v[0]=l.x+l.width,v[1]=R);var M=new Line$1({anid:"minor_line_"+c[I][O].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:v[0],y2:v[1]},style:$,silent:!0});subPixelOptimizeLine(M.shape,$.lineWidth),r.add(M)}},splitArea:function(t,r,n,i){rectCoordAxisBuildSplitArea(t,r,n,i)}},CartesianXAxisView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="xAxis",r}(CartesianAxisView),CartesianYAxisView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=CartesianXAxisView.type,n}return r.type="yAxis",r}(CartesianAxisView),GridView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return r.prototype.render=function(n,i){this.group.removeAll(),n.get("show")&&this.group.add(new Rect$1({shape:n.coordinateSystem.getRect(),style:defaults({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},r.type="grid",r}(ComponentView$1),extraOption={offset:0};function install$8(t){t.registerComponentView(GridView),t.registerComponentModel(GridModel$1),t.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator(t,"x",CartesianAxisModel,extraOption),axisModelCreator(t,"y",CartesianAxisModel,extraOption),t.registerComponentView(CartesianXAxisView),t.registerComponentView(CartesianYAxisView),t.registerPreprocessor(function(r){r.xAxis&&r.yAxis&&!r.grid&&(r.grid={})})}var inner$2=makeInner(),clone=clone$2,bind=bind$1,BaseAxisPointer=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(r,n,i,a){var o=n.get("value"),s=n.get("status");if(this._axisModel=r,this._axisPointerModel=n,this._api=i,!(!a&&this._lastValue===o&&this._lastStatus===s)){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||s==="hide"){l&&l.hide(),u&&u.hide();return}l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,r,n,i);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=d;var v=this._moveAnimation=this.determineAnimation(r,n);if(!l)l=this._group=new Group$3,this.createPointerEl(l,c,r,n),this.createLabelEl(l,c,r,n),i.getZr().add(l);else{var $=curry$1(updateProps,n,v);this.updatePointerEl(l,c,$),this.updateLabelEl(l,c,$,n)}updateMandatoryProps(l,n,!0),this._renderHandle(o)}},t.prototype.remove=function(r){this.clear(r)},t.prototype.dispose=function(r){this.clear(r)},t.prototype.determineAnimation=function(r,n){var i=n.get("animation"),a=r.axis,o=a.type==="category",s=n.get("snap");if(!s&&!o)return!1;if(i==="auto"||i==null){var l=this.animationThreshold;if(o&&a.getBandWidth()>l)return!0;if(s){var u=getAxisInfo(r).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/u>l}return!1}return i===!0},t.prototype.makeElOption=function(r,n,i,a,o){},t.prototype.createPointerEl=function(r,n,i,a){var o=n.pointer;if(o){var s=inner$2(r).pointerEl=new graphic[o.type](clone(n.pointer));r.add(s)}},t.prototype.createLabelEl=function(r,n,i,a){if(n.label){var o=inner$2(r).labelEl=new ZRText$1(clone(n.label));r.add(o),updateLabelShowHide(o,a)}},t.prototype.updatePointerEl=function(r,n,i){var a=inner$2(r).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),i(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(r,n,i,a){var o=inner$2(r).labelEl;o&&(o.setStyle(n.label.style),i(o,{x:n.label.x,y:n.label.y}),updateLabelShowHide(o,a))},t.prototype._renderHandle=function(r){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,o=n.getModel("handle"),s=n.get("status");if(!o.get("show")||!s||s==="hide"){a&&i.remove(a),this._handle=null;return}var l;this._handle||(l=!0,a=this._handle=createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){stop(c.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),i.add(a)),updateMandatoryProps(a,n,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=o.get("size");isArray(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(r,l)}},t.prototype._moveHandleToValue=function(r,n){updateProps(this._axisPointerModel,!n&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(r,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(r,n){var i=this._handle;if(!!i){this._dragging=!0;var a=this.updateHandleTransform(getHandleTransProps(i),[r,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(getHandleTransProps(a)),inner$2(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var r=this._handle;if(!!r){var n=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var r=this._handle;if(!!r){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(r){this._lastValue=null,this._lastStatus=null;var n=r.getZr(),i=this._group,a=this._handle;n&&i&&(this._lastGraphicKey=null,i&&n.remove(i),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(r,n,i){return i=i||0,{x:r[i],y:r[1-i],width:n[i],height:n[1-i]}},t}();function updateProps(t,r,n,i){propsEqual(inner$2(n).lastProp,i)||(inner$2(n).lastProp=i,r?updateProps$1(n,i,t):(n.stopAnimation(),n.attr(i)))}function propsEqual(t,r){if(isObject$2(t)&&isObject$2(r)){var n=!0;return each$4(r,function(i,a){n=n&&propsEqual(t[a],i)}),!!n}else return t===r}function updateLabelShowHide(t,r){t[r.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function updateMandatoryProps(t,r,n){var i=r.get("z"),a=r.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),a!=null&&(o.zlevel=a),o.silent=n)})}var BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(t){var r=t.get("type"),n=t.getModel(r+"Style"),i;return r==="line"?(i=n.getLineStyle(),i.fill=null):r==="shadow"&&(i=n.getAreaStyle(),i.stroke=null),i}function buildLabelElOption(t,r,n,i,a){var o=n.get("value"),s=getValueLabel(o,r.axis,r.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=normalizeCssArray(l.get("padding")||0),c=l.getFont(),d=getBoundingRect(s,c),v=a.position,$=d.width+u[1]+u[3],I=d.height+u[0]+u[2],O=a.align;O==="right"&&(v[0]-=$),O==="center"&&(v[0]-=$/2);var R=a.verticalAlign;R==="bottom"&&(v[1]-=I),R==="middle"&&(v[1]-=I/2),confineInContainer(v,$,I,i);var M=l.get("backgroundColor");(!M||M==="auto")&&(M=r.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:createTextStyle(l,{text:s,font:c,fill:l.getTextColor(),padding:u,backgroundColor:M}),z2:10}}function confineInContainer(t,r,n,i){var a=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+r,a)-r,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function getValueLabel(t,r,n,i,a){t=r.scale.parse(t);var o=r.scale.getLabel({value:t},{precision:a.precision}),s=a.formatter;if(s){var l={value:getAxisRawValue(r,{value:t}),axisDimension:r.dim,axisIndex:r.index,seriesData:[]};each$4(i,function(u){var c=n.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,v=c&&c.getDataParams(d);v&&l.seriesData.push(v)}),isString(s)?o=s.replace("{value}",o):isFunction(s)&&(o=s(l))}return o}function getTransformedPosition(t,r,n){var i=create();return rotate(i,i,n.rotation),translate(i,i,n.position),applyTransform([t.dataToCoord(r),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function buildCartesianSingleLabelElOption(t,r,n,i,a,o){var s=AxisBuilder$1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),buildLabelElOption(r,i,a,o,{position:getTransformedPosition(i.axis,t,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function makeLineShape(t,r,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:r[n],y2:r[1-n]}}function makeRectShape(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}}var CartesianAxisPointer=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function(n,i,a,o,s){var l=a.axis,u=l.grid,c=o.get("type"),d=getCartesian(u,l).getOtherAxis(l).getGlobalExtent(),v=l.toGlobalCoord(l.dataToCoord(i,!0));if(c&&c!=="none"){var $=buildElStyle(o),I=pointerShapeBuilder[c](l,v,d);I.style=$,n.graphicKey=I.type,n.pointer=I}var O=layout(u.model,a);buildCartesianSingleLabelElOption(i,n,O,a,o,s)},r.prototype.getHandleTransform=function(n,i,a){var o=layout(i.axis.grid.model,i,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var s=getTransformedPosition(i.axis,n,o);return{x:s[0],y:s[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},r.prototype.updateHandleTransform=function(n,i,a,o){var s=a.axis,l=s.grid,u=s.getGlobalExtent(!0),c=getCartesian(l,s).getOtherAxis(s).getGlobalExtent(),d=s.dim==="x"?0:1,v=[n.x,n.y];v[d]+=i[d],v[d]=Math.min(u[1],v[d]),v[d]=Math.max(u[0],v[d]);var $=(c[1]+c[0])/2,I=[$,$];I[d]=v[d];var O=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:n.rotation,cursorPoint:I,tooltipOption:O[d]}},r}(BaseAxisPointer$1);function getCartesian(t,r){var n={};return n[r.dim+"AxisIndex"]=r.index,t.getCartesian(n)}var pointerShapeBuilder={line:function(t,r,n){var i=makeLineShape([r,n[0]],[r,n[1]],getAxisDimIndex(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,r,n){var i=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:makeRectShape([r-i/2,n[0]],[i,a],getAxisDimIndex(t))}}};function getAxisDimIndex(t){return t.dim==="x"?0:1}var CartesianAxisPointer$1=CartesianAxisPointer,AxisPointerModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="axisPointer",r.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},r}(ComponentModel$1),AxisPointerModel$1=AxisPointerModel,inner$1=makeInner(),each$1=each$4;function register(t,r,n){if(!env$1.node){var i=r.getZr();inner$1(i).records||(inner$1(i).records={}),initGlobalListeners(i,r);var a=inner$1(i).records[t]||(inner$1(i).records[t]={});a.handler=n}}function initGlobalListeners(t,r){if(inner$1(t).initialized)return;inner$1(t).initialized=!0,n("click",curry$1(doEnter,"click")),n("mousemove",curry$1(doEnter,"mousemove")),n("globalout",onLeave);function n(i,a){t.on(i,function(o){var s=makeDispatchAction$1(r);each$1(inner$1(t).records,function(l){l&&a(l,o,s.dispatchAction)}),dispatchTooltipFinally(s.pendings,r)})}}function dispatchTooltipFinally(t,r){var n=t.showTip.length,i=t.hideTip.length,a;n?a=t.showTip[n-1]:i&&(a=t.hideTip[i-1]),a&&(a.dispatchAction=null,r.dispatchAction(a))}function onLeave(t,r,n){t.handler("leave",null,n)}function doEnter(t,r,n,i){r.handler(t,n,i)}function makeDispatchAction$1(t){var r={showTip:[],hideTip:[]},n=function(i){var a=r[i.type];a?a.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:r}}function unregister(t,r){if(!env$1.node){var n=r.getZr(),i=(inner$1(n).records||{})[t];i&&(inner$1(n).records[t]=null)}}var AxisPointerView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,i,a){var o=i.getComponent("tooltip"),s=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";register("axisPointer",a,function(l,u,c){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&c({type:"updateAxisPointer",currTrigger:l,x:u&&u.offsetX,y:u&&u.offsetY})})},r.prototype.remove=function(n,i){unregister("axisPointer",i)},r.prototype.dispose=function(n,i){unregister("axisPointer",i)},r.type="axisPointer",r}(ComponentView$1),AxisPointerView$1=AxisPointerView;function findPointFromSeries(t,r){var n=[],i=t.seriesIndex,a;if(i==null||!(a=r.getSeriesByIndex(i)))return{point:[]};var o=a.getData(),s=queryDataIndex(o,t);if(s==null||s<0||isArray(s))return{point:[]};var l=o.getItemGraphicEl(s),u=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),d=u.getOtherAxis(c),v=d.dim,$=c.dim,I=v==="x"||v==="radius"?1:0,O=o.mapDimension($),R=[];R[I]=o.get(O,s),R[1-I]=o.get(o.getCalculationInfo("stackResultDimension"),s),n=u.dataToPoint(R)||[]}else n=u.dataToPoint(o.getValues(map$1(u.dimensions,function(F){return o.mapDimension(F)}),s))||[];else if(l){var M=l.getBoundingRect().clone();M.applyTransform(l.transform),n=[M.x+M.width/2,M.y+M.height/2]}return{point:n,el:l}}var inner=makeInner();function axisTrigger(t,r,n){var i=t.currTrigger,a=[t.x,t.y],o=t,s=t.dispatchAction||bind$1(n.dispatchAction,n),l=r.getComponent("axisPointer").coordSysAxesInfo;if(!!l){illegalPoint(a)&&(a=findPointFromSeries({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},r).point);var u=illegalPoint(a),c=o.axesInfo,d=l.axesInfo,v=i==="leave"||illegalPoint(a),$={},I={},O={list:[],map:{}},R={showPointer:curry$1(showPointer,I),showTooltip:curry$1(showTooltip,O)};each$4(l.coordSysMap,function(F,V){var G=u||F.containPoint(a);each$4(l.coordSysAxesInfo[V],function(Y,X){var q=Y.axis,Z=findInputAxisInfo(c,Y);if(!v&&G&&(!c||Z)){var Q=Z&&Z.value;Q==null&&!u&&(Q=q.pointToData(a)),Q!=null&&processOnAxis(Y,Q,R,!1,$)}})});var M={};return each$4(d,function(F,V){var G=F.linkGroup;G&&!I[V]&&each$4(G.axesInfo,function(Y,X){var q=I[X];if(Y!==F&&q){var Z=q.value;G.mapper&&(Z=F.axis.scale.parse(G.mapper(Z,makeMapperParam(Y),makeMapperParam(F)))),M[F.key]=Z}})}),each$4(M,function(F,V){processOnAxis(d[V],F,R,!0,$)}),updateModelActually(I,d,$),dispatchTooltipActually(O,a,t,s),dispatchHighDownActually(d,s,n),$}}function processOnAxis(t,r,n,i,a){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(r))){if(!t.involveSeries){n.showPointer(t,r);return}var s=buildPayloadsBySeries(r,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&a.seriesIndex==null&&extend(a,l[0]),!i&&t.snap&&o.containData(u)&&u!=null&&(r=u),n.showPointer(t,r,l),n.showTooltip(t,s,u)}}function buildPayloadsBySeries(t,r){var n=r.axis,i=n.dim,a=t,o=[],s=Number.MAX_VALUE,l=-1;return each$4(r.seriesModels,function(u,c){var d=u.getData().mapDimensionsAll(i),v,$;if(u.getAxisTooltipData){var I=u.getAxisTooltipData(d,t,n);$=I.dataIndices,v=I.nestestValue}else{if($=u.getData().indicesOfNearest(d[0],t,n.type==="category"?.5:null),!$.length)return;v=u.getData().get(d[0],$[0])}if(!(v==null||!isFinite(v))){var O=t-v,R=Math.abs(O);R<=s&&((R<s||O>=0&&l<0)&&(s=R,l=O,a=v,o.length=0),each$4($,function(M){o.push({seriesIndex:u.seriesIndex,dataIndexInside:M,dataIndex:u.getData().getRawIndex(M)})}))}}),{payloadBatch:o,snapToValue:a}}function showPointer(t,r,n,i){t[r.key]={value:n,payloadBatch:i}}function showTooltip(t,r,n,i){var a=n.payloadBatch,o=r.axis,s=o.model,l=r.axisPointerModel;if(!(!r.triggerTooltip||!a.length)){var u=r.coordSys.model,c=makeKey(u),d=t.map[c];d||(d=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function updateModelActually(t,r,n){var i=n.axesInfo=[];each$4(r,function(a,o){var s=a.axisPointerModel.option,l=t[o];l?(!a.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!a.useHandle&&(s.status="hide"),s.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:s.value})})}function dispatchTooltipActually(t,r,n,i){if(illegalPoint(r)||!t.list.length){i({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:r[0],y:r[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function dispatchHighDownActually(t,r,n){var i=n.getZr(),a="axisPointerLastHighlights",o=inner(i)[a]||{},s=inner(i)[a]={};each$4(t,function(c,d){var v=c.axisPointerModel.option;v.status==="show"&&c.triggerEmphasis&&each$4(v.seriesDataIndices,function($){var I=$.seriesIndex+" | "+$.dataIndex;s[I]=$})});var l=[],u=[];each$4(o,function(c,d){!s[d]&&u.push(c)}),each$4(s,function(c,d){!o[d]&&l.push(c)}),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function findInputAxisInfo(t,r){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(r.axis.dim===i.axisDim&&r.axis.model.componentIndex===i.axisIndex)return i}}function makeMapperParam(t){var r=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=r.componentIndex,n.axisName=n[i+"AxisName"]=r.name,n.axisId=n[i+"AxisId"]=r.id,n}function illegalPoint(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function install$7(t){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),t.registerComponentModel(AxisPointerModel$1),t.registerComponentView(AxisPointerView$1),t.registerPreprocessor(function(r){if(r){(!r.axisPointer||r.axisPointer.length===0)&&(r.axisPointer={});var n=r.axisPointer.link;n&&!isArray(n)&&(r.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(r,n){r.getComponent("axisPointer").coordSysAxesInfo=collect(r,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$6(t){use(install$8),use(install$7)}function makeBackground(t,r){var n=normalizeCssArray(r.get("padding")),i=r.getItemStyle(["color","opacity"]);return i.fill=r.get("backgroundColor"),t=new Rect$1({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:r.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var TooltipModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="tooltip",r.dependencies=["axisPointer"],r.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},r}(ComponentModel$1),TooltipModel$1=TooltipModel;function shouldTooltipConfine(t){var r=t.get("confine");return r!=null?!!r:t.get("renderMode")==="richText"}function testStyle(t){if(!!env$1.domSupported){for(var r=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in r)return t[n]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix(t,r){if(!t)return r;r=toCamelCase(r,!0);var n=t.indexOf(r);return t=n===-1?r:"-"+t.slice(0,n)+"-"+r,t.toLowerCase()}function getComputedStyle$2(t,r){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?r?n[r]:n: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(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function assembleArrow(t,r,n){if(!isString(n)||n==="inside")return"";var i=t.get("backgroundColor"),a=t.get("borderWidth");r=convertToColorString(r);var o=mirrorPos(n),s=Math.max(Math.round(a)*1.5,6),l="",u=CSS_TRANSFORM_VENDOR+":",c;indexOf(["left","right"],o)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var d=c*Math.PI/180,v=s+a,$=v*Math.abs(Math.cos(d))+v*Math.abs(Math.sin(d)),I=Math.round((($-Math.SQRT2*a)/2+Math.SQRT2*a-($-v)/2)*100)/100;l+=";"+o+":-"+I+"px";var O=r+" solid "+a+"px;",R=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+O,"border-right:"+O,"background-color:"+i+";"];return'<div style="'+R.join("")+'"></div>'}function assembleTransition(t,r){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i;return r||(i=" "+t+"s "+n,a+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+i:",left"+i+",top"+i),CSS_TRANSITION_VENDOR+":"+a}function assembleTransform(t,r,n){var i=t.toFixed(0)+"px",a=r.toFixed(0)+"px";if(!env$1.transformSupported)return n?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var o=env$1.transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+a+(o?",0":"")+")";return n?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+s+";":[["top",0],["left",0],[TRANSFORM_VENDOR,s]]}function assembleFont(t){var r=[],n=t.get("fontSize"),i=t.getTextColor();i&&r.push("color:"+i),r.push("font:"+t.getFont()),n&&r.push("line-height:"+Math.round(n*3/2)+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&r.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),each$4(["decoration","align"],function(u){var c=t.get(u);c&&r.push("text-"+u+":"+c)}),r.join(";")}function assembleCssText(t,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),v=getPaddingFromTooltipModel(t,"html"),$=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+$),r&&a&&i.push(assembleTransition(a,n)),o&&i.push("background-color:"+o),each$4(["width","color","radius"],function(I){var O="border-"+I,R=toCamelCase(O),M=t.get(R);M!=null&&i.push(O+":"+M+(I==="color"?"":"px"))}),i.push(assembleFont(d)),v!=null&&i.push("padding:"+normalizeCssArray(v).join("px ")+"px"),i.join(";")+";"}function makeStyleCoord$1(t,r,n,i,a){var o=r&&r.painter;if(n){var s=o&&o.getViewportRoot();s&&transformLocalCoord(t,s,n,i,a)}else{t[0]=i,t[1]=a;var l=o&&o.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipHTMLContent=function(){function t(r,n){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 i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=n.appendTo,s=o&&(isString(o)?document.querySelector(o):isDom(o)?o:isFunction(o)&&o(r.getDom()));makeStyleCoord$1(this._styleCoord,a,s,r.getWidth()/2,r.getHeight()/2),(s||r.getDom()).appendChild(i),this._api=r,this._container=s;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!l._enterable){var c=a.handler,d=a.painter.getViewportRoot();normalizeEvent(d,u,!0),c.dispatch("mousemove",u)}},i.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(r){if(!this._container){var n=this._api.getDom(),i=getComputedStyle$2(n,"position"),a=n.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var o=r.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=r.get("className")||""},t.prototype.show=function(r,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,o=this._styleCoord;i.innerHTML?a.cssText=gCssText+assembleCssText(r,!this._firstShow,this._longHide)+assembleTransform(o[0],o[1],!0)+("border-color:"+convertToColorString(n)+";")+(r.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(r,n,i,a,o){var s=this.el;if(r==null){s.innerHTML="";return}var l="";if(isString(o)&&i.get("trigger")==="item"&&!shouldTooltipConfine(i)&&(l=assembleArrow(i,a,o)),isString(r))s.innerHTML=r+l;else if(r){s.innerHTML="",isArray(r)||(r=[r]);for(var u=0;u<r.length;u++)isDom(r[u])&&r[u].parentNode!==s&&s.appendChild(r[u]);if(l&&s.childNodes.length){var c=document.createElement("div");c.innerHTML=l,s.appendChild(c)}}},t.prototype.setEnterable=function(r){this._enterable=r},t.prototype.getSize=function(){var r=this.el;return[r.offsetWidth,r.offsetHeight]},t.prototype.moveTo=function(r,n){var i=this._styleCoord;if(makeStyleCoord$1(i,this._zr,this._container,r,n),i[0]!=null&&i[1]!=null){var a=this.el.style,o=assembleTransform(i[0],i[1]);each$4(o,function(s){a[s[0]]=s[1]})}},t.prototype._moveIfResized=function(){var r=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(r*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var r=this,n=this.el.style;n.visibility="hidden",n.opacity="0",env$1.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return r._longHide=!0},500)},t.prototype.hideLater=function(r){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(r?(this._hideDelay=r,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),r)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el.parentNode;r&&r.removeChild(this.el),this.el=this._container=null},t}(),TooltipHTMLContent$1=TooltipHTMLContent,TooltipRichContent=function(){function t(r){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=r.getZr(),makeStyleCoord(this._styleCoord,this._zr,r.getWidth()/2,r.getHeight()/2)}return t.prototype.update=function(r){var n=r.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(r,n,i,a,o){var s=this;isObject$2(r)&&throwError(""),this.el&&this._zr.remove(this.el);var l=i.getModel("textStyle");this.el=new ZRText$1({style:{rich:n.richTextStyles,text:r,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:l.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),each$4(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){s.el.style[c]=i.get(c)}),each$4(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){s.el.style[c]=l.get(c)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(r){this._enterable=r},t.prototype.getSize=function(){var r=this.el,n=this.el.getBoundingRect(),i=calcShadowOuterSize(r.style);return[n.width+i.left+i.right,n.height+i.top+i.bottom]},t.prototype.moveTo=function(r,n){var i=this.el;if(i){var a=this._styleCoord;makeStyleCoord(a,this._zr,r,n),r=a[0],n=a[1];var o=i.style,s=mathMaxWith0(o.borderWidth||0),l=calcShadowOuterSize(o);i.x=r+s+l.left,i.y=n+s+l.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var r=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(r*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(r){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(r?(this._hideDelay=r,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),r)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function mathMaxWith0(t){return Math.max(0,t)}function calcShadowOuterSize(t){var r=mathMaxWith0(t.shadowBlur||0),n=mathMaxWith0(t.shadowOffsetX||0),i=mathMaxWith0(t.shadowOffsetY||0);return{left:mathMaxWith0(r-n),right:mathMaxWith0(r+n),top:mathMaxWith0(r-i),bottom:mathMaxWith0(r+i)}}function makeStyleCoord(t,r,n,i){t[0]=n,t[1]=i,t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipRichContent$1=TooltipRichContent,proxyRect=new Rect$1({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,i){if(!(env$1.node||!i.getDom())){var a=n.getComponent("tooltip"),o=this._renderMode=getTooltipRenderMode(a.get("renderMode"));this._tooltipContent=o==="richText"?new TooltipRichContent$1(i):new TooltipHTMLContent$1(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},r.prototype.render=function(n,i,a){if(!(env$1.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=i,this._api=a;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear(this,"_updatePosition")}},r.prototype._initGlobalListener=function(){var n=this._tooltipModel,i=n.get("triggerOn");register("itemTooltip",this._api,bind$1(function(a,o,s){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(o,s):a==="leave"&&this._hide(s))},this))},r.prototype._keepShow=function(){var n=this._tooltipModel,i=this._ecModel,a=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&s.manuallyShowTip(n,i,a,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},r.prototype.manuallyShowTip=function(n,i,a,o){if(!(o.from===this.uid||env$1.node||!a.getDom())){var s=makeDispatchAction(o,a);this._ticket="";var l=o.dataByCoordSys,u=findComponentReference(o,i,a);if(u){var c=u.el.getBoundingRect().clone();c.applyTransform(u.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:u.el,position:o.position,positionDefault:"bottom"},s)}else if(o.tooltip&&o.x!=null&&o.y!=null){var d=proxyRect;d.x=o.x,d.y=o.y,d.update(),getECData(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},s)}else if(l)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:l,tooltipOption:o.tooltipOption},s);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,i,a,o))return;var v=findPointFromSeries(o,i),$=v.point[0],I=v.point[1];$!=null&&I!=null&&this._tryShow({offsetX:$,offsetY:I,target:v.el,position:o.position,positionDefault:"bottom"},s)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},s))}},r.prototype.manuallyHideTip=function(n,i,a,o){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(makeDispatchAction(o,a))},r.prototype._manuallyAxisShowTip=function(n,i,a,o){var s=o.seriesIndex,l=o.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||u==null)){var c=i.getSeriesByIndex(s);if(!!c){var d=c.getData(),v=buildTooltipModel([d.getItemModel(l),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:o.position}),!0}}},r.prototype._tryShow=function(n,i){var a=n.target,o=this._tooltipModel;if(!!o){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(a){var l=getECData(a);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,c;findEventDispatcher(a,function(d){if(getECData(d).dataIndex!=null)return u=d,!0;if(getECData(d).tooltipConfig!=null)return c=d,!0},!0),u?this._showSeriesItemTooltip(n,u,i):c?this._showComponentItemTooltip(n,c,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},r.prototype._showOrMove=function(n,i){var a=n.get("showDelay");i=bind$1(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},r.prototype._showAxisTooltip=function(n,i){var a=this._ecModel,o=this._tooltipModel,s=[i.offsetX,i.offsetY],l=buildTooltipModel([i.tooltipOption],o),u=this._renderMode,c=[],d=createTooltipMarkup("section",{blocks:[],noHeader:!0}),v=[],$=new TooltipMarkupStyleCreator;each$4(n,function(V){each$4(V.dataByAxis,function(G){var Y=a.getComponent(G.axisDim+"Axis",G.axisIndex),X=G.value;if(!(!Y||X==null)){var q=getValueLabel(X,Y.axis,a,G.seriesDataIndices,G.valueLabelOpt),Z=createTooltipMarkup("section",{header:q,noHeader:!trim(q),sortBlocks:!0,blocks:[]});d.blocks.push(Z),each$4(G.seriesDataIndices,function(Q){var ie=a.getSeriesByIndex(Q.seriesIndex),J=Q.dataIndexInside,re=ie.getDataParams(J);if(!(re.dataIndex<0)){re.axisDim=G.axisDim,re.axisIndex=G.axisIndex,re.axisType=G.axisType,re.axisId=G.axisId,re.axisValue=getAxisRawValue(Y.axis,{value:X}),re.axisValueLabel=q,re.marker=$.makeTooltipMarker("item",convertToColorString(re.color),u);var te=normalizeTooltipFormatResult(ie.formatTooltip(J,!0,null)),oe=te.frag;if(oe){var le=buildTooltipModel([ie],o).get("valueFormatter");Z.blocks.push(le?extend({valueFormatter:le},oe):oe)}te.text&&v.push(te.text),c.push(re)}})}})}),d.blocks.reverse(),v.reverse();var I=i.position,O=l.get("order"),R=buildTooltipMarkup(d,$,u,O,a.get("useUTC"),l.get("textStyle"));R&&v.unshift(R);var M=u==="richText"?`
143
-
144
- `:"<br/>",F=v.join(M);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(l,I,s[0],s[1],this._tooltipContent,c):this._showTooltipContent(l,F,c,Math.random()+"",s[0],s[1],I,null,$)})},r.prototype._showSeriesItemTooltip=function(n,i,a){var o=this._ecModel,s=getECData(i),l=s.seriesIndex,u=o.getSeriesByIndex(l),c=s.dataModel||u,d=s.dataIndex,v=s.dataType,$=c.getData(v),I=this._renderMode,O=n.positionDefault,R=buildTooltipModel([$.getItemModel(d),c,u&&(u.coordinateSystem||{}).model],this._tooltipModel,O?{position:O}:null),M=R.get("trigger");if(!(M!=null&&M!=="item")){var F=c.getDataParams(d,v),V=new TooltipMarkupStyleCreator;F.marker=V.makeTooltipMarker("item",convertToColorString(F.color),I);var G=normalizeTooltipFormatResult(c.formatTooltip(d,!1,v)),Y=R.get("order"),X=R.get("valueFormatter"),q=G.frag,Z=q?buildTooltipMarkup(X?extend({valueFormatter:X},q):q,V,I,Y,o.get("useUTC"),R.get("textStyle")):G.text,Q="item_"+c.name+"_"+d;this._showOrMove(R,function(){this._showTooltipContent(R,Z,F,Q,n.offsetX,n.offsetY,n.position,n.target,V)}),a({type:"showTip",dataIndexInside:d,dataIndex:$.getRawIndex(d),seriesIndex:l,from:this.uid})}},r.prototype._showComponentItemTooltip=function(n,i,a){var o=getECData(i),s=o.tooltipConfig,l=s.option||{};if(isString(l)){var u=l;l={content:u,formatter:u}}var c=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&c.push(d),c.push({formatter:l.content});var v=n.positionDefault,$=buildTooltipModel(c,this._tooltipModel,v?{position:v}:null),I=$.get("content"),O=Math.random()+"",R=new TooltipMarkupStyleCreator;this._showOrMove($,function(){var M=clone$2($.get("formatterParams")||{});this._showTooltipContent($,I,M,O,n.offsetX,n.offsetY,n.position,i,R)}),a({type:"showTip",from:this.uid})},r.prototype._showTooltipContent=function(n,i,a,o,s,l,u,c,d){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var v=this._tooltipContent;v.setEnterable(n.get("enterable"));var $=n.get("formatter");u=u||n.get("position");var I=i,O=this._getNearestPoint([s,l],a,n.get("trigger"),n.get("borderColor")),R=O.color;if($)if(isString($)){var M=n.ecModel.get("useUTC"),F=isArray(a)?a[0]:a,V=F&&F.axisType&&F.axisType.indexOf("time")>=0;I=$,V&&(I=format(F.axisValue,I,M)),I=formatTpl(I,a,!0)}else if(isFunction($)){var G=bind$1(function(Y,X){Y===this._ticket&&(v.setContent(X,d,n,R,u),this._updatePosition(n,u,s,l,v,a,c))},this);this._ticket=o,I=$(a,o,G)}else I=$;v.setContent(I,d,n,R,u),v.show(n,R),this._updatePosition(n,u,s,l,v,a,c)}},r.prototype._getNearestPoint=function(n,i,a,o){if(a==="axis"||isArray(i))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!isArray(i))return{color:o||i.color||i.borderColor}},r.prototype._updatePosition=function(n,i,a,o,s,l,u){var c=this._api.getWidth(),d=this._api.getHeight();i=i||n.get("position");var v=s.getSize(),$=n.get("align"),I=n.get("verticalAlign"),O=u&&u.getBoundingRect().clone();if(u&&O.applyTransform(u.transform),isFunction(i)&&(i=i([a,o],l,s.el,O,{viewSize:[c,d],contentSize:v.slice()})),isArray(i))a=parsePercent(i[0],c),o=parsePercent(i[1],d);else if(isObject$2(i)){var R=i;R.width=v[0],R.height=v[1];var M=getLayoutRect(R,{width:c,height:d});a=M.x,o=M.y,$=null,I=null}else if(isString(i)&&u){var F=calcTooltipPosition(i,O,v,n.get("borderWidth"));a=F[0],o=F[1]}else{var F=refixTooltipPosition(a,o,s,c,d,$?null:20,I?null:20);a=F[0],o=F[1]}if($&&(a-=isCenterAlign($)?v[0]/2:$==="right"?v[0]:0),I&&(o-=isCenterAlign(I)?v[1]/2:I==="bottom"?v[1]:0),shouldTooltipConfine(n)){var F=confineTooltipPosition(a,o,s,c,d);a=F[0],o=F[1]}s.moveTo(a,o)},r.prototype._updateContentNotChangedOnAxis=function(n,i){var a=this._lastDataByCoordSys,o=this._cbParamsList,s=!!a&&a.length===n.length;return s&&each$4(a,function(l,u){var c=l.dataByAxis||[],d=n[u]||{},v=d.dataByAxis||[];s=s&&c.length===v.length,s&&each$4(c,function($,I){var O=v[I]||{},R=$.seriesDataIndices||[],M=O.seriesDataIndices||[];s=s&&$.value===O.value&&$.axisType===O.axisType&&$.axisId===O.axisId&&R.length===M.length,s&&each$4(R,function(F,V){var G=M[V];s=s&&F.seriesIndex===G.seriesIndex&&F.dataIndex===G.dataIndex}),o&&each$4($.seriesDataIndices,function(F){var V=F.seriesIndex,G=i[V],Y=o[V];G&&Y&&Y.data!==G.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=i,!!s},r.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},r.prototype.dispose=function(n,i){env$1.node||!i.getDom()||(clear(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",i))},r.type="tooltip",r}(ComponentView$1);function buildTooltipModel(t,r,n){var i=r.ecModel,a;n?(a=new Model$1(n,i,i),a=new Model$1(r.option,a,i)):a=r;for(var o=t.length-1;o>=0;o--){var s=t[o];s&&(s instanceof Model$1&&(s=s.get("tooltip",!0)),isString(s)&&(s={formatter:s}),s&&(a=new Model$1(s,a,i)))}return a}function makeDispatchAction(t,r){return t.dispatchAction||bind$1(r.dispatchAction,r)}function refixTooltipPosition(t,r,n,i,a,o,s){var l=n.getSize(),u=l[0],c=l[1];return o!=null&&(t+u+o+2>i?t-=u+o:t+=o),s!=null&&(r+c+s>a?r-=c+s:r+=s),[t,r]}function confineTooltipPosition(t,r,n,i,a){var o=n.getSize(),s=o[0],l=o[1];return t=Math.min(t+s,i)-s,r=Math.min(r+l,a)-l,t=Math.max(t,0),r=Math.max(r,0),[t,r]}function calcTooltipPosition(t,r,n,i){var a=n[0],o=n[1],s=Math.ceil(Math.SQRT2*i)+8,l=0,u=0,c=r.width,d=r.height;switch(t){case"inside":l=r.x+c/2-a/2,u=r.y+d/2-o/2;break;case"top":l=r.x+c/2-a/2,u=r.y-o-s;break;case"bottom":l=r.x+c/2-a/2,u=r.y+d+s;break;case"left":l=r.x-a-s,u=r.y+d/2-o/2;break;case"right":l=r.x+c+s,u=r.y+d/2-o/2}return[l,u]}function isCenterAlign(t){return t==="center"||t==="middle"}function findComponentReference(t,r,n){var i=preParseFinder(t).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var o=queryReferringComponents(r,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),s=o.models[0];if(!!s){var l=n.getViewOfComponentModel(s),u;if(l.group.traverse(function(c){var d=getECData(c).tooltipConfig;if(d&&d.name===t.name)return u=c,!0}),u)return{componentMainType:a,componentIndex:s.componentIndex,el:u}}}}var TooltipView$1=TooltipView;function install$5(t){use(install$7),t.registerComponentModel(TooltipModel$1),t.registerComponentView(TooltipView$1),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var TitleModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.layoutMode={type:"box",ignoreSize:!0},n}return r.type="title",r.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"}},r}(ComponentModel$1),TitleView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,i,a){if(this.group.removeAll(),!!n.get("show")){var o=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),u=n.get("textAlign"),c=retrieve2(n.get("textBaseline"),n.get("textVerticalAlign")),d=new ZRText$1({style:createTextStyle(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),v=d.getBoundingRect(),$=n.get("subtext"),I=new ZRText$1({style:createTextStyle(l,{text:$,fill:l.getTextColor(),y:v.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),O=n.get("link"),R=n.get("sublink"),M=n.get("triggerEvent",!0);d.silent=!O&&!M,I.silent=!R&&!M,O&&d.on("click",function(){windowOpen(O,"_"+n.get("target"))}),R&&I.on("click",function(){windowOpen(R,"_"+n.get("subtarget"))}),getECData(d).eventData=getECData(I).eventData=M?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(d),$&&o.add(I);var F=o.getBoundingRect(),V=n.getBoxLayoutParams();V.width=F.width,V.height=F.height;var G=getLayoutRect(V,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));u||(u=n.get("left")||n.get("right"),u==="middle"&&(u="center"),u==="right"?G.x+=G.width:u==="center"&&(G.x+=G.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?G.y+=G.height:c==="middle"&&(G.y+=G.height/2),c=c||"top"),o.x=G.x,o.y=G.y,o.markRedraw();var Y={align:u,verticalAlign:c};d.setStyle(Y),I.setStyle(Y),F=o.getBoundingRect();var X=G.margin,q=n.getItemStyle(["color","opacity"]);q.fill=n.get("backgroundColor");var Z=new Rect$1({shape:{x:F.x-X[3],y:F.y-X[0],width:F.width+X[1]+X[3],height:F.height+X[0]+X[2],r:n.get("borderRadius")},style:q,subPixelOptimize:!0,silent:!0});o.add(Z)}},r.type="title",r}(ComponentView$1);function install$4(t){t.registerComponentModel(TitleModel),t.registerComponentView(TitleView)}var getDefaultSelectorOptions=function(t,r){if(r==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(r==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.layoutMode={type:"box",ignoreSize:!0},n}return r.prototype.init=function(n,i,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},r.prototype.mergeOption=function(n,i){t.prototype.mergeOption.call(this,n,i),this._updateSelector(n)},r.prototype._updateSelector=function(n){var i=n.selector,a=this.ecModel;i===!0&&(i=n.selector=["all","inverse"]),isArray(i)&&each$4(i,function(o,s){isString(o)&&(o={type:o}),i[s]=merge(o,getDefaultSelectorOptions(a,o.type))})},r.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<n.length;a++){var o=n[a].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(n[0].get("name"))}},r.prototype._updateData=function(n){var i=[],a=[];n.eachRawSeries(function(u){var c=u.name;a.push(c);var d;if(u.legendVisualProvider){var v=u.legendVisualProvider,$=v.getAllNames();n.isSeriesFiltered(u)||(a=a.concat($)),$.length?i=i.concat($):d=!0}else d=!0;d&&isNameSpecified(u)&&i.push(u.name)}),this._availableNames=a;var o=this.get("data")||i,s=createHashMap(),l=map$1(o,function(u){return(isString(u)||isNumber(u))&&(u={name:u}),s.get(u.name)?null:(s.set(u.name,!0),new Model$1(u,this,this.ecModel))},this);this._data=filter(l,function(u){return!!u})},r.prototype.getData=function(){return this._data},r.prototype.select=function(n){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var o=this._data;each$4(o,function(s){i[s.get("name")]=!1})}i[n]=!0},r.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},r.prototype.toggleSelected=function(n){var i=this.option.selected;i.hasOwnProperty(n)||(i[n]=!0),this[i[n]?"unSelect":"select"](n)},r.prototype.allSelect=function(){var n=this._data,i=this.option.selected;each$4(n,function(a){i[a.get("name",!0)]=!0})},r.prototype.inverseSelect=function(){var n=this._data,i=this.option.selected;each$4(n,function(a){var o=a.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},r.prototype.isSelected=function(n){var i=this.option.selected;return!(i.hasOwnProperty(n)&&!i[n])&&indexOf(this._availableNames,n)>=0},r.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},r.type="legend.plain",r.dependencies=["series"],r.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},r}(ComponentModel$1),LegendModel$1=LegendModel,curry=curry$1,each=each$4,Group$1=Group$3,LegendView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.newlineDisabled=!1,n}return r.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},r.prototype.getContentGroup=function(){return this._contentGroup},r.prototype.getSelectorGroup=function(){return this._selectorGroup},r.prototype.render=function(n,i,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var u=n.get("selector",!0),c=n.get("selectorPosition",!0);u&&(!c||c==="auto")&&(c=l==="horizontal"?"end":"start"),this.renderInner(s,n,i,a,u,l,c);var d=n.getBoxLayoutParams(),v={width:a.getWidth(),height:a.getHeight()},$=n.get("padding"),I=getLayoutRect(d,v,$),O=this.layoutInner(n,s,I,o,u,c),R=getLayoutRect(defaults({width:O.width,height:O.height},d),v,$);this.group.x=R.x-O.x,this.group.y=R.y-O.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(O,n))}},r.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},r.prototype.renderInner=function(n,i,a,o,s,l,u){var c=this.getContentGroup(),d=createHashMap(),v=i.get("selectedMode"),$=[];a.eachRawSeries(function(I){!I.get("legendHoverLink")&&$.push(I.id)}),each(i.getData(),function(I,O){var R=I.get("name");if(!this.newlineDisabled&&(R===""||R===`
145
- `)){var M=new Group$1;M.newline=!0,c.add(M);return}var F=a.getSeriesByName(R)[0];if(!d.get(R))if(F){var V=F.getData(),G=V.getVisual("legendLineStyle")||{},Y=V.getVisual("legendIcon"),X=V.getVisual("style"),q=this._createItem(F,R,O,I,i,n,G,X,Y,v,o);q.on("click",curry(dispatchSelectAction,R,null,o,$)).on("mouseover",curry(dispatchHighlightAction,F.name,null,o,$)).on("mouseout",curry(dispatchDownplayAction,F.name,null,o,$)),a.ssr&&q.eachChild(function(Z){var Q=getECData(Z);Q.seriesIndex=F.seriesIndex,Q.dataIndex=O,Q.ssrType="legend"}),d.set(R,!0)}else a.eachRawSeries(function(Z){if(!d.get(R)&&Z.legendVisualProvider){var Q=Z.legendVisualProvider;if(!Q.containName(R))return;var ie=Q.indexOfName(R),J=Q.getItemVisual(ie,"style"),re=Q.getItemVisual(ie,"legendIcon"),te=parse(J.fill);te&&te[3]===0&&(te[3]=.2,J=extend(extend({},J),{fill:stringify(te,"rgba")}));var oe=this._createItem(Z,R,O,I,i,n,{},J,re,v,o);oe.on("click",curry(dispatchSelectAction,null,R,o,$)).on("mouseover",curry(dispatchHighlightAction,null,R,o,$)).on("mouseout",curry(dispatchDownplayAction,null,R,o,$)),a.ssr&&oe.eachChild(function(le){var fe=getECData(le);fe.seriesIndex=Z.seriesIndex,fe.dataIndex=O,fe.ssrType="legend"}),d.set(R,!0)}},this)},this),s&&this._createSelector(s,i,o,l,u)},r.prototype._createSelector=function(n,i,a,o,s){var l=this.getSelectorGroup();each(n,function(c){var d=c.type,v=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect"})}});l.add(v);var $=i.getModel("selectorLabel"),I=i.getModel(["emphasis","selectorLabel"]);setLabelStyle(v,{normal:$,emphasis:I},{defaultText:c.title}),enableHoverEmphasis(v)})},r.prototype._createItem=function(n,i,a,o,s,l,u,c,d,v,$){var I=n.visualDrawType,O=s.get("itemWidth"),R=s.get("itemHeight"),M=s.isSelected(i),F=o.get("symbolRotate"),V=o.get("symbolKeepAspect"),G=o.get("icon");d=G||d||"roundRect";var Y=getLegendStyle(d,o,u,c,I,M,$),X=new Group$1,q=o.getModel("textStyle");if(isFunction(n.getLegendIcon)&&(!G||G==="inherit"))X.add(n.getLegendIcon({itemWidth:O,itemHeight:R,icon:d,iconRotate:F,itemStyle:Y.itemStyle,lineStyle:Y.lineStyle,symbolKeepAspect:V}));else{var Z=G==="inherit"&&n.getData().getVisual("symbol")?F==="inherit"?n.getData().getVisual("symbolRotate"):F:0;X.add(getDefaultLegendIcon({itemWidth:O,itemHeight:R,icon:d,iconRotate:Z,itemStyle:Y.itemStyle,lineStyle:Y.lineStyle,symbolKeepAspect:V}))}var Q=l==="left"?O+5:-5,ie=l,J=s.get("formatter"),re=i;isString(J)&&J?re=J.replace("{name}",i!=null?i:""):isFunction(J)&&(re=J(i));var te=M?q.getTextColor():o.get("inactiveColor");X.add(new ZRText$1({style:createTextStyle(q,{text:re,x:Q,y:R/2,fill:te,align:ie,verticalAlign:"middle"},{inheritColor:te})}));var oe=new Rect$1({shape:X.getBoundingRect(),style:{fill:"transparent"}}),le=o.getModel("tooltip");return le.get("show")&&setTooltipConfig({el:oe,componentModel:s,itemName:i,itemTooltipOption:le.option}),X.add(oe),X.eachChild(function(fe){fe.silent=!0}),oe.silent=!v,this.getContentGroup().add(X),enableHoverEmphasis(X),X.__legendDataIndex=a,X},r.prototype.layoutInner=function(n,i,a,o,s,l){var u=this.getContentGroup(),c=this.getSelectorGroup();box(n.get("orient"),u,n.get("itemGap"),a.width,a.height);var d=u.getBoundingRect(),v=[-d.x,-d.y];if(c.markRedraw(),u.markRedraw(),s){box("horizontal",c,n.get("selectorItemGap",!0));var $=c.getBoundingRect(),I=[-$.x,-$.y],O=n.get("selectorButtonGap",!0),R=n.getOrient().index,M=R===0?"width":"height",F=R===0?"height":"width",V=R===0?"y":"x";l==="end"?I[R]+=d[M]+O:v[R]+=$[M]+O,I[1-R]+=d[F]/2-$[F]/2,c.x=I[0],c.y=I[1],u.x=v[0],u.y=v[1];var G={x:0,y:0};return G[M]=d[M]+O+$[M],G[F]=Math.max(d[F],$[F]),G[V]=Math.min(0,$[V]+I[1-R]),G}else return u.x=v[0],u.y=v[1],this.group.getBoundingRect()},r.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},r.type="legend.plain",r}(ComponentView$1);function getLegendStyle(t,r,n,i,a,o,s){function l(M,F){M.lineWidth==="auto"&&(M.lineWidth=F.lineWidth>0?2:0),each(M,function(V,G){M[G]==="inherit"&&(M[G]=F[G])})}var u=r.getModel("itemStyle"),c=u.getItemStyle(),d=t.lastIndexOf("empty",0)===0?"fill":"stroke",v=u.getShallow("decal");c.decal=!v||v==="inherit"?i.decal:createOrUpdatePatternFromDecal(v,s),c.fill==="inherit"&&(c.fill=i[a]),c.stroke==="inherit"&&(c.stroke=i[d]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?i:n).opacity),l(c,i);var $=r.getModel("lineStyle"),I=$.getLineStyle();if(l(I,n),c.fill==="auto"&&(c.fill=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),I.stroke==="auto"&&(I.stroke=i.fill),!o){var O=r.get("inactiveBorderWidth"),R=c[d];c.lineWidth=O==="auto"?i.lineWidth>0&&R?2:0:c.lineWidth,c.fill=r.get("inactiveColor"),c.stroke=r.get("inactiveBorderColor"),I.stroke=$.get("inactiveColor"),I.lineWidth=$.get("inactiveWidth")}return{itemStyle:c,lineStyle:I}}function getDefaultLegendIcon(t){var r=t.icon||"roundRect",n=createSymbol(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function dispatchSelectAction(t,r,n,i){dispatchDownplayAction(t,r,n,i),n.dispatchAction({type:"legendToggleSelect",name:t!=null?t:r}),dispatchHighlightAction(t,r,n,i)}function isUseHoverLayer(t){for(var r=t.getZr().storage.getDisplayList(),n,i=0,a=r.length;i<a&&!(n=r[i].states.emphasis);)i++;return n&&n.hoverLayer}function dispatchHighlightAction(t,r,n,i){isUseHoverLayer(n)||n.dispatchAction({type:"highlight",seriesName:t,name:r,excludeSeriesId:i})}function dispatchDownplayAction(t,r,n,i){isUseHoverLayer(n)||n.dispatchAction({type:"downplay",seriesName:t,name:r,excludeSeriesId:i})}var LegendView$1=LegendView;function legendFilter(t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.filterSeries(function(n){for(var i=0;i<r.length;i++)if(!r[i].isSelected(n.name))return!1;return!0})}function legendSelectActionHandler(t,r,n){var i={},a=t==="toggleSelected",o;return n.eachComponent("legend",function(s){a&&o!=null?s[o?"select":"unSelect"](r.name):t==="allSelect"||t==="inverseSelect"?s[t]():(s[t](r.name),o=s.isSelected(r.name));var l=s.getData();each$4(l,function(u){var c=u.get("name");if(!(c===`
146
- `||c==="")){var d=s.isSelected(c);i.hasOwnProperty(c)?i[c]=i[c]&&d:i[c]=d}})}),t==="allSelect"||t==="inverseSelect"?{selected:i}:{name:r.name,selected:i}}function installLegendAction(t){t.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),t.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),t.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$3(t){t.registerComponentModel(LegendModel$1),t.registerComponentView(LegendView$1),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),t.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(t)}var ScrollableLegendModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},r.prototype.init=function(n,i,a){var o=getLayoutParams(n);t.prototype.init.call(this,n,i,a),mergeAndNormalizeLayoutParams(this,n,o)},r.prototype.mergeOption=function(n,i){t.prototype.mergeOption.call(this,n,i),mergeAndNormalizeLayoutParams(this,this.option,n)},r.type="legend.scroll",r.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}),r}(LegendModel$1);function mergeAndNormalizeLayoutParams(t,r,n){var i=t.getOrient(),a=[1,1];a[i.index]=0,mergeLayoutParam(r,n,{type:"box",ignoreSize:!!a})}var ScrollableLegendModel$1=ScrollableLegendModel,Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.newlineDisabled=!0,n._currentIndex=0,n}return r.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},r.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},r.prototype.renderInner=function(n,i,a,o,s,l,u){var c=this;t.prototype.renderInner.call(this,n,i,a,o,s,l,u);var d=this._controllerGroup,v=i.get("pageIconSize",!0),$=isArray(v)?v:[v,v];O("pagePrev",0);var I=i.getModel("pageTextStyle");d.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:I.getTextColor(),font:I.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),O("pageNext",1);function O(R,M){var F=R+"DataIndex",V=createIcon(i.get("pageIcons",!0)[i.getOrient().name][M],{onclick:bind$1(c._pageGo,c,F,i,o)},{x:-$[0]/2,y:-$[1]/2,width:$[0],height:$[1]});V.name=R,d.add(V)}},r.prototype.layoutInner=function(n,i,a,o,s,l){var u=this.getSelectorGroup(),c=n.getOrient().index,d=WH[c],v=XY[c],$=WH[1-c],I=XY[1-c];s&&box("horizontal",u,n.get("selectorItemGap",!0));var O=n.get("selectorButtonGap",!0),R=u.getBoundingRect(),M=[-R.x,-R.y],F=clone$2(a);s&&(F[d]=a[d]-R[d]-O);var V=this._layoutContentAndController(n,o,F,c,d,$,I,v);if(s){if(l==="end")M[c]+=V[d]+O;else{var G=R[d]+O;M[c]-=G,V[v]-=G}V[d]+=R[d]+O,M[1-c]+=V[I]+V[$]/2-R[$]/2,V[$]=Math.max(V[$],R[$]),V[I]=Math.min(V[I],R[I]+M[1-c]),u.x=M[0],u.y=M[1],u.markRedraw()}return V},r.prototype._layoutContentAndController=function(n,i,a,o,s,l,u,c){var d=this.getContentGroup(),v=this._containerGroup,$=this._controllerGroup;box(n.get("orient"),d,n.get("itemGap"),o?a.width:null,o?null:a.height),box("horizontal",$,n.get("pageButtonItemGap",!0));var I=d.getBoundingRect(),O=$.getBoundingRect(),R=this._showController=I[s]>a[s],M=[-I.x,-I.y];i||(M[o]=d[c]);var F=[0,0],V=[-O.x,-O.y],G=retrieve2(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(R){var Y=n.get("pageButtonPosition",!0);Y==="end"?V[o]+=a[s]-O[s]:F[o]+=O[s]+G}V[1-o]+=I[l]/2-O[l]/2,d.setPosition(M),v.setPosition(F),$.setPosition(V);var X={x:0,y:0};if(X[s]=R?a[s]:I[s],X[l]=Math.max(I[l],O[l]),X[u]=Math.min(0,O[u]+V[1-o]),v.__rectSize=a[s],R){var q={x:0,y:0};q[s]=Math.max(a[s]-O[s]-G,0),q[l]=X[l],v.setClipPath(new Rect$1({shape:q})),v.__rectSize=q[s]}else $.eachChild(function(Q){Q.attr({invisible:!0,silent:!0})});var Z=this._getPageInfo(n);return Z.pageIndex!=null&&updateProps$1(d,{x:Z.contentPosition[0],y:Z.contentPosition[1]},R?n:null),this._updatePageInfoView(n,Z),X},r.prototype._pageGo=function(n,i,a){var o=this._getPageInfo(i)[n];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},r.prototype._updatePageInfoView=function(n,i){var a=this._controllerGroup;each$4(["pagePrev","pageNext"],function(d){var v=d+"DataIndex",$=i[v]!=null,I=a.childOfName(d);I&&(I.setStyle("fill",$?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),I.cursor=$?"pointer":"default")});var o=a.childOfName("pageText"),s=n.get("pageFormatter"),l=i.pageIndex,u=l!=null?l+1:0,c=i.pageCount;o&&s&&o.setStyle("text",isString(s)?s.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):s({current:u,total:c}))},r.prototype._getPageInfo=function(n){var i=n.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,s=n.getOrient().index,l=WH[s],u=XY[s],c=this._findTargetItemIndex(i),d=a.children(),v=d[c],$=d.length,I=$?1:0,O={contentPosition:[a.x,a.y],pageCount:I,pageIndex:I-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return O;var R=Y(v);O.contentPosition[s]=-R.s;for(var M=c+1,F=R,V=R,G=null;M<=$;++M)G=Y(d[M]),(!G&&V.e>F.s+o||G&&!X(G,F.s))&&(V.i>F.i?F=V:F=G,F&&(O.pageNextDataIndex==null&&(O.pageNextDataIndex=F.i),++O.pageCount)),V=G;for(var M=c-1,F=R,V=R,G=null;M>=-1;--M)G=Y(d[M]),(!G||!X(V,G.s))&&F.i<V.i&&(V=F,O.pagePrevDataIndex==null&&(O.pagePrevDataIndex=F.i),++O.pageCount,++O.pageIndex),F=G;return O;function Y(q){if(q){var Z=q.getBoundingRect(),Q=Z[u]+q[u];return{s:Q,e:Q+Z[l],i:q.__legendDataIndex}}}function X(q,Z){return q.e>=Z&&q.s<=Z+o}},r.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var i,a=this.getContentGroup(),o;return a.eachChild(function(s,l){var u=s.__legendDataIndex;o==null&&u!=null&&(o=l),u===n&&(i=l)}),i!=null?i:o},r.type="legend.scroll",r}(LegendView$1),ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(t){t.registerAction("legendScroll","legendscroll",function(r,n){var i=r.scrollDataIndex;i!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:r},function(a){a.setScrollDataIndex(i)})})}function install$2(t){use(install$3),t.registerComponentModel(ScrollableLegendModel$1),t.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(t)}function install$1(t){use(install$3),use(install$2)}var DatasetModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return r.prototype.init=function(n,i,a){t.prototype.init.call(this,n,i,a),this._sourceManager=new SourceManager(this),disableTransformOptionMerge(this)},r.prototype.mergeOption=function(n,i){t.prototype.mergeOption.call(this,n,i),disableTransformOptionMerge(this)},r.prototype.optionUpdated=function(){this._sourceManager.dirty()},r.prototype.getSourceManager=function(){return this._sourceManager},r.type="dataset",r.defaultOption={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN},r}(ComponentModel$1),DatasetView=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return r.type="dataset",r}(ComponentView$1);function install(t){t.registerComponentModel(DatasetModel),t.registerComponentView(DatasetView)}var raf=null;function requestAnimationFrame$1(t){return raf||(raf=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(r){return setTimeout(r,16)}).bind(window)),raf(t)}var caf=null;function cancelAnimationFrame(t){caf||(caf=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(r){clearTimeout(r)}).bind(window)),caf(t)}function createStyles(t){var r=document.createElement("style");return r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(r),r}function createElement(t,r){r===void 0&&(r={});var n=document.createElement(t);return Object.keys(r).forEach(function(i){n[i]=r[i]}),n}function getComputedStyle$1(t,r,n){var i=window.getComputedStyle(t,n||null)||{display:"none"};return i[r]}function getRenderInfo(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};for(var r=t;r!==document;){if(getComputedStyle$1(r,"display")==="none")return{detached:!1,rendered:!1};r=r.parentNode}return{detached:!1,rendered:!0}}var css_248z='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',total=0,style=null;function addListener(t,r){t.__resize_mutation_handler__||(t.__resize_mutation_handler__=handleMutation.bind(t));var n=t.__resize_listeners__;if(!n){if(t.__resize_listeners__=[],window.ResizeObserver){var i=t.offsetWidth,a=t.offsetHeight,o=new ResizeObserver(function(){!t.__resize_observer_triggered__&&(t.__resize_observer_triggered__=!0,t.offsetWidth===i&&t.offsetHeight===a)||runCallbacks(t)}),s=getRenderInfo(t),l=s.detached,u=s.rendered;t.__resize_observer_triggered__=l===!1&&u===!1,t.__resize_observer__=o,o.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){runCallbacks(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(total||(style=createStyles(css_248z)),initTriggers(t),t.__resize_rendered__=getRenderInfo(t).rendered,window.MutationObserver){var c=new MutationObserver(t.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=c}}t.__resize_listeners__.push(r),total++}function removeListener(t,r){var n=t.__resize_listeners__;if(!!n){if(r&&n.splice(n.indexOf(r),1),!n.length||!r){if(t.detachEvent&&t.removeEventListener){t.detachEvent("onresize",t.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);return}t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",handleScroll),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null}!--total&&style&&style.parentNode.removeChild(style)}}function getUpdatedSize(t){var r=t.__resize_last__,n=r.width,i=r.height,a=t.offsetWidth,o=t.offsetHeight;return a!==n||o!==i?{width:a,height:o}:null}function handleMutation(){var t=getRenderInfo(this),r=t.rendered,n=t.detached;r!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(resetTriggers(this),this.addEventListener("scroll",handleScroll,!0)),this.__resize_rendered__=r,runCallbacks(this))}function handleScroll(){var t=this;resetTriggers(this),this.__resize_raf__&&cancelAnimationFrame(this.__resize_raf__),this.__resize_raf__=requestAnimationFrame$1(function(){var r=getUpdatedSize(t);r&&(t.__resize_last__=r,runCallbacks(t))})}function runCallbacks(t){!t||!t.__resize_listeners__||t.__resize_listeners__.forEach(function(r){r.call(t,t)})}function initTriggers(t){var r=getComputedStyle$1(t,"position");(!r||r==="static")&&(t.style.position="relative"),t.__resize_old_position__=r,t.__resize_last__={};var n=createElement("div",{className:"resize-triggers"}),i=createElement("div",{className:"resize-expand-trigger"}),a=createElement("div"),o=createElement("div",{className:"resize-contract-trigger"});i.appendChild(a),n.appendChild(i),n.appendChild(o),t.appendChild(n),t.__resize_triggers__={triggers:n,expand:i,expandChild:a,contract:o},resetTriggers(t),t.addEventListener("scroll",handleScroll,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}function resetTriggers(t){var r=t.__resize_triggers__,n=r.expand,i=r.expandChild,a=r.contract,o=a.scrollWidth,s=a.scrollHeight,l=n.offsetWidth,u=n.offsetHeight,c=n.scrollWidth,d=n.scrollHeight;a.scrollLeft=o,a.scrollTop=s,i.style.width=l+1+"px",i.style.height=u+1+"px",n.scrollLeft=c,n.scrollTop=d}var b=function(){return b=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++)for(var a in r=arguments[n])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},b.apply(this,arguments)};var y=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function E(t){return r=Object.create(null),y.forEach(function(n){r[n]=function(i){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(!t.value)throw new Error("ECharts is not initialized yet.");return t.value[i].apply(t.value,a)}}(n)}),r;var r}var _$1={autoresize:[Boolean,Object]},j=/^on[^a-z]/,x=function(t){return j.test(t)};function A(t,r){var n=isRef(t)?unref(t):t;return n&&typeof n=="object"&&"value"in n?n.value||r:n||r}var L="ecLoadingOptions",z={loading:Boolean,loadingOptions:Object},C=null,w="x-vue-echarts",T=[],S=[];(function(t,r){if(t&&typeof document!="undefined"){var n,i=r.prepend===!0?"prepend":"append",a=r.singleTag===!0,o=typeof r.container=="string"?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(a){var s=T.indexOf(o);s===-1&&(s=T.push(o)-1,S[s]={}),n=S[s]&&S[s][i]?S[s][i]:S[s][i]=l()}else n=l();t.charCodeAt(0)===65279&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function l(){var u=document.createElement("style");if(u.setAttribute("type","text/css"),r.attributes)for(var c=Object.keys(r.attributes),d=0;d<c.length;d++)u.setAttribute(c[d],r.attributes[c[d]]);var v=i==="prepend"?"afterbegin":"beforeend";return o.insertAdjacentElement(v,u),u}})(`x-vue-echarts{display:block;position:relative;width:100%;height:100%;min-width:0}
147
- .vue-echarts-inner{position:absolute;top:0;right:0;bottom:0;left:0}
148
- `,{});var U=function(){if(C!=null)return C;if(typeof HTMLElement=="undefined"||typeof customElements=="undefined")return C=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
149
- __dispose = null;
150
-
151
- disconnectedCallback() {
152
- if (this.__dispose) {
153
- this.__dispose();
154
- this.__dispose = null;
155
- }
156
- }
157
- }
158
-
159
- if (customElements.get(tag) == null) {
160
- customElements.define(tag, EChartsElement);
161
- }
162
- `)(w)}catch{return C=!1}return C=!0}(),k="ecTheme",D="ecInitOptions",B="ecUpdateOptions",P=/(^&?~?!?)native:/,H=defineComponent({name:"echarts",props:b(b({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},_$1),z),emits:{},inheritAttrs:!1,setup:function(t,r){var n=r.attrs,i=shallowRef(),a=shallowRef(),o=shallowRef(),s=shallowRef(),l=inject(k,null),u=inject(D,null),c=inject(B,null),d=toRefs(t),v=d.autoresize,$=d.manualUpdate,I=d.loading,O=d.loadingOptions,R=computed(function(){return s.value||t.option||null}),M=computed(function(){return t.theme||A(l,{})}),F=computed(function(){return t.initOptions||A(u,{})}),V=computed(function(){return t.updateOptions||A(c,{})}),G=computed(function(){return function(J){var re={};for(var te in J)x(te)||(re[te]=J[te]);return re}(n)}),Y={},X=getCurrentInstance().proxy.$listeners;function q(J){if(a.value){var re=o.value=init(a.value,M.value,F.value);t.group&&(re.group=t.group);var te={};X?Object.keys(X).forEach(function(le){P.test(le)?Y[le.replace(P,"$1")]=X[le]:te[le]=X[le]}):Object.keys(n).filter(function(le){return x(le)}).forEach(function(le){var fe=le.charAt(2).toLowerCase()+le.slice(3);if(fe.indexOf("native:")!==0)fe.substring(fe.length-4)==="Once"&&(fe="~".concat(fe.substring(0,fe.length-4))),te[fe]=n[le];else{var de="on".concat(fe.charAt(7).toUpperCase()).concat(fe.slice(8));Y[de]=n[le]}}),Object.keys(te).forEach(function(le){var fe=te[le];if(fe){var de=le.toLowerCase();de.charAt(0)==="~"&&(de=de.substring(1),fe.__once__=!0);var Se=re;if(de.indexOf("zr:")===0&&(Se=re.getZr(),de=de.substring(3)),fe.__once__){delete fe.__once__;var ge=fe;fe=function(){for(var Te=[],ke=0;ke<arguments.length;ke++)Te[ke]=arguments[ke];ge.apply(void 0,Te),Se.off(de,fe)}}Se.on(de,fe)}}),v.value?nextTick(function(){re&&!re.isDisposed()&&re.resize(),oe()}):oe()}function oe(){var le=J||R.value;le&&re.setOption(le,V.value)}}function Z(){o.value&&(o.value.dispose(),o.value=void 0)}var Q=null;watch($,function(J){typeof Q=="function"&&(Q(),Q=null),J||(Q=watch(function(){return t.option},function(re,te){re&&(o.value?o.value.setOption(re,b({notMerge:re!==te},V.value)):q())},{deep:!0}))},{immediate:!0}),watch([M,F],function(){Z(),q()},{deep:!0}),watchEffect(function(){t.group&&o.value&&(o.value.group=t.group)});var ie=E(o);return function(J,re,te){var oe=inject(L,{}),le=computed(function(){return b(b({},A(oe,{})),te==null?void 0:te.value)});watchEffect(function(){var fe=J.value;fe&&(re.value?fe.showLoading(le.value):fe.hideLoading())})}(o,I,O),function(J,re,te){var oe=null;watch([te,J,re],function(le,fe,de){var Se=le[0],ge=le[1],Te=le[2];if(Se&&ge&&Te){var ke=Te===!0?{}:Te,Ie=ke.throttle,me=Ie===void 0?100:Ie,Oe=ke.onResize,Ve=function(){ge.resize(),Oe==null||Oe()};oe=me?throttle(Ve,me):Ve,addListener(Se,oe)}de(function(){Se&&oe&&removeListener(Se,oe)})})}(o,v,a),onMounted(function(){q()}),onBeforeUnmount(function(){U&&i.value?i.value.__dispose=Z:Z()}),b({chart:o,root:i,inner:a,setOption:function(J,re){t.manualUpdate&&(s.value=J),o.value?o.value.setOption(J,re||{}):q(J)},nonEventAttrs:G,nativeListeners:Y},ie)},render:function(){var t=b(b({},this.nonEventAttrs),this.nativeListeners);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",h(w,t,[h("div",{ref:"inner",class:"vue-echarts-inner"})])}}),LineChartCard_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$3=defineComponent({__name:"LineChartCard",props:{k:{}},setup(t,{expose:r}){use([install$a,install$9,install$4,install$5,install$1,install$6,install]);const n=t,i=ref({});let a=lineCharts[n.k];function o(){a=lineCharts[n.k],i.value=s(a)}onMounted(()=>{o()}),r({update:o});function s(l){const u=new Map;l.value.forEach(V=>{var G;u.has(V.label)||u.set(V.label,[]),(G=u.get(V.label))==null||G.push({x:V.x,y:V.y})});const c=Array.from(u.entries()),d=c.map(V=>V[0]),v={text:l.name,left:"center"},$={trigger:"axis",axisPointer:{type:"line"},formatter:V=>{let[G,Y]=V[0].data;return`${l.x_label}: ${Math.round(G*1e4)/1e4}<br/>${l.y_label}: ${Math.round(Y*1e4)/1e4}`}},I={orient:"vertical",left:"left",data:d},O={},R={min:"dataMin"},M=c.map(([V,G])=>({name:V,source:G.map(Y=>[Y.x,Y.y]),dimensions:[l.x_label,l.y_label],encode:{x:l.x_label,y:l.y_label,tooltip:[l.x_label,l.y_label]}})),F=d.map((V,G)=>({type:"line",name:V,datasetIndex:G}));return{title:v,tooltip:$,legend:I,xAxis:O,yAxis:R,dataset:M,series:F}}return(l,u)=>(openBlock(),createBlock(unref(_sfc_main$1c),{class:"w-25",style:{"max-width":"500px"}},{default:withCtx(()=>[createVNode(unref(H),{class:"chart",option:i.value},null,8,["option"])]),_:1}))}});var LineChartCard=_export_sfc(_sfc_main$3,[["__scopeId","data-v-619ce90e"]]);const _hoisted_1$1=createBaseVNode("h6",{class:"display-6"},"Plots",-1),_sfc_main$2=defineComponent({__name:"PlotSection",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[_hoisted_1$1,createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(lineCharts)),o=>(openBlock(),createBlock(LineChartCard,{key:o,k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"]))),128))]),_:1})],64))}});var lodash={exports:{}};/**
163
- * @license
164
- * Lodash <https://lodash.com/>
165
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
166
- * Released under MIT license <https://lodash.com/license>
167
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
168
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
169
- */(function(t,r){(function(){var n,i="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",v=1,$=2,I=4,O=1,R=2,M=1,F=2,V=4,G=8,Y=16,X=32,q=64,Z=128,Q=256,ie=512,J=30,re="...",te=800,oe=16,le=1,fe=2,de=3,Se=1/0,ge=9007199254740991,Te=17976931348623157e292,ke=0/0,Ie=4294967295,me=Ie-1,Oe=Ie>>>1,Ve=[["ary",Z],["bind",M],["bindKey",F],["curry",G],["curryRight",Y],["flip",ie],["partial",X],["partialRight",q],["rearg",Q]],Xe="[object Arguments]",Ge="[object Array]",st="[object AsyncFunction]",at="[object Boolean]",ft="[object Date]",Le="[object DOMException]",De="[object Error]",Be="[object Function]",se="[object GeneratorFunction]",ae="[object Map]",ve="[object Number]",be="[object Null]",ye="[object Object]",Re="[object Promise]",Me="[object Proxy]",xe="[object RegExp]",Pe="[object Set]",we="[object String]",Fe="[object Symbol]",We="[object Undefined]",ze="[object WeakMap]",je="[object WeakSet]",Ze="[object ArrayBuffer]",it="[object DataView]",vt="[object Float32Array]",St="[object Float64Array]",Mt="[object Int8Array]",or="[object Int16Array]",Nr="[object Int32Array]",cr="[object Uint8Array]",Fr="[object Uint8ClampedArray]",$t="[object Uint16Array]",kt="[object Uint32Array]",gn=/\b__p \+= '';/g,Ks=/\b(__p \+=) '' \+/g,js=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ma=/&(?:amp|lt|gt|quot|#39);/g,ya=/[&<>"']/g,Xs=RegExp(ma.source),Zs=RegExp(ya.source),Js=/<%-([\s\S]+?)%>/g,Qs=/<%([\s\S]+?)%>/g,ba=/<%=([\s\S]+?)%>/g,el=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tl=/^\w*$/,rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ai=/[\\^$.*+?()[\]{}|]/g,nl=RegExp(ai.source),oi=/^\s+/,il=/\s/,al=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,sl=/,? & /,ll=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ul=/[()=,{}\[\]\/\s]/,cl=/\\(\\)?/g,fl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sa=/\w*$/,dl=/^[-+]0x[0-9a-f]+$/i,hl=/^0b[01]+$/i,pl=/^\[object .+?Constructor\]$/,vl=/^0o[0-7]+$/i,gl=/^(?:0|[1-9]\d*)$/,ml=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,_l=/['\n\r\u2028\u2029\\]/g,_n="\\ud800-\\udfff",yl="\\u0300-\\u036f",bl="\\ufe20-\\ufe2f",Sl="\\u20d0-\\u20ff",Ta=yl+bl+Sl,Ca="\\u2700-\\u27bf",Ea="a-z\\xdf-\\xf6\\xf8-\\xff",Tl="\\xac\\xb1\\xd7\\xf7",Cl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",El="\\u2000-\\u206f",Al=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Aa="A-Z\\xc0-\\xd6\\xd8-\\xde",xa="\\ufe0e\\ufe0f",wa=Tl+Cl+El+Al,si="['\u2019]",xl="["+_n+"]",$a="["+wa+"]",yn="["+Ta+"]",Ia="\\d+",wl="["+Ca+"]",Oa="["+Ea+"]",Pa="[^"+_n+wa+Ia+Ca+Ea+Aa+"]",li="\\ud83c[\\udffb-\\udfff]",$l="(?:"+yn+"|"+li+")",Ra="[^"+_n+"]",ui="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",Vr="["+Aa+"]",Ma="\\u200d",Da="(?:"+Oa+"|"+Pa+")",Il="(?:"+Vr+"|"+Pa+")",La="(?:"+si+"(?:d|ll|m|re|s|t|ve))?",Ba="(?:"+si+"(?:D|LL|M|RE|S|T|VE))?",ka=$l+"?",Na="["+xa+"]?",Ol="(?:"+Ma+"(?:"+[Ra,ui,ci].join("|")+")"+Na+ka+")*",Pl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fa=Na+ka+Ol,Ml="(?:"+[wl,ui,ci].join("|")+")"+Fa,Dl="(?:"+[Ra+yn+"?",yn,ui,ci,xl].join("|")+")",Ll=RegExp(si,"g"),Bl=RegExp(yn,"g"),fi=RegExp(li+"(?="+li+")|"+Dl+Fa,"g"),kl=RegExp([Vr+"?"+Oa+"+"+La+"(?="+[$a,Vr,"$"].join("|")+")",Il+"+"+Ba+"(?="+[$a,Vr+Da,"$"].join("|")+")",Vr+"?"+Da+"+"+La,Vr+"+"+Ba,Rl,Pl,Ia,Ml].join("|"),"g"),Nl=RegExp("["+Ma+_n+Ta+xa+"]"),Fl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hl=-1,_t={};_t[vt]=_t[St]=_t[Mt]=_t[or]=_t[Nr]=_t[cr]=_t[Fr]=_t[$t]=_t[kt]=!0,_t[Xe]=_t[Ge]=_t[Ze]=_t[at]=_t[it]=_t[ft]=_t[De]=_t[Be]=_t[ae]=_t[ve]=_t[ye]=_t[xe]=_t[Pe]=_t[we]=_t[ze]=!1;var mt={};mt[Xe]=mt[Ge]=mt[Ze]=mt[it]=mt[at]=mt[ft]=mt[vt]=mt[St]=mt[Mt]=mt[or]=mt[Nr]=mt[ae]=mt[ve]=mt[ye]=mt[xe]=mt[Pe]=mt[we]=mt[Fe]=mt[cr]=mt[Fr]=mt[$t]=mt[kt]=!0,mt[De]=mt[Be]=mt[ze]=!1;var zl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Ul={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yl=parseFloat,ql=parseInt,Va=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Kl=typeof self=="object"&&self&&self.Object===Object&&self,It=Va||Kl||Function("return this")(),di=r&&!r.nodeType&&r,Ir=di&&!0&&t&&!t.nodeType&&t,Ha=Ir&&Ir.exports===di,hi=Ha&&Va.process,Kt=function(){try{var he=Ir&&Ir.require&&Ir.require("util").types;return he||hi&&hi.binding&&hi.binding("util")}catch{}}(),za=Kt&&Kt.isArrayBuffer,Ua=Kt&&Kt.isDate,Ga=Kt&&Kt.isMap,Wa=Kt&&Kt.isRegExp,Ya=Kt&&Kt.isSet,qa=Kt&&Kt.isTypedArray;function zt(he,Ce,_e){switch(_e.length){case 0:return he.call(Ce);case 1:return he.call(Ce,_e[0]);case 2:return he.call(Ce,_e[0],_e[1]);case 3:return he.call(Ce,_e[0],_e[1],_e[2])}return he.apply(Ce,_e)}function jl(he,Ce,_e,He){for(var Je=-1,dt=he==null?0:he.length;++Je<dt;){var At=he[Je];Ce(He,At,_e(At),he)}return He}function jt(he,Ce){for(var _e=-1,He=he==null?0:he.length;++_e<He&&Ce(he[_e],_e,he)!==!1;);return he}function Xl(he,Ce){for(var _e=he==null?0:he.length;_e--&&Ce(he[_e],_e,he)!==!1;);return he}function Ka(he,Ce){for(var _e=-1,He=he==null?0:he.length;++_e<He;)if(!Ce(he[_e],_e,he))return!1;return!0}function br(he,Ce){for(var _e=-1,He=he==null?0:he.length,Je=0,dt=[];++_e<He;){var At=he[_e];Ce(At,_e,he)&&(dt[Je++]=At)}return dt}function bn(he,Ce){var _e=he==null?0:he.length;return!!_e&&Hr(he,Ce,0)>-1}function pi(he,Ce,_e){for(var He=-1,Je=he==null?0:he.length;++He<Je;)if(_e(Ce,he[He]))return!0;return!1}function yt(he,Ce){for(var _e=-1,He=he==null?0:he.length,Je=Array(He);++_e<He;)Je[_e]=Ce(he[_e],_e,he);return Je}function Sr(he,Ce){for(var _e=-1,He=Ce.length,Je=he.length;++_e<He;)he[Je+_e]=Ce[_e];return he}function vi(he,Ce,_e,He){var Je=-1,dt=he==null?0:he.length;for(He&&dt&&(_e=he[++Je]);++Je<dt;)_e=Ce(_e,he[Je],Je,he);return _e}function Zl(he,Ce,_e,He){var Je=he==null?0:he.length;for(He&&Je&&(_e=he[--Je]);Je--;)_e=Ce(_e,he[Je],Je,he);return _e}function gi(he,Ce){for(var _e=-1,He=he==null?0:he.length;++_e<He;)if(Ce(he[_e],_e,he))return!0;return!1}var Jl=mi("length");function Ql(he){return he.split("")}function eu(he){return he.match(ll)||[]}function ja(he,Ce,_e){var He;return _e(he,function(Je,dt,At){if(Ce(Je,dt,At))return He=dt,!1}),He}function Sn(he,Ce,_e,He){for(var Je=he.length,dt=_e+(He?1:-1);He?dt--:++dt<Je;)if(Ce(he[dt],dt,he))return dt;return-1}function Hr(he,Ce,_e){return Ce===Ce?du(he,Ce,_e):Sn(he,Xa,_e)}function tu(he,Ce,_e,He){for(var Je=_e-1,dt=he.length;++Je<dt;)if(He(he[Je],Ce))return Je;return-1}function Xa(he){return he!==he}function Za(he,Ce){var _e=he==null?0:he.length;return _e?yi(he,Ce)/_e:ke}function mi(he){return function(Ce){return Ce==null?n:Ce[he]}}function _i(he){return function(Ce){return he==null?n:he[Ce]}}function Ja(he,Ce,_e,He,Je){return Je(he,function(dt,At,gt){_e=He?(He=!1,dt):Ce(_e,dt,At,gt)}),_e}function ru(he,Ce){var _e=he.length;for(he.sort(Ce);_e--;)he[_e]=he[_e].value;return he}function yi(he,Ce){for(var _e,He=-1,Je=he.length;++He<Je;){var dt=Ce(he[He]);dt!==n&&(_e=_e===n?dt:_e+dt)}return _e}function bi(he,Ce){for(var _e=-1,He=Array(he);++_e<he;)He[_e]=Ce(_e);return He}function nu(he,Ce){return yt(Ce,function(_e){return[_e,he[_e]]})}function Qa(he){return he&&he.slice(0,no(he)+1).replace(oi,"")}function Ut(he){return function(Ce){return he(Ce)}}function Si(he,Ce){return yt(Ce,function(_e){return he[_e]})}function en(he,Ce){return he.has(Ce)}function eo(he,Ce){for(var _e=-1,He=he.length;++_e<He&&Hr(Ce,he[_e],0)>-1;);return _e}function to(he,Ce){for(var _e=he.length;_e--&&Hr(Ce,he[_e],0)>-1;);return _e}function iu(he,Ce){for(var _e=he.length,He=0;_e--;)he[_e]===Ce&&++He;return He}var au=_i(zl),ou=_i(Ul);function su(he){return"\\"+Wl[he]}function lu(he,Ce){return he==null?n:he[Ce]}function zr(he){return Nl.test(he)}function uu(he){return Fl.test(he)}function cu(he){for(var Ce,_e=[];!(Ce=he.next()).done;)_e.push(Ce.value);return _e}function Ti(he){var Ce=-1,_e=Array(he.size);return he.forEach(function(He,Je){_e[++Ce]=[Je,He]}),_e}function ro(he,Ce){return function(_e){return he(Ce(_e))}}function Tr(he,Ce){for(var _e=-1,He=he.length,Je=0,dt=[];++_e<He;){var At=he[_e];(At===Ce||At===d)&&(he[_e]=d,dt[Je++]=_e)}return dt}function Tn(he){var Ce=-1,_e=Array(he.size);return he.forEach(function(He){_e[++Ce]=He}),_e}function fu(he){var Ce=-1,_e=Array(he.size);return he.forEach(function(He){_e[++Ce]=[He,He]}),_e}function du(he,Ce,_e){for(var He=_e-1,Je=he.length;++He<Je;)if(he[He]===Ce)return He;return-1}function hu(he,Ce,_e){for(var He=_e+1;He--;)if(he[He]===Ce)return He;return He}function Ur(he){return zr(he)?vu(he):Jl(he)}function rr(he){return zr(he)?gu(he):Ql(he)}function no(he){for(var Ce=he.length;Ce--&&il.test(he.charAt(Ce)););return Ce}var pu=_i(Gl);function vu(he){for(var Ce=fi.lastIndex=0;fi.test(he);)++Ce;return Ce}function gu(he){return he.match(fi)||[]}function mu(he){return he.match(kl)||[]}var _u=function he(Ce){Ce=Ce==null?It:Gr.defaults(It.Object(),Ce,Gr.pick(It,Vl));var _e=Ce.Array,He=Ce.Date,Je=Ce.Error,dt=Ce.Function,At=Ce.Math,gt=Ce.Object,Ci=Ce.RegExp,yu=Ce.String,Xt=Ce.TypeError,Cn=_e.prototype,bu=dt.prototype,Wr=gt.prototype,En=Ce["__core-js_shared__"],An=bu.toString,pt=Wr.hasOwnProperty,Su=0,io=function(){var f=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),xn=Wr.toString,Tu=An.call(gt),Cu=It._,Eu=Ci("^"+An.call(pt).replace(ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wn=Ha?Ce.Buffer:n,Cr=Ce.Symbol,$n=Ce.Uint8Array,ao=wn?wn.allocUnsafe:n,In=ro(gt.getPrototypeOf,gt),oo=gt.create,so=Wr.propertyIsEnumerable,On=Cn.splice,lo=Cr?Cr.isConcatSpreadable:n,tn=Cr?Cr.iterator:n,Or=Cr?Cr.toStringTag:n,Pn=function(){try{var f=Lr(gt,"defineProperty");return f({},"",{}),f}catch{}}(),Au=Ce.clearTimeout!==It.clearTimeout&&Ce.clearTimeout,xu=He&&He.now!==It.Date.now&&He.now,wu=Ce.setTimeout!==It.setTimeout&&Ce.setTimeout,Rn=At.ceil,Mn=At.floor,Ei=gt.getOwnPropertySymbols,$u=wn?wn.isBuffer:n,uo=Ce.isFinite,Iu=Cn.join,Ou=ro(gt.keys,gt),xt=At.max,Pt=At.min,Pu=He.now,Ru=Ce.parseInt,co=At.random,Mu=Cn.reverse,Ai=Lr(Ce,"DataView"),rn=Lr(Ce,"Map"),xi=Lr(Ce,"Promise"),Yr=Lr(Ce,"Set"),nn=Lr(Ce,"WeakMap"),an=Lr(gt,"create"),Dn=nn&&new nn,qr={},Du=Br(Ai),Lu=Br(rn),Bu=Br(xi),ku=Br(Yr),Nu=Br(nn),Ln=Cr?Cr.prototype:n,on=Ln?Ln.valueOf:n,fo=Ln?Ln.toString:n;function ee(f){if(Tt(f)&&!Qe(f)&&!(f instanceof ut)){if(f instanceof Zt)return f;if(pt.call(f,"__wrapped__"))return hs(f)}return new Zt(f)}var Kr=function(){function f(){}return function(g){if(!bt(g))return{};if(oo)return oo(g);f.prototype=g;var N=new f;return f.prototype=n,N}}();function Bn(){}function Zt(f,g){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}ee.templateSettings={escape:Js,evaluate:Qs,interpolate:ba,variable:"",imports:{_:ee}},ee.prototype=Bn.prototype,ee.prototype.constructor=ee,Zt.prototype=Kr(Bn.prototype),Zt.prototype.constructor=Zt;function ut(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ie,this.__views__=[]}function Fu(){var f=new ut(this.__wrapped__);return f.__actions__=Nt(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Nt(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Nt(this.__views__),f}function Vu(){if(this.__filtered__){var f=new ut(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function Hu(){var f=this.__wrapped__.value(),g=this.__dir__,N=Qe(f),W=g<0,K=N?f.length:0,ne=ef(0,K,this.__views__),ue=ne.start,ce=ne.end,pe=ce-ue,Ee=W?ce:ue-1,Ae=this.__iteratees__,$e=Ae.length,Ne=0,Ue=Pt(pe,this.__takeCount__);if(!N||!W&&K==pe&&Ue==pe)return Bo(f,this.__actions__);var qe=[];e:for(;pe--&&Ne<Ue;){Ee+=g;for(var tt=-1,Ke=f[Ee];++tt<$e;){var ot=Ae[tt],ct=ot.iteratee,Yt=ot.type,Bt=ct(Ke);if(Yt==fe)Ke=Bt;else if(!Bt){if(Yt==le)continue e;break e}}qe[Ne++]=Ke}return qe}ut.prototype=Kr(Bn.prototype),ut.prototype.constructor=ut;function Pr(f){var g=-1,N=f==null?0:f.length;for(this.clear();++g<N;){var W=f[g];this.set(W[0],W[1])}}function zu(){this.__data__=an?an(null):{},this.size=0}function Uu(f){var g=this.has(f)&&delete this.__data__[f];return this.size-=g?1:0,g}function Gu(f){var g=this.__data__;if(an){var N=g[f];return N===u?n:N}return pt.call(g,f)?g[f]:n}function Wu(f){var g=this.__data__;return an?g[f]!==n:pt.call(g,f)}function Yu(f,g){var N=this.__data__;return this.size+=this.has(f)?0:1,N[f]=an&&g===n?u:g,this}Pr.prototype.clear=zu,Pr.prototype.delete=Uu,Pr.prototype.get=Gu,Pr.prototype.has=Wu,Pr.prototype.set=Yu;function fr(f){var g=-1,N=f==null?0:f.length;for(this.clear();++g<N;){var W=f[g];this.set(W[0],W[1])}}function qu(){this.__data__=[],this.size=0}function Ku(f){var g=this.__data__,N=kn(g,f);if(N<0)return!1;var W=g.length-1;return N==W?g.pop():On.call(g,N,1),--this.size,!0}function ju(f){var g=this.__data__,N=kn(g,f);return N<0?n:g[N][1]}function Xu(f){return kn(this.__data__,f)>-1}function Zu(f,g){var N=this.__data__,W=kn(N,f);return W<0?(++this.size,N.push([f,g])):N[W][1]=g,this}fr.prototype.clear=qu,fr.prototype.delete=Ku,fr.prototype.get=ju,fr.prototype.has=Xu,fr.prototype.set=Zu;function dr(f){var g=-1,N=f==null?0:f.length;for(this.clear();++g<N;){var W=f[g];this.set(W[0],W[1])}}function Ju(){this.size=0,this.__data__={hash:new Pr,map:new(rn||fr),string:new Pr}}function Qu(f){var g=jn(this,f).delete(f);return this.size-=g?1:0,g}function ec(f){return jn(this,f).get(f)}function tc(f){return jn(this,f).has(f)}function rc(f,g){var N=jn(this,f),W=N.size;return N.set(f,g),this.size+=N.size==W?0:1,this}dr.prototype.clear=Ju,dr.prototype.delete=Qu,dr.prototype.get=ec,dr.prototype.has=tc,dr.prototype.set=rc;function Rr(f){var g=-1,N=f==null?0:f.length;for(this.__data__=new dr;++g<N;)this.add(f[g])}function nc(f){return this.__data__.set(f,u),this}function ic(f){return this.__data__.has(f)}Rr.prototype.add=Rr.prototype.push=nc,Rr.prototype.has=ic;function nr(f){var g=this.__data__=new fr(f);this.size=g.size}function ac(){this.__data__=new fr,this.size=0}function oc(f){var g=this.__data__,N=g.delete(f);return this.size=g.size,N}function sc(f){return this.__data__.get(f)}function lc(f){return this.__data__.has(f)}function uc(f,g){var N=this.__data__;if(N instanceof fr){var W=N.__data__;if(!rn||W.length<a-1)return W.push([f,g]),this.size=++N.size,this;N=this.__data__=new dr(W)}return N.set(f,g),this.size=N.size,this}nr.prototype.clear=ac,nr.prototype.delete=oc,nr.prototype.get=sc,nr.prototype.has=lc,nr.prototype.set=uc;function ho(f,g){var N=Qe(f),W=!N&&kr(f),K=!N&&!W&&$r(f),ne=!N&&!W&&!K&&Jr(f),ue=N||W||K||ne,ce=ue?bi(f.length,yu):[],pe=ce.length;for(var Ee in f)(g||pt.call(f,Ee))&&!(ue&&(Ee=="length"||K&&(Ee=="offset"||Ee=="parent")||ne&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||gr(Ee,pe)))&&ce.push(Ee);return ce}function po(f){var g=f.length;return g?f[ki(0,g-1)]:n}function cc(f,g){return Xn(Nt(f),Mr(g,0,f.length))}function fc(f){return Xn(Nt(f))}function wi(f,g,N){(N!==n&&!ir(f[g],N)||N===n&&!(g in f))&&hr(f,g,N)}function sn(f,g,N){var W=f[g];(!(pt.call(f,g)&&ir(W,N))||N===n&&!(g in f))&&hr(f,g,N)}function kn(f,g){for(var N=f.length;N--;)if(ir(f[N][0],g))return N;return-1}function dc(f,g,N,W){return Er(f,function(K,ne,ue){g(W,K,N(K),ue)}),W}function vo(f,g){return f&&lr(g,wt(g),f)}function hc(f,g){return f&&lr(g,Vt(g),f)}function hr(f,g,N){g=="__proto__"&&Pn?Pn(f,g,{configurable:!0,enumerable:!0,value:N,writable:!0}):f[g]=N}function $i(f,g){for(var N=-1,W=g.length,K=_e(W),ne=f==null;++N<W;)K[N]=ne?n:la(f,g[N]);return K}function Mr(f,g,N){return f===f&&(N!==n&&(f=f<=N?f:N),g!==n&&(f=f>=g?f:g)),f}function Jt(f,g,N,W,K,ne){var ue,ce=g&v,pe=g&$,Ee=g&I;if(N&&(ue=K?N(f,W,K,ne):N(f)),ue!==n)return ue;if(!bt(f))return f;var Ae=Qe(f);if(Ae){if(ue=rf(f),!ce)return Nt(f,ue)}else{var $e=Rt(f),Ne=$e==Be||$e==se;if($r(f))return Fo(f,ce);if($e==ye||$e==Xe||Ne&&!K){if(ue=pe||Ne?{}:is(f),!ce)return pe?Wc(f,hc(ue,f)):Gc(f,vo(ue,f))}else{if(!mt[$e])return K?f:{};ue=nf(f,$e,ce)}}ne||(ne=new nr);var Ue=ne.get(f);if(Ue)return Ue;ne.set(f,ue),Ms(f)?f.forEach(function(Ke){ue.add(Jt(Ke,g,N,Ke,f,ne))}):Ps(f)&&f.forEach(function(Ke,ot){ue.set(ot,Jt(Ke,g,N,ot,f,ne))});var qe=Ee?pe?Ki:qi:pe?Vt:wt,tt=Ae?n:qe(f);return jt(tt||f,function(Ke,ot){tt&&(ot=Ke,Ke=f[ot]),sn(ue,ot,Jt(Ke,g,N,ot,f,ne))}),ue}function pc(f){var g=wt(f);return function(N){return go(N,f,g)}}function go(f,g,N){var W=N.length;if(f==null)return!W;for(f=gt(f);W--;){var K=N[W],ne=g[K],ue=f[K];if(ue===n&&!(K in f)||!ne(ue))return!1}return!0}function mo(f,g,N){if(typeof f!="function")throw new Xt(s);return pn(function(){f.apply(n,N)},g)}function ln(f,g,N,W){var K=-1,ne=bn,ue=!0,ce=f.length,pe=[],Ee=g.length;if(!ce)return pe;N&&(g=yt(g,Ut(N))),W?(ne=pi,ue=!1):g.length>=a&&(ne=en,ue=!1,g=new Rr(g));e:for(;++K<ce;){var Ae=f[K],$e=N==null?Ae:N(Ae);if(Ae=W||Ae!==0?Ae:0,ue&&$e===$e){for(var Ne=Ee;Ne--;)if(g[Ne]===$e)continue e;pe.push(Ae)}else ne(g,$e,W)||pe.push(Ae)}return pe}var Er=Go(sr),_o=Go(Oi,!0);function vc(f,g){var N=!0;return Er(f,function(W,K,ne){return N=!!g(W,K,ne),N}),N}function Nn(f,g,N){for(var W=-1,K=f.length;++W<K;){var ne=f[W],ue=g(ne);if(ue!=null&&(ce===n?ue===ue&&!Wt(ue):N(ue,ce)))var ce=ue,pe=ne}return pe}function gc(f,g,N,W){var K=f.length;for(N=et(N),N<0&&(N=-N>K?0:K+N),W=W===n||W>K?K:et(W),W<0&&(W+=K),W=N>W?0:Ls(W);N<W;)f[N++]=g;return f}function yo(f,g){var N=[];return Er(f,function(W,K,ne){g(W,K,ne)&&N.push(W)}),N}function Ot(f,g,N,W,K){var ne=-1,ue=f.length;for(N||(N=of),K||(K=[]);++ne<ue;){var ce=f[ne];g>0&&N(ce)?g>1?Ot(ce,g-1,N,W,K):Sr(K,ce):W||(K[K.length]=ce)}return K}var Ii=Wo(),bo=Wo(!0);function sr(f,g){return f&&Ii(f,g,wt)}function Oi(f,g){return f&&bo(f,g,wt)}function Fn(f,g){return br(g,function(N){return mr(f[N])})}function Dr(f,g){g=xr(g,f);for(var N=0,W=g.length;f!=null&&N<W;)f=f[ur(g[N++])];return N&&N==W?f:n}function So(f,g,N){var W=g(f);return Qe(f)?W:Sr(W,N(f))}function Dt(f){return f==null?f===n?We:be:Or&&Or in gt(f)?Qc(f):hf(f)}function Pi(f,g){return f>g}function mc(f,g){return f!=null&&pt.call(f,g)}function yc(f,g){return f!=null&&g in gt(f)}function bc(f,g,N){return f>=Pt(g,N)&&f<xt(g,N)}function Ri(f,g,N){for(var W=N?pi:bn,K=f[0].length,ne=f.length,ue=ne,ce=_e(ne),pe=1/0,Ee=[];ue--;){var Ae=f[ue];ue&&g&&(Ae=yt(Ae,Ut(g))),pe=Pt(Ae.length,pe),ce[ue]=!N&&(g||K>=120&&Ae.length>=120)?new Rr(ue&&Ae):n}Ae=f[0];var $e=-1,Ne=ce[0];e:for(;++$e<K&&Ee.length<pe;){var Ue=Ae[$e],qe=g?g(Ue):Ue;if(Ue=N||Ue!==0?Ue:0,!(Ne?en(Ne,qe):W(Ee,qe,N))){for(ue=ne;--ue;){var tt=ce[ue];if(!(tt?en(tt,qe):W(f[ue],qe,N)))continue e}Ne&&Ne.push(qe),Ee.push(Ue)}}return Ee}function Sc(f,g,N,W){return sr(f,function(K,ne,ue){g(W,N(K),ne,ue)}),W}function un(f,g,N){g=xr(g,f),f=ls(f,g);var W=f==null?f:f[ur(er(g))];return W==null?n:zt(W,f,N)}function To(f){return Tt(f)&&Dt(f)==Xe}function Tc(f){return Tt(f)&&Dt(f)==Ze}function Cc(f){return Tt(f)&&Dt(f)==ft}function cn(f,g,N,W,K){return f===g?!0:f==null||g==null||!Tt(f)&&!Tt(g)?f!==f&&g!==g:Ec(f,g,N,W,cn,K)}function Ec(f,g,N,W,K,ne){var ue=Qe(f),ce=Qe(g),pe=ue?Ge:Rt(f),Ee=ce?Ge:Rt(g);pe=pe==Xe?ye:pe,Ee=Ee==Xe?ye:Ee;var Ae=pe==ye,$e=Ee==ye,Ne=pe==Ee;if(Ne&&$r(f)){if(!$r(g))return!1;ue=!0,Ae=!1}if(Ne&&!Ae)return ne||(ne=new nr),ue||Jr(f)?ts(f,g,N,W,K,ne):Zc(f,g,pe,N,W,K,ne);if(!(N&O)){var Ue=Ae&&pt.call(f,"__wrapped__"),qe=$e&&pt.call(g,"__wrapped__");if(Ue||qe){var tt=Ue?f.value():f,Ke=qe?g.value():g;return ne||(ne=new nr),K(tt,Ke,N,W,ne)}}return Ne?(ne||(ne=new nr),Jc(f,g,N,W,K,ne)):!1}function Ac(f){return Tt(f)&&Rt(f)==ae}function Mi(f,g,N,W){var K=N.length,ne=K,ue=!W;if(f==null)return!ne;for(f=gt(f);K--;){var ce=N[K];if(ue&&ce[2]?ce[1]!==f[ce[0]]:!(ce[0]in f))return!1}for(;++K<ne;){ce=N[K];var pe=ce[0],Ee=f[pe],Ae=ce[1];if(ue&&ce[2]){if(Ee===n&&!(pe in f))return!1}else{var $e=new nr;if(W)var Ne=W(Ee,Ae,pe,f,g,$e);if(!(Ne===n?cn(Ae,Ee,O|R,W,$e):Ne))return!1}}return!0}function Co(f){if(!bt(f)||lf(f))return!1;var g=mr(f)?Eu:pl;return g.test(Br(f))}function xc(f){return Tt(f)&&Dt(f)==xe}function wc(f){return Tt(f)&&Rt(f)==Pe}function $c(f){return Tt(f)&&ri(f.length)&&!!_t[Dt(f)]}function Eo(f){return typeof f=="function"?f:f==null?Ht:typeof f=="object"?Qe(f)?wo(f[0],f[1]):xo(f):Ys(f)}function Di(f){if(!hn(f))return Ou(f);var g=[];for(var N in gt(f))pt.call(f,N)&&N!="constructor"&&g.push(N);return g}function Ic(f){if(!bt(f))return df(f);var g=hn(f),N=[];for(var W in f)W=="constructor"&&(g||!pt.call(f,W))||N.push(W);return N}function Li(f,g){return f<g}function Ao(f,g){var N=-1,W=Ft(f)?_e(f.length):[];return Er(f,function(K,ne,ue){W[++N]=g(K,ne,ue)}),W}function xo(f){var g=Xi(f);return g.length==1&&g[0][2]?os(g[0][0],g[0][1]):function(N){return N===f||Mi(N,f,g)}}function wo(f,g){return Ji(f)&&as(g)?os(ur(f),g):function(N){var W=la(N,f);return W===n&&W===g?ua(N,f):cn(g,W,O|R)}}function Vn(f,g,N,W,K){f!==g&&Ii(g,function(ne,ue){if(K||(K=new nr),bt(ne))Oc(f,g,ue,N,Vn,W,K);else{var ce=W?W(ea(f,ue),ne,ue+"",f,g,K):n;ce===n&&(ce=ne),wi(f,ue,ce)}},Vt)}function Oc(f,g,N,W,K,ne,ue){var ce=ea(f,N),pe=ea(g,N),Ee=ue.get(pe);if(Ee){wi(f,N,Ee);return}var Ae=ne?ne(ce,pe,N+"",f,g,ue):n,$e=Ae===n;if($e){var Ne=Qe(pe),Ue=!Ne&&$r(pe),qe=!Ne&&!Ue&&Jr(pe);Ae=pe,Ne||Ue||qe?Qe(ce)?Ae=ce:Ct(ce)?Ae=Nt(ce):Ue?($e=!1,Ae=Fo(pe,!0)):qe?($e=!1,Ae=Vo(pe,!0)):Ae=[]:vn(pe)||kr(pe)?(Ae=ce,kr(ce)?Ae=Bs(ce):(!bt(ce)||mr(ce))&&(Ae=is(pe))):$e=!1}$e&&(ue.set(pe,Ae),K(Ae,pe,W,ne,ue),ue.delete(pe)),wi(f,N,Ae)}function $o(f,g){var N=f.length;if(!!N)return g+=g<0?N:0,gr(g,N)?f[g]:n}function Io(f,g,N){g.length?g=yt(g,function(ne){return Qe(ne)?function(ue){return Dr(ue,ne.length===1?ne[0]:ne)}:ne}):g=[Ht];var W=-1;g=yt(g,Ut(Ye()));var K=Ao(f,function(ne,ue,ce){var pe=yt(g,function(Ee){return Ee(ne)});return{criteria:pe,index:++W,value:ne}});return ru(K,function(ne,ue){return Uc(ne,ue,N)})}function Pc(f,g){return Oo(f,g,function(N,W){return ua(f,W)})}function Oo(f,g,N){for(var W=-1,K=g.length,ne={};++W<K;){var ue=g[W],ce=Dr(f,ue);N(ce,ue)&&fn(ne,xr(ue,f),ce)}return ne}function Rc(f){return function(g){return Dr(g,f)}}function Bi(f,g,N,W){var K=W?tu:Hr,ne=-1,ue=g.length,ce=f;for(f===g&&(g=Nt(g)),N&&(ce=yt(f,Ut(N)));++ne<ue;)for(var pe=0,Ee=g[ne],Ae=N?N(Ee):Ee;(pe=K(ce,Ae,pe,W))>-1;)ce!==f&&On.call(ce,pe,1),On.call(f,pe,1);return f}function Po(f,g){for(var N=f?g.length:0,W=N-1;N--;){var K=g[N];if(N==W||K!==ne){var ne=K;gr(K)?On.call(f,K,1):Vi(f,K)}}return f}function ki(f,g){return f+Mn(co()*(g-f+1))}function Mc(f,g,N,W){for(var K=-1,ne=xt(Rn((g-f)/(N||1)),0),ue=_e(ne);ne--;)ue[W?ne:++K]=f,f+=N;return ue}function Ni(f,g){var N="";if(!f||g<1||g>ge)return N;do g%2&&(N+=f),g=Mn(g/2),g&&(f+=f);while(g);return N}function nt(f,g){return ta(ss(f,g,Ht),f+"")}function Dc(f){return po(Qr(f))}function Lc(f,g){var N=Qr(f);return Xn(N,Mr(g,0,N.length))}function fn(f,g,N,W){if(!bt(f))return f;g=xr(g,f);for(var K=-1,ne=g.length,ue=ne-1,ce=f;ce!=null&&++K<ne;){var pe=ur(g[K]),Ee=N;if(pe==="__proto__"||pe==="constructor"||pe==="prototype")return f;if(K!=ue){var Ae=ce[pe];Ee=W?W(Ae,pe,ce):n,Ee===n&&(Ee=bt(Ae)?Ae:gr(g[K+1])?[]:{})}sn(ce,pe,Ee),ce=ce[pe]}return f}var Ro=Dn?function(f,g){return Dn.set(f,g),f}:Ht,Bc=Pn?function(f,g){return Pn(f,"toString",{configurable:!0,enumerable:!1,value:fa(g),writable:!0})}:Ht;function kc(f){return Xn(Qr(f))}function Qt(f,g,N){var W=-1,K=f.length;g<0&&(g=-g>K?0:K+g),N=N>K?K:N,N<0&&(N+=K),K=g>N?0:N-g>>>0,g>>>=0;for(var ne=_e(K);++W<K;)ne[W]=f[W+g];return ne}function Nc(f,g){var N;return Er(f,function(W,K,ne){return N=g(W,K,ne),!N}),!!N}function Hn(f,g,N){var W=0,K=f==null?W:f.length;if(typeof g=="number"&&g===g&&K<=Oe){for(;W<K;){var ne=W+K>>>1,ue=f[ne];ue!==null&&!Wt(ue)&&(N?ue<=g:ue<g)?W=ne+1:K=ne}return K}return Fi(f,g,Ht,N)}function Fi(f,g,N,W){var K=0,ne=f==null?0:f.length;if(ne===0)return 0;g=N(g);for(var ue=g!==g,ce=g===null,pe=Wt(g),Ee=g===n;K<ne;){var Ae=Mn((K+ne)/2),$e=N(f[Ae]),Ne=$e!==n,Ue=$e===null,qe=$e===$e,tt=Wt($e);if(ue)var Ke=W||qe;else Ee?Ke=qe&&(W||Ne):ce?Ke=qe&&Ne&&(W||!Ue):pe?Ke=qe&&Ne&&!Ue&&(W||!tt):Ue||tt?Ke=!1:Ke=W?$e<=g:$e<g;Ke?K=Ae+1:ne=Ae}return Pt(ne,me)}function Mo(f,g){for(var N=-1,W=f.length,K=0,ne=[];++N<W;){var ue=f[N],ce=g?g(ue):ue;if(!N||!ir(ce,pe)){var pe=ce;ne[K++]=ue===0?0:ue}}return ne}function Do(f){return typeof f=="number"?f:Wt(f)?ke:+f}function Gt(f){if(typeof f=="string")return f;if(Qe(f))return yt(f,Gt)+"";if(Wt(f))return fo?fo.call(f):"";var g=f+"";return g=="0"&&1/f==-Se?"-0":g}function Ar(f,g,N){var W=-1,K=bn,ne=f.length,ue=!0,ce=[],pe=ce;if(N)ue=!1,K=pi;else if(ne>=a){var Ee=g?null:jc(f);if(Ee)return Tn(Ee);ue=!1,K=en,pe=new Rr}else pe=g?[]:ce;e:for(;++W<ne;){var Ae=f[W],$e=g?g(Ae):Ae;if(Ae=N||Ae!==0?Ae:0,ue&&$e===$e){for(var Ne=pe.length;Ne--;)if(pe[Ne]===$e)continue e;g&&pe.push($e),ce.push(Ae)}else K(pe,$e,N)||(pe!==ce&&pe.push($e),ce.push(Ae))}return ce}function Vi(f,g){return g=xr(g,f),f=ls(f,g),f==null||delete f[ur(er(g))]}function Lo(f,g,N,W){return fn(f,g,N(Dr(f,g)),W)}function zn(f,g,N,W){for(var K=f.length,ne=W?K:-1;(W?ne--:++ne<K)&&g(f[ne],ne,f););return N?Qt(f,W?0:ne,W?ne+1:K):Qt(f,W?ne+1:0,W?K:ne)}function Bo(f,g){var N=f;return N instanceof ut&&(N=N.value()),vi(g,function(W,K){return K.func.apply(K.thisArg,Sr([W],K.args))},N)}function Hi(f,g,N){var W=f.length;if(W<2)return W?Ar(f[0]):[];for(var K=-1,ne=_e(W);++K<W;)for(var ue=f[K],ce=-1;++ce<W;)ce!=K&&(ne[K]=ln(ne[K]||ue,f[ce],g,N));return Ar(Ot(ne,1),g,N)}function ko(f,g,N){for(var W=-1,K=f.length,ne=g.length,ue={};++W<K;){var ce=W<ne?g[W]:n;N(ue,f[W],ce)}return ue}function zi(f){return Ct(f)?f:[]}function Ui(f){return typeof f=="function"?f:Ht}function xr(f,g){return Qe(f)?f:Ji(f,g)?[f]:ds(ht(f))}var Fc=nt;function wr(f,g,N){var W=f.length;return N=N===n?W:N,!g&&N>=W?f:Qt(f,g,N)}var No=Au||function(f){return It.clearTimeout(f)};function Fo(f,g){if(g)return f.slice();var N=f.length,W=ao?ao(N):new f.constructor(N);return f.copy(W),W}function Gi(f){var g=new f.constructor(f.byteLength);return new $n(g).set(new $n(f)),g}function Vc(f,g){var N=g?Gi(f.buffer):f.buffer;return new f.constructor(N,f.byteOffset,f.byteLength)}function Hc(f){var g=new f.constructor(f.source,Sa.exec(f));return g.lastIndex=f.lastIndex,g}function zc(f){return on?gt(on.call(f)):{}}function Vo(f,g){var N=g?Gi(f.buffer):f.buffer;return new f.constructor(N,f.byteOffset,f.length)}function Ho(f,g){if(f!==g){var N=f!==n,W=f===null,K=f===f,ne=Wt(f),ue=g!==n,ce=g===null,pe=g===g,Ee=Wt(g);if(!ce&&!Ee&&!ne&&f>g||ne&&ue&&pe&&!ce&&!Ee||W&&ue&&pe||!N&&pe||!K)return 1;if(!W&&!ne&&!Ee&&f<g||Ee&&N&&K&&!W&&!ne||ce&&N&&K||!ue&&K||!pe)return-1}return 0}function Uc(f,g,N){for(var W=-1,K=f.criteria,ne=g.criteria,ue=K.length,ce=N.length;++W<ue;){var pe=Ho(K[W],ne[W]);if(pe){if(W>=ce)return pe;var Ee=N[W];return pe*(Ee=="desc"?-1:1)}}return f.index-g.index}function zo(f,g,N,W){for(var K=-1,ne=f.length,ue=N.length,ce=-1,pe=g.length,Ee=xt(ne-ue,0),Ae=_e(pe+Ee),$e=!W;++ce<pe;)Ae[ce]=g[ce];for(;++K<ue;)($e||K<ne)&&(Ae[N[K]]=f[K]);for(;Ee--;)Ae[ce++]=f[K++];return Ae}function Uo(f,g,N,W){for(var K=-1,ne=f.length,ue=-1,ce=N.length,pe=-1,Ee=g.length,Ae=xt(ne-ce,0),$e=_e(Ae+Ee),Ne=!W;++K<Ae;)$e[K]=f[K];for(var Ue=K;++pe<Ee;)$e[Ue+pe]=g[pe];for(;++ue<ce;)(Ne||K<ne)&&($e[Ue+N[ue]]=f[K++]);return $e}function Nt(f,g){var N=-1,W=f.length;for(g||(g=_e(W));++N<W;)g[N]=f[N];return g}function lr(f,g,N,W){var K=!N;N||(N={});for(var ne=-1,ue=g.length;++ne<ue;){var ce=g[ne],pe=W?W(N[ce],f[ce],ce,N,f):n;pe===n&&(pe=f[ce]),K?hr(N,ce,pe):sn(N,ce,pe)}return N}function Gc(f,g){return lr(f,Zi(f),g)}function Wc(f,g){return lr(f,rs(f),g)}function Un(f,g){return function(N,W){var K=Qe(N)?jl:dc,ne=g?g():{};return K(N,f,Ye(W,2),ne)}}function jr(f){return nt(function(g,N){var W=-1,K=N.length,ne=K>1?N[K-1]:n,ue=K>2?N[2]:n;for(ne=f.length>3&&typeof ne=="function"?(K--,ne):n,ue&&Lt(N[0],N[1],ue)&&(ne=K<3?n:ne,K=1),g=gt(g);++W<K;){var ce=N[W];ce&&f(g,ce,W,ne)}return g})}function Go(f,g){return function(N,W){if(N==null)return N;if(!Ft(N))return f(N,W);for(var K=N.length,ne=g?K:-1,ue=gt(N);(g?ne--:++ne<K)&&W(ue[ne],ne,ue)!==!1;);return N}}function Wo(f){return function(g,N,W){for(var K=-1,ne=gt(g),ue=W(g),ce=ue.length;ce--;){var pe=ue[f?ce:++K];if(N(ne[pe],pe,ne)===!1)break}return g}}function Yc(f,g,N){var W=g&M,K=dn(f);function ne(){var ue=this&&this!==It&&this instanceof ne?K:f;return ue.apply(W?N:this,arguments)}return ne}function Yo(f){return function(g){g=ht(g);var N=zr(g)?rr(g):n,W=N?N[0]:g.charAt(0),K=N?wr(N,1).join(""):g.slice(1);return W[f]()+K}}function Xr(f){return function(g){return vi(Gs(Us(g).replace(Ll,"")),f,"")}}function dn(f){return function(){var g=arguments;switch(g.length){case 0:return new f;case 1:return new f(g[0]);case 2:return new f(g[0],g[1]);case 3:return new f(g[0],g[1],g[2]);case 4:return new f(g[0],g[1],g[2],g[3]);case 5:return new f(g[0],g[1],g[2],g[3],g[4]);case 6:return new f(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new f(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var N=Kr(f.prototype),W=f.apply(N,g);return bt(W)?W:N}}function qc(f,g,N){var W=dn(f);function K(){for(var ne=arguments.length,ue=_e(ne),ce=ne,pe=Zr(K);ce--;)ue[ce]=arguments[ce];var Ee=ne<3&&ue[0]!==pe&&ue[ne-1]!==pe?[]:Tr(ue,pe);if(ne-=Ee.length,ne<N)return Zo(f,g,Gn,K.placeholder,n,ue,Ee,n,n,N-ne);var Ae=this&&this!==It&&this instanceof K?W:f;return zt(Ae,this,ue)}return K}function qo(f){return function(g,N,W){var K=gt(g);if(!Ft(g)){var ne=Ye(N,3);g=wt(g),N=function(ce){return ne(K[ce],ce,K)}}var ue=f(g,N,W);return ue>-1?K[ne?g[ue]:ue]:n}}function Ko(f){return vr(function(g){var N=g.length,W=N,K=Zt.prototype.thru;for(f&&g.reverse();W--;){var ne=g[W];if(typeof ne!="function")throw new Xt(s);if(K&&!ue&&Kn(ne)=="wrapper")var ue=new Zt([],!0)}for(W=ue?W:N;++W<N;){ne=g[W];var ce=Kn(ne),pe=ce=="wrapper"?ji(ne):n;pe&&Qi(pe[0])&&pe[1]==(Z|G|X|Q)&&!pe[4].length&&pe[9]==1?ue=ue[Kn(pe[0])].apply(ue,pe[3]):ue=ne.length==1&&Qi(ne)?ue[ce]():ue.thru(ne)}return function(){var Ee=arguments,Ae=Ee[0];if(ue&&Ee.length==1&&Qe(Ae))return ue.plant(Ae).value();for(var $e=0,Ne=N?g[$e].apply(this,Ee):Ae;++$e<N;)Ne=g[$e].call(this,Ne);return Ne}})}function Gn(f,g,N,W,K,ne,ue,ce,pe,Ee){var Ae=g&Z,$e=g&M,Ne=g&F,Ue=g&(G|Y),qe=g&ie,tt=Ne?n:dn(f);function Ke(){for(var ot=arguments.length,ct=_e(ot),Yt=ot;Yt--;)ct[Yt]=arguments[Yt];if(Ue)var Bt=Zr(Ke),qt=iu(ct,Bt);if(W&&(ct=zo(ct,W,K,Ue)),ne&&(ct=Uo(ct,ne,ue,Ue)),ot-=qt,Ue&&ot<Ee){var Et=Tr(ct,Bt);return Zo(f,g,Gn,Ke.placeholder,N,ct,Et,ce,pe,Ee-ot)}var ar=$e?N:this,yr=Ne?ar[f]:f;return ot=ct.length,ce?ct=pf(ct,ce):qe&&ot>1&&ct.reverse(),Ae&&pe<ot&&(ct.length=pe),this&&this!==It&&this instanceof Ke&&(yr=tt||dn(yr)),yr.apply(ar,ct)}return Ke}function jo(f,g){return function(N,W){return Sc(N,f,g(W),{})}}function Wn(f,g){return function(N,W){var K;if(N===n&&W===n)return g;if(N!==n&&(K=N),W!==n){if(K===n)return W;typeof N=="string"||typeof W=="string"?(N=Gt(N),W=Gt(W)):(N=Do(N),W=Do(W)),K=f(N,W)}return K}}function Wi(f){return vr(function(g){return g=yt(g,Ut(Ye())),nt(function(N){var W=this;return f(g,function(K){return zt(K,W,N)})})})}function Yn(f,g){g=g===n?" ":Gt(g);var N=g.length;if(N<2)return N?Ni(g,f):g;var W=Ni(g,Rn(f/Ur(g)));return zr(g)?wr(rr(W),0,f).join(""):W.slice(0,f)}function Kc(f,g,N,W){var K=g&M,ne=dn(f);function ue(){for(var ce=-1,pe=arguments.length,Ee=-1,Ae=W.length,$e=_e(Ae+pe),Ne=this&&this!==It&&this instanceof ue?ne:f;++Ee<Ae;)$e[Ee]=W[Ee];for(;pe--;)$e[Ee++]=arguments[++ce];return zt(Ne,K?N:this,$e)}return ue}function Xo(f){return function(g,N,W){return W&&typeof W!="number"&&Lt(g,N,W)&&(N=W=n),g=_r(g),N===n?(N=g,g=0):N=_r(N),W=W===n?g<N?1:-1:_r(W),Mc(g,N,W,f)}}function qn(f){return function(g,N){return typeof g=="string"&&typeof N=="string"||(g=tr(g),N=tr(N)),f(g,N)}}function Zo(f,g,N,W,K,ne,ue,ce,pe,Ee){var Ae=g&G,$e=Ae?ue:n,Ne=Ae?n:ue,Ue=Ae?ne:n,qe=Ae?n:ne;g|=Ae?X:q,g&=~(Ae?q:X),g&V||(g&=~(M|F));var tt=[f,g,K,Ue,$e,qe,Ne,ce,pe,Ee],Ke=N.apply(n,tt);return Qi(f)&&us(Ke,tt),Ke.placeholder=W,cs(Ke,f,g)}function Yi(f){var g=At[f];return function(N,W){if(N=tr(N),W=W==null?0:Pt(et(W),292),W&&uo(N)){var K=(ht(N)+"e").split("e"),ne=g(K[0]+"e"+(+K[1]+W));return K=(ht(ne)+"e").split("e"),+(K[0]+"e"+(+K[1]-W))}return g(N)}}var jc=Yr&&1/Tn(new Yr([,-0]))[1]==Se?function(f){return new Yr(f)}:pa;function Jo(f){return function(g){var N=Rt(g);return N==ae?Ti(g):N==Pe?fu(g):nu(g,f(g))}}function pr(f,g,N,W,K,ne,ue,ce){var pe=g&F;if(!pe&&typeof f!="function")throw new Xt(s);var Ee=W?W.length:0;if(Ee||(g&=~(X|q),W=K=n),ue=ue===n?ue:xt(et(ue),0),ce=ce===n?ce:et(ce),Ee-=K?K.length:0,g&q){var Ae=W,$e=K;W=K=n}var Ne=pe?n:ji(f),Ue=[f,g,N,W,K,Ae,$e,ne,ue,ce];if(Ne&&ff(Ue,Ne),f=Ue[0],g=Ue[1],N=Ue[2],W=Ue[3],K=Ue[4],ce=Ue[9]=Ue[9]===n?pe?0:f.length:xt(Ue[9]-Ee,0),!ce&&g&(G|Y)&&(g&=~(G|Y)),!g||g==M)var qe=Yc(f,g,N);else g==G||g==Y?qe=qc(f,g,ce):(g==X||g==(M|X))&&!K.length?qe=Kc(f,g,N,W):qe=Gn.apply(n,Ue);var tt=Ne?Ro:us;return cs(tt(qe,Ue),f,g)}function Qo(f,g,N,W){return f===n||ir(f,Wr[N])&&!pt.call(W,N)?g:f}function es(f,g,N,W,K,ne){return bt(f)&&bt(g)&&(ne.set(g,f),Vn(f,g,n,es,ne),ne.delete(g)),f}function Xc(f){return vn(f)?n:f}function ts(f,g,N,W,K,ne){var ue=N&O,ce=f.length,pe=g.length;if(ce!=pe&&!(ue&&pe>ce))return!1;var Ee=ne.get(f),Ae=ne.get(g);if(Ee&&Ae)return Ee==g&&Ae==f;var $e=-1,Ne=!0,Ue=N&R?new Rr:n;for(ne.set(f,g),ne.set(g,f);++$e<ce;){var qe=f[$e],tt=g[$e];if(W)var Ke=ue?W(tt,qe,$e,g,f,ne):W(qe,tt,$e,f,g,ne);if(Ke!==n){if(Ke)continue;Ne=!1;break}if(Ue){if(!gi(g,function(ot,ct){if(!en(Ue,ct)&&(qe===ot||K(qe,ot,N,W,ne)))return Ue.push(ct)})){Ne=!1;break}}else if(!(qe===tt||K(qe,tt,N,W,ne))){Ne=!1;break}}return ne.delete(f),ne.delete(g),Ne}function Zc(f,g,N,W,K,ne,ue){switch(N){case it:if(f.byteLength!=g.byteLength||f.byteOffset!=g.byteOffset)return!1;f=f.buffer,g=g.buffer;case Ze:return!(f.byteLength!=g.byteLength||!ne(new $n(f),new $n(g)));case at:case ft:case ve:return ir(+f,+g);case De:return f.name==g.name&&f.message==g.message;case xe:case we:return f==g+"";case ae:var ce=Ti;case Pe:var pe=W&O;if(ce||(ce=Tn),f.size!=g.size&&!pe)return!1;var Ee=ue.get(f);if(Ee)return Ee==g;W|=R,ue.set(f,g);var Ae=ts(ce(f),ce(g),W,K,ne,ue);return ue.delete(f),Ae;case Fe:if(on)return on.call(f)==on.call(g)}return!1}function Jc(f,g,N,W,K,ne){var ue=N&O,ce=qi(f),pe=ce.length,Ee=qi(g),Ae=Ee.length;if(pe!=Ae&&!ue)return!1;for(var $e=pe;$e--;){var Ne=ce[$e];if(!(ue?Ne in g:pt.call(g,Ne)))return!1}var Ue=ne.get(f),qe=ne.get(g);if(Ue&&qe)return Ue==g&&qe==f;var tt=!0;ne.set(f,g),ne.set(g,f);for(var Ke=ue;++$e<pe;){Ne=ce[$e];var ot=f[Ne],ct=g[Ne];if(W)var Yt=ue?W(ct,ot,Ne,g,f,ne):W(ot,ct,Ne,f,g,ne);if(!(Yt===n?ot===ct||K(ot,ct,N,W,ne):Yt)){tt=!1;break}Ke||(Ke=Ne=="constructor")}if(tt&&!Ke){var Bt=f.constructor,qt=g.constructor;Bt!=qt&&"constructor"in f&&"constructor"in g&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof qt=="function"&&qt instanceof qt)&&(tt=!1)}return ne.delete(f),ne.delete(g),tt}function vr(f){return ta(ss(f,n,gs),f+"")}function qi(f){return So(f,wt,Zi)}function Ki(f){return So(f,Vt,rs)}var ji=Dn?function(f){return Dn.get(f)}:pa;function Kn(f){for(var g=f.name+"",N=qr[g],W=pt.call(qr,g)?N.length:0;W--;){var K=N[W],ne=K.func;if(ne==null||ne==f)return K.name}return g}function Zr(f){var g=pt.call(ee,"placeholder")?ee:f;return g.placeholder}function Ye(){var f=ee.iteratee||da;return f=f===da?Eo:f,arguments.length?f(arguments[0],arguments[1]):f}function jn(f,g){var N=f.__data__;return sf(g)?N[typeof g=="string"?"string":"hash"]:N.map}function Xi(f){for(var g=wt(f),N=g.length;N--;){var W=g[N],K=f[W];g[N]=[W,K,as(K)]}return g}function Lr(f,g){var N=lu(f,g);return Co(N)?N:n}function Qc(f){var g=pt.call(f,Or),N=f[Or];try{f[Or]=n;var W=!0}catch{}var K=xn.call(f);return W&&(g?f[Or]=N:delete f[Or]),K}var Zi=Ei?function(f){return f==null?[]:(f=gt(f),br(Ei(f),function(g){return so.call(f,g)}))}:va,rs=Ei?function(f){for(var g=[];f;)Sr(g,Zi(f)),f=In(f);return g}:va,Rt=Dt;(Ai&&Rt(new Ai(new ArrayBuffer(1)))!=it||rn&&Rt(new rn)!=ae||xi&&Rt(xi.resolve())!=Re||Yr&&Rt(new Yr)!=Pe||nn&&Rt(new nn)!=ze)&&(Rt=function(f){var g=Dt(f),N=g==ye?f.constructor:n,W=N?Br(N):"";if(W)switch(W){case Du:return it;case Lu:return ae;case Bu:return Re;case ku:return Pe;case Nu:return ze}return g});function ef(f,g,N){for(var W=-1,K=N.length;++W<K;){var ne=N[W],ue=ne.size;switch(ne.type){case"drop":f+=ue;break;case"dropRight":g-=ue;break;case"take":g=Pt(g,f+ue);break;case"takeRight":f=xt(f,g-ue);break}}return{start:f,end:g}}function tf(f){var g=f.match(ol);return g?g[1].split(sl):[]}function ns(f,g,N){g=xr(g,f);for(var W=-1,K=g.length,ne=!1;++W<K;){var ue=ur(g[W]);if(!(ne=f!=null&&N(f,ue)))break;f=f[ue]}return ne||++W!=K?ne:(K=f==null?0:f.length,!!K&&ri(K)&&gr(ue,K)&&(Qe(f)||kr(f)))}function rf(f){var g=f.length,N=new f.constructor(g);return g&&typeof f[0]=="string"&&pt.call(f,"index")&&(N.index=f.index,N.input=f.input),N}function is(f){return typeof f.constructor=="function"&&!hn(f)?Kr(In(f)):{}}function nf(f,g,N){var W=f.constructor;switch(g){case Ze:return Gi(f);case at:case ft:return new W(+f);case it:return Vc(f,N);case vt:case St:case Mt:case or:case Nr:case cr:case Fr:case $t:case kt:return Vo(f,N);case ae:return new W;case ve:case we:return new W(f);case xe:return Hc(f);case Pe:return new W;case Fe:return zc(f)}}function af(f,g){var N=g.length;if(!N)return f;var W=N-1;return g[W]=(N>1?"& ":"")+g[W],g=g.join(N>2?", ":" "),f.replace(al,`{
170
- /* [wrapped with `+g+`] */
171
- `)}function of(f){return Qe(f)||kr(f)||!!(lo&&f&&f[lo])}function gr(f,g){var N=typeof f;return g=g==null?ge:g,!!g&&(N=="number"||N!="symbol"&&gl.test(f))&&f>-1&&f%1==0&&f<g}function Lt(f,g,N){if(!bt(N))return!1;var W=typeof g;return(W=="number"?Ft(N)&&gr(g,N.length):W=="string"&&g in N)?ir(N[g],f):!1}function Ji(f,g){if(Qe(f))return!1;var N=typeof f;return N=="number"||N=="symbol"||N=="boolean"||f==null||Wt(f)?!0:tl.test(f)||!el.test(f)||g!=null&&f in gt(g)}function sf(f){var g=typeof f;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?f!=="__proto__":f===null}function Qi(f){var g=Kn(f),N=ee[g];if(typeof N!="function"||!(g in ut.prototype))return!1;if(f===N)return!0;var W=ji(N);return!!W&&f===W[0]}function lf(f){return!!io&&io in f}var uf=En?mr:ga;function hn(f){var g=f&&f.constructor,N=typeof g=="function"&&g.prototype||Wr;return f===N}function as(f){return f===f&&!bt(f)}function os(f,g){return function(N){return N==null?!1:N[f]===g&&(g!==n||f in gt(N))}}function cf(f){var g=ei(f,function(W){return N.size===c&&N.clear(),W}),N=g.cache;return g}function ff(f,g){var N=f[1],W=g[1],K=N|W,ne=K<(M|F|Z),ue=W==Z&&N==G||W==Z&&N==Q&&f[7].length<=g[8]||W==(Z|Q)&&g[7].length<=g[8]&&N==G;if(!(ne||ue))return f;W&M&&(f[2]=g[2],K|=N&M?0:V);var ce=g[3];if(ce){var pe=f[3];f[3]=pe?zo(pe,ce,g[4]):ce,f[4]=pe?Tr(f[3],d):g[4]}return ce=g[5],ce&&(pe=f[5],f[5]=pe?Uo(pe,ce,g[6]):ce,f[6]=pe?Tr(f[5],d):g[6]),ce=g[7],ce&&(f[7]=ce),W&Z&&(f[8]=f[8]==null?g[8]:Pt(f[8],g[8])),f[9]==null&&(f[9]=g[9]),f[0]=g[0],f[1]=K,f}function df(f){var g=[];if(f!=null)for(var N in gt(f))g.push(N);return g}function hf(f){return xn.call(f)}function ss(f,g,N){return g=xt(g===n?f.length-1:g,0),function(){for(var W=arguments,K=-1,ne=xt(W.length-g,0),ue=_e(ne);++K<ne;)ue[K]=W[g+K];K=-1;for(var ce=_e(g+1);++K<g;)ce[K]=W[K];return ce[g]=N(ue),zt(f,this,ce)}}function ls(f,g){return g.length<2?f:Dr(f,Qt(g,0,-1))}function pf(f,g){for(var N=f.length,W=Pt(g.length,N),K=Nt(f);W--;){var ne=g[W];f[W]=gr(ne,N)?K[ne]:n}return f}function ea(f,g){if(!(g==="constructor"&&typeof f[g]=="function")&&g!="__proto__")return f[g]}var us=fs(Ro),pn=wu||function(f,g){return It.setTimeout(f,g)},ta=fs(Bc);function cs(f,g,N){var W=g+"";return ta(f,af(W,vf(tf(W),N)))}function fs(f){var g=0,N=0;return function(){var W=Pu(),K=oe-(W-N);if(N=W,K>0){if(++g>=te)return arguments[0]}else g=0;return f.apply(n,arguments)}}function Xn(f,g){var N=-1,W=f.length,K=W-1;for(g=g===n?W:g;++N<g;){var ne=ki(N,K),ue=f[ne];f[ne]=f[N],f[N]=ue}return f.length=g,f}var ds=cf(function(f){var g=[];return f.charCodeAt(0)===46&&g.push(""),f.replace(rl,function(N,W,K,ne){g.push(K?ne.replace(cl,"$1"):W||N)}),g});function ur(f){if(typeof f=="string"||Wt(f))return f;var g=f+"";return g=="0"&&1/f==-Se?"-0":g}function Br(f){if(f!=null){try{return An.call(f)}catch{}try{return f+""}catch{}}return""}function vf(f,g){return jt(Ve,function(N){var W="_."+N[0];g&N[1]&&!bn(f,W)&&f.push(W)}),f.sort()}function hs(f){if(f instanceof ut)return f.clone();var g=new Zt(f.__wrapped__,f.__chain__);return g.__actions__=Nt(f.__actions__),g.__index__=f.__index__,g.__values__=f.__values__,g}function gf(f,g,N){(N?Lt(f,g,N):g===n)?g=1:g=xt(et(g),0);var W=f==null?0:f.length;if(!W||g<1)return[];for(var K=0,ne=0,ue=_e(Rn(W/g));K<W;)ue[ne++]=Qt(f,K,K+=g);return ue}function mf(f){for(var g=-1,N=f==null?0:f.length,W=0,K=[];++g<N;){var ne=f[g];ne&&(K[W++]=ne)}return K}function _f(){var f=arguments.length;if(!f)return[];for(var g=_e(f-1),N=arguments[0],W=f;W--;)g[W-1]=arguments[W];return Sr(Qe(N)?Nt(N):[N],Ot(g,1))}var yf=nt(function(f,g){return Ct(f)?ln(f,Ot(g,1,Ct,!0)):[]}),bf=nt(function(f,g){var N=er(g);return Ct(N)&&(N=n),Ct(f)?ln(f,Ot(g,1,Ct,!0),Ye(N,2)):[]}),Sf=nt(function(f,g){var N=er(g);return Ct(N)&&(N=n),Ct(f)?ln(f,Ot(g,1,Ct,!0),n,N):[]});function Tf(f,g,N){var W=f==null?0:f.length;return W?(g=N||g===n?1:et(g),Qt(f,g<0?0:g,W)):[]}function Cf(f,g,N){var W=f==null?0:f.length;return W?(g=N||g===n?1:et(g),g=W-g,Qt(f,0,g<0?0:g)):[]}function Ef(f,g){return f&&f.length?zn(f,Ye(g,3),!0,!0):[]}function Af(f,g){return f&&f.length?zn(f,Ye(g,3),!0):[]}function xf(f,g,N,W){var K=f==null?0:f.length;return K?(N&&typeof N!="number"&&Lt(f,g,N)&&(N=0,W=K),gc(f,g,N,W)):[]}function ps(f,g,N){var W=f==null?0:f.length;if(!W)return-1;var K=N==null?0:et(N);return K<0&&(K=xt(W+K,0)),Sn(f,Ye(g,3),K)}function vs(f,g,N){var W=f==null?0:f.length;if(!W)return-1;var K=W-1;return N!==n&&(K=et(N),K=N<0?xt(W+K,0):Pt(K,W-1)),Sn(f,Ye(g,3),K,!0)}function gs(f){var g=f==null?0:f.length;return g?Ot(f,1):[]}function wf(f){var g=f==null?0:f.length;return g?Ot(f,Se):[]}function $f(f,g){var N=f==null?0:f.length;return N?(g=g===n?1:et(g),Ot(f,g)):[]}function If(f){for(var g=-1,N=f==null?0:f.length,W={};++g<N;){var K=f[g];W[K[0]]=K[1]}return W}function ms(f){return f&&f.length?f[0]:n}function Of(f,g,N){var W=f==null?0:f.length;if(!W)return-1;var K=N==null?0:et(N);return K<0&&(K=xt(W+K,0)),Hr(f,g,K)}function Pf(f){var g=f==null?0:f.length;return g?Qt(f,0,-1):[]}var Rf=nt(function(f){var g=yt(f,zi);return g.length&&g[0]===f[0]?Ri(g):[]}),Mf=nt(function(f){var g=er(f),N=yt(f,zi);return g===er(N)?g=n:N.pop(),N.length&&N[0]===f[0]?Ri(N,Ye(g,2)):[]}),Df=nt(function(f){var g=er(f),N=yt(f,zi);return g=typeof g=="function"?g:n,g&&N.pop(),N.length&&N[0]===f[0]?Ri(N,n,g):[]});function Lf(f,g){return f==null?"":Iu.call(f,g)}function er(f){var g=f==null?0:f.length;return g?f[g-1]:n}function Bf(f,g,N){var W=f==null?0:f.length;if(!W)return-1;var K=W;return N!==n&&(K=et(N),K=K<0?xt(W+K,0):Pt(K,W-1)),g===g?hu(f,g,K):Sn(f,Xa,K,!0)}function kf(f,g){return f&&f.length?$o(f,et(g)):n}var Nf=nt(_s);function _s(f,g){return f&&f.length&&g&&g.length?Bi(f,g):f}function Ff(f,g,N){return f&&f.length&&g&&g.length?Bi(f,g,Ye(N,2)):f}function Vf(f,g,N){return f&&f.length&&g&&g.length?Bi(f,g,n,N):f}var Hf=vr(function(f,g){var N=f==null?0:f.length,W=$i(f,g);return Po(f,yt(g,function(K){return gr(K,N)?+K:K}).sort(Ho)),W});function zf(f,g){var N=[];if(!(f&&f.length))return N;var W=-1,K=[],ne=f.length;for(g=Ye(g,3);++W<ne;){var ue=f[W];g(ue,W,f)&&(N.push(ue),K.push(W))}return Po(f,K),N}function ra(f){return f==null?f:Mu.call(f)}function Uf(f,g,N){var W=f==null?0:f.length;return W?(N&&typeof N!="number"&&Lt(f,g,N)?(g=0,N=W):(g=g==null?0:et(g),N=N===n?W:et(N)),Qt(f,g,N)):[]}function Gf(f,g){return Hn(f,g)}function Wf(f,g,N){return Fi(f,g,Ye(N,2))}function Yf(f,g){var N=f==null?0:f.length;if(N){var W=Hn(f,g);if(W<N&&ir(f[W],g))return W}return-1}function qf(f,g){return Hn(f,g,!0)}function Kf(f,g,N){return Fi(f,g,Ye(N,2),!0)}function jf(f,g){var N=f==null?0:f.length;if(N){var W=Hn(f,g,!0)-1;if(ir(f[W],g))return W}return-1}function Xf(f){return f&&f.length?Mo(f):[]}function Zf(f,g){return f&&f.length?Mo(f,Ye(g,2)):[]}function Jf(f){var g=f==null?0:f.length;return g?Qt(f,1,g):[]}function Qf(f,g,N){return f&&f.length?(g=N||g===n?1:et(g),Qt(f,0,g<0?0:g)):[]}function ed(f,g,N){var W=f==null?0:f.length;return W?(g=N||g===n?1:et(g),g=W-g,Qt(f,g<0?0:g,W)):[]}function td(f,g){return f&&f.length?zn(f,Ye(g,3),!1,!0):[]}function rd(f,g){return f&&f.length?zn(f,Ye(g,3)):[]}var nd=nt(function(f){return Ar(Ot(f,1,Ct,!0))}),id=nt(function(f){var g=er(f);return Ct(g)&&(g=n),Ar(Ot(f,1,Ct,!0),Ye(g,2))}),ad=nt(function(f){var g=er(f);return g=typeof g=="function"?g:n,Ar(Ot(f,1,Ct,!0),n,g)});function od(f){return f&&f.length?Ar(f):[]}function sd(f,g){return f&&f.length?Ar(f,Ye(g,2)):[]}function ld(f,g){return g=typeof g=="function"?g:n,f&&f.length?Ar(f,n,g):[]}function na(f){if(!(f&&f.length))return[];var g=0;return f=br(f,function(N){if(Ct(N))return g=xt(N.length,g),!0}),bi(g,function(N){return yt(f,mi(N))})}function ys(f,g){if(!(f&&f.length))return[];var N=na(f);return g==null?N:yt(N,function(W){return zt(g,n,W)})}var ud=nt(function(f,g){return Ct(f)?ln(f,g):[]}),cd=nt(function(f){return Hi(br(f,Ct))}),fd=nt(function(f){var g=er(f);return Ct(g)&&(g=n),Hi(br(f,Ct),Ye(g,2))}),dd=nt(function(f){var g=er(f);return g=typeof g=="function"?g:n,Hi(br(f,Ct),n,g)}),hd=nt(na);function pd(f,g){return ko(f||[],g||[],sn)}function vd(f,g){return ko(f||[],g||[],fn)}var gd=nt(function(f){var g=f.length,N=g>1?f[g-1]:n;return N=typeof N=="function"?(f.pop(),N):n,ys(f,N)});function bs(f){var g=ee(f);return g.__chain__=!0,g}function md(f,g){return g(f),f}function Zn(f,g){return g(f)}var _d=vr(function(f){var g=f.length,N=g?f[0]:0,W=this.__wrapped__,K=function(ne){return $i(ne,f)};return g>1||this.__actions__.length||!(W instanceof ut)||!gr(N)?this.thru(K):(W=W.slice(N,+N+(g?1:0)),W.__actions__.push({func:Zn,args:[K],thisArg:n}),new Zt(W,this.__chain__).thru(function(ne){return g&&!ne.length&&ne.push(n),ne}))});function yd(){return bs(this)}function bd(){return new Zt(this.value(),this.__chain__)}function Sd(){this.__values__===n&&(this.__values__=Ds(this.value()));var f=this.__index__>=this.__values__.length,g=f?n:this.__values__[this.__index__++];return{done:f,value:g}}function Td(){return this}function Cd(f){for(var g,N=this;N instanceof Bn;){var W=hs(N);W.__index__=0,W.__values__=n,g?K.__wrapped__=W:g=W;var K=W;N=N.__wrapped__}return K.__wrapped__=f,g}function Ed(){var f=this.__wrapped__;if(f instanceof ut){var g=f;return this.__actions__.length&&(g=new ut(this)),g=g.reverse(),g.__actions__.push({func:Zn,args:[ra],thisArg:n}),new Zt(g,this.__chain__)}return this.thru(ra)}function Ad(){return Bo(this.__wrapped__,this.__actions__)}var xd=Un(function(f,g,N){pt.call(f,N)?++f[N]:hr(f,N,1)});function wd(f,g,N){var W=Qe(f)?Ka:vc;return N&&Lt(f,g,N)&&(g=n),W(f,Ye(g,3))}function $d(f,g){var N=Qe(f)?br:yo;return N(f,Ye(g,3))}var Id=qo(ps),Od=qo(vs);function Pd(f,g){return Ot(Jn(f,g),1)}function Rd(f,g){return Ot(Jn(f,g),Se)}function Md(f,g,N){return N=N===n?1:et(N),Ot(Jn(f,g),N)}function Ss(f,g){var N=Qe(f)?jt:Er;return N(f,Ye(g,3))}function Ts(f,g){var N=Qe(f)?Xl:_o;return N(f,Ye(g,3))}var Dd=Un(function(f,g,N){pt.call(f,N)?f[N].push(g):hr(f,N,[g])});function Ld(f,g,N,W){f=Ft(f)?f:Qr(f),N=N&&!W?et(N):0;var K=f.length;return N<0&&(N=xt(K+N,0)),ni(f)?N<=K&&f.indexOf(g,N)>-1:!!K&&Hr(f,g,N)>-1}var Bd=nt(function(f,g,N){var W=-1,K=typeof g=="function",ne=Ft(f)?_e(f.length):[];return Er(f,function(ue){ne[++W]=K?zt(g,ue,N):un(ue,g,N)}),ne}),kd=Un(function(f,g,N){hr(f,N,g)});function Jn(f,g){var N=Qe(f)?yt:Ao;return N(f,Ye(g,3))}function Nd(f,g,N,W){return f==null?[]:(Qe(g)||(g=g==null?[]:[g]),N=W?n:N,Qe(N)||(N=N==null?[]:[N]),Io(f,g,N))}var Fd=Un(function(f,g,N){f[N?0:1].push(g)},function(){return[[],[]]});function Vd(f,g,N){var W=Qe(f)?vi:Ja,K=arguments.length<3;return W(f,Ye(g,4),N,K,Er)}function Hd(f,g,N){var W=Qe(f)?Zl:Ja,K=arguments.length<3;return W(f,Ye(g,4),N,K,_o)}function zd(f,g){var N=Qe(f)?br:yo;return N(f,ti(Ye(g,3)))}function Ud(f){var g=Qe(f)?po:Dc;return g(f)}function Gd(f,g,N){(N?Lt(f,g,N):g===n)?g=1:g=et(g);var W=Qe(f)?cc:Lc;return W(f,g)}function Wd(f){var g=Qe(f)?fc:kc;return g(f)}function Yd(f){if(f==null)return 0;if(Ft(f))return ni(f)?Ur(f):f.length;var g=Rt(f);return g==ae||g==Pe?f.size:Di(f).length}function qd(f,g,N){var W=Qe(f)?gi:Nc;return N&&Lt(f,g,N)&&(g=n),W(f,Ye(g,3))}var Kd=nt(function(f,g){if(f==null)return[];var N=g.length;return N>1&&Lt(f,g[0],g[1])?g=[]:N>2&&Lt(g[0],g[1],g[2])&&(g=[g[0]]),Io(f,Ot(g,1),[])}),Qn=xu||function(){return It.Date.now()};function jd(f,g){if(typeof g!="function")throw new Xt(s);return f=et(f),function(){if(--f<1)return g.apply(this,arguments)}}function Cs(f,g,N){return g=N?n:g,g=f&&g==null?f.length:g,pr(f,Z,n,n,n,n,g)}function Es(f,g){var N;if(typeof g!="function")throw new Xt(s);return f=et(f),function(){return--f>0&&(N=g.apply(this,arguments)),f<=1&&(g=n),N}}var ia=nt(function(f,g,N){var W=M;if(N.length){var K=Tr(N,Zr(ia));W|=X}return pr(f,W,g,N,K)}),As=nt(function(f,g,N){var W=M|F;if(N.length){var K=Tr(N,Zr(As));W|=X}return pr(g,W,f,N,K)});function xs(f,g,N){g=N?n:g;var W=pr(f,G,n,n,n,n,n,g);return W.placeholder=xs.placeholder,W}function ws(f,g,N){g=N?n:g;var W=pr(f,Y,n,n,n,n,n,g);return W.placeholder=ws.placeholder,W}function $s(f,g,N){var W,K,ne,ue,ce,pe,Ee=0,Ae=!1,$e=!1,Ne=!0;if(typeof f!="function")throw new Xt(s);g=tr(g)||0,bt(N)&&(Ae=!!N.leading,$e="maxWait"in N,ne=$e?xt(tr(N.maxWait)||0,g):ne,Ne="trailing"in N?!!N.trailing:Ne);function Ue(Et){var ar=W,yr=K;return W=K=n,Ee=Et,ue=f.apply(yr,ar),ue}function qe(Et){return Ee=Et,ce=pn(ot,g),Ae?Ue(Et):ue}function tt(Et){var ar=Et-pe,yr=Et-Ee,qs=g-ar;return $e?Pt(qs,ne-yr):qs}function Ke(Et){var ar=Et-pe,yr=Et-Ee;return pe===n||ar>=g||ar<0||$e&&yr>=ne}function ot(){var Et=Qn();if(Ke(Et))return ct(Et);ce=pn(ot,tt(Et))}function ct(Et){return ce=n,Ne&&W?Ue(Et):(W=K=n,ue)}function Yt(){ce!==n&&No(ce),Ee=0,W=pe=K=ce=n}function Bt(){return ce===n?ue:ct(Qn())}function qt(){var Et=Qn(),ar=Ke(Et);if(W=arguments,K=this,pe=Et,ar){if(ce===n)return qe(pe);if($e)return No(ce),ce=pn(ot,g),Ue(pe)}return ce===n&&(ce=pn(ot,g)),ue}return qt.cancel=Yt,qt.flush=Bt,qt}var Xd=nt(function(f,g){return mo(f,1,g)}),Zd=nt(function(f,g,N){return mo(f,tr(g)||0,N)});function Jd(f){return pr(f,ie)}function ei(f,g){if(typeof f!="function"||g!=null&&typeof g!="function")throw new Xt(s);var N=function(){var W=arguments,K=g?g.apply(this,W):W[0],ne=N.cache;if(ne.has(K))return ne.get(K);var ue=f.apply(this,W);return N.cache=ne.set(K,ue)||ne,ue};return N.cache=new(ei.Cache||dr),N}ei.Cache=dr;function ti(f){if(typeof f!="function")throw new Xt(s);return function(){var g=arguments;switch(g.length){case 0:return!f.call(this);case 1:return!f.call(this,g[0]);case 2:return!f.call(this,g[0],g[1]);case 3:return!f.call(this,g[0],g[1],g[2])}return!f.apply(this,g)}}function Qd(f){return Es(2,f)}var eh=Fc(function(f,g){g=g.length==1&&Qe(g[0])?yt(g[0],Ut(Ye())):yt(Ot(g,1),Ut(Ye()));var N=g.length;return nt(function(W){for(var K=-1,ne=Pt(W.length,N);++K<ne;)W[K]=g[K].call(this,W[K]);return zt(f,this,W)})}),aa=nt(function(f,g){var N=Tr(g,Zr(aa));return pr(f,X,n,g,N)}),Is=nt(function(f,g){var N=Tr(g,Zr(Is));return pr(f,q,n,g,N)}),th=vr(function(f,g){return pr(f,Q,n,n,n,g)});function rh(f,g){if(typeof f!="function")throw new Xt(s);return g=g===n?g:et(g),nt(f,g)}function nh(f,g){if(typeof f!="function")throw new Xt(s);return g=g==null?0:xt(et(g),0),nt(function(N){var W=N[g],K=wr(N,0,g);return W&&Sr(K,W),zt(f,this,K)})}function ih(f,g,N){var W=!0,K=!0;if(typeof f!="function")throw new Xt(s);return bt(N)&&(W="leading"in N?!!N.leading:W,K="trailing"in N?!!N.trailing:K),$s(f,g,{leading:W,maxWait:g,trailing:K})}function ah(f){return Cs(f,1)}function oh(f,g){return aa(Ui(g),f)}function sh(){if(!arguments.length)return[];var f=arguments[0];return Qe(f)?f:[f]}function lh(f){return Jt(f,I)}function uh(f,g){return g=typeof g=="function"?g:n,Jt(f,I,g)}function ch(f){return Jt(f,v|I)}function fh(f,g){return g=typeof g=="function"?g:n,Jt(f,v|I,g)}function dh(f,g){return g==null||go(f,g,wt(g))}function ir(f,g){return f===g||f!==f&&g!==g}var hh=qn(Pi),ph=qn(function(f,g){return f>=g}),kr=To(function(){return arguments}())?To:function(f){return Tt(f)&&pt.call(f,"callee")&&!so.call(f,"callee")},Qe=_e.isArray,vh=za?Ut(za):Tc;function Ft(f){return f!=null&&ri(f.length)&&!mr(f)}function Ct(f){return Tt(f)&&Ft(f)}function gh(f){return f===!0||f===!1||Tt(f)&&Dt(f)==at}var $r=$u||ga,mh=Ua?Ut(Ua):Cc;function _h(f){return Tt(f)&&f.nodeType===1&&!vn(f)}function yh(f){if(f==null)return!0;if(Ft(f)&&(Qe(f)||typeof f=="string"||typeof f.splice=="function"||$r(f)||Jr(f)||kr(f)))return!f.length;var g=Rt(f);if(g==ae||g==Pe)return!f.size;if(hn(f))return!Di(f).length;for(var N in f)if(pt.call(f,N))return!1;return!0}function bh(f,g){return cn(f,g)}function Sh(f,g,N){N=typeof N=="function"?N:n;var W=N?N(f,g):n;return W===n?cn(f,g,n,N):!!W}function oa(f){if(!Tt(f))return!1;var g=Dt(f);return g==De||g==Le||typeof f.message=="string"&&typeof f.name=="string"&&!vn(f)}function Th(f){return typeof f=="number"&&uo(f)}function mr(f){if(!bt(f))return!1;var g=Dt(f);return g==Be||g==se||g==st||g==Me}function Os(f){return typeof f=="number"&&f==et(f)}function ri(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ge}function bt(f){var g=typeof f;return f!=null&&(g=="object"||g=="function")}function Tt(f){return f!=null&&typeof f=="object"}var Ps=Ga?Ut(Ga):Ac;function Ch(f,g){return f===g||Mi(f,g,Xi(g))}function Eh(f,g,N){return N=typeof N=="function"?N:n,Mi(f,g,Xi(g),N)}function Ah(f){return Rs(f)&&f!=+f}function xh(f){if(uf(f))throw new Je(o);return Co(f)}function wh(f){return f===null}function $h(f){return f==null}function Rs(f){return typeof f=="number"||Tt(f)&&Dt(f)==ve}function vn(f){if(!Tt(f)||Dt(f)!=ye)return!1;var g=In(f);if(g===null)return!0;var N=pt.call(g,"constructor")&&g.constructor;return typeof N=="function"&&N instanceof N&&An.call(N)==Tu}var sa=Wa?Ut(Wa):xc;function Ih(f){return Os(f)&&f>=-ge&&f<=ge}var Ms=Ya?Ut(Ya):wc;function ni(f){return typeof f=="string"||!Qe(f)&&Tt(f)&&Dt(f)==we}function Wt(f){return typeof f=="symbol"||Tt(f)&&Dt(f)==Fe}var Jr=qa?Ut(qa):$c;function Oh(f){return f===n}function Ph(f){return Tt(f)&&Rt(f)==ze}function Rh(f){return Tt(f)&&Dt(f)==je}var Mh=qn(Li),Dh=qn(function(f,g){return f<=g});function Ds(f){if(!f)return[];if(Ft(f))return ni(f)?rr(f):Nt(f);if(tn&&f[tn])return cu(f[tn]());var g=Rt(f),N=g==ae?Ti:g==Pe?Tn:Qr;return N(f)}function _r(f){if(!f)return f===0?f:0;if(f=tr(f),f===Se||f===-Se){var g=f<0?-1:1;return g*Te}return f===f?f:0}function et(f){var g=_r(f),N=g%1;return g===g?N?g-N:g:0}function Ls(f){return f?Mr(et(f),0,Ie):0}function tr(f){if(typeof f=="number")return f;if(Wt(f))return ke;if(bt(f)){var g=typeof f.valueOf=="function"?f.valueOf():f;f=bt(g)?g+"":g}if(typeof f!="string")return f===0?f:+f;f=Qa(f);var N=hl.test(f);return N||vl.test(f)?ql(f.slice(2),N?2:8):dl.test(f)?ke:+f}function Bs(f){return lr(f,Vt(f))}function Lh(f){return f?Mr(et(f),-ge,ge):f===0?f:0}function ht(f){return f==null?"":Gt(f)}var Bh=jr(function(f,g){if(hn(g)||Ft(g)){lr(g,wt(g),f);return}for(var N in g)pt.call(g,N)&&sn(f,N,g[N])}),ks=jr(function(f,g){lr(g,Vt(g),f)}),ii=jr(function(f,g,N,W){lr(g,Vt(g),f,W)}),kh=jr(function(f,g,N,W){lr(g,wt(g),f,W)}),Nh=vr($i);function Fh(f,g){var N=Kr(f);return g==null?N:vo(N,g)}var Vh=nt(function(f,g){f=gt(f);var N=-1,W=g.length,K=W>2?g[2]:n;for(K&&Lt(g[0],g[1],K)&&(W=1);++N<W;)for(var ne=g[N],ue=Vt(ne),ce=-1,pe=ue.length;++ce<pe;){var Ee=ue[ce],Ae=f[Ee];(Ae===n||ir(Ae,Wr[Ee])&&!pt.call(f,Ee))&&(f[Ee]=ne[Ee])}return f}),Hh=nt(function(f){return f.push(n,es),zt(Ns,n,f)});function zh(f,g){return ja(f,Ye(g,3),sr)}function Uh(f,g){return ja(f,Ye(g,3),Oi)}function Gh(f,g){return f==null?f:Ii(f,Ye(g,3),Vt)}function Wh(f,g){return f==null?f:bo(f,Ye(g,3),Vt)}function Yh(f,g){return f&&sr(f,Ye(g,3))}function qh(f,g){return f&&Oi(f,Ye(g,3))}function Kh(f){return f==null?[]:Fn(f,wt(f))}function jh(f){return f==null?[]:Fn(f,Vt(f))}function la(f,g,N){var W=f==null?n:Dr(f,g);return W===n?N:W}function Xh(f,g){return f!=null&&ns(f,g,mc)}function ua(f,g){return f!=null&&ns(f,g,yc)}var Zh=jo(function(f,g,N){g!=null&&typeof g.toString!="function"&&(g=xn.call(g)),f[g]=N},fa(Ht)),Jh=jo(function(f,g,N){g!=null&&typeof g.toString!="function"&&(g=xn.call(g)),pt.call(f,g)?f[g].push(N):f[g]=[N]},Ye),Qh=nt(un);function wt(f){return Ft(f)?ho(f):Di(f)}function Vt(f){return Ft(f)?ho(f,!0):Ic(f)}function ep(f,g){var N={};return g=Ye(g,3),sr(f,function(W,K,ne){hr(N,g(W,K,ne),W)}),N}function tp(f,g){var N={};return g=Ye(g,3),sr(f,function(W,K,ne){hr(N,K,g(W,K,ne))}),N}var rp=jr(function(f,g,N){Vn(f,g,N)}),Ns=jr(function(f,g,N,W){Vn(f,g,N,W)}),np=vr(function(f,g){var N={};if(f==null)return N;var W=!1;g=yt(g,function(ne){return ne=xr(ne,f),W||(W=ne.length>1),ne}),lr(f,Ki(f),N),W&&(N=Jt(N,v|$|I,Xc));for(var K=g.length;K--;)Vi(N,g[K]);return N});function ip(f,g){return Fs(f,ti(Ye(g)))}var ap=vr(function(f,g){return f==null?{}:Pc(f,g)});function Fs(f,g){if(f==null)return{};var N=yt(Ki(f),function(W){return[W]});return g=Ye(g),Oo(f,N,function(W,K){return g(W,K[0])})}function op(f,g,N){g=xr(g,f);var W=-1,K=g.length;for(K||(K=1,f=n);++W<K;){var ne=f==null?n:f[ur(g[W])];ne===n&&(W=K,ne=N),f=mr(ne)?ne.call(f):ne}return f}function sp(f,g,N){return f==null?f:fn(f,g,N)}function lp(f,g,N,W){return W=typeof W=="function"?W:n,f==null?f:fn(f,g,N,W)}var Vs=Jo(wt),Hs=Jo(Vt);function up(f,g,N){var W=Qe(f),K=W||$r(f)||Jr(f);if(g=Ye(g,4),N==null){var ne=f&&f.constructor;K?N=W?new ne:[]:bt(f)?N=mr(ne)?Kr(In(f)):{}:N={}}return(K?jt:sr)(f,function(ue,ce,pe){return g(N,ue,ce,pe)}),N}function cp(f,g){return f==null?!0:Vi(f,g)}function fp(f,g,N){return f==null?f:Lo(f,g,Ui(N))}function dp(f,g,N,W){return W=typeof W=="function"?W:n,f==null?f:Lo(f,g,Ui(N),W)}function Qr(f){return f==null?[]:Si(f,wt(f))}function hp(f){return f==null?[]:Si(f,Vt(f))}function pp(f,g,N){return N===n&&(N=g,g=n),N!==n&&(N=tr(N),N=N===N?N:0),g!==n&&(g=tr(g),g=g===g?g:0),Mr(tr(f),g,N)}function vp(f,g,N){return g=_r(g),N===n?(N=g,g=0):N=_r(N),f=tr(f),bc(f,g,N)}function gp(f,g,N){if(N&&typeof N!="boolean"&&Lt(f,g,N)&&(g=N=n),N===n&&(typeof g=="boolean"?(N=g,g=n):typeof f=="boolean"&&(N=f,f=n)),f===n&&g===n?(f=0,g=1):(f=_r(f),g===n?(g=f,f=0):g=_r(g)),f>g){var W=f;f=g,g=W}if(N||f%1||g%1){var K=co();return Pt(f+K*(g-f+Yl("1e-"+((K+"").length-1))),g)}return ki(f,g)}var mp=Xr(function(f,g,N){return g=g.toLowerCase(),f+(N?zs(g):g)});function zs(f){return ca(ht(f).toLowerCase())}function Us(f){return f=ht(f),f&&f.replace(ml,au).replace(Bl,"")}function _p(f,g,N){f=ht(f),g=Gt(g);var W=f.length;N=N===n?W:Mr(et(N),0,W);var K=N;return N-=g.length,N>=0&&f.slice(N,K)==g}function yp(f){return f=ht(f),f&&Zs.test(f)?f.replace(ya,ou):f}function bp(f){return f=ht(f),f&&nl.test(f)?f.replace(ai,"\\$&"):f}var Sp=Xr(function(f,g,N){return f+(N?"-":"")+g.toLowerCase()}),Tp=Xr(function(f,g,N){return f+(N?" ":"")+g.toLowerCase()}),Cp=Yo("toLowerCase");function Ep(f,g,N){f=ht(f),g=et(g);var W=g?Ur(f):0;if(!g||W>=g)return f;var K=(g-W)/2;return Yn(Mn(K),N)+f+Yn(Rn(K),N)}function Ap(f,g,N){f=ht(f),g=et(g);var W=g?Ur(f):0;return g&&W<g?f+Yn(g-W,N):f}function xp(f,g,N){f=ht(f),g=et(g);var W=g?Ur(f):0;return g&&W<g?Yn(g-W,N)+f:f}function wp(f,g,N){return N||g==null?g=0:g&&(g=+g),Ru(ht(f).replace(oi,""),g||0)}function $p(f,g,N){return(N?Lt(f,g,N):g===n)?g=1:g=et(g),Ni(ht(f),g)}function Ip(){var f=arguments,g=ht(f[0]);return f.length<3?g:g.replace(f[1],f[2])}var Op=Xr(function(f,g,N){return f+(N?"_":"")+g.toLowerCase()});function Pp(f,g,N){return N&&typeof N!="number"&&Lt(f,g,N)&&(g=N=n),N=N===n?Ie:N>>>0,N?(f=ht(f),f&&(typeof g=="string"||g!=null&&!sa(g))&&(g=Gt(g),!g&&zr(f))?wr(rr(f),0,N):f.split(g,N)):[]}var Rp=Xr(function(f,g,N){return f+(N?" ":"")+ca(g)});function Mp(f,g,N){return f=ht(f),N=N==null?0:Mr(et(N),0,f.length),g=Gt(g),f.slice(N,N+g.length)==g}function Dp(f,g,N){var W=ee.templateSettings;N&&Lt(f,g,N)&&(g=n),f=ht(f),g=ii({},g,W,Qo);var K=ii({},g.imports,W.imports,Qo),ne=wt(K),ue=Si(K,ne),ce,pe,Ee=0,Ae=g.interpolate||mn,$e="__p += '",Ne=Ci((g.escape||mn).source+"|"+Ae.source+"|"+(Ae===ba?fl:mn).source+"|"+(g.evaluate||mn).source+"|$","g"),Ue="//# sourceURL="+(pt.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hl+"]")+`
172
- `;f.replace(Ne,function(Ke,ot,ct,Yt,Bt,qt){return ct||(ct=Yt),$e+=f.slice(Ee,qt).replace(_l,su),ot&&(ce=!0,$e+=`' +
173
- __e(`+ot+`) +
174
- '`),Bt&&(pe=!0,$e+=`';
175
- `+Bt+`;
176
- __p += '`),ct&&($e+=`' +
177
- ((__t = (`+ct+`)) == null ? '' : __t) +
178
- '`),Ee=qt+Ke.length,Ke}),$e+=`';
179
- `;var qe=pt.call(g,"variable")&&g.variable;if(!qe)$e=`with (obj) {
180
- `+$e+`
181
- }
182
- `;else if(ul.test(qe))throw new Je(l);$e=(pe?$e.replace(gn,""):$e).replace(Ks,"$1").replace(js,"$1;"),$e="function("+(qe||"obj")+`) {
183
- `+(qe?"":`obj || (obj = {});
184
- `)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(pe?`, __j = Array.prototype.join;
185
- function print() { __p += __j.call(arguments, '') }
186
- `:`;
187
- `)+$e+`return __p
188
- }`;var tt=Ws(function(){return dt(ne,Ue+"return "+$e).apply(n,ue)});if(tt.source=$e,oa(tt))throw tt;return tt}function Lp(f){return ht(f).toLowerCase()}function Bp(f){return ht(f).toUpperCase()}function kp(f,g,N){if(f=ht(f),f&&(N||g===n))return Qa(f);if(!f||!(g=Gt(g)))return f;var W=rr(f),K=rr(g),ne=eo(W,K),ue=to(W,K)+1;return wr(W,ne,ue).join("")}function Np(f,g,N){if(f=ht(f),f&&(N||g===n))return f.slice(0,no(f)+1);if(!f||!(g=Gt(g)))return f;var W=rr(f),K=to(W,rr(g))+1;return wr(W,0,K).join("")}function Fp(f,g,N){if(f=ht(f),f&&(N||g===n))return f.replace(oi,"");if(!f||!(g=Gt(g)))return f;var W=rr(f),K=eo(W,rr(g));return wr(W,K).join("")}function Vp(f,g){var N=J,W=re;if(bt(g)){var K="separator"in g?g.separator:K;N="length"in g?et(g.length):N,W="omission"in g?Gt(g.omission):W}f=ht(f);var ne=f.length;if(zr(f)){var ue=rr(f);ne=ue.length}if(N>=ne)return f;var ce=N-Ur(W);if(ce<1)return W;var pe=ue?wr(ue,0,ce).join(""):f.slice(0,ce);if(K===n)return pe+W;if(ue&&(ce+=pe.length-ce),sa(K)){if(f.slice(ce).search(K)){var Ee,Ae=pe;for(K.global||(K=Ci(K.source,ht(Sa.exec(K))+"g")),K.lastIndex=0;Ee=K.exec(Ae);)var $e=Ee.index;pe=pe.slice(0,$e===n?ce:$e)}}else if(f.indexOf(Gt(K),ce)!=ce){var Ne=pe.lastIndexOf(K);Ne>-1&&(pe=pe.slice(0,Ne))}return pe+W}function Hp(f){return f=ht(f),f&&Xs.test(f)?f.replace(ma,pu):f}var zp=Xr(function(f,g,N){return f+(N?" ":"")+g.toUpperCase()}),ca=Yo("toUpperCase");function Gs(f,g,N){return f=ht(f),g=N?n:g,g===n?uu(f)?mu(f):eu(f):f.match(g)||[]}var Ws=nt(function(f,g){try{return zt(f,n,g)}catch(N){return oa(N)?N:new Je(N)}}),Up=vr(function(f,g){return jt(g,function(N){N=ur(N),hr(f,N,ia(f[N],f))}),f});function Gp(f){var g=f==null?0:f.length,N=Ye();return f=g?yt(f,function(W){if(typeof W[1]!="function")throw new Xt(s);return[N(W[0]),W[1]]}):[],nt(function(W){for(var K=-1;++K<g;){var ne=f[K];if(zt(ne[0],this,W))return zt(ne[1],this,W)}})}function Wp(f){return pc(Jt(f,v))}function fa(f){return function(){return f}}function Yp(f,g){return f==null||f!==f?g:f}var qp=Ko(),Kp=Ko(!0);function Ht(f){return f}function da(f){return Eo(typeof f=="function"?f:Jt(f,v))}function jp(f){return xo(Jt(f,v))}function Xp(f,g){return wo(f,Jt(g,v))}var Zp=nt(function(f,g){return function(N){return un(N,f,g)}}),Jp=nt(function(f,g){return function(N){return un(f,N,g)}});function ha(f,g,N){var W=wt(g),K=Fn(g,W);N==null&&!(bt(g)&&(K.length||!W.length))&&(N=g,g=f,f=this,K=Fn(g,wt(g)));var ne=!(bt(N)&&"chain"in N)||!!N.chain,ue=mr(f);return jt(K,function(ce){var pe=g[ce];f[ce]=pe,ue&&(f.prototype[ce]=function(){var Ee=this.__chain__;if(ne||Ee){var Ae=f(this.__wrapped__),$e=Ae.__actions__=Nt(this.__actions__);return $e.push({func:pe,args:arguments,thisArg:f}),Ae.__chain__=Ee,Ae}return pe.apply(f,Sr([this.value()],arguments))})}),f}function Qp(){return It._===this&&(It._=Cu),this}function pa(){}function ev(f){return f=et(f),nt(function(g){return $o(g,f)})}var tv=Wi(yt),rv=Wi(Ka),nv=Wi(gi);function Ys(f){return Ji(f)?mi(ur(f)):Rc(f)}function iv(f){return function(g){return f==null?n:Dr(f,g)}}var av=Xo(),ov=Xo(!0);function va(){return[]}function ga(){return!1}function sv(){return{}}function lv(){return""}function uv(){return!0}function cv(f,g){if(f=et(f),f<1||f>ge)return[];var N=Ie,W=Pt(f,Ie);g=Ye(g),f-=Ie;for(var K=bi(W,g);++N<f;)g(N);return K}function fv(f){return Qe(f)?yt(f,ur):Wt(f)?[f]:Nt(ds(ht(f)))}function dv(f){var g=++Su;return ht(f)+g}var hv=Wn(function(f,g){return f+g},0),pv=Yi("ceil"),vv=Wn(function(f,g){return f/g},1),gv=Yi("floor");function mv(f){return f&&f.length?Nn(f,Ht,Pi):n}function _v(f,g){return f&&f.length?Nn(f,Ye(g,2),Pi):n}function yv(f){return Za(f,Ht)}function bv(f,g){return Za(f,Ye(g,2))}function Sv(f){return f&&f.length?Nn(f,Ht,Li):n}function Tv(f,g){return f&&f.length?Nn(f,Ye(g,2),Li):n}var Cv=Wn(function(f,g){return f*g},1),Ev=Yi("round"),Av=Wn(function(f,g){return f-g},0);function xv(f){return f&&f.length?yi(f,Ht):0}function wv(f,g){return f&&f.length?yi(f,Ye(g,2)):0}return ee.after=jd,ee.ary=Cs,ee.assign=Bh,ee.assignIn=ks,ee.assignInWith=ii,ee.assignWith=kh,ee.at=Nh,ee.before=Es,ee.bind=ia,ee.bindAll=Up,ee.bindKey=As,ee.castArray=sh,ee.chain=bs,ee.chunk=gf,ee.compact=mf,ee.concat=_f,ee.cond=Gp,ee.conforms=Wp,ee.constant=fa,ee.countBy=xd,ee.create=Fh,ee.curry=xs,ee.curryRight=ws,ee.debounce=$s,ee.defaults=Vh,ee.defaultsDeep=Hh,ee.defer=Xd,ee.delay=Zd,ee.difference=yf,ee.differenceBy=bf,ee.differenceWith=Sf,ee.drop=Tf,ee.dropRight=Cf,ee.dropRightWhile=Ef,ee.dropWhile=Af,ee.fill=xf,ee.filter=$d,ee.flatMap=Pd,ee.flatMapDeep=Rd,ee.flatMapDepth=Md,ee.flatten=gs,ee.flattenDeep=wf,ee.flattenDepth=$f,ee.flip=Jd,ee.flow=qp,ee.flowRight=Kp,ee.fromPairs=If,ee.functions=Kh,ee.functionsIn=jh,ee.groupBy=Dd,ee.initial=Pf,ee.intersection=Rf,ee.intersectionBy=Mf,ee.intersectionWith=Df,ee.invert=Zh,ee.invertBy=Jh,ee.invokeMap=Bd,ee.iteratee=da,ee.keyBy=kd,ee.keys=wt,ee.keysIn=Vt,ee.map=Jn,ee.mapKeys=ep,ee.mapValues=tp,ee.matches=jp,ee.matchesProperty=Xp,ee.memoize=ei,ee.merge=rp,ee.mergeWith=Ns,ee.method=Zp,ee.methodOf=Jp,ee.mixin=ha,ee.negate=ti,ee.nthArg=ev,ee.omit=np,ee.omitBy=ip,ee.once=Qd,ee.orderBy=Nd,ee.over=tv,ee.overArgs=eh,ee.overEvery=rv,ee.overSome=nv,ee.partial=aa,ee.partialRight=Is,ee.partition=Fd,ee.pick=ap,ee.pickBy=Fs,ee.property=Ys,ee.propertyOf=iv,ee.pull=Nf,ee.pullAll=_s,ee.pullAllBy=Ff,ee.pullAllWith=Vf,ee.pullAt=Hf,ee.range=av,ee.rangeRight=ov,ee.rearg=th,ee.reject=zd,ee.remove=zf,ee.rest=rh,ee.reverse=ra,ee.sampleSize=Gd,ee.set=sp,ee.setWith=lp,ee.shuffle=Wd,ee.slice=Uf,ee.sortBy=Kd,ee.sortedUniq=Xf,ee.sortedUniqBy=Zf,ee.split=Pp,ee.spread=nh,ee.tail=Jf,ee.take=Qf,ee.takeRight=ed,ee.takeRightWhile=td,ee.takeWhile=rd,ee.tap=md,ee.throttle=ih,ee.thru=Zn,ee.toArray=Ds,ee.toPairs=Vs,ee.toPairsIn=Hs,ee.toPath=fv,ee.toPlainObject=Bs,ee.transform=up,ee.unary=ah,ee.union=nd,ee.unionBy=id,ee.unionWith=ad,ee.uniq=od,ee.uniqBy=sd,ee.uniqWith=ld,ee.unset=cp,ee.unzip=na,ee.unzipWith=ys,ee.update=fp,ee.updateWith=dp,ee.values=Qr,ee.valuesIn=hp,ee.without=ud,ee.words=Gs,ee.wrap=oh,ee.xor=cd,ee.xorBy=fd,ee.xorWith=dd,ee.zip=hd,ee.zipObject=pd,ee.zipObjectDeep=vd,ee.zipWith=gd,ee.entries=Vs,ee.entriesIn=Hs,ee.extend=ks,ee.extendWith=ii,ha(ee,ee),ee.add=hv,ee.attempt=Ws,ee.camelCase=mp,ee.capitalize=zs,ee.ceil=pv,ee.clamp=pp,ee.clone=lh,ee.cloneDeep=ch,ee.cloneDeepWith=fh,ee.cloneWith=uh,ee.conformsTo=dh,ee.deburr=Us,ee.defaultTo=Yp,ee.divide=vv,ee.endsWith=_p,ee.eq=ir,ee.escape=yp,ee.escapeRegExp=bp,ee.every=wd,ee.find=Id,ee.findIndex=ps,ee.findKey=zh,ee.findLast=Od,ee.findLastIndex=vs,ee.findLastKey=Uh,ee.floor=gv,ee.forEach=Ss,ee.forEachRight=Ts,ee.forIn=Gh,ee.forInRight=Wh,ee.forOwn=Yh,ee.forOwnRight=qh,ee.get=la,ee.gt=hh,ee.gte=ph,ee.has=Xh,ee.hasIn=ua,ee.head=ms,ee.identity=Ht,ee.includes=Ld,ee.indexOf=Of,ee.inRange=vp,ee.invoke=Qh,ee.isArguments=kr,ee.isArray=Qe,ee.isArrayBuffer=vh,ee.isArrayLike=Ft,ee.isArrayLikeObject=Ct,ee.isBoolean=gh,ee.isBuffer=$r,ee.isDate=mh,ee.isElement=_h,ee.isEmpty=yh,ee.isEqual=bh,ee.isEqualWith=Sh,ee.isError=oa,ee.isFinite=Th,ee.isFunction=mr,ee.isInteger=Os,ee.isLength=ri,ee.isMap=Ps,ee.isMatch=Ch,ee.isMatchWith=Eh,ee.isNaN=Ah,ee.isNative=xh,ee.isNil=$h,ee.isNull=wh,ee.isNumber=Rs,ee.isObject=bt,ee.isObjectLike=Tt,ee.isPlainObject=vn,ee.isRegExp=sa,ee.isSafeInteger=Ih,ee.isSet=Ms,ee.isString=ni,ee.isSymbol=Wt,ee.isTypedArray=Jr,ee.isUndefined=Oh,ee.isWeakMap=Ph,ee.isWeakSet=Rh,ee.join=Lf,ee.kebabCase=Sp,ee.last=er,ee.lastIndexOf=Bf,ee.lowerCase=Tp,ee.lowerFirst=Cp,ee.lt=Mh,ee.lte=Dh,ee.max=mv,ee.maxBy=_v,ee.mean=yv,ee.meanBy=bv,ee.min=Sv,ee.minBy=Tv,ee.stubArray=va,ee.stubFalse=ga,ee.stubObject=sv,ee.stubString=lv,ee.stubTrue=uv,ee.multiply=Cv,ee.nth=kf,ee.noConflict=Qp,ee.noop=pa,ee.now=Qn,ee.pad=Ep,ee.padEnd=Ap,ee.padStart=xp,ee.parseInt=wp,ee.random=gp,ee.reduce=Vd,ee.reduceRight=Hd,ee.repeat=$p,ee.replace=Ip,ee.result=op,ee.round=Ev,ee.runInContext=he,ee.sample=Ud,ee.size=Yd,ee.snakeCase=Op,ee.some=qd,ee.sortedIndex=Gf,ee.sortedIndexBy=Wf,ee.sortedIndexOf=Yf,ee.sortedLastIndex=qf,ee.sortedLastIndexBy=Kf,ee.sortedLastIndexOf=jf,ee.startCase=Rp,ee.startsWith=Mp,ee.subtract=Av,ee.sum=xv,ee.sumBy=wv,ee.template=Dp,ee.times=cv,ee.toFinite=_r,ee.toInteger=et,ee.toLength=Ls,ee.toLower=Lp,ee.toNumber=tr,ee.toSafeInteger=Lh,ee.toString=ht,ee.toUpper=Bp,ee.trim=kp,ee.trimEnd=Np,ee.trimStart=Fp,ee.truncate=Vp,ee.unescape=Hp,ee.uniqueId=dv,ee.upperCase=zp,ee.upperFirst=ca,ee.each=Ss,ee.eachRight=Ts,ee.first=ms,ha(ee,function(){var f={};return sr(ee,function(g,N){pt.call(ee.prototype,N)||(f[N]=g)}),f}(),{chain:!1}),ee.VERSION=i,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){ee[f].placeholder=ee}),jt(["drop","take"],function(f,g){ut.prototype[f]=function(N){N=N===n?1:xt(et(N),0);var W=this.__filtered__&&!g?new ut(this):this.clone();return W.__filtered__?W.__takeCount__=Pt(N,W.__takeCount__):W.__views__.push({size:Pt(N,Ie),type:f+(W.__dir__<0?"Right":"")}),W},ut.prototype[f+"Right"]=function(N){return this.reverse()[f](N).reverse()}}),jt(["filter","map","takeWhile"],function(f,g){var N=g+1,W=N==le||N==de;ut.prototype[f]=function(K){var ne=this.clone();return ne.__iteratees__.push({iteratee:Ye(K,3),type:N}),ne.__filtered__=ne.__filtered__||W,ne}}),jt(["head","last"],function(f,g){var N="take"+(g?"Right":"");ut.prototype[f]=function(){return this[N](1).value()[0]}}),jt(["initial","tail"],function(f,g){var N="drop"+(g?"":"Right");ut.prototype[f]=function(){return this.__filtered__?new ut(this):this[N](1)}}),ut.prototype.compact=function(){return this.filter(Ht)},ut.prototype.find=function(f){return this.filter(f).head()},ut.prototype.findLast=function(f){return this.reverse().find(f)},ut.prototype.invokeMap=nt(function(f,g){return typeof f=="function"?new ut(this):this.map(function(N){return un(N,f,g)})}),ut.prototype.reject=function(f){return this.filter(ti(Ye(f)))},ut.prototype.slice=function(f,g){f=et(f);var N=this;return N.__filtered__&&(f>0||g<0)?new ut(N):(f<0?N=N.takeRight(-f):f&&(N=N.drop(f)),g!==n&&(g=et(g),N=g<0?N.dropRight(-g):N.take(g-f)),N)},ut.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},ut.prototype.toArray=function(){return this.take(Ie)},sr(ut.prototype,function(f,g){var N=/^(?:filter|find|map|reject)|While$/.test(g),W=/^(?:head|last)$/.test(g),K=ee[W?"take"+(g=="last"?"Right":""):g],ne=W||/^find/.test(g);!K||(ee.prototype[g]=function(){var ue=this.__wrapped__,ce=W?[1]:arguments,pe=ue instanceof ut,Ee=ce[0],Ae=pe||Qe(ue),$e=function(ot){var ct=K.apply(ee,Sr([ot],ce));return W&&Ne?ct[0]:ct};Ae&&N&&typeof Ee=="function"&&Ee.length!=1&&(pe=Ae=!1);var Ne=this.__chain__,Ue=!!this.__actions__.length,qe=ne&&!Ne,tt=pe&&!Ue;if(!ne&&Ae){ue=tt?ue:new ut(this);var Ke=f.apply(ue,ce);return Ke.__actions__.push({func:Zn,args:[$e],thisArg:n}),new Zt(Ke,Ne)}return qe&&tt?f.apply(this,ce):(Ke=this.thru($e),qe?W?Ke.value()[0]:Ke.value():Ke)})}),jt(["pop","push","shift","sort","splice","unshift"],function(f){var g=Cn[f],N=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",W=/^(?:pop|shift)$/.test(f);ee.prototype[f]=function(){var K=arguments;if(W&&!this.__chain__){var ne=this.value();return g.apply(Qe(ne)?ne:[],K)}return this[N](function(ue){return g.apply(Qe(ue)?ue:[],K)})}}),sr(ut.prototype,function(f,g){var N=ee[g];if(N){var W=N.name+"";pt.call(qr,W)||(qr[W]=[]),qr[W].push({name:g,func:N})}}),qr[Gn(n,F).name]=[{name:"wrapper",func:n}],ut.prototype.clone=Fu,ut.prototype.reverse=Vu,ut.prototype.value=Hu,ee.prototype.at=_d,ee.prototype.chain=yd,ee.prototype.commit=bd,ee.prototype.next=Sd,ee.prototype.plant=Cd,ee.prototype.reverse=Ed,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=Ad,ee.prototype.first=ee.prototype.head,tn&&(ee.prototype[tn]=Td),ee},Gr=_u();Ir?((Ir.exports=Gr)._=Gr,di._=Gr):It._=Gr}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const _hoisted_1={class:"display-2"},_hoisted_2={class:"row mb-3"},_hoisted_3=createBaseVNode("label",{class:"col-sm-2 col-form-label",style:{width:"200px"}},"Update Rate (ms)",-1),_hoisted_4={class:"col-sm-10",style:{width:"200px"}},_sfc_main$1=defineComponent({__name:"MainView",setup(t){const r=ref(5e3),n=ref(""),i=ref(null),a=ref(null),o=ref(null),s=ref(null),l=ref(null);function u(d="no-cache"){fetch("/data.json",{cache:d}).then(v=>v.json()).then(v=>{const $=[];function I(O,R){const M=R[O.name];M===void 0?R[O.name]=O:_.isEqual(M==null?void 0:M.value,O.value)||(R[O.name]=O,$.push({type:O.type,name:O.name}))}n.value=v.view,v.data.forEach(O=>{O.type==="Variable"?I(O,variables):O.type==="ProgressBar"?I(O,progressbars):O.type==="Image"?I(O,images):O.type==="Logger"?I(O,logs):O.type==="LineChart"&&I(O,lineCharts)}),$.forEach(({type:O,name:R})=>{var M,F,V,G,Y,X,q,Z,Q,ie;O=="ProgressBar"?(F=(M=i.value)==null?void 0:M.subs.get(R))==null||F.update():O=="Variable"?(G=(V=a.value)==null?void 0:V.subs.get(R))==null||G.update():O=="Image"?(X=(Y=o.value)==null?void 0:Y.subs.get(R))==null||X.update():O=="Logger"?(Z=(q=s.value)==null?void 0:q.subs.get(R))==null||Z.update():O=="LineChart"&&((ie=(Q=l.value)==null?void 0:Q.subs.get(R))==null||ie.update())}),setTimeout(u,Math.max(100,r.value))}).catch(()=>{setTimeout(()=>u("reload"),Math.max(100,r.value))})}onMounted(()=>u());function c(){return Object.keys(lineCharts).length}return(d,v)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("h2",_hoisted_1,"Tensorneko Web Watcher::"+toDisplayString(n.value),1),createBaseVNode("div",_hoisted_2,[_hoisted_3,createBaseVNode("div",_hoisted_4,[withDirectives(createBaseVNode("input",{type:"number",class:"form-control",placeholder:"1000","onUpdate:modelValue":v[0]||(v[0]=$=>r.value=$)},null,512),[[vModelText,r.value]])])]),Object.keys(unref(progressbars)).length>0?(openBlock(),createBlock(_sfc_main$a,{key:0,ref_key:"progressbar",ref:i},null,512)):createCommentVNode("",!0),Object.keys(unref(variables)).length>0?(openBlock(),createBlock(_sfc_main$8,{key:1,ref_key:"variable",ref:a},null,512)):createCommentVNode("",!0),c()>0?(openBlock(),createBlock(_sfc_main$2,{key:2,ref_key:"plot",ref:l},null,512)):createCommentVNode("",!0),Object.keys(unref(images)).length>0?(openBlock(),createBlock(_sfc_main$6,{key:3,ref_key:"image",ref:o},null,512)):createCommentVNode("",!0),Object.keys(unref(logs)).length>0?(openBlock(),createBlock(_sfc_main$4,{key:4,ref_key:"logger",ref:s},null,512)):createCommentVNode("",!0)],64))}});var App_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({__name:"App",setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$1))}});var bootstrap="",bootstrapVue3="";const app=createApp(_sfc_main);app.use(plugin);app.mount("#app");