Files
sankey/dist/assets/index-B_uNEf-M.js
2026-02-14 15:49:09 +08:00

65 lines
886 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();function Ov(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},Js=[],Xa=()=>{},q_=()=>!1,Gu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Bv=e=>e.startsWith("onUpdate:"),jt=Object.assign,Nv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},oE=Object.prototype.hasOwnProperty,ot=(e,t)=>oE.call(e,t),Be=Array.isArray,Qs=e=>xl(e)==="[object Map]",$u=e=>xl(e)==="[object Set]",M1=e=>xl(e)==="[object Date]",Ge=e=>typeof e=="function",Bt=e=>typeof e=="string",Za=e=>typeof e=="symbol",ct=e=>e!==null&&typeof e=="object",J_=e=>(ct(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),Q_=Object.prototype.toString,xl=e=>Q_.call(e),fE=e=>xl(e).slice(8,-1),ey=e=>xl(e)==="[object Object]",Uv=e=>Bt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hf=Ov(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},lE=/-\w/g,ei=Xu(e=>e.replace(lE,t=>t.slice(1).toUpperCase())),uE=/\B([A-Z])/g,li=Xu(e=>e.replace(uE,"-$1").toLowerCase()),ty=Xu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mc=Xu(e=>e?`on${ty(e)}`:""),Yn=(e,t)=>!Object.is(e,t),F0=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},ry=(e,t,r,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:r})},Yu=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let R1;const Ku=()=>R1||(R1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ta(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++){const a=e[r],n=Bt(a)?vE(a):Ta(a);if(n)for(const i in n)t[i]=n[i]}return t}else if(Bt(e)||ct(e))return e}const cE=/;(?![^(]*\))/g,hE=/:([^]+)/,dE=/\/\*[^]*?\*\//g;function vE(e){const t={};return e.replace(dE,"").split(cE).forEach(r=>{if(r){const a=r.split(hE);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function eo(e){let t="";if(Bt(e))t=e;else if(Be(e))for(let r=0;r<e.length;r++){const a=eo(e[r]);a&&(t+=a+" ")}else if(ct(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const pE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gE=Ov(pE);function ay(e){return!!e||e===""}function mE(e,t){if(e.length!==t.length)return!1;let r=!0;for(let a=0;r&&a<e.length;a++)r=_l(e[a],t[a]);return r}function _l(e,t){if(e===t)return!0;let r=M1(e),a=M1(t);if(r||a)return r&&a?e.getTime()===t.getTime():!1;if(r=Za(e),a=Za(t),r||a)return e===t;if(r=Be(e),a=Be(t),r||a)return r&&a?mE(e,t):!1;if(r=ct(e),a=ct(t),r||a){if(!r||!a)return!1;const n=Object.keys(e).length,i=Object.keys(t).length;if(n!==i)return!1;for(const s in e){const o=e.hasOwnProperty(s),f=t.hasOwnProperty(s);if(o&&!f||!o&&f||!_l(e[s],t[s]))return!1}}return String(e)===String(t)}function xE(e,t){return e.findIndex(r=>_l(r,t))}const ny=e=>!!(e&&e.__v_isRef===!0),br=e=>Bt(e)?e:e==null?"":Be(e)||ct(e)&&(e.toString===Q_||!Ge(e.toString))?ny(e)?br(e.value):JSON.stringify(e,iy,2):String(e),iy=(e,t)=>ny(t)?iy(e,t.value):Qs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[a,n],i)=>(r[Rc(a,i)+" =>"]=n,r),{})}:$u(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Rc(r))}:Za(t)?Rc(t):ct(t)&&!Be(t)&&!ey(t)?String(t):t,Rc=(e,t="")=>{var r;return Za(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Ir;class _E{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Ir;try{return Ir=this,t()}finally{Ir=r}}}on(){++this._on===1&&(this.prevScope=Ir,Ir=this)}off(){this._on>0&&--this._on===0&&(Ir=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,a;for(r=0,a=this.effects.length;r<a;r++)this.effects[r].stop();for(this.effects.length=0,r=0,a=this.cleanups.length;r<a;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,a=this.scopes.length;r<a;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function yE(){return Ir}let xt;const Pc=new WeakSet;class sy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ir&&Ir.active&&Ir.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pc.has(this)&&(Pc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,P1(this),ly(this);const t=xt,r=Aa;xt=this,Aa=!0;try{return this.fn()}finally{uy(this),xt=t,Aa=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zv(t);this.deps=this.depsTail=void 0,P1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){gd(this)&&this.run()}get dirty(){return gd(this)}}let oy=0,df,vf;function fy(e,t=!1){if(e.flags|=8,t){e.next=vf,vf=e;return}e.next=df,df=e}function Hv(){oy++}function Vv(){if(--oy>0)return;if(vf){let t=vf;for(vf=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;df;){let t=df;for(df=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=r}}if(e)throw e}function ly(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uy(e){let t,r=e.depsTail,a=r;for(;a;){const n=a.prevDep;a.version===-1?(a===r&&(r=n),zv(a),wE(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=n}e.deps=t,e.depsTail=r}function gd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(cy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function cy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hf)||(e.globalVersion=Hf,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!gd(e))))return;e.flags|=2;const t=e.dep,r=xt,a=Aa;xt=e,Aa=!0;try{ly(e);const n=e.fn(e._value);(t.version===0||Yn(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{xt=r,Aa=a,uy(e),e.flags&=-3}}function zv(e,t=!1){const{dep:r,prevSub:a,nextSub:n}=e;if(a&&(a.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=a,e.nextSub=void 0),r.subs===e&&(r.subs=a,!a&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)zv(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function wE(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Aa=!0;const hy=[];function yn(){hy.push(Aa),Aa=!1}function wn(){const e=hy.pop();Aa=e===void 0?!0:e}function P1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=xt;xt=void 0;try{t()}finally{xt=r}}}let Hf=0;class TE{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wv{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!xt||!Aa||xt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==xt)r=this.activeLink=new TE(xt,this),xt.deps?(r.prevDep=xt.depsTail,xt.depsTail.nextDep=r,xt.depsTail=r):xt.deps=xt.depsTail=r,dy(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const a=r.nextDep;a.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=a),r.prevDep=xt.depsTail,r.nextDep=void 0,xt.depsTail.nextDep=r,xt.depsTail=r,xt.deps===r&&(xt.deps=a)}return r}trigger(t){this.version++,Hf++,this.notify(t)}notify(t){Hv();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Vv()}}}function dy(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)dy(a)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const md=new WeakMap,qi=Symbol(""),xd=Symbol(""),Vf=Symbol("");function ir(e,t,r){if(Aa&&xt){let a=md.get(e);a||md.set(e,a=new Map);let n=a.get(r);n||(a.set(r,n=new Wv),n.map=a,n.key=r),n.track()}}function hn(e,t,r,a,n,i){const s=md.get(e);if(!s){Hf++;return}const o=f=>{f&&f.trigger()};if(Hv(),t==="clear")s.forEach(o);else{const f=Be(e),l=f&&Uv(r);if(f&&r==="length"){const u=Number(a);s.forEach((c,h)=>{(h==="length"||h===Vf||!Za(h)&&h>=u)&&o(c)})}else switch((r!==void 0||s.has(void 0))&&o(s.get(r)),l&&o(s.get(Vf)),t){case"add":f?l&&o(s.get("length")):(o(s.get(qi)),Qs(e)&&o(s.get(xd)));break;case"delete":f||(o(s.get(qi)),Qs(e)&&o(s.get(xd)));break;case"set":Qs(e)&&o(s.get(qi));break}}Vv()}function Es(e){const t=st(e);return t===e?t:(ir(t,"iterate",Vf),la(e)?t:t.map(ba))}function Zu(e){return ir(e=st(e),"iterate",Vf),e}function Un(e,t){return Tn(e)?ho(Ji(e)?ba(t):t):ba(t)}const SE={__proto__:null,[Symbol.iterator](){return Lc(this,Symbol.iterator,e=>Un(this,e))},concat(...e){return Es(this).concat(...e.map(t=>Be(t)?Es(t):t))},entries(){return Lc(this,"entries",e=>(e[1]=Un(this,e[1]),e))},every(e,t){return sn(this,"every",e,t,void 0,arguments)},filter(e,t){return sn(this,"filter",e,t,r=>r.map(a=>Un(this,a)),arguments)},find(e,t){return sn(this,"find",e,t,r=>Un(this,r),arguments)},findIndex(e,t){return sn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return sn(this,"findLast",e,t,r=>Un(this,r),arguments)},findLastIndex(e,t){return sn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return sn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Oc(this,"includes",e)},indexOf(...e){return Oc(this,"indexOf",e)},join(e){return Es(this).join(e)},lastIndexOf(...e){return Oc(this,"lastIndexOf",e)},map(e,t){return sn(this,"map",e,t,void 0,arguments)},pop(){return ko(this,"pop")},push(...e){return ko(this,"push",e)},reduce(e,...t){return L1(this,"reduce",e,t)},reduceRight(e,...t){return L1(this,"reduceRight",e,t)},shift(){return ko(this,"shift")},some(e,t){return sn(this,"some",e,t,void 0,arguments)},splice(...e){return ko(this,"splice",e)},toReversed(){return Es(this).toReversed()},toSorted(e){return Es(this).toSorted(e)},toSpliced(...e){return Es(this).toSpliced(...e)},unshift(...e){return ko(this,"unshift",e)},values(){return Lc(this,"values",e=>Un(this,e))}};function Lc(e,t,r){const a=Zu(e),n=a[t]();return a!==e&&!la(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.done||(i.value=r(i.value)),i}),n}const EE=Array.prototype;function sn(e,t,r,a,n,i){const s=Zu(e),o=s!==e&&!la(e),f=s[t];if(f!==EE[t]){const c=f.apply(e,i);return o?ba(c):c}let l=r;s!==e&&(o?l=function(c,h){return r.call(this,Un(e,c),h,e)}:r.length>2&&(l=function(c,h){return r.call(this,c,h,e)}));const u=f.call(s,l,a);return o&&n?n(u):u}function L1(e,t,r,a){const n=Zu(e);let i=r;return n!==e&&(la(e)?r.length>3&&(i=function(s,o,f){return r.call(this,s,o,f,e)}):i=function(s,o,f){return r.call(this,s,Un(e,o),f,e)}),n[t](i,...a)}function Oc(e,t,r){const a=st(e);ir(a,"iterate",Vf);const n=a[t](...r);return(n===-1||n===!1)&&Xv(r[0])?(r[0]=st(r[0]),a[t](...r)):n}function ko(e,t,r=[]){yn(),Hv();const a=st(e)[t].apply(e,r);return Vv(),wn(),a}const CE=Ov("__proto__,__v_isRef,__isVue"),vy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Za));function AE(e){Za(e)||(e=String(e));const t=st(this);return ir(t,"has",e),t.hasOwnProperty(e)}class py{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,a){if(r==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return i;if(r==="__v_raw")return a===(n?i?OE:_y:i?xy:my).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const s=Be(t);if(!n){let f;if(s&&(f=SE[r]))return f;if(r==="hasOwnProperty")return AE}const o=Reflect.get(t,r,fr(t)?t:a);if((Za(r)?vy.has(r):CE(r))||(n||ir(t,"get",r),i))return o;if(fr(o)){const f=s&&Uv(r)?o:o.value;return n&&ct(f)?yd(f):f}return ct(o)?n?yd(o):zf(o):o}}class gy extends py{constructor(t=!1){super(!1,t)}set(t,r,a,n){let i=t[r];const s=Be(t)&&Uv(r);if(!this._isShallow){const l=Tn(i);if(!la(a)&&!Tn(a)&&(i=st(i),a=st(a)),!s&&fr(i)&&!fr(a))return l||(i.value=a),!0}const o=s?Number(r)<t.length:ot(t,r),f=Reflect.set(t,r,a,fr(t)?t:n);return t===st(n)&&(o?Yn(a,i)&&hn(t,"set",r,a):hn(t,"add",r,a)),f}deleteProperty(t,r){const a=ot(t,r);t[r];const n=Reflect.deleteProperty(t,r);return n&&a&&hn(t,"delete",r,void 0),n}has(t,r){const a=Reflect.has(t,r);return(!Za(r)||!vy.has(r))&&ir(t,"has",r),a}ownKeys(t){return ir(t,"iterate",Be(t)?"length":qi),Reflect.ownKeys(t)}}class DE extends py{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const kE=new gy,bE=new DE,FE=new gy(!0);const _d=e=>e,Ul=e=>Reflect.getPrototypeOf(e);function IE(e,t,r){return function(...a){const n=this.__v_raw,i=st(n),s=Qs(i),o=e==="entries"||e===Symbol.iterator&&s,f=e==="keys"&&s,l=n[e](...a),u=r?_d:t?ho:ba;return!t&&ir(i,"iterate",f?xd:qi),jt(Object.create(l),{next(){const{value:c,done:h}=l.next();return h?{value:c,done:h}:{value:o?[u(c[0]),u(c[1])]:u(c),done:h}}})}}function Hl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ME(e,t){const r={get(n){const i=this.__v_raw,s=st(i),o=st(n);e||(Yn(n,o)&&ir(s,"get",n),ir(s,"get",o));const{has:f}=Ul(s),l=t?_d:e?ho:ba;if(f.call(s,n))return l(i.get(n));if(f.call(s,o))return l(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ir(st(n),"iterate",qi),n.size},has(n){const i=this.__v_raw,s=st(i),o=st(n);return e||(Yn(n,o)&&ir(s,"has",n),ir(s,"has",o)),n===o?i.has(n):i.has(n)||i.has(o)},forEach(n,i){const s=this,o=s.__v_raw,f=st(o),l=t?_d:e?ho:ba;return!e&&ir(f,"iterate",qi),o.forEach((u,c)=>n.call(i,l(u),l(c),s))}};return jt(r,e?{add:Hl("add"),set:Hl("set"),delete:Hl("delete"),clear:Hl("clear")}:{add(n){!t&&!la(n)&&!Tn(n)&&(n=st(n));const i=st(this);return Ul(i).has.call(i,n)||(i.add(n),hn(i,"add",n,n)),this},set(n,i){!t&&!la(i)&&!Tn(i)&&(i=st(i));const s=st(this),{has:o,get:f}=Ul(s);let l=o.call(s,n);l||(n=st(n),l=o.call(s,n));const u=f.call(s,n);return s.set(n,i),l?Yn(i,u)&&hn(s,"set",n,i):hn(s,"add",n,i),this},delete(n){const i=st(this),{has:s,get:o}=Ul(i);let f=s.call(i,n);f||(n=st(n),f=s.call(i,n)),o&&o.call(i,n);const l=i.delete(n);return f&&hn(i,"delete",n,void 0),l},clear(){const n=st(this),i=n.size!==0,s=n.clear();return i&&hn(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=IE(n,e,t)}),r}function Gv(e,t){const r=ME(e,t);return(a,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?a:Reflect.get(ot(r,n)&&n in a?r:a,n,i)}const RE={get:Gv(!1,!1)},PE={get:Gv(!1,!0)},LE={get:Gv(!0,!1)};const my=new WeakMap,xy=new WeakMap,_y=new WeakMap,OE=new WeakMap;function BE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function NE(e){return e.__v_skip||!Object.isExtensible(e)?0:BE(fE(e))}function zf(e){return Tn(e)?e:$v(e,!1,kE,RE,my)}function UE(e){return $v(e,!1,FE,PE,xy)}function yd(e){return $v(e,!0,bE,LE,_y)}function $v(e,t,r,a,n){if(!ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=NE(e);if(i===0)return e;const s=n.get(e);if(s)return s;const o=new Proxy(e,i===2?a:r);return n.set(e,o),o}function Ji(e){return Tn(e)?Ji(e.__v_raw):!!(e&&e.__v_isReactive)}function Tn(e){return!!(e&&e.__v_isReadonly)}function la(e){return!!(e&&e.__v_isShallow)}function Xv(e){return e?!!e.__v_raw:!1}function st(e){const t=e&&e.__v_raw;return t?st(t):e}function HE(e){return!ot(e,"__v_skip")&&Object.isExtensible(e)&&ry(e,"__v_skip",!0),e}const ba=e=>ct(e)?zf(e):e,ho=e=>ct(e)?yd(e):e;function fr(e){return e?e.__v_isRef===!0:!1}function mt(e){return VE(e,!1)}function VE(e,t){return fr(e)?e:new zE(e,t)}class zE{constructor(t,r){this.dep=new Wv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:st(t),this._value=r?t:ba(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,a=this.__v_isShallow||la(t)||Tn(t);t=a?t:st(t),Yn(t,r)&&(this._rawValue=t,this._value=a?t:ba(t),this.dep.trigger())}}function Ke(e){return fr(e)?e.value:e}const WE={get:(e,t,r)=>t==="__v_raw"?e:Ke(Reflect.get(e,t,r)),set:(e,t,r,a)=>{const n=e[t];return fr(n)&&!fr(r)?(n.value=r,!0):Reflect.set(e,t,r,a)}};function yy(e){return Ji(e)?e:new Proxy(e,WE)}class GE{constructor(t,r,a){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Wv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&xt!==this)return fy(this,!0),!0}get value(){const t=this.dep.track();return cy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $E(e,t,r=!1){let a,n;return Ge(e)?a=e:(a=e.get,n=e.set),new GE(a,n,r)}const Vl={},Z0=new WeakMap;let Ni;function XE(e,t=!1,r=Ni){if(r){let a=Z0.get(r);a||Z0.set(r,a=[]),a.push(e)}}function YE(e,t,r=vt){const{immediate:a,deep:n,once:i,scheduler:s,augmentJob:o,call:f}=r,l=y=>n?y:la(y)||n===!1||n===0?dn(y,1):dn(y);let u,c,h,d,v=!1,p=!1;if(fr(e)?(c=()=>e.value,v=la(e)):Ji(e)?(c=()=>l(e),v=!0):Be(e)?(p=!0,v=e.some(y=>Ji(y)||la(y)),c=()=>e.map(y=>{if(fr(y))return y.value;if(Ji(y))return l(y);if(Ge(y))return f?f(y,2):y()})):Ge(e)?t?c=f?()=>f(e,2):e:c=()=>{if(h){yn();try{h()}finally{wn()}}const y=Ni;Ni=u;try{return f?f(e,3,[d]):e(d)}finally{Ni=y}}:c=Xa,t&&n){const y=c,F=n===!0?1/0:n;c=()=>dn(y(),F)}const g=yE(),m=()=>{u.stop(),g&&g.active&&Nv(g.effects,u)};if(i&&t){const y=t;t=(...F)=>{y(...F),m()}}let x=p?new Array(e.length).fill(Vl):Vl;const _=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const F=u.run();if(n||v||(p?F.some((k,E)=>Yn(k,x[E])):Yn(F,x))){h&&h();const k=Ni;Ni=u;try{const E=[F,x===Vl?void 0:p&&x[0]===Vl?[]:x,d];x=F,f?f(t,3,E):t(...E)}finally{Ni=k}}}else u.run()};return o&&o(_),u=new sy(c),u.scheduler=s?()=>s(_,!1):_,d=y=>XE(y,!1,u),h=u.onStop=()=>{const y=Z0.get(u);if(y){if(f)f(y,4);else for(const F of y)F();Z0.delete(u)}},t?a?_(!0):x=u.run():s?s(_.bind(null,!0),!0):u.run(),m.pause=u.pause.bind(u),m.resume=u.resume.bind(u),m.stop=m,m}function dn(e,t=1/0,r){if(t<=0||!ct(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,fr(e))dn(e.value,t,r);else if(Be(e))for(let a=0;a<e.length;a++)dn(e[a],t,r);else if($u(e)||Qs(e))e.forEach(a=>{dn(a,t,r)});else if(ey(e)){for(const a in e)dn(e[a],t,r);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&dn(e[a],t,r)}return e}function yl(e,t,r,a){try{return a?e(...a):e()}catch(n){ju(n,t,r)}}function ja(e,t,r,a){if(Ge(e)){const n=yl(e,t,r,a);return n&&J_(n)&&n.catch(i=>{ju(i,t,r)}),n}if(Be(e)){const n=[];for(let i=0;i<e.length;i++)n.push(ja(e[i],t,r,a));return n}}function ju(e,t,r,a=!0){const n=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||vt;if(t){let o=t.parent;const f=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const u=o.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,f,l)===!1)return}o=o.parent}if(i){yn(),yl(i,null,10,[e,f,l]),wn();return}}KE(e,r,n,a,s)}function KE(e,t,r,a=!0,n=!1){if(n)throw e;console.error(e)}const mr=[];let Ua=-1;const to=[];let Hn=null,Vs=0;const wy=Promise.resolve();let j0=null;function Yv(e){const t=j0||wy;return e?t.then(this?e.bind(this):e):t}function ZE(e){let t=Ua+1,r=mr.length;for(;t<r;){const a=t+r>>>1,n=mr[a],i=Wf(n);i<e||i===e&&n.flags&2?t=a+1:r=a}return t}function Kv(e){if(!(e.flags&1)){const t=Wf(e),r=mr[mr.length-1];!r||!(e.flags&2)&&t>=Wf(r)?mr.push(e):mr.splice(ZE(t),0,e),e.flags|=1,Ty()}}function Ty(){j0||(j0=wy.then(Ey))}function jE(e){Be(e)?to.push(...e):Hn&&e.id===-1?Hn.splice(Vs+1,0,e):e.flags&1||(to.push(e),e.flags|=1),Ty()}function O1(e,t,r=Ua+1){for(;r<mr.length;r++){const a=mr[r];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;mr.splice(r,1),r--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function Sy(e){if(to.length){const t=[...new Set(to)].sort((r,a)=>Wf(r)-Wf(a));if(to.length=0,Hn){Hn.push(...t);return}for(Hn=t,Vs=0;Vs<Hn.length;Vs++){const r=Hn[Vs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Hn=null,Vs=0}}const Wf=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ey(e){try{for(Ua=0;Ua<mr.length;Ua++){const t=mr[Ua];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),yl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ua<mr.length;Ua++){const t=mr[Ua];t&&(t.flags&=-2)}Ua=-1,mr.length=0,Sy(),j0=null,(mr.length||to.length)&&Ey()}}let fa=null,Cy=null;function q0(e){const t=fa;return fa=e,Cy=e&&e.type.__scopeId||null,t}function qE(e,t=fa,r){if(!t||e._n)return e;const a=(...n)=>{a._d&&Y1(-1);const i=q0(t);let s;try{s=e(...n)}finally{q0(i),a._d&&Y1(1)}return s};return a._n=!0,a._c=!0,a._d=!0,a}function hi(e,t){if(fa===null)return e;const r=ec(fa),a=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[i,s,o,f=vt]=t[n];i&&(Ge(i)&&(i={mounted:i,updated:i}),i.deep&&dn(s),a.push({dir:i,instance:r,value:s,oldValue:void 0,arg:o,modifiers:f}))}return e}function di(e,t,r,a){const n=e.dirs,i=t&&t.dirs;for(let s=0;s<n.length;s++){const o=n[s];i&&(o.oldValue=i[s].value);let f=o.dir[a];f&&(yn(),ja(f,r,8,[e.el,o,e,t]),wn())}}function JE(e,t){if(wr){let r=wr.provides;const a=wr.parent&&wr.parent.provides;a===r&&(r=wr.provides=Object.create(a)),r[e]=t}}function I0(e,t,r=!1){const a=QC();if(a||ro){let n=ro?ro._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return r&&Ge(t)?t.call(a&&a.proxy):t}}const QE=Symbol.for("v-scx"),eC=()=>I0(QE);function tC(e,t){return Zv(e,null,t)}function pf(e,t,r){return Zv(e,t,r)}function Zv(e,t,r=vt){const{immediate:a,deep:n,flush:i,once:s}=r,o=jt({},r),f=t&&a||!t&&i!=="post";let l;if($f){if(i==="sync"){const d=eC();l=d.__watcherHandles||(d.__watcherHandles=[])}else if(!f){const d=()=>{};return d.stop=Xa,d.resume=Xa,d.pause=Xa,d}}const u=wr;o.call=(d,v,p)=>ja(d,u,v,p);let c=!1;i==="post"?o.scheduler=d=>{Fr(d,u&&u.suspense)}:i!=="sync"&&(c=!0,o.scheduler=(d,v)=>{v?d():Kv(d)}),o.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=YE(e,t,o);return $f&&(l?l.push(h):f&&h()),h}function rC(e,t,r){const a=this.proxy,n=Bt(e)?e.includes(".")?Ay(a,e):()=>a[e]:e.bind(a,a);let i;Ge(t)?i=t:(i=t.handler,r=t);const s=wl(this),o=Zv(n,i.bind(a),r);return s(),o}function Ay(e,t){const r=t.split(".");return()=>{let a=e;for(let n=0;n<r.length&&a;n++)a=a[r[n]];return a}}const aC=Symbol("_vte"),nC=e=>e.__isTeleport,iC=Symbol("_leaveCb");function jv(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jv(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sC(e,t){return Ge(e)?jt({name:e.name},t,{setup:e}):e}function Dy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function B1(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}const J0=new WeakMap;function gf(e,t,r,a,n=!1){if(Be(e)){e.forEach((p,g)=>gf(p,t&&(Be(t)?t[g]:t),r,a,n));return}if(mf(a)&&!n){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&gf(e,t,r,a.component.subTree);return}const i=a.shapeFlag&4?ec(a.component):a.el,s=n?null:i,{i:o,r:f}=e,l=t&&t.r,u=o.refs===vt?o.refs={}:o.refs,c=o.setupState,h=st(c),d=c===vt?q_:p=>B1(u,p)?!1:ot(h,p),v=(p,g)=>!(g&&B1(u,g));if(l!=null&&l!==f){if(N1(t),Bt(l))u[l]=null,d(l)&&(c[l]=null);else if(fr(l)){const p=t;v(l,p.k)&&(l.value=null),p.k&&(u[p.k]=null)}}if(Ge(f))yl(f,o,12,[s,u]);else{const p=Bt(f),g=fr(f);if(p||g){const m=()=>{if(e.f){const x=p?d(f)?c[f]:u[f]:v()||!e.k?f.value:u[e.k];if(n)Be(x)&&Nv(x,i);else if(Be(x))x.includes(i)||x.push(i);else if(p)u[f]=[i],d(f)&&(c[f]=u[f]);else{const _=[i];v(f,e.k)&&(f.value=_),e.k&&(u[e.k]=_)}}else p?(u[f]=s,d(f)&&(c[f]=s)):g&&(v(f,e.k)&&(f.value=s),e.k&&(u[e.k]=s))};if(s){const x=()=>{m(),J0.delete(e)};x.id=-1,J0.set(e,x),Fr(x,r)}else N1(e),m()}}}function N1(e){const t=J0.get(e);t&&(t.flags|=8,J0.delete(e))}Ku().requestIdleCallback;Ku().cancelIdleCallback;const mf=e=>!!e.type.__asyncLoader,ky=e=>e.type.__isKeepAlive;function oC(e,t){by(e,"a",t)}function fC(e,t){by(e,"da",t)}function by(e,t,r=wr){const a=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(qu(t,a,r),r){let n=r.parent;for(;n&&n.parent;)ky(n.parent.vnode)&&lC(a,t,r,n),n=n.parent}}function lC(e,t,r,a){const n=qu(t,e,a,!0);My(()=>{Nv(a[t],n)},r)}function qu(e,t,r=wr,a=!1){if(r){const n=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...s)=>{yn();const o=wl(r),f=ja(t,r,e,s);return o(),wn(),f});return a?n.unshift(i):n.push(i),i}}const Cn=e=>(t,r=wr)=>{(!$f||e==="sp")&&qu(e,(...a)=>t(...a),r)},uC=Cn("bm"),Fy=Cn("m"),cC=Cn("bu"),hC=Cn("u"),Iy=Cn("bum"),My=Cn("um"),dC=Cn("sp"),vC=Cn("rtg"),pC=Cn("rtc");function gC(e,t=wr){qu("ec",e,t)}const mC=Symbol.for("v-ndc");function pa(e,t,r,a){let n;const i=r,s=Be(e);if(s||Bt(e)){const o=s&&Ji(e);let f=!1,l=!1;o&&(f=!la(e),l=Tn(e),e=Zu(e)),n=new Array(e.length);for(let u=0,c=e.length;u<c;u++)n[u]=t(f?l?ho(ba(e[u])):ba(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o,void 0,i)}else if(ct(e))if(e[Symbol.iterator])n=Array.from(e,(o,f)=>t(o,f,void 0,i));else{const o=Object.keys(e);n=new Array(o.length);for(let f=0,l=o.length;f<l;f++){const u=o[f];n[f]=t(e[u],u,f,i)}}else n=[];return n}const wd=e=>e?Qy(e)?ec(e):wd(e.parent):null,xf=jt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wd(e.parent),$root:e=>wd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Py(e),$forceUpdate:e=>e.f||(e.f=()=>{Kv(e.update)}),$nextTick:e=>e.n||(e.n=Yv.bind(e.proxy)),$watch:e=>rC.bind(e)}),Bc=(e,t)=>e!==vt&&!e.__isScriptSetup&&ot(e,t),xC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:a,data:n,props:i,accessCache:s,type:o,appContext:f}=e;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return n[t];case 4:return r[t];case 3:return i[t]}else{if(Bc(a,t))return s[t]=1,a[t];if(n!==vt&&ot(n,t))return s[t]=2,n[t];if(ot(i,t))return s[t]=3,i[t];if(r!==vt&&ot(r,t))return s[t]=4,r[t];Td&&(s[t]=0)}}const l=xf[t];let u,c;if(l)return t==="$attrs"&&ir(e.attrs,"get",""),l(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(r!==vt&&ot(r,t))return s[t]=4,r[t];if(c=f.config.globalProperties,ot(c,t))return c[t]},set({_:e},t,r){const{data:a,setupState:n,ctx:i}=e;return Bc(n,t)?(n[t]=r,!0):a!==vt&&ot(a,t)?(a[t]=r,!0):ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:a,appContext:n,props:i,type:s}},o){let f;return!!(r[o]||e!==vt&&o[0]!=="$"&&ot(e,o)||Bc(t,o)||ot(i,o)||ot(a,o)||ot(xf,o)||ot(n.config.globalProperties,o)||(f=s.__cssModules)&&f[o])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ot(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function U1(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Td=!0;function _C(e){const t=Py(e),r=e.proxy,a=e.ctx;Td=!1,t.beforeCreate&&H1(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:s,watch:o,provide:f,inject:l,created:u,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:x,destroyed:_,unmounted:y,render:F,renderTracked:k,renderTriggered:E,errorCaptured:C,serverPrefetch:T,expose:b,inheritAttrs:M,components:R,directives:B,filters:G}=t;if(l&&yC(l,a,null),s)for(const q in s){const ve=s[q];Ge(ve)&&(a[q]=ve.bind(r))}if(n){const q=n.call(r,r);ct(q)&&(e.data=zf(q))}if(Td=!0,i)for(const q in i){const ve=i[q],U=Ge(ve)?ve.bind(r,r):Ge(ve.get)?ve.get.bind(r,r):Xa,xe=!Ge(ve)&&Ge(ve.set)?ve.set.bind(r):Xa,se=Jr({get:U,set:xe});Object.defineProperty(a,q,{enumerable:!0,configurable:!0,get:()=>se.value,set:P=>se.value=P})}if(o)for(const q in o)Ry(o[q],a,r,q);if(f){const q=Ge(f)?f.call(r):f;Reflect.ownKeys(q).forEach(ve=>{JE(ve,q[ve])})}u&&H1(u,e,"c");function j(q,ve){Be(ve)?ve.forEach(U=>q(U.bind(r))):ve&&q(ve.bind(r))}if(j(uC,c),j(Fy,h),j(cC,d),j(hC,v),j(oC,p),j(fC,g),j(gC,C),j(pC,k),j(vC,E),j(Iy,x),j(My,y),j(dC,T),Be(b))if(b.length){const q=e.exposed||(e.exposed={});b.forEach(ve=>{Object.defineProperty(q,ve,{get:()=>r[ve],set:U=>r[ve]=U,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Xa&&(e.render=F),M!=null&&(e.inheritAttrs=M),R&&(e.components=R),B&&(e.directives=B),T&&Dy(e)}function yC(e,t,r=Xa){Be(e)&&(e=Sd(e));for(const a in e){const n=e[a];let i;ct(n)?"default"in n?i=I0(n.from||a,n.default,!0):i=I0(n.from||a):i=I0(n),fr(i)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[a]=i}}function H1(e,t,r){ja(Be(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ry(e,t,r,a){let n=a.includes(".")?Ay(r,a):()=>r[a];if(Bt(e)){const i=t[e];Ge(i)&&pf(n,i)}else if(Ge(e))pf(n,e.bind(r));else if(ct(e))if(Be(e))e.forEach(i=>Ry(i,t,r,a));else{const i=Ge(e.handler)?e.handler.bind(r):t[e.handler];Ge(i)&&pf(n,i,e)}}function Py(e){const t=e.type,{mixins:r,extends:a}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let f;return o?f=o:!n.length&&!r&&!a?f=t:(f={},n.length&&n.forEach(l=>Q0(f,l,s,!0)),Q0(f,t,s)),ct(t)&&i.set(t,f),f}function Q0(e,t,r,a=!1){const{mixins:n,extends:i}=t;i&&Q0(e,i,r,!0),n&&n.forEach(s=>Q0(e,s,r,!0));for(const s in t)if(!(a&&s==="expose")){const o=wC[s]||r&&r[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const wC={data:V1,props:z1,emits:z1,methods:Jo,computed:Jo,beforeCreate:vr,created:vr,beforeMount:vr,mounted:vr,beforeUpdate:vr,updated:vr,beforeDestroy:vr,beforeUnmount:vr,destroyed:vr,unmounted:vr,activated:vr,deactivated:vr,errorCaptured:vr,serverPrefetch:vr,components:Jo,directives:Jo,watch:SC,provide:V1,inject:TC};function V1(e,t){return t?e?function(){return jt(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function TC(e,t){return Jo(Sd(e),Sd(t))}function Sd(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function vr(e,t){return e?[...new Set([].concat(e,t))]:t}function Jo(e,t){return e?jt(Object.create(null),e,t):t}function z1(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:jt(Object.create(null),U1(e),U1(t??{})):t}function SC(e,t){if(!e)return t;if(!t)return e;const r=jt(Object.create(null),e);for(const a in t)r[a]=vr(e[a],t[a]);return r}function Ly(){return{app:null,config:{isNativeTag:q_,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 EC=0;function CC(e,t){return function(a,n=null){Ge(a)||(a=jt({},a)),n!=null&&!ct(n)&&(n=null);const i=Ly(),s=new WeakSet,o=[];let f=!1;const l=i.app={_uid:EC++,_component:a,_props:n,_container:null,_context:i,_instance:null,version:iA,get config(){return i.config},set config(u){},use(u,...c){return s.has(u)||(u&&Ge(u.install)?(s.add(u),u.install(l,...c)):Ge(u)&&(s.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,h){if(!f){const d=l._ceVNode||gn(a,n);return d.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),e(d,u,h),f=!0,l._container=u,u.__vue_app__=l,ec(d.component)}},onUnmount(u){o.push(u)},unmount(){f&&(ja(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){const c=ro;ro=l;try{return u()}finally{ro=c}}};return l}}let ro=null;const AC=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ei(t)}Modifiers`]||e[`${li(t)}Modifiers`];function DC(e,t,...r){if(e.isUnmounted)return;const a=e.vnode.props||vt;let n=r;const i=t.startsWith("update:"),s=i&&AC(a,t.slice(7));s&&(s.trim&&(n=r.map(u=>Bt(u)?u.trim():u)),s.number&&(n=r.map(Yu)));let o,f=a[o=Mc(t)]||a[o=Mc(ei(t))];!f&&i&&(f=a[o=Mc(li(t))]),f&&ja(f,e,6,n);const l=a[o+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ja(l,e,6,n)}}const kC=new WeakMap;function Oy(e,t,r=!1){const a=r?kC:t.emitsCache,n=a.get(e);if(n!==void 0)return n;const i=e.emits;let s={},o=!1;if(!Ge(e)){const f=l=>{const u=Oy(l,t,!0);u&&(o=!0,jt(s,u))};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!o?(ct(e)&&a.set(e,null),null):(Be(i)?i.forEach(f=>s[f]=null):jt(s,i),ct(e)&&a.set(e,s),s)}function Ju(e,t){return!e||!Gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),ot(e,t[0].toLowerCase()+t.slice(1))||ot(e,li(t))||ot(e,t))}function W1(e){const{type:t,vnode:r,proxy:a,withProxy:n,propsOptions:[i],slots:s,attrs:o,emit:f,render:l,renderCache:u,props:c,data:h,setupState:d,ctx:v,inheritAttrs:p}=e,g=q0(e);let m,x;try{if(r.shapeFlag&4){const y=n||a,F=y;m=Va(l.call(F,y,u,c,d,h,v)),x=o}else{const y=t;m=Va(y.length>1?y(c,{attrs:o,slots:s,emit:f}):y(c,null)),x=t.props?o:bC(o)}}catch(y){_f.length=0,ju(y,e,1),m=gn(ti)}let _=m;if(x&&p!==!1){const y=Object.keys(x),{shapeFlag:F}=_;y.length&&F&7&&(i&&y.some(Bv)&&(x=FC(x,i)),_=vo(_,x,!1,!0))}return r.dirs&&(_=vo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&jv(_,r.transition),m=_,q0(g),m}const bC=e=>{let t;for(const r in e)(r==="class"||r==="style"||Gu(r))&&((t||(t={}))[r]=e[r]);return t},FC=(e,t)=>{const r={};for(const a in e)(!Bv(a)||!(a.slice(9)in t))&&(r[a]=e[a]);return r};function IC(e,t,r){const{props:a,children:n,component:i}=e,{props:s,children:o,patchFlag:f}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&f>=0){if(f&1024)return!0;if(f&16)return a?G1(a,s,l):!!s;if(f&8){const u=t.dynamicProps;for(let c=0;c<u.length;c++){const h=u[c];if(By(s,a,h)&&!Ju(l,h))return!0}}}else return(n||o)&&(!o||!o.$stable)?!0:a===s?!1:a?s?G1(a,s,l):!0:!!s;return!1}function G1(e,t,r){const a=Object.keys(t);if(a.length!==Object.keys(e).length)return!0;for(let n=0;n<a.length;n++){const i=a[n];if(By(t,e,i)&&!Ju(r,i))return!0}return!1}function By(e,t,r){const a=e[r],n=t[r];return r==="style"&&ct(a)&&ct(n)?!_l(a,n):a!==n}function MC({vnode:e,parent:t},r){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===e&&(a.el=e.el),a===e)(e=t.vnode).el=r,t=t.parent;else break}}const Ny={},Uy=()=>Object.create(Ny),Hy=e=>Object.getPrototypeOf(e)===Ny;function RC(e,t,r,a=!1){const n={},i=Uy();e.propsDefaults=Object.create(null),Vy(e,t,n,i);for(const s in e.propsOptions[0])s in n||(n[s]=void 0);r?e.props=a?n:UE(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function PC(e,t,r,a){const{props:n,attrs:i,vnode:{patchFlag:s}}=e,o=st(n),[f]=e.propsOptions;let l=!1;if((a||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let c=0;c<u.length;c++){let h=u[c];if(Ju(e.emitsOptions,h))continue;const d=t[h];if(f)if(ot(i,h))d!==i[h]&&(i[h]=d,l=!0);else{const v=ei(h);n[v]=Ed(f,o,v,d,e,!1)}else d!==i[h]&&(i[h]=d,l=!0)}}}else{Vy(e,t,n,i)&&(l=!0);let u;for(const c in o)(!t||!ot(t,c)&&((u=li(c))===c||!ot(t,u)))&&(f?r&&(r[c]!==void 0||r[u]!==void 0)&&(n[c]=Ed(f,o,c,void 0,e,!0)):delete n[c]);if(i!==o)for(const c in i)(!t||!ot(t,c))&&(delete i[c],l=!0)}l&&hn(e.attrs,"set","")}function Vy(e,t,r,a){const[n,i]=e.propsOptions;let s=!1,o;if(t)for(let f in t){if(hf(f))continue;const l=t[f];let u;n&&ot(n,u=ei(f))?!i||!i.includes(u)?r[u]=l:(o||(o={}))[u]=l:Ju(e.emitsOptions,f)||(!(f in a)||l!==a[f])&&(a[f]=l,s=!0)}if(i){const f=st(r),l=o||vt;for(let u=0;u<i.length;u++){const c=i[u];r[c]=Ed(n,f,c,l[c],e,!ot(l,c))}}return s}function Ed(e,t,r,a,n,i){const s=e[r];if(s!=null){const o=ot(s,"default");if(o&&a===void 0){const f=s.default;if(s.type!==Function&&!s.skipFactory&&Ge(f)){const{propsDefaults:l}=n;if(r in l)a=l[r];else{const u=wl(n);a=l[r]=f.call(null,t),u()}}else a=f;n.ce&&n.ce._setProp(r,a)}s[0]&&(i&&!o?a=!1:s[1]&&(a===""||a===li(r))&&(a=!0))}return a}const LC=new WeakMap;function zy(e,t,r=!1){const a=r?LC:t.propsCache,n=a.get(e);if(n)return n;const i=e.props,s={},o=[];let f=!1;if(!Ge(e)){const u=c=>{f=!0;const[h,d]=zy(c,t,!0);jt(s,h),d&&o.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!f)return ct(e)&&a.set(e,Js),Js;if(Be(i))for(let u=0;u<i.length;u++){const c=ei(i[u]);$1(c)&&(s[c]=vt)}else if(i)for(const u in i){const c=ei(u);if($1(c)){const h=i[u],d=s[c]=Be(h)||Ge(h)?{type:h}:jt({},h),v=d.type;let p=!1,g=!0;if(Be(v))for(let m=0;m<v.length;++m){const x=v[m],_=Ge(x)&&x.name;if(_==="Boolean"){p=!0;break}else _==="String"&&(g=!1)}else p=Ge(v)&&v.name==="Boolean";d[0]=p,d[1]=g,(p||ot(d,"default"))&&o.push(c)}}const l=[s,o];return ct(e)&&a.set(e,l),l}function $1(e){return e[0]!=="$"&&!hf(e)}const qv=e=>e==="_"||e==="_ctx"||e==="$stable",Jv=e=>Be(e)?e.map(Va):[Va(e)],OC=(e,t,r)=>{if(t._n)return t;const a=qE((...n)=>Jv(t(...n)),r);return a._c=!1,a},Wy=(e,t,r)=>{const a=e._ctx;for(const n in e){if(qv(n))continue;const i=e[n];if(Ge(i))t[n]=OC(n,i,a);else if(i!=null){const s=Jv(i);t[n]=()=>s}}},Gy=(e,t)=>{const r=Jv(t);e.slots.default=()=>r},$y=(e,t,r)=>{for(const a in t)(r||!qv(a))&&(e[a]=t[a])},BC=(e,t,r)=>{const a=e.slots=Uy();if(e.vnode.shapeFlag&32){const n=t._;n?($y(a,t,r),r&&ry(a,"_",n,!0)):Wy(t,a)}else t&&Gy(e,t)},NC=(e,t,r)=>{const{vnode:a,slots:n}=e;let i=!0,s=vt;if(a.shapeFlag&32){const o=t._;o?r&&o===1?i=!1:$y(n,t,r):(i=!t.$stable,Wy(t,n)),s=t}else t&&(Gy(e,t),s={default:1});if(i)for(const o in n)!qv(o)&&s[o]==null&&delete n[o]},Fr=WC;function UC(e){return HC(e)}function HC(e,t){const r=Ku();r.__VUE__=!0;const{insert:a,remove:n,patchProp:i,createElement:s,createText:o,createComment:f,setText:l,setElementText:u,parentNode:c,nextSibling:h,setScopeId:d=Xa,insertStaticContent:v}=e,p=(w,N,W,J=null,K=null,Y=null,oe=void 0,ce=null,de=!!N.dynamicChildren)=>{if(w===N)return;w&&!bo(w,N)&&(J=pe(w),P(w,K,Y,!0),w=null),N.patchFlag===-2&&(de=!1,N.dynamicChildren=null);const{type:he,ref:Ae,shapeFlag:ye}=N;switch(he){case Qu:g(w,N,W,J);break;case ti:m(w,N,W,J);break;case Uc:w==null&&x(N,W,J,oe);break;case Ct:R(w,N,W,J,K,Y,oe,ce,de);break;default:ye&1?F(w,N,W,J,K,Y,oe,ce,de):ye&6?B(w,N,W,J,K,Y,oe,ce,de):(ye&64||ye&128)&&he.process(w,N,W,J,K,Y,oe,ce,de,ne)}Ae!=null&&K?gf(Ae,w&&w.ref,Y,N||w,!N):Ae==null&&w&&w.ref!=null&&gf(w.ref,null,Y,w,!0)},g=(w,N,W,J)=>{if(w==null)a(N.el=o(N.children),W,J);else{const K=N.el=w.el;N.children!==w.children&&l(K,N.children)}},m=(w,N,W,J)=>{w==null?a(N.el=f(N.children||""),W,J):N.el=w.el},x=(w,N,W,J)=>{[w.el,w.anchor]=v(w.children,N,W,J,w.el,w.anchor)},_=({el:w,anchor:N},W,J)=>{let K;for(;w&&w!==N;)K=h(w),a(w,W,J),w=K;a(N,W,J)},y=({el:w,anchor:N})=>{let W;for(;w&&w!==N;)W=h(w),n(w),w=W;n(N)},F=(w,N,W,J,K,Y,oe,ce,de)=>{if(N.type==="svg"?oe="svg":N.type==="math"&&(oe="mathml"),w==null)k(N,W,J,K,Y,oe,ce,de);else{const he=w.el&&w.el._isVueCE?w.el:null;try{he&&he._beginPatch(),T(w,N,K,Y,oe,ce,de)}finally{he&&he._endPatch()}}},k=(w,N,W,J,K,Y,oe,ce)=>{let de,he;const{props:Ae,shapeFlag:ye,transition:we,dirs:De}=w;if(de=w.el=s(w.type,Y,Ae&&Ae.is,Ae),ye&8?u(de,w.children):ye&16&&C(w.children,de,null,J,K,Nc(w,Y),oe,ce),De&&di(w,null,J,"created"),E(de,w,w.scopeId,oe,J),Ae){for(const Pe in Ae)Pe!=="value"&&!hf(Pe)&&i(de,Pe,null,Ae[Pe],Y,J);"value"in Ae&&i(de,"value",null,Ae.value,Y),(he=Ae.onVnodeBeforeMount)&&Ma(he,J,w)}De&&di(w,null,J,"beforeMount");const ke=VC(K,we);ke&&we.beforeEnter(de),a(de,N,W),((he=Ae&&Ae.onVnodeMounted)||ke||De)&&Fr(()=>{he&&Ma(he,J,w),ke&&we.enter(de),De&&di(w,null,J,"mounted")},K)},E=(w,N,W,J,K)=>{if(W&&d(w,W),J)for(let Y=0;Y<J.length;Y++)d(w,J[Y]);if(K){let Y=K.subTree;if(N===Y||Zy(Y.type)&&(Y.ssContent===N||Y.ssFallback===N)){const oe=K.vnode;E(w,oe,oe.scopeId,oe.slotScopeIds,K.parent)}}},C=(w,N,W,J,K,Y,oe,ce,de=0)=>{for(let he=de;he<w.length;he++){const Ae=w[he]=ce?cn(w[he]):Va(w[he]);p(null,Ae,N,W,J,K,Y,oe,ce)}},T=(w,N,W,J,K,Y,oe)=>{const ce=N.el=w.el;let{patchFlag:de,dynamicChildren:he,dirs:Ae}=N;de|=w.patchFlag&16;const ye=w.props||vt,we=N.props||vt;let De;if(W&&vi(W,!1),(De=we.onVnodeBeforeUpdate)&&Ma(De,W,N,w),Ae&&di(N,w,W,"beforeUpdate"),W&&vi(W,!0),(ye.innerHTML&&we.innerHTML==null||ye.textContent&&we.textContent==null)&&u(ce,""),he?b(w.dynamicChildren,he,ce,W,J,Nc(N,K),Y):oe||ve(w,N,ce,null,W,J,Nc(N,K),Y,!1),de>0){if(de&16)M(ce,ye,we,W,K);else if(de&2&&ye.class!==we.class&&i(ce,"class",null,we.class,K),de&4&&i(ce,"style",ye.style,we.style,K),de&8){const ke=N.dynamicProps;for(let Pe=0;Pe<ke.length;Pe++){const be=ke[Pe],rt=ye[be],Fe=we[be];(Fe!==rt||be==="value")&&i(ce,be,rt,Fe,K,W)}}de&1&&w.children!==N.children&&u(ce,N.children)}else!oe&&he==null&&M(ce,ye,we,W,K);((De=we.onVnodeUpdated)||Ae)&&Fr(()=>{De&&Ma(De,W,N,w),Ae&&di(N,w,W,"updated")},J)},b=(w,N,W,J,K,Y,oe)=>{for(let ce=0;ce<N.length;ce++){const de=w[ce],he=N[ce],Ae=de.el&&(de.type===Ct||!bo(de,he)||de.shapeFlag&198)?c(de.el):W;p(de,he,Ae,null,J,K,Y,oe,!0)}},M=(w,N,W,J,K)=>{if(N!==W){if(N!==vt)for(const Y in N)!hf(Y)&&!(Y in W)&&i(w,Y,N[Y],null,K,J);for(const Y in W){if(hf(Y))continue;const oe=W[Y],ce=N[Y];oe!==ce&&Y!=="value"&&i(w,Y,ce,oe,K,J)}"value"in W&&i(w,"value",N.value,W.value,K)}},R=(w,N,W,J,K,Y,oe,ce,de)=>{const he=N.el=w?w.el:o(""),Ae=N.anchor=w?w.anchor:o("");let{patchFlag:ye,dynamicChildren:we,slotScopeIds:De}=N;De&&(ce=ce?ce.concat(De):De),w==null?(a(he,W,J),a(Ae,W,J),C(N.children||[],W,Ae,K,Y,oe,ce,de)):ye>0&&ye&64&&we&&w.dynamicChildren&&w.dynamicChildren.length===we.length?(b(w.dynamicChildren,we,W,K,Y,oe,ce),(N.key!=null||K&&N===K.subTree)&&Xy(w,N,!0)):ve(w,N,W,Ae,K,Y,oe,ce,de)},B=(w,N,W,J,K,Y,oe,ce,de)=>{N.slotScopeIds=ce,w==null?N.shapeFlag&512?K.ctx.activate(N,W,J,oe,de):G(N,W,J,K,Y,oe,de):re(w,N,de)},G=(w,N,W,J,K,Y,oe)=>{const ce=w.component=JC(w,J,K);if(ky(w)&&(ce.ctx.renderer=ne),eA(ce,!1,oe),ce.asyncDep){if(K&&K.registerDep(ce,j,oe),!w.el){const de=ce.subTree=gn(ti);m(null,de,N,W),w.placeholder=de.el}}else j(ce,w,N,W,K,Y,oe)},re=(w,N,W)=>{const J=N.component=w.component;if(IC(w,N,W))if(J.asyncDep&&!J.asyncResolved){q(J,N,W);return}else J.next=N,J.update();else N.el=w.el,J.vnode=N},j=(w,N,W,J,K,Y,oe)=>{const ce=()=>{if(w.isMounted){let{next:ye,bu:we,u:De,parent:ke,vnode:Pe}=w;{const Ye=Yy(w);if(Ye){ye&&(ye.el=Pe.el,q(w,ye,oe)),Ye.asyncDep.then(()=>{Fr(()=>{w.isUnmounted||he()},K)});return}}let be=ye,rt;vi(w,!1),ye?(ye.el=Pe.el,q(w,ye,oe)):ye=Pe,we&&F0(we),(rt=ye.props&&ye.props.onVnodeBeforeUpdate)&&Ma(rt,ke,ye,Pe),vi(w,!0);const Fe=W1(w),Ve=w.subTree;w.subTree=Fe,p(Ve,Fe,c(Ve.el),pe(Ve),w,K,Y),ye.el=Fe.el,be===null&&MC(w,Fe.el),De&&Fr(De,K),(rt=ye.props&&ye.props.onVnodeUpdated)&&Fr(()=>Ma(rt,ke,ye,Pe),K)}else{let ye;const{el:we,props:De}=N,{bm:ke,m:Pe,parent:be,root:rt,type:Fe}=w,Ve=mf(N);vi(w,!1),ke&&F0(ke),!Ve&&(ye=De&&De.onVnodeBeforeMount)&&Ma(ye,be,N),vi(w,!0);{rt.ce&&rt.ce._hasShadowRoot()&&rt.ce._injectChildStyle(Fe);const Ye=w.subTree=W1(w);p(null,Ye,W,J,w,K,Y),N.el=Ye.el}if(Pe&&Fr(Pe,K),!Ve&&(ye=De&&De.onVnodeMounted)){const Ye=N;Fr(()=>Ma(ye,be,Ye),K)}(N.shapeFlag&256||be&&mf(be.vnode)&&be.vnode.shapeFlag&256)&&w.a&&Fr(w.a,K),w.isMounted=!0,N=W=J=null}};w.scope.on();const de=w.effect=new sy(ce);w.scope.off();const he=w.update=de.run.bind(de),Ae=w.job=de.runIfDirty.bind(de);Ae.i=w,Ae.id=w.uid,de.scheduler=()=>Kv(Ae),vi(w,!0),he()},q=(w,N,W)=>{N.component=w;const J=w.vnode.props;w.vnode=N,w.next=null,PC(w,N.props,J,W),NC(w,N.children,W),yn(),O1(w),wn()},ve=(w,N,W,J,K,Y,oe,ce,de=!1)=>{const he=w&&w.children,Ae=w?w.shapeFlag:0,ye=N.children,{patchFlag:we,shapeFlag:De}=N;if(we>0){if(we&128){xe(he,ye,W,J,K,Y,oe,ce,de);return}else if(we&256){U(he,ye,W,J,K,Y,oe,ce,de);return}}De&8?(Ae&16&&ae(he,K,Y),ye!==he&&u(W,ye)):Ae&16?De&16?xe(he,ye,W,J,K,Y,oe,ce,de):ae(he,K,Y,!0):(Ae&8&&u(W,""),De&16&&C(ye,W,J,K,Y,oe,ce,de))},U=(w,N,W,J,K,Y,oe,ce,de)=>{w=w||Js,N=N||Js;const he=w.length,Ae=N.length,ye=Math.min(he,Ae);let we;for(we=0;we<ye;we++){const De=N[we]=de?cn(N[we]):Va(N[we]);p(w[we],De,W,null,K,Y,oe,ce,de)}he>Ae?ae(w,K,Y,!0,!1,ye):C(N,W,J,K,Y,oe,ce,de,ye)},xe=(w,N,W,J,K,Y,oe,ce,de)=>{let he=0;const Ae=N.length;let ye=w.length-1,we=Ae-1;for(;he<=ye&&he<=we;){const De=w[he],ke=N[he]=de?cn(N[he]):Va(N[he]);if(bo(De,ke))p(De,ke,W,null,K,Y,oe,ce,de);else break;he++}for(;he<=ye&&he<=we;){const De=w[ye],ke=N[we]=de?cn(N[we]):Va(N[we]);if(bo(De,ke))p(De,ke,W,null,K,Y,oe,ce,de);else break;ye--,we--}if(he>ye){if(he<=we){const De=we+1,ke=De<Ae?N[De].el:J;for(;he<=we;)p(null,N[he]=de?cn(N[he]):Va(N[he]),W,ke,K,Y,oe,ce,de),he++}}else if(he>we)for(;he<=ye;)P(w[he],K,Y,!0),he++;else{const De=he,ke=he,Pe=new Map;for(he=ke;he<=we;he++){const Nt=N[he]=de?cn(N[he]):Va(N[he]);Nt.key!=null&&Pe.set(Nt.key,he)}let be,rt=0;const Fe=we-ke+1;let Ve=!1,Ye=0;const Qe=new Array(Fe);for(he=0;he<Fe;he++)Qe[he]=0;for(he=De;he<=ye;he++){const Nt=w[he];if(rt>=Fe){P(Nt,K,Y,!0);continue}let Jt;if(Nt.key!=null)Jt=Pe.get(Nt.key);else for(be=ke;be<=we;be++)if(Qe[be-ke]===0&&bo(Nt,N[be])){Jt=be;break}Jt===void 0?P(Nt,K,Y,!0):(Qe[Jt-ke]=he+1,Jt>=Ye?Ye=Jt:Ve=!0,p(Nt,N[Jt],W,null,K,Y,oe,ce,de),rt++)}const qt=Ve?zC(Qe):Js;for(be=qt.length-1,he=Fe-1;he>=0;he--){const Nt=ke+he,Jt=N[Nt],_s=N[Nt+1],ci=Nt+1<Ae?_s.el||Ky(_s):J;Qe[he]===0?p(null,Jt,W,ci,K,Y,oe,ce,de):Ve&&(be<0||he!==qt[be]?se(Jt,W,ci,2):be--)}}},se=(w,N,W,J,K=null)=>{const{el:Y,type:oe,transition:ce,children:de,shapeFlag:he}=w;if(he&6){se(w.component.subTree,N,W,J);return}if(he&128){w.suspense.move(N,W,J);return}if(he&64){oe.move(w,N,W,ne);return}if(oe===Ct){a(Y,N,W);for(let ye=0;ye<de.length;ye++)se(de[ye],N,W,J);a(w.anchor,N,W);return}if(oe===Uc){_(w,N,W);return}if(J!==2&&he&1&&ce)if(J===0)ce.beforeEnter(Y),a(Y,N,W),Fr(()=>ce.enter(Y),K);else{const{leave:ye,delayLeave:we,afterLeave:De}=ce,ke=()=>{w.ctx.isUnmounted?n(Y):a(Y,N,W)},Pe=()=>{Y._isLeaving&&Y[iC](!0),ye(Y,()=>{ke(),De&&De()})};we?we(Y,ke,Pe):Pe()}else a(Y,N,W)},P=(w,N,W,J=!1,K=!1)=>{const{type:Y,props:oe,ref:ce,children:de,dynamicChildren:he,shapeFlag:Ae,patchFlag:ye,dirs:we,cacheIndex:De}=w;if(ye===-2&&(K=!1),ce!=null&&(yn(),gf(ce,null,W,w,!0),wn()),De!=null&&(N.renderCache[De]=void 0),Ae&256){N.ctx.deactivate(w);return}const ke=Ae&1&&we,Pe=!mf(w);let be;if(Pe&&(be=oe&&oe.onVnodeBeforeUnmount)&&Ma(be,N,w),Ae&6)z(w.component,W,J);else{if(Ae&128){w.suspense.unmount(W,J);return}ke&&di(w,null,N,"beforeUnmount"),Ae&64?w.type.remove(w,N,W,ne,J):he&&!he.hasOnce&&(Y!==Ct||ye>0&&ye&64)?ae(he,N,W,!1,!0):(Y===Ct&&ye&384||!K&&Ae&16)&&ae(de,N,W),J&&V(w)}(Pe&&(be=oe&&oe.onVnodeUnmounted)||ke)&&Fr(()=>{be&&Ma(be,N,w),ke&&di(w,null,N,"unmounted")},W)},V=w=>{const{type:N,el:W,anchor:J,transition:K}=w;if(N===Ct){H(W,J);return}if(N===Uc){y(w);return}const Y=()=>{n(W),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(w.shapeFlag&1&&K&&!K.persisted){const{leave:oe,delayLeave:ce}=K,de=()=>oe(W,Y);ce?ce(w.el,Y,de):de()}else Y()},H=(w,N)=>{let W;for(;w!==N;)W=h(w),n(w),w=W;n(N)},z=(w,N,W)=>{const{bum:J,scope:K,job:Y,subTree:oe,um:ce,m:de,a:he}=w;X1(de),X1(he),J&&F0(J),K.stop(),Y&&(Y.flags|=8,P(oe,w,N,W)),ce&&Fr(ce,N),Fr(()=>{w.isUnmounted=!0},N)},ae=(w,N,W,J=!1,K=!1,Y=0)=>{for(let oe=Y;oe<w.length;oe++)P(w[oe],N,W,J,K)},pe=w=>{if(w.shapeFlag&6)return pe(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const N=h(w.anchor||w.el),W=N&&N[aC];return W?h(W):N};let le=!1;const ie=(w,N,W)=>{let J;w==null?N._vnode&&(P(N._vnode,null,null,!0),J=N._vnode.component):p(N._vnode||null,w,N,null,null,null,W),N._vnode=w,le||(le=!0,O1(J),Sy(),le=!1)},ne={p,um:P,m:se,r:V,mt:G,mc:C,pc:ve,pbc:b,n:pe,o:e};return{render:ie,hydrate:void 0,createApp:CC(ie)}}function Nc({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function vi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function VC(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xy(e,t,r=!1){const a=e.children,n=t.children;if(Be(a)&&Be(n))for(let i=0;i<a.length;i++){const s=a[i];let o=n[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=n[i]=cn(n[i]),o.el=s.el),!r&&o.patchFlag!==-2&&Xy(s,o)),o.type===Qu&&(o.patchFlag===-1&&(o=n[i]=cn(o)),o.el=s.el),o.type===ti&&!o.el&&(o.el=s.el)}}function zC(e){const t=e.slice(),r=[0];let a,n,i,s,o;const f=e.length;for(a=0;a<f;a++){const l=e[a];if(l!==0){if(n=r[r.length-1],e[n]<l){t[a]=n,r.push(a);continue}for(i=0,s=r.length-1;i<s;)o=i+s>>1,e[r[o]]<l?i=o+1:s=o;l<e[r[i]]&&(i>0&&(t[a]=r[i-1]),r[i]=a)}}for(i=r.length,s=r[i-1];i-- >0;)r[i]=s,s=t[s];return r}function Yy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yy(t)}function X1(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ky(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ky(t.subTree):null}const Zy=e=>e.__isSuspense;function WC(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):jE(e)}const Ct=Symbol.for("v-fgt"),Qu=Symbol.for("v-txt"),ti=Symbol.for("v-cmt"),Uc=Symbol.for("v-stc"),_f=[];let Gr=null;function it(e=!1){_f.push(Gr=e?null:[])}function GC(){_f.pop(),Gr=_f[_f.length-1]||null}let Gf=1;function Y1(e,t=!1){Gf+=e,e<0&&Gr&&t&&(Gr.hasOnce=!0)}function jy(e){return e.dynamicChildren=Gf>0?Gr||Js:null,GC(),Gf>0&&Gr&&Gr.push(e),e}function ut(e,t,r,a,n,i){return jy(me(e,t,r,a,n,i,!0))}function $C(e,t,r,a,n){return jy(gn(e,t,r,a,n,!0))}function qy(e){return e?e.__v_isVNode===!0:!1}function bo(e,t){return e.type===t.type&&e.key===t.key}const Jy=({key:e})=>e??null,M0=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Bt(e)||fr(e)||Ge(e)?{i:fa,r:e,k:t,f:!!r}:e:null);function me(e,t=null,r=null,a=0,n=null,i=e===Ct?0:1,s=!1,o=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jy(t),ref:t&&M0(t),scopeId:Cy,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:a,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:fa};return o?(Qv(f,r),i&128&&e.normalize(f)):r&&(f.shapeFlag|=Bt(r)?8:16),Gf>0&&!s&&Gr&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Gr.push(f),f}const gn=XC;function XC(e,t=null,r=null,a=0,n=null,i=!1){if((!e||e===mC)&&(e=ti),qy(e)){const o=vo(e,t,!0);return r&&Qv(o,r),Gf>0&&!i&&Gr&&(o.shapeFlag&6?Gr[Gr.indexOf(e)]=o:Gr.push(o)),o.patchFlag=-2,o}if(nA(e)&&(e=e.__vccOpts),t){t=YC(t);let{class:o,style:f}=t;o&&!Bt(o)&&(t.class=eo(o)),ct(f)&&(Xv(f)&&!Be(f)&&(f=jt({},f)),t.style=Ta(f))}const s=Bt(e)?1:Zy(e)?128:nC(e)?64:ct(e)?4:Ge(e)?2:0;return me(e,t,r,a,n,s,i,!0)}function YC(e){return e?Xv(e)||Hy(e)?jt({},e):e:null}function vo(e,t,r=!1,a=!1){const{props:n,ref:i,patchFlag:s,children:o,transition:f}=e,l=t?ZC(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Jy(l),ref:t&&t.ref?r&&i?Be(i)?i.concat(M0(t)):[i,M0(t)]:M0(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ct?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vo(e.ssContent),ssFallback:e.ssFallback&&vo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&a&&jv(u,f.clone(u)),u}function KC(e=" ",t=0){return gn(Qu,null,e,t)}function Fo(e="",t=!1){return t?(it(),$C(ti,null,e)):gn(ti,null,e)}function Va(e){return e==null||typeof e=="boolean"?gn(ti):Be(e)?gn(Ct,null,e.slice()):qy(e)?cn(e):gn(Qu,null,String(e))}function cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vo(e)}function Qv(e,t){let r=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(a&65){const n=t.default;n&&(n._c&&(n._d=!1),Qv(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!Hy(t)?t._ctx=fa:n===3&&fa&&(fa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:fa},r=32):(t=String(t),a&64?(r=16,t=[KC(t)]):r=8);e.children=t,e.shapeFlag|=r}function ZC(...e){const t={};for(let r=0;r<e.length;r++){const a=e[r];for(const n in a)if(n==="class")t.class!==a.class&&(t.class=eo([t.class,a.class]));else if(n==="style")t.style=Ta([t.style,a.style]);else if(Gu(n)){const i=t[n],s=a[n];s&&i!==s&&!(Be(i)&&i.includes(s))&&(t[n]=i?[].concat(i,s):s)}else n!==""&&(t[n]=a[n])}return t}function Ma(e,t,r,a=null){ja(e,t,7,[r,a])}const jC=Ly();let qC=0;function JC(e,t,r){const a=e.type,n=(t?t.appContext:e.appContext)||jC,i={uid:qC++,vnode:e,type:a,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new _E(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zy(a,n),emitsOptions:Oy(a,n),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:a.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=DC.bind(null,i),e.ce&&e.ce(i),i}let wr=null;const QC=()=>wr||fa;let eu,Cd;{const e=Ku(),t=(r,a)=>{let n;return(n=e[r])||(n=e[r]=[]),n.push(a),i=>{n.length>1?n.forEach(s=>s(i)):n[0](i)}};eu=t("__VUE_INSTANCE_SETTERS__",r=>wr=r),Cd=t("__VUE_SSR_SETTERS__",r=>$f=r)}const wl=e=>{const t=wr;return eu(e),e.scope.on(),()=>{e.scope.off(),eu(t)}},K1=()=>{wr&&wr.scope.off(),eu(null)};function Qy(e){return e.vnode.shapeFlag&4}let $f=!1;function eA(e,t=!1,r=!1){t&&Cd(t);const{props:a,children:n}=e.vnode,i=Qy(e);RC(e,a,i,t),BC(e,n,r||t);const s=i?tA(e,t):void 0;return t&&Cd(!1),s}function tA(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xC);const{setup:a}=r;if(a){yn();const n=e.setupContext=a.length>1?aA(e):null,i=wl(e),s=yl(a,e,0,[e.props,n]),o=J_(s);if(wn(),i(),(o||e.sp)&&!mf(e)&&Dy(e),o){if(s.then(K1,K1),t)return s.then(f=>{Z1(e,f)}).catch(f=>{ju(f,e,0)});e.asyncDep=s}else Z1(e,s)}else ew(e)}function Z1(e,t,r){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ct(t)&&(e.setupState=yy(t)),ew(e)}function ew(e,t,r){const a=e.type;e.render||(e.render=a.render||Xa);{const n=wl(e);yn();try{_C(e)}finally{wn(),n()}}}const rA={get(e,t){return ir(e,"get",""),e[t]}};function aA(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,rA),slots:e.slots,emit:e.emit,expose:t}}function ec(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yy(HE(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in xf)return xf[r](e)},has(t,r){return r in t||r in xf}})):e.proxy}function nA(e){return Ge(e)&&"__vccOpts"in e}const Jr=(e,t)=>$E(e,t,$f),iA="3.5.28";let Ad;const j1=typeof window<"u"&&window.trustedTypes;if(j1)try{Ad=j1.createPolicy("vue",{createHTML:e=>e})}catch{}const tw=Ad?e=>Ad.createHTML(e):e=>e,sA="http://www.w3.org/2000/svg",oA="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,q1=ln&&ln.createElement("template"),fA={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,a)=>{const n=t==="svg"?ln.createElementNS(sA,e):t==="mathml"?ln.createElementNS(oA,e):r?ln.createElement(e,{is:r}):ln.createElement(e);return e==="select"&&a&&a.multiple!=null&&n.setAttribute("multiple",a.multiple),n},createText:e=>ln.createTextNode(e),createComment:e=>ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,a,n,i){const s=r?r.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===i||!(n=n.nextSibling)););else{q1.innerHTML=tw(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const o=q1.content;if(a==="svg"||a==="mathml"){const f=o.firstChild;for(;f.firstChild;)o.appendChild(f.firstChild);o.removeChild(f)}t.insertBefore(o,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},lA=Symbol("_vtc");function uA(e,t,r){const a=e[lA];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const J1=Symbol("_vod"),cA=Symbol("_vsh"),hA=Symbol(""),dA=/(?:^|;)\s*display\s*:/;function vA(e,t,r){const a=e.style,n=Bt(r);let i=!1;if(r&&!n){if(t)if(Bt(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();r[o]==null&&R0(a,o,"")}else for(const s in t)r[s]==null&&R0(a,s,"");for(const s in r)s==="display"&&(i=!0),R0(a,s,r[s])}else if(n){if(t!==r){const s=a[hA];s&&(r+=";"+s),a.cssText=r,i=dA.test(r)}}else t&&e.removeAttribute("style");J1 in e&&(e[J1]=i?a.display:"",e[cA]&&(a.display="none"))}const Q1=/\s*!important$/;function R0(e,t,r){if(Be(r))r.forEach(a=>R0(e,t,a));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const a=pA(e,t);Q1.test(r)?e.setProperty(li(a),r.replace(Q1,""),"important"):e[a]=r}}const eg=["Webkit","Moz","ms"],Hc={};function pA(e,t){const r=Hc[t];if(r)return r;let a=ei(t);if(a!=="filter"&&a in e)return Hc[t]=a;a=ty(a);for(let n=0;n<eg.length;n++){const i=eg[n]+a;if(i in e)return Hc[t]=i}return t}const tg="http://www.w3.org/1999/xlink";function rg(e,t,r,a,n,i=gE(t)){a&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(tg,t.slice(6,t.length)):e.setAttributeNS(tg,t,r):r==null||i&&!ay(r)?e.removeAttribute(t):e.setAttribute(t,i?"":Za(r)?String(r):r)}function ag(e,t,r,a,n){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?tw(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,f=r==null?e.type==="checkbox"?"on":"":String(r);(o!==f||!("_value"in e))&&(e.value=f),r==null&&e.removeAttribute(t),e._value=r;return}let s=!1;if(r===""||r==null){const o=typeof e[t];o==="boolean"?r=ay(r):r==null&&o==="string"?(r="",s=!0):o==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(n||t)}function zi(e,t,r,a){e.addEventListener(t,r,a)}function gA(e,t,r,a){e.removeEventListener(t,r,a)}const ng=Symbol("_vei");function mA(e,t,r,a,n=null){const i=e[ng]||(e[ng]={}),s=i[t];if(a&&s)s.value=a;else{const[o,f]=xA(t);if(a){const l=i[t]=wA(a,n);zi(e,o,l,f)}else s&&(gA(e,o,s,f),i[t]=void 0)}}const ig=/(?:Once|Passive|Capture)$/;function xA(e){let t;if(ig.test(e)){t={};let a;for(;a=e.match(ig);)e=e.slice(0,e.length-a[0].length),t[a[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):li(e.slice(2)),t]}let Vc=0;const _A=Promise.resolve(),yA=()=>Vc||(_A.then(()=>Vc=0),Vc=Date.now());function wA(e,t){const r=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=r.attached)return;ja(TA(a,r.value),t,5,[a])};return r.value=e,r.attached=yA(),r}function TA(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(a=>n=>!n._stopped&&a&&a(n))}else return t}const sg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,SA=(e,t,r,a,n,i)=>{const s=n==="svg";t==="class"?uA(e,a,s):t==="style"?vA(e,r,a):Gu(t)?Bv(t)||mA(e,t,r,a,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):EA(e,t,a,s))?(ag(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rg(e,t,a,s,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Bt(a))?ag(e,ei(t),a,i,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),rg(e,t,a,s))};function EA(e,t,r,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&sg(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return sg(t)&&Bt(r)?!1:t in e}const tu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>F0(t,r):t};function CA(e){e.target.composing=!0}function og(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ao=Symbol("_assign");function fg(e,t,r){return t&&(e=e.trim()),r&&(e=Yu(e)),e}const lg={created(e,{modifiers:{lazy:t,trim:r,number:a}},n){e[ao]=tu(n);const i=a||n.props&&n.props.type==="number";zi(e,t?"change":"input",s=>{s.target.composing||e[ao](fg(e.value,r,i))}),(r||i)&&zi(e,"change",()=>{e.value=fg(e.value,r,i)}),t||(zi(e,"compositionstart",CA),zi(e,"compositionend",og),zi(e,"change",og))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:a,trim:n,number:i}},s){if(e[ao]=tu(s),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Yu(e.value):e.value,f=t??"";o!==f&&(document.activeElement===e&&e.type!=="range"&&(a&&t===r||n&&e.value.trim()===f)||(e.value=f))}},Io={deep:!0,created(e,{value:t,modifiers:{number:r}},a){const n=$u(t);zi(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?Yu(ru(s)):ru(s));e[ao](e.multiple?n?new Set(i):i:i[0]),e._assigning=!0,Yv(()=>{e._assigning=!1})}),e[ao]=tu(a)},mounted(e,{value:t}){ug(e,t)},beforeUpdate(e,t,r){e[ao]=tu(r)},updated(e,{value:t}){e._assigning||ug(e,t)}};function ug(e,t){const r=e.multiple,a=Be(t);if(!(r&&!a&&!$u(t))){for(let n=0,i=e.options.length;n<i;n++){const s=e.options[n],o=ru(s);if(r)if(a){const f=typeof o;f==="string"||f==="number"?s.selected=t.some(l=>String(l)===String(o)):s.selected=xE(t,o)>-1}else s.selected=t.has(o);else if(_l(ru(s),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ru(e){return"_value"in e?e._value:e.value}const AA=["ctrl","shift","alt","meta"],DA={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>AA.some(r=>e[`${r}Key`]&&!t.includes(r))},pi=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),a=t.join(".");return r[a]||(r[a]=((n,...i)=>{for(let s=0;s<t.length;s++){const o=DA[t[s]];if(o&&o(n,t))return}return e(n,...i)}))},kA={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},bA=(e,t)=>{const r=e._withKeys||(e._withKeys={}),a=t.join(".");return r[a]||(r[a]=(n=>{if(!("key"in n))return;const i=li(n.key);if(t.some(s=>s===i||kA[s]===i))return e(n)}))},FA=jt({patchProp:SA},fA);let cg;function IA(){return cg||(cg=UC(FA))}const MA=((...e)=>{const t=IA().createApp(...e),{mount:r}=t;return t.mount=a=>{const n=PA(a);if(!n)return;const i=t._component;!Ge(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const s=r(n,!1,RA(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),s},t});function RA(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function PA(e){return Bt(e)?document.querySelector(e):e}var Dd=function(e,t){return Dd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Dd(e,t)};function He(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var LA=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),OA=(function(){function e(){this.browser=new LA,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),Ne=new OA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ne.wxa=!0,Ne.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ne.worker=!0:!Ne.hasGlobalWindow||"Deno"in window?(Ne.node=!0,Ne.svgSupported=!0):BA(navigator.userAgent,Ne);function BA(e,t){var r=t.browser,a=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),s&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var o=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in o||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var ep=12,rw="sans-serif",ri=ep+"px "+rw,NA=20,UA=100,HA="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function VA(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var a=String.fromCharCode(r+32),n=(e.charCodeAt(r)-NA)/UA;t[a]=n}return t}var zA=VA(HA),xo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,a){if(!e){var n=xo.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==a&&(t=e.font=a||ri),e.measureText(r);r=r||"",a=a||ri;var i=/((?:\d+)?\.?\d*)px/.exec(a),s=i&&+i[1]||ep,o=0;if(a.indexOf("mono")>=0)o=s*r.length;else for(var f=0;f<r.length;f++){var l=zA[r[f]];o+=l==null?s:l*s}return{width:o}}})(),loadImage:function(e,t,r){var a=new Image;return a.onload=t,a.onerror=r,a.src=e,a}},aw=_o(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nw=_o(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Tl=Object.prototype.toString,tc=Array.prototype,WA=tc.forEach,GA=tc.filter,tp=tc.slice,$A=tc.map,hg=(function(){}).constructor,zl=hg?hg.prototype:null,rp="__proto__",XA=2311;function iw(){return XA++}function ap(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function je(e){if(e==null||typeof e!="object")return e;var t=e,r=Tl.call(e);if(r==="[object Array]"){if(!wf(e)){t=[];for(var a=0,n=e.length;a<n;a++)t[a]=je(e[a])}}else if(nw[r]){if(!wf(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var a=0,n=e.length;a<n;a++)t[a]=e[a]}}}else if(!aw[r]&&!wf(e)&&!Xf(e)){t={};for(var s in e)e.hasOwnProperty(s)&&s!==rp&&(t[s]=je(e[s]))}return t}function Ot(e,t,r){if(!Re(t)||!Re(e))return r?je(t):e;for(var a in t)if(t.hasOwnProperty(a)&&a!==rp){var n=e[a],i=t[a];Re(i)&&Re(n)&&!Ie(i)&&!Ie(n)&&!Xf(i)&&!Xf(n)&&!dg(i)&&!dg(n)&&!wf(i)&&!wf(n)?Ot(n,i,r):(r||!(a in e))&&(e[a]=je(t[a]))}return e}function Se(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==rp&&(e[r]=t[r]);return e}function Mt(e,t,r){for(var a=at(t),n=0,i=a.length;n<i;n++){var s=a[n];e[s]==null&&(e[s]=t[s])}return e}function wt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,a=e.length;r<a;r++)if(e[r]===t)return r}return-1}function YA(e,t){var r=e.prototype;function a(){}a.prototype=t.prototype,e.prototype=new a;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Fa(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&e[i]==null&&(e[i]=t[i])}else Mt(e,t)}function Or(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function X(e,t,r){if(e&&t)if(e.forEach&&e.forEach===WA)e.forEach(t,r);else if(e.length===+e.length)for(var a=0,n=e.length;a<n;a++)t.call(r,e[a],a,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function $e(e,t,r){if(!e)return[];if(!t)return np(e);if(e.map&&e.map===$A)return e.map(t,r);for(var a=[],n=0,i=e.length;n<i;n++)a.push(t.call(r,e[n],n,e));return a}function _o(e,t,r,a){if(e&&t){for(var n=0,i=e.length;n<i;n++)r=t.call(a,r,e[n],n,e);return r}}function Hr(e,t,r){if(!e)return[];if(!t)return np(e);if(e.filter&&e.filter===GA)return e.filter(t,r);for(var a=[],n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)&&a.push(e[n]);return a}function at(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function KA(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return function(){return e.apply(t,r.concat(tp.call(arguments)))}}var Et=zl&&ft(zl.bind)?zl.call.bind(zl.bind):KA;function Sr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(tp.call(arguments)))}}function Ie(e){return Array.isArray?Array.isArray(e):Tl.call(e)==="[object Array]"}function ft(e){return typeof e=="function"}function Me(e){return typeof e=="string"}function kd(e){return Tl.call(e)==="[object String]"}function It(e){return typeof e=="number"}function Re(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function dg(e){return!!aw[Tl.call(e)]}function Br(e){return!!nw[Tl.call(e)]}function Xf(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function rc(e){return e.colorStops!=null}function ZA(e){return e.image!=null}function jA(e){return e!==e}function ss(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e.length;r<a;r++)if(e[r]!=null)return e[r]}function ze(e,t){return e??t}function yf(e,t,r){return e??t??r}function np(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return tp.apply(e,t)}function sw(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Yr(e,t){if(!e)throw new Error(t)}function Ga(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ow="__ec_primitive__";function bd(e){e[ow]=!0}function wf(e){return e[ow]}var qA=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return at(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var a in r)r.hasOwnProperty(a)&&t(r[a],a)},e})(),fw=typeof Map=="function";function JA(){return fw?new Map:new qA}var QA=(function(){function e(t){var r=Ie(t);this.data=JA();var a=this;t instanceof e?t.each(n):t&&X(t,n);function n(i,s){r?a.set(i,s):a.set(s,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(a,n){t.call(r,a,n)})},e.prototype.keys=function(){var t=this.data.keys();return fw?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function Xe(e){return new QA(e)}function eD(e,t){for(var r=new e.constructor(e.length+t.length),a=0;a<e.length;a++)r[a]=e[a];for(var n=e.length,a=0;a<t.length;a++)r[a+n]=t[a];return r}function ac(e,t){var r;if(Object.create)r=Object.create(e);else{var a=function(){};a.prototype=e,r=new a}return t&&Se(r,t),r}function lw(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function po(e,t){return e.hasOwnProperty(t)}function lr(){}var P0=180/Math.PI;function yo(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function tD(e){return[e[0],e[1]]}function vg(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function rD(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function aD(e){return Math.sqrt(nD(e))}function nD(e){return e[0]*e[0]+e[1]*e[1]}function zc(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function iD(e,t){var r=aD(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Fd(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var sD=Fd;function oD(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var no=oD;function Ya(e,t,r){var a=t[0],n=t[1];return e[0]=r[0]*a+r[2]*n+r[4],e[1]=r[1]*a+r[3]*n+r[5],e}function Xs(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ys(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Cs=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),fD=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Cs(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var a=t.offsetX,n=t.offsetY,i=a-this._x,s=n-this._y;this._x=a,this._y=n,r.drift(i,s,t),this.handler.dispatchToElement(new Cs(r,t),"drag",t.event);var o=this.handler.findHover(a,n,r).target,f=this._dropTarget;this._dropTarget=o,r!==o&&(f&&o!==f&&this.handler.dispatchToElement(new Cs(f,t),"dragleave",t.event),o&&o!==f&&this.handler.dispatchToElement(new Cs(o,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Cs(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Cs(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Qa=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(n=a,a=r,r=null),!a||!t)return this;var s=this._$eventProcessor;r!=null&&s&&s.normalizeQuery&&(r=s.normalizeQuery(r)),i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===a)return this;var f={h:a,query:r,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,f):i[t].push(f),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(r){if(a[t]){for(var n=[],i=0,s=a[t].length;i<s;i++)a[t][i].h!==r&&n.push(a[t][i]);a[t]=n}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},e.prototype.trigger=function(t){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var s=r.length,o=n.length,f=0;f<o;f++){var l=n[f];if(!(i&&i.filter&&l.query!=null&&!i.filter(t,l.query)))switch(s){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var s=r.length,o=r[s-1],f=n.length,l=0;l<f;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(s){case 0:u.h.call(o);break;case 1:u.h.call(o,r[0]);break;case 2:u.h.call(o,r[0],r[1]);break;default:u.h.apply(o,r.slice(1,s-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e})(),lD=Math.log(2);function Id(e,t,r,a,n,i){var s=a+"-"+n,o=e.length;if(i.hasOwnProperty(s))return i[s];if(t===1){var f=Math.round(Math.log((1<<o)-1&~n)/lD);return e[r][f]}for(var l=a|1<<r,u=r+1;a&1<<u;)u++;for(var c=0,h=0,d=0;h<o;h++){var v=1<<h;v&n||(c+=(d%2?-1:1)*e[r][h]*Id(e,t-1,u,l,n|v,i),d++)}return i[s]=c,c}function pg(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],a={},n=Id(r,8,0,0,0,a);if(n!==0){for(var i=[],s=0;s<8;s++)for(var o=0;o<8;o++)i[o]==null&&(i[o]=0),i[o]+=((s+o)%2?-1:1)*Id(r,7,s===0?1:0,1<<s,1<<o,a)/n*t[s];return function(f,l,u){var c=l*i[6]+u*i[7]+1;f[0]=(l*i[0]+u*i[1]+i[2])/c,f[1]=(l*i[3]+u*i[4]+i[5])/c}}}var gg="___zrEVENTSAVED",Wc=[];function uD(e,t,r,a,n){return Md(Wc,t,a,n,!0)&&Md(e,r,Wc[0],Wc[1])}function Md(e,t,r,a,n){if(t.getBoundingClientRect&&Ne.domSupported&&!uw(t)){var i=t[gg]||(t[gg]={}),s=cD(t,i),o=hD(s,i,n);if(o)return o(e,r,a),!0}return!1}function cD(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var s=document.createElement("div"),o=s.style,f=i%2,l=(i>>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[f]+":0",n[l]+":0",a[1-f]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(s),r.push(s)}return r}function hD(e,t,r){for(var a=r?"invTrans":"trans",n=t[a],i=t.srcCoords,s=[],o=[],f=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),c=2*l,h=u.left,d=u.top;s.push(h,d),f=f&&i&&h===i[c]&&d===i[c+1],o.push(e[l].offsetLeft,e[l].offsetTop)}return f&&n?n:(t.srcCoords=s,t[a]=r?pg(o,s):pg(s,o))}function uw(e){return e.nodeName.toUpperCase()==="CANVAS"}var dD=/([&<>"'])/g,vD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xr(e){return e==null?"":(e+"").replace(dD,function(t,r){return vD[r]})}var pD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gc=[],gD=Ne.browser.firefox&&+Ne.browser.version.split(".")[0]<39;function Rd(e,t,r,a){return r=r||{},a?mg(e,t,r):gD&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):mg(e,t,r),r}function mg(e,t,r){if(Ne.domSupported&&e.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(uw(e)){var i=e.getBoundingClientRect();r.zrX=a-i.left,r.zrY=n-i.top;return}else if(Md(Gc,e,a,n)){r.zrX=Gc[0],r.zrY=Gc[1];return}}r.zrX=r.zrY=0}function ip(e){return e||window.event}function ta(e,t,r){if(t=ip(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var s=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&Rd(e,s,t,r)}else{Rd(e,t,t,r);var i=mD(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&pD.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function mD(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,a=e.deltaY;if(r==null||a==null)return t;var n=Math.abs(a!==0?a:r),i=a>0?-1:a<0?1:r>0?-1:1;return 3*n*i}function xD(e,t,r,a){e.addEventListener(t,r,a)}function _D(e,t,r,a){e.removeEventListener(t,r,a)}var cw=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},yD=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,a){return this._doTrack(t,r,a),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:r,event:t},s=0,o=n.length;s<o;s++){var f=n[s],l=Rd(a,f,{});i.points.push([l.zrX,l.zrY]),i.touches.push(f)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in $c)if($c.hasOwnProperty(r)){var a=$c[r](this._track,t);if(a)return a}},e})();function xg(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function wD(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var $c={pinch:function(e,t){var r=e.length;if(r){var a=(e[r-1]||{}).points,n=(e[r-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=xg(a)/xg(n);!isFinite(i)&&(i=1),t.pinchScale=i;var s=wD(a);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function io(){return[1,0,0,1,0,0]}function sp(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function TD(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function so(e,t,r){var a=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],s=t[1]*r[2]+t[3]*r[3],o=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=a,e[1]=n,e[2]=i,e[3]=s,e[4]=o,e[5]=f,e}function Pd(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function op(e,t,r,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],s=t[4],o=t[1],f=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+f*u,e[3]=-i*u+c*f,e[4]=c*(s-a[0])+u*(l-a[1])+a[0],e[5]=c*(l-a[1])-u*(s-a[0])+a[1],e}function SD(e,t,r){var a=r[0],n=r[1];return e[0]=t[0]*a,e[1]=t[1]*n,e[2]=t[2]*a,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*n,e}function hw(e,t){var r=t[0],a=t[2],n=t[4],i=t[1],s=t[3],o=t[5],f=r*s-i*a;return f?(f=1/f,e[0]=s*f,e[1]=-i*f,e[2]=-a*f,e[3]=r*f,e[4]=(a*o-s*n)*f,e[5]=(i*n-r*o)*f,e):null}var dt=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,a=this.y-t.y;return Math.sqrt(r*r+a*a)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,a=this.y-t.y;return r*r+a*a},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,a=this.y;return this.x=t[0]*r+t[2]*a+t[4],this.y=t[1]*r+t[3]*a+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,a){t.x=r,t.y=a},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,a){t.x=r.x+a.x,t.y=r.y+a.y},e.sub=function(t,r,a){t.x=r.x-a.x,t.y=r.y-a.y},e.scale=function(t,r,a){t.x=r.x*a,t.y=r.y*a},e.scaleAndAdd=function(t,r,a,n){t.x=r.x+a.x*n,t.y=r.y+a.y*n},e.lerp=function(t,r,a,n){var i=1-n;t.x=i*r.x+n*a.x,t.y=i*r.y+n*a.y},e})(),Wl=Math.min,Gl=Math.max,gi=new dt,mi=new dt,xi=new dt,_i=new dt,Mo=new dt,Ro=new dt,pt=(function(){function e(t,r,a,n){a<0&&(t=t+a,a=-a),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=a,this.height=n}return e.prototype.union=function(t){var r=Wl(t.x,this.x),a=Wl(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Gl(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Gl(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=r,this.y=a},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,a=t.width/r.width,n=t.height/r.height,i=io();return Pd(i,i,[-r.x,-r.y]),SD(i,i,[a,n]),Pd(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var a=this,n=a.x,i=a.x+a.width,s=a.y,o=a.y+a.height,f=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height,h=!(i<f||l<n||o<u||c<s);if(r){var d=1/0,v=0,p=Math.abs(i-f),g=Math.abs(l-n),m=Math.abs(o-u),x=Math.abs(c-s),_=Math.min(p,g),y=Math.min(m,x);i<f||l<n?_>v&&(v=_,p<g?dt.set(Ro,-p,0):dt.set(Ro,g,0)):_<d&&(d=_,p<g?dt.set(Mo,p,0):dt.set(Mo,-g,0)),o<u||c<s?y>v&&(v=y,m<x?dt.set(Ro,0,-m):dt.set(Ro,0,x)):_<d&&(d=_,m<x?dt.set(Mo,0,m):dt.set(Mo,0,-x))}return r&&dt.copy(r,h?Mo:Ro),h},e.prototype.contain=function(t,r){var a=this;return t>=a.x&&t<=a.x+a.width&&r>=a.y&&r<=a.y+a.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,a){if(!a){t!==r&&e.copy(t,r);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],s=a[4],o=a[5];t.x=r.x*n+s,t.y=r.y*i+o,t.width=r.width*n,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}gi.x=xi.x=r.x,gi.y=_i.y=r.y,mi.x=_i.x=r.x+r.width,mi.y=xi.y=r.y+r.height,gi.transform(a),_i.transform(a),mi.transform(a),xi.transform(a),t.x=Wl(gi.x,mi.x,xi.x,_i.x),t.y=Wl(gi.y,mi.y,xi.y,_i.y);var f=Gl(gi.x,mi.x,xi.x,_i.x),l=Gl(gi.y,mi.y,xi.y,_i.y);t.width=f-t.x,t.height=l-t.y},e})(),dw="silent";function ED(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:CD}}function CD(){cw(this.event)}var AD=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Qa),Po=(function(){function e(t,r){this.x=t,this.y=r}return e})(),DD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xc=new pt(0,0,0,0),vw=(function(e){He(t,e);function t(r,a,n,i,s){var o=e.call(this)||this;return o._hovered=new Po(0,0),o.storage=r,o.painter=a,o.painterRoot=i,o._pointerSize=s,n=n||new AD,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new fD(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(X(DD,function(a){r.on&&r.on(a,this[a],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var a=r.zrX,n=r.zrY,i=pw(this,a,n),s=this._hovered,o=s.target;o&&!o.__zr&&(s=this.findHover(s.x,s.y),o=s.target);var f=this._hovered=i?new Po(a,n):this.findHover(a,n),l=f.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(s,"mouseout",r),this.dispatchToElement(f,"mousemove",r),l&&l!==o&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var a=r.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Po(0,0)},t.prototype.dispatch=function(r,a){var n=this[r];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var a=this.proxy;a.setCursor&&a.setCursor(r)},t.prototype.dispatchToElement=function(r,a,n){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var s="on"+a,o=ED(a,r,n);i&&(i[s]&&(o.cancelBubble=!!i[s].call(i,o)),i.trigger(a,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(a,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[s]=="function"&&f[s].call(f,o),f.trigger&&f.trigger(a,o)}))}},t.prototype.findHover=function(r,a,n){var i=this.storage.getDisplayList(),s=new Po(r,a);if(_g(i,s,r,a,n),this._pointerSize&&!s.target){for(var o=[],f=this._pointerSize,l=f/2,u=new pt(r-l,a-l,f,f),c=i.length-1;c>=0;c--){var h=i[c];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Xc.copy(h.getBoundingRect()),h.transform&&Xc.applyTransform(h.transform),Xc.intersect(u)&&o.push(h))}if(o.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,g=0;g<l;g+=d)for(var m=0;m<p;m+=v){var x=r+g*Math.cos(m),_=a+g*Math.sin(m);if(_g(o,s,x,_,n),s.target)return s}}return s},t.prototype.processGesture=function(r,a){this._gestureMgr||(this._gestureMgr=new yD);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var s=i.type;r.gestureEvent=s;var o=new Po;o.target=i.target,this.dispatchToElement(o,s,i.event)}},t})(Qa);X(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){vw.prototype[e]=function(t){var r=t.zrX,a=t.zrY,n=pw(this,r,a),i,s;if((e!=="mouseup"||!n)&&(i=this.findHover(r,a),s=i.target),e==="mousedown")this._downEl=s,this._downPoint=[t.zrX,t.zrY],this._upEl=s;else if(e==="mouseup")this._upEl=s;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||sD(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function kD(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var a=e,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var s=a.getClipPath();if(s&&!s.contain(t,r))return!1}a.silent&&(n=!0);var o=a.__hostTarget;a=o||a.parent}return n?dw:!0}return!1}function _g(e,t,r,a,n){for(var i=e.length-1;i>=0;i--){var s=e[i],o=void 0;if(s!==n&&!s.ignore&&(o=kD(s,r,a))&&(!t.topTarget&&(t.topTarget=s),o!==dw)){t.target=s;break}}}function pw(e,t,r){var a=e.painter;return t<0||t>a.getWidth()||r<0||r>a.getHeight()}var gw=32,Lo=7;function bD(e){for(var t=0;e>=gw;)t|=e&1,e>>=1;return e+t}function yg(e,t,r,a){var n=t+1;if(n===r)return 1;if(a(e[n++],e[t])<0){for(;n<r&&a(e[n],e[n-1])<0;)n++;FD(e,t,n)}else for(;n<r&&a(e[n],e[n-1])>=0;)n++;return n-t}function FD(e,t,r){for(r--;t<r;){var a=e[t];e[t++]=e[r],e[r--]=a}}function wg(e,t,r,a,n){for(a===t&&a++;a<r;a++){for(var i=e[a],s=t,o=a,f;s<o;)f=s+o>>>1,n(i,e[f])<0?o=f:s=f+1;var l=a-s;switch(l){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;l>0;)e[s+l]=e[s+l-1],l--}e[s]=i}}function Yc(e,t,r,a,n,i){var s=0,o=0,f=1;if(i(e,t[r+n])>0){for(o=a-n;f<o&&i(e,t[r+n+f])>0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o),s+=n,f+=n}else{for(o=n+1;f<o&&i(e,t[r+n-f])<=0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o);var l=s;s=n-f,f=n-l}for(s++;s<f;){var u=s+(f-s>>>1);i(e,t[r+u])>0?s=u+1:f=u}return f}function Kc(e,t,r,a,n,i){var s=0,o=0,f=1;if(i(e,t[r+n])<0){for(o=n+1;f<o&&i(e,t[r+n-f])<0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o);var l=s;s=n-f,f=n-l}else{for(o=a-n;f<o&&i(e,t[r+n+f])>=0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o),s+=n,f+=n}for(s++;s<f;){var u=s+(f-s>>>1);i(e,t[r+u])<0?f=u:s=u+1}return f}function ID(e,t){var r=Lo,a,n,i=0,s=[];a=[],n=[];function o(d,v){a[i]=d,n[i]=v,i+=1}function f(){for(;i>1;){var d=i-2;if(d>=1&&n[d-1]<=n[d]+n[d+1]||d>=2&&n[d-2]<=n[d]+n[d-1])n[d-1]<n[d+1]&&d--;else if(n[d]>n[d+1])break;u(d)}}function l(){for(;i>1;){var d=i-2;d>0&&n[d-1]<n[d+1]&&d--,u(d)}}function u(d){var v=a[d],p=n[d],g=a[d+1],m=n[d+1];n[d]=p+m,d===i-3&&(a[d+1]=a[d+2],n[d+1]=n[d+2]),i--;var x=Kc(e[g],e,v,p,0,t);v+=x,p-=x,p!==0&&(m=Yc(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?c(v,p,g,m):h(v,p,g,m)))}function c(d,v,p,g){var m=0;for(m=0;m<v;m++)s[m]=e[d+m];var x=0,_=p,y=d;if(e[y++]=e[_++],--g===0){for(m=0;m<v;m++)e[y+m]=s[x+m];return}if(v===1){for(m=0;m<g;m++)e[y+m]=e[_+m];e[y+g]=s[x];return}for(var F=r,k,E,C;;){k=0,E=0,C=!1;do if(t(e[_],s[x])<0){if(e[y++]=e[_++],E++,k=0,--g===0){C=!0;break}}else if(e[y++]=s[x++],k++,E=0,--v===1){C=!0;break}while((k|E)<F);if(C)break;do{if(k=Kc(e[_],s,x,v,0,t),k!==0){for(m=0;m<k;m++)e[y+m]=s[x+m];if(y+=k,x+=k,v-=k,v<=1){C=!0;break}}if(e[y++]=e[_++],--g===0){C=!0;break}if(E=Yc(s[x],e,_,g,0,t),E!==0){for(m=0;m<E;m++)e[y+m]=e[_+m];if(y+=E,_+=E,g-=E,g===0){C=!0;break}}if(e[y++]=s[x++],--v===1){C=!0;break}F--}while(k>=Lo||E>=Lo);if(C)break;F<0&&(F=0),F+=2}if(r=F,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[y+m]=e[_+m];e[y+g]=s[x]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[y+m]=s[x+m]}}function h(d,v,p,g){var m=0;for(m=0;m<g;m++)s[m]=e[p+m];var x=d+v-1,_=g-1,y=p+g-1,F=0,k=0;if(e[y--]=e[x--],--v===0){for(F=y-(g-1),m=0;m<g;m++)e[F+m]=s[m];return}if(g===1){for(y-=v,x-=v,k=y+1,F=x+1,m=v-1;m>=0;m--)e[k+m]=e[F+m];e[y]=s[_];return}for(var E=r;;){var C=0,T=0,b=!1;do if(t(s[_],e[x])<0){if(e[y--]=e[x--],C++,T=0,--v===0){b=!0;break}}else if(e[y--]=s[_--],T++,C=0,--g===1){b=!0;break}while((C|T)<E);if(b)break;do{if(C=v-Kc(s[_],e,d,v,v-1,t),C!==0){for(y-=C,x-=C,v-=C,k=y+1,F=x+1,m=C-1;m>=0;m--)e[k+m]=e[F+m];if(v===0){b=!0;break}}if(e[y--]=s[_--],--g===1){b=!0;break}if(T=g-Yc(e[x],s,0,g,g-1,t),T!==0){for(y-=T,_-=T,g-=T,k=y+1,F=_+1,m=0;m<T;m++)e[k+m]=s[F+m];if(g<=1){b=!0;break}}if(e[y--]=e[x--],--v===0){b=!0;break}E--}while(C>=Lo||T>=Lo);if(b)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),g===1){for(y-=v,x-=v,k=y+1,F=x+1,m=v-1;m>=0;m--)e[k+m]=e[F+m];e[y]=s[_]}else{if(g===0)throw new Error;for(F=y-(g-1),m=0;m<g;m++)e[F+m]=s[m]}}return{mergeRuns:f,forceMergeRuns:l,pushRun:o}}function L0(e,t,r,a){r||(r=0),a||(a=e.length);var n=a-r;if(!(n<2)){var i=0;if(n<gw){i=yg(e,r,a,t),wg(e,r,a,r+i,t);return}var s=ID(e,t),o=bD(n);do{if(i=yg(e,r,a,t),i<o){var f=n;f>o&&(f=o),wg(e,r,r+f,r+i,t),i=f}s.pushRun(r,i),s.mergeRuns(),n-=i,r+=i}while(n!==0);s.forceMergeRuns()}}var zr=1,Qo=2,zs=4,Tg=!1;function Zc(){Tg||(Tg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Sg(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var MD=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Sg}return e.prototype.traverse=function(t,r){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(r),a},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,a=this._displayList,n=0,i=r.length;n<i;n++)this._updateAndAddDisplayable(r[n],null,t);a.length=this._displayListLen,L0(a,Sg)},e.prototype._updateAndAddDisplayable=function(t,r,a){if(!(t.ignore&&!a)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)r=null;else if(n){r?r=r.slice():r=[];for(var i=n,s=t;i;)i.parent=s,i.updateTransform(),r.push(i),s=i,i=i.getClipPath()}if(t.childrenRef){for(var o=t.childrenRef(),f=0;f<o.length;f++){var l=o[f];t.__dirty&&(l.__dirty|=zr),this._updateAndAddDisplayable(l,r,a)}t.__dirty=0}else{var u=t;r&&r.length?u.__clipPaths=r:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Zc(),u.z=0),isNaN(u.z2)&&(Zc(),u.z2=0),isNaN(u.zlevel)&&(Zc(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,a);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,a);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,r,a)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,a=t.length;r<a;r++)this.delRoot(t[r]);return}var n=wt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),au;au=Ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Tf={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,a=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)))},elasticOut:function(e){var t,r=.1,a=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/a)+1)},elasticInOut:function(e){var t,r=.1,a=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Tf.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Tf.bounceIn(e*2)*.5:Tf.bounceOut(e*2-1)*.5+.5}},$l=Math.pow,Kn=Math.sqrt,nu=1e-8,mw=1e-4,Eg=Kn(3),Xl=1/3,Wa=yo(),ia=yo(),oo=yo();function zn(e){return e>-nu&&e<nu}function xw(e){return e>nu||e<-nu}function _r(e,t,r,a,n){var i=1-n;return i*i*(i*e+3*n*t)+n*n*(n*a+3*i*r)}function Cg(e,t,r,a,n){var i=1-n;return 3*(((t-e)*i+2*(r-t)*n)*i+(a-r)*n*n)}function _w(e,t,r,a,n,i){var s=a+3*(t-r)-e,o=3*(r-t*2+e),f=3*(t-e),l=e-n,u=o*o-3*s*f,c=o*f-9*s*l,h=f*f-3*o*l,d=0;if(zn(u)&&zn(c))if(zn(o))i[0]=0;else{var v=-f/o;v>=0&&v<=1&&(i[d++]=v)}else{var p=c*c-4*u*h;if(zn(p)){var g=c/u,v=-o/s+g,m=-g/2;v>=0&&v<=1&&(i[d++]=v),m>=0&&m<=1&&(i[d++]=m)}else if(p>0){var x=Kn(p),_=u*o+1.5*s*(-c+x),y=u*o+1.5*s*(-c-x);_<0?_=-$l(-_,Xl):_=$l(_,Xl),y<0?y=-$l(-y,Xl):y=$l(y,Xl);var v=(-o-(_+y))/(3*s);v>=0&&v<=1&&(i[d++]=v)}else{var F=(2*u*o-3*s*c)/(2*Kn(u*u*u)),k=Math.acos(F)/3,E=Kn(u),C=Math.cos(k),v=(-o-2*E*C)/(3*s),m=(-o+E*(C+Eg*Math.sin(k)))/(3*s),T=(-o+E*(C-Eg*Math.sin(k)))/(3*s);v>=0&&v<=1&&(i[d++]=v),m>=0&&m<=1&&(i[d++]=m),T>=0&&T<=1&&(i[d++]=T)}}return d}function yw(e,t,r,a,n){var i=6*r-12*t+6*e,s=9*t+3*a-3*e-9*r,o=3*t-3*e,f=0;if(zn(s)){if(xw(i)){var l=-o/i;l>=0&&l<=1&&(n[f++]=l)}}else{var u=i*i-4*s*o;if(zn(u))n[0]=-i/(2*s);else if(u>0){var c=Kn(u),l=(-i+c)/(2*s),h=(-i-c)/(2*s);l>=0&&l<=1&&(n[f++]=l),h>=0&&h<=1&&(n[f++]=h)}}return f}function iu(e,t,r,a,n,i){var s=(t-e)*n+e,o=(r-t)*n+t,f=(a-r)*n+r,l=(o-s)*n+s,u=(f-o)*n+o,c=(u-l)*n+l;i[0]=e,i[1]=s,i[2]=l,i[3]=c,i[4]=c,i[5]=u,i[6]=f,i[7]=a}function RD(e,t,r,a,n,i,s,o,f,l,u){var c,h=.005,d=1/0,v,p,g,m;Wa[0]=f,Wa[1]=l;for(var x=0;x<1;x+=.05)ia[0]=_r(e,r,n,s,x),ia[1]=_r(t,a,i,o,x),g=no(Wa,ia),g<d&&(c=x,d=g);d=1/0;for(var _=0;_<32&&!(h<mw);_++)v=c-h,p=c+h,ia[0]=_r(e,r,n,s,v),ia[1]=_r(t,a,i,o,v),g=no(ia,Wa),v>=0&&g<d?(c=v,d=g):(oo[0]=_r(e,r,n,s,p),oo[1]=_r(t,a,i,o,p),m=no(oo,Wa),p<=1&&m<d?(c=p,d=m):h*=.5);return Kn(d)}function PD(e,t,r,a,n,i,s,o,f){for(var l=e,u=t,c=0,h=1/f,d=1;d<=f;d++){var v=d*h,p=_r(e,r,n,s,v),g=_r(t,a,i,o,v),m=p-l,x=g-u;c+=Math.sqrt(m*m+x*x),l=p,u=g}return c}function Rr(e,t,r,a){var n=1-a;return n*(n*e+2*a*t)+a*a*r}function Ag(e,t,r,a){return 2*((1-a)*(t-e)+a*(r-t))}function LD(e,t,r,a,n){var i=e-2*t+r,s=2*(t-e),o=e-a,f=0;if(zn(i)){if(xw(s)){var l=-o/s;l>=0&&l<=1&&(n[f++]=l)}}else{var u=s*s-4*i*o;if(zn(u)){var l=-s/(2*i);l>=0&&l<=1&&(n[f++]=l)}else if(u>0){var c=Kn(u),l=(-s+c)/(2*i),h=(-s-c)/(2*i);l>=0&&l<=1&&(n[f++]=l),h>=0&&h<=1&&(n[f++]=h)}}return f}function ww(e,t,r){var a=e+r-2*t;return a===0?.5:(e-t)/a}function su(e,t,r,a,n){var i=(t-e)*a+e,s=(r-t)*a+t,o=(s-i)*a+i;n[0]=e,n[1]=i,n[2]=o,n[3]=o,n[4]=s,n[5]=r}function OD(e,t,r,a,n,i,s,o,f){var l,u=.005,c=1/0;Wa[0]=s,Wa[1]=o;for(var h=0;h<1;h+=.05){ia[0]=Rr(e,r,n,h),ia[1]=Rr(t,a,i,h);var d=no(Wa,ia);d<c&&(l=h,c=d)}c=1/0;for(var v=0;v<32&&!(u<mw);v++){var p=l-u,g=l+u;ia[0]=Rr(e,r,n,p),ia[1]=Rr(t,a,i,p);var d=no(ia,Wa);if(p>=0&&d<c)l=p,c=d;else{oo[0]=Rr(e,r,n,g),oo[1]=Rr(t,a,i,g);var m=no(oo,Wa);g<=1&&m<c?(l=g,c=m):u*=.5}}return Kn(c)}function BD(e,t,r,a,n,i,s){for(var o=e,f=t,l=0,u=1/s,c=1;c<=s;c++){var h=c*u,d=Rr(e,r,n,h),v=Rr(t,a,i,h),p=d-o,g=v-f;l+=Math.sqrt(p*p+g*g),o=d,f=v}return l}var ND=/cubic-bezier\(([0-9,\.e ]+)\)/;function fp(e){var t=e&&ND.exec(e);if(t){var r=t[1].split(","),a=+Ga(r[0]),n=+Ga(r[1]),i=+Ga(r[2]),s=+Ga(r[3]);if(isNaN(a+n+i+s))return;var o=[];return function(f){return f<=0?0:f>=1?1:_w(0,a,i,1,f,o)&&_r(0,n,s,1,o[0])}}}var UD=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||lr,this.ondestroy=t.ondestroy||lr,this.onrestart=t.onrestart||lr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var s=this.easingFunc,o=s?s(i):i;if(this.onframe(o),i===1)if(this.loop){var f=n%a;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ft(t)?t:Tf[t]||fp(t)},e})(),Tw=(function(){function e(t){this.value=t}return e})(),HD=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Tw(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,a=t.next;r?r.next=a:this.head=a,a?a.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Sl=(function(){function e(t){this._list=new HD,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var a=this._list,n=this._map,i=null;if(n[t]==null){var s=a.len(),o=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var f=a.head;a.remove(f),delete n[f.key],i=f.value,this._lastRemovedEntry=f}o?o.value=r:o=new Tw(r),o.key=t,a.insertEntry(o),n[t]=o}return i},e.prototype.get=function(t){var r=this._map[t],a=this._list;if(r!=null)return r!==a.tail&&(a.remove(r),a.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Dg={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 Zn(e){return e=Math.round(e),e<0?0:e>255?255:e}function VD(e){return e=Math.round(e),e<0?0:e>360?360:e}function ou(e){return e<0?0:e>1?1:e}function jc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Zn(parseFloat(t)/100*255):Zn(parseInt(t,10))}function Qi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ou(parseFloat(t)/100):ou(parseFloat(t))}function qc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Yl(e,t,r){return e+(t-e)*r}function Qr(e,t,r,a,n){return e[0]=t,e[1]=r,e[2]=a,e[3]=n,e}function Ld(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Sw=new Sl(20),Kl=null;function As(e,t){Kl&&Ld(Kl,t),Kl=Sw.put(e,Kl||t.slice())}function Ka(e,t){if(e){t=t||[];var r=Sw.get(e);if(r)return Ld(t,r);e=e+"";var a=e.replace(/ /g,"").toLowerCase();if(a in Dg)return Ld(t,Dg[a]),As(e,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Qr(t,0,0,0,1);return}return Qr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),As(e,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Qr(t,0,0,0,1);return}return Qr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),As(e,t),t}return}var s=a.indexOf("("),o=a.indexOf(")");if(s!==-1&&o+1===n){var f=a.substr(0,s),l=a.substr(s+1,o-(s+1)).split(","),u=1;switch(f){case"rgba":if(l.length!==4)return l.length===3?Qr(t,+l[0],+l[1],+l[2],1):Qr(t,0,0,0,1);u=Qi(l.pop());case"rgb":if(l.length>=3)return Qr(t,jc(l[0]),jc(l[1]),jc(l[2]),l.length===3?u:Qi(l[3])),As(e,t),t;Qr(t,0,0,0,1);return;case"hsla":if(l.length!==4){Qr(t,0,0,0,1);return}return l[3]=Qi(l[3]),Od(l,t),As(e,t),t;case"hsl":if(l.length!==3){Qr(t,0,0,0,1);return}return Od(l,t),As(e,t),t;default:return}}Qr(t,0,0,0,1)}}function Od(e,t){var r=(parseFloat(e[0])%360+360)%360/360,a=Qi(e[1]),n=Qi(e[2]),i=n<=.5?n*(a+1):n+a-n*a,s=n*2-i;return t=t||[],Qr(t,Zn(qc(s,i,r+1/3)*255),Zn(qc(s,i,r)*255),Zn(qc(s,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function zD(e){if(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.min(t,r,a),i=Math.max(t,r,a),s=i-n,o=(i+n)/2,f,l;if(s===0)f=0,l=0;else{o<.5?l=s/(i+n):l=s/(2-i-n);var u=((i-t)/6+s/2)/s,c=((i-r)/6+s/2)/s,h=((i-a)/6+s/2)/s;t===i?f=h-c:r===i?f=1/3+u-h:a===i&&(f=2/3+c-u),f<0&&(f+=1),f>1&&(f-=1)}var d=[f*360,l,o];return e[3]!=null&&d.push(e[3]),d}}function kg(e,t){var r=Ka(e);if(r){for(var a=0;a<3;a++)r[a]=r[a]*(1-t)|0,r[a]>255?r[a]=255:r[a]<0&&(r[a]=0);return es(r,r.length===4?"rgba":"rgb")}}function Jc(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var a=e*(t.length-1),n=Math.floor(a),i=Math.ceil(a),s=t[n],o=t[i],f=a-n;return r[0]=Zn(Yl(s[0],o[0],f)),r[1]=Zn(Yl(s[1],o[1],f)),r[2]=Zn(Yl(s[2],o[2],f)),r[3]=ou(Yl(s[3],o[3],f)),r}}function Qc(e,t,r,a){var n=Ka(e);if(e)return n=zD(n),t!=null&&(n[0]=VD(t)),r!=null&&(n[1]=Qi(r)),a!=null&&(n[2]=Qi(a)),es(Od(n),"rgba")}function WD(e,t){var r=Ka(e);if(r&&t!=null)return r[3]=ou(t),es(r,"rgba")}function es(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function fu(e,t){var r=Ka(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var bg=new Sl(100);function Bd(e){if(Me(e)){var t=bg.get(e);return t||(t=kg(e,-.1),bg.put(e,t)),t}else if(rc(e)){var r=Se({},e);return r.colorStops=$e(e.colorStops,function(a){return{offset:a.offset,color:kg(a.color,-.1)}}),r}return e}var lu=Math.round;function Yf(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Ka(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Fg=1e-4;function Wn(e){return e<Fg&&e>-Fg}function Zl(e){return lu(e*1e3)/1e3}function Nd(e){return lu(e*1e4)/1e4}function GD(e){return"matrix("+Zl(e[0])+","+Zl(e[1])+","+Zl(e[2])+","+Zl(e[3])+","+Nd(e[4])+","+Nd(e[5])+")"}var $D={left:"start",right:"end",center:"middle",middle:"middle"};function XD(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function YD(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function KD(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Ew(e){return e&&!!e.image}function ZD(e){return e&&!!e.svgElement}function lp(e){return Ew(e)||ZD(e)}function Cw(e){return e.type==="linear"}function Aw(e){return e.type==="radial"}function Dw(e){return e&&(e.type==="linear"||e.type==="radial")}function nc(e){return"url(#"+e+")"}function kw(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function bw(e){var t=e.x||0,r=e.y||0,a=(e.rotation||0)*P0,n=ze(e.scaleX,1),i=ze(e.scaleY,1),s=e.skewX||0,o=e.skewY||0,f=[];return(t||r)&&f.push("translate("+t+"px,"+r+"px)"),a&&f.push("rotate("+a+")"),(n!==1||i!==1)&&f.push("scale("+n+","+i+")"),(s||o)&&f.push("skew("+lu(s*P0)+"deg, "+lu(o*P0)+"deg)"),f.join(" ")}var jD=(function(){return Ne.hasGlobalWindow&&ft(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})(),Ud=Array.prototype.slice;function un(e,t,r){return(t-e)*r+e}function eh(e,t,r,a){for(var n=t.length,i=0;i<n;i++)e[i]=un(t[i],r[i],a);return e}function qD(e,t,r,a){for(var n=t.length,i=n&&t[0].length,s=0;s<n;s++){e[s]||(e[s]=[]);for(var o=0;o<i;o++)e[s][o]=un(t[s][o],r[s][o],a)}return e}function jl(e,t,r,a){for(var n=t.length,i=0;i<n;i++)e[i]=t[i]+r[i]*a;return e}function Ig(e,t,r,a){for(var n=t.length,i=n&&t[0].length,s=0;s<n;s++){e[s]||(e[s]=[]);for(var o=0;o<i;o++)e[s][o]=t[s][o]+r[s][o]*a}return e}function JD(e,t){for(var r=e.length,a=t.length,n=r>a?t:e,i=Math.min(r,a),s=n[i-1]||{color:[0,0,0,0],offset:0},o=i;o<Math.max(r,a);o++)n.push({offset:s.offset,color:s.color.slice()})}function QD(e,t,r){var a=e,n=t;if(!(!a.push||!n.push)){var i=a.length,s=n.length;if(i!==s){var o=i>s;if(o)a.length=s;else for(var f=i;f<s;f++)a.push(r===1?n[f]:Ud.call(n[f]))}for(var l=a[0]&&a[0].length,f=0;f<a.length;f++)if(r===1)isNaN(a[f])&&(a[f]=n[f]);else for(var u=0;u<l;u++)isNaN(a[f][u])&&(a[f][u]=n[f][u])}}function O0(e){if(Or(e)){var t=e.length;if(Or(e[0])){for(var r=[],a=0;a<t;a++)r.push(Ud.call(e[a]));return r}return Ud.call(e)}return e}function B0(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function ek(e){return Or(e&&e[0])?2:1}var ql=0,N0=1,Fw=2,ef=3,Hd=4,Vd=5,Mg=6;function Rg(e){return e===Hd||e===Vd}function Jl(e){return e===N0||e===Fw}var Oo=[0,0,0,0],tk=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,a){this._needsSort=!0;var n=this.keyframes,i=n.length,s=!1,o=Mg,f=r;if(Or(r)){var l=ek(r);o=l,(l===1&&!It(r[0])||l===2&&!It(r[0][0]))&&(s=!0)}else if(It(r)&&!jA(r))o=ql;else if(Me(r))if(!isNaN(+r))o=ql;else{var u=Ka(r);u&&(f=u,o=ef)}else if(rc(r)){var c=Se({},f);c.colorStops=$e(r.colorStops,function(d){return{offset:d.offset,color:Ka(d.color)}}),Cw(r)?o=Hd:Aw(r)&&(o=Vd),f=c}i===0?this.valType=o:(o!==this.valType||o===Mg)&&(s=!0),this.discrete=this.discrete||s;var h={time:t,value:f,rawValue:r,percent:0};return a&&(h.easing=a,h.easingFunc=ft(a)?a:Tf[a]||fp(a)),n.push(h),h},e.prototype.prepare=function(t,r){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,s=a[i-1],o=this.discrete,f=Jl(n),l=Rg(n),u=0;u<i;u++){var c=a[u],h=c.value,d=s.value;c.percent=c.time/t,o||(f&&u!==i-1?QD(h,d,n):l&&JD(h.colorStops,d.colorStops))}if(!o&&n!==Vd&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=a[0].value,u=0;u<i;u++)n===ql?a[u].additiveValue=a[u].value-v:n===ef?a[u].additiveValue=jl([],a[u].value,v,-1):Jl(n)&&(a[u].additiveValue=n===N0?jl([],a[u].value,v,-1):Ig([],a[u].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,s=this.keyframes,o=s.length,f=this.propName,l=i===ef,u,c=this._lastFr,h=Math.min,d,v;if(o===1)d=v=s[0];else{if(r<0)u=0;else if(r<this._lastFrP){var p=h(c+1,o-1);for(u=p;u>=0&&!(s[u].percent<=r);u--);u=h(u,o-2)}else{for(u=c;u<o&&!(s[u].percent>r);u++);u=h(u-1,o-2)}v=s[u+1],d=s[u]}if(d&&v){this._lastFr=u,this._lastFrP=r;var g=v.percent-d.percent,m=g===0?1:h((r-d.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var x=a?this._additiveValue:l?Oo:t[f];if((Jl(i)||l)&&!x&&(x=this._additiveValue=[]),this.discrete)t[f]=m<1?d.rawValue:v.rawValue;else if(Jl(i))i===N0?eh(x,d[n],v[n],m):qD(x,d[n],v[n],m);else if(Rg(i)){var _=d[n],y=v[n],F=i===Hd;t[f]={type:F?"linear":"radial",x:un(_.x,y.x,m),y:un(_.y,y.y,m),colorStops:$e(_.colorStops,function(E,C){var T=y.colorStops[C];return{offset:un(E.offset,T.offset,m),color:B0(eh([],E.color,T.color,m))}}),global:y.global},F?(t[f].x2=un(_.x2,y.x2,m),t[f].y2=un(_.y2,y.y2,m)):t[f].r=un(_.r,y.r,m)}else if(l)eh(x,d[n],v[n],m),a||(t[f]=B0(x));else{var k=un(d[n],v[n],m);a?this._additiveValue=k:t[f]=k}a&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,a=this.propName,n=this._additiveValue;r===ql?t[a]=t[a]+n:r===ef?(Ka(t[a],Oo),jl(Oo,Oo,n,1),t[a]=B0(Oo)):r===N0?jl(t[a],t[a],n,1):r===Fw&&Ig(t[a],t[a],n,1)},e})(),up=(function(){function e(t,r,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){ap("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,a){return this.whenWithKeys(t,r,at(r),a)},e.prototype.whenWithKeys=function(t,r,a,n){for(var i=this._tracks,s=0;s<a.length;s++){var o=a[s],f=i[o];if(!f){f=i[o]=new tk(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===ef&&l&&(l=B0(l))}else l=this._target[o];if(l==null)continue;t>0&&f.addKeyframe(0,O0(l),n),this._trackKeys.push(o)}f.addKeyframe(t,O0(r[o]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,a=0;a<r;a++)t[a].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var a=0;a<r.length;a++)r[a].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,a=0;a<r.length;a++)t[r[a]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var s=this._trackKeys[i],o=this._tracks[s],f=this._getAdditiveTrack(s),l=o.keyframes,u=l.length;if(o.prepare(n,f),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(r._target[o.propName]=c.rawValue),o.setFinished()}else a.push(o)}if(a.length||this._force){var h=new UD({life:n,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(r._target,d);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return $e(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var s=a[t[i]];s&&!s.isFinished()&&(r?s.step(this._target,1):this._started===1&&s.step(this._target,0),s.setFinished())}for(var o=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(t,r,a){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var i=r[n],s=this._tracks[i];if(!(!s||s.isFinished())){var o=s.keyframes,f=o[a?0:o.length-1];f&&(t[i]=O0(f.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||at(t);for(var a=0;a<r.length;a++){var n=r[a],i=this._tracks[n];if(i){var s=i.keyframes;if(s.length>1){var o=s.pop();i.addKeyframe(o.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e})();function Ks(){return new Date().getTime()}var rk=(function(e){He(t,e);function t(r){var a=e.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,r=r||{},a.stage=r.stage||{},a}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var a=r.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(r){if(r.animation){var a=r.prev,n=r.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var a=r.getClip();a&&this.removeClip(a),r.animation=null},t.prototype.update=function(r){for(var a=Ks()-this._pausedTime,n=a-this._time,i=this._head;i;){var s=i.next,o=i.step(a,n);o&&(i.ondestroy(),this.removeClip(i)),i=s}this._time=a,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function a(){r._running&&(au(a),!r._paused&&r.update())}au(a)},t.prototype.start=function(){this._running||(this._time=Ks(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ks(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ks()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var a=r.next;r.prev=r.next=r.animation=null,r=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,a){a=a||{},this.start();var n=new up(r,a.loop);return this.addAnimator(n),n},t})(Qa),ak=300,th=Ne.domSupported,rh=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=$e(e,function(n){var i=n.replace("mouse","pointer");return r.hasOwnProperty(i)?i:n});return{mouse:e,touch:t,pointer:a}})(),Pg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Lg=!1;function zd(e){var t=e.pointerType;return t==="pen"||t==="touch"}function nk(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ah(e){e&&(e.zrByTouch=!0)}function ik(e,t){return ta(e.dom,new sk(e,t),!0)}function Iw(e,t){for(var r=t,a=!1;r&&r.nodeType!==9&&!(a=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return a}var sk=(function(){function e(t,r){this.stopPropagation=lr,this.stopImmediatePropagation=lr,this.preventDefault=lr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),ya={mousedown:function(e){e=ta(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ta(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ta(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ta(this.dom,e);var t=e.toElement||e.relatedTarget;Iw(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Lg=!0,e=ta(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Lg||(e=ta(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ta(this.dom,e),ah(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ya.mousemove.call(this,e),ya.mousedown.call(this,e)},touchmove:function(e){e=ta(this.dom,e),ah(e),this.handler.processGesture(e,"change"),ya.mousemove.call(this,e)},touchend:function(e){e=ta(this.dom,e),ah(e),this.handler.processGesture(e,"end"),ya.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ak&&ya.click.call(this,e)},pointerdown:function(e){ya.mousedown.call(this,e)},pointermove:function(e){zd(e)||ya.mousemove.call(this,e)},pointerup:function(e){ya.mouseup.call(this,e)},pointerout:function(e){zd(e)||ya.mouseout.call(this,e)}};X(["click","dblclick","contextmenu"],function(e){ya[e]=function(t){t=ta(this.dom,t),this.trigger(e,t)}});var Wd={pointermove:function(e){zd(e)||Wd.mousemove.call(this,e)},pointerup:function(e){Wd.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function ok(e,t){var r=t.domHandlers;Ne.pointerEventsSupported?X(rh.pointer,function(a){U0(t,a,function(n){r[a].call(e,n)})}):(Ne.touchEventsSupported&&X(rh.touch,function(a){U0(t,a,function(n){r[a].call(e,n),nk(t)})}),X(rh.mouse,function(a){U0(t,a,function(n){n=ip(n),t.touching||r[a].call(e,n)})}))}function fk(e,t){Ne.pointerEventsSupported?X(Pg.pointer,r):Ne.touchEventsSupported||X(Pg.mouse,r);function r(a){function n(i){i=ip(i),Iw(e,i.target)||(i=ik(e,i),t.domHandlers[a].call(e,i))}U0(t,a,n,{capture:!0})}}function U0(e,t,r,a){e.mounted[t]=r,e.listenerOpts[t]=a,xD(e.domTarget,t,r,a)}function nh(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&_D(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Og=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),lk=(function(e){He(t,e);function t(r,a){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=a,n._localHandlerScope=new Og(r,ya),th&&(n._globalHandlerScope=new Og(document,Wd)),ok(n,n._localHandlerScope),n}return t.prototype.dispose=function(){nh(this._localHandlerScope),th&&nh(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,th&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var a=this._globalHandlerScope;r?fk(this,a):nh(a)}},t})(Qa),Mw=1;Ne.hasGlobalWindow&&(Mw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var uu=Mw,Gd=.4,$d="#333",Xd="#ccc",uk="#eee",Bg=sp,Ng=5e-5;function yi(e){return e>Ng||e<-Ng}var wi=[],Ds=[],ih=io(),sh=Math.abs,cp=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return yi(this.rotation)||yi(this.x)||yi(this.y)||yi(this.scaleX-1)||yi(this.scaleY-1)||yi(this.skewX)||yi(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),a=this.transform;if(!(r||t)){a&&(Bg(a),this.invTransform=null);return}a=a||io(),r?this.getLocalTransform(a):Bg(a),t&&(r?so(a,t,a):TD(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(wi);var a=wi[0]<0?-1:1,n=wi[1]<0?-1:1,i=((wi[0]-a)*r+a)/wi[0]||0,s=((wi[1]-n)*r+n)/wi[1]||0;t[0]*=i,t[1]*=i,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||io(),hw(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=a,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||io(),so(Ds,t.invTransform,r),r=Ds);var a=this.originX,n=this.originY;(a||n)&&(ih[4]=a,ih[5]=n,so(Ds,r,ih),Ds[4]-=a,Ds[5]-=n,r=Ds),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var a=[t,r],n=this.invTransform;return n&&Ya(a,a,n),a},e.prototype.transformCoordToGlobal=function(t,r){var a=[t,r],n=this.transform;return n&&Ya(a,a,n),a},e.prototype.getLineScale=function(){var t=this.transform;return t&&sh(t[0]-1)>1e-10&&sh(t[3]-1)>1e-10?Math.sqrt(sh(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Rw(this,t)},e.getLocalTransform=function(t,r){r=r||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,s=t.scaleY,o=t.anchorX,f=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(a||n||o||f){var v=a+o,p=n+f;r[4]=-v*i-h*p*s,r[5]=-p*s-d*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=s,r[1]=d*i,r[2]=h*s,l&&op(r,r,l),r[4]+=a+u,r[5]+=n+c,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),Kf=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Rw(e,t){for(var r=0;r<Kf.length;r++){var a=Kf[r];e[a]=t[a]}}var Ug={};function $r(e,t){t=t||ri;var r=Ug[t];r||(r=Ug[t]=new Sl(500));var a=r.get(e);return a==null&&(a=xo.measureText(e,t).width,r.put(e,a)),a}function Hg(e,t,r,a){var n=$r(e,t),i=ic(t),s=tf(0,n,r),o=Ws(0,i,a),f=new pt(s,o,n,i);return f}function Pw(e,t,r,a){var n=((e||"")+"").split(`
`),i=n.length;if(i===1)return Hg(n[0],t,r,a);for(var s=new pt(0,0,0,0),o=0;o<n.length;o++){var f=Hg(n[o],t,r,a);o===0?s.copy(f):s.union(f)}return s}function tf(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ws(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function ic(e){return $r("国",e)}function Zf(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Lw(e,t,r){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=r.height,s=r.width,o=i/2,f=r.x,l=r.y,u="left",c="top";if(a instanceof Array)f+=Zf(a[0],r.width),l+=Zf(a[1],r.height),u=null,c=null;else switch(a){case"left":f-=n,l+=o,u="right",c="middle";break;case"right":f+=n+s,l+=o,c="middle";break;case"top":f+=s/2,l-=n,u="center",c="bottom";break;case"bottom":f+=s/2,l+=i+n,u="center";break;case"inside":f+=s/2,l+=o,u="center",c="middle";break;case"insideLeft":f+=n,l+=o,c="middle";break;case"insideRight":f+=s-n,l+=o,u="right",c="middle";break;case"insideTop":f+=s/2,l+=n,u="center";break;case"insideBottom":f+=s/2,l+=i-n,u="center",c="bottom";break;case"insideTopLeft":f+=n,l+=n;break;case"insideTopRight":f+=s-n,l+=n,u="right";break;case"insideBottomLeft":f+=n,l+=i-n,c="bottom";break;case"insideBottomRight":f+=s-n,l+=i-n,u="right",c="bottom";break}return e=e||{},e.x=f,e.y=l,e.align=u,e.verticalAlign=c,e}var oh="__zr_normal__",fh=Kf.concat(["ignore"]),ck=_o(Kf,function(e,t){return e[t]=!0,e},{ignore:!1}),ks={},hk=new pt(0,0,0,0),sc=(function(){function e(t){this.id=iw(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,a){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=r.innerTransformable,s=void 0,o=void 0,f=!1;i.parent=n?this:null;var l=!1;if(i.copyTransform(r),a.position!=null){var u=hk;a.layoutRect?u.copy(a.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ks,a,u):Lw(ks,a,u),i.x=ks.x,i.y=ks.y,s=ks.align,o=ks.verticalAlign;var c=a.origin;if(c&&a.rotation!=null){var h=void 0,d=void 0;c==="center"?(h=u.width*.5,d=u.height*.5):(h=Zf(c[0],u.width),d=Zf(c[1],u.height)),l=!0,i.originX=-i.x+h+(n?0:u.x),i.originY=-i.y+d+(n?0:u.y)}}a.rotation!=null&&(i.rotation=a.rotation);var v=a.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,x=void 0,_=void 0;p&&this.canBeInsideText()?(m=a.insideFill,x=a.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(m),_=!0)):(m=a.outsideFill,x=a.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||x!==g.stroke||_!==g.autoStroke||s!==g.align||o!==g.verticalAlign)&&(f=!0,g.fill=m,g.stroke=x,g.autoStroke=_,g.align=s,g.verticalAlign=o,r.setDefaultTextStyle(g)),r.__dirty|=zr,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Xd:$d},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),a=typeof r=="string"&&Ka(r);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),s=0;s<3;s++)a[s]=a[s]*n+(i?0:255)*(1-n);return a[3]=1,es(a,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Se(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Re(t))for(var a=t,n=at(a),i=0;i<n.length;i++){var s=n[i];this.attrKV(s,t[s])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==oh)){var s=n.targetName,o=s?r[s]:r;n.saveTo(o)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,fh)},e.prototype._savePrimaryToNormal=function(t,r,a){for(var n=0;n<a.length;n++){var i=a[n];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(oh,!1,t)},e.prototype.useState=function(t,r,a,n){var i=t===oh,s=this.hasState();if(!(!s&&i)){var o=this.currentStates,f=this.stateTransition;if(!(wt(o,t)>=0&&(r||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){ap("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!a&&!this.__inHover&&f&&f.duration>0,f);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,a,u),h&&h.useState(t,r,a,u),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~zr),l}}},e.prototype.useStates=function(t,r,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,s=t.length,o=s===i.length;if(o){for(var f=0;f<s;f++)if(t[f]!==i[f]){o=!1;break}}if(o)return;for(var f=0;f<s;f++){var l=t[f],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&n.push(u)}var c=n[s-1],h=!!(c&&c.hoverLayer||a);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,h),g&&g.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~zr)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=wt(this.currentStates,t);if(r>=0){var a=this.currentStates.slice();a.splice(r,1),this.useStates(a)}},e.prototype.replaceState=function(t,r,a){var n=this.currentStates.slice(),i=wt(n,t),s=wt(n,r)>=0;i>=0?s?n.splice(i,1):n[i]=r:a&&!s&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},a,n=0;n<t.length;n++){var i=t[n];Se(r,i),i.textConfig&&(a=a||{},Se(a,i.textConfig))}return a&&(r.textConfig=a),r},e.prototype._applyStateObj=function(t,r,a,n,i,s){var o=!(r&&n);r&&r.textConfig?(this.textConfig=Se({},n?this.textConfig:a.textConfig),Se(this.textConfig,r.textConfig)):o&&a.textConfig&&(this.textConfig=a.textConfig);for(var f={},l=!1,u=0;u<fh.length;u++){var c=fh[u],h=i&&ck[c];r&&r[c]!=null?h?(l=!0,f[c]=r[c]):this[c]=r[c]:o&&a[c]!=null&&(h?(l=!0,f[c]=a[c]):this[c]=a[c])}if(!i)for(var u=0;u<this.animators.length;u++){var d=this.animators[u],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||a)[v]:r||a)}l&&this._transitionState(t,f,s)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new cp,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Se(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=zr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,a=this._textGuide;r&&(r.__inHover=t),a&&(a.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var a=0;a<r.length;a++)t.animation.addAnimator(r[a]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var a=0;a<r.length;a++)t.animation.removeAnimator(r[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,a){var n=t?this[t]:this,i=new up(n,r,a);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var a=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var i=n.animators,s=wt(i,t);s>=0&&i.splice(s,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var a=this.animators,n=a.length,i=[],s=0;s<n;s++){var o=a[s];!t||t===o.scope?o.stop(r):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(t,r,a){lh(this,t,r,a)},e.prototype.animateFrom=function(t,r,a){lh(this,t,r,a,!0)},e.prototype._transitionState=function(t,r,a,n){for(var i=lh(this,r,a,n),s=0;s<i.length;s++)i[s].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=zr;function r(a,n,i,s){Object.defineProperty(t,a,{get:function(){if(!this[n]){var f=this[n]=[];o(this,f)}return this[n]},set:function(f){this[i]=f[0],this[s]=f[1],this[n]=f,o(this,f)}});function o(f,l){Object.defineProperty(l,0,{get:function(){return f[i]},set:function(u){f[i]=u}}),Object.defineProperty(l,1,{get:function(){return f[s]},set:function(u){f[s]=u}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();Fa(sc,Qa);Fa(sc,cp);function lh(e,t,r,a,n){r=r||{};var i=[];Ow(e,"",e,t,r,a,i,n);var s=i.length,o=!1,f=r.done,l=r.aborted,u=function(){o=!0,s--,s<=0&&(o?f&&f():l&&l())},c=function(){s--,s<=0&&(o?f&&f():l&&l())};s||f&&f(),i.length>0&&r.during&&i[0].during(function(v,p){r.during(p)});for(var h=0;h<i.length;h++){var d=i[h];u&&d.done(u),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return i}function uh(e,t,r){for(var a=0;a<r;a++)e[a]=t[a]}function dk(e){return Or(e[0])}function vk(e,t,r){if(Or(t[r]))if(Or(e[r])||(e[r]=[]),Br(t[r])){var a=t[r].length;e[r].length!==a&&(e[r]=new t[r].constructor(a),uh(e[r],t[r],a))}else{var n=t[r],i=e[r],s=n.length;if(dk(n))for(var o=n[0].length,f=0;f<s;f++)i[f]?uh(i[f],n[f],o):i[f]=Array.prototype.slice.call(n[f]);else uh(i,n,s);i.length=n.length}else e[r]=t[r]}function pk(e,t){return e===t||Or(e)&&Or(t)&&gk(e,t)}function gk(e,t){var r=e.length;if(r!==t.length)return!1;for(var a=0;a<r;a++)if(e[a]!==t[a])return!1;return!0}function Ow(e,t,r,a,n,i,s,o){for(var f=at(a),l=n.duration,u=n.delay,c=n.additive,h=n.setToFinal,d=!Re(i),v=e.animators,p=[],g=0;g<f.length;g++){var m=f[g],x=a[m];if(x!=null&&r[m]!=null&&(d||i[m]))if(Re(x)&&!Or(x)&&!rc(x)){if(t){o||(r[m]=x,e.updateDuringAnimation(t));continue}Ow(e,m,r[m],x,n,i&&i[m],s,o)}else p.push(m);else o||(r[m]=x,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!c&&_)for(var y=0;y<v.length;y++){var F=v[y];if(F.targetName===t){var k=F.stopTracks(p);if(k){var E=wt(v,F);v.splice(E,1)}}}if(n.force||(p=Hr(p,function(M){return!pk(a[M],r[M])}),_=p.length),_>0||n.force&&!s.length){var C=void 0,T=void 0,b=void 0;if(o){T={},h&&(C={});for(var y=0;y<_;y++){var m=p[y];T[m]=r[m],h?C[m]=a[m]:r[m]=a[m]}}else if(h){b={};for(var y=0;y<_;y++){var m=p[y];b[m]=O0(r[m]),vk(r,a,m)}}var F=new up(r,!1,!1,c?Hr(v,function(R){return R.targetName===t}):null);F.targetName=t,n.scope&&(F.scope=n.scope),h&&C&&F.whenWithKeys(0,C,p),b&&F.whenWithKeys(0,b,p),F.whenWithKeys(l??500,o?T:a,p).delay(u||0),e.addAnimator(F,t),s.push(F)}}var Sn=(function(e){He(t,e);function t(r){var a=e.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(r),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===r)return a[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,a){if(r&&r!==this&&r.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,a){var n=wt(this._children,r);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(r,a){var n=this._children,i=n[a];if(r&&r!==this&&r.parent!==this&&r!==i){n[a]=r,i.parent=null;var s=this.__zr;s&&i.removeSelfFromZr(s),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var a=this.__zr;a&&a!==r.__zr&&r.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(r){var a=this.__zr,n=this._children,i=wt(n,r);return i<0?this:(n.splice(i,1),r.parent=null,a&&r.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,a=this.__zr,n=0;n<r.length;n++){var i=r[n];a&&i.removeSelfFromZr(a),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,a){for(var n=this._children,i=0;i<n.length;i++){var s=n[i];r.call(a,s,i)}return this},t.prototype.traverse=function(r,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],s=r.call(a,i);i.isGroup&&!s&&i.traverse(r,a)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var a=new pt(0,0,0,0),n=r||this._children,i=[],s=null,o=0;o<n.length;o++){var f=n[o];if(!(f.ignore||f.invisible)){var l=f.getBoundingRect(),u=f.getLocalTransform(i);u?(pt.applyTransform(a,l,u),s=s||a.clone(),s.union(a)):(s=s||l.clone(),s.union(l))}}return s||a},t})(sc);Sn.prototype.type="group";var H0={},Bw={};function mk(e){delete Bw[e]}function xk(e){if(!e)return!1;if(typeof e=="string")return fu(e,1)<Gd;if(e.colorStops){for(var t=e.colorStops,r=0,a=t.length,n=0;n<a;n++)r+=fu(t[n].color,1);return r/=a,r<Gd}return!1}var _k=(function(){function e(t,r,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=r,this.id=t;var i=new MD,s=a.renderer||"canvas";H0[s]||(s=at(H0)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var o=new H0[s](r,i,a,t),f=a.ssr||o.ssrOnly;this.storage=i,this.painter=o;var l=!Ne.node&&!Ne.worker&&!f?new lk(o.getViewportRoot(),o.root):null,u=a.useCoarsePointer,c=u==null||u==="auto"?Ne.touchEventsSupported:!!u,h=44,d;c&&(d=ze(a.pointerSize,h)),this.handler=new vw(i,o,l,o.root,d),this.animation=new rk({stage:{update:f?null:function(){return n._flush(!0)}}}),f||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=xk(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,a=Ks();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=Ks();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,a){return this._disposed||this.handler.on(t,r,a),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Sn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,mk(this.id))},e})();function Vg(e,t){var r=new _k(iw(),e,t);return Bw[r.id]=r,r}function yk(e,t){H0[e]=t}var Yd;function wk(e){if(typeof Yd=="function")return Yd(e)}function Tk(e){Yd=e}var zg=1e-4,Nw=20;function Sk(e){return e.replace(/^\s+|\s+$/g,"")}function jf(e,t,r,a){var n=t[0],i=t[1],s=r[0],o=r[1],f=i-n,l=o-s;if(f===0)return l===0?s:(s+o)/2;if(f>0){if(e<=n)return s;if(e>=i)return o}else{if(e>=n)return s;if(e<=i)return o}return(e-n)/f*l+s}function za(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Me(e)?Sk(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ek(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Nw),e=(+e).toFixed(t),r?e:+e}function Wg(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Ck(e)}function Ck(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),a=r>0?+t.slice(r+1):0,n=r>0?r:t.length,i=t.indexOf("."),s=i<0?0:n-1-i;return Math.max(0,s-a)}function Ak(e,t){var r=Math.max(Wg(e),Wg(t)),a=e+t;return r>Nw?a:Ek(a,r)}function Uw(e){var t=Math.PI*2;return(e%t+t)%t}function cu(e){return e>-zg&&e<zg}var Dk=/^(?:(\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 oc(e){if(e instanceof Date)return e;if(Me(e)){var t=Dk.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function hu(e){var t=parseFloat(e);return t==e&&(t!==0||!Me(e)||e.indexOf("x")<=0)?t:NaN}function kk(e){return!isNaN(hu(e))}function Hw(){return Math.round(Math.random()*9)}function Vw(e,t){return t===0?e:Vw(t,e%t)}function Gg(e,t){return e==null?t:t==null?e:e*t/Vw(e,t)}function Pr(e){throw new Error(e)}var zw="series\0",bk="\0_ec_\0";function Er(e){return e instanceof Array?e:e==null?[]:[e]}function $g(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var a=0,n=r.length;a<n;a++){var i=r[a];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Xg=["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 El(e){return Re(e)&&!Ie(e)&&!(e instanceof Date)?e.value:e}function Fk(e){return Re(e)&&!(e instanceof Array)}function Ik(e,t,r){var a=r==="normalMerge",n=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var s=Xe();X(t,function(f,l){if(!Re(f)){t[l]=null;return}});var o=Mk(e,s,r);return(a||n)&&Rk(o,e,s,t),a&&Pk(o,t),a||n?Lk(o,t,n):i&&Ok(o,t),Bk(o),o}function Mk(e,t,r){var a=[];if(r==="replaceAll")return a;for(var n=0;n<e.length;n++){var i=e[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:r==="replaceMerge"||qf(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Rk(e,t,r,a){X(a,function(n,i){if(!(!n||n.id==null)){var s=Sf(n.id),o=r.get(s);if(o!=null){var f=e[o];Yr(!f.newOption,'Duplicated option on id "'+s+'".'),f.newOption=n,f.existing=t[o],a[i]=null}}})}function Pk(e,t){X(t,function(r,a){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var i=e[n].existing;if(!e[n].newOption&&i&&(i.id==null||r.id==null)&&!qf(r)&&!qf(i)&&Ww("name",i,r)){e[n].newOption=r,t[a]=null;return}}})}function Lk(e,t,r){X(t,function(a){if(a){for(var n,i=0;(n=e[i])&&(n.newOption||qf(n.existing)||n.existing&&a.id!=null&&!Ww("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=r):e.push({newOption:a,brandNew:r,existing:null,keyInfo:null}),i++}})}function Ok(e,t){X(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Bk(e){var t=Xe();X(e,function(r){var a=r.existing;a&&t.set(a.id,r)}),X(e,function(r){var a=r.newOption;Yr(!a||a.id==null||!t.get(a.id)||t.get(a.id)===r,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,r),!r.keyInfo&&(r.keyInfo={})}),X(e,function(r,a){var n=r.existing,i=r.newOption,s=r.keyInfo;if(Re(i)){if(s.name=i.name!=null?Sf(i.name):n?n.name:zw+a,n)s.id=Sf(n.id);else if(i.id!=null)s.id=Sf(i.id);else{var o=0;do s.id="\0"+s.name+"\0"+o++;while(t.get(s.id))}t.set(s.id,r)}})}function Ww(e,t,r){var a=Da(t[e],null),n=Da(r[e],null);return a!=null&&n!=null&&a===n}function Sf(e){return Da(e,"")}function Da(e,t){return e==null?t:Me(e)?e:It(e)||kd(e)?e+"":t}function Gw(e){var t=e.name;return!!(t&&t.indexOf(zw))}function qf(e){return e&&e.id!=null&&Sf(e.id).indexOf(bk)===0}function Nk(e,t,r){X(e,function(a){var n=a.newOption;Re(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=Uk(t,n,a.existing,r))})}function Uk(e,t,r,a){var n=t.type?t.type:r?r.subType:a.determineSubType(e,t);return n}function Cl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ie(t.dataIndex)?$e(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ie(t.name)?$e(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Xt(){var e="__ec_inner_"+Hk++;return function(t){return t[e]||(t[e]={})}}var Hk=Hw();function ch(e,t,r){var a=hp(t,r),n=a.mainTypeSpecified,i=a.queryOptionMap,s=a.others,o=s,f=r?r.defaultMainType:null;return!n&&f&&i.set(f,{}),i.each(function(l,u){var c=Al(e,u,l,{useDefault:f===u,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});o[u+"Models"]=c.models,o[u+"Model"]=c.models[0]}),o}function hp(e,t){var r;if(Me(e)){var a={};a[e+"Index"]=0,r=a}else r=e;var n=Xe(),i={},s=!1;return X(r,function(o,f){if(f==="dataIndex"||f==="dataIndexInside"){i[f]=o;return}var l=f.match(/^(\w+)(Index|Id|Name)$/)||[],u=l[1],c=(l[2]||"").toLowerCase();if(!(!u||!c||t&&t.includeMainTypes&&wt(t.includeMainTypes,u)<0)){s=s||!!u;var h=n.get(u)||n.set(u,{});h[c]=o}}),{mainTypeSpecified:s,queryOptionMap:n,others:i}}var Xi={useDefault:!0,enableAll:!1,enableNone:!1};function Al(e,t,r,a){a=a||Xi;var n=r.index,i=r.id,s=r.name,o={models:null,specified:n!=null||i!=null||s!=null};if(!o.specified){var f=void 0;return o.models=a.useDefault&&(f=e.getComponent(t))?[f]:[],o}return n==="none"||n===!1?(Yr(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),o.models=[],o):(n==="all"&&(Yr(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=s=null),o.models=e.queryComponents({mainType:t,index:n,id:i,name:s}),o)}function $w(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Vk(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function zk(e){return e==="auto"?Ne.domSupported?"html":"richText":e||"html"}function Wk(e,t){var r=Xe(),a=[];return X(e,function(n){var i=t(n);(r.get(i)||(a.push(i),r.set(i,[]))).push(n)}),{keys:a,buckets:r}}var Gk=".",Ti="___EC__COMPONENT__CONTAINER___",Xw="___EC__EXTENDED_CLASS___";function $a(e){var t={main:"",sub:""};if(e){var r=e.split(Gk);t.main=r[0]||"",t.sub=r[1]||""}return t}function $k(e){Yr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Xk(e){return!!(e&&e[Xw])}function dp(e,t){e.$constructor=e,e.extend=function(r){var a=this,n;return Yk(a)?n=(function(i){He(s,i);function s(){return i.apply(this,arguments)||this}return s})(a):(n=function(){(r.$constructor||a).apply(this,arguments)},YA(n,this)),Se(n.prototype,r),n[Xw]=!0,n.extend=this.extend,n.superCall=jk,n.superApply=qk,n.superClass=a,n}}function Yk(e){return ft(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Yw(e,t){e.extend=t.extend}var Kk=Math.round(Math.random()*10);function Zk(e){var t=["__\0is_clz",Kk++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function jk(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return this.superClass.prototype[t].apply(e,r)}function qk(e,t,r){return this.superClass.prototype[t].apply(e,r)}function vp(e){var t={};e.registerClass=function(a){var n=a.type||a.prototype.type;if(n){$k(n),a.prototype.type=n;var i=$a(n);if(!i.sub)t[i.main]=a;else if(i.sub!==Ti){var s=r(i);s[i.sub]=a}}return a},e.getClass=function(a,n,i){var s=t[a];if(s&&s[Ti]&&(s=n?s[n]:null),i&&!s)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return s},e.getClassesByMainType=function(a){var n=$a(a),i=[],s=t[n.main];return s&&s[Ti]?X(s,function(o,f){f!==Ti&&i.push(o)}):i.push(s),i},e.hasClass=function(a){var n=$a(a);return!!t[n.main]},e.getAllClassMainTypes=function(){var a=[];return X(t,function(n,i){a.push(i)}),a},e.hasSubTypes=function(a){var n=$a(a),i=t[n.main];return i&&i[Ti]};function r(a){var n=t[a.main];return(!n||!n[Ti])&&(n=t[a.main]={},n[Ti]=!0),n}}function Jf(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(a,n,i){for(var s={},o=0;o<e.length;o++){var f=e[o][1];if(!(n&&wt(n,f)>=0||i&&wt(i,f)<0)){var l=a.getShallow(f,t);l!=null&&(s[e[o][0]]=l)}}return s}}var Jk=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Qk=Jf(Jk),e5=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Qk(this,t,r)},e})(),Kd=new Sl(50);function t5(e){if(typeof e=="string"){var t=Kd.get(e);return t&&t.image}else return e}function pp(e,t,r,a,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=Kd.get(e),s={hostEl:r,cb:a,cbPayload:n};return i?(t=i.image,!fc(t)&&i.pending.push(s)):(t=xo.loadImage(e,Yg,Yg),t.__zrImageSrc=e,Kd.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Yg(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],a=r.cb;a&&a(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function fc(e){return e&&e.width&&e.height}var hh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function r5(e,t,r,a,n,i){if(!r){e.text="",e.isTruncated=!1;return}var s=(t+"").split(`
`);i=Kw(r,a,n,i);for(var o=!1,f={},l=0,u=s.length;l<u;l++)Zw(f,s[l],i),s[l]=f.textLine,o=o||f.isTruncated;e.text=s.join(`
`),e.isTruncated=o}function Kw(e,t,r,a){a=a||{};var n=Se({},a);n.font=t,r=ze(r,"..."),n.maxIterations=ze(a.maxIterations,2);var i=n.minChar=ze(a.minChar,0);n.cnCharWidth=$r("国",t);var s=n.ascCharWidth=$r("a",t);n.placeholder=ze(a.placeholder,"");for(var o=e=Math.max(0,e-1),f=0;f<i&&o>=s;f++)o-=s;var l=$r(r,t);return l>o&&(r="",l=0),o=e-l,n.ellipsis=r,n.ellipsisWidth=l,n.contentWidth=o,n.containerWidth=e,n}function Zw(e,t,r){var a=r.containerWidth,n=r.font,i=r.contentWidth;if(!a){e.textLine="",e.isTruncated=!1;return}var s=$r(t,n);if(s<=a){e.textLine=t,e.isTruncated=!1;return}for(var o=0;;o++){if(s<=i||o>=r.maxIterations){t+=r.ellipsis;break}var f=o===0?a5(t,i,r.ascCharWidth,r.cnCharWidth):s>0?Math.floor(t.length*i/s):0;t=t.substr(0,f),s=$r(t,n)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function a5(e,t,r,a){for(var n=0,i=0,s=e.length;i<s&&n<t;i++){var o=e.charCodeAt(i);n+=0<=o&&o<=127?r:a}return i}function n5(e,t){e!=null&&(e+="");var r=t.overflow,a=t.padding,n=t.font,i=r==="truncate",s=ic(n),o=ze(t.lineHeight,s),f=!!t.backgroundColor,l=t.lineOverflow==="truncate",u=!1,c=t.width,h;c!=null&&(r==="break"||r==="breakAll")?h=e?jw(e,t.font,c,r==="breakAll",0).lines:[]:h=e?e.split(`
`):[];var d=h.length*o,v=ze(t.height,d);if(d>v&&l){var p=Math.floor(v/o);u=u||h.length>p,h=h.slice(0,p)}if(e&&i&&c!=null)for(var g=Kw(c,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m={},x=0;x<h.length;x++)Zw(m,h[x],g),h[x]=m.textLine,u=u||m.isTruncated;for(var _=v,y=0,x=0;x<h.length;x++)y=Math.max($r(h[x],n),y);c==null&&(c=y);var F=y;return a&&(_+=a[0]+a[2],F+=a[1]+a[3],c+=a[1]+a[3]),f&&(F=c),{lines:h,height:v,outerWidth:F,outerHeight:_,lineHeight:o,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:c,isTruncated:u}}var i5=(function(){function e(){}return e})(),Kg=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),s5=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function o5(e,t){var r=new s5;if(e!=null&&(e+=""),!e)return r;for(var a=t.width,n=t.height,i=t.overflow,s=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,o=hh.lastIndex=0,f;(f=hh.exec(e))!=null;){var l=f.index;l>o&&dh(r,e.substring(o,l),t,s),dh(r,f[2],t,s,f[1]),o=hh.lastIndex}o<e.length&&dh(r,e.substring(o,e.length),t,s);var u=[],c=0,h=0,d=t.padding,v=i==="truncate",p=t.lineOverflow==="truncate",g={};function m(xe,se,P){xe.width=se,xe.lineHeight=P,c+=P,h=Math.max(h,se)}e:for(var x=0;x<r.lines.length;x++){for(var _=r.lines[x],y=0,F=0,k=0;k<_.tokens.length;k++){var E=_.tokens[k],C=E.styleName&&t.rich[E.styleName]||{},T=E.textPadding=C.padding,b=T?T[1]+T[3]:0,M=E.font=C.font||t.font;E.contentHeight=ic(M);var R=ze(C.height,E.contentHeight);if(E.innerHeight=R,T&&(R+=T[0]+T[2]),E.height=R,E.lineHeight=yf(C.lineHeight,t.lineHeight,R),E.align=C&&C.align||t.align,E.verticalAlign=C&&C.verticalAlign||"middle",p&&n!=null&&c+E.lineHeight>n){var B=r.lines.length;k>0?(_.tokens=_.tokens.slice(0,k),m(_,F,y),r.lines=r.lines.slice(0,x+1)):r.lines=r.lines.slice(0,x),r.isTruncated=r.isTruncated||r.lines.length<B;break e}var G=C.width,re=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")E.percentWidth=G,u.push(E),E.contentWidth=$r(E.text,M);else{if(re){var j=C.backgroundColor,q=j&&j.image;q&&(q=t5(q),fc(q)&&(E.width=Math.max(E.width,q.width*R/q.height)))}var ve=v&&a!=null?a-F:null;ve!=null&&ve<E.width?!re||ve<b?(E.text="",E.width=E.contentWidth=0):(r5(g,E.text,ve-b,M,t.ellipsis,{minChar:t.truncateMinChar}),E.text=g.text,r.isTruncated=r.isTruncated||g.isTruncated,E.width=E.contentWidth=$r(E.text,M)):E.contentWidth=$r(E.text,M)}E.width+=b,F+=E.width,C&&(y=Math.max(y,E.lineHeight))}m(_,F,y)}r.outerWidth=r.width=ze(a,h),r.outerHeight=r.height=ze(n,c),r.contentHeight=c,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var x=0;x<u.length;x++){var E=u[x],U=E.percentWidth;E.width=parseInt(U,10)/100*r.width}return r}function dh(e,t,r,a,n){var i=t==="",s=n&&r.rich[n]||{},o=e.lines,f=s.font||r.font,l=!1,u,c;if(a){var h=s.padding,d=h?h[1]+h[3]:0;if(s.width!=null&&s.width!=="auto"){var v=Zf(s.width,a.width)+d;o.length>0&&v+a.accumWidth>a.width&&(u=t.split(`
`),l=!0),a.accumWidth=v}else{var p=jw(t,f,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+d,c=p.linesWidths,u=p.lines}}else u=t.split(`
`);for(var g=0;g<u.length;g++){var m=u[g],x=new i5;if(x.styleName=n,x.text=m,x.isLineHolder=!m&&!i,typeof s.width=="number"?x.width=s.width:x.width=c?c[g]:$r(m,f),!g&&!l){var _=(o[o.length-1]||(o[0]=new Kg)).tokens,y=_.length;y===1&&_[0].isLineHolder?_[0]=x:(m||!y||i)&&_.push(x)}else o.push(new Kg([x]))}}function f5(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var l5=_o(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function u5(e){return f5(e)?!!l5[e]:!0}function jw(e,t,r,a,n){for(var i=[],s=[],o="",f="",l=0,u=0,c=0;c<e.length;c++){var h=e.charAt(c);if(h===`
`){f&&(o+=f,u+=l),i.push(o),s.push(u),o="",f="",l=0,u=0;continue}var d=$r(h,t),v=a?!1:!u5(h);if(i.length?u+d>r:n+u+d>r){u?(o||f)&&(v?(o||(o=f,f="",l=0,u=l),i.push(o),s.push(u-l),f+=h,l+=d,o="",u=l):(f&&(o+=f,f="",l=0),i.push(o),s.push(u),o=h,u=d)):v?(i.push(f),s.push(l),f=h,l=d):(i.push(h),s.push(d));continue}u+=d,v?(f+=h,l+=d):(f&&(o+=f,f="",l=0),o+=h)}return!i.length&&!o&&(o=e,f="",l=0),f&&(o+=f),o&&(i.push(o),s.push(u)),i.length===1&&(u+=n),{accumWidth:u,lines:i,linesWidths:s}}var Zd="__zr_style_"+Math.round(Math.random()*10),ts={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},lc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ts[Zd]=!0;var Zg=["z","z2","invisible"],c5=["invisible"],Dl=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var a=at(r),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,a,n,i){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&h5(this,r,a)||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1}if(i&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},t.prototype.contain=function(r,a){return this.rectContain(r,a)},t.prototype.traverse=function(r,a){r.call(a,this)},t.prototype.rectContain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,s=i.shadowBlur||0,o=i.shadowOffsetX||0,f=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new pt(0,0,0,0)),a?pt.applyTransform(r,n,a):r.copy(n),(s||o||f)&&(r.width+=s*2+Math.abs(o),r.height+=s*2+Math.abs(f),r.x=Math.min(r.x,r.x+o-s),r.y=Math.min(r.y,r.y+f-s));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new pt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,a){r!=="style"?e.prototype.attrKV.call(this,r,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(r,a){return typeof r=="string"?this.style[r]=a:Se(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Qo,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qo)},t.prototype.styleUpdated=function(){this.__dirty&=~Qo},t.prototype.createStyle=function(r){return ac(ts,r)},t.prototype.useStyle=function(r){r[Zd]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Zd]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var a=this._normalState;r.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,a,Zg)},t.prototype._applyStateObj=function(r,a,n,i,s,o){e.prototype._applyStateObj.call(this,r,a,n,i,s,o);var f=!(a&&i),l;if(a&&a.style?s?i?l=a.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,a.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(l,a.style)):f&&(l=n.style),l)if(s){var u=this.style;if(this.style=this.createStyle(f?{}:u),f)for(var c=at(u),h=0;h<c.length;h++){var d=c[h];d in l&&(l[d]=l[d],this.style[d]=u[d])}for(var v=at(l),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:l},o,this.getAnimationStyleProps())}else this.useStyle(l);for(var p=this.__inHover?c5:Zg,h=0;h<p.length;h++){var d=p[h];a&&a[d]!=null?this[d]=a[d]:f&&n[d]!=null&&(this[d]=n[d])}},t.prototype._mergeStates=function(r){for(var a=e.prototype._mergeStates.call(this,r),n,i=0;i<r.length;i++){var s=r[i];s.style&&(n=n||{},this._mergeStyle(n,s.style))}return n&&(a.style=n),a},t.prototype._mergeStyle=function(r,a){return Se(r,a),r},t.prototype.getAnimationStyleProps=function(){return lc},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=zr|Qo})(),t})(sc),vh=new pt(0,0,0,0),ph=new pt(0,0,0,0);function h5(e,t,r){return vh.copy(e.getBoundingRect()),e.transform&&vh.applyTransform(e.transform),ph.width=t,ph.height=r,!vh.intersect(ph)}var sa=Math.min,oa=Math.max,gh=Math.sin,mh=Math.cos,Si=Math.PI*2,Ql=yo(),e0=yo(),t0=yo();function jg(e,t,r,a,n,i){n[0]=sa(e,r),n[1]=sa(t,a),i[0]=oa(e,r),i[1]=oa(t,a)}var qg=[],Jg=[];function d5(e,t,r,a,n,i,s,o,f,l){var u=yw,c=_r,h=u(e,r,n,s,qg);f[0]=1/0,f[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var d=0;d<h;d++){var v=c(e,r,n,s,qg[d]);f[0]=sa(v,f[0]),l[0]=oa(v,l[0])}h=u(t,a,i,o,Jg);for(var d=0;d<h;d++){var p=c(t,a,i,o,Jg[d]);f[1]=sa(p,f[1]),l[1]=oa(p,l[1])}f[0]=sa(e,f[0]),l[0]=oa(e,l[0]),f[0]=sa(s,f[0]),l[0]=oa(s,l[0]),f[1]=sa(t,f[1]),l[1]=oa(t,l[1]),f[1]=sa(o,f[1]),l[1]=oa(o,l[1])}function v5(e,t,r,a,n,i,s,o){var f=ww,l=Rr,u=oa(sa(f(e,r,n),1),0),c=oa(sa(f(t,a,i),1),0),h=l(e,r,n,u),d=l(t,a,i,c);s[0]=sa(e,n,h),s[1]=sa(t,i,d),o[0]=oa(e,n,h),o[1]=oa(t,i,d)}function p5(e,t,r,a,n,i,s,o,f){var l=Xs,u=Ys,c=Math.abs(n-i);if(c%Si<1e-4&&c>1e-4){o[0]=e-r,o[1]=t-a,f[0]=e+r,f[1]=t+a;return}if(Ql[0]=mh(n)*r+e,Ql[1]=gh(n)*a+t,e0[0]=mh(i)*r+e,e0[1]=gh(i)*a+t,l(o,Ql,e0),u(f,Ql,e0),n=n%Si,n<0&&(n=n+Si),i=i%Si,i<0&&(i=i+Si),n>i&&!s?i+=Si:n<i&&s&&(n+=Si),s){var h=i;i=n,n=h}for(var d=0;d<i;d+=Math.PI/2)d>n&&(t0[0]=mh(d)*r+e,t0[1]=gh(d)*a+t,l(o,t0,o),u(f,t0,f))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ei=[],Ci=[],Ra=[],Fn=[],Pa=[],La=[],xh=Math.min,_h=Math.max,Ai=Math.cos,Di=Math.sin,on=Math.abs,jd=Math.PI,Bn=jd*2,yh=typeof Float32Array<"u",Bo=[];function wh(e){var t=Math.round(e/jd*1e8)/1e8;return t%2*jd}function g5(e,t){var r=wh(e[0]);r<0&&(r+=Bn);var a=r-e[0],n=e[1];n+=a,!t&&n-r>=Bn?n=r+Bn:t&&r-n>=Bn?n=r-Bn:!t&&r>n?n=r+(Bn-wh(r-n)):t&&r<n&&(n=r-(Bn-wh(n-r))),e[0]=r,e[1]=n}var os=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,a){a=a||0,a>0&&(this._ux=on(a/uu/t)||0,this._uy=on(a/uu/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(nt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var a=on(t-this._xi),n=on(r-this._yi),i=a>this._ux||n>this._uy;if(this.addData(nt.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var s=a*a+n*n;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=s)}return this},e.prototype.bezierCurveTo=function(t,r,a,n,i,s){return this._drawPendingPt(),this.addData(nt.C,t,r,a,n,i,s),this._ctx&&this._ctx.bezierCurveTo(t,r,a,n,i,s),this._xi=i,this._yi=s,this},e.prototype.quadraticCurveTo=function(t,r,a,n){return this._drawPendingPt(),this.addData(nt.Q,t,r,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,a,n),this._xi=a,this._yi=n,this},e.prototype.arc=function(t,r,a,n,i,s){this._drawPendingPt(),Bo[0]=n,Bo[1]=i,g5(Bo,s),n=Bo[0],i=Bo[1];var o=i-n;return this.addData(nt.A,t,r,a,a,n,o,0,s?0:1),this._ctx&&this._ctx.arc(t,r,a,n,i,s),this._xi=Ai(i)*a+t,this._yi=Di(i)*a+r,this},e.prototype.arcTo=function(t,r,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,a,n,i),this},e.prototype.rect=function(t,r,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,a,n),this.addData(nt.R,t,r,a,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,r=this._x0,a=this._y0;return t&&t.closePath(),this._xi=r,this._yi=a,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&yh&&(this.data=new Float32Array(r));for(var a=0;a<r;a++)this.data[a]=t[a];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,a=0,n=this._len,i=0;i<r;i++)a+=t[i].len();yh&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<r;i++)for(var s=t[i].data,o=0;o<s.length;o++)this.data[n++]=s[o];this._len=n},e.prototype.addData=function(t,r,a,n,i,s,o,f,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,yh&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Ra[0]=Ra[1]=Pa[0]=Pa[1]=Number.MAX_VALUE,Fn[0]=Fn[1]=La[0]=La[1]=-Number.MAX_VALUE;var t=this.data,r=0,a=0,n=0,i=0,s;for(s=0;s<this._len;){var o=t[s++],f=s===1;switch(f&&(r=t[s],a=t[s+1],n=r,i=a),o){case nt.M:r=n=t[s++],a=i=t[s++],Pa[0]=n,Pa[1]=i,La[0]=n,La[1]=i;break;case nt.L:jg(r,a,t[s],t[s+1],Pa,La),r=t[s++],a=t[s++];break;case nt.C:d5(r,a,t[s++],t[s++],t[s++],t[s++],t[s],t[s+1],Pa,La),r=t[s++],a=t[s++];break;case nt.Q:v5(r,a,t[s++],t[s++],t[s],t[s+1],Pa,La),r=t[s++],a=t[s++];break;case nt.A:var l=t[s++],u=t[s++],c=t[s++],h=t[s++],d=t[s++],v=t[s++]+d;s+=1;var p=!t[s++];f&&(n=Ai(d)*c+l,i=Di(d)*h+u),p5(l,u,c,h,d,v,p,Pa,La),r=Ai(v)*c+l,a=Di(v)*h+u;break;case nt.R:n=r=t[s++],i=a=t[s++];var g=t[s++],m=t[s++];jg(n,i,n+g,i+m,Pa,La);break;case nt.Z:r=n,a=i;break}Xs(Ra,Ra,Pa),Ys(Fn,Fn,La)}return s===0&&(Ra[0]=Ra[1]=Fn[0]=Fn[1]=0),new pt(Ra[0],Ra[1],Fn[0]-Ra[0],Fn[1]-Ra[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,a=this._ux,n=this._uy,i=0,s=0,o=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<r;){var d=t[h++],v=h===1;v&&(i=t[h],s=t[h+1],o=i,f=s);var p=-1;switch(d){case nt.M:i=o=t[h++],s=f=t[h++];break;case nt.L:{var g=t[h++],m=t[h++],x=g-i,_=m-s;(on(x)>a||on(_)>n||h===r-1)&&(p=Math.sqrt(x*x+_*_),i=g,s=m);break}case nt.C:{var y=t[h++],F=t[h++],g=t[h++],m=t[h++],k=t[h++],E=t[h++];p=PD(i,s,y,F,g,m,k,E,10),i=k,s=E;break}case nt.Q:{var y=t[h++],F=t[h++],g=t[h++],m=t[h++];p=BD(i,s,y,F,g,m,10),i=g,s=m;break}case nt.A:var C=t[h++],T=t[h++],b=t[h++],M=t[h++],R=t[h++],B=t[h++],G=B+R;h+=1,v&&(o=Ai(R)*b+C,f=Di(R)*M+T),p=_h(b,M)*xh(Bn,Math.abs(B)),i=Ai(G)*b+C,s=Di(G)*M+T;break;case nt.R:{o=i=t[h++],f=s=t[h++];var re=t[h++],j=t[h++];p=re*2+j*2;break}case nt.Z:{var x=o-i,_=f-s;p=Math.sqrt(x*x+_*_),i=o,s=f;break}}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var a=this.data,n=this._ux,i=this._uy,s=this._len,o,f,l,u,c,h,d=r<1,v,p,g=0,m=0,x,_=0,y,F;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,x=r*p,!x)))e:for(var k=0;k<s;){var E=a[k++],C=k===1;switch(C&&(l=a[k],u=a[k+1],o=l,f=u),E!==nt.L&&_>0&&(t.lineTo(y,F),_=0),E){case nt.M:o=l=a[k++],f=u=a[k++],t.moveTo(l,u);break;case nt.L:{c=a[k++],h=a[k++];var T=on(c-l),b=on(h-u);if(T>n||b>i){if(d){var M=v[m++];if(g+M>x){var R=(x-g)/M;t.lineTo(l*(1-R)+c*R,u*(1-R)+h*R);break e}g+=M}t.lineTo(c,h),l=c,u=h,_=0}else{var B=T*T+b*b;B>_&&(y=c,F=h,_=B)}break}case nt.C:{var G=a[k++],re=a[k++],j=a[k++],q=a[k++],ve=a[k++],U=a[k++];if(d){var M=v[m++];if(g+M>x){var R=(x-g)/M;iu(l,G,j,ve,R,Ei),iu(u,re,q,U,R,Ci),t.bezierCurveTo(Ei[1],Ci[1],Ei[2],Ci[2],Ei[3],Ci[3]);break e}g+=M}t.bezierCurveTo(G,re,j,q,ve,U),l=ve,u=U;break}case nt.Q:{var G=a[k++],re=a[k++],j=a[k++],q=a[k++];if(d){var M=v[m++];if(g+M>x){var R=(x-g)/M;su(l,G,j,R,Ei),su(u,re,q,R,Ci),t.quadraticCurveTo(Ei[1],Ci[1],Ei[2],Ci[2]);break e}g+=M}t.quadraticCurveTo(G,re,j,q),l=j,u=q;break}case nt.A:var xe=a[k++],se=a[k++],P=a[k++],V=a[k++],H=a[k++],z=a[k++],ae=a[k++],pe=!a[k++],le=P>V?P:V,ie=on(P-V)>.001,ne=H+z,ue=!1;if(d){var M=v[m++];g+M>x&&(ne=H+z*(x-g)/M,ue=!0),g+=M}if(ie&&t.ellipse?t.ellipse(xe,se,P,V,ae,H,ne,pe):t.arc(xe,se,le,H,ne,pe),ue)break e;C&&(o=Ai(H)*P+xe,f=Di(H)*V+se),l=Ai(ne)*P+xe,u=Di(ne)*V+se;break;case nt.R:o=l=a[k],f=u=a[k+1],c=a[k++],h=a[k++];var w=a[k++],N=a[k++];if(d){var M=v[m++];if(g+M>x){var W=x-g;t.moveTo(c,h),t.lineTo(c+xh(W,w),h),W-=w,W>0&&t.lineTo(c+w,h+xh(W,N)),W-=N,W>0&&t.lineTo(c+_h(w-W,0),h+N),W-=w,W>0&&t.lineTo(c,h+_h(N-W,0));break e}g+=M}t.rect(c,h,w,N);break;case nt.Z:if(d){var M=v[m++];if(g+M>x){var R=(x-g)/M;t.lineTo(l*(1-R)+o*R,u*(1-R)+f*R);break e}g+=M}t.closePath(),l=o,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=nt,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function bs(e,t,r,a,n,i,s){if(n===0)return!1;var o=n,f=0,l=e;if(s>t+o&&s>a+o||s<t-o&&s<a-o||i>e+o&&i>r+o||i<e-o&&i<r-o)return!1;if(e!==r)f=(t-a)/(e-r),l=(e*a-r*t)/(e-r);else return Math.abs(i-e)<=o/2;var u=f*i-s+l,c=u*u/(f*f+1);return c<=o/2*o/2}function m5(e,t,r,a,n,i,s,o,f,l,u){if(f===0)return!1;var c=f;if(u>t+c&&u>a+c&&u>i+c&&u>o+c||u<t-c&&u<a-c&&u<i-c&&u<o-c||l>e+c&&l>r+c&&l>n+c&&l>s+c||l<e-c&&l<r-c&&l<n-c&&l<s-c)return!1;var h=RD(e,t,r,a,n,i,s,o,l,u);return h<=c/2}function x5(e,t,r,a,n,i,s,o,f){if(s===0)return!1;var l=s;if(f>t+l&&f>a+l&&f>i+l||f<t-l&&f<a-l&&f<i-l||o>e+l&&o>r+l&&o>n+l||o<e-l&&o<r-l&&o<n-l)return!1;var u=OD(e,t,r,a,n,i,o,f);return u<=l/2}var Qg=Math.PI*2;function r0(e){return e%=Qg,e<0&&(e+=Qg),e}var No=Math.PI*2;function _5(e,t,r,a,n,i,s,o,f){if(s===0)return!1;var l=s;o-=e,f-=t;var u=Math.sqrt(o*o+f*f);if(u-l>r||u+l<r)return!1;if(Math.abs(a-n)%No<1e-4)return!0;if(i){var c=a;a=r0(n),n=r0(c)}else a=r0(a),n=r0(n);a>n&&(n+=No);var h=Math.atan2(f,o);return h<0&&(h+=No),h>=a&&h<=n||h+No>=a&&h+No<=n}function ki(e,t,r,a,n,i){if(i>t&&i>a||i<t&&i<a||a===t)return 0;var s=(i-t)/(a-t),o=a<t?1:-1;(s===1||s===0)&&(o=a<t?.5:-.5);var f=s*(r-e)+e;return f===n?1/0:f>n?o:0}var In=os.CMD,bi=Math.PI*2,y5=1e-4;function w5(e,t){return Math.abs(e-t)<y5}var pr=[-1,-1,-1],na=[-1,-1];function T5(){var e=na[0];na[0]=na[1],na[1]=e}function S5(e,t,r,a,n,i,s,o,f,l){if(l>t&&l>a&&l>i&&l>o||l<t&&l<a&&l<i&&l<o)return 0;var u=_w(t,a,i,o,l,pr);if(u===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,p=0;p<u;p++){var g=pr[p],m=g===0||g===1?.5:1,x=_r(e,r,n,s,g);x<f||(h<0&&(h=yw(t,a,i,o,na),na[1]<na[0]&&h>1&&T5(),d=_r(t,a,i,o,na[0]),h>1&&(v=_r(t,a,i,o,na[1]))),h===2?g<na[0]?c+=d<t?m:-m:g<na[1]?c+=v<d?m:-m:c+=o<v?m:-m:g<na[0]?c+=d<t?m:-m:c+=o<d?m:-m)}return c}function E5(e,t,r,a,n,i,s,o){if(o>t&&o>a&&o>i||o<t&&o<a&&o<i)return 0;var f=LD(t,a,i,o,pr);if(f===0)return 0;var l=ww(t,a,i);if(l>=0&&l<=1){for(var u=0,c=Rr(t,a,i,l),h=0;h<f;h++){var d=pr[h]===0||pr[h]===1?.5:1,v=Rr(e,r,n,pr[h]);v<s||(pr[h]<l?u+=c<t?d:-d:u+=i<c?d:-d)}return u}else{var d=pr[0]===0||pr[0]===1?.5:1,v=Rr(e,r,n,pr[0]);return v<s?0:i<t?d:-d}}function C5(e,t,r,a,n,i,s,o){if(o-=t,o>r||o<-r)return 0;var f=Math.sqrt(r*r-o*o);pr[0]=-f,pr[1]=f;var l=Math.abs(a-n);if(l<1e-4)return 0;if(l>=bi-1e-4){a=0,n=bi;var u=i?1:-1;return s>=pr[0]+e&&s<=pr[1]+e?u:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=bi,n+=bi);for(var h=0,d=0;d<2;d++){var v=pr[d];if(v+e>s){var p=Math.atan2(o,v),u=i?1:-1;p<0&&(p=bi+p),(p>=a&&p<=n||p+bi>=a&&p+bi<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(u=-u),h+=u)}}return h}function qw(e,t,r,a,n){for(var i=e.data,s=e.len(),o=0,f=0,l=0,u=0,c=0,h,d,v=0;v<s;){var p=i[v++],g=v===1;switch(p===In.M&&v>1&&(r||(o+=ki(f,l,u,c,a,n))),g&&(f=i[v],l=i[v+1],u=f,c=l),p){case In.M:u=i[v++],c=i[v++],f=u,l=c;break;case In.L:if(r){if(bs(f,l,i[v],i[v+1],t,a,n))return!0}else o+=ki(f,l,i[v],i[v+1],a,n)||0;f=i[v++],l=i[v++];break;case In.C:if(r){if(m5(f,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,a,n))return!0}else o+=S5(f,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],a,n)||0;f=i[v++],l=i[v++];break;case In.Q:if(r){if(x5(f,l,i[v++],i[v++],i[v],i[v+1],t,a,n))return!0}else o+=E5(f,l,i[v++],i[v++],i[v],i[v+1],a,n)||0;f=i[v++],l=i[v++];break;case In.A:var m=i[v++],x=i[v++],_=i[v++],y=i[v++],F=i[v++],k=i[v++];v+=1;var E=!!(1-i[v++]);h=Math.cos(F)*_+m,d=Math.sin(F)*y+x,g?(u=h,c=d):o+=ki(f,l,h,d,a,n);var C=(a-m)*y/_+m;if(r){if(_5(m,x,y,F,F+k,E,t,C,n))return!0}else o+=C5(m,x,y,F,F+k,E,C,n);f=Math.cos(F+k)*_+m,l=Math.sin(F+k)*y+x;break;case In.R:u=f=i[v++],c=l=i[v++];var T=i[v++],b=i[v++];if(h=u+T,d=c+b,r){if(bs(u,c,h,c,t,a,n)||bs(h,c,h,d,t,a,n)||bs(h,d,u,d,t,a,n)||bs(u,d,u,c,t,a,n))return!0}else o+=ki(h,c,h,d,a,n),o+=ki(u,d,u,c,a,n);break;case In.Z:if(r){if(bs(f,l,u,c,t,a,n))return!0}else o+=ki(f,l,u,c,a,n);f=u,l=c;break}}return!r&&!w5(l,c)&&(o+=ki(f,l,u,c,a,n)||0),o!==0}function A5(e,t,r){return qw(e,0,!1,t,r)}function D5(e,t,r,a){return qw(e,t,!0,r,a)}var du=Mt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ts),k5={style:Mt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},lc.style)},Th=Kf.concat(["invisible","culling","z","z2","zlevel","parent"]),gt=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var i=n.style;for(var s in a)i[s]!==a[s]&&(i[s]=a[s]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var o=0;o<Th.length;++o)n[Th[o]]=this[Th[o]];n.__dirty|=zr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var a=at(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var s=a[i],o=r[s];s==="style"?this.style?Se(this.style,o):this.useStyle(o):s==="shape"?Se(this.shape,o):e.prototype.attrKV.call(this,s,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Me(r)){var a=fu(r,0);return a>.5?$d:a>.2?uk:Xd}else if(r)return Xd}return $d},t.prototype.getInsideTextStroke=function(r){var a=this.style.fill;if(Me(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),s=fu(r,0)<Gd;if(i===s)return a}},t.prototype.buildPath=function(r,a,n){},t.prototype.pathUpdated=function(){this.__dirty&=~zs},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new os(!1)},t.prototype.hasStroke=function(){var r=this.style,a=r.stroke;return!(a==null||a==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,a=r.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,a=this.style,n=!r;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var s=this.path;(i||this.__dirty&zs)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),r=s.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){o.copy(r);var f=a.strokeNoScale?this.getLineScale():1,l=a.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}f>1e-10&&(o.width+=l/f,o.height+=l/f,o.x-=l/f/2,o.y-=l/f/2)}return o}return r},t.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect(),s=this.style;if(r=n[0],a=n[1],i.contain(r,a)){var o=this.path;if(this.hasStroke()){var f=s.lineWidth,l=s.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),D5(o,f/l,r,a)))return!0}if(this.hasFill())return A5(o,r,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=zs,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,a){r==="shape"?this.setShape(a):e.prototype.attrKV.call(this,r,a)},t.prototype.setShape=function(r,a){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=a:Se(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&zs)},t.prototype.createStyle=function(r){return ac(du,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var a=this._normalState;r.shape&&!a.shape&&(a.shape=Se({},this.shape))},t.prototype._applyStateObj=function(r,a,n,i,s,o){e.prototype._applyStateObj.call(this,r,a,n,i,s,o);var f=!(a&&i),l;if(a&&a.shape?s?i?l=a.shape:(l=Se({},n.shape),Se(l,a.shape)):(l=Se({},i?this.shape:n.shape),Se(l,a.shape)):f&&(l=n.shape),l)if(s){this.shape=Se({},this.shape);for(var u={},c=at(l),h=0;h<c.length;h++){var d=c[h];typeof l[d]=="object"?this.shape[d]=l[d]:u[d]=l[d]}this._transitionState(r,{shape:u},o)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var a=e.prototype._mergeStates.call(this,r),n,i=0;i<r.length;i++){var s=r[i];s.shape&&(n=n||{},this._mergeStyle(n,s.shape))}return n&&(a.shape=n),a},t.prototype.getAnimationStyleProps=function(){return k5},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var a=(function(i){He(s,i);function s(o){var f=i.call(this,o)||this;return r.init&&r.init.call(f,o),f}return s.prototype.getDefaultStyle=function(){return je(r.style)},s.prototype.getDefaultShape=function(){return je(r.shape)},s})(t);for(var n in r)typeof r[n]=="function"&&(a.prototype[n]=r[n]);return a},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=zr|Qo|zs})(),t})(Dl),b5=Mt({strokeFirst:!0,font:ri,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},du),Qf=(function(e){He(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,a=r.stroke;return a!=null&&a!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,a=r.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(r){return ac(b5,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var a=r.text;a!=null?a+="":a="";var n=Pw(a,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(Dl);Qf.prototype.type="tspan";var F5=Mt({x:0,y:0},ts),I5={style:Mt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},lc.style)};function M5(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var An=(function(e){He(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ac(F5,r)},t.prototype._getSize=function(r){var a=this.style,n=a[r];if(n!=null)return n;var i=M5(a.image)?a.image:this.__image;if(!i)return 0;var s=r==="width"?"height":"width",o=a[s];return o==null?i[r]:i[r]/i[s]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return I5},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new pt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Dl);An.prototype.type="image";function R5(e,t){var r=t.x,a=t.y,n=t.width,i=t.height,s=t.r,o,f,l,u;n<0&&(r=r+n,n=-n),i<0&&(a=a+i,i=-i),typeof s=="number"?o=f=l=u=s:s instanceof Array?s.length===1?o=f=l=u=s[0]:s.length===2?(o=l=s[0],f=u=s[1]):s.length===3?(o=s[0],f=u=s[1],l=s[2]):(o=s[0],f=s[1],l=s[2],u=s[3]):o=f=l=u=0;var c;o+f>n&&(c=o+f,o*=n/c,f*=n/c),l+u>n&&(c=l+u,l*=n/c,u*=n/c),f+l>i&&(c=f+l,f*=i/c,l*=i/c),o+u>i&&(c=o+u,o*=i/c,u*=i/c),e.moveTo(r+o,a),e.lineTo(r+n-f,a),f!==0&&e.arc(r+n-f,a+f,f,-Math.PI/2,0),e.lineTo(r+n,a+i-l),l!==0&&e.arc(r+n-l,a+i-l,l,0,Math.PI/2),e.lineTo(r+u,a+i),u!==0&&e.arc(r+u,a+i-u,u,Math.PI/2,Math.PI),e.lineTo(r,a+o),o!==0&&e.arc(r+o,a+o,o,Math.PI,Math.PI*1.5)}var Zs=Math.round;function Jw(e,t,r){if(t){var a=t.x1,n=t.x2,i=t.y1,s=t.y2;e.x1=a,e.x2=n,e.y1=i,e.y2=s;var o=r&&r.lineWidth;return o&&(Zs(a*2)===Zs(n*2)&&(e.x1=e.x2=Yi(a,o,!0)),Zs(i*2)===Zs(s*2)&&(e.y1=e.y2=Yi(i,o,!0))),e}}function Qw(e,t,r){if(t){var a=t.x,n=t.y,i=t.width,s=t.height;e.x=a,e.y=n,e.width=i,e.height=s;var o=r&&r.lineWidth;return o&&(e.x=Yi(a,o,!0),e.y=Yi(n,o,!0),e.width=Math.max(Yi(a+i,o,!1)-e.x,i===0?0:1),e.height=Math.max(Yi(n+s,o,!1)-e.y,s===0?0:1)),e}}function Yi(e,t,r){if(!t)return e;var a=Zs(e*2);return(a+Zs(t))%2===0?a/2:(a+(r?1:-1))/2}var P5=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),L5={},Xr=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new P5},t.prototype.buildPath=function(r,a){var n,i,s,o;if(this.subPixelOptimize){var f=Qw(L5,a,this.style);n=f.x,i=f.y,s=f.width,o=f.height,f.r=a.r,a=f}else n=a.x,i=a.y,s=a.width,o=a.height;a.r?R5(r,a):r.rect(n,i,s,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(gt);Xr.prototype.type="rect";var e2={fill:"#000"},t2=2,O5={style:Mt({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},lc.style)},qa=(function(e){He(t,e);function t(r){var a=e.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=e2,a.attr(r),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var a=this._children[r];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var a=this.innerTransformable;return a?a.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,U5(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var a=0;a<this._children.length;a++)this._children[a].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new pt(0,0,0,0),a=this._children,n=[],i=null,s=0;s<a.length;s++){var o=a[s],f=o.getBoundingRect(),l=o.getLocalTransform(n);l?(r.copy(f),r.applyTransform(l),i=i||r.clone(),i.union(r)):(i=i||f.clone(),i.union(f))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||e2},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,a){if(!a)return r;var n=a.rich,i=r.rich||n&&{};return Se(r,a),n&&i?(this._mergeRich(i,n),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,a){for(var n=at(a),i=0;i<n.length;i++){var s=n[i];r[s]=r[s]||{},Se(r[s],a[s])}},t.prototype.getAnimationStyleProps=function(){return O5},t.prototype._getOrCreateChild=function(r){var a=this._children[this._childCursor];return(!a||!(a instanceof r))&&(a=new r),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var r=this.style,a=r.font||ri,n=r.padding,i=f2(r),s=n5(i,r),o=Sh(r),f=!!r.backgroundColor,l=s.outerHeight,u=s.outerWidth,c=s.contentWidth,h=s.lines,d=s.lineHeight,v=this._defaultStyle;this.isTruncated=!!s.isTruncated;var p=r.x||0,g=r.y||0,m=r.align||v.align||"left",x=r.verticalAlign||v.verticalAlign||"top",_=p,y=Ws(g,s.contentHeight,x);if(o||n){var F=tf(p,u,m),k=Ws(g,l,x);o&&this._renderBackground(r,r,F,k,u,l)}y+=d/2,n&&(_=o2(p,m,n),x==="top"?y+=n[0]:x==="bottom"&&(y-=n[2]));for(var E=0,C=!1,T=s2("fill"in r?r.fill:(C=!0,v.fill)),b=i2("stroke"in r?r.stroke:!f&&(!v.autoStroke||C)?(E=t2,v.stroke):null),M=r.textShadowBlur>0,R=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),B=s.calculatedLineHeight,G=0;G<h.length;G++){var re=this._getOrCreateChild(Qf),j=re.createStyle();re.useStyle(j),j.text=h[G],j.x=_,j.y=y,j.textAlign=m,j.textBaseline="middle",j.opacity=r.opacity,j.strokeFirst=!0,M&&(j.shadowBlur=r.textShadowBlur||0,j.shadowColor=r.textShadowColor||"transparent",j.shadowOffsetX=r.textShadowOffsetX||0,j.shadowOffsetY=r.textShadowOffsetY||0),j.stroke=b,j.fill=T,b&&(j.lineWidth=r.lineWidth||E,j.lineDash=r.lineDash,j.lineDashOffset=r.lineDashOffset||0),j.font=a,a2(j,r),y+=d,R&&re.setBoundingRect(new pt(tf(j.x,c,j.textAlign),Ws(j.y,B,j.textBaseline),c,B))}},t.prototype._updateRichTexts=function(){var r=this.style,a=f2(r),n=o5(a,r),i=n.width,s=n.outerWidth,o=n.outerHeight,f=r.padding,l=r.x||0,u=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign;this.isTruncated=!!n.isTruncated;var v=tf(l,s,h),p=Ws(u,o,d),g=v,m=p;f&&(g+=f[3],m+=f[0]);var x=g+i;Sh(r)&&this._renderBackground(r,r,v,p,s,o);for(var _=!!r.backgroundColor,y=0;y<n.lines.length;y++){for(var F=n.lines[y],k=F.tokens,E=k.length,C=F.lineHeight,T=F.width,b=0,M=g,R=x,B=E-1,G=void 0;b<E&&(G=k[b],!G.align||G.align==="left");)this._placeToken(G,r,C,m,M,"left",_),T-=G.width,M+=G.width,b++;for(;B>=0&&(G=k[B],G.align==="right");)this._placeToken(G,r,C,m,R,"right",_),T-=G.width,R-=G.width,B--;for(M+=(i-(M-g)-(x-R)-T)/2;b<=B;)G=k[b],this._placeToken(G,r,C,m,M+G.width/2,"center",_),M+=G.width,b++;m+=C}},t.prototype._placeToken=function(r,a,n,i,s,o,f){var l=a.rich[r.styleName]||{};l.text=r.text;var u=r.verticalAlign,c=i+n/2;u==="top"?c=i+r.height/2:u==="bottom"&&(c=i+n-r.height/2);var h=!r.isLineHolder&&Sh(l);h&&this._renderBackground(l,a,o==="right"?s-r.width:o==="center"?s-r.width/2:s,c-r.height/2,r.width,r.height);var d=!!l.backgroundColor,v=r.textPadding;v&&(s=o2(s,o,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Qf),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,x=!1,_=0,y=s2("fill"in l?l.fill:"fill"in a?a.fill:(x=!0,m.fill)),F=i2("stroke"in l?l.stroke:"stroke"in a?a.stroke:!d&&!f&&(!m.autoStroke||x)?(_=t2,m.stroke):null),k=l.textShadowBlur>0||a.textShadowBlur>0;g.text=r.text,g.x=s,g.y=c,k&&(g.shadowBlur=l.textShadowBlur||a.textShadowBlur||0,g.shadowColor=l.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=r.font||ri,g.opacity=yf(l.opacity,a.opacity,1),a2(g,l),F&&(g.lineWidth=yf(l.lineWidth,a.lineWidth,_),g.lineDash=ze(l.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=F),y&&(g.fill=y);var E=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new pt(tf(g.x,E,g.textAlign),Ws(g.y,C,g.textBaseline),E,C))},t.prototype._renderBackground=function(r,a,n,i,s,o){var f=r.backgroundColor,l=r.borderWidth,u=r.borderColor,c=f&&f.image,h=f&&!c,d=r.borderRadius,v=this,p,g;if(h||r.lineHeight||l&&u){p=this._getOrCreateChild(Xr),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=n,m.y=i,m.width=s,m.height=o,m.r=d,p.dirtyShape()}if(h){var x=p.style;x.fill=f||null,x.fillOpacity=ze(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(An),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=f.image,_.x=n,_.y=i,_.width=s,_.height=o}if(l&&u){var x=p.style;x.lineWidth=l,x.stroke=u,x.strokeOpacity=ze(r.strokeOpacity,1),x.lineDash=r.borderDash,x.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var y=(p||g).style;y.shadowBlur=r.shadowBlur||0,y.shadowColor=r.shadowColor||"transparent",y.shadowOffsetX=r.shadowOffsetX||0,y.shadowOffsetY=r.shadowOffsetY||0,y.opacity=yf(r.opacity,a.opacity,1)},t.makeFont=function(r){var a="";return tT(r)&&(a=[r.fontStyle,r.fontWeight,eT(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),a&&Ga(a)||r.textFont||r.font},t})(Dl),B5={left:!0,right:1,center:1},N5={top:1,bottom:1,middle:1},r2=["fontStyle","fontWeight","fontSize","fontFamily"];function eT(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ep+"px":e+"px"}function a2(e,t){for(var r=0;r<r2.length;r++){var a=r2[r],n=t[a];n!=null&&(e[a]=n)}}function tT(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function U5(e){return n2(e),X(e.rich,n2),e}function n2(e){if(e){e.font=qa.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||B5[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||N5[r]?r:"top";var a=e.padding;a&&(e.padding=sw(e.padding))}}function i2(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function s2(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function o2(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function f2(e){var t=e.text;return t!=null&&(t+=""),t}function Sh(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var St=Xt(),H5=function(e,t,r,a){if(a){var n=St(a);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var s=St(i);s.seriesIndex=e,s.dataIndex=r,s.dataType=t,s.ssrType="chart"})}},l2=1,u2={},rT=Xt(),gp=Xt(),aT=0,mp=1,xp=2,ai=["emphasis","blur","select"],c2=["normal","emphasis","blur","select"],V5=10,z5=9,rs="highlight",V0="downplay",Ef="select",z0="unselect",Cf="toggleSelect";function Fs(e){return e!=null&&e!=="none"}function uc(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function nT(e){uc(e,"emphasis",xp)}function iT(e){e.hoverState===xp&&uc(e,"normal",aT)}function _p(e){uc(e,"blur",mp)}function sT(e){e.hoverState===mp&&uc(e,"normal",aT)}function W5(e){e.selected=!0}function G5(e){e.selected=!1}function h2(e,t,r){t(e,r)}function Dn(e,t,r){h2(e,t,r),e.isGroup&&e.traverse(function(a){h2(a,t,r)})}function $5(e,t,r,a){for(var n=e.style,i={},s=0;s<t.length;s++){var o=t[s],f=n[o];i[o]=f??(a&&a[o])}for(var s=0;s<e.animators.length;s++){var l=e.animators[s];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(i,t)}return i}function X5(e,t,r,a){var n=r&&wt(r,"select")>=0,i=!1;if(e instanceof gt){var s=rT(e),o=n&&s.selectFill||s.normalFill,f=n&&s.selectStroke||s.normalStroke;if(Fs(o)||Fs(f)){a=a||{};var l=a.style||{};l.fill==="inherit"?(i=!0,a=Se({},a),l=Se({},l),l.fill=o):!Fs(l.fill)&&Fs(o)?(i=!0,a=Se({},a),l=Se({},l),l.fill=Bd(o)):!Fs(l.stroke)&&Fs(f)&&(i||(a=Se({},a),l=Se({},l)),l.stroke=Bd(f)),a.style=l}}if(a&&a.z2==null){i||(a=Se({},a));var u=e.z2EmphasisLift;a.z2=e.z2+(u??V5)}return a}function Y5(e,t,r){if(r&&r.z2==null){r=Se({},r);var a=e.z2SelectLift;r.z2=e.z2+(a??z5)}return r}function K5(e,t,r){var a=wt(e.currentStates,t)>=0,n=e.style.opacity,i=a?null:$5(e,["opacity"],t,{opacity:1});r=r||{};var s=r.style||{};return s.opacity==null&&(r=Se({},r),s=Se({opacity:a?n:i.opacity*.1},s),r.style=s),r}function Eh(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return X5(this,e,t,r);if(e==="blur")return K5(this,e,r);if(e==="select")return Y5(this,e,r)}return r}function Z5(e){e.stateProxy=Eh;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Eh),r&&(r.stateProxy=Eh)}function d2(e,t){!uT(e,t)&&!e.__highByOuter&&Dn(e,nT)}function v2(e,t){!uT(e,t)&&!e.__highByOuter&&Dn(e,iT)}function vu(e,t){e.__highByOuter|=1<<(t||0),Dn(e,nT)}function pu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Dn(e,iT)}function j5(e){Dn(e,_p)}function oT(e){Dn(e,sT)}function fT(e){Dn(e,W5)}function lT(e){Dn(e,G5)}function uT(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function cT(e){var t=e.getModel(),r=[],a=[];t.eachComponent(function(n,i){var s=gp(i),o=n==="series",f=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&a.push(f),s.isBlured&&(f.group.traverse(function(l){sT(l)}),o&&r.push(i)),s.isBlured=!1}),X(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function qd(e,t,r,a){var n=a.getModel();r=r||"coordinateSystem";function i(l,u){for(var c=0;c<u.length;c++){var h=l.getItemGraphicEl(u[c]);h&&oT(h)}}if(e!=null&&!(!t||t==="none")){var s=n.getSeriesByIndex(e),o=s.coordinateSystem;o&&o.master&&(o=o.master);var f=[];n.eachSeries(function(l){var u=s===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&o?c===o:u;if(!(r==="series"&&!u||r==="coordinateSystem"&&!h||t==="series"&&u)){var d=a.getViewOfSeriesModel(l);if(d.group.traverse(function(g){g.__highByOuter&&u&&t==="self"||_p(g)}),Or(t))i(l.getData(),t);else if(Re(t))for(var v=at(t),p=0;p<v.length;p++)i(l.getData(v[p]),t[v[p]]);f.push(l),gp(l).isBlured=!0}}),n.eachComponent(function(l,u){if(l!=="series"){var c=a.getViewOfComponentModel(u);c&&c.toggleBlurSeries&&c.toggleBlurSeries(f,!0,n)}})}}function Jd(e,t,r){if(!(e==null||t==null)){var a=r.getModel().getComponent(e,t);if(a){gp(a).isBlured=!0;var n=r.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){_p(i)})}}}function q5(e,t,r){var a=e.seriesIndex,n=e.getData(t.dataType);if(n){var i=Cl(n,t);i=(Ie(i)?i[0]:i)||0;var s=n.getItemGraphicEl(i);if(!s)for(var o=n.count(),f=0;!s&&f<o;)s=n.getItemGraphicEl(f++);if(s){var l=St(s);qd(a,l.focus,l.blurScope,r)}else{var u=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);u!=null&&qd(a,u,c,r)}}}function yp(e,t,r,a){var n={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return n;var i=a.getModel().getComponent(e,t);if(!i)return n;var s=a.getViewOfComponentModel(i);if(!s||!s.findHighDownDispatchers)return n;for(var o=s.findHighDownDispatchers(r),f,l=0;l<o.length;l++)if(St(o[l]).focus==="self"){f=!0;break}return{focusSelf:f,dispatchers:o}}function J5(e,t,r){var a=St(e),n=yp(a.componentMainType,a.componentIndex,a.componentHighDownName,r),i=n.dispatchers,s=n.focusSelf;i?(s&&Jd(a.componentMainType,a.componentIndex,r),X(i,function(o){return d2(o,t)})):(qd(a.seriesIndex,a.focus,a.blurScope,r),a.focus==="self"&&Jd(a.componentMainType,a.componentIndex,r),d2(e,t))}function Q5(e,t,r){cT(r);var a=St(e),n=yp(a.componentMainType,a.componentIndex,a.componentHighDownName,r).dispatchers;n?X(n,function(i){return v2(i,t)}):v2(e,t)}function eb(e,t,r){if(ev(t)){var a=t.dataType,n=e.getData(a),i=Cl(n,t);Ie(i)||(i=[i]),e[t.type===Cf?"toggleSelect":t.type===Ef?"select":"unselect"](i,a)}}function p2(e){var t=e.getAllData();X(t,function(r){var a=r.data,n=r.type;a.eachItemGraphicEl(function(i,s){e.isSelected(s,n)?fT(i):lT(i)})})}function tb(e){var t=[];return e.eachSeries(function(r){var a=r.getAllData();X(a,function(n){n.data;var i=n.type,s=r.getSelectedDataIndices();if(s.length>0){var o={dataIndex:s,seriesIndex:r.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function rb(e,t,r){hT(e,!0),Dn(e,Z5),nb(e,t,r)}function ab(e){hT(e,!1)}function g2(e,t,r,a){a?ab(e):rb(e,t,r)}function nb(e,t,r){var a=St(e);t!=null?(a.focus=t,a.blurScope=r):a.focus&&(a.focus=null)}var m2=["emphasis","blur","select"],ib={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function x2(e,t,r,a){r=r||"itemStyle";for(var n=0;n<m2.length;n++){var i=m2[n],s=t.getModel([i,r]),o=e.ensureState(i);o.style=a?a(s):s[ib[r]]()}}function hT(e,t){var r=t===!1,a=e;e.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!r)}function Qd(e){return!!(e&&e.__highDownDispatcher)}function sb(e){var t=u2[e];return t==null&&l2<=32&&(t=u2[e]=l2++),t}function ev(e){var t=e.type;return t===Ef||t===z0||t===Cf}function _2(e){var t=e.type;return t===rs||t===V0}function ob(e){var t=rT(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Is=os.CMD,fb=[[],[],[]],y2=Math.sqrt,lb=Math.atan2;function ub(e,t){if(t){var r=e.data,a=e.len(),n,i,s,o,f,l,u=Is.M,c=Is.C,h=Is.L,d=Is.R,v=Is.A,p=Is.Q;for(s=0,o=0;s<a;){switch(n=r[s++],o=s,i=0,n){case u:i=1;break;case h:i=1;break;case c:i=3;break;case p:i=2;break;case v:var g=t[4],m=t[5],x=y2(t[0]*t[0]+t[1]*t[1]),_=y2(t[2]*t[2]+t[3]*t[3]),y=lb(-t[1]/_,t[0]/x);r[s]*=x,r[s++]+=g,r[s]*=_,r[s++]+=m,r[s++]*=x,r[s++]*=_,r[s++]+=y,r[s++]+=y,s+=2,o=s;break;case d:l[0]=r[s++],l[1]=r[s++],Ya(l,l,t),r[o++]=l[0],r[o++]=l[1],l[0]+=r[s++],l[1]+=r[s++],Ya(l,l,t),r[o++]=l[0],r[o++]=l[1]}for(f=0;f<i;f++){var F=fb[f];F[0]=r[s++],F[1]=r[s++],Ya(F,F,t),r[o++]=F[0],r[o++]=F[1]}}e.increaseVersion()}}var Ch=Math.sqrt,a0=Math.sin,n0=Math.cos,Uo=Math.PI;function w2(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function tv(e,t){return(e[0]*t[0]+e[1]*t[1])/(w2(e)*w2(t))}function T2(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(tv(e,t))}function S2(e,t,r,a,n,i,s,o,f,l,u){var c=f*(Uo/180),h=n0(c)*(e-r)/2+a0(c)*(t-a)/2,d=-1*a0(c)*(e-r)/2+n0(c)*(t-a)/2,v=h*h/(s*s)+d*d/(o*o);v>1&&(s*=Ch(v),o*=Ch(v));var p=(n===i?-1:1)*Ch((s*s*(o*o)-s*s*(d*d)-o*o*(h*h))/(s*s*(d*d)+o*o*(h*h)))||0,g=p*s*d/o,m=p*-o*h/s,x=(e+r)/2+n0(c)*g-a0(c)*m,_=(t+a)/2+a0(c)*g+n0(c)*m,y=T2([1,0],[(h-g)/s,(d-m)/o]),F=[(h-g)/s,(d-m)/o],k=[(-1*h-g)/s,(-1*d-m)/o],E=T2(F,k);if(tv(F,k)<=-1&&(E=Uo),tv(F,k)>=1&&(E=0),E<0){var C=Math.round(E/Uo*1e6)/1e6;E=Uo*2+C%2*Uo}u.addData(l,x,_,s,o,y,E,c,i)}var cb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function db(e){var t=new os;if(!e)return t;var r=0,a=0,n=r,i=a,s,o=os.CMD,f=e.match(cb);if(!f)return t;for(var l=0;l<f.length;l++){for(var u=f[l],c=u.charAt(0),h=void 0,d=u.match(hb)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var g=0;g<v;){var m=void 0,x=void 0,_=void 0,y=void 0,F=void 0,k=void 0,E=void 0,C=r,T=a,b=void 0,M=void 0;switch(c){case"l":r+=d[g++],a+=d[g++],h=o.L,t.addData(h,r,a);break;case"L":r=d[g++],a=d[g++],h=o.L,t.addData(h,r,a);break;case"m":r+=d[g++],a+=d[g++],h=o.M,t.addData(h,r,a),n=r,i=a,c="l";break;case"M":r=d[g++],a=d[g++],h=o.M,t.addData(h,r,a),n=r,i=a,c="L";break;case"h":r+=d[g++],h=o.L,t.addData(h,r,a);break;case"H":r=d[g++],h=o.L,t.addData(h,r,a);break;case"v":a+=d[g++],h=o.L,t.addData(h,r,a);break;case"V":a=d[g++],h=o.L,t.addData(h,r,a);break;case"C":h=o.C,t.addData(h,d[g++],d[g++],d[g++],d[g++],d[g++],d[g++]),r=d[g-2],a=d[g-1];break;case"c":h=o.C,t.addData(h,d[g++]+r,d[g++]+a,d[g++]+r,d[g++]+a,d[g++]+r,d[g++]+a),r+=d[g-2],a+=d[g-1];break;case"S":m=r,x=a,b=t.len(),M=t.data,s===o.C&&(m+=r-M[b-4],x+=a-M[b-3]),h=o.C,C=d[g++],T=d[g++],r=d[g++],a=d[g++],t.addData(h,m,x,C,T,r,a);break;case"s":m=r,x=a,b=t.len(),M=t.data,s===o.C&&(m+=r-M[b-4],x+=a-M[b-3]),h=o.C,C=r+d[g++],T=a+d[g++],r+=d[g++],a+=d[g++],t.addData(h,m,x,C,T,r,a);break;case"Q":C=d[g++],T=d[g++],r=d[g++],a=d[g++],h=o.Q,t.addData(h,C,T,r,a);break;case"q":C=d[g++]+r,T=d[g++]+a,r+=d[g++],a+=d[g++],h=o.Q,t.addData(h,C,T,r,a);break;case"T":m=r,x=a,b=t.len(),M=t.data,s===o.Q&&(m+=r-M[b-4],x+=a-M[b-3]),r=d[g++],a=d[g++],h=o.Q,t.addData(h,m,x,r,a);break;case"t":m=r,x=a,b=t.len(),M=t.data,s===o.Q&&(m+=r-M[b-4],x+=a-M[b-3]),r+=d[g++],a+=d[g++],h=o.Q,t.addData(h,m,x,r,a);break;case"A":_=d[g++],y=d[g++],F=d[g++],k=d[g++],E=d[g++],C=r,T=a,r=d[g++],a=d[g++],h=o.A,S2(C,T,r,a,k,E,_,y,F,h,t);break;case"a":_=d[g++],y=d[g++],F=d[g++],k=d[g++],E=d[g++],C=r,T=a,r+=d[g++],a+=d[g++],h=o.A,S2(C,T,r,a,k,E,_,y,F,h,t);break}}(c==="z"||c==="Z")&&(h=o.Z,t.addData(h),r=n,a=i),s=h}return t.toStatic(),t}var dT=(function(e){He(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(gt);function vT(e){return e.setData!=null}function pT(e,t){var r=db(e),a=Se({},t);return a.buildPath=function(n){if(vT(n)){n.setData(r.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;r.rebuildPath(i,1)}},a.applyTransform=function(n){ub(r,n),this.dirtyShape()},a}function vb(e,t){return new dT(pT(e,t))}function pb(e,t){var r=pT(e,t),a=(function(n){He(i,n);function i(s){var o=n.call(this,s)||this;return o.applyTransform=r.applyTransform,o.buildPath=r.buildPath,o}return i})(dT);return a}function gb(e,t){for(var r=[],a=e.length,n=0;n<a;n++){var i=e[n];r.push(i.getUpdatedPathProxy(!0))}var s=new gt(t);return s.createPathProxy(),s.buildPath=function(o){if(vT(o)){o.appendPath(r);var f=o.getContext();f&&o.rebuildPath(f,1)}},s}var mb=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),cc=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new mb},t.prototype.buildPath=function(r,a){r.moveTo(a.cx+a.r,a.cy),r.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t})(gt);cc.prototype.type="circle";var xb=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),wp=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xb},t.prototype.buildPath=function(r,a){var n=.5522848,i=a.cx,s=a.cy,o=a.rx,f=a.ry,l=o*n,u=f*n;r.moveTo(i-o,s),r.bezierCurveTo(i-o,s-u,i-l,s-f,i,s-f),r.bezierCurveTo(i+l,s-f,i+o,s-u,i+o,s),r.bezierCurveTo(i+o,s+u,i+l,s+f,i,s+f),r.bezierCurveTo(i-l,s+f,i-o,s+u,i-o,s),r.closePath()},t})(gt);wp.prototype.type="ellipse";var gT=Math.PI,Ah=gT*2,Fi=Math.sin,Ms=Math.cos,_b=Math.acos,Qt=Math.atan2,E2=Math.abs,Af=Math.sqrt,rf=Math.max,Oa=Math.min,_a=1e-4;function yb(e,t,r,a,n,i,s,o){var f=r-e,l=a-t,u=s-n,c=o-i,h=c*f-u*l;if(!(h*h<_a))return h=(u*(t-i)-c*(e-n))/h,[e+h*f,t+h*l]}function i0(e,t,r,a,n,i,s){var o=e-r,f=t-a,l=(s?i:-i)/Af(o*o+f*f),u=l*f,c=-l*o,h=e+u,d=t+c,v=r+u,p=a+c,g=(h+v)/2,m=(d+p)/2,x=v-h,_=p-d,y=x*x+_*_,F=n-i,k=h*p-v*d,E=(_<0?-1:1)*Af(rf(0,F*F*y-k*k)),C=(k*_-x*E)/y,T=(-k*x-_*E)/y,b=(k*_+x*E)/y,M=(-k*x+_*E)/y,R=C-g,B=T-m,G=b-g,re=M-m;return R*R+B*B>G*G+re*re&&(C=b,T=M),{cx:C,cy:T,x0:-u,y0:-c,x1:C*(n/F-1),y1:T*(n/F-1)}}function wb(e){var t;if(Ie(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Tb(e,t){var r,a=rf(t.r,0),n=rf(t.r0||0,0),i=a>0,s=n>0;if(!(!i&&!s)){if(i||(a=n,n=0),n>a){var o=a;a=n,n=o}var f=t.startAngle,l=t.endAngle;if(!(isNaN(f)||isNaN(l))){var u=t.cx,c=t.cy,h=!!t.clockwise,d=E2(l-f),v=d>Ah&&d%Ah;if(v>_a&&(d=v),!(a>_a))e.moveTo(u,c);else if(d>Ah-_a)e.moveTo(u+a*Ms(f),c+a*Fi(f)),e.arc(u,c,a,f,l,!h),n>_a&&(e.moveTo(u+n*Ms(l),c+n*Fi(l)),e.arc(u,c,n,l,f,h));else{var p=void 0,g=void 0,m=void 0,x=void 0,_=void 0,y=void 0,F=void 0,k=void 0,E=void 0,C=void 0,T=void 0,b=void 0,M=void 0,R=void 0,B=void 0,G=void 0,re=a*Ms(f),j=a*Fi(f),q=n*Ms(l),ve=n*Fi(l),U=d>_a;if(U){var xe=t.cornerRadius;xe&&(r=wb(xe),p=r[0],g=r[1],m=r[2],x=r[3]);var se=E2(a-n)/2;if(_=Oa(se,m),y=Oa(se,x),F=Oa(se,p),k=Oa(se,g),T=E=rf(_,y),b=C=rf(F,k),(E>_a||C>_a)&&(M=a*Ms(l),R=a*Fi(l),B=n*Ms(f),G=n*Fi(f),d<gT)){var P=yb(re,j,B,G,M,R,q,ve);if(P){var V=re-P[0],H=j-P[1],z=M-P[0],ae=R-P[1],pe=1/Fi(_b((V*z+H*ae)/(Af(V*V+H*H)*Af(z*z+ae*ae)))/2),le=Af(P[0]*P[0]+P[1]*P[1]);T=Oa(E,(a-le)/(pe+1)),b=Oa(C,(n-le)/(pe-1))}}}if(!U)e.moveTo(u+re,c+j);else if(T>_a){var ie=Oa(m,T),ne=Oa(x,T),ue=i0(B,G,re,j,a,ie,h),w=i0(M,R,q,ve,a,ne,h);e.moveTo(u+ue.cx+ue.x0,c+ue.cy+ue.y0),T<E&&ie===ne?e.arc(u+ue.cx,c+ue.cy,T,Qt(ue.y0,ue.x0),Qt(w.y0,w.x0),!h):(ie>0&&e.arc(u+ue.cx,c+ue.cy,ie,Qt(ue.y0,ue.x0),Qt(ue.y1,ue.x1),!h),e.arc(u,c,a,Qt(ue.cy+ue.y1,ue.cx+ue.x1),Qt(w.cy+w.y1,w.cx+w.x1),!h),ne>0&&e.arc(u+w.cx,c+w.cy,ne,Qt(w.y1,w.x1),Qt(w.y0,w.x0),!h))}else e.moveTo(u+re,c+j),e.arc(u,c,a,f,l,!h);if(!(n>_a)||!U)e.lineTo(u+q,c+ve);else if(b>_a){var ie=Oa(p,b),ne=Oa(g,b),ue=i0(q,ve,M,R,n,-ne,h),w=i0(re,j,B,G,n,-ie,h);e.lineTo(u+ue.cx+ue.x0,c+ue.cy+ue.y0),b<C&&ie===ne?e.arc(u+ue.cx,c+ue.cy,b,Qt(ue.y0,ue.x0),Qt(w.y0,w.x0),!h):(ne>0&&e.arc(u+ue.cx,c+ue.cy,ne,Qt(ue.y0,ue.x0),Qt(ue.y1,ue.x1),!h),e.arc(u,c,n,Qt(ue.cy+ue.y1,ue.cx+ue.x1),Qt(w.cy+w.y1,w.cx+w.x1),h),ie>0&&e.arc(u+w.cx,c+w.cy,ie,Qt(w.y1,w.x1),Qt(w.y0,w.x0),!h))}else e.lineTo(u+q,c+ve),e.arc(u,c,n,l,f,h)}e.closePath()}}}var Sb=(function(){function e(){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 e})(),Tp=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Sb},t.prototype.buildPath=function(r,a){Tb(r,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(gt);Tp.prototype.type="sector";var Eb=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Sp=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Eb},t.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,s=Math.PI*2;r.moveTo(n+a.r,i),r.arc(n,i,a.r,0,s,!1),r.moveTo(n+a.r0,i),r.arc(n,i,a.r0,0,s,!0)},t})(gt);Sp.prototype.type="ring";function Cb(e,t,r,a){var n=[],i=[],s=[],o=[],f,l,u,c;if(a){u=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)Xs(u,u,e[h]),Ys(c,c,e[h]);Xs(u,u,a[0]),Ys(c,c,a[1])}for(var h=0,d=e.length;h<d;h++){var v=e[h];if(r)f=e[h?h-1:d-1],l=e[(h+1)%d];else if(h===0||h===d-1){n.push(tD(e[h]));continue}else f=e[h-1],l=e[h+1];rD(i,l,f),zc(i,i,t);var p=Fd(v,f),g=Fd(v,l),m=p+g;m!==0&&(p/=m,g/=m),zc(s,i,-p),zc(o,i,g);var x=vg([],v,s),_=vg([],v,o);a&&(Ys(x,x,u),Xs(x,x,c),Ys(_,_,u),Xs(_,_,c)),n.push(x),n.push(_)}return r&&n.push(n.shift()),n}function mT(e,t,r){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var i=Cb(n,a,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var s=n.length,o=0;o<(r?s:s-1);o++){var f=i[o*2],l=i[o*2+1],u=n[(o+1)%s];e.bezierCurveTo(f[0],f[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var o=1,c=n.length;o<c;o++)e.lineTo(n[o][0],n[o][1])}r&&e.closePath()}}var Ab=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Ep=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ab},t.prototype.buildPath=function(r,a){mT(r,a,!0)},t})(gt);Ep.prototype.type="polygon";var Db=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Cp=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Db},t.prototype.buildPath=function(r,a){mT(r,a,!1)},t})(gt);Cp.prototype.type="polyline";var kb={},bb=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),wo=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bb},t.prototype.buildPath=function(r,a){var n,i,s,o;if(this.subPixelOptimize){var f=Jw(kb,a,this.style);n=f.x1,i=f.y1,s=f.x2,o=f.y2}else n=a.x1,i=a.y1,s=a.x2,o=a.y2;var l=a.percent;l!==0&&(r.moveTo(n,i),l<1&&(s=n*(1-l)+s*l,o=i*(1-l)+o*l),r.lineTo(s,o))},t.prototype.pointAt=function(r){var a=this.shape;return[a.x1*(1-r)+a.x2*r,a.y1*(1-r)+a.y2*r]},t})(gt);wo.prototype.type="line";var Dr=[],Fb=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function C2(e,t,r){var a=e.cpx2,n=e.cpy2;return a!=null||n!=null?[(r?Cg:_r)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Cg:_r)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Ag:Rr)(e.x1,e.cpx1,e.x2,t),(r?Ag:Rr)(e.y1,e.cpy1,e.y2,t)]}var Ap=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fb},t.prototype.buildPath=function(r,a){var n=a.x1,i=a.y1,s=a.x2,o=a.y2,f=a.cpx1,l=a.cpy1,u=a.cpx2,c=a.cpy2,h=a.percent;h!==0&&(r.moveTo(n,i),u==null||c==null?(h<1&&(su(n,f,s,h,Dr),f=Dr[1],s=Dr[2],su(i,l,o,h,Dr),l=Dr[1],o=Dr[2]),r.quadraticCurveTo(f,l,s,o)):(h<1&&(iu(n,f,u,s,h,Dr),f=Dr[1],u=Dr[2],s=Dr[3],iu(i,l,c,o,h,Dr),l=Dr[1],c=Dr[2],o=Dr[3]),r.bezierCurveTo(f,l,u,c,s,o)))},t.prototype.pointAt=function(r){return C2(this.shape,r,!1)},t.prototype.tangentAt=function(r){var a=C2(this.shape,r,!0);return iD(a,a)},t})(gt);Ap.prototype.type="bezier-curve";var Ib=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),hc=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ib},t.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,s=Math.max(a.r,0),o=a.startAngle,f=a.endAngle,l=a.clockwise,u=Math.cos(o),c=Math.sin(o);r.moveTo(u*s+n,c*s+i),r.arc(n,i,s,o,f,!l)},t})(gt);hc.prototype.type="arc";var xT=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,a=this.shapeChanged(),n=0;n<r.length;n++)a=a||r[n].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(a[0],a[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(r,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],a=0;a<r.length;a++)r[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},t})(gt),_T=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),yT=(function(e){He(t,e);function t(r,a,n,i,s,o){var f=e.call(this,s)||this;return f.x=r??0,f.y=a??0,f.x2=n??1,f.y2=i??0,f.type="linear",f.global=o||!1,f}return t})(_T),Mb=(function(e){He(t,e);function t(r,a,n,i,s){var o=e.call(this,i)||this;return o.x=r??.5,o.y=a??.5,o.r=n??.5,o.type="radial",o.global=s||!1,o}return t})(_T),Ii=[0,0],Mi=[0,0],s0=new dt,o0=new dt,gu=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new dt;for(var a=0;a<2;a++)this._axes[a]=new dt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var a=this._corners,n=this._axes,i=t.x,s=t.y,o=i+t.width,f=s+t.height;if(a[0].set(i,s),a[1].set(o,s),a[2].set(o,f),a[3].set(i,f),r)for(var l=0;l<4;l++)a[l].transform(r);dt.sub(n[0],a[1],a[0]),dt.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(a[0])},e.prototype.intersect=function(t,r){var a=!0,n=!r;return s0.set(1/0,1/0),o0.set(0,0),!this._intersectCheckOneSide(this,t,s0,o0,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(t,this,s0,o0,n,-1)&&(a=!1,n)||n||dt.copy(r,a?s0:o0),a},e.prototype._intersectCheckOneSide=function(t,r,a,n,i,s){for(var o=!0,f=0;f<2;f++){var l=this._axes[f];if(this._getProjMinMaxOnAxis(f,t._corners,Ii),this._getProjMinMaxOnAxis(f,r._corners,Mi),Ii[1]<Mi[0]||Ii[0]>Mi[1]){if(o=!1,i)return o;var u=Math.abs(Mi[0]-Ii[1]),c=Math.abs(Ii[0]-Mi[1]);Math.min(u,c)>n.len()&&(u<c?dt.scale(n,l,-u*s):dt.scale(n,l,c*s))}else if(a){var u=Math.abs(Mi[0]-Ii[1]),c=Math.abs(Ii[0]-Mi[1]);Math.min(u,c)<a.len()&&(u<c?dt.scale(a,l,u*s):dt.scale(a,l,-c*s))}}return o},e.prototype._getProjMinMaxOnAxis=function(t,r,a){for(var n=this._axes[t],i=this._origin,s=r[0].dot(n)+i[t],o=s,f=s,l=1;l<r.length;l++){var u=r[l].dot(n)+i[t];o=Math.min(u,o),f=Math.max(u,f)}a[0]=o,a[1]=f},e})(),Rb=[],Pb=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,a){r.call(a,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,a){a?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,a){a=a||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var a=this._cursor;a<this._displayables.length;a++)r&&r(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)r&&r(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var a=this._displayables[r];a.parent=this,a.update(),a.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var a=this._temporaryDisplayables[r];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new pt(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Rb)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var s=0;s<this._displayables.length;s++){var o=this._displayables[s];if(o.contain(r,a))return!0}return!1},t})(Dl);Xt();function Lb(e,t,r,a,n){var i;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();i=s&&s.animation}var o=t&&t.isAnimationEnabled(),f=e==="update";if(o){var l=void 0,u=void 0,c=void 0;a?(l=ze(a.duration,200),u=ze(a.easing,"cubicOut"),c=0):(l=t.getShallow(f?"animationDurationUpdate":"animationDuration"),u=t.getShallow(f?"animationEasingUpdate":"animationEasing"),c=t.getShallow(f?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(u=i.easing),i.delay!=null&&(c=i.delay)),ft(c)&&(c=c(r,n)),ft(l)&&(l=l(r));var h={duration:l||0,delay:c,easing:u};return h}else return null}function Dp(e,t,r,a,n,i,s){var o=!1,f;ft(n)?(s=i,i=n,n=null):Re(n)&&(i=n.cb,s=n.during,o=n.isFrom,f=n.removeOpt,n=n.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var u=Lb(e,a,n,l?f||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(u&&u.duration>0){var c=u.duration,h=u.delay,d=u.easing,v={duration:c,delay:h||0,easing:d,done:i,force:!!i||!!s,setToFinal:!l,scope:e,during:s};o?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!o&&t.attr(r),s&&s(1),i&&i()}function kp(e,t,r,a,n,i){Dp("update",e,t,r,a,n,i)}function wT(e,t,r,a,n,i){Dp("enter",e,t,r,a,n,i)}function Df(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function TT(e,t,r,a,n,i){Df(e)||Dp("leave",e,t,r,a,n,i)}function A2(e,t,r,a){e.removeTextContent(),e.removeTextGuideLine(),TT(e,{style:{opacity:0}},t,r,a)}function Ob(e,t,r){function a(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||A2(n,t,r,a)}):A2(e,t,r,a)}var mu=Math.max,xu=Math.min,rv={};function Bb(e){return gt.extend(e)}var Nb=pb;function Ub(e,t){return Nb(e,t)}function Ia(e,t){rv[e]=t}function Hb(e){if(rv.hasOwnProperty(e))return rv[e]}function bp(e,t,r,a){var n=vb(e,t);return r&&(a==="center"&&(r=ET(r,n.getBoundingRect())),CT(n,r)),n}function ST(e,t,r){var a=new An({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r==="center"){var i={width:n.width,height:n.height};a.setStyle(ET(t,i))}}});return a}function ET(e,t){var r=t.width/t.height,a=e.height*r,n;a<=e.width?n=e.height:(a=e.width,n=a/r);var i=e.x+e.width/2,s=e.y+e.height/2;return{x:i-a/2,y:s-n/2,width:a,height:n}}var Vb=gb;function CT(e,t){if(e.applyTransform){var r=e.getBoundingRect(),a=r.calculateTransform(t);e.applyTransform(a)}}function Fp(e,t){return Jw(e,e,{lineWidth:t}),e}function zb(e){return Qw(e.shape,e.shape,e.style),e}var Wb=Yi;function Gb(e,t){for(var r=sp([]);e&&e!==t;)so(r,e.getLocalTransform(),r),e=e.parent;return r}function Ip(e,t,r){return t&&!Or(t)&&(t=cp.getLocalTransform(t)),r&&(t=hw([],t)),Ya([],e,t)}function $b(e,t,r){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-a:e==="right"?a:0,e==="top"?-n:e==="bottom"?n:0];return i=Ip(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function D2(e){return!e.isGroup}function Xb(e){return e.shape!=null}function Yb(e,t,r){if(!e||!t)return;function a(s){var o={};return s.traverse(function(f){D2(f)&&f.anid&&(o[f.anid]=f)}),o}function n(s){var o={x:s.x,y:s.y,rotation:s.rotation};return Xb(s)&&(o.shape=Se({},s.shape)),o}var i=a(e);t.traverse(function(s){if(D2(s)&&s.anid){var o=i[s.anid];if(o){var f=n(s);s.attr(n(o)),kp(s,f,r,St(s).dataIndex)}}})}function Kb(e,t){return $e(e,function(r){var a=r[0];a=mu(a,t.x),a=xu(a,t.x+t.width);var n=r[1];return n=mu(n,t.y),n=xu(n,t.y+t.height),[a,n]})}function Zb(e,t){var r=mu(e.x,t.x),a=xu(e.x+e.width,t.x+t.width),n=mu(e.y,t.y),i=xu(e.y+e.height,t.y+t.height);if(a>=r&&i>=n)return{x:r,y:n,width:a-r,height:i-n}}function AT(e,t,r){var a=Se({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(n.image=e.slice(8),Mt(n,r),new An(a)):bp(e.replace("path://",""),a,r,"center")}function jb(e,t,r,a,n){for(var i=0,s=n[n.length-1];i<n.length;i++){var o=n[i];if(DT(e,t,r,a,o[0],o[1],s[0],s[1]))return!0;s=o}}function DT(e,t,r,a,n,i,s,o){var f=r-e,l=a-t,u=s-n,c=o-i,h=Dh(u,c,f,l);if(qb(h))return!1;var d=e-n,v=t-i,p=Dh(d,v,f,l)/h;if(p<0||p>1)return!1;var g=Dh(d,v,u,c)/h;return!(g<0||g>1)}function Dh(e,t,r,a){return e*a-r*t}function qb(e){return e<=1e-6&&e>=-1e-6}function Mp(e){var t=e.itemTooltipOption,r=e.componentModel,a=e.itemName,n=Me(t)?{formatter:t}:t,i=r.mainType,s=r.componentIndex,o={componentType:i,name:a,$vars:["name"]};o[i+"Index"]=s;var f=e.formatterParamsExtra;f&&X(at(f),function(u){po(o,u)||(o[u]=f[u],o.$vars.push(u))});var l=St(e.el);l.componentMainType=i,l.componentIndex=s,l.tooltipConfig={name:a,option:Mt({content:a,encodeHTMLContent:!0,formatterParams:o},n)}}function k2(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function kT(e,t){if(e)if(Ie(e))for(var r=0;r<e.length;r++)k2(e[r],t);else k2(e,t)}Ia("circle",cc);Ia("ellipse",wp);Ia("sector",Tp);Ia("ring",Sp);Ia("polygon",Ep);Ia("polyline",Cp);Ia("rect",Xr);Ia("line",wo);Ia("bezierCurve",Ap);Ia("arc",hc);const Jb=Object.freeze(Object.defineProperty({__proto__:null,Arc:hc,BezierCurve:Ap,BoundingRect:pt,Circle:cc,CompoundPath:xT,Ellipse:wp,Group:Sn,Image:An,IncrementalDisplayable:Pb,Line:wo,LinearGradient:yT,OrientedBoundingRect:gu,Path:gt,Point:dt,Polygon:Ep,Polyline:Cp,RadialGradient:Mb,Rect:Xr,Ring:Sp,Sector:Tp,Text:qa,applyTransform:Ip,clipPointsByRect:Kb,clipRectByRect:Zb,createIcon:AT,extendPath:Ub,extendShape:Bb,getShapeClass:Hb,getTransform:Gb,groupTransition:Yb,initProps:wT,isElementRemoved:Df,lineLineIntersect:DT,linePolygonIntersect:jb,makeImage:ST,makePath:bp,mergePath:Vb,registerShape:Ia,removeElement:TT,removeElementWithFadeOut:Ob,resizePath:CT,setTooltipConfig:Mp,subPixelOptimize:Wb,subPixelOptimizeLine:Fp,subPixelOptimizeRect:zb,transformDirection:$b,traverseElements:kT,updateProps:kp},Symbol.toStringTag,{value:"Module"}));var dc={};function Qb(e,t){for(var r=0;r<ai.length;r++){var a=ai[r],n=t[a],i=e.ensureState(a);i.style=i.style||{},i.style.text=n}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function b2(e,t,r){var a=e.labelFetcher,n=e.labelDataIndex,i=e.labelDimIndex,s=t.normal,o;a&&(o=a.getFormattedLabel(n,"normal",null,i,s&&s.get("formatter"),r!=null?{interpolatedValue:r}:null)),o==null&&(o=ft(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var f={normal:o},l=0;l<ai.length;l++){var u=ai[l],c=t[u];f[u]=ze(a?a.getFormattedLabel(n,u,null,i,c&&c.get("formatter")):null,o)}return f}function F2(e,t,r,a){r=r||dc;for(var n=e instanceof qa,i=!1,s=0;s<c2.length;s++){var o=t[c2[s]];if(o&&o.getShallow("show")){i=!0;break}}var f=n?e:e.getTextContent();if(i){n||(f||(f=new qa,e.setTextContent(f)),e.stateProxy&&(f.stateProxy=e.stateProxy));var l=b2(r,t),u=t.normal,c=!!u.getShallow("show"),h=el(u,a,r,!1,!n);h.text=l.normal,n||e.setTextConfig(M2(u,r,!1));for(var s=0;s<ai.length;s++){var d=ai[s],o=t[d];if(o){var v=f.ensureState(d),p=!!ze(o.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=el(o,a,r,!0,!n),v.style.text=l[d],!n){var g=e.ensureState(d);g.textConfig=M2(o,r,!0)}}}f.silent=!!u.getShallow("silent"),f.style.x!=null&&(h.x=f.style.x),f.style.y!=null&&(h.y=f.style.y),f.ignore=!c,f.useStyle(h),f.dirty(),r.enableTextSetter&&(a8(f).setLabelText=function(m){var x=b2(r,t,m);Qb(f,x)})}else f&&(f.ignore=!0);e.dirty()}function I2(e,t){t=t||"label";for(var r={normal:e.getModel(t)},a=0;a<ai.length;a++){var n=ai[a];r[n]=e.getModel([n,t])}return r}function el(e,t,r,a,n){var i={};return e8(i,e,r,a,n),t&&Se(i,t),i}function M2(e,t,r){t=t||{};var a={},n,i=e.getShallow("rotate"),s=ze(e.getShallow("distance"),r?null:5),o=e.getShallow("offset");return n=e.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),o!=null&&(a.offset=o),i!=null&&(i*=Math.PI/180,a.rotation=i),s!=null&&(a.distance=s),a.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",a}function e8(e,t,r,a,n){r=r||dc;var i=t.ecModel,s=i&&i.option.textStyle,o=t8(t),f;if(o){f={};for(var l in o)if(o.hasOwnProperty(l)){var u=t.getModel(["rich",l]);O2(f[l]={},u,s,r,a,n,!1,!0)}}f&&(e.rich=f);var c=t.get("overflow");c&&(e.overflow=c);var h=t.get("minMargin");h!=null&&(e.margin=h),O2(e,t,s,r,a,n,!0,!1)}function t8(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||dc).rich;if(r){t=t||{};for(var a=at(r),n=0;n<a.length;n++){var i=a[n];t[i]=1}}e=e.parentModel}return t}var R2=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],P2=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],L2=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function O2(e,t,r,a,n,i,s,o){r=!n&&r||dc;var f=a&&a.inheritColor,l=t.getShallow("color"),u=t.getShallow("textBorderColor"),c=ze(t.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(f?l=f:l=null),(u==="inherit"||u==="auto")&&(f?u=f:u=null),i||(l=l||r.color,u=u||r.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var h=ze(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var d=ze(t.getShallow("textBorderType"),r.textBorderType);d!=null&&(e.lineDash=d);var v=ze(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!n&&c==null&&!o&&(c=a&&a.defaultOpacity),c!=null&&(e.opacity=c),!n&&!i&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var p=0;p<R2.length;p++){var g=R2[p],m=ze(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<P2.length;p++){var g=P2[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(e.verticalAlign=x)}if(!s||!a.disableBox){for(var p=0;p<L2.length;p++){var g=L2[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function r8(e,t){var r=t&&t.getModel("textStyle");return Ga([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var a8=Xt(),n8=["textStyle","color"],kh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],bh=new qa,i8=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(n8):null)},e.prototype.getFont=function(){return r8({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<kh.length;a++)r[kh[a]]=this.getShallow(kh[a]);return bh.useStyle(r),bh.update(),bh.getBoundingRect()},e})(),bT=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],s8=Jf(bT),o8=(function(){function e(){}return e.prototype.getLineStyle=function(t){return s8(this,t)},e})(),FT=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],f8=Jf(FT),l8=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return f8(this,t,r)},e})(),Dt=(function(){function e(t,r,a){this.parentModel=r,this.ecModel=a,this.option=t}return e.prototype.init=function(t,r,a){},e.prototype.mergeOption=function(t,r){Ot(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var a=this.option,n=a==null?a:a[t];if(n==null&&!r){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},e.prototype.getModel=function(t,r){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(je(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&r&&(a=r._doGet(this.resolveParentPath(t),r.parentModel)),a},e})();dp(Dt);Zk(Dt);Fa(Dt,o8);Fa(Dt,l8);Fa(Dt,e5);Fa(Dt,i8);var u8=Math.round(Math.random()*10);function vc(e){return[e||"",u8++].join("_")}function c8(e){var t={};e.registerSubTypeDefaulter=function(r,a){var n=$a(r);t[n.main]=a},e.determineSubType=function(r,a){var n=a.type;if(!n){var i=$a(r).main;e.hasSubTypes(r)&&t[i]&&(n=t[i](a))}return n}}function h8(e,t){e.topologicalTravel=function(i,s,o,f){if(!i.length)return;var l=r(s),u=l.graph,c=l.noEntryList,h={};for(X(i,function(x){h[x]=!0});c.length;){var d=c.pop(),v=u[d],p=!!h[d];p&&(o.call(f,d,v.originalDeps.slice()),delete h[d]),X(v.successor,p?m:g)}X(h,function(){var x="";throw new Error(x)});function g(x){u[x].entryCount--,u[x].entryCount===0&&c.push(x)}function m(x){h[x]=!0,g(x)}};function r(i){var s={},o=[];return X(i,function(f){var l=a(s,f),u=l.originalDeps=t(f),c=n(u,i);l.entryCount=c.length,l.entryCount===0&&o.push(f),X(c,function(h){wt(l.predecessor,h)<0&&l.predecessor.push(h);var d=a(s,h);wt(d.successor,h)<0&&d.successor.push(f)})}),{graph:s,noEntryList:o}}function a(i,s){return i[s]||(i[s]={predecessor:[],successor:[]}),i[s]}function n(i,s){var o=[];return X(i,function(f){wt(s,f)>=0&&o.push(f)}),o}}const d8={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:". "}}}},v8={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var _u="ZH",Rp="EN",fo=Rp,W0={},Pp={},IT=Ne.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||fo).toUpperCase();return e.indexOf(_u)>-1?_u:fo})():fo;function MT(e,t){e=e.toUpperCase(),Pp[e]=new Dt(t),W0[e]=t}function p8(e){if(Me(e)){var t=W0[e.toUpperCase()]||{};return e===_u||e===Rp?je(t):Ot(je(t),je(W0[fo]),!1)}else return Ot(je(e),je(W0[fo]),!1)}function g8(e){return Pp[e]}function m8(){return Pp[fo]}MT(Rp,d8);MT(_u,v8);function Mn(e,t){return e+="","0000".substr(0,t-e.length)+e}function RT(e,t,r,a){var n=oc(e),i=n[x8(r)](),s=n[_8(r)]()+1,o=Math.floor((s-1)/3)+1,f=n[y8(r)](),l=n["get"+(r?"UTC":"")+"Day"](),u=n[w8(r)](),c=(u-1)%12+1,h=n[T8(r)](),d=n[S8(r)](),v=n[E8(r)](),p=u>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof Dt?a:g8(IT)||m8(),x=m.getModel("time"),_=x.get("month"),y=x.get("monthAbbr"),F=x.get("dayOfWeek"),k=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Mn(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,_[s-1]).replace(/{MMM}/g,y[s-1]).replace(/{MM}/g,Mn(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Mn(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,F[l]).replace(/{ee}/g,k[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Mn(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Mn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Mn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Mn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Mn(v,3)).replace(/{S}/g,v+"")}function x8(e){return e?"getUTCFullYear":"getFullYear"}function _8(e){return e?"getUTCMonth":"getMonth"}function y8(e){return e?"getUTCDate":"getDate"}function w8(e){return e?"getUTCHours":"getHours"}function T8(e){return e?"getUTCMinutes":"getMinutes"}function S8(e){return e?"getUTCSeconds":"getSeconds"}function E8(e){return e?"getUTCMilliseconds":"getMilliseconds"}function C8(e){if(!kk(e))return Me(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function PT(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,a){return a.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lp=sw;function av(e,t,r){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(u){return u&&Ga(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var s=t==="time",o=e instanceof Date;if(s||o){var f=s?oc(e):e;if(isNaN(+f)){if(o)return"-"}else return RT(f,a,r)}if(t==="ordinal")return kd(e)?n(e):It(e)&&i(e)?e+"":"-";var l=hu(e);return i(l)?C8(l):kd(e)?n(e):typeof e=="boolean"?e+"":"-"}var B2=["a","b","c","d","e","f","g"],Fh=function(e,t){return"{"+e+(t??"")+"}"};function LT(e,t,r){Ie(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var s=B2[i];e=e.replace(Fh(s),Fh(s,0))}for(var o=0;o<a;o++)for(var f=0;f<n.length;f++){var l=t[o][n[f]];e=e.replace(Fh(B2[f],o),r?xr(l):l)}return e}function A8(e,t){var r=Me(e)?{color:e,extraCssText:t}:e||{},a=r.color,n=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xr(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xr(a)+";"+(t||"")+'"></span>';var s=r.markerId||"markerX";return{renderMode:i,content:"{"+s+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function tl(e,t){return t=t||"transparent",Me(e)?e:Re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var G0=X,D8=["left","right","top","bottom","width","height"],f0=[["width","left","right"],["height","top","bottom"]];function OT(e,t,r,a,n){var i=0,s=0;a==null&&(a=1/0),n==null&&(n=1/0);var o=0;t.eachChild(function(f,l){var u=f.getBoundingRect(),c=t.childAt(l+1),h=c&&c.getBoundingRect(),d,v;if(e==="horizontal"){var p=u.width+(h?-h.x+u.x:0);d=i+p,d>a||f.newline?(i=0,d=p,s+=o+r,o=u.height):o=Math.max(o,u.height)}else{var g=u.height+(h?-h.y+u.y:0);v=s+g,v>n||f.newline?(i+=o+r,s=0,v=g,o=u.width):o=Math.max(o,u.width)}f.newline||(f.x=i,f.y=s,f.markRedraw(),e==="horizontal"?i=d+r:s=v+r)})}Sr(OT,"vertical");Sr(OT,"horizontal");function BT(e,t,r){r=Lp(r||0);var a=t.width,n=t.height,i=za(e.left,a),s=za(e.top,n),o=za(e.right,a),f=za(e.bottom,n),l=za(e.width,a),u=za(e.height,n),c=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(l)&&(l=a-o-h-i),isNaN(u)&&(u=n-f-c-s),d!=null&&(isNaN(l)&&isNaN(u)&&(d>a/n?l=a*.8:u=n*.8),isNaN(l)&&(l=d*u),isNaN(u)&&(u=l/d)),isNaN(i)&&(i=a-o-l-h),isNaN(s)&&(s=n-f-u-c),e.left||e.right){case"center":i=a/2-l/2-r[3];break;case"right":i=a-l-h;break}switch(e.top||e.bottom){case"middle":case"center":s=n/2-u/2-r[0];break;case"bottom":s=n-u-c;break}i=i||0,s=s||0,isNaN(l)&&(l=a-h-i-(o||0)),isNaN(u)&&(u=n-c-s-(f||0));var v=new pt(i+r[3],s+r[0],l,u);return v.margin=r,v}function yu(e){var t=e.layoutMode||e.constructor.layoutMode;return Re(t)?t:t?{type:t}:null}function wu(e,t,r){var a=r&&r.ignoreSize;!Ie(a)&&(a=[a,a]);var n=s(f0[0],0),i=s(f0[1],1);l(f0[0],e,n),l(f0[1],e,i);function s(u,c){var h={},d=0,v={},p=0,g=2;if(G0(u,function(_){v[_]=e[_]}),G0(u,function(_){o(t,_)&&(h[_]=v[_]=t[_]),f(h,_)&&d++,f(v,_)&&p++}),a[c])return f(t,u[1])?v[u[2]]=null:f(t,u[2])&&(v[u[1]]=null),v;if(p===g||!d)return v;if(d>=g)return h;for(var m=0;m<u.length;m++){var x=u[m];if(!o(h,x)&&o(e,x)){h[x]=e[x];break}}return h}function o(u,c){return u.hasOwnProperty(c)}function f(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,h){G0(u,function(d){c[d]=h[d]})}}function NT(e){return k8({},e)}function k8(e,t){return t&&e&&G0(D8,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var b8=Xt(),yt=(function(e){He(t,e);function t(r,a,n){var i=e.call(this,r,a,n)||this;return i.uid=vc("ec_cpt_model"),i}return t.prototype.init=function(r,a,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,a){var n=yu(this),i=n?NT(r):{},s=a.getTheme();Ot(r,s.get(this.mainType)),Ot(r,this.getDefaultOption()),n&&wu(r,i,n)},t.prototype.mergeOption=function(r,a){Ot(this.option,r,!0);var n=yu(this);n&&wu(this.option,r,n)},t.prototype.optionUpdated=function(r,a){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Xk(r))return r.defaultOption;var a=b8(this);if(!a.defaultOption){for(var n=[],i=r;i;){var s=i.prototype.defaultOption;s&&n.push(s),i=i.superClass}for(var o={},f=n.length-1;f>=0;f--)o=Ot(o,n[f],!0);a.defaultOption=o}return a.defaultOption},t.prototype.getReferringComponents=function(r,a){var n=r+"Index",i=r+"Id";return Al(this.ecModel,r,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(Dt);Yw(yt,Dt);vp(yt);c8(yt);h8(yt,F8);function F8(e){var t=[];return X(yt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=$e(t,function(r){return $a(r).main}),e!=="dataset"&&wt(t,"dataset")<=0&&t.unshift("dataset"),t}var UT="";typeof navigator<"u"&&(UT=navigator.platform||"");var Rs="rgba(0, 0, 0, 0.2)";const I8={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Rs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Rs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Rs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Rs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Rs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Rs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:UT.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var HT=Xe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ha="original",Nr="arrayRows",en="objectRows",kn="keyedColumns",jn="typedArray",VT="unknown",mn="column",To="row",Ur={Must:1,Might:2,Not:3},zT=Xt();function M8(e){zT(e).datasetMap=Xe()}function R8(e,t,r){var a={},n=WT(t);if(!n||!e)return a;var i=[],s=[],o=t.ecModel,f=zT(o).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,u,c;e=e.slice(),X(e,function(p,g){var m=Re(p)?p:e[g]={name:p};m.type==="ordinal"&&u==null&&(u=g,c=v(m)),a[m.name]=[]});var h=f.get(l)||f.set(l,{categoryWayDim:c,valueWayDim:0});X(e,function(p,g){var m=p.name,x=v(p);if(u==null){var _=h.valueWayDim;d(a[m],_,x),d(s,_,x),h.valueWayDim+=x}else if(u===g)d(a[m],0,x),d(i,0,x);else{var _=h.categoryWayDim;d(a[m],_,x),d(s,_,x),h.categoryWayDim+=x}});function d(p,g,m){for(var x=0;x<m;x++)p.push(g+x)}function v(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),s.length&&(a.seriesName=s),a}function WT(e){var t=e.get("data",!0);if(!t)return Al(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Xi).models[0]}function P8(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Al(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Xi).models}function GT(e,t){return L8(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function L8(e,t,r,a,n,i){var s,o=5;if(Br(e))return Ur.Not;var f,l;if(a){var u=a[i];Re(u)?(f=u.name,l=u.type):Me(u)&&(f=u)}if(l!=null)return l==="ordinal"?Ur.Must:Ur.Not;if(t===Nr){var c=e;if(r===To){for(var h=c[i],d=0;d<(h||[]).length&&d<o;d++)if((s=y(h[n+d]))!=null)return s}else for(var d=0;d<c.length&&d<o;d++){var v=c[n+d];if(v&&(s=y(v[i]))!=null)return s}}else if(t===en){var p=e;if(!f)return Ur.Not;for(var d=0;d<p.length&&d<o;d++){var g=p[d];if(g&&(s=y(g[f]))!=null)return s}}else if(t===kn){var m=e;if(!f)return Ur.Not;var h=m[f];if(!h||Br(h))return Ur.Not;for(var d=0;d<h.length&&d<o;d++)if((s=y(h[d]))!=null)return s}else if(t===ha)for(var x=e,d=0;d<x.length&&d<o;d++){var g=x[d],_=El(g);if(!Ie(_))return Ur.Not;if((s=y(_[i]))!=null)return s}function y(F){var k=Me(F);if(F!=null&&Number.isFinite(Number(F))&&F!=="")return k?Ur.Might:Ur.Not;if(k&&F!=="-")return Ur.Must}return Ur.Not}var O8=Xe();function B8(e,t,r){var a=O8.get(t);if(!a)return r;var n=a(e);return n?r.concat(n):r}var N2=Xt();Xt();var Op=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,a){var n=Er(this.get("color",!0)),i=this.get("colorLayer",!0);return U8(this,N2,n,i,t,r,a)},e.prototype.clearColorPalette=function(){H8(this,N2)},e})();function N8(e,t){for(var r=e.length,a=0;a<r;a++)if(e[a].length>t)return e[a];return e[r-1]}function U8(e,t,r,a,n,i,s){i=i||e;var o=t(i),f=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var u=s==null||!a?r:N8(a,s);if(u=u||r,!(!u||!u.length)){var c=u[f];return n&&(l[n]=c),o.paletteIdx=(f+1)%u.length,c}}function H8(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var l0,Ho,U2,H2="\0_ec_inner",V8=1,Bp=(function(e){He(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,a,n,i,s,o){i=i||{},this.option=null,this._theme=new Dt(i),this._locale=new Dt(s),this._optionManager=o},t.prototype.setOption=function(r,a,n){var i=W2(a);this._optionManager.setOption(r,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,a){return this._resetOption(r,W2(a))},t.prototype._resetOption=function(r,a){var n=!1,i=this._optionManager;if(!r||r==="recreate"){var s=i.mountOption(r==="recreate");!this.option||r==="recreate"?U2(this,s):(this.restoreData(),this._mergeOption(s,a)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,a))}if(!r||r==="recreate"||r==="media"){var f=i.getMediaOption(this);f.length&&X(f,function(l){n=!0,this._mergeOption(l,a)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,a){var n=this.option,i=this._componentsMap,s=this._componentsCount,o=[],f=Xe(),l=a&&a.replaceMergeMainTypeMap;M8(this),X(r,function(c,h){c!=null&&(yt.hasClass(h)?h&&(o.push(h),f.set(h,!0)):n[h]=n[h]==null?je(c):Ot(n[h],c,!0))}),l&&l.each(function(c,h){yt.hasClass(h)&&!f.get(h)&&(o.push(h),f.set(h,!0))}),yt.topologicalTravel(o,yt.getAllClassMainTypes(),u,this);function u(c){var h=B8(this,c,Er(r[c])),d=i.get(c),v=d?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Ik(d,h,v);Nk(p,c,yt),n[c]=null,i.set(c,null),s.set(c,0);var g=[],m=[],x=0,_;X(p,function(y,F){var k=y.existing,E=y.newOption;if(!E)k&&(k.mergeOption({},this),k.optionUpdated({},!1));else{var C=c==="series",T=yt.getClass(c,y.keyInfo.subType,!C);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(k&&k.constructor===T)k.name=y.keyInfo.name,k.mergeOption(E,this),k.optionUpdated(E,!1);else{var b=Se({componentIndex:F},y.keyInfo);k=new T(E,this,this,b),Se(k,b),y.brandNew&&(k.__requireNewView=!0),k.init(E,this,this),k.optionUpdated(null,!0)}}k?(g.push(k.option),m.push(k),x++):(g.push(void 0),m.push(void 0))},this),n[c]=g,i.set(c,m),s.set(c,x),c==="series"&&l0(this)}this._seriesIndices||l0(this)},t.prototype.getOption=function(){var r=je(this.option);return X(r,function(a,n){if(yt.hasClass(n)){for(var i=Er(a),s=i.length,o=!1,f=s-1;f>=0;f--)i[f]&&!qf(i[f])?o=!0:(i[f]=null,!o&&s--);i.length=s,r[n]=i}}),delete r[H2],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,a){var n=this._componentsMap.get(r);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var s=0;s<n.length;s++)if(n[s])return n[s]}}},t.prototype.queryComponents=function(r){var a=r.mainType;if(!a)return[];var n=r.index,i=r.id,s=r.name,o=this._componentsMap.get(a);if(!o||!o.length)return[];var f;return n!=null?(f=[],X(Er(n),function(l){o[l]&&f.push(o[l])})):i!=null?f=V2("id",i,o):s!=null?f=V2("name",s,o):f=Hr(o,function(l){return!!l}),z2(f,r)},t.prototype.findComponents=function(r){var a=r.query,n=r.mainType,i=o(a),s=i?this.queryComponents(i):Hr(this._componentsMap.get(n),function(l){return!!l});return f(z2(s,r));function o(l){var u=n+"Index",c=n+"Id",h=n+"Name";return l&&(l[u]!=null||l[c]!=null||l[h]!=null)?{mainType:n,index:l[u],id:l[c],name:l[h]}:null}function f(l){return r.filter?Hr(l,r.filter):l}},t.prototype.eachComponent=function(r,a,n){var i=this._componentsMap;if(ft(r)){var s=a,o=r;i.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&o.call(s,h,v,v.componentIndex)}})}else for(var f=Me(r)?i.get(r):Re(r)?this.findComponents(r):null,l=0;f&&l<f.length;l++){var u=f[l];u&&a.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(r){var a=Da(r,null);return Hr(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Hr(this._componentsMap.get("series"),function(a){return!!a&&a.subType===r})},t.prototype.getSeries=function(){return Hr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,a){Ho(this),X(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];r.call(a,i,n)},this)},t.prototype.eachRawSeries=function(r,a){X(this._componentsMap.get("series"),function(n){n&&r.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,a,n){Ho(this),X(this._seriesIndices,function(i){var s=this._componentsMap.get("series")[i];s.subType===r&&a.call(n,s,i)},this)},t.prototype.eachRawSeriesByType=function(r,a,n){return X(this.getSeriesByType(r),a,n)},t.prototype.isSeriesFiltered=function(r){return Ho(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,a){Ho(this);var n=[];X(this._seriesIndices,function(i){var s=this._componentsMap.get("series")[i];r.call(a,s,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Xe(n)},t.prototype.restoreData=function(r){l0(this);var a=this._componentsMap,n=[];a.each(function(i,s){yt.hasClass(s)&&n.push(s)}),yt.topologicalTravel(n,yt.getAllClassMainTypes(),function(i){X(a.get(i),function(s){s&&(i!=="series"||!z8(s,r))&&s.restoreData()})})},t.internalField=(function(){l0=function(r){var a=r._seriesIndices=[];X(r._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),r._seriesIndicesMap=Xe(a)},Ho=function(r){},U2=function(r,a){r.option={},r.option[H2]=V8,r._componentsMap=Xe({series:[]}),r._componentsCount=Xe();var n=a.aria;Re(n)&&n.enabled==null&&(n.enabled=!0),W8(a,r._theme.option),Ot(a,I8,!1),r._mergeOption(a,null)}})(),t})(Dt);function z8(e,t){if(t){var r=t.seriesIndex,a=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||a!=null&&e.id!==a||n!=null&&e.name!==n}}function W8(e,t){var r=e.color&&!e.colorLayer;X(t,function(a,n){n==="colorLayer"&&r||yt.hasClass(n)||(typeof a=="object"?e[n]=e[n]?Ot(e[n],a,!1):je(a):e[n]==null&&(e[n]=a))})}function V2(e,t,r){if(Ie(t)){var a=Xe();return X(t,function(i){if(i!=null){var s=Da(i,null);s!=null&&a.set(i,!0)}}),Hr(r,function(i){return i&&a.get(i[e])})}else{var n=Da(t,null);return Hr(r,function(i){return i&&n!=null&&i[e]===n})}}function z2(e,t){return t.hasOwnProperty("subType")?Hr(e,function(r){return r&&r.subType===t.subType}):e}function W2(e){var t=Xe();return e&&X(Er(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Fa(Bp,Op);var G8=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],$T=(function(){function e(t){X(G8,function(r){this[r]=Et(t[r],t)},this)}return e})(),Ih={},pc=(function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var a=[];X(Ih,function(n,i){var s=n.create(t,r);a=a.concat(s||[])}),this._coordinateSystems=a},e.prototype.update=function(t,r){X(this._coordinateSystems,function(a){a.update&&a.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Ih[t]=r},e.get=function(t){return Ih[t]},e})(),$8=/^(min|max)?(.+)$/,X8=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,a){t&&(X(Er(t.series),function(s){s&&s.data&&Br(s.data)&&bd(s.data)}),X(Er(t.dataset),function(s){s&&s.source&&Br(s.source)&&bd(s.source)})),t=je(t);var n=this._optionBackup,i=Y8(t,r,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],je(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(r=je(a[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,s=[],o=[];if(!n.length&&!i)return o;for(var f=0,l=n.length;f<l;f++)K8(n[f].query,r,a)&&s.push(f);return!s.length&&i&&(s=[-1]),s.length&&!j8(s,this._currentMediaIndices)&&(o=$e(s,function(u){return je(u===-1?i.option:n[u].option)})),this._currentMediaIndices=s,o},e})();function Y8(e,t,r){var a=[],n,i,s=e.baseOption,o=e.timeline,f=e.options,l=e.media,u=!!e.media,c=!!(f||o||s&&s.timeline);s?(i=s,i.timeline||(i.timeline=o)):((c||u)&&(e.options=e.media=null),i=e),u&&Ie(l)&&X(l,function(d){d&&d.option&&(d.query?a.push(d):n||(n=d))}),h(i),X(f,function(d){return h(d)}),X(a,function(d){return h(d.option)});function h(d){X(t,function(v){v(d,r)})}return{baseOption:i,timelineOptions:f||[],mediaDefault:n,mediaList:a}}function K8(e,t,r){var a={width:t,height:r,aspectratio:t/r},n=!0;return X(e,function(i,s){var o=s.match($8);if(!(!o||!o[1]||!o[2])){var f=o[1],l=o[2].toLowerCase();Z8(a[l],i,f)||(n=!1)}}),n}function Z8(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function j8(e,t){return e.join(",")===t.join(",")}var ga=X,rl=Re,G2=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Mh(e){var t=e&&e.itemStyle;if(t)for(var r=0,a=G2.length;r<a;r++){var n=G2[r],i=t.normal,s=t.emphasis;i&&i[n]&&(e[n]=e[n]||{},e[n].normal?Ot(e[n].normal,i[n]):e[n].normal=i[n],i[n]=null),s&&s[n]&&(e[n]=e[n]||{},e[n].emphasis?Ot(e[n].emphasis,s[n]):e[n].emphasis=s[n],s[n]=null)}}function ar(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var a=e[t].normal,n=e[t].emphasis;a&&(r?(e[t].normal=e[t].emphasis=null,Mt(e[t],a)):e[t]=a),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function af(e){ar(e,"itemStyle"),ar(e,"lineStyle"),ar(e,"areaStyle"),ar(e,"label"),ar(e,"labelLine"),ar(e,"upperLabel"),ar(e,"edgeLabel")}function Ft(e,t){var r=rl(e)&&e[t],a=rl(r)&&r.textStyle;if(a)for(var n=0,i=Xg.length;n<i;n++){var s=Xg[n];a.hasOwnProperty(s)&&(r[s]=a[s])}}function ra(e){e&&(af(e),Ft(e,"label"),e.emphasis&&Ft(e.emphasis,"label"))}function q8(e){if(rl(e)){Mh(e),af(e),Ft(e,"label"),Ft(e,"upperLabel"),Ft(e,"edgeLabel"),e.emphasis&&(Ft(e.emphasis,"label"),Ft(e.emphasis,"upperLabel"),Ft(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Mh(t),ra(t));var r=e.markLine;r&&(Mh(r),ra(r));var a=e.markArea;a&&ra(a);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var i=e.links||e.edges;if(i&&!Br(i))for(var s=0;s<i.length;s++)ra(i[s]);X(e.categories,function(l){af(l)})}if(n&&!Br(n))for(var s=0;s<n.length;s++)ra(n[s]);if(t=e.markPoint,t&&t.data)for(var o=t.data,s=0;s<o.length;s++)ra(o[s]);if(r=e.markLine,r&&r.data)for(var f=r.data,s=0;s<f.length;s++)Ie(f[s])?(ra(f[s][0]),ra(f[s][1])):ra(f[s]);e.type==="gauge"?(Ft(e,"axisLabel"),Ft(e,"title"),Ft(e,"detail")):e.type==="treemap"?(ar(e.breadcrumb,"itemStyle"),X(e.levels,function(l){af(l)})):e.type==="tree"&&af(e.leaves)}}function fn(e){return Ie(e)?e:e?[e]:[]}function $2(e){return(Ie(e)?e[0]:e)||{}}function J8(e,t){ga(fn(e.series),function(a){rl(a)&&q8(a)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ga(r,function(a){ga(fn(e[a]),function(n){n&&(Ft(n,"axisLabel"),Ft(n.axisPointer,"label"))})}),ga(fn(e.parallel),function(a){var n=a&&a.parallelAxisDefault;Ft(n,"axisLabel"),Ft(n&&n.axisPointer,"label")}),ga(fn(e.calendar),function(a){ar(a,"itemStyle"),Ft(a,"dayLabel"),Ft(a,"monthLabel"),Ft(a,"yearLabel")}),ga(fn(e.radar),function(a){Ft(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),ga(fn(e.geo),function(a){rl(a)&&(ra(a),ga(fn(a.regions),function(n){ra(n)}))}),ga(fn(e.timeline),function(a){ra(a),ar(a,"label"),ar(a,"itemStyle"),ar(a,"controlStyle",!0);var n=a.data;Ie(n)&&X(n,function(i){Re(i)&&(ar(i,"label"),ar(i,"itemStyle"))})}),ga(fn(e.toolbox),function(a){ar(a,"iconStyle"),ga(a.feature,function(n){ar(n,"iconStyle")})}),Ft($2(e.axisPointer),"label"),Ft($2(e.tooltip).axisPointer,"label")}function Q8(e,t){for(var r=t.split(","),a=e,n=0;n<r.length&&(a=a&&a[r[n]],a!=null);n++);return a}function eF(e,t,r,a){for(var n=t.split(","),i=e,s,o=0;o<n.length-1;o++)s=n[o],i[s]==null&&(i[s]={}),i=i[s];i[n[o]]==null&&(i[n[o]]=r)}function X2(e){e&&X(tF,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var tF=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rF=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Rh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Vo(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Rh.length;r++){var a=Rh[r][1],n=Rh[r][0];t[a]!=null&&(t[n]=t[a])}}function Y2(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function K2(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function aF(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function XT(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&XT(e[r].children,t)}function YT(e,t){J8(e,t),e.series=Er(e.series),X(e.series,function(r){if(Re(r)){var a=r.type;if(a==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(a==="pie"||a==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Y2(r.label);var n=r.data;if(n&&!Br(n))for(var i=0;i<n.length;i++)Y2(n[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(a==="gauge"){var s=Q8(r,"pointer.color");s!=null&&eF(r,"itemStyle.color",s)}else if(a==="bar"){Vo(r),Vo(r.backgroundStyle),Vo(r.emphasis);var n=r.data;if(n&&!Br(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Vo(n[i]),Vo(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var o=r.highlightPolicy;o&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=o)),K2(r),XT(r.data,K2)}else a==="graph"||a==="sankey"?aF(r):a==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Mt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),X2(r)}}),e.dataRange&&(e.visualMap=e.dataRange),X(rF,function(r){var a=e[r];a&&(Ie(a)||(a=[a]),X(a,function(n){X2(n)}))})}function nF(e){var t=Xe();e.eachSeries(function(r){var a=r.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=r.getData(),s={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(s)}}),t.each(iF)}function iF(e){X(e,function(t,r){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],s=t.data,o=t.isStackedByIndex,f=t.seriesModel.get("stackStrategy")||"samesign";s.modify(i,function(l,u,c){var h=s.get(t.stackedDimension,c);if(isNaN(h))return n;var d,v;o?v=s.getRawIndex(c):d=s.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(o||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var x=m.data.getByRawIndex(m.stackResultDimension,v);if(f==="all"||f==="positive"&&x>0||f==="negative"&&x<0||f==="samesign"&&h>=0&&x>0||f==="samesign"&&h<=0&&x<0){h=Ak(h,x),p=x;break}}}return a[0]=h,a[1]=p,a})})}var gc=(function(){function e(t){this.data=t.data||(t.sourceFormat===kn?{}:[]),this.sourceFormat=t.sourceFormat||VT,this.seriesLayoutBy=t.seriesLayoutBy||mn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var a=0;a<r.length;a++){var n=r[a];n.type==null&&GT(this,a)===Ur.Must&&(n.type="ordinal")}}return e})();function Np(e){return e instanceof gc}function nv(e,t,r){r=r||KT(e);var a=t.seriesLayoutBy,n=oF(e,r,a,t.sourceHeader,t.dimensions),i=new gc({data:e,sourceFormat:r,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:je(t)});return i}function Up(e){return new gc({data:e,sourceFormat:Br(e)?jn:ha})}function sF(e){return new gc({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:je(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function KT(e){var t=VT;if(Br(e))t=jn;else if(Ie(e)){e.length===0&&(t=Nr);for(var r=0,a=e.length;r<a;r++){var n=e[r];if(n!=null){if(Ie(n)||Br(n)){t=Nr;break}else if(Re(n)){t=en;break}}}}else if(Re(e)){for(var i in e)if(po(e,i)&&Or(e[i])){t=kn;break}}return t}function oF(e,t,r,a,n){var i,s;if(!e)return{dimensionsDefine:Z2(n),startIndex:s,dimensionsDetectedCount:i};if(t===Nr){var o=e;a==="auto"||a==null?j2(function(l){l!=null&&l!=="-"&&(Me(l)?s==null&&(s=1):s=0)},r,o,10):s=It(a)?a:a?1:0,!n&&s===1&&(n=[],j2(function(l,u){n[u]=l!=null?l+"":""},r,o,1/0)),i=n?n.length:r===To?o.length:o[0]?o[0].length:null}else if(t===en)n||(n=fF(e));else if(t===kn)n||(n=[],X(e,function(l,u){n.push(u)}));else if(t===ha){var f=El(e[0]);i=Ie(f)&&f.length||1}return{startIndex:s,dimensionsDefine:Z2(n),dimensionsDetectedCount:i}}function fF(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return at(r)}function Z2(e){if(e){var t=Xe();return $e(e,function(r,a){r=Re(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function j2(e,t,r,a){if(t===To)for(var n=0;n<r.length&&n<a;n++)e(r[n]?r[n][0]:null,n);else for(var i=r[0]||[],n=0;n<i.length&&n<a;n++)e(i[n],n)}function ZT(e){var t=e.sourceFormat;return t===en||t===kn}var Ri,Pi,Li,q2,J2,jT=(function(){function e(t,r){var a=Np(t)?t:Up(t);this._source=a;var n=this._data=a.data;a.sourceFormat===jn&&(this._offset=0,this._dimSize=r,this._data=n),J2(this,n,a)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;J2=function(s,o,f){var l=f.sourceFormat,u=f.seriesLayoutBy,c=f.startIndex,h=f.dimensionsDefine,d=q2[Hp(l,u)];if(Se(s,d),l===jn)s.getItem=r,s.count=n,s.fillStorage=a;else{var v=qT(l,u);s.getItem=Et(v,null,o,c,h);var p=JT(l,u);s.count=Et(p,null,o,c,h)}};var r=function(s,o){s=s-this._offset,o=o||[];for(var f=this._data,l=this._dimSize,u=l*s,c=0;c<l;c++)o[c]=f[u+c];return o},a=function(s,o,f,l){for(var u=this._data,c=this._dimSize,h=0;h<c;h++){for(var d=l[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],g=o-s,m=f[h],x=0;x<g;x++){var _=u[x*c+h];m[s+x]=_,_<v&&(v=_),_>p&&(p=_)}d[0]=v,d[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};q2=(t={},t[Nr+"_"+mn]={pure:!0,appendData:i},t[Nr+"_"+To]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[en]={pure:!0,appendData:i},t[kn]={pure:!0,appendData:function(s){var o=this._data;X(s,function(f,l){for(var u=o[l]||(o[l]=[]),c=0;c<(f||[]).length;c++)u.push(f[c])})}},t[ha]={appendData:i},t[jn]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(s){for(var o=0;o<s.length;o++)this._data.push(s[o])}})(),e})(),Q2=function(e,t,r,a){return e[a]},lF=(Ri={},Ri[Nr+"_"+mn]=function(e,t,r,a){return e[a+t]},Ri[Nr+"_"+To]=function(e,t,r,a,n){a+=t;for(var i=n||[],s=e,o=0;o<s.length;o++){var f=s[o];i[o]=f?f[a]:null}return i},Ri[en]=Q2,Ri[kn]=function(e,t,r,a,n){for(var i=n||[],s=0;s<r.length;s++){var o=r[s].name,f=e[o];i[s]=f?f[a]:null}return i},Ri[ha]=Q2,Ri);function qT(e,t){var r=lF[Hp(e,t)];return r}var em=function(e,t,r){return e.length},uF=(Pi={},Pi[Nr+"_"+mn]=function(e,t,r){return Math.max(0,e.length-t)},Pi[Nr+"_"+To]=function(e,t,r){var a=e[0];return a?Math.max(0,a.length-t):0},Pi[en]=em,Pi[kn]=function(e,t,r){var a=r[0].name,n=e[a];return n?n.length:0},Pi[ha]=em,Pi);function JT(e,t){var r=uF[Hp(e,t)];return r}var Ph=function(e,t,r){return e[t]},cF=(Li={},Li[Nr]=Ph,Li[en]=function(e,t,r){return e[r]},Li[kn]=Ph,Li[ha]=function(e,t,r){var a=El(e);return a instanceof Array?a[t]:a},Li[jn]=Ph,Li);function QT(e){var t=cF[e];return t}function Hp(e,t){return e===Nr?e+"_"+t:e}function Tu(e,t,r){if(e){var a=e.getRawDataItem(t);if(a!=null){var n=e.getStore(),i=n.getSource().sourceFormat;if(r!=null){var s=e.getDimensionIndex(r),o=n.getDimensionProperty(s);return QT(i)(a,s,o)}else{var f=a;return i===ha&&(f=El(a)),f}}}}var hF=/\{@(.+?)\}/g,dF=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var a=this.getData(r),n=this.getRawValue(t,r),i=a.getRawIndex(t),s=a.getName(t),o=a.getRawDataItem(t),f=a.getItemVisual(t,"style"),l=f&&f[a.getItemVisual(t,"drawType")||"fill"],u=f&&f.stroke,c=this.mainType,h=c==="series",d=a.userOutput&&a.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:s,dataIndex:i,data:o,dataType:r,value:n,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,a,n,i,s){r=r||"normal";var o=this.getData(a),f=this.getDataParams(t,a);if(s&&(f.value=s.interpolatedValue),n!=null&&Ie(f.value)&&(f.value=f.value[n]),!i){var l=o.getItemModel(t);i=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ft(i))return f.status=r,f.dimensionIndex=n,i(f);if(Me(i)){var u=LT(i,f);return u.replace(hF,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=Tu(o,t,v);if(s&&Ie(s.interpolatedValue)){var g=o.getDimensionIndex(v);g>=0&&(p=s.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Tu(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,a){},e})();function tm(e){var t,r;return Re(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function kf(e){return new vF(e)}var vF=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,a=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var s=u(this._modBy),o=this._modDataCount||0,f=u(t&&t.modBy),l=t&&t.modDataCount||0;(s!==f||o!==l)&&(i="reset");function u(x){return!(x>=1)&&(x=1),x}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=f,this._modDataCount=l;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(c||d<v)){var p=this._progress;if(Ie(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,v,f,l);else this._doProgress(p,d,v,f,l)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,a,n,i){rm.reset(r,a,n,i),this._callingProgress=t,this._callingProgress({start:r,end:a,count:a-r,next:rm.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,a;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(a=r.forceFirstProgress,r=r.progress),Ie(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),rm=(function(){var e,t,r,a,n,i={reset:function(f,l,u,c){t=f,e=l,r=u,a=c,n=Math.ceil(a/r),i.next=r>1&&a>0?o:s}};return i;function s(){return t<e?t++:null}function o(){var f=t%n*r+Math.ceil(t/n),l=t>=e?null:f<a?f:t;return t++,l}})();function $0(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!It(e)&&e!=null&&e!=="-"&&(e=+oc(e)),e==null||e===""?NaN:Number(e))}Xe({number:function(e){return parseFloat(e)},time:function(e){return+oc(e)},trim:function(e){return Me(e)?Ga(e):e}});var pF=(function(){function e(t,r){var a=t==="desc";this._resultLT=a?1:-1,r==null&&(r=a?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var a=It(t)?t:hu(t),n=It(r)?r:hu(r),i=isNaN(a),s=isNaN(n);if(i&&(a=this._incomparable),s&&(n=this._incomparable),i&&s){var o=Me(t),f=Me(r);o&&(a=f?t:0),f&&(n=o?r:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},e})(),gF=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return $0(t,r)},e})();function mF(e,t){var r=new gF,a=e.data,n=r.sourceFormat=e.sourceFormat,i=e.startIndex,s="";e.seriesLayoutBy!==mn&&Pr(s);var o=[],f={},l=e.dimensionsDefine;if(l)X(l,function(p,g){var m=p.name,x={index:g,name:m,displayName:p.displayName};if(o.push(x),m!=null){var _="";po(f,m)&&Pr(_),f[m]=x}});else for(var u=0;u<e.dimensionsDetectedCount;u++)o.push({index:u});var c=qT(n,mn);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(a,i,o,p)},r.getRawData=Et(xF,null,e)),r.cloneRawData=Et(_F,null,e);var h=JT(n,mn);r.count=Et(h,null,a,i,o);var d=QT(n);r.retrieveValue=function(p,g){var m=c(a,i,o,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=o[g];if(m)return d(p,g,m.name)}};return r.getDimensionInfo=Et(yF,null,o,f),r.cloneAllDimensionInfo=Et(wF,null,o),r}function xF(e){var t=e.sourceFormat;if(!Vp(t)){var r="";Pr(r)}return e.data}function _F(e){var t=e.sourceFormat,r=e.data;if(!Vp(t)){var a="";Pr(a)}if(t===Nr){for(var n=[],i=0,s=r.length;i<s;i++)n.push(r[i].slice());return n}else if(t===en){for(var n=[],i=0,s=r.length;i<s;i++)n.push(Se({},r[i]));return n}}function yF(e,t,r){if(r!=null){if(It(r)||!isNaN(r)&&!po(t,r))return e[r];if(po(t,r))return t[r]}}function wF(e){return je(e)}var eS=Xe();function TF(e){e=je(e);var t=e.type,r="";t||Pr(r);var a=t.split(":");a.length!==2&&Pr(r);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),e.__isBuiltIn=n,eS.set(t,e)}function SF(e,t,r){var a=Er(e),n=a.length,i="";n||Pr(i);for(var s=0,o=n;s<o;s++){var f=a[s];t=EF(f,t),s!==o-1&&(t.length=Math.max(t.length,1))}return t}function EF(e,t,r,a){var n="";t.length||Pr(n),Re(e)||Pr(n);var i=e.type,s=eS.get(i);s||Pr(n);var o=$e(t,function(l){return mF(l,s)}),f=Er(s.transform({upstream:o[0],upstreamList:o,config:je(e.config)}));return $e(f,function(l,u){var c="";Re(l)||Pr(c),l.data||Pr(c);var h=KT(l.data);Vp(h)||Pr(c);var d,v=t[0];if(v&&u===0&&!l.dimensions){var p=v.startIndex;p&&(l.data=v.data.slice(0,p).concat(l.data)),d={seriesLayoutBy:mn,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:mn,sourceHeader:0,dimensions:l.dimensions};return nv(l.data,d,null)})}function Vp(e){return e===Nr||e===en}var mc="undefined",CF=typeof Uint32Array===mc?Array:Uint32Array,AF=typeof Uint16Array===mc?Array:Uint16Array,tS=typeof Int32Array===mc?Array:Int32Array,am=typeof Float64Array===mc?Array:Float64Array,rS={float:am,int:tS,ordinal:Array,number:Array,time:am},Lh;function Ps(e){return e>65535?CF:AF}function Ls(){return[1/0,-1/0]}function DF(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nm(e,t,r,a,n){var i=rS[r||"float"];if(n){var s=e[t],o=s&&s.length;if(o!==a){for(var f=new i(a),l=0;l<o;l++)f[l]=s[l];e[t]=f}}else e[t]=new i(a)}var iv=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Xe()}return e.prototype.initData=function(t,r,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Lh[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],ZT(n),this._dimensions=$e(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===r)return i}else i=n.length;return n[i]={type:r},a.set(t,i),this._chunks[i]=new rS[r||"float"](this._rawCount),this._rawExtent[i]=Ls(),i},e.prototype.collectOrdinalMeta=function(t,r){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,s=n.ordinalOffset||0,o=a.length;s===0&&(i[t]=Ls());for(var f=i[t],l=s;l<o;l++){var u=a[l]=r.parseAndCollect(a[l]);isNaN(u)||(f[0]=Math.min(u,f[0]),f[1]=Math.max(u,f[1]))}n.ordinalMeta=r,n.ordinalOffset=o,n.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],a=r.ordinalMeta;return a},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,a=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},e.prototype.appendValues=function(t,r){for(var a=this._chunks,n=this._dimensions,i=n.length,s=this._rawExtent,o=this.count(),f=o+Math.max(t.length,r||0),l=0;l<i;l++){var u=n[l];nm(a,l,u.type,f,!0)}for(var c=[],h=o;h<f;h++)for(var d=h-o,v=0;v<i;v++){var u=n[v],p=Lh.arrayRows.call(this,t[d]||c,u.property,d,v);a[v][h]=p;var g=s[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=f,{start:o,end:f}},e.prototype._initDataFromProvider=function(t,r,a){for(var n=this._provider,i=this._chunks,s=this._dimensions,o=s.length,f=this._rawExtent,l=$e(s,function(x){return x.property}),u=0;u<o;u++){var c=s[u];f[u]||(f[u]=Ls()),nm(i,u,c.type,r,a)}if(n.fillStorage)n.fillStorage(t,r,i,f);else for(var h=[],d=t;d<r;d++){h=n.getItem(d,h);for(var v=0;v<o;v++){var p=i[v],g=this._dimValueGetter(h,l[v],d,v);p[d]=g;var m=f[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var a=[],n=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,s=n.length;i<s;i++)a.push(this.get(n[i],r));return a},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var a=this._chunks[t];return a?a[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],a=0;if(r)for(var n=0,i=this.count();n<i;n++){var s=this.get(t,n);isNaN(s)||(a+=s)}return a},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var a=r.sort(function(i,s){return i-s}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,a=r[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var s=(n+i)/2|0;if(r[s]<t)n=s+1;else if(r[s]>t)i=s-1;else return s}return-1},e.prototype.indicesOfNearest=function(t,r,a){var n=this._chunks,i=n[t],s=[];if(!i)return s;a==null&&(a=1/0);for(var o=1/0,f=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=r-i[h],v=Math.abs(d);v<=a&&((v<o||v===o&&d>=0&&f<0)&&(o=v,f=d,l=0),d===f&&(s[l++]=u))}return s.length=l,s},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var a=r.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=r[i]}else t=new a(r.buffer,0,n)}else{var a=Ps(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Ps(a._rawCount),s=new i(n),o=[],f=t.length,l=0,u=t[0],c=a._chunks,h=0;h<n;h++){var d=void 0,v=a.getRawIndex(h);if(f===0)d=r(h);else if(f===1){var p=c[u][v];d=r(p,h)}else{for(var g=0;g<f;g++)o[g]=c[t[g]][v];o[g]=h,d=r.apply(null,o)}d&&(s[l++]=v)}return l<n&&(a._indices=s),a._count=l,a._extent=[],a._updateGetRawIdx(),a},e.prototype.selectRange=function(t){var r=this.clone(),a=r._count;if(!a)return this;var n=at(t),i=n.length;if(!i)return this;var s=r.count(),o=Ps(r._rawCount),f=new o(s),l=0,u=n[0],c=t[u][0],h=t[u][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(i===1){for(var g=d[n[0]],m=0;m<a;m++){var x=g[m];(x>=c&&x<=h||isNaN(x))&&(f[l++]=p),p++}v=!0}else if(i===2){for(var g=d[n[0]],_=d[n[1]],y=t[n[1]][0],F=t[n[1]][1],m=0;m<a;m++){var x=g[m],k=_[m];(x>=c&&x<=h||isNaN(x))&&(k>=y&&k<=F||isNaN(k))&&(f[l++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m<s;m++){var E=r.getRawIndex(m),x=d[n[0]][E];(x>=c&&x<=h||isNaN(x))&&(f[l++]=E)}else for(var m=0;m<s;m++){for(var C=!0,E=r.getRawIndex(m),T=0;T<i;T++){var b=n[T],x=d[b][E];(x<t[b][0]||x>t[b][1])&&(C=!1)}C&&(f[l++]=r.getRawIndex(m))}return l<s&&(r._indices=f),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var a=this.clone(t);return this._updateDims(a,t,r),a},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,a){for(var n=t._chunks,i=[],s=r.length,o=t.count(),f=[],l=t._rawExtent,u=0;u<r.length;u++)l[r[u]]=Ls();for(var c=0;c<o;c++){for(var h=t.getRawIndex(c),d=0;d<s;d++)f[d]=n[r[d]][h];f[s]=c;var v=a&&a.apply(null,f);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var u=0;u<v.length;u++){var p=r[u],g=v[u],m=l[p],x=n[p];x&&(x[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var a=this.clone([t],!0),n=a._chunks,i=n[t],s=this.count(),o=0,f=Math.floor(1/r),l=this.getRawIndex(0),u,c,h,d=new(Ps(this._rawCount))(Math.min((Math.ceil(s/f)+2)*2,s));d[o++]=l;for(var v=1;v<s-1;v+=f){for(var p=Math.min(v+f,s-1),g=Math.min(v+f*2,s),m=(g+p)/2,x=0,_=p;_<g;_++){var y=this.getRawIndex(_),F=i[y];isNaN(F)||(x+=F)}x/=g-p;var k=v,E=Math.min(v+f,s),C=v-1,T=i[l];u=-1,h=k;for(var b=-1,M=0,_=k;_<E;_++){var y=this.getRawIndex(_),F=i[y];if(isNaN(F)){M++,b<0&&(b=y);continue}c=Math.abs((C-m)*(F-T)-(C-_)*(x-T)),c>u&&(u=c,h=y)}M>0&&M<E-k&&(d[o++]=Math.min(b,h),h=Math.max(b,h)),d[o++]=h,l=h}return d[o++]=this.getRawIndex(s-1),a._count=o,a._indices=d,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(t,r){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/r),s=n[t],o=this.count(),f=new(Ps(this._rawCount))(Math.ceil(o/i)*2),l=0,u=0;u<o;u+=i){var c=u,h=s[this.getRawIndex(c)],d=u,v=s[this.getRawIndex(d)],p=i;u+i>o&&(p=o-u);for(var g=0;g<p;g++){var m=this.getRawIndex(u+g),x=s[m];x<h&&(h=x,c=u+g),x>v&&(v=x,d=u+g)}var _=this.getRawIndex(c),y=this.getRawIndex(d);c<d?(f[l++]=_,f[l++]=y):(f[l++]=y,f[l++]=_)}return a._count=l,a._indices=f,a._updateGetRawIdx(),a},e.prototype.downSample=function(t,r,a,n){for(var i=this.clone([t],!0),s=i._chunks,o=[],f=Math.floor(1/r),l=s[t],u=this.count(),c=i._rawExtent[t]=Ls(),h=new(Ps(this._rawCount))(Math.ceil(u/f)),d=0,v=0;v<u;v+=f){f>u-v&&(f=u-v,o.length=f);for(var p=0;p<f;p++){var g=this.getRawIndex(v+p);o[p]=l[g]}var m=a(o),x=this.getRawIndex(Math.min(v+n(o,m)||0,u-1));l[x]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=x}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var a=t.length,n=this._chunks,i=0,s=this.count();i<s;i++){var o=this.getRawIndex(i);switch(a){case 0:r(i);break;case 1:r(n[t[0]][o],i);break;case 2:r(n[t[0]][o],n[t[1]][o],i);break;default:for(var f=0,l=[];f<a;f++)l[f]=n[t[f]][o];l[f]=i,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],a=Ls();if(!r)return a;var n=this.count(),i=!this._indices,s;if(i)return this._rawExtent[t].slice();if(s=this._extent[t],s)return s.slice();s=a;for(var o=s[0],f=s[1],l=0;l<n;l++){var u=this.getRawIndex(l),c=r[u];c<o&&(o=c),c>f&&(f=c)}return s=[o,f],this._extent[t]=s,s},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][r]);return a},e.prototype.clone=function(t,r){var a=new e,n=this._chunks,i=t&&_o(t,function(o,f){return o[f]=!0,o},{});if(i)for(var s=0;s<n.length;s++)a._chunks[s]=i[s]?DF(n[s]):n[s];else a._chunks=n;return this._copyCommonProps(a),r||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=je(this._extent),t._rawExtent=je(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var a=this._indices.length;r=new t(a);for(var n=0;n<a;n++)r[n]=this._indices[n]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,a,n,i){return $0(r[i],this._dimensions[i])}Lh={arrayRows:t,objectRows:function(r,a,n,i){return $0(r[a],this._dimensions[i])},keyedColumns:t,original:function(r,a,n,i){var s=r&&(r.value==null?r:r.value);return $0(s instanceof Array?s[i]:s,this._dimensions[i])},typedArray:function(r,a,n,i){return r[i]}}})(),e})(),kF=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),a=!!r.length,n,i;if(u0(t)){var s=t,o=void 0,f=void 0,l=void 0;if(a){var u=r[0];u.prepareSource(),l=u.getSource(),o=l.data,f=l.sourceFormat,i=[u._getVersionSign()]}else o=s.get("data",!0),f=Br(o)?jn:ha,i=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=ze(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=ze(c.sourceHeader,h.sourceHeader),p=ze(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;n=g?[nv(o,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},f)]:[]}else{var m=t;if(a){var x=this._applyTransform(r);n=x.sourceList,i=x.upstreamSignList}else{var _=m.get("source",!0);n=[nv(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,a=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&im(i)}var s,o=[],f=[];return X(t,function(l){l.prepareSource();var u=l.getSource(n||0),c="";n!=null&&!u&&im(c),o.push(u),f.push(l._getVersionSign())}),a?s=SF(a,o,{datasetIndex:r.componentIndex}):n!=null&&(s=[sF(o[0])]),{sourceList:s,upstreamSignList:f}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var a=t[r];if(a._isDirty()||this._upstreamSignList[r]!==a._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,a){var n=0,i=this._storeList,s=i[n];s||(s=i[n]={});var o=s[a];if(!o){var f=this._getUpstreamSourceManagers()[0];u0(this._sourceHost)&&f?o=f._innerGetDataStore(t,r,a):(o=new iv,o.initData(new jT(r,t.length),t)),s[a]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(u0(t)){var r=WT(t);return r?[r.getSourceManager()]:[]}else return $e(P8(t),function(a){return a.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,a,n;if(u0(t))r=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:a,dimensions:n}},e})();function u0(e){return e.mainType==="series"}function im(e){throw new Error(e)}var bF="line-height:1";function aS(e){var t=e.lineHeight;return t==null?bF:"line-height:"+xr(t+"")+"px"}function nS(e,t){var r=e.color||"#6e7079",a=e.fontSize||12,n=e.fontWeight||"400",i=e.color||"#464646",s=e.fontSize||14,o=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+xr(a+"")+"px;color:"+xr(r)+";font-weight:"+xr(n+""),valueStyle:"font-size:"+xr(s+"")+"px;color:"+xr(i)+";font-weight:"+xr(o+"")}:{nameStyle:{fontSize:a,fill:r,fontWeight:n},valueStyle:{fontSize:s,fill:i,fontWeight:o}}}var FF=[0,10,20,30],IF=["",`
`,`
`,`
`];function fs(e,t){return t.type=e,t}function sv(e){return e.type==="section"}function iS(e){return sv(e)?MF:RF}function sS(e){if(sv(e)){var t=0,r=e.blocks.length,a=r>1||r>0&&!e.noHeader;return X(e.blocks,function(n){var i=sS(n);i>=t&&(t=i+ +(a&&(!i||sv(n)&&!n.noHeader)))}),t}return 0}function MF(e,t,r,a){var n=t.noHeader,i=PF(sS(t)),s=[],o=t.blocks||[];Yr(!o||Ie(o)),o=o||[];var f=e.orderMode;if(t.sortBlocks&&f){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(po(l,f)){var u=new pF(l[f],null);o.sort(function(p,g){return u.evaluate(p.sortParam,g.sortParam)})}else f==="seriesDesc"&&o.reverse()}X(o,function(p,g){var m=t.valueFormatter,x=iS(p)(m?Se(Se({},e),{valueFormatter:m}):e,p,g>0?i.html:0,a);x!=null&&s.push(x)});var c=e.renderMode==="richText"?s.join(i.richText):ov(a,s.join(""),n?r:i.html);if(n)return c;var h=av(t.header,"ordinal",e.useUTC),d=nS(a,e.renderMode).nameStyle,v=aS(a);return e.renderMode==="richText"?oS(e,h,d)+i.richText+c:ov(a,'<div style="'+d+";"+v+';">'+xr(h)+"</div>"+c,r)}function RF(e,t,r,a){var n=e.renderMode,i=t.noName,s=t.noValue,o=!t.markerType,f=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(y){return y=Ie(y)?y:[y],$e(y,function(F,k){return av(F,Ie(d)?d[k]:d,l)})};if(!(i&&s)){var c=o?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),h=i?"":av(f,"ordinal",l),d=t.valueType,v=s?[]:u(t.value,t.dataIndex),p=!o||!i,g=!o&&i,m=nS(a,n),x=m.nameStyle,_=m.valueStyle;return n==="richText"?(o?"":c)+(i?"":oS(e,h,x))+(s?"":BF(e,v,p,g,_)):ov(a,(o?"":c)+(i?"":LF(h,!o,x))+(s?"":OF(v,p,g,_)),r)}}function sm(e,t,r,a,n,i){if(e){var s=iS(e),o={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(o,e,0,i)}}function PF(e){return{html:FF[e],richText:IF[e]}}function ov(e,t,r){var a='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",i=aS(e);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function LF(e,t,r){var a=t?"margin-left:2px":"";return'<span style="'+r+";"+a+'">'+xr(e)+"</span>"}function OF(e,t,r,a){var n=r?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return e=Ie(e)?e:[e],'<span style="'+i+";"+a+'">'+$e(e,function(s){return xr(s)}).join("&nbsp;&nbsp;")+"</span>"}function oS(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function BF(e,t,r,a,n){var i=[n],s=a?10:20;return r&&i.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ie(t)?t.join(" "):t,i)}function NF(e,t){var r=e.getData().getItemVisual(t,"style"),a=r[e.visualDrawType];return tl(a)}function fS(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Oh=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Hw()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,a){var n=a==="richText"?this._generateStyleName():null,i=A8({color:r,type:t,renderMode:a,markerId:n});return Me(i)?i:(this.richTextStyles[n]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var a={};Ie(r)?X(r,function(i){return Se(a,i)}):Se(a,r);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},e})();function UF(e){var t=e.series,r=e.dataIndex,a=e.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),s=i.length,o=t.getRawValue(r),f=Ie(o),l=NF(t,r),u,c,h,d;if(s>1||f&&!s){var v=HF(o,t,r,i,l);u=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(s){var p=n.getDimensionInfo(i[0]);d=u=Tu(n,r,i[0]),c=p.type}else d=u=f?o[0]:o;var g=Gw(t),m=g&&t.name||"",x=n.getName(r),_=a?m:x;return fs("section",{header:m,noHeader:a||!g,sortParam:d,blocks:[fs("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ga(_),value:u,valueType:c,dataIndex:r})].concat(h||[])})}function HF(e,t,r,a,n){var i=t.getData(),s=_o(e,function(c,h,d){var v=i.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],f=[],l=[];a.length?X(a,function(c){u(Tu(i,r,c),c)}):X(e,u);function u(c,h){var d=i.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(s?l.push(fs("nameValue",{markerType:"subItem",markerColor:n,name:d.displayName,value:c,valueType:d.type})):(o.push(c),f.push(d.type)))}return{inlineValues:o,inlineValueTypes:f,blocks:l}}var Rn=Xt();function c0(e,t){return e.getName(t)||e.getId(t)}var VF="__universalTransitionEnabled",ni=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,a,n){this.seriesIndex=this.componentIndex,this.dataTask=kf({count:WF,reset:GF}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var i=Rn(this).sourceManager=new kF(this);i.prepareSource();var s=this.getInitialData(r,n);fm(s,this),this.dataTask.context.data=s,Rn(this).dataBeforeProcessed=s,om(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(r,a){var n=yu(this),i=n?NT(r):{},s=this.subType;yt.hasClass(s)&&(s+="Series"),Ot(r,a.getTheme().get(this.subType)),Ot(r,this.getDefaultOption()),$g(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&wu(r,i,n)},t.prototype.mergeOption=function(r,a){r=Ot(this.option,r,!0),this.fillDataTextStyle(r.data);var n=yu(this);n&&wu(this.option,r,n);var i=Rn(this).sourceManager;i.dirty(),i.prepareSource();var s=this.getInitialData(r,a);fm(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Rn(this).dataBeforeProcessed=s,om(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(r){if(r&&!Br(r))for(var a=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&$g(r[n],"label",a)},t.prototype.getInitialData=function(r,a){},t.prototype.appendData=function(r){var a=this.getRawData();a.appendData(r.data)},t.prototype.getData=function(r){var a=fv(this);if(a){var n=a.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Rn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var a=fv(this);if(a){var n=a.context;n.outputData=r,a!==this.dataTask&&(n.data=r)}Rn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Xe(r)},t.prototype.getSourceManager=function(){return Rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,a,n){return UF({series:this,dataIndex:r,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ne.node&&!(r&&r.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,a,n){var i=this.ecModel,s=Op.prototype.getColorFromPalette.call(this,r,a,n);return s||(s=i.getColorFromPalette(r,a,n)),s},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,a){this._innerSelect(this.getData(a),r)},t.prototype.unselect=function(r,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,s=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<r.length;o++){var f=r[o],l=c0(s,f);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,a){for(var n=[],i=0;i<r.length;i++)n[0]=r[i],this.isSelected(r[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,a=at(r),n=[],i=0;i<a.length;i++){var s=r[a[i]];s>=0&&n.push(s)}return n},t.prototype.isSelected=function(r,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[c0(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[VF])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,a){var n,i,s=this.option,o=s.selectedMode,f=a.length;if(!(!o||!f)){if(o==="series")s.selectedMap="all";else if(o==="multiple"){Re(s.selectedMap)||(s.selectedMap={});for(var l=s.selectedMap,u=0;u<f;u++){var c=a[u],h=c0(r,c);l[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(o==="single"||o===!0){var d=a[f-1],h=c0(r,d);s.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(d),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var a=[];r.hasItemOption&&r.each(function(n){var i=r.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(r,a)}},t.registerClass=function(r){return yt.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(yt);Fa(ni,dF);Fa(ni,Op);Yw(ni,yt);function om(e){var t=e.name;Gw(e)||(e.name=zF(e)||t)}function zF(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),a=[];return X(r,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function WF(e){return e.model.getRawData().count()}function GF(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$F}function $F(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function fm(e,t){X(eD(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Sr(XF,t))})}function XF(e,t){var r=fv(e);return r&&r.setOutputEnd((t||this).count()),t}function fv(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var a=r.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(e.uid))}return a}}var ii=(function(){function e(){this.group=new Sn,this.uid=vc("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,a,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,a,n){},e.prototype.updateLayout=function(t,r,a,n){},e.prototype.updateVisual=function(t,r,a,n){},e.prototype.toggleBlurSeries=function(t,r,a){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();dp(ii);vp(ii);function YF(){var e=Xt();return function(t){var r=e(t),a=t.pipelineContext,n=!!r.large,i=!!r.progressiveRender,s=r.large=!!(a&&a.large),o=r.progressiveRender=!!(a&&a.progressiveRender);return(n!==s||i!==o)&&"reset"}}var lS=Xt(),KF=YF(),qn=(function(){function e(){this.group=new Sn,this.uid=vc("viewChart"),this.renderTask=kf({plan:ZF,reset:jF}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,a,n){},e.prototype.highlight=function(t,r,a,n){var i=t.getData(n&&n.dataType);i&&um(i,n,"emphasis")},e.prototype.downplay=function(t,r,a,n){var i=t.getData(n&&n.dataType);i&&um(i,n,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,a,n){this.render(t,r,a,n)},e.prototype.updateLayout=function(t,r,a,n){this.render(t,r,a,n)},e.prototype.updateVisual=function(t,r,a,n){this.render(t,r,a,n)},e.prototype.eachRendered=function(t){kT(this.group,t)},e.markUpdateMethod=function(t,r){lS(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function lm(e,t,r){e&&Qd(e)&&(t==="emphasis"?vu:pu)(e,r)}function um(e,t,r){var a=Cl(e,t),n=t&&t.highlightKey!=null?sb(t.highlightKey):null;a!=null?X(Er(a),function(i){lm(e.getItemGraphicEl(i),r,n)}):e.eachItemGraphicEl(function(i){lm(i,r,n)})}dp(qn);vp(qn);function ZF(e){return KF(e.model)}function jF(e){var t=e.model,r=e.ecModel,a=e.api,n=e.payload,i=t.pipelineContext.progressiveRender,s=e.view,o=n&&lS(n).updateMethod,f=i?"incrementalPrepareRender":o&&s[o]?o:"render";return f!=="render"&&s[f](t,r,a,n),qF[f]}var qF={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Su="\0__throttleOriginMethod",cm="\0__throttleRate",hm="\0__throttleType";function uS(e,t,r){var a,n=0,i=0,s=null,o,f,l,u;t=t||0;function c(){i=new Date().getTime(),s=null,e.apply(f,l||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];a=new Date().getTime(),f=this,l=d;var p=u||t,g=u||r;u=null,o=a-(g?n:i)-p,clearTimeout(s),g?s=setTimeout(c,p):o>=0?c():s=setTimeout(c,-o),n=a};return h.clear=function(){s&&(clearTimeout(s),s=null)},h.debounceNextCall=function(d){u=d},h}function cS(e,t,r,a){var n=e[t];if(n){var i=n[Su]||n,s=n[hm],o=n[cm];if(o!==r||s!==a){if(r==null||!a)return e[t]=i;n=e[t]=uS(i,r,a==="debounce"),n[Su]=i,n[hm]=a,n[cm]=r}return n}}function lv(e,t){var r=e[t];r&&r[Su]&&(r.clear&&r.clear(),e[t]=r[Su])}var dm=Xt(),vm={itemStyle:Jf(FT,!0),lineStyle:Jf(bT,!0)},JF={lineStyle:"stroke",itemStyle:"fill"};function hS(e,t){var r=e.visualStyleMapper||vm[t];return r||(console.warn("Unknown style type '"+t+"'."),vm.itemStyle)}function dS(e,t){var r=e.visualDrawType||JF[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var QF={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=e.getModel(a),i=hS(e,a),s=i(n),o=n.getShallow("decal");o&&(r.setVisual("decal",o),o.dirty=!0);var f=dS(e,a),l=s[f],u=ft(l)?l:null,c=s.fill==="auto"||s.stroke==="auto";if(!s[f]||u||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[f]||(s[f]=h,r.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ft(s.fill)?h:s.fill,s.stroke=s.stroke==="auto"||ft(s.stroke)?h:s.stroke}if(r.setVisual("style",s),r.setVisual("drawType",f),!t.isSeriesFiltered(e)&&u)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=e.getDataParams(v),g=Se({},s);g[f]=u(p),d.setItemVisual(v,"style",g)}}}},zo=new Dt,e6={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=hS(e,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(s,o){var f=s.getRawDataItem(o);if(f&&f[a]){zo.option=f[a];var l=n(zo),u=s.ensureUniqueItemVisual(o,"style");Se(u,l),zo.option.decal&&(s.setItemVisual(o,"decal",zo.option.decal),zo.option.decal.dirty=!0),i in l&&s.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},t6={performRawSeries:!0,overallReset:function(e){var t=Xe();e.eachSeries(function(r){var a=r.getColorBy();if(!r.isColorBySeries()){var n=r.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),dm(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var a=r.getRawData(),n={},i=r.getData(),s=dm(r).scope,o=r.visualStyleAccessPath||"itemStyle",f=dS(r,o);i.each(function(l){var u=i.getRawIndex(l);n[u]=l}),a.each(function(l){var u=n[l],c=i.getItemVisual(u,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(u,"style"),d=a.getName(l)||l+"",v=a.count();h[f]=r.getColorFromPalette(d,s,v)}})}})}},h0=Math.PI;function r6(e,t){t=t||{},Mt(t,{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 r=new Sn,a=new Xr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(a);var n=new qa({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Xr({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var s;return t.showSpinner&&(s=new hc({shape:{startAngle:-h0/2,endAngle:-h0/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:h0*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:h0*3/2}).delay(300).start("circularInOut"),r.add(s)),r.resize=function(){var o=n.getBoundingRect().width,f=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-f*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:f),u=e.getHeight()/2;t.showSpinner&&s.setShape({cx:l,cy:u}),i.setShape({x:l-f,y:u-f,width:f*2,height:f*2}),a.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var vS=(function(){function e(t,r,a,n){this._stageTaskMap=Xe(),this.ecInstance=t,this.api=r,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!r&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,s=i?a.step:null,o=n&&n.modDataCount,f=o!=null?Math.ceil(o/s):null;return{step:s,modBy:f,modDataCount:o}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),s=a.progressiveEnabled&&r.incrementalPrepareRender&&i>=a.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),f=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:s,modDataCount:f,large:o}},e.prototype.restorePipelines=function(t){var r=this,a=r._pipelineMap=Xe();t.eachSeries(function(n){var i=n.getProgressive(),s=n.uid;a.set(s,{id:s,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(n,n.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),a=this.api;X(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),s="";Yr(!(n.reset&&n.overallReset),s),n.reset&&this._createSeriesStageTask(n,i,r,a),n.overallReset&&this._createOverallStageTask(n,i,r,a)},this)},e.prototype.prepareView=function(t,r,a,n){var i=t.renderTask,s=i.context;s.model=r,s.ecModel=a,s.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,a){this._performStageTasks(this._visualHandlers,t,r,a)},e.prototype._performStageTasks=function(t,r,a,n){n=n||{};var i=!1,s=this;X(t,function(f,l){if(!(n.visualType&&n.visualType!==f.visualType)){var u=s._stageTaskMap.get(f.uid),c=u.seriesTaskMap,h=u.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(g){o(n,g)&&(g.dirty(),d=!0)}),d&&h.dirty(),s.updatePayload(h,a);var p=s.getPerformArgs(h,n.block);v.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){o(n,g)&&g.dirty();var x=s.getPerformArgs(g,n.block);x.skip=!f.performRawSeries&&r.isSeriesFiltered(g.context.model),s.updatePayload(g,a),g.perform(x)&&(i=!0)})}});function o(f,l){return f.setDirty&&(!f.dirtyMap||f.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(a){r=a.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,a,n){var i=this,s=r.seriesTaskMap,o=r.seriesTaskMap=Xe(),f=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(u):f?a.eachRawSeriesByType(f,u):l&&l(a,n).each(u);function u(c){var h=c.uid,d=o.set(h,s&&s.get(h)||kf({plan:o6,reset:f6,count:u6}));d.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,d)}},e.prototype._createOverallStageTask=function(t,r,a,n){var i=this,s=r.overallTask=r.overallTask||kf({reset:a6});s.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var o=s.agentStubMap,f=s.agentStubMap=Xe(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";Yr(!t.createOnAllSeries,d),l?a.eachRawSeriesByType(l,v):u?u(a,n).each(v):(c=!1,X(a.getSeries(),v));function v(p){var g=p.uid,m=f.set(g,o&&o.get(g)||(h=!0,kf({reset:n6,onDirty:s6})));m.context={model:p,overallProgress:c},m.agent=s,m.__block=c,i._pipe(p,m)}h&&s.dirty()},e.prototype._pipe=function(t,r){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return ft(t)&&(t={overallReset:t,seriesType:c6(t)}),t.uid=vc("stageHandler"),r&&(t.visualType=r),t},e})();function a6(e){e.overallReset(e.ecModel,e.api,e.payload)}function n6(e){return e.overallProgress&&i6}function i6(){this.agent.dirty(),this.getDownstream().dirty()}function s6(){this.agent&&this.agent.dirty()}function o6(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function f6(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Er(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$e(t,function(r,a){return pS(a)}):l6}var l6=pS(0);function pS(e){return function(t,r){var a=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function u6(e){return e.data.count()}function c6(e){Eu=null;try{e(al,gS)}catch{}return Eu}var al={},gS={},Eu;mS(al,Bp);mS(gS,$T);al.eachSeriesByType=al.eachRawSeriesByType=function(e){Eu=e};al.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Eu=e.subType)};function mS(e,t){for(var r in t.prototype)e[r]=lr}var pm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const h6={color:pm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],pm]};var rr="#B9B8CE",gm="#100C2A",d0=function(){return{axisLine:{lineStyle:{color:rr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},mm=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],xS={darkMode:!0,color:mm,backgroundColor:gm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:rr},pageTextStyle:{color:rr}},textStyle:{color:rr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:rr}},dataZoom:{borderColor:"#71708A",textStyle:{color:rr},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:rr}},timeline:{lineStyle:{color:rr},label:{color:rr},controlStyle:{color:rr,borderColor:rr}},calendar:{itemStyle:{color:gm},dayLabel:{color:rr},monthLabel:{color:rr},yearLabel:{color:rr}},timeAxis:d0(),logAxis:d0(),valueAxis:d0(),categoryAxis:d0(),line:{symbol:"circle"},graph:{color:mm},gauge:{title:{color:rr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:rr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};xS.categoryAxis.splitLine.show=!1;var d6=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},a={},n={};if(Me(t)){var i=$a(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var s=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};X(t,function(f,l){for(var u=!1,c=0;c<s.length;c++){var h=s[c],d=l.lastIndexOf(h);if(d>0&&d===l.length-h.length){var v=l.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=f,u=!0)}}o.hasOwnProperty(l)&&(a[l]=f,u=!0),u||(n[l]=f)})}return{cptQuery:r,dataQuery:a,otherQuery:n}},e.prototype.filter=function(t,r){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,s=a.model,o=a.view;if(!s||!o)return!0;var f=r.cptQuery,l=r.dataQuery;return u(f,s,"mainType")&&u(f,s,"subType")&&u(f,s,"index","componentIndex")&&u(f,s,"name")&&u(f,s,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,r.otherQuery,n,i));function u(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),uv=["symbol","symbolSize","symbolRotate","symbolOffset"],xm=uv.concat(["symbolKeepAspect"]),v6={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var a={},n={},i=!1,s=0;s<uv.length;s++){var o=uv[s],f=e.get(o);ft(f)?(i=!0,n[o]=f):a[o]=f}if(a.symbol=a.symbol||e.defaultSymbol,r.setVisual(Se({legendIcon:e.legendIcon||a.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},a)),t.isSeriesFiltered(e))return;var l=at(n);function u(c,h){for(var d=e.getRawValue(h),v=e.getDataParams(h),p=0;p<l.length;p++){var g=l[p];c.setItemVisual(h,g,n[g](d,v))}}return{dataEach:i?u:null}}},p6={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function a(n,i){for(var s=n.getItemModel(i),o=0;o<xm.length;o++){var f=xm[o],l=s.getShallow(f,!0);l!=null&&n.setItemVisual(i,f,l)}}return{dataEach:r.hasItemOption?a:null}}};function g6(e,t,r){switch(r){case"color":var a=e.getItemVisual(t,"style");return a[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function m6(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Os(e,t,r,a,n){var i=e+t;r.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(s){for(var o=s.seriesIndex,f=s.option.selectedMap,l=n.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===o){var c=s.getData(),h=Cl(c,n.fromActionPayload);r.trigger(i,{type:i,seriesId:s.id,name:Ie(h)?c.getName(h[0]):c.getName(h),selected:Me(f)?f:Se({},f)})}})}function x6(e,t,r){e.on("selectchanged",function(a){var n=r.getModel();a.isFromClick?(Os("map","selectchanged",t,n,a),Os("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Os("map","selected",t,n,a),Os("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Os("map","unselected",t,n,a),Os("pie","unselected",t,n,a))})}function nf(e,t,r){for(var a;e&&!(t(e)&&(a=e,r));)e=e.__hostTarget||e.parent;return a}var _6=Math.round(Math.random()*9),y6=typeof Object.defineProperty=="function",w6=(function(){function e(){this._id="__ec_inner_"+_6++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var a=this._guard(t);return y6?Object.defineProperty(a,this._id,{value:r,enumerable:!1,configurable:!0}):a[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),T6=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,a=t.cy,n=t.width/2,i=t.height/2;e.moveTo(r,a-i),e.lineTo(r+n,a+i),e.lineTo(r-n,a+i),e.closePath()}}),S6=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,a=t.cy,n=t.width/2,i=t.height/2;e.moveTo(r,a-i),e.lineTo(r+n,a),e.lineTo(r,a+i),e.lineTo(r-n,a),e.closePath()}}),E6=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),s=n/2,o=s*s/(i-s),f=a-i+s+o,l=Math.asin(o/s),u=Math.cos(l)*s,c=Math.sin(l),h=Math.cos(l),d=s*.6,v=s*.7;e.moveTo(r-u,f+o),e.arc(r,f,s,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+u-c*d,f+o+h*d,r,a-v,r,a),e.bezierCurveTo(r,a-v,r-u+c*d,f+o+h*d,r-u,f+o),e.closePath()}}),C6=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,a=t.width,n=t.x,i=t.y,s=a/3*2;e.moveTo(n,i),e.lineTo(n+s,i+r),e.lineTo(n,i+r/4*3),e.lineTo(n-s,i+r),e.lineTo(n,i),e.closePath()}}),A6={line:wo,rect:Xr,roundRect:Xr,square:Xr,circle:cc,diamond:S6,pin:E6,arrow:C6,triangle:T6},D6={line:function(e,t,r,a,n){n.x1=e,n.y1=t+a/2,n.x2=e+r,n.y2=t+a/2},rect:function(e,t,r,a,n){n.x=e,n.y=t,n.width=r,n.height=a},roundRect:function(e,t,r,a,n){n.x=e,n.y=t,n.width=r,n.height=a,n.r=Math.min(r,a)/4},square:function(e,t,r,a,n){var i=Math.min(r,a);n.x=e,n.y=t,n.width=i,n.height=i},circle:function(e,t,r,a,n){n.cx=e+r/2,n.cy=t+a/2,n.r=Math.min(r,a)/2},diamond:function(e,t,r,a,n){n.cx=e+r/2,n.cy=t+a/2,n.width=r,n.height=a},pin:function(e,t,r,a,n){n.x=e+r/2,n.y=t+a/2,n.width=r,n.height=a},arrow:function(e,t,r,a,n){n.x=e+r/2,n.y=t+a/2,n.width=r,n.height=a},triangle:function(e,t,r,a,n){n.cx=e+r/2,n.cy=t+a/2,n.width=r,n.height=a}},cv={};X(A6,function(e,t){cv[t]=new e});var k6=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var a=Lw(e,t,r),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=r.y+r.height*.4),a},buildPath:function(e,t,r){var a=t.symbolType;if(a!=="none"){var n=cv[a];n||(a="rect",n=cv[a]),D6[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function b6(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function _S(e,t,r,a,n,i,s){var o=e.indexOf("empty")===0;o&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var f;return e.indexOf("image://")===0?f=ST(e.slice(8),new pt(t,r,a,n),s?"center":"cover"):e.indexOf("path://")===0?f=bp(e.slice(7),{},new pt(t,r,a,n),s?"center":"cover"):f=new k6({shape:{symbolType:e,x:t,y:r,width:a,height:n}}),f.__isEmptyBrush=o,f.setColor=b6,i&&f.setColor(i),f}function F6(e,t){if(e!=null)return Ie(e)||(e=[e,e]),[za(e[0],t[0])||0,za(ze(e[1],e[0]),t[1])||0]}function Ki(e){return isFinite(e)}function I6(e,t,r){var a=t.x==null?0:t.x,n=t.x2==null?1:t.x2,i=t.y==null?0:t.y,s=t.y2==null?0:t.y2;t.global||(a=a*r.width+r.x,n=n*r.width+r.x,i=i*r.height+r.y,s=s*r.height+r.y),a=Ki(a)?a:0,n=Ki(n)?n:1,i=Ki(i)?i:0,s=Ki(s)?s:0;var o=e.createLinearGradient(a,i,n,s);return o}function M6(e,t,r){var a=r.width,n=r.height,i=Math.min(a,n),s=t.x==null?.5:t.x,o=t.y==null?.5:t.y,f=t.r==null?.5:t.r;t.global||(s=s*a+r.x,o=o*n+r.y,f=f*i),s=Ki(s)?s:.5,o=Ki(o)?o:.5,f=f>=0&&Ki(f)?f:.5;var l=e.createRadialGradient(s,o,0,s,o,f);return l}function hv(e,t,r){for(var a=t.type==="radial"?M6(e,t,r):I6(e,t,r),n=t.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function R6(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function v0(e){return parseInt(e,10)}function js(e,t,r){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(r[a]!=null&&r[a]!=="auto")return parseFloat(r[a]);var o=document.defaultView.getComputedStyle(e);return(e[n]||v0(o[a])||v0(e.style[a]))-(v0(o[i])||0)-(v0(o[s])||0)|0}function P6(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:It(e)?[e]:Ie(e)?e:null}function zp(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&P6(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=$e(r,function(i){return i/n}),a/=n)}return[r,a]}var L6=new os(!0);function Cu(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function _m(e){return typeof e=="string"&&e!=="none"}function Au(e){var t=e.fill;return t!=null&&t!=="none"}function ym(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function wm(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function dv(e,t,r){var a=pp(t.image,t.__image,r);if(fc(a)){var n=e.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*P0),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function O6(e,t,r,a){var n,i=Cu(r),s=Au(r),o=r.strokePercent,f=o<1,l=!t.path;(!t.silent||f)&&l&&t.createPathProxy();var u=t.path||L6,c=t.__dirty;if(!a){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,p=i&&!!d.colorStops,g=s&&!!h.image,m=i&&!!d.image,x=void 0,_=void 0,y=void 0,F=void 0,k=void 0;(v||p)&&(k=t.getBoundingRect()),v&&(x=c?hv(e,h,k):t.__canvasFillGradient,t.__canvasFillGradient=x),p&&(_=c?hv(e,d,k):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(y=c||!t.__canvasFillPattern?dv(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=y),m&&(F=c||!t.__canvasStrokePattern?dv(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=y),v?e.fillStyle=x:g&&(y?e.fillStyle=y:s=!1),p?e.strokeStyle=_:m&&(F?e.strokeStyle=F:i=!1)}var E=t.getGlobalScale();u.setScale(E[0],E[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(n=zp(t),C=n[0],T=n[1]);var b=!0;(l||c&zs)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),b=!1),u.reset(),t.buildPath(u,t.shape,a),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(e,f?o:1),C&&(e.setLineDash(C),e.lineDashOffset=T),a||(r.strokeFirst?(i&&wm(e,r),s&&ym(e,r)):(s&&ym(e,r),i&&wm(e,r))),C&&e.setLineDash([])}function B6(e,t,r){var a=t.__image=pp(r.image,t.__image,t,t.onload);if(!(!a||!fc(a))){var n=r.x||0,i=r.y||0,s=t.getWidth(),o=t.getHeight(),f=a.width/a.height;if(s==null&&o!=null?s=o*f:o==null&&s!=null?o=s/f:s==null&&o==null&&(s=a.width,o=a.height),r.sWidth&&r.sHeight){var l=r.sx||0,u=r.sy||0;e.drawImage(a,l,u,r.sWidth,r.sHeight,n,i,s,o)}else if(r.sx&&r.sy){var l=r.sx,u=r.sy,c=s-l,h=o-u;e.drawImage(a,l,u,c,h,n,i,s,o)}else e.drawImage(a,n,i,s,o)}}function N6(e,t,r){var a,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ri,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,s=void 0;e.setLineDash&&r.lineDash&&(a=zp(t),i=a[0],s=a[1]),i&&(e.setLineDash(i),e.lineDashOffset=s),r.strokeFirst?(Cu(r)&&e.strokeText(n,r.x,r.y),Au(r)&&e.fillText(n,r.x,r.y)):(Au(r)&&e.fillText(n,r.x,r.y),Cu(r)&&e.strokeText(n,r.x,r.y)),i&&e.setLineDash([])}}var Tm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yS(e,t,r,a,n){var i=!1;if(!a&&(r=r||{},t===r))return!1;if(a||t.opacity!==r.opacity){Lr(e,n),i=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?ts.opacity:s}(a||t.blend!==r.blend)&&(i||(Lr(e,n),i=!0),e.globalCompositeOperation=t.blend||ts.blend);for(var o=0;o<Tm.length;o++){var f=Tm[o];(a||t[f]!==r[f])&&(i||(Lr(e,n),i=!0),e[f]=e.dpr*(t[f]||0))}return(a||t.shadowColor!==r.shadowColor)&&(i||(Lr(e,n),i=!0),e.shadowColor=t.shadowColor||ts.shadowColor),i}function Em(e,t,r,a,n){var i=nl(t,n.inHover),s=a?null:r&&nl(r,n.inHover)||{};if(i===s)return!1;var o=yS(e,i,s,a,n);if((a||i.fill!==s.fill)&&(o||(Lr(e,n),o=!0),_m(i.fill)&&(e.fillStyle=i.fill)),(a||i.stroke!==s.stroke)&&(o||(Lr(e,n),o=!0),_m(i.stroke)&&(e.strokeStyle=i.stroke)),(a||i.opacity!==s.opacity)&&(o||(Lr(e,n),o=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var f=i.lineWidth,l=f/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(o||(Lr(e,n),o=!0),e.lineWidth=l)}for(var u=0;u<Sm.length;u++){var c=Sm[u],h=c[0];(a||i[h]!==s[h])&&(o||(Lr(e,n),o=!0),e[h]=i[h]||c[1])}return o}function U6(e,t,r,a,n){return yS(e,nl(t,n.inHover),r&&nl(r,n.inHover),a,n)}function wS(e,t){var r=t.transform,a=e.dpr||1;r?e.setTransform(a*r[0],a*r[1],a*r[2],a*r[3],a*r[4],a*r[5]):e.setTransform(a,0,0,a,0,0)}function H6(e,t,r){for(var a=!1,n=0;n<e.length;n++){var i=e[n];a=a||i.isZeroArea(),wS(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=a}function V6(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Cm=1,Am=2,Dm=3,km=4;function z6(e){var t=Au(e),r=Cu(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Lr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function nl(e,t){return t&&e.__hoverStyle||e.style}function TS(e,t){Zi(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zi(e,t,r,a){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~zr,t.__isRendered=!1;return}var i=t.__clipPaths,s=r.prevElClipPaths,o=!1,f=!1;if((!s||R6(i,s))&&(s&&s.length&&(Lr(e,r),e.restore(),f=o=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Lr(e,r),e.save(),H6(i,e,r),o=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(f=o=!0);var u=t instanceof gt&&t.autoBatch&&z6(t.style);o||V6(n,l.transform)?(Lr(e,r),wS(e,t)):u||Lr(e,r);var c=nl(t,r.inHover);t instanceof gt?(r.lastDrawType!==Cm&&(f=!0,r.lastDrawType=Cm),Em(e,t,l,f,r),(!u||!r.batchFill&&!r.batchStroke)&&e.beginPath(),O6(e,t,c,u),u&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof Qf?(r.lastDrawType!==Dm&&(f=!0,r.lastDrawType=Dm),Em(e,t,l,f,r),N6(e,t,c)):t instanceof An?(r.lastDrawType!==Am&&(f=!0,r.lastDrawType=Am),U6(e,t,l,f,r),B6(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==km&&(f=!0,r.lastDrawType=km),W6(e,t,r)),u&&a&&Lr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function W6(e,t,r){var a=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},s,o;for(s=t.getCursor(),o=a.length;s<o;s++){var f=a[s];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Zi(e,f,i,s===o-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),i.prevEl=f}for(var l=0,u=n.length;l<u;l++){var f=n[l];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Zi(e,f,i,l===u-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),i.prevEl=f}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Bh=new w6,bm=new Sl(100),Fm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Im(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";e.dirty&&Bh.delete(e);var i=Bh.get(e);if(i)return i;var s=Mt(e,{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 o={repeat:"repeat"};return f(o),o.rotation=s.rotation,o.scaleX=o.scaleY=n?1:1/r,Bh.set(e,o),e.dirty=!1,o;function f(l){for(var u=[r],c=!0,h=0;h<Fm.length;++h){var d=s[Fm[h]];if(d!=null&&!Ie(d)&&!Me(d)&&!It(d)&&typeof d!="boolean"){c=!1;break}u.push(d)}var v;if(c){v=u.join(",")+(n?"-svg":"");var p=bm.get(v);p&&(n?l.svgElement=p:l.image=p)}var g=ES(s.dashArrayX),m=G6(s.dashArrayY),x=SS(s.symbol),_=$6(g),y=CS(m),F=!n&&xo.createCanvas(),k=n&&{tag:"g",attrs:{},key:"dcl",children:[]},E=T(),C;F&&(F.width=E.width*r,F.height=E.height*r,C=F.getContext("2d")),b(),c&&bm.put(v,F||k),l.image=F,l.svgElement=k,l.svgWidth=E.width,l.svgHeight=E.height;function T(){for(var M=1,R=0,B=_.length;R<B;++R)M=Gg(M,_[R]);for(var G=1,R=0,B=x.length;R<B;++R)G=Gg(G,x[R].length);M*=G;var re=y*_.length*x.length;return{width:Math.max(1,Math.min(M,s.maxTileWidth)),height:Math.max(1,Math.min(re,s.maxTileHeight))}}function b(){C&&(C.clearRect(0,0,F.width,F.height),s.backgroundColor&&(C.fillStyle=s.backgroundColor,C.fillRect(0,0,F.width,F.height)));for(var M=0,R=0;R<m.length;++R)M+=m[R];if(M<=0)return;for(var B=-y,G=0,re=0,j=0;B<E.height;){if(G%2===0){for(var q=re/2%x.length,ve=0,U=0,xe=0;ve<E.width*2;){for(var se=0,R=0;R<g[j].length;++R)se+=g[j][R];if(se<=0)break;if(U%2===0){var P=(1-s.symbolSize)*.5,V=ve+g[j][U]*P,H=B+m[G]*P,z=g[j][U]*s.symbolSize,ae=m[G]*s.symbolSize,pe=xe/2%x[q].length;le(V,H,z,ae,x[q][pe])}ve+=g[j][U],++xe,++U,U===g[j].length&&(U=0)}++j,j===g.length&&(j=0)}B+=m[G],++re,++G,G===m.length&&(G=0)}function le(ie,ne,ue,w,N){var W=n?1:r,J=_S(N,ie*W,ne*W,ue*W,w*W,s.color,s.symbolKeepAspect);if(n){var K=a.painter.renderOneToVNode(J);K&&k.children.push(K)}else TS(C,J)}}}}function SS(e){if(!e||e.length===0)return[["rect"]];if(Me(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Me(e[r])){t=!1;break}if(t)return SS([e]);for(var a=[],r=0;r<e.length;++r)Me(e[r])?a.push([e[r]]):a.push(e[r]);return a}function ES(e){if(!e||e.length===0)return[[0,0]];if(It(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,a=0;a<e.length;++a)if(!It(e[a])){r=!1;break}if(r)return ES([e]);for(var n=[],a=0;a<e.length;++a)if(It(e[a])){var t=Math.ceil(e[a]);n.push([t,t])}else{var t=$e(e[a],function(o){return Math.ceil(o)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function G6(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(It(e)){var t=Math.ceil(e);return[t,t]}var r=$e(e,function(a){return Math.ceil(a)});return e.length%2?r.concat(r):r}function $6(e){return $e(e,function(t){return CS(t)})}function CS(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function X6(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var a=r.getData();a.hasItemVisual()&&a.each(function(s){var o=a.getItemVisual(s,"decal");if(o){var f=a.ensureUniqueItemVisual(s,"style");f.decal=Im(o,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Im(n,t)}}})}var wa=new Qa,AS={};function Y6(e,t){AS[e]=t}function K6(e){return AS[e]}var Z6=1,j6=800,q6=900,J6=1e3,Q6=2e3,eI=5e3,DS=1e3,tI=1100,Wp=2e3,kS=3e3,rI=4e3,xc=4500,aI=4600,nI=5e3,iI=6e3,bS=7e3,sI={PROCESSOR:{FILTER:J6,SERIES_FILTER:j6,STATISTIC:eI},VISUAL:{LAYOUT:DS,PROGRESSIVE_LAYOUT:tI,GLOBAL:Wp,CHART:kS,POST_CHART_LAYOUT:aI,COMPONENT:rI,BRUSH:nI,CHART_ITEM:xc,ARIA:iI,DECAL:bS}},er="__flagInMainProcess",kr="__pendingUpdate",Nh="__needsUpdateStatus",Mm=/^[a-zA-Z0-9_]+$/,Uh="__connectUpdateStatus",Rm=0,oI=1,fI=2;function FS(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return MS(this,e,t)}}function IS(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return MS(this,e,t)}}function MS(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Qa.prototype[t].apply(e,r)}var RS=(function(e){He(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Qa),PS=RS.prototype;PS.on=IS("on");PS.off=IS("off");var Bs,Hh,p0,Pn,Vh,zh,Wh,Wo,Go,Pm,Lm,Gh,Om,g0,Bm,LS,Zr,Nm,OS=(function(e){He(t,e);function t(r,a,n){var i=e.call(this,new d6)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},Me(a)&&(a=BS[a]),i._dom=r;var s="canvas",o="auto",f=!1;n.ssr&&Tk(function(h){var d=St(h),v=d.dataIndex;if(v!=null){var p=Xe();return p.set("series_index",d.seriesIndex),p.set("data_index",v),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var l=i._zr=Vg(r,{renderer:n.renderer||s,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ze(n.useDirtyRect,f),useCoarsePointer:ze(n.useCoarsePointer,o),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=uS(Et(l.flush,l),17),a=je(a),a&&YT(a,!0),i._theme=a,i._locale=p8(n.locale||IT),i._coordSysMgr=new pc;var u=i._api=Bm(i);function c(h,d){return h.__prio-d.__prio}return L0(ku,c),L0(vv,c),i._scheduler=new vS(i,u,vv,ku),i._messageCenter=new RS,i._initEvents(),i.resize=Et(i.resize,i),l.animation.on("frame",i._onframe,i),Pm(l,i),Lm(l,i),bd(i),i}return t.prototype._onframe=function(){if(!this._disposed){Nm(this);var r=this._scheduler;if(this[kr]){var a=this[kr].silent;this[er]=!0;try{Bs(this),Pn.update.call(this,null,this[kr].updateParams)}catch(f){throw this[er]=!1,this[kr]=null,f}this._zr.flush(),this[er]=!1,this[kr]=null,Wo.call(this,a),Go.call(this,a)}else if(r.unfinished){var n=Z6,i=this._model,s=this._api;r.unfinished=!1;do{var o=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),zh(this,i),r.performVisualTasks(i),g0(this,this._model,s,"remain",{}),n-=+new Date-o}while(n>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,a,n){if(!this[er]){if(this._disposed){this.id;return}var i,s,o;if(Re(a)&&(n=a.lazyUpdate,i=a.silent,s=a.replaceMerge,o=a.transition,a=a.notMerge),this[er]=!0,!this._model||a){var f=new X8(this._api),l=this._theme,u=this._model=new Bp;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,f)}this._model.setOption(r,{replaceMerge:s},pv);var c={seriesTransition:o,optionChanged:!0};if(n)this[kr]={silent:i,updateParams:c},this[er]=!1,this.getZr().wakeUp();else{try{Bs(this),Pn.update.call(this,null,c)}catch(h){throw this[kr]=null,this[er]=!1,h}this._ssr||this._zr.flush(),this[kr]=null,this[er]=!1,Wo.call(this,i),Go.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ne.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var a=this._zr.painter;return a.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ne.svgSupported){var r=this._zr,a=r.storage.getDisplayList();return X(a,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var a=r.excludeComponents,n=this._model,i=[],s=this;X(a,function(f){n.eachComponent({mainType:f},function(l){var u=s._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return X(i,function(f){f.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var a=r.type==="svg",n=this.group,i=Math.min,s=Math.max,o=1/0;if(Um[n]){var f=o,l=o,u=-o,c=-o,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();X(Ff,function(_,y){if(_.group===n){var F=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(je(r)),k=_.getDom().getBoundingClientRect();f=i(k.left,f),l=i(k.top,l),u=s(k.right,u),c=s(k.bottom,c),h.push({dom:F,left:k.left,top:k.top})}}),f*=d,l*=d,u*=d,c*=d;var v=u-f,p=c-l,g=xo.createCanvas(),m=Vg(g,{renderer:a?"svg":"canvas"});if(m.resize({width:v,height:p}),a){var x="";return X(h,function(_){var y=_.left-f,F=_.top-l;x+='<g transform="translate('+y+","+F+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=x,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Xr({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),X(h,function(_){var y=new An({style:{x:_.left*d-f,y:_.top*d-l,image:_.dom}});m.add(y)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,a){return Vh(this,"convertToPixel",r,a)},t.prototype.convertFromPixel=function(r,a){return Vh(this,"convertFromPixel",r,a)},t.prototype.containPixel=function(r,a){if(this._disposed){this.id;return}var n=this._model,i,s=ch(n,r);return X(s,function(o,f){f.indexOf("Models")>=0&&X(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(a);else if(f==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,l))}},this)},this),!!i},t.prototype.getVisual=function(r,a){var n=this._model,i=ch(n,r,{defaultMainType:"series"}),s=i.seriesModel,o=s.getData(),f=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return f!=null?g6(o,f,a):m6(o,a)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;X(lI,function(a){var n=function(i){var s=r.getModel(),o=i.target,f,l=a==="globalout";if(l?f={}:o&&nf(o,function(v){var p=St(v);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return f=g&&g.getDataParams(p.dataIndex,p.dataType,o)||{},!0}else if(p.eventData)return f=Se({},p.eventData),!0},!0),f){var u=f.componentType,c=f.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",c=f.seriesIndex);var h=u&&c!=null&&s.getComponent(u,c),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];f.event=i,f.type=a,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:f,model:h,view:d},r.trigger(a,f)}};n.zrEventfulCallAtLast=!0,r._zr.on(a,n,r)}),X(bf,function(a,n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),X(["selectchanged"],function(a){r._messageCenter.on(a,function(n){this.trigger(a,n)},r)}),x6(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&$w(this.getDom(),$p,"");var a=this,n=a._api,i=a._model;X(a._componentsViews,function(s){s.dispose(i,n)}),X(a._chartsViews,function(s){s.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ff[a.id]},t.prototype.resize=function(r){if(!this[er]){if(this._disposed){this.id;return}this._zr.resize(r);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=r&&r.silent;this[kr]&&(i==null&&(i=this[kr].silent),n=!0,this[kr]=null),this[er]=!0;try{n&&Bs(this),Pn.update.call(this,{type:"resize",animation:Se({duration:0},r&&r.animation)})}catch(s){throw this[er]=!1,s}this[er]=!1,Wo.call(this,i),Go.call(this,i)}}},t.prototype.showLoading=function(r,a){if(this._disposed){this.id;return}if(Re(r)&&(a=r,r=""),r=r||"default",this.hideLoading(),!!gv[r]){var n=gv[r](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var a=Se({},r);return a.type=bf[r.type],a},t.prototype.dispatchAction=function(r,a){if(this._disposed){this.id;return}if(Re(a)||(a={silent:!!a}),!!Du[r.type]&&this._model){if(this[er]){this._pendingActions.push(r);return}var n=a.silent;Wh.call(this,r,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ne.browser.weChat&&this._throttledZrFlush(),Wo.call(this,n),Go.call(this,n)}},t.prototype.updateLabelLayout=function(){wa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var a=r.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Bs=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Hh(c,!0),Hh(c,!1),h.plan()},Hh=function(c,h){for(var d=c._model,v=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,x=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?d.eachComponent(function(k,E){k!=="series"&&y(E)}):d.eachSeries(y);function y(k){var E=k.__requireNewView;k.__requireNewView=!1;var C="_ec_"+k.id+"_"+k.type,T=!E&&g[C];if(!T){var b=$a(k.type),M=h?ii.getClass(b.main,b.sub):qn.getClass(b.sub);T=new M,T.init(d,x),g[C]=T,p.push(T),m.add(T.group)}k.__viewId=T.__id=C,T.__alive=!0,T.__model=k,T.group.__ecComponentInfo={mainType:k.mainType,index:k.componentIndex},!h&&v.prepareView(T,k,d,x)}for(var _=0;_<p.length;){var F=p[_];F.__alive?_++:(!h&&F.renderTask.dispose(),m.remove(F.group),F.dispose(d,x),p.splice(_,1),g[F.__id]===F&&delete g[F.__id],F.__id=F.group.__ecComponentInfo=null)}},p0=function(c,h,d,v,p){var g=c._model;if(g.setUpdatePayload(d),!v){X([].concat(c._componentsViews).concat(c._chartsViews),F);return}var m={};m[v+"Id"]=d[v+"Id"],m[v+"Index"]=d[v+"Index"],m[v+"Name"]=d[v+"Name"];var x={mainType:v,query:m};p&&(x.subType=p);var _=d.excludeSeriesId,y;_!=null&&(y=Xe(),X(Er(_),function(k){var E=Da(k,null);E!=null&&y.set(E,!0)})),g&&g.eachComponent(x,function(k){var E=y&&y.get(k.id)!=null;if(!E)if(_2(d))if(k instanceof ni)d.type===rs&&!d.notBlur&&!k.get(["emphasis","disabled"])&&q5(k,d,c._api);else{var C=yp(k.mainType,k.componentIndex,d.name,c._api),T=C.focusSelf,b=C.dispatchers;d.type===rs&&T&&!d.notBlur&&Jd(k.mainType,k.componentIndex,c._api),b&&X(b,function(M){d.type===rs?vu(M):pu(M)})}else ev(d)&&k instanceof ni&&(eb(k,d,c._api),p2(k),Zr(c))},c),g&&g.eachComponent(x,function(k){var E=y&&y.get(k.id)!=null;E||F(c[v==="series"?"_chartsMap":"_componentsMap"][k.__viewId])},c);function F(k){k&&k.__alive&&k[h]&&k[h](k.__model,g,c._api,d)}},Pn={prepareAndUpdate:function(c){Bs(this),Pn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(c),m.restoreData(d,c),m.performSeriesTasks(d),g.create(d,v),m.performDataProcessorTasks(d,c),zh(this,d),g.update(d,v),r(d),m.performVisualTasks(d,c),Gh(this,d,v,c,h);var x=d.get("backgroundColor")||"transparent",_=d.get("darkMode");p.setBackgroundColor(x),_!=null&&_!=="auto"&&p.setDarkMode(_),wa.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var p=[];d.eachComponent(function(m,x){if(m!=="series"){var _=h.getViewOfComponentModel(x);if(_&&_.__alive)if(_.updateTransform){var y=_.updateTransform(x,d,v,c);y&&y.update&&p.push(_)}else p.push(_)}});var g=Xe();d.eachSeries(function(m){var x=h._chartsMap[m.__viewId];if(x.updateTransform){var _=x.updateTransform(m,d,v,c);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:g}),g0(this,d,v,c,{},g),wa.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),qn.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Gh(this,h,this._api,c,{}),wa.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),qn.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,d,h._api,c)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,c)}),wa.trigger("afterupdate",d,this._api))},updateLayout:function(c){Pn.update.call(this,c)}},Vh=function(c,h,d,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,x=ch(p,d),_=0;_<g.length;_++){var y=g[_];if(y[h]&&(m=y[h](p,x,v))!=null)return m}},zh=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},Wh=function(c,h){var d=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=Du[p],x=m.actionInfo,_=(x.update||"update").split(":"),y=_.pop(),F=_[0]!=null&&$a(_[0]);this[er]=!0;var k=[c],E=!1;c.batch&&(E=!0,k=$e(c.batch,function(G){return G=Mt(Se({},G),c),G.batch=null,G}));var C=[],T,b=ev(c),M=_2(c);if(M&&cT(this._api),X(k,function(G){if(T=m.action(G,d._model,d._api),T=T||Se({},G),T.type=x.event||T.type,C.push(T),M){var re=hp(c),j=re.queryOptionMap,q=re.mainTypeSpecified,ve=q?j.keys()[0]:"series";p0(d,y,G,ve),Zr(d)}else b?(p0(d,y,G,"series"),Zr(d)):F&&p0(d,y,G,F.main,F.sub)}),y!=="none"&&!M&&!b&&!F)try{this[kr]?(Bs(this),Pn.update.call(this,c),this[kr]=null):Pn[y].call(this,c)}catch(G){throw this[er]=!1,G}if(E?T={type:x.event||p,escapeConnect:g,batch:C}:T=C[0],this[er]=!1,!h){var R=this._messageCenter;if(R.trigger(T.type,T),b){var B={type:"selectchanged",escapeConnect:g,selected:tb(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};R.trigger(B.type,B)}}},Wo=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();Wh.call(this,d,c)}},Go=function(c){!c&&this.trigger("updated")},Pm=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[kr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Lm=function(c,h){c.on("mouseover",function(d){var v=d.target,p=nf(v,Qd);p&&(J5(p,d,h._api),Zr(h))}).on("mouseout",function(d){var v=d.target,p=nf(v,Qd);p&&(Q5(p,d,h._api),Zr(h))}).on("click",function(d){var v=d.target,p=nf(v,function(x){return St(x).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=St(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(c){var h=[],d=[],v=!1;if(c.eachComponent(function(x,_){var y=_.get("zlevel")||0,F=_.get("z")||0,k=_.getZLevelKey();v=v||!!k,(x==="series"?d:h).push({zlevel:y,z:F,idx:_.componentIndex,type:x,key:k})}),v){var p=h.concat(d),g,m;L0(p,function(x,_){return x.zlevel===_.zlevel?x.z-_.z:x.zlevel-_.zlevel}),X(p,function(x){var _=c.getComponent(x.type,x.idx),y=x.zlevel,F=x.key;g!=null&&(y=Math.max(g,y)),F?(y===g&&F!==m&&y++,m=F):m&&(y===g&&y++,m=""),g=y,_.setZLevel(y)})}}Gh=function(c,h,d,v,p){a(h),Om(c,h,d,v,p),X(c._chartsViews,function(g){g.__alive=!1}),g0(c,h,d,v,p),X(c._chartsViews,function(g){g.__alive||g.remove(h,d)})},Om=function(c,h,d,v,p,g){X(g||c._componentsViews,function(m){var x=m.__model;l(x,m),m.render(x,h,d,v),o(x,m),u(x,m)})},g0=function(c,h,d,v,p,g){var m=c._scheduler;p=Se(p||{},{updatedSeries:h.getSeries()}),wa.trigger("series:beforeupdate",h,d,p);var x=!1;h.eachSeries(function(_){var y=c._chartsMap[_.__viewId];y.__alive=!0;var F=y.renderTask;m.updatePayload(F,v),l(_,y),g&&g.get(_.uid)&&F.dirty(),F.perform(m.getPerformArgs(F))&&(x=!0),y.group.silent=!!_.get("silent"),s(_,y),p2(_)}),m.unfinished=x||m.unfinished,wa.trigger("series:layoutlabels",h,d,p),wa.trigger("series:transition",h,d,p),h.eachSeries(function(_){var y=c._chartsMap[_.__viewId];o(_,y),u(_,y)}),i(c,h),wa.trigger("series:afterupdate",h,d,p)},Zr=function(c){c[Nh]=!0,c.getZr().wakeUp()},Nm=function(c){c[Nh]&&(c.getZr().storage.traverse(function(h){Df(h)||n(h)}),c[Nh]=!1)};function n(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===xp&&c.states.emphasis?h.push("emphasis"):c.hoverState===mp&&c.states.blur&&h.push("blur"),c.useStates(h)}function i(c,h){var d=c._zr,v=d.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!Ne.node&&!Ne.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function o(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(p){return f(p,d,v,-1/0),!0})}}function f(c,h,d,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var x=c.childrenRef(),_=0;_<x.length;_++)v=Math.max(f(x[_],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),g){var y=c.textGuideLineConfig;g.z=h,g.zlevel=d,isFinite(v)&&(g.z2=v+(y&&y.showAbove?1:-1))}return v}function l(c,h){h.eachRendered(function(d){if(!Df(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function u(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=d.get("duration"),g=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Df(m))return;if(m instanceof gt&&ob(m),m.__dirty){var x=m.prevStates;x&&m.useStates(x)}if(v){m.stateTransition=g;var _=m.getTextContent(),y=m.getTextGuideLine();_&&(_.stateTransition=g),y&&(y.stateTransition=g)}m.__dirty&&n(m)}})}Bm=function(c){return new((function(h){He(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){vu(v,p),Zr(c)},d.prototype.leaveEmphasis=function(v,p){pu(v,p),Zr(c)},d.prototype.enterBlur=function(v){j5(v),Zr(c)},d.prototype.leaveBlur=function(v){oT(v),Zr(c)},d.prototype.enterSelect=function(v){fT(v),Zr(c)},d.prototype.leaveSelect=function(v){lT(v),Zr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d})($T))(c)},LS=function(c){function h(d,v){for(var p=0;p<d.length;p++){var g=d[p];g[Uh]=v}}X(bf,function(d,v){c._messageCenter.on(v,function(p){if(Um[c.group]&&c[Uh]!==Rm){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];X(Ff,function(x){x!==c&&x.group===c.group&&m.push(x)}),h(m,Rm),X(m,function(x){x[Uh]!==oI&&x.dispatchAction(g)}),h(m,fI)}})})}})(),t})(Qa),Gp=OS.prototype;Gp.on=FS("on");Gp.off=FS("off");Gp.one=function(e,t,r){var a=this;function n(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];t&&t.apply&&t.apply(this,i),a.off(e,n)}this.on.call(this,e,n,r)};var lI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Du={},bf={},vv=[],pv=[],ku=[],BS={},gv={},Ff={},Um={},uI=+new Date-0,$p="_echarts_instance_";function Hm(e,t,r){var a=!(r&&r.ssr);if(a){var n=cI(e);if(n)return n}var i=new OS(e,t,r);return i.id="ec_"+uI++,Ff[i.id]=i,a&&$w(e,$p,i.id),LS(i),wa.trigger("afterinit",i),i}function cI(e){return Ff[Vk(e,$p)]}function NS(e,t){BS[e]=t}function US(e){wt(pv,e)<0&&pv.push(e)}function HS(e,t){Yp(vv,e,t,Q6)}function hI(e){Xp("afterinit",e)}function dI(e){Xp("afterupdate",e)}function Xp(e,t){wa.on(e,t)}function So(e,t,r){ft(t)&&(r=t,t="");var a=Re(e)?e.type:[e,e={event:t}][0];e.event=(e.event||a).toLowerCase(),t=e.event,!bf[t]&&(Yr(Mm.test(a)&&Mm.test(t)),Du[a]||(Du[a]={action:r,actionInfo:e}),bf[t]=a)}function vI(e,t){pc.register(e,t)}function pI(e,t){Yp(ku,e,t,DS,"layout")}function hs(e,t){Yp(ku,e,t,kS,"visual")}var Vm=[];function Yp(e,t,r,a,n){if((ft(t)||Re(t))&&(r=t,t=a),!(wt(Vm,r)>=0)){Vm.push(r);var i=vS.wrapStageHandler(r,n);i.__prio=t,i.__raw=r,e.push(i)}}function VS(e,t){gv[e]=t}function gI(e,t,r){var a=K6("registerMap");a&&a(e,t,r)}var mI=TF;hs(Wp,QF);hs(xc,e6);hs(xc,t6);hs(Wp,v6);hs(xc,p6);hs(bS,X6);US(YT);HS(q6,nF);VS("default",r6);So({type:rs,event:rs,update:rs},lr);So({type:V0,event:V0,update:V0},lr);So({type:Ef,event:Ef,update:Ef},lr);So({type:z0,event:z0,update:z0},lr);So({type:Cf,event:Cf,update:Cf},lr);NS("light",h6);NS("dark",xS);function $o(e){return e==null?0:e.length||1}function zm(e){return e}var xI=(function(){function e(t,r,a,n,i,s){this._old=t,this._new=r,this._oldKeyGetter=a||zm,this._newKeyGetter=n||zm,this.context=i,this._diffModeMultiple=s==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,a={},n=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(r,a,i,"_newKeyGetter");for(var s=0;s<t.length;s++){var o=n[s],f=a[o],l=$o(f);if(l>1){var u=f.shift();f.length===1&&(a[o]=f[0]),this._update&&this._update(u,s)}else l===1?(a[o]=null,this._update&&this._update(f,s)):this._remove&&this._remove(s)}this._performRestAdd(i,a)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,a={},n={},i=[],s=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(r,n,s,"_newKeyGetter");for(var o=0;o<i.length;o++){var f=i[o],l=a[f],u=n[f],c=$o(l),h=$o(u);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(u,l),n[f]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[f]=null;else if(c===1&&h===1)this._update&&this._update(u,l),n[f]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[f]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(s,n)},e.prototype._performRestAdd=function(t,r){for(var a=0;a<t.length;a++){var n=t[a],i=r[n],s=$o(i);if(s>1)for(var o=0;o<s;o++)this._add&&this._add(i[o]);else s===1&&this._add&&this._add(i);r[n]=null}},e.prototype._initIndexMap=function(t,r,a,n){for(var i=this._diffModeMultiple,s=0;s<t.length;s++){var o="_ec_"+this[n](t[s],s);if(i||(a[s]=o),!!r){var f=r[o],l=$o(f);l===0?(r[o]=s,i&&a.push(o)):l===1?r[o]=[f,s]:f.push(s)}}},e})(),_I=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function yI(e,t){var r={},a=r.encode={},n=Xe(),i=[],s=[],o={};X(e.dimensions,function(h){var d=e.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;$h(a,v)[p]=h,d.isExtraCoord||(n.set(v,1),TI(d.type)&&(i[0]=h),$h(o,v)[p]=e.getDimensionIndex(d.name)),d.defaultTooltip&&s.push(h)}HT.each(function(g,m){var x=$h(a,m),_=d.otherDims[m];_!=null&&_!==!1&&(x[_]=d.name)})});var f=[],l={};n.each(function(h,d){var v=a[d];l[d]=v[0],f=f.concat(v)}),r.dataDimsOnCoord=f,r.dataDimIndicesOnCoord=$e(f,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=l;var u=a.label;u&&u.length&&(i=u.slice());var c=a.tooltip;return c&&c.length?s=c.slice():s.length||(s=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=s,r.userOutput=new _I(o,t),r}function $h(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function wI(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function TI(e){return!(e==="ordinal"||e==="time")}var X0=(function(){function e(t){this.otherDims={},t!=null&&Se(this,t)}return e})(),SI=Xt(),EI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},zS=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$S(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ze(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=ZT(this.source),a=!XS(t),n="",i=[],s=0,o=0;s<t;s++){var f=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===s)f=r?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var h=this.getSourceDimension(s);h&&(f=r?h.name:null,l=h.type)}i.push({property:f,type:l,ordinalMeta:u}),r&&f!=null&&(!c||!c.isCalculationCoord)&&(n+=a?f.replace(/\`/g,"`1").replace(/\$/g,"`2"):f),n+="$",n+=EI[l]||"f",u&&(n+=u.uid),n+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,n].join("$$");return{dimensions:i,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,a=0;r<this._fullDimCount;r++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(n=i.name),a++;else{var s=this.getSourceDimension(r);s&&(n=s.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function WS(e){return e instanceof zS}function GS(e){for(var t=Xe(),r=0;r<(e||[]).length;r++){var a=e[r],n=Re(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function $S(e){var t=SI(e);return t.dimNameMap||(t.dimNameMap=GS(e.dimensionsDefine))}function XS(e){return e>30}var Xo=Re,Ln=$e,CI=typeof Int32Array>"u"?Array:Int32Array,AI="e\0\0",Wm=-1,DI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kI=["_approximateExtent"],Gm,m0,Yo,Ko,Xh,Zo,Yh,mv=(function(){function e(t,r){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;WS(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},s=[],o={},f=!1,l={},u=0;u<a.length;u++){var c=a[u],h=Me(c)?new X0({name:c}):c instanceof X0?c:new X0(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};s.push(d),i[d]=h,l[d]!=null&&(f=!0),h.createInvertedIndices&&(o[d]=[]),v.itemName===0&&(this._nameDimIdx=u),v.itemId===0&&(this._idDimIdx=u),n&&(h.storeDimIndex=u)}if(this.dimensions=s,this._dimInfos=i,this._initGetDimensionInfo(f),this.hostModel=r,this._invertedIndicesMap=o,this._dimOmitted){var p=this._dimIdxToName=Xe();X(s,function(g){p.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var a=this._dimIdxToName.get(r);if(a!=null)return a;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(It(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(a){return r.hasOwnProperty(a)?r[a]:void 0}:function(a){return r[a]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var a=this._dimSummary;if(r==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,a=r.encode[t];return(a||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,a){var n=this,i;if(t instanceof iv&&(i=t),!i){var s=this.dimensions,o=Np(t)||Or(t)?new jT(t,s.length):t;i=new iv;var f=Ln(s,function(l){return{type:n._dimInfos[l].type,property:l}});i.initData(o,f,a)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=yI(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var a=this._store.appendValues(t,r&&r.length),n=a.start,i=a.end,s=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var o=n;o<i;o++){var f=o-n;this._nameList[o]=r[f],s&&Yh(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,a=0;a<r.length;a++){var n=this._dimInfos[r[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==jn&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,s=this._idList,o=n.getSource().sourceFormat,f=o===ha;if(f&&!n.pure)for(var l=[],u=t;u<r;u++){var c=n.getItem(u,l);if(!this.hasItemOption&&Fk(c)&&(this.hasItemOption=!0),c){var h=c.name;i[u]==null&&h!=null&&(i[u]=Da(h,null));var d=c.id;s[u]==null&&d!=null&&(s[u]=Da(d,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<r;u++)Yh(this,u);Gm(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Xo(t)?Se(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),a=this._nameList[r];return a==null&&this._nameDimIdx!=null&&(a=Yo(this,this._nameDimIdx,r)),a==null&&(a=""),a},e.prototype._getCategory=function(t,r){var a=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},e.prototype.getId=function(t){return m0(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var a=this,n=this._store;return Ie(t)?n.getValues(Ln(t,function(i){return a._getStoreDimIndex(i)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,a=0,n=r.length;a<n;a++)if(isNaN(this._store.get(r[a],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,a=this._store.count();r<a;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var a=t&&this._invertedIndicesMap[t],n=a&&a[r];return n==null||isNaN(n)?Wm:n},e.prototype.indicesOfNearest=function(t,r,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,a)},e.prototype.each=function(t,r,a){ft(t)&&(a=r,r=t,t=[]);var n=a||this,i=Ln(Ko(t),this._getStoreDimIndex,this);this._store.each(i,n?Et(r,n):r)},e.prototype.filterSelf=function(t,r,a){ft(t)&&(a=r,r=t,t=[]);var n=a||this,i=Ln(Ko(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Et(r,n):r),this},e.prototype.selectRange=function(t){var r=this,a={},n=at(t);return X(n,function(i){var s=r._getStoreDimIndex(i);a[s]=t[i]}),this._store=this._store.selectRange(a),this},e.prototype.mapArray=function(t,r,a){ft(t)&&(a=r,r=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},a),n},e.prototype.map=function(t,r,a,n){var i=a||n||this,s=Ln(Ko(t),this._getStoreDimIndex,this),o=Zo(this);return o._store=this._store.map(s,i?Et(r,i):r),o},e.prototype.modify=function(t,r,a,n){var i=a||n||this,s=Ln(Ko(t),this._getStoreDimIndex,this);this._store.modify(s,i?Et(r,i):r)},e.prototype.downSample=function(t,r,a,n){var i=Zo(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,a,n),i},e.prototype.minmaxDownSample=function(t,r){var a=Zo(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),a},e.prototype.lttbDownSample=function(t,r){var a=Zo(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),a},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,a=this.getRawDataItem(t);return new Dt(a,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new xI(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return m0(t,a)},function(a){return m0(r,a)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Xo(t)?Se(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var a=this._itemVisuals[t],n=a&&a[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[r];return i==null&&(i=this.getVisual(r),Ie(i)?i=i.slice():Xo(i)&&(i=Se({},i)),n[r]=i),i},e.prototype.setItemVisual=function(t,r,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Xo(r)?Se(n,r):n[r]=a},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Xo(t)?Se(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,a){this._itemLayouts[t]=a?Se(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var a=this.hostModel&&this.hostModel.seriesIndex;H5(a,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){X(this._graphicEls,function(a,n){a&&t&&t.call(r,a,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ln(this.dimensions,this._getDimInfo,this),this.hostModel)),Xh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var a=this[t];ft(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return r.apply(this,[n].concat(np(arguments)))})},e.internalField=(function(){Gm=function(t){var r=t._invertedIndicesMap;X(r,function(a,n){var i=t._dimInfos[n],s=i.ordinalMeta,o=t._store;if(s){a=r[n]=new CI(s.categories.length);for(var f=0;f<a.length;f++)a[f]=Wm;for(var f=0;f<o.count();f++)a[o.get(i.storeDimIndex,f)]=f}})},Yo=function(t,r,a){return Da(t._getCategory(r,a),null)},m0=function(t,r){var a=t._idList[r];return a==null&&t._idDimIdx!=null&&(a=Yo(t,t._idDimIdx,r)),a==null&&(a=AI+r),a},Ko=function(t){return Ie(t)||(t=t!=null?[t]:[]),t},Zo=function(t){var r=new e(t._schema?t._schema:Ln(t.dimensions,t._getDimInfo,t),t.hostModel);return Xh(r,t),r},Xh=function(t,r){X(DI.concat(r.__wrappedMethods||[]),function(a){r.hasOwnProperty(a)&&(t[a]=r[a])}),t.__wrappedMethods=r.__wrappedMethods,X(kI,function(a){t[a]=je(r[a])}),t._calculationInfo=Se({},r._calculationInfo)},Yh=function(t,r){var a=t._nameList,n=t._idList,i=t._nameDimIdx,s=t._idDimIdx,o=a[r],f=n[r];if(o==null&&i!=null&&(a[r]=o=Yo(t,i,r)),f==null&&s!=null&&(n[r]=f=Yo(t,s,r)),f==null&&o!=null){var l=t._nameRepeatCount,u=l[o]=(l[o]||0)+1;f=o,u>1&&(f+="__ec__"+u),n[r]=f}}})(),e})();function YS(e,t){Np(e)||(e=Up(e)),t=t||{};var r=t.coordDimensions||[],a=t.dimensionsDefine||e.dimensionsDefine||[],n=Xe(),i=[],s=FI(e,r,a,t.dimensionsCount),o=t.canOmitUnusedDimensions&&XS(s),f=a===e.dimensionsDefine,l=f?$S(e):GS(a),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,s));for(var c=Xe(u),h=new tS(s),d=0;d<h.length;d++)h[d]=-1;function v(T){var b=h[T];if(b<0){var M=a[T],R=Re(M)?M:{name:M},B=new X0,G=R.name;G!=null&&l.get(G)!=null&&(B.name=B.displayName=G),R.type!=null&&(B.type=R.type),R.displayName!=null&&(B.displayName=R.displayName);var re=i.length;return h[T]=re,B.storeDimIndex=T,i.push(B),B}return i[b]}if(!o)for(var d=0;d<s;d++)v(d);c.each(function(T,b){var M=Er(T).slice();if(M.length===1&&!Me(M[0])&&M[0]<0){c.set(b,!1);return}var R=c.set(b,[]);X(M,function(B,G){var re=Me(B)?l.get(B):B;re!=null&&re<s&&(R[G]=re,g(v(re),b,G))})});var p=0;X(r,function(T){var b,M,R,B;if(Me(T))b=T,B={};else{B=T,b=B.name;var G=B.ordinalMeta;B.ordinalMeta=null,B=Se({},B),B.ordinalMeta=G,M=B.dimsDef,R=B.otherDims,B.name=B.coordDim=B.coordDimIndex=B.dimsDef=B.otherDims=null}var re=c.get(b);if(re!==!1){if(re=Er(re),!re.length)for(var j=0;j<(M&&M.length||1);j++){for(;p<s&&v(p).coordDim!=null;)p++;p<s&&re.push(p++)}X(re,function(q,ve){var U=v(q);if(f&&B.type!=null&&(U.type=B.type),g(Mt(U,B),b,ve),U.name==null&&M){var xe=M[ve];!Re(xe)&&(xe={name:xe}),U.name=U.displayName=xe.name,U.defaultTooltip=xe.defaultTooltip}R&&Mt(U.otherDims,R)})}});function g(T,b,M){HT.get(b)!=null?T.otherDims[b]=M:(T.coordDim=b,T.coordDimIndex=M,n.set(b,!0))}var m=t.generateCoord,x=t.generateCoordCount,_=x!=null;x=m?x||1:0;var y=m||"value";function F(T){T.name==null&&(T.name=T.coordDim)}if(o)X(i,function(T){F(T)}),i.sort(function(T,b){return T.storeDimIndex-b.storeDimIndex});else for(var k=0;k<s;k++){var E=v(k),C=E.coordDim;C==null&&(E.coordDim=II(y,n,_),E.coordDimIndex=0,(!m||x<=0)&&(E.isExtraCoord=!0),x--),F(E),E.type==null&&(GT(e,k)===Ur.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return bI(i),new zS({source:e,dimensions:i,fullDimensionCount:s,dimensionOmitted:o})}function bI(e){for(var t=Xe(),r=0;r<e.length;r++){var a=e[r],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function FI(e,t,r,a){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,a||0);return X(t,function(i){var s;Re(i)&&(s=i.dimsDef)&&(n=Math.max(n,s.length))}),n}function II(e,t,r){if(r||t.hasKey(e)){for(var a=0;t.hasKey(e+a);)a++;e+=a}return t.set(e,!0),e}var MI=(function(){function e(t){this.coordSysDims=[],this.axisMap=Xe(),this.categoryAxisMap=Xe(),this.coordSysName=t}return e})();function RI(e){var t=e.get("coordinateSystem"),r=new MI(t),a=PI[t];if(a)return a(e,r,r.axisMap,r.categoryAxisMap),r}var PI={cartesian2d:function(e,t,r,a){var n=e.getReferringComponents("xAxis",Xi).models[0],i=e.getReferringComponents("yAxis",Xi).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",i),Ns(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Ns(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,a){var n=e.getReferringComponents("singleAxis",Xi).models[0];t.coordSysDims=["single"],r.set("single",n),Ns(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,a){var n=e.getReferringComponents("polar",Xi).models[0],i=n.findAxisModel("radiusAxis"),s=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",s),Ns(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Ns(s)&&(a.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,a){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,a){var n=e.ecModel,i=n.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=i.dimensions.slice();X(i.parallelAxisIndex,function(o,f){var l=n.getComponent("parallelAxis",o),u=s[f];r.set(u,l),Ns(l)&&(a.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=f))})}};function Ns(e){return e.get("type")==="category"}function LI(e,t,r){r=r||{};var a=r.byIndex,n=r.stackedCoordDimension,i,s,o;OI(t)?i=t:(s=t.schema,i=s.dimensions,o=t.store);var f=!!(e&&e.get("stack")),l,u,c,h;if(X(i,function(x,_){Me(x)&&(i[_]=x={name:x}),f&&!x.isExtraCoord&&(!a&&!l&&x.ordinalMeta&&(l=x),!u&&x.type!=="ordinal"&&x.type!=="time"&&(!n||n===x.coordDim)&&(u=x))}),u&&!a&&!l&&(a=!0),u){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,v=u.type,p=0;X(i,function(x){x.coordDim===d&&p++});var g={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};s?(o&&(g.storeDimIndex=o.ensureCalculationDimension(h,v),m.storeDimIndex=o.ensureCalculationDimension(c,v)),s.appendCalculationDimension(g),s.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function OI(e){return!WS(e.schema)}function BI(e,t){var r=e.get("coordinateSystem"),a=pc.get(r),n;return t&&t.coordSysDims&&(n=$e(t.coordSysDims,function(i){var s={name:i},o=t.axisMap.get(i);if(o){var f=o.get("type");s.type=wI(f)}return s})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function NI(e,t,r){var a,n;return r&&X(e,function(i,s){var o=i.coordDim,f=r.categoryAxisMap.get(o);f&&(a==null&&(a=s),i.ordinalMeta=f.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(e[a].otherDims.itemName=0),a}function UI(e,t,r){r=r||{};var a=t.getSourceManager(),n,i=!1;e?(i=!0,n=Up(e)):(n=a.getSource(),i=n.sourceFormat===ha);var s=RI(t),o=BI(t,s),f=r.useEncodeDefaulter,l=ft(f)?f:f?Sr(R8,o,t):null,u={coordDimensions:o,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},c=YS(n,u),h=NI(c.dimensions,r.createInvertedIndices,s),d=i?null:a.getSharedDataStore(c),v=LI(t,{schema:c,store:d}),p=new mv(c,t);p.setCalculationInfo(v);var g=h!=null&&HI(n)?function(m,x,_,y){return y===h?_:this.defaultDimValueGetter(m,x,_,y)}:null;return p.hasItemOption=!1,p.initData(i?n:d,null,g),p}function HI(e){if(e.sourceFormat===ha){var t=VI(e.data||[]);return!Ie(El(t))}}function VI(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function KS(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function zI(e){var t=e.get("interval");return t??"auto"}function WI(e){return e.type==="category"&&zI(e.getLabelModel())===0}var $m=[],GI={registerPreprocessor:US,registerProcessor:HS,registerPostInit:hI,registerPostUpdate:dI,registerUpdateLifecycle:Xp,registerAction:So,registerCoordinateSystem:vI,registerLayout:pI,registerVisual:hs,registerTransform:mI,registerLoading:VS,registerMap:gI,registerImpl:Y6,PRIORITY:sI,ComponentModel:yt,ComponentView:ii,SeriesModel:ni,ChartView:qn,registerComponentModel:function(e){yt.registerClass(e)},registerComponentView:function(e){ii.registerClass(e)},registerSeriesModel:function(e){ni.registerClass(e)},registerChartView:function(e){qn.registerClass(e)},registerSubTypeDefaulter:function(e,t){yt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){yk(e,t)}};function Kp(e){if(Ie(e)){X(e,function(t){Kp(t)});return}wt($m,e)>=0||($m.push(e),ft(e)&&(e={install:e}),e.install(GI))}function $I(e){for(var t=[],r=0;r<e.length;r++){var a=e[r];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),s=n.getBoundingRect(),o=!i||i[1]<1e-5&&i[2]<1e-5,f=n.style.margin||0,l=s.clone();l.applyTransform(i),l.x-=f/2,l.y-=f/2,l.width+=f,l.height+=f;var u=o?new gu(s,i):null;t.push({label:n,labelLine:a.labelLine,rect:l,localRect:s,obb:u,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:o,transform:i})}}return t}function XI(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new pt(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<e.length;n++){var i=e[n],s=i.axisAligned,o=i.localRect,f=i.transform,l=i.label,u=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=i.obb,h=!1,d=0;d<t.length;d++){var v=t[d];if(r.intersect(v.rect)){if(s&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new gu(v.localRect,v.transform)),c||(c=new gu(o,f)),c.intersect(v.obb)){h=!0;break}}}h?(a(l),u&&a(u)):(l.attr("ignore",i.defaultAttr.ignore),u&&u.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function Xm(e,t,r){r=r||{};var a=e.coordinateSystem,n=t.axis,i={},s=n.getAxesOnZeroOf()[0],o=n.position,f=s?"onZero":o,l=n.dim,u=a.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,v=l==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(s){var p=s.toGlobalCoord(s.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[l==="y"?v[h[f]]:c[0],l==="x"?v[h[f]]:c[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[o],i.labelOffset=s?v[h[o]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ss(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=f==="top"?-m:m,i.z2=1,i}var Gn=Math.PI,as=(function(){function e(t,r){this.group=new Sn,this.opt=r,this.axisModel=t,Mt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Sn({x:r.position[0],y:r.position[1],rotation:r.rotation});a.updateTransform(),this._transformGroup=a}return e.prototype.hasBuilder=function(t){return!!Ym[t]},e.prototype.add=function(t){Ym[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,a){var n=Uw(r-t),i,s;return cu(n)?(s=a>0?"top":"bottom",i="center"):cu(n-Gn)?(s=a>0?"bottom":"top",i="center"):(s="middle",n>0&&n<Gn?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:s}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),Ym={axisLine:function(e,t,r,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&e.handleAutoShown&&(n=e.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),s=a.transform,o=[i[0],0],f=[i[1],0],l=o[0]>f[0];s&&(Ya(o,o,s),Ya(f,f,s));var u=Se({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new wo({shape:{x1:o[0],y1:o[1],x2:f[0],y2:f[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Fp(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);Me(h)&&(h=[h,h]),(Me(d)||It(d))&&(d=[d,d]);var v=F6(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];X([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-f[0])*(o[0]-f[0])+(o[1]-f[1])*(o[1]-f[1]))}],function(m,x){if(h[x]!=="none"&&h[x]!=null){var _=_S(h[x],-p/2,-g/2,p,g,u.stroke,!0),y=m.r+m.offset,F=l?f:o;_.attr({rotation:m.rotate,x:F[0]+y*Math.cos(e.rotation),y:F[1]-y*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,a){var n=ZI(r,a,t,e),i=qI(r,a,t,e);if(KI(t,i,n),jI(r,a,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=$I($e(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));XI(s)}},axisName:function(e,t,r,a){var n=ss(e.axisName,t.get("name"));if(n){var i=t.get("nameLocation"),s=e.nameDirection,o=t.getModel("nameTextStyle"),f=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,c=[i==="start"?l[0]-u*f:i==="end"?l[1]+u*f:(l[0]+l[1])/2,Zm(i)?e.labelOffset+s*f:0],h,d=t.get("nameRotate");d!=null&&(d=d*Gn/180);var v;Zm(i)?h=as.innerTextLayout(e.rotation,d??e.rotation,s):(h=YI(e.rotation,i,d||0,l),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=o.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,x=ss(e.nameTruncateMaxWidth,g.maxWidth,v),_=new qa({x:c[0],y:c[1],rotation:h.rotation,silent:as.isLabelSilent(t),style:el(o,{text:n,font:p,overflow:"truncate",width:x,ellipsis:m,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||h.textAlign,verticalAlign:o.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Mp({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var y=as.makeAxisEventDataBase(t);y.targetType="axisName",y.name=n,St(_).eventData=y}a.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function YI(e,t,r,a){var n=Uw(r-e),i,s,o=a[0]>a[1],f=t==="start"&&!o||t!=="start"&&o;return cu(n-Gn/2)?(s=f?"bottom":"top",i="center"):cu(n-Gn*1.5)?(s=f?"top":"bottom",i="center"):(s="middle",n<Gn*1.5&&n>Gn/2?i=f?"left":"right":i=f?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:s}}function KI(e,t,r){if(!WI(e.axis)){var a=e.get(["axisLabel","showMinLabel"]),n=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],s=t[1],o=t[t.length-1],f=t[t.length-2],l=r[0],u=r[1],c=r[r.length-1],h=r[r.length-2];a===!1?(jr(i),jr(l)):Km(i,s)&&(a?(jr(s),jr(u)):(jr(i),jr(l))),n===!1?(jr(o),jr(c)):Km(f,o)&&(n?(jr(f),jr(h)):(jr(o),jr(c)))}}function jr(e){e&&(e.ignore=!0)}function Km(e,t){var r=e&&e.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!r||!a)){var n=sp([]);return op(n,n,-e.rotation),r.applyTransform(so([],n,e.getLocalTransform())),a.applyTransform(so([],n,t.getLocalTransform())),r.intersect(a)}}function Zm(e){return e==="middle"||e==="center"}function ZS(e,t,r,a,n){for(var i=[],s=[],o=[],f=0;f<e.length;f++){var l=e[f].coord;s[0]=l,s[1]=0,o[0]=l,o[1]=r,t&&(Ya(s,s,t),Ya(o,o,t));var u=new wo({shape:{x1:s[0],y1:s[1],x2:o[0],y2:o[1]},style:a,z2:2,autoBatch:!0,silent:!0});Fp(u.shape,u.style.lineWidth),u.anid=n+"_"+e[f].tickValue,i.push(u)}return i}function ZI(e,t,r,a){var n=r.axis,i=r.getModel("axisTick"),s=i.get("show");if(s==="auto"&&a.handleAutoShown&&(s=a.handleAutoShown("axisTick")),!(!s||n.scale.isBlank())){for(var o=i.getModel("lineStyle"),f=a.tickDirection*i.get("length"),l=n.getTicksCoords(),u=ZS(l,t.transform,f,Mt(o.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}}function jI(e,t,r,a){var n=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var o=i.getModel("lineStyle"),f=a*i.get("length"),l=Mt(o.getLineStyle(),Mt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),u=0;u<s.length;u++)for(var c=ZS(s[u],t.transform,f,l,"minorticks_"+u),h=0;h<c.length;h++)e.add(c[h])}}function qI(e,t,r,a){var n=r.axis,i=ss(a.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var s=r.getModel("axisLabel"),o=s.get("margin"),f=n.getViewLabels(),l=(ss(a.labelRotate,s.get("rotate"))||0)*Gn/180,u=as.innerTextLayout(a.rotation,l,a.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=as.isLabelSilent(r),v=r.get("triggerEvent");return X(f,function(p,g){var m=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,x=p.formattedLabel,_=p.rawLabel,y=s;if(c&&c[m]){var F=c[m];Re(F)&&F.textStyle&&(y=new Dt(F.textStyle,s,r.ecModel))}var k=y.getTextColor()||r.get(["axisLine","lineStyle","color"]),E=n.dataToCoord(m),C=y.getShallow("align",!0)||u.textAlign,T=ze(y.getShallow("alignMinLabel",!0),C),b=ze(y.getShallow("alignMaxLabel",!0),C),M=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,R=ze(y.getShallow("verticalAlignMinLabel",!0),M),B=ze(y.getShallow("verticalAlignMaxLabel",!0),M),G=new qa({x:E,y:a.labelOffset+a.labelDirection*o,rotation:u.rotation,silent:d,z2:10+(p.level||0),style:el(y,{text:x,align:g===0?T:g===f.length-1?b:C,verticalAlign:g===0?R:g===f.length-1?B:M,fill:ft(k)?k(n.type==="category"?_:n.type==="value"?m+"":m,g):k})});if(G.anid="label_"+m,Mp({el:G,componentModel:r,itemName:x,formatterParamsExtra:{isTruncated:function(){return G.isTruncated},value:_,tickIndex:g}}),v){var re=as.makeAxisEventDataBase(r);re.targetType="axisLabel",re.value=_,re.tickIndex=g,n.type==="category"&&(re.dataIndex=m),St(G).eventData=re}t.add(G),G.updateTransform(),h.push(G),e.add(G),G.decomposeTransform()}),h}}function JI(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return QI(r,e,t),r.seriesInvolved&&tM(r,e),r}function QI(e,t,r){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],s=[];X(r.getCoordinateSystems(),function(o){if(!o.axisPointerEnabled)return;var f=il(o.model),l=e.coordSysAxesInfo[f]={};e.coordSysMap[f]=o;var u=o.model,c=u.getModel("tooltip",a);if(X(o.getAxes(),Sr(p,!1,null)),o.getTooltipAxes&&a&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=o.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&X(v.baseAxes,Sr(p,d?"cross":!0,h)),d&&X(v.otherAxes,Sr(p,"cross",!1))}function p(g,m,x){var _=x.model.getModel("axisPointer",n),y=_.get("show");if(!(!y||y==="auto"&&!g&&!xv(_))){m==null&&(m=_.get("triggerTooltip")),_=g?eM(x,c,n,t,g,m):_;var F=_.get("snap"),k=_.get("triggerEmphasis"),E=il(x.model),C=m||F||x.type==="category",T=e.axesInfo[E]={key:E,axis:x,coordSys:o,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:k,involveSeries:C,snap:F,useHandle:xv(_),seriesModels:[],linkGroup:null};l[E]=T,e.seriesInvolved=e.seriesInvolved||C;var b=rM(i,x);if(b!=null){var M=s[b]||(s[b]={axesInfo:{}});M.axesInfo[E]=T,M.mapper=i[b].mapper,T.linkGroup=M}}}})}function eM(e,t,r,a,n,i){var s=t.getModel("axisPointer"),o=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],f={};X(o,function(h){f[h]=je(s.get(h))}),f.snap=e.type!=="category"&&!!i,s.get("type")==="cross"&&(f.type="line");var l=f.label||(f.label={});if(l.show==null&&(l.show=!1),n==="cross"){var u=s.get(["label","show"]);if(l.show=u??!0,!i){var c=f.lineStyle=s.get("crossStyle");c&&Mt(l,c.textStyle)}}return e.model.getModel("axisPointer",new Dt(f,r,a))}function tM(e,t){t.eachSeries(function(r){var a=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||X(e.coordSysAxesInfo[il(a.model)],function(s){var o=s.axis;a.getAxis(o.dim)===o&&(s.seriesModels.push(r),s.seriesDataCount==null&&(s.seriesDataCount=0),s.seriesDataCount+=r.getData().count())})})}function rM(e,t){for(var r=t.model,a=t.dim,n=0;n<e.length;n++){var i=e[n]||{};if(Kh(i[a+"AxisId"],r.id)||Kh(i[a+"AxisIndex"],r.componentIndex)||Kh(i[a+"AxisName"],r.name))return n}}function Kh(e,t){return e==="all"||Ie(e)&&wt(e,t)>=0||e===t}function aM(e){var t=Zp(e);if(t){var r=t.axisPointerModel,a=t.axis.scale,n=r.option,i=r.get("status"),s=r.get("value");s!=null&&(s=a.parse(s));var o=xv(r);i==null&&(n.status=o?"show":"hide");var f=a.getExtent().slice();f[0]>f[1]&&f.reverse(),(s==null||s>f[1])&&(s=f[1]),s<f[0]&&(s=f[0]),n.value=s,o&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Zp(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[il(e)]}function nM(e){var t=Zp(e);return t&&t.axisPointerModel}function xv(e){return!!e.get(["handle","show"])}function il(e){return e.type+"||"+e.id}var jm={},iM=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,a,n,i){this.axisPointerClass&&aM(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,a,n,i){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(r,a){this._disposeAxisPointer(a),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var s=nM(r);s?(this._axisPointer||(this._axisPointer=new i)).render(r,s,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,a){jm[r]=a},t.getAxisPointerClass=function(r){return r&&jm[r]},t.type="axis",t})(ii),ua=Xt();function sM(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,jS(t,r,e),X(r,function(a){X(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Sr(oM,e))})}),t.wrapMethod("cloneShallow",Sr(lM,e)),X(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,Sr(fM,e))}),Yr(r[t.dataType]===t)}function oM(e,t){if(hM(this)){var r=Se({},ua(this).datas);r[this.dataType]=t,jS(t,r,e)}else jp(t,this.dataType,ua(this).mainData,e);return t}function fM(e,t){return e.struct&&e.struct.update(),t}function lM(e,t){return X(ua(t).datas,function(r,a){r!==t&&jp(r.cloneShallow(),a,t,e)}),t}function uM(e){var t=ua(this).mainData;return e==null||t==null?t:ua(t).datas[e]}function cM(){var e=ua(this).mainData;return e==null?[{data:e}]:$e(at(ua(e).datas),function(t){return{type:t,data:ua(e).datas[t]}})}function hM(e){return ua(e).mainData===e}function jS(e,t,r){ua(e).datas={},X(t,function(a,n){jp(a,n,e,r)})}function jp(e,t,r,a){ua(r).datas[t]=e,ua(e).mainData=r,e.dataType=t,a.struct&&(e[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=e),e.getLinkedData=uM,e.getLinkedDataAll=cM}var sl=X,dM=Re,bu=-1,qp=(function(){function e(t){var r=t.mappingMethod,a=t.type,n=this.option=je(t);this.type=a,this.mappingMethod=r,this._normalizeData=gM[r];var i=e.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(Zh(n),vM(n)):r==="category"?n.categories?pM(n):Zh(n,!0):(Yr(r!=="linear"||n.dataExtent),Zh(n))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Et(this._normalizeData,this)},e.listVisualTypes=function(){return at(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,a){Re(t)?X(t,r,a):r.call(a,t)},e.mapVisual=function(t,r,a){var n,i=Ie(t)?[]:Re(t)?{}:(n=!0,null);return e.eachVisual(t,function(s,o){var f=r.call(a,s,o);n?i=f:i[o]=f}),i},e.retrieveVisuals=function(t){var r={},a;return t&&sl(e.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(r[i]=t[i],a=!0)}),a?r:null},e.prepareVisualTypes=function(t){if(Ie(t))t=t.slice();else if(dM(t)){var r=[];sl(t,function(a,n){r.push(n)}),t=r}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,a){for(var n,i=1/0,s=0,o=r.length;s<o;s++){var f=r[s].value;if(f!=null){if(f===t||Me(f)&&f===t+"")return s;a&&h(f,s)}}for(var s=0,o=r.length;s<o;s++){var l=r[s],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(_0(c[1],t,u[1]))return s}else if(u[1]===1/0){if(_0(c[0],u[0],t))return s}else if(_0(c[0],u[0],t)&&_0(c[1],t,u[1]))return s;a&&h(u[0],s),a&&h(u[1],s)}}if(a)return t===1/0?r.length-1:t===-1/0?0:n;function h(d,v){var p=Math.abs(d-t);p<i&&(i=p,n=v)}},e.visualHandlers={color:{applyVisual:jo("color"),getColorMapper:function(){var t=this.option;return Et(t.mappingMethod==="category"?function(r,a){return!a&&(r=this._normalizeData(r)),sf.call(this,r)}:function(r,a,n){var i=!!n;return!a&&(r=this._normalizeData(r)),n=Jc(r,t.parsedVisual,n),i?n:es(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return es(Jc(t,this.option.parsedVisual),"rgba")},category:sf,piecewise:function(t,r){var a=yv.call(this,r);return a==null&&(a=es(Jc(t,this.option.parsedVisual),"rgba")),a},fixed:Ui}},colorHue:x0(function(t,r){return Qc(t,r)}),colorSaturation:x0(function(t,r){return Qc(t,null,r)}),colorLightness:x0(function(t,r){return Qc(t,null,null,r)}),colorAlpha:x0(function(t,r){return WD(t,r)}),decal:{applyVisual:jo("decal"),_normalizedToVisual:{linear:null,category:sf,piecewise:null,fixed:null}},opacity:{applyVisual:jo("opacity"),_normalizedToVisual:_v([0,1])},liftZ:{applyVisual:jo("liftZ"),_normalizedToVisual:{linear:Ui,category:Ui,piecewise:Ui,fixed:Ui}},symbol:{applyVisual:function(t,r,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:qm,category:sf,piecewise:function(t,r){var a=yv.call(this,r);return a==null&&(a=qm.call(this,t)),a},fixed:Ui}},symbolSize:{applyVisual:jo("symbolSize"),_normalizedToVisual:_v([0,1])}},e})();function vM(e){var t=e.pieceList;e.hasSpecialVisual=!1,X(t,function(r,a){r.originIndex=a,r.visual!=null&&(e.hasSpecialVisual=!0)})}function pM(e){var t=e.categories,r=e.categoryMap={},a=e.visual;if(sl(t,function(s,o){r[s]=o}),!Ie(a)){var n=[];Re(a)?sl(a,function(s,o){var f=r[o];n[f??bu]=s}):n[bu]=a,a=qS(e,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete r[t[i]],t.pop())}function Zh(e,t){var r=e.visual,a=[];Re(r)?sl(r,function(i){a.push(i)}):r!=null&&a.push(r);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(e.type)&&(a[1]=a[0]),qS(e,a)}function x0(e){return{applyVisual:function(t,r,a){var n=this.mapValueToVisual(t);a("color",e(r("color"),n))},_normalizedToVisual:_v([0,1])}}function qm(e){var t=this.option.visual;return t[Math.round(jf(e,[0,1],[0,t.length-1]))]||{}}function jo(e){return function(t,r,a){a(e,this.mapValueToVisual(t))}}function sf(e){var t=this.option.visual;return t[this.option.loop&&e!==bu?e%t.length:e]}function Ui(){return this.option.visual[0]}function _v(e){return{linear:function(t){return jf(t,e,this.option.visual)},category:sf,piecewise:function(t,r){var a=yv.call(this,r);return a==null&&(a=jf(t,e,this.option.visual)),a},fixed:Ui}}function yv(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var a=qp.findPieceIndex(e,r),n=r[a];if(n&&n.visual)return n.visual[this.type]}}function qS(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=$e(t,function(r){var a=Ka(r);return a||[0,0,0,1]})),t}var gM={linear:function(e){return jf(e,this.option.dataExtent,[0,1])},piecewise:function(e){var t=this.option.pieceList,r=qp.findPieceIndex(e,t,!0);if(r!=null)return jf(r,[0,t.length-1],[0,1])},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??bu},fixed:lr};function _0(e,t,r){return e?t<=r:t<r}function Us(e){return"_EC_"+e}var mM=(function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var a=this._nodesMap;if(!a[Us(t)]){var n=new Hi(t,r);return n.hostGraph=this,this.nodes.push(n),a[Us(t)]=n,n}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Us(t)]},e.prototype.addEdge=function(t,r,a){var n=this._nodesMap,i=this._edgesMap;if(It(t)&&(t=this.nodes[t]),It(r)&&(r=this.nodes[r]),t instanceof Hi||(t=n[Us(t)]),r instanceof Hi||(r=n[Us(r)]),!(!t||!r)){var s=t.id+"-"+r.id,o=new JS(t,r,a);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),r.inEdges.push(o)),t.edges.push(o),t!==r&&r.edges.push(o),this.edges.push(o),i[s]=o,o}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Hi&&(t=t.id),r instanceof Hi&&(r=r.id);var a=this._edgesMap;return this._directed?a[t+"-"+r]:a[t+"-"+r]||a[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(r,a[i],i)},e.prototype.eachEdge=function(t,r){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(r,a[i],i)},e.prototype.breadthFirstTraverse=function(t,r,a,n){if(r instanceof Hi||(r=this._nodesMap[Us(r)]),!!r){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(n,r,null))for(var o=[r];o.length;)for(var f=o.shift(),l=f[i],s=0;s<l.length;s++){var u=l[s],c=u.node1===f?u.node2:u.node1;if(!c.__visited){if(t.call(n,c,f))return;o.push(c),c.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,a=this.nodes,n=this.edges,i=0,s=a.length;i<s;i++)a[i].dataIndex=-1;for(var i=0,s=t.count();i<s;i++)a[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(o){var f=n[r.getRawIndex(o)];return f.node1.dataIndex>=0&&f.node2.dataIndex>=0});for(var i=0,s=n.length;i<s;i++)n[i].dataIndex=-1;for(var i=0,s=r.count();i<s;i++)n[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,a=this.edges,n=0;n<r.length;n++)t.addNode(r[n].id,r[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e})(),Hi=(function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,a=r.data.getItemModel(this.dataIndex);return a.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var a=this.edges[r];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=Xe(),r=Xe(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){t.set(n.dataIndex,!0);for(var i=[n.node1],s=[n.node2],o=0;o<i.length;){var f=i[o];o++,r.set(f.dataIndex,!0);for(var l=0;l<f.inEdges.length;l++)t.set(f.inEdges[l].dataIndex,!0),i.push(f.inEdges[l].node1)}for(o=0;o<s.length;){var u=s[o];o++,r.set(u.dataIndex,!0);for(var l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),s.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:r.keys()}},e})(),JS=(function(){function e(t,r,a){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=a??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,a=r.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=Xe(),r=Xe();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var s=a[i];i++,r.set(s.dataIndex,!0);for(var o=0;o<s.inEdges.length;o++)t.set(s.inEdges[o].dataIndex,!0),a.push(s.inEdges[o].node1)}for(i=0;i<n.length;){var f=n[i];i++,r.set(f.dataIndex,!0);for(var o=0;o<f.outEdges.length;o++)t.set(f.outEdges[o].dataIndex,!0),n.push(f.outEdges[o].node2)}return{edge:t.keys(),node:r.keys()}},e})();function QS(e,t){return{getValue:function(r){var a=this[e][t];return a.getStore().get(a.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,a){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,a)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,a){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,a)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Fa(Hi,QS("hostGraph","data"));Fa(JS,QS("hostGraph","edgeData"));function xM(e,t,r,a,n){for(var i=new mM(a),s=0;s<e.length;s++)i.addNode(ss(e[s].id,e[s].name,s),s);for(var o=[],f=[],l=0,s=0;s<t.length;s++){var u=t[s],c=u.source,h=u.target;i.addEdge(c,h,l)&&(f.push(u),o.push(ss(Da(u.id,null),c+" > "+h)),l++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=UI(e,r);else{var p=pc.get(d),g=p?p.dimensions||[]:[];wt(g,"value")<0&&g.concat(["value"]);var m=YS(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;v=new mv(m,r),v.initData(e)}var x=new mv(["value"],r);return x.initData(f,o),n&&n(v,x),sM({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var _M=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e})(),yM=(function(e){He(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _M},t.prototype.buildPath=function(r,a){var n=a.extent;r.moveTo(a.x1,a.y1),r.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(r.lineTo(a.x2+n,a.y2),r.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(r.lineTo(a.x2,a.y2+n),r.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),r.closePath()},t.prototype.highlight=function(){vu(this)},t.prototype.downplay=function(){pu(this)},t})(gt),wM=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,a,n){var i=this,s=r.getGraph(),o=this.group,f=r.layoutInfo,l=f.width,u=f.height,c=r.getData(),h=r.getData("edge"),d=r.get("orient");this._model=r,o.removeAll(),o.x=f.x,o.y=f.y,s.eachEdge(function(v){var p=new yM,g=St(p);g.dataIndex=v.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=v.getModel(),x=m.getModel("lineStyle"),_=x.get("curveness"),y=v.node1.getLayout(),F=v.node1.getModel(),k=F.get("localX"),E=F.get("localY"),C=v.node2.getLayout(),T=v.node2.getModel(),b=T.get("localX"),M=T.get("localY"),R=v.getLayout(),B,G,re,j,q,ve,U,xe;p.shape.extent=Math.max(1,R.dy),p.shape.orient=d,d==="vertical"?(B=(k!=null?k*l:y.x)+R.sy,G=(E!=null?E*u:y.y)+y.dy,re=(b!=null?b*l:C.x)+R.ty,j=M!=null?M*u:C.y,q=B,ve=G*(1-_)+j*_,U=re,xe=G*_+j*(1-_)):(B=(k!=null?k*l:y.x)+y.dx,G=(E!=null?E*u:y.y)+R.sy,re=b!=null?b*l:C.x,j=(M!=null?M*u:C.y)+R.ty,q=B*(1-_)+re*_,ve=G,U=B*_+re*(1-_),xe=j),p.setShape({x1:B,y1:G,x2:re,y2:j,cpx1:q,cpy1:ve,cpx2:U,cpy2:xe}),p.useStyle(x.getItemStyle()),Jm(p.style,d,v);var se=""+m.get("value"),P=I2(m,"edgeLabel");F2(p,P,{labelFetcher:{getFormattedLabel:function(z,ae,pe,le,ie,ne){return r.getFormattedLabel(z,ae,"edge",le,yf(ie,P.normal&&P.normal.get("formatter"),se),ne)}},labelDataIndex:v.dataIndex,defaultText:se}),p.setTextConfig({position:"inside"});var V=m.getModel("emphasis");x2(p,m,"lineStyle",function(z){var ae=z.getItemStyle();return Jm(ae,d,v),ae}),o.add(p),h.setItemGraphicEl(v.dataIndex,p);var H=V.get("focus");g2(p,H==="adjacency"?v.getAdjacentDataIndices():H==="trajectory"?v.getTrajectoryDataIndices():H,V.get("blurScope"),V.get("disabled"))}),s.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),x=g.get("localY"),_=g.getModel("emphasis"),y=g.get(["itemStyle","borderRadius"])||0,F=new Xr({shape:{x:m!=null?m*l:p.x,y:x!=null?x*u:p.y,width:p.dx,height:p.dy,r:y},style:g.getModel("itemStyle").getItemStyle(),z2:10});F2(F,I2(g),{labelFetcher:{getFormattedLabel:function(E,C){return r.getFormattedLabel(E,C,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),F.disableLabelAnimation=!0,F.setStyle("fill",v.getVisual("color")),F.setStyle("decal",v.getVisual("style").decal),x2(F,g),o.add(F),c.setItemGraphicEl(v.dataIndex,F),St(F).dataType="node";var k=_.get("focus");g2(F,k==="adjacency"?v.getAdjacentDataIndices():k==="trajectory"?v.getTrajectoryDataIndices():k,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(v,p){var g=c.getItemModel(p);g.get("draggable")&&(v.drift=function(m,x){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=x,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&o.setClipPath(TM(o.getBoundingRect(),r,function(){o.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(qn);function Jm(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var a=r.node1.getVisual("color"),n=r.node2.getVisual("color");Me(a)&&Me(n)&&(e.fill=new yT(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function TM(e,t,r){var a=new Xr({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return wT(a,{shape:{width:e.width+20}},t,r),a}var SM=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,a){var n=r.edges||r.links||[],i=r.data||r.nodes||[],s=r.levels||[];this.levelModels=[];for(var o=this.levelModels,f=0;f<s.length;f++)s[f].depth!=null&&s[f].depth>=0&&(o[s[f].depth]=new Dt(s[f],this,a));var l=xM(i,n,this,!0,u);return l.data;function u(c,h){c.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,x=p.levelModels[m];x&&(d.parentModel=x)}return d}),h.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var x=m.depth,_=p.levelModels[x];_&&(d.parentModel=_)}return d})}},t.prototype.setNodePosition=function(r,a){var n=this.option.data||this.option.nodes,i=n[r];i.localX=a[0],i.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,a,n){function i(d){return isNaN(d)||d==null}if(n==="edge"){var s=this.getDataParams(r,n),o=s.data,f=s.value,l=o.source+" -- "+o.target;return fs("nameValue",{name:l,value:f,noValue:i(f)})}else{var u=this.getGraph().getNodeByIndex(r),c=u.getLayout().value,h=this.getDataParams(r,n).data.name;return fs("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,a){var n=e.prototype.getDataParams.call(this,r,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(r),s=i.getLayout().value;n.value=s}return n},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t})(ni);function EM(e,t){e.eachSeriesByType("sankey",function(r){var a=r.get("nodeWidth"),n=r.get("nodeGap"),i=CM(r,t);r.layoutInfo=i;var s=i.width,o=i.height,f=r.getGraph(),l=f.nodes,u=f.edges;DM(l);var c=Hr(l,function(p){return p.getLayout().value===0}),h=c.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");AM(l,u,a,n,s,o,h,d,v)})}function CM(e,t){return BT(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function AM(e,t,r,a,n,i,s,o,f){kM(e,t,r,n,i,o,f),MM(e,t,i,n,a,s,o),VM(e,o)}function DM(e){X(e,function(t){var r=Jn(t.outEdges,Fu),a=Jn(t.inEdges,Fu),n=t.getValue()||0,i=Math.max(r,a,n);t.setLayout({value:i},!0)})}function kM(e,t,r,a,n,i,s){for(var o=[],f=[],l=[],u=[],c=0,h=0;h<t.length;h++)o[h]=1;for(var h=0;h<e.length;h++)f[h]=e[h].inEdges.length,f[h]===0&&l.push(e[h]);for(var d=-1;l.length;){for(var v=0;v<l.length;v++){var p=l[v],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>d&&(d=g.depth),p.setLayout({depth:m?g.depth:c},!0),i==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var x=0;x<p.outEdges.length;x++){var _=p.outEdges[x],y=t.indexOf(_);o[y]=0;var F=_.node2,k=e.indexOf(F);--f[k]===0&&u.indexOf(F)<0&&u.push(F)}}++c,l=u,u=[]}for(var h=0;h<o.length;h++)if(o[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var E=d>c-1?d:c-1;s&&s!=="left"&&bM(e,s,i,E);var C=i==="vertical"?(n-r)/E:(a-r)/E;IM(e,C,i)}function e4(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function bM(e,t,r,a){if(t==="right"){for(var n=[],i=e,s=0;i.length;){for(var o=0;o<i.length;o++){var f=i[o];f.setLayout({skNodeHeight:s},!0);for(var l=0;l<f.inEdges.length;l++){var u=f.inEdges[l];n.indexOf(u.node1)<0&&n.push(u.node1)}}i=n,n=[],++s}X(e,function(c){e4(c)||c.setLayout({depth:Math.max(0,a-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&FM(e,a)}function FM(e,t){X(e,function(r){!e4(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function IM(e,t,r){X(e,function(a){var n=a.getLayout().depth*t;r==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function MM(e,t,r,a,n,i,s){var o=RM(e,s);PM(o,t,r,a,n,s),jh(o,n,r,a,s);for(var f=1;i>0;i--)f*=.99,LM(o,f,s),jh(o,n,r,a,s),HM(o,f,s),jh(o,n,r,a,s)}function RM(e,t){var r=[],a=t==="vertical"?"y":"x",n=Wk(e,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,s){return i-s}),X(n.keys,function(i){r.push(n.buckets.get(i))}),r}function PM(e,t,r,a,n,i){var s=1/0;X(e,function(o){var f=o.length,l=0;X(o,function(c){l+=c.getLayout().value});var u=i==="vertical"?(a-(f-1)*n)/l:(r-(f-1)*n)/l;u<s&&(s=u)}),X(e,function(o){X(o,function(f,l){var u=f.getLayout().value*s;i==="vertical"?(f.setLayout({x:l},!0),f.setLayout({dx:u},!0)):(f.setLayout({y:l},!0),f.setLayout({dy:u},!0))})}),X(t,function(o){var f=+o.getValue()*s;o.setLayout({dy:f},!0)})}function jh(e,t,r,a,n){var i=n==="vertical"?"x":"y";X(e,function(s){s.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var o,f,l,u=0,c=s.length,h=n==="vertical"?"dx":"dy",d=0;d<c;d++)f=s[d],l=u-f.getLayout()[i],l>0&&(o=f.getLayout()[i]+l,n==="vertical"?f.setLayout({x:o},!0):f.setLayout({y:o},!0)),u=f.getLayout()[i]+f.getLayout()[h]+t;var v=n==="vertical"?a:r;if(l=u-t-v,l>0){o=f.getLayout()[i]-l,n==="vertical"?f.setLayout({x:o},!0):f.setLayout({y:o},!0),u=o;for(var d=c-2;d>=0;--d)f=s[d],l=f.getLayout()[i]+f.getLayout()[h]+t-u,l>0&&(o=f.getLayout()[i]-l,n==="vertical"?f.setLayout({x:o},!0):f.setLayout({y:o},!0)),u=f.getLayout()[i]}})}function LM(e,t,r){X(e.slice().reverse(),function(a){X(a,function(n){if(n.outEdges.length){var i=Jn(n.outEdges,OM,r)/Jn(n.outEdges,Fu);if(isNaN(i)){var s=n.outEdges.length;i=s?Jn(n.outEdges,BM,r)/s:0}if(r==="vertical"){var o=n.getLayout().x+(i-si(n,r))*t;n.setLayout({x:o},!0)}else{var f=n.getLayout().y+(i-si(n,r))*t;n.setLayout({y:f},!0)}}})})}function OM(e,t){return si(e.node2,t)*e.getValue()}function BM(e,t){return si(e.node2,t)}function NM(e,t){return si(e.node1,t)*e.getValue()}function UM(e,t){return si(e.node1,t)}function si(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Fu(e){return e.getValue()}function Jn(e,t,r){for(var a=0,n=e.length,i=-1;++i<n;){var s=+t(e[i],r);isNaN(s)||(a+=s)}return a}function HM(e,t,r){X(e,function(a){X(a,function(n){if(n.inEdges.length){var i=Jn(n.inEdges,NM,r)/Jn(n.inEdges,Fu);if(isNaN(i)){var s=n.inEdges.length;i=s?Jn(n.inEdges,UM,r)/s:0}if(r==="vertical"){var o=n.getLayout().x+(i-si(n,r))*t;n.setLayout({x:o},!0)}else{var f=n.getLayout().y+(i-si(n,r))*t;n.setLayout({y:f},!0)}}})})}function VM(e,t){var r=t==="vertical"?"x":"y";X(e,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[r]-i.node2.getLayout()[r]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[r]-i.node1.getLayout()[r]})}),X(e,function(a){var n=0,i=0;X(a.outEdges,function(s){s.setLayout({sy:n},!0),n+=s.getLayout().dy}),X(a.inEdges,function(s){s.setLayout({ty:i},!0),i+=s.getLayout().dy})})}function zM(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),a=r.nodes,n=r.edges;if(a.length){var i=1/0,s=-1/0;X(a,function(o){var f=o.getLayout().value;f<i&&(i=f),f>s&&(s=f)}),X(a,function(o){var f=new qp({type:"color",mappingMethod:"linear",dataExtent:[i,s],visual:t.get("color")}),l=f.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}n.length&&X(n,function(o){var f=o.getModel().get("lineStyle");o.setVisual("style",f)})})}function WM(e){e.registerChartView(wM),e.registerSeriesModel(SM),e.registerLayout(EM),e.registerVisual(zM),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Wi=Xt(),Qm=je,qh=Et,GM=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,a,n){var i=r.get("value"),s=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===s)){this._lastValue=i,this._lastStatus=s;var o=this._group,f=this._handle;if(!s||s==="hide"){o&&o.hide(),f&&f.hide();return}o&&o.show(),f&&f.show();var l={};this.makeElOption(l,i,t,r,a);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,r);if(!o)o=this._group=new Sn,this.createPointerEl(o,l,t,r),this.createLabelEl(o,l,t,r),a.getZr().add(o);else{var h=Sr(ex,r,c);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,r)}rx(o,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var a=r.get("animation"),n=t.axis,i=n.type==="category",s=r.get("snap");if(!s&&!i)return!1;if(a==="auto"||a==null){var o=this.animationThreshold;if(i&&n.getBandWidth()>o)return!0;if(s){var f=Zp(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/f>o}return!1}return a===!0},e.prototype.makeElOption=function(t,r,a,n,i){},e.prototype.createPointerEl=function(t,r,a,n){var i=r.pointer;if(i){var s=Wi(t).pointerEl=new Jb[i.type](Qm(r.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,r,a,n){if(r.label){var i=Wi(t).labelEl=new qa(Qm(r.label));t.add(i),tx(i,n)}},e.prototype.updatePointerEl=function(t,r,a){var n=Wi(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),a(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,a,n){var i=Wi(t).labelEl;i&&(i.setStyle(r.label.style),a(i,{x:r.label.x,y:r.label.y}),tx(i,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=r.getModel("handle"),s=r.get("status");if(!i.get("show")||!s||s==="hide"){n&&a.remove(n),this._handle=null;return}var o;this._handle||(o=!0,n=this._handle=AT(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){cw(l.event)},onmousedown:qh(this._onHandleDragMove,this,0,0),drift:qh(this._onHandleDragMove,this),ondragend:qh(this._onHandleDragEnd,this)}),a.add(n)),rx(n,r,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=i.get("size");Ie(f)||(f=[f,f]),n.scaleX=f[0]/2,n.scaleY=f[1]/2,cS(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},e.prototype._moveHandleToValue=function(t,r){ex(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Jh(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Jh(a),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Jh(n)),Wi(a).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),a=this._group,n=this._handle;r&&a&&(this._lastGraphicKey=null,a&&r.remove(a),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),lv(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,a){return a=a||0,{x:t[a],y:t[1-a],width:r[a],height:r[1-a]}},e})();function ex(e,t,r,a){t4(Wi(r).lastProp,a)||(Wi(r).lastProp=a,t?kp(r,a,e):(r.stopAnimation(),r.attr(a)))}function t4(e,t){if(Re(e)&&Re(t)){var r=!0;return X(t,function(a,n){r=r&&t4(e[n],a)}),!!r}else return e===t}function tx(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Jh(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function rx(e,t,r){var a=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=r)})}function $M(e){var t=e.get("type"),r=e.getModel(t+"Style"),a;return t==="line"?(a=r.getLineStyle(),a.fill=null):t==="shadow"&&(a=r.getAreaStyle(),a.stroke=null),a}function XM(e,t,r,a,n){var i=r.get("value"),s=r4(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),o=r.getModel("label"),f=Lp(o.get("padding")||0),l=o.getFont(),u=Pw(s,l),c=n.position,h=u.width+f[1]+f[3],d=u.height+f[0]+f[2],v=n.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),YM(c,h,d,a);var g=o.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:el(o,{text:s,font:l,fill:o.getTextColor(),padding:f,backgroundColor:g}),z2:10}}function YM(e,t,r,a){var n=a.getWidth(),i=a.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function r4(e,t,r,a,n){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:n.precision}),s=n.formatter;if(s){var o={value:KS(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};X(a,function(f){var l=r.getSeriesByIndex(f.seriesIndex),u=f.dataIndexInside,c=l&&l.getDataParams(u);c&&o.seriesData.push(c)}),Me(s)?i=s.replace("{value}",i):ft(s)&&(i=s(o))}return i}function a4(e,t,r){var a=io();return op(a,a,r.rotation),Pd(a,a,r.position),Ip([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],a)}function KM(e,t,r,a,n,i){var s=as.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),XM(t,a,n,i,{position:a4(a.axis,e,r),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function ZM(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function jM(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var qM=(function(e){He(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,a,n,i,s){var o=n.axis,f=o.grid,l=i.get("type"),u=ax(f,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(a,!0));if(l&&l!=="none"){var h=$M(i),d=JM[l](o,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=Xm(f.model,n);KM(a,r,v,n,i,s)},t.prototype.getHandleTransform=function(r,a,n){var i=Xm(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var s=a4(a.axis,r,i);return{x:s[0],y:s[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,a,n,i){var s=n.axis,o=s.grid,f=s.getGlobalExtent(!0),l=ax(o,s).getOtherAxis(s).getGlobalExtent(),u=s.dim==="x"?0:1,c=[r.x,r.y];c[u]+=a[u],c[u]=Math.min(f[1],c[u]),c[u]=Math.max(f[0],c[u]);var h=(l[1]+l[0])/2,d=[h,h];d[u]=c[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[u]}},t})(GM);function ax(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var JM={line:function(e,t,r){var a=ZM([t,r[0]],[t,r[1]],nx(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r){var a=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:jM([t-a/2,r[0]],[a,n],nx(e))}}};function nx(e){return e.dim==="x"?0:1}var QM=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.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}},t})(yt),vn=Xt(),eR=X;function n4(e,t,r){if(!Ne.node){var a=t.getZr();vn(a).records||(vn(a).records={}),tR(a,t);var n=vn(a).records[e]||(vn(a).records[e]={});n.handler=r}}function tR(e,t){if(vn(e).initialized)return;vn(e).initialized=!0,r("click",Sr(ix,"click")),r("mousemove",Sr(ix,"mousemove")),r("globalout",aR);function r(a,n){e.on(a,function(i){var s=nR(t);eR(vn(e).records,function(o){o&&n(o,i,s.dispatchAction)}),rR(s.pendings,t)})}}function rR(e,t){var r=e.showTip.length,a=e.hideTip.length,n;r?n=e.showTip[r-1]:a&&(n=e.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function aR(e,t,r){e.handler("leave",null,r)}function ix(e,t,r,a){t.handler(e,r,a)}function nR(e){var t={showTip:[],hideTip:[]},r=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=r,e.dispatchAction(a))};return{dispatchAction:r,pendings:t}}function wv(e,t){if(!Ne.node){var r=t.getZr(),a=(vn(r).records||{})[e];a&&(vn(r).records[e]=null)}}var iR=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,a,n){var i=a.getComponent("tooltip"),s=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";n4("axisPointer",n,function(o,f,l){s!=="none"&&(o==="leave"||s.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:f&&f.offsetX,y:f&&f.offsetY})})},t.prototype.remove=function(r,a){wv("axisPointer",a)},t.prototype.dispose=function(r,a){wv("axisPointer",a)},t.type="axisPointer",t})(ii);function i4(e,t){var r=[],a=e.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),s=Cl(i,e);if(s==null||s<0||Ie(s))return{point:[]};var o=i.getItemGraphicEl(s),f=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(s)||[];else if(f&&f.dataToPoint)if(e.isStacked){var l=f.getBaseAxis(),u=f.getOtherAxis(l),c=u.dim,h=l.dim,d=c==="x"||c==="radius"?1:0,v=i.mapDimension(h),p=[];p[d]=i.get(v,s),p[1-d]=i.get(i.getCalculationInfo("stackResultDimension"),s),r=f.dataToPoint(p)||[]}else r=f.dataToPoint(i.getValues($e(f.dimensions,function(m){return i.mapDimension(m)}),s))||[];else if(o){var g=o.getBoundingRect().clone();g.applyTransform(o.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:o}}var sx=Xt();function sR(e,t,r){var a=e.currTrigger,n=[e.x,e.y],i=e,s=e.dispatchAction||Et(r.dispatchAction,r),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){Y0(n)&&(n=i4({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var f=Y0(n),l=i.axesInfo,u=o.axesInfo,c=a==="leave"||Y0(n),h={},d={},v={list:[],map:{}},p={showPointer:Sr(fR,d),showTooltip:Sr(lR,v)};X(o.coordSysMap,function(m,x){var _=f||m.containPoint(n);X(o.coordSysAxesInfo[x],function(y,F){var k=y.axis,E=dR(l,y);if(!c&&_&&(!l||E)){var C=E&&E.value;C==null&&!f&&(C=k.pointToData(n)),C!=null&&ox(y,C,p,!1,h)}})});var g={};return X(u,function(m,x){var _=m.linkGroup;_&&!d[x]&&X(_.axesInfo,function(y,F){var k=d[F];if(y!==m&&k){var E=k.value;_.mapper&&(E=m.axis.scale.parse(_.mapper(E,fx(y),fx(m)))),g[m.key]=E}})}),X(g,function(m,x){ox(u[x],m,p,!0,h)}),uR(d,u,h),cR(v,n,e,s),hR(u,s,r),h}}function ox(e,t,r,a,n){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var s=oR(t,e),o=s.payloadBatch,f=s.snapToValue;o[0]&&n.seriesIndex==null&&Se(n,o[0]),!a&&e.snap&&i.containData(f)&&f!=null&&(t=f),r.showPointer(e,t,o),r.showTooltip(e,s,f)}}function oR(e,t){var r=t.axis,a=r.dim,n=e,i=[],s=Number.MAX_VALUE,o=-1;return X(t.seriesModels,function(f,l){var u=f.getData().mapDimensionsAll(a),c,h;if(f.getAxisTooltipData){var d=f.getAxisTooltipData(u,e,r);h=d.dataIndices,c=d.nestestValue}else{if(h=f.getData().indicesOfNearest(u[0],e,r.type==="category"?.5:null),!h.length)return;c=f.getData().get(u[0],h[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=s&&((p<s||v>=0&&o<0)&&(s=p,o=v,n=c,i.length=0),X(h,function(g){i.push({seriesIndex:f.seriesIndex,dataIndexInside:g,dataIndex:f.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function fR(e,t,r,a){e[t.key]={value:r,payloadBatch:a}}function lR(e,t,r,a){var n=r.payloadBatch,i=t.axis,s=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var f=t.coordSys.model,l=il(f),u=e.map[l];u||(u=e.map[l]={coordSysId:f.id,coordSysIndex:f.componentIndex,coordSysType:f.type,coordSysMainType:f.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:a,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function uR(e,t,r){var a=r.axesInfo=[];X(t,function(n,i){var s=n.axisPointerModel.option,o=e[i];o?(!n.useHandle&&(s.status="show"),s.value=o.value,s.seriesDataIndices=(o.payloadBatch||[]).slice()):!n.useHandle&&(s.status="hide"),s.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:s.value})})}function cR(e,t,r,a){if(Y0(t)||!e.list.length){a({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function hR(e,t,r){var a=r.getZr(),n="axisPointerLastHighlights",i=sx(a)[n]||{},s=sx(a)[n]={};X(e,function(l,u){var c=l.axisPointerModel.option;c.status==="show"&&l.triggerEmphasis&&X(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;s[d]=h})});var o=[],f=[];X(i,function(l,u){!s[u]&&f.push(l)}),X(s,function(l,u){!i[u]&&o.push(l)}),f.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),o.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function dR(e,t){for(var r=0;r<(e||[]).length;r++){var a=e[r];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function fx(e){var t=e.axis.model,r={},a=r.axisDim=e.axis.dim;return r.axisIndex=r[a+"AxisIndex"]=t.componentIndex,r.axisName=r[a+"AxisName"]=t.name,r.axisId=r[a+"AxisId"]=t.id,r}function Y0(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function vR(e){iM.registerAxisPointerClass("CartesianAxisPointer",qM),e.registerComponentModel(QM),e.registerComponentView(iR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Ie(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=JI(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sR)}var pR=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t})(yt);function s4(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function o4(e){if(Ne.domSupported){for(var t=document.documentElement.style,r=0,a=e.length;r<a;r++)if(e[r]in t)return e[r]}}var f4=o4(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),gR=o4(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function l4(e,t){if(!e)return t;t=PT(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function mR(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var xR=l4(gR,"transition"),Jp=l4(f4,"transform"),_R="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ne.transform3dSupported?"will-change:transform;":"");function yR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function wR(e,t,r){if(!Me(r)||r==="inside")return"";var a=e.get("backgroundColor"),n=e.get("borderWidth");t=tl(t);var i=yR(r),s=Math.max(Math.round(n)*1.5,6),o="",f=Jp+":",l;wt(["left","right"],i)>-1?(o+="top:50%",f+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",f+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,c=s+n,h=c*Math.abs(Math.cos(u))+c*Math.abs(Math.sin(u)),d=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;o+=";"+i+":-"+d+"px";var v=t+" solid "+n+"px;",p=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",o+";"+f+";","border-bottom:"+v,"border-right:"+v,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function TR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",a=" "+e/2+"s "+r,n="opacity"+a+",visibility"+a;return t||(a=" "+e+"s "+r,n+=Ne.transformSupported?","+Jp+a:",left"+a+",top"+a),xR+":"+n}function lx(e,t,r){var a=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Ne.transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ne.transform3dSupported,s="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+Jp+":"+s+";":[["top",0],["left",0],[f4,s]]}function SR(e){var t=[],r=e.get("fontSize"),a=e.getTextColor();a&&t.push("color:"+a),t.push("font:"+e.getFont());var n=ze(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+n+"px");var i=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,f=e.get("textShadowOffsetY")||0;return i&&s&&t.push("text-shadow:"+o+"px "+f+"px "+s+"px "+i),X(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function ER(e,t,r){var a=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),s=e.get("shadowBlur"),o=e.get("shadowColor"),f=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),u=e.getModel("textStyle"),c=fS(e,"html"),h=f+"px "+l+"px "+s+"px "+o;return a.push("box-shadow:"+h),t&&n&&a.push(TR(n,r)),i&&a.push("background-color:"+i),X(["width","color","radius"],function(d){var v="border-"+d,p=PT(v),g=e.get(p);g!=null&&a.push(v+":"+g+(d==="color"?"":"px"))}),a.push(SR(u)),c!=null&&a.push("padding:"+Lp(c).join("px ")+"px"),a.join(";")+";"}function ux(e,t,r,a,n){var i=t&&t.painter;if(r){var s=i&&i.getViewportRoot();s&&uD(e,s,r,a,n)}else{e[0]=a,e[1]=n;var o=i&&i.getViewportRootOffset();o&&(e[0]+=o.offsetLeft,e[1]+=o.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var CR=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ne.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=r.appendTo,s=i&&(Me(i)?document.querySelector(i):Xf(i)?i:ft(i)&&i(t.getDom()));ux(this._styleCoord,n,s,t.getWidth()/2,t.getHeight()/2),(s||t.getDom()).appendChild(a),this._api=t,this._container=s;var o=this;a.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},a.onmousemove=function(f){if(f=f||window.event,!o._enterable){var l=n.handler,u=n.painter.getViewportRoot();ta(u,f,!0),l.dispatch("mousemove",f)}},a.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),a=mR(r,"position"),n=r.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=_R+ER(t,!this._firstShow,this._longHide)+lx(i[0],i[1],!0)+("border-color:"+tl(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,a,n,i){var s=this.el;if(t==null){s.innerHTML="";return}var o="";if(Me(i)&&a.get("trigger")==="item"&&!s4(a)&&(o=wR(a,n,i)),Me(t))s.innerHTML=t+o;else if(t){s.innerHTML="",Ie(t)||(t=[t]);for(var f=0;f<t.length;f++)Xf(t[f])&&t[f].parentNode!==s&&s.appendChild(t[f]);if(o&&s.childNodes.length){var l=document.createElement("div");l.innerHTML=o,s.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var a=this._styleCoord;if(ux(a,this._zr,this._container,t,r),a[0]!=null&&a[1]!=null){var n=this.el.style,i=lx(a[0],a[1]);X(i,function(s){n[s[0]]=s[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ne.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e})(),AR=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),hx(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,a,n,i){var s=this;Re(t)&&Pr(""),this.el&&this._zr.remove(this.el);var o=a.getModel("textStyle");this.el=new qa({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:o.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:fS(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),X(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){s.el.style[l]=a.get(l)}),X(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){s.el.style[l]=o.get(l)||0}),this._zr.add(this.el);var f=this;this.el.on("mouseover",function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0}),this.el.on("mouseout",function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),a=cx(t.style);return[r.width+a.left+a.right,r.height+a.top+a.bottom]},e.prototype.moveTo=function(t,r){var a=this.el;if(a){var n=this._styleCoord;hx(n,this._zr,t,r),t=n[0],r=n[1];var i=a.style,s=Nn(i.borderWidth||0),o=cx(i);a.x=t+s+o.left,a.y=r+s+o.top,a.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Nn(e){return Math.max(0,e)}function cx(e){var t=Nn(e.shadowBlur||0),r=Nn(e.shadowOffsetX||0),a=Nn(e.shadowOffsetY||0);return{left:Nn(t-r),right:Nn(t+r),top:Nn(t-a),bottom:Nn(t+a)}}function hx(e,t,r,a){e[0]=r,e[1]=a,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var DR=new Xr({shape:{x:-1,y:-1,width:2,height:2}}),kR=(function(e){He(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,a){if(!(Ne.node||!a.getDom())){var n=r.getComponent("tooltip"),i=this._renderMode=zk(n.get("renderMode"));this._tooltipContent=i==="richText"?new AR(a):new CR(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(r,a,n){if(!(Ne.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?cS(this,"_updatePosition",50,"fixRate"):lv(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,a=r.get("triggerOn");n4("itemTooltip",this._api,Et(function(n,i,s){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,s):n==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,a=this._ecModel,n=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&s.manuallyShowTip(r,a,n,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,a,n,i){if(!(i.from===this.uid||Ne.node||!n.getDom())){var s=dx(i,n);this._ticket="";var o=i.dataByCoordSys,f=MR(i,a,n);if(f){var l=f.el.getBoundingRect().clone();l.applyTransform(f.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:f.el,position:i.position,positionDefault:"bottom"},s)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=DR;u.x=i.x,u.y=i.y,u.update(),St(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},s)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},s);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,a,n,i))return;var c=i4(i,a),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},s)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},s))}},t.prototype.manuallyHideTip=function(r,a,n,i){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(dx(i,n))},t.prototype._manuallyAxisShowTip=function(r,a,n,i){var s=i.seriesIndex,o=i.dataIndex,f=a.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||o==null||f==null)){var l=a.getSeriesByIndex(s);if(l){var u=l.getData(),c=qo([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(r,a){var n=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var s=r.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,r);else if(n){var o=St(n);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var f,l;nf(n,function(u){if(St(u).dataIndex!=null)return f=u,!0;if(St(u).tooltipConfig!=null)return l=u,!0},!0),f?this._showSeriesItemTooltip(r,f,a):l?this._showComponentItemTooltip(r,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(r,a){var n=r.get("showDelay");a=Et(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(r,a){var n=this._ecModel,i=this._tooltipModel,s=[a.offsetX,a.offsetY],o=qo([a.tooltipOption],i),f=this._renderMode,l=[],u=fs("section",{blocks:[],noHeader:!0}),c=[],h=new Oh;X(r,function(x){X(x.dataByAxis,function(_){var y=n.getComponent(_.axisDim+"Axis",_.axisIndex),F=_.value;if(!(!y||F==null)){var k=r4(F,y.axis,n,_.seriesDataIndices,_.valueLabelOpt),E=fs("section",{header:k,noHeader:!Ga(k),sortBlocks:!0,blocks:[]});u.blocks.push(E),X(_.seriesDataIndices,function(C){var T=n.getSeriesByIndex(C.seriesIndex),b=C.dataIndexInside,M=T.getDataParams(b);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=KS(y.axis,{value:F}),M.axisValueLabel=k,M.marker=h.makeTooltipMarker("item",tl(M.color),f);var R=tm(T.formatTooltip(b,!0,null)),B=R.frag;if(B){var G=qo([T],i).get("valueFormatter");E.blocks.push(G?Se({valueFormatter:G},B):B)}R.text&&c.push(R.text),l.push(M)}})}})}),u.blocks.reverse(),c.reverse();var d=a.position,v=o.get("order"),p=sm(u,h,f,v,n.get("useUTC"),o.get("textStyle"));p&&c.unshift(p);var g=f==="richText"?`
`:"<br/>",m=c.join(g);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(o,d,s[0],s[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",s[0],s[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,a,n){var i=this._ecModel,s=St(a),o=s.seriesIndex,f=i.getSeriesByIndex(o),l=s.dataModel||f,u=s.dataIndex,c=s.dataType,h=l.getData(c),d=this._renderMode,v=r.positionDefault,p=qo([h.getItemModel(u),l,f&&(f.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=l.getDataParams(u,c),x=new Oh;m.marker=x.makeTooltipMarker("item",tl(m.color),d);var _=tm(l.formatTooltip(u,!1,c)),y=p.get("order"),F=p.get("valueFormatter"),k=_.frag,E=k?sm(F?Se({valueFormatter:F},k):k,x,d,y,i.get("useUTC"),p.get("textStyle")):_.text,C="item_"+l.name+"_"+u;this._showOrMove(p,function(){this._showTooltipContent(p,E,m,C,r.offsetX,r.offsetY,r.position,r.target,x)}),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,a,n){var i=this._renderMode==="html",s=St(a),o=s.tooltipConfig,f=o.option||{},l=f.encodeHTMLContent;if(Me(f)){var u=f;f={content:u,formatter:u},l=!0}l&&i&&f.content&&(f=je(f),f.content=xr(f.content));var c=[f],h=this._ecModel.getComponent(s.componentMainType,s.componentIndex);h&&c.push(h),c.push({formatter:f.content});var d=r.positionDefault,v=qo(c,this._tooltipModel,d?{position:d}:null),p=v.get("content"),g=Math.random()+"",m=new Oh;this._showOrMove(v,function(){var x=je(v.get("formatterParams")||{});this._showTooltipContent(v,p,x,g,r.offsetX,r.offsetY,r.position,a,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,a,n,i,s,o,f,l,u){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");f=f||r.get("position");var d=a,v=this._getNearestPoint([s,o],n,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(Me(h)){var g=r.ecModel.get("useUTC"),m=Ie(n)?n[0]:n,x=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,x&&(d=RT(m.axisValue,d,g)),d=LT(d,n,!0)}else if(ft(h)){var _=Et(function(y,F){y===this._ticket&&(c.setContent(F,u,r,p,f),this._updatePosition(r,f,s,o,c,n,l))},this);this._ticket=i,d=h(n,i,_)}else d=h;c.setContent(d,u,r,p,f),c.show(r,p),this._updatePosition(r,f,s,o,c,n,l)}},t.prototype._getNearestPoint=function(r,a,n,i){if(n==="axis"||Ie(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Ie(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(r,a,n,i,s,o,f){var l=this._api.getWidth(),u=this._api.getHeight();a=a||r.get("position");var c=s.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=f&&f.getBoundingRect().clone();if(f&&v.applyTransform(f.transform),ft(a)&&(a=a([n,i],o,s.el,v,{viewSize:[l,u],contentSize:c.slice()})),Ie(a))n=za(a[0],l),i=za(a[1],u);else if(Re(a)){var p=a;p.width=c[0],p.height=c[1];var g=BT(p,{width:l,height:u});n=g.x,i=g.y,h=null,d=null}else if(Me(a)&&f){var m=IR(a,v,c,r.get("borderWidth"));n=m[0],i=m[1]}else{var m=bR(n,i,s,l,u,h?null:20,d?null:20);n=m[0],i=m[1]}if(h&&(n-=vx(h)?c[0]/2:h==="right"?c[0]:0),d&&(i-=vx(d)?c[1]/2:d==="bottom"?c[1]:0),s4(r)){var m=FR(n,i,s,l,u);n=m[0],i=m[1]}s.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(r,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,s=!!n&&n.length===r.length;return s&&X(n,function(o,f){var l=o.dataByAxis||[],u=r[f]||{},c=u.dataByAxis||[];s=s&&l.length===c.length,s&&X(l,function(h,d){var v=c[d]||{},p=h.seriesDataIndices||[],g=v.seriesDataIndices||[];s=s&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===g.length,s&&X(p,function(m,x){var _=g[x];s=s&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&X(h.seriesDataIndices,function(m){var x=m.seriesIndex,_=a[x],y=i[x];_&&y&&y.data!==_.data&&(s=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=a,!!s},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,a){Ne.node||!a.getDom()||(lv(this,"_updatePosition"),this._tooltipContent.dispose(),wv("itemTooltip",a))},t.type="tooltip",t})(ii);function qo(e,t,r){var a=t.ecModel,n;r?(n=new Dt(r,a,a),n=new Dt(t.option,n,a)):n=t;for(var i=e.length-1;i>=0;i--){var s=e[i];s&&(s instanceof Dt&&(s=s.get("tooltip",!0)),Me(s)&&(s={formatter:s}),s&&(n=new Dt(s,n,a)))}return n}function dx(e,t){return e.dispatchAction||Et(t.dispatchAction,t)}function bR(e,t,r,a,n,i,s){var o=r.getSize(),f=o[0],l=o[1];return i!=null&&(e+f+i+2>a?e-=f+i:e+=i),s!=null&&(t+l+s>n?t-=l+s:t+=s),[e,t]}function FR(e,t,r,a,n){var i=r.getSize(),s=i[0],o=i[1];return e=Math.min(e+s,a)-s,t=Math.min(t+o,n)-o,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function IR(e,t,r,a){var n=r[0],i=r[1],s=Math.ceil(Math.SQRT2*a)+8,o=0,f=0,l=t.width,u=t.height;switch(e){case"inside":o=t.x+l/2-n/2,f=t.y+u/2-i/2;break;case"top":o=t.x+l/2-n/2,f=t.y-i-s;break;case"bottom":o=t.x+l/2-n/2,f=t.y+u+s;break;case"left":o=t.x-n-s,f=t.y+u/2-i/2;break;case"right":o=t.x+l+s,f=t.y+u/2-i/2}return[o,f]}function vx(e){return e==="center"||e==="middle"}function MR(e,t,r){var a=hp(e).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Al(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),s=i.models[0];if(s){var o=r.getViewOfComponentModel(s),f;if(o.group.traverse(function(l){var u=St(l).tooltipConfig;if(u&&u.name===e.name)return f=l,!0}),f)return{componentMainType:n,componentIndex:s.componentIndex,el:f}}}}function RR(e){Kp(vR),e.registerComponentModel(pR),e.registerComponentView(kR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},lr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},lr)}var Qh=Math.sin,ed=Math.cos,u4=Math.PI,Oi=Math.PI*2,PR=180/u4,c4=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,a,n,i,s){this._add("C",t,r,a,n,i,s)},e.prototype.quadraticCurveTo=function(t,r,a,n){this._add("Q",t,r,a,n)},e.prototype.arc=function(t,r,a,n,i,s){this.ellipse(t,r,a,a,0,n,i,s)},e.prototype.ellipse=function(t,r,a,n,i,s,o,f){var l=o-s,u=!f,c=Math.abs(l),h=Wn(c-Oi)||(u?l>=Oi:-l>=Oi),d=l>0?l%Oi:l%Oi+Oi,v=!1;h?v=!0:Wn(c)?v=!1:v=d>=u4==!!u;var p=t+a*ed(s),g=r+n*Qh(s);this._start&&this._add("M",p,g);var m=Math.round(i*PR);if(h){var x=1/this._p,_=(u?1:-1)*(Oi-x);this._add("A",a,n,m,1,+u,t+a*ed(s+_),r+n*Qh(s+_)),x>.01&&this._add("A",a,n,m,0,+u,p,g)}else{var y=t+a*ed(o),F=r+n*Qh(o);this._add("A",a,n,m,+v,+u,y,F)}},e.prototype.rect=function(t,r,a,n){this._add("M",t,r),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,a,n,i,s,o,f,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d)){this._invalid=!0;return}u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),Qp="none",LR=Math.round;function OR(e){var t=e.fill;return t!=null&&t!==Qp}function BR(e){var t=e.stroke;return t!=null&&t!==Qp}var Tv=["lineCap","miterLimit","lineJoin"],NR=$e(Tv,function(e){return"stroke-"+e.toLowerCase()});function UR(e,t,r,a){var n=t.opacity==null?1:t.opacity;if(r instanceof An){e("opacity",n);return}if(OR(t)){var i=Yf(t.fill);e("fill",i.color);var s=t.fillOpacity!=null?t.fillOpacity*i.opacity*n:i.opacity*n;s<1&&e("fill-opacity",s)}else e("fill",Qp);if(BR(t)){var o=Yf(t.stroke);e("stroke",o.color);var f=t.strokeNoScale?r.getLineScale():1,l=f?(t.lineWidth||0)/f:0,u=t.strokeOpacity!=null?t.strokeOpacity*o.opacity*n:o.opacity*n,c=t.strokeFirst;if(l!==1&&e("stroke-width",l),c&&e("paint-order",c?"stroke":"fill"),u<1&&e("stroke-opacity",u),t.lineDash){var h=zp(r),d=h[0],v=h[1];d&&(v=LR(v||0),e("stroke-dasharray",d.join(",")),(v||a)&&e("stroke-dashoffset",v))}for(var p=0;p<Tv.length;p++){var g=Tv[p];if(t[g]!==du[g]){var m=t[g]||du[g];m&&e(NR[p],m)}}}}var h4="http://www.w3.org/2000/svg",d4="http://www.w3.org/1999/xlink",HR="http://www.w3.org/2000/xmlns/",VR="http://www.w3.org/XML/1998/namespace",px="ecmeta_";function v4(e){return document.createElementNS(h4,e)}function Vt(e,t,r,a,n){return{tag:e,attrs:r||{},children:a,text:n,key:t}}function zR(e,t){var r=[];if(t)for(var a in t){var n=t[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function WR(e){return"</"+e+">"}function e1(e,t){t=t||{};var r=t.newline?`
`:"";function a(n){var i=n.children,s=n.tag,o=n.attrs,f=n.text;return zR(s,o)+(s!=="style"?xr(f):f||"")+(i?""+r+$e(i,function(l){return a(l)}).join(r)+r:"")+WR(s)}return a(e)}function GR(e,t,r){r=r||{};var a=r.newline?`
`:"",n=" {"+a,i=a+"}",s=$e(at(e),function(f){return f+n+$e(at(e[f]),function(l){return l+":"+e[f][l]+";"}).join(a)+i}).join(a),o=$e(at(t),function(f){return"@keyframes "+f+n+$e(at(t[f]),function(l){return l+n+$e(at(t[f][l]),function(u){var c=t[f][l][u];return u==="d"&&(c='path("'+c+'")'),u+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!s&&!o?"":["<![CDATA[",s,o,"]]>"].join(a)}function Sv(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gx(e,t,r,a){return Vt("svg","root",{width:e,height:t,xmlns:h4,"xmlns:xlink":d4,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+e+" "+t:!1},r)}var $R=0;function p4(){return $R++}var mx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Vi="transform-origin";function XR(e,t,r){var a=Se({},e.shape);Se(a,t),e.buildPath(r,a);var n=new c4;return n.reset(kw(e)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function YR(e,t){var r=t.originX,a=t.originY;(r||a)&&(e[Vi]=r+"px "+a+"px")}var KR={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function g4(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function ZR(e,t,r){var a=e.shape.paths,n={},i,s;if(X(a,function(f){var l=Sv(r.zrId);l.animation=!0,_c(f,{},l,!0);var u=l.cssAnims,c=l.cssNodes,h=at(u),d=h.length;if(d){s=h[d-1];var v=u[s];for(var p in v){var g=v[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var m in c){var x=c[m].animation;x.indexOf(s)>=0&&(i=x)}}}),!!i){t.d=!1;var o=g4(n,r);return i.replace(s,o)}}function xx(e){return Me(e)?mx[e]?"cubic-bezier("+mx[e]+")":fp(e)?e:"":""}function _c(e,t,r,a){var n=e.animators,i=n.length,s=[];if(e instanceof xT){var o=ZR(e,t,r);if(o)s.push(o);else if(!i)return}else if(!i)return;for(var f={},l=0;l<i;l++){var u=n[l],c=[u.getMaxTime()/1e3+"s"],h=xx(u.getClip().easing),d=u.getDelay();h?c.push(h):c.push("linear"),d&&c.push(d/1e3+"s"),u.getLoop()&&c.push("infinite");var v=c.join(" ");f[v]=f[v]||[v,[]],f[v][1].push(u)}function p(x){var _=x[1],y=_.length,F={},k={},E={},C="animation-timing-function";function T(le,ie,ne){for(var ue=le.getTracks(),w=le.getMaxTime(),N=0;N<ue.length;N++){var W=ue[N];if(W.needsAnimate()){var J=W.keyframes,K=W.propName;if(ne&&(K=ne(K)),K)for(var Y=0;Y<J.length;Y++){var oe=J[Y],ce=Math.round(oe.time/w*100)+"%",de=xx(oe.easing),he=oe.rawValue;(Me(he)||It(he))&&(ie[ce]=ie[ce]||{},ie[ce][K]=oe.rawValue,de&&(ie[ce][C]=de))}}}}for(var b=0;b<y;b++){var M=_[b],R=M.targetName;R?R==="shape"&&T(M,k):!a&&T(M,F)}for(var B in F){var G={};Rw(G,e),Se(G,F[B]);var re=bw(G),j=F[B][C];E[B]=re?{transform:re}:{},YR(E[B],G),j&&(E[B][C]=j)}var q,ve=!0;for(var B in k){E[B]=E[B]||{};var U=!q,j=k[B][C];U&&(q=new os);var xe=q.len();q.reset(),E[B].d=XR(e,k[B],q);var se=q.len();if(!U&&xe!==se){ve=!1;break}j&&(E[B][C]=j)}if(!ve)for(var B in E)delete E[B].d;if(!a)for(var b=0;b<y;b++){var M=_[b],R=M.targetName;R==="style"&&T(M,E,function(ue){return KR[ue]})}for(var P=at(E),V=!0,H,b=1;b<P.length;b++){var z=P[b-1],ae=P[b];if(E[z][Vi]!==E[ae][Vi]){V=!1;break}H=E[z][Vi]}if(V&&H){for(var B in E)E[B][Vi]&&delete E[B][Vi];t[Vi]=H}if(Hr(P,function(le){return at(E[le]).length>0}).length){var pe=g4(E,r);return pe+" "+x[0]+" both"}}for(var g in f){var o=p(f[g]);o&&s.push(o)}if(s.length){var m=r.zrId+"-cls-"+p4();r.cssNodes["."+m]={animation:s.join(",")},t.class=m}}function jR(e,t,r){if(!e.ignore)if(e.isSilent()){var a={"pointer-events":"none"};_x(a,t,r)}else{var n=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=n.fill;if(!i){var s=e.style&&e.style.fill,o=e.states.select&&e.states.select.style&&e.states.select.style.fill,f=e.currentStates.indexOf("select")>=0&&o||s;f&&(i=Bd(f))}var l=n.lineWidth;if(l){var u=!n.strokeNoScale&&e.transform?e.transform[0]:1;l=l/u}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),l&&(a["stroke-width"]=l),_x(a,t,r)}}function _x(e,t,r,a){var n=JSON.stringify(e),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+p4(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var ol=Math.round;function m4(e){return e&&Me(e.src)}function x4(e){return e&&ft(e.toDataURL)}function t1(e,t,r,a){UR(function(n,i){var s=n==="fill"||n==="stroke";s&&Dw(i)?y4(t,e,n,a):s&&lp(i)?w4(r,e,n,a):e[n]=i,s&&a.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),aP(r,e,a)}function r1(e,t){var r=wk(t);r&&(r.each(function(a,n){a!=null&&(e[(px+n).toLowerCase()]=a+"")}),t.isSilent()&&(e[px+"silent"]="true"))}function yx(e){return Wn(e[0]-1)&&Wn(e[1])&&Wn(e[2])&&Wn(e[3]-1)}function qR(e){return Wn(e[4])&&Wn(e[5])}function a1(e,t,r){if(t&&!(qR(t)&&yx(t))){var a=1e4;e.transform=yx(t)?"translate("+ol(t[4]*a)/a+" "+ol(t[5]*a)/a+")":GD(t)}}function Tx(e,t,r){for(var a=e.points,n=[],i=0;i<a.length;i++)n.push(ol(a[i][0]*r)/r),n.push(ol(a[i][1]*r)/r);t.points=n.join(" ")}function Sx(e){return!e.smooth}function JR(e){var t=$e(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,a,n){for(var i=0;i<t.length;i++){var s=t[i],o=r[s[0]];o!=null&&(a[s[1]]=ol(o*n)/n)}}}var QR={circle:[JR(["cx","cy","r"])],polyline:[Tx,Sx],polygon:[Tx,Sx]};function eP(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function _4(e,t){var r=e.style,a=e.shape,n=QR[e.type],i={},s=t.animation,o="path",f=e.style.strokePercent,l=t.compress&&kw(e)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](a))&&!(s&&eP(e))&&!(f<1)){o=e.type;var u=Math.pow(10,l);n[0](a,i,u)}else{var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var h=e.path;c&&(h.beginPath(),e.buildPath(h,e.shape),e.pathUpdated());var d=h.getVersion(),v=e,p=v.__svgPathBuilder;(v.__svgPathVersion!==d||!p||f!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new c4),p.reset(l),h.rebuildPath(p,f),p.generateStr(),v.__svgPathVersion=d,v.__svgPathStrokePercent=f),i.d=p.getStr()}return a1(i,e.transform),t1(i,r,e,t),r1(i,e),t.animation&&_c(e,i,t),t.emphasis&&jR(e,i,t),Vt(o,e.id+"",i)}function tP(e,t){var r=e.style,a=r.image;if(a&&!Me(a)&&(m4(a)?a=a.src:x4(a)&&(a=a.toDataURL())),!!a){var n=r.x||0,i=r.y||0,s=r.width,o=r.height,f={href:a,width:s,height:o};return n&&(f.x=n),i&&(f.y=i),a1(f,e.transform),t1(f,r,e,t),r1(f,e),t.animation&&_c(e,f,t),Vt("image",e.id+"",f)}}function rP(e,t){var r=e.style,a=r.text;if(a!=null&&(a+=""),!(!a||isNaN(r.x)||isNaN(r.y))){var n=r.font||ri,i=r.x||0,s=XD(r.y||0,ic(n),r.textBaseline),o=$D[r.textAlign]||r.textAlign,f={"dominant-baseline":"central","text-anchor":o};if(tT(r)){var l="",u=r.fontStyle,c=eT(r.fontSize);if(!parseFloat(c))return;var h=r.fontFamily||rw,d=r.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&u!=="normal"&&(l+="font-style:"+u+";"),d&&d!=="normal"&&(l+="font-weight:"+d+";"),f.style=l}else f.style="font: "+n;return a.match(/\s/)&&(f["xml:space"]="preserve"),i&&(f.x=i),s&&(f.y=s),a1(f,e.transform),t1(f,r,e,t),r1(f,e),t.animation&&_c(e,f,t),Vt("text",e.id+"",f,void 0,a)}}function Ex(e,t){if(e instanceof gt)return _4(e,t);if(e instanceof An)return tP(e,t);if(e instanceof Qf)return rP(e,t)}function aP(e,t,r){var a=e.style;if(YD(a)){var n=KD(e),i=r.shadowCache,s=i[n];if(!s){var o=e.getGlobalScale(),f=o[0],l=o[1];if(!f||!l)return;var u=a.shadowOffsetX||0,c=a.shadowOffsetY||0,h=a.shadowBlur,d=Yf(a.shadowColor),v=d.opacity,p=d.color,g=h/2/f,m=h/2/l,x=g+" "+m;s=r.zrId+"-s"+r.shadowIdx++,r.defs[s]=Vt("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Vt("feDropShadow","",{dx:u/f,dy:c/l,stdDeviation:x,"flood-color":p,"flood-opacity":v})]),i[n]=s}t.filter=nc(s)}}function y4(e,t,r,a){var n=e[r],i,s={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Cw(n))i="linearGradient",s.x1=n.x,s.y1=n.y,s.x2=n.x2,s.y2=n.y2;else if(Aw(n))i="radialGradient",s.cx=ze(n.x,.5),s.cy=ze(n.y,.5),s.r=ze(n.r,.5);else return;for(var o=n.colorStops,f=[],l=0,u=o.length;l<u;++l){var c=Nd(o[l].offset)*100+"%",h=o[l].color,d=Yf(h),v=d.color,p=d.opacity,g={offset:c};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),f.push(Vt("stop",l+"",g))}var m=Vt(i,"",s,f),x=e1(m),_=a.gradientCache,y=_[x];y||(y=a.zrId+"-g"+a.gradientIdx++,_[x]=y,s.id=y,a.defs[y]=Vt(i,y,s,f)),t[r]=nc(y)}function w4(e,t,r,a){var n=e.style[r],i=e.getBoundingRect(),s={},o=n.repeat,f=o==="no-repeat",l=o==="repeat-x",u=o==="repeat-y",c;if(Ew(n)){var h=n.imageWidth,d=n.imageHeight,v=void 0,p=n.image;if(Me(p)?v=p:m4(p)?v=p.src:x4(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Yr(h,g),Yr(d,g)}else if(h==null||d==null){var m=function(b,M){if(b){var R=b.elm,B=h||M.width,G=d||M.height;b.tag==="pattern"&&(l?(G=1,B/=i.width):u&&(B=1,G/=i.height)),b.attrs.width=B,b.attrs.height=G,R&&(R.setAttribute("width",B),R.setAttribute("height",G))}},x=pp(v,null,e,function(b){f||m(k,b),m(c,b)});x&&x.width&&x.height&&(h=h||x.width,d=d||x.height)}c=Vt("image","img",{href:v,width:h,height:d}),s.width=h,s.height=d}else n.svgElement&&(c=je(n.svgElement),s.width=n.svgWidth,s.height=n.svgHeight);if(c){var _,y;f?_=y=1:l?(y=1,_=s.width/i.width):u?(_=1,y=s.height/i.height):s.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(s.width=_),y!=null&&!isNaN(y)&&(s.height=y);var F=bw(n);F&&(s.patternTransform=F);var k=Vt("pattern","",s,[c]),E=e1(k),C=a.patternCache,T=C[E];T||(T=a.zrId+"-p"+a.patternIdx++,C[E]=T,s.id=T,k=a.defs[T]=Vt("pattern",T,s,[c])),t[r]=nc(T)}}function nP(e,t,r){var a=r.clipPathCache,n=r.defs,i=a[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var s={id:i};a[e.id]=i,n[i]=Vt("clipPath",i,s,[_4(e,r)])}t["clip-path"]=nc(i)}function Cx(e){return document.createTextNode(e)}function Gi(e,t,r){e.insertBefore(t,r)}function Ax(e,t){e.removeChild(t)}function Dx(e,t){e.appendChild(t)}function T4(e){return e.parentNode}function S4(e){return e.nextSibling}function td(e,t){e.textContent=t}var kx=58,iP=120,sP=Vt("","");function Ev(e){return e===void 0}function Ha(e){return e!==void 0}function oP(e,t,r){for(var a={},n=t;n<=r;++n){var i=e[n].key;i!==void 0&&(a[i]=n)}return a}function of(e,t){var r=e.key===t.key,a=e.tag===t.tag;return a&&r}function fl(e){var t,r=e.children,a=e.tag;if(Ha(a)){var n=e.elm=v4(a);if(n1(sP,e),Ie(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&Dx(n,fl(i))}else Ha(e.text)&&!Re(e.text)&&Dx(n,Cx(e.text))}else e.elm=Cx(e.text);return e.elm}function E4(e,t,r,a,n){for(;a<=n;++a){var i=r[a];i!=null&&Gi(e,fl(i),t)}}function Iu(e,t,r,a){for(;r<=a;++r){var n=t[r];if(n!=null)if(Ha(n.tag)){var i=T4(n.elm);Ax(i,n.elm)}else Ax(e,n.elm)}}function n1(e,t){var r,a=t.elm,n=e&&e.attrs||{},i=t.attrs||{};if(n!==i){for(r in i){var s=i[r],o=n[r];o!==s&&(s===!0?a.setAttribute(r,""):s===!1?a.removeAttribute(r):r==="style"?a.style.cssText=s:r.charCodeAt(0)!==iP?a.setAttribute(r,s):r==="xmlns:xlink"||r==="xmlns"?a.setAttributeNS(HR,r,s):r.charCodeAt(3)===kx?a.setAttributeNS(VR,r,s):r.charCodeAt(5)===kx?a.setAttributeNS(d4,r,s):a.setAttribute(r,s))}for(r in n)r in i||a.removeAttribute(r)}}function fP(e,t,r){for(var a=0,n=0,i=t.length-1,s=t[0],o=t[i],f=r.length-1,l=r[0],u=r[f],c,h,d,v;a<=i&&n<=f;)s==null?s=t[++a]:o==null?o=t[--i]:l==null?l=r[++n]:u==null?u=r[--f]:of(s,l)?(Gs(s,l),s=t[++a],l=r[++n]):of(o,u)?(Gs(o,u),o=t[--i],u=r[--f]):of(s,u)?(Gs(s,u),Gi(e,s.elm,S4(o.elm)),s=t[++a],u=r[--f]):of(o,l)?(Gs(o,l),Gi(e,o.elm,s.elm),o=t[--i],l=r[++n]):(Ev(c)&&(c=oP(t,a,i)),h=c[l.key],Ev(h)?Gi(e,fl(l),s.elm):(d=t[h],d.tag!==l.tag?Gi(e,fl(l),s.elm):(Gs(d,l),t[h]=void 0,Gi(e,d.elm,s.elm))),l=r[++n]);(a<=i||n<=f)&&(a>i?(v=r[f+1]==null?null:r[f+1].elm,E4(e,v,r,n,f)):Iu(e,t,a,i))}function Gs(e,t){var r=t.elm=e.elm,a=e.children,n=t.children;e!==t&&(n1(e,t),Ev(t.text)?Ha(a)&&Ha(n)?a!==n&&fP(r,a,n):Ha(n)?(Ha(e.text)&&td(r,""),E4(r,null,n,0,n.length-1)):Ha(a)?Iu(r,a,0,a.length-1):Ha(e.text)&&td(r,""):e.text!==t.text&&(Ha(a)&&Iu(r,a,0,a.length-1),td(r,t.text)))}function lP(e,t){if(of(e,t))Gs(e,t);else{var r=e.elm,a=T4(r);fl(t),a!==null&&(Gi(a,t.elm,S4(r)),Iu(a,[e],0,0))}return t}var uP=0,cP=(function(){function e(t,r,a){if(this.type="svg",this.refreshHover=bx(),this.configLayer=bx(),this.storage=r,this._opts=a=Se({},a),this.root=t,this._id="zr"+uP++,this._oldVNode=gx(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=v4("svg");n1(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",lP(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Ex(t,Sv(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Sv(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var s=[],o=this._bgVNode=hP(a,n,this._backgroundColor,i);o&&s.push(o);var f=t.compress?null:this._mainVNode=Vt("g","main",{},[]);this._paintList(r,i,f?f.children:s),f&&s.push(f);var l=$e(at(i.defs),function(h){return i.defs[h]});if(l.length&&s.push(Vt("defs","defs",{},l)),t.animation){var u=GR(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=Vt("style","stl",{},[],u);s.push(c)}}return gx(a,n,s,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},e1(this.renderToVNode({animation:ze(t.cssAnimation,!0),emphasis:ze(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ze(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,a){for(var n=t.length,i=[],s=0,o,f,l=0,u=0;u<n;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,v=f&&f.length||0,p=void 0;for(p=Math.max(d-1,v-1);p>=0&&!(h&&f&&h[p]===f[p]);p--);for(var g=v-1;g>p;g--)s--,o=i[s-1];for(var m=p+1;m<d;m++){var x={};nP(h[m],x,r);var _=Vt("g","clip-g-"+l++,x,[]);(o?o.children:a).push(_),i[s++]=_,o=_}f=h;var y=Ex(c,r);y&&(o?o.children:a).push(y)}}},e.prototype.resize=function(t,r){var a=this._opts,n=this.root,i=this._viewport;if(t!=null&&(a.width=t),r!=null&&(a.height=r),n&&i&&(i.style.display="none",t=js(n,0,a),r=js(n,1,a),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var s=i.style;s.width=t+"px",s.height=r+"px"}if(lp(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",r));var f=this._bgVNode&&this._bgVNode.elm;f&&(f.setAttribute("width",t),f.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),a="data:image/svg+xml;";return t?(r=jD(r),r&&a+"base64,"+r):a+"charset=UTF-8,"+encodeURIComponent(r)},e})();function bx(e){return function(){}}function hP(e,t,r,a){var n;if(r&&r!=="none")if(n=Vt("rect","bg",{width:e,height:t,x:"0",y:"0"}),Dw(r))y4({fill:r},n.attrs,"fill",a);else if(lp(r))w4({style:{fill:r},dirty:lr,getBoundingRect:function(){return{width:e,height:t}}},n.attrs,"fill",a);else{var i=Yf(r),s=i.color,o=i.opacity;n.attrs.fill=s,o<1&&(n.attrs["fill-opacity"]=o)}return n}function dP(e){e.registerPainter("svg",cP)}function Fx(e,t,r){var a=xo.createCanvas(),n=t.getWidth(),i=t.getHeight(),s=a.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=n+"px",s.height=i+"px",a.setAttribute("data-zr-dom-id",e)),a.width=n*r,a.height=i*r,a}var rd=(function(e){He(t,e);function t(r,a,n){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var s;n=n||uu,typeof r=="string"?s=Fx(r,a,n):Re(r)&&(s=r,r=s.id),i.id=r,i.dom=s;var o=s.style;return o&&(lw(s),s.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),i.painter=a,i.dpr=n,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Fx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var s=[],o=this.maxRepaintRectCount,f=!1,l=new pt(0,0,0,0);function u(x){if(!(!x.isFinite()||x.isZero()))if(s.length===0){var _=new pt(0,0,0,0);_.copy(x),s.push(_)}else{for(var y=!1,F=1/0,k=0,E=0;E<s.length;++E){var C=s[E];if(C.intersect(x)){var T=new pt(0,0,0,0);T.copy(C),T.union(x),s[E]=T,y=!0;break}else if(f){l.copy(x),l.union(C);var b=x.width*x.height,M=C.width*C.height,R=l.width*l.height,B=R-b-M;B<F&&(F=B,k=E)}}if(f&&(s[k].union(x),y=!0),!y){var _=new pt(0,0,0,0);_.copy(x),s.push(_)}f||(f=s.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(n,i,!0,!0),v=h.__isRendered&&(h.__dirty&zr||!d)?h.getPrevPaintRect():null;v&&u(v);var p=d&&(h.__dirty&zr||!h.__isRendered)?h.getPaintRect():null;p&&u(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=a[c],d=h&&h.shouldBePainted(n,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&u(v)}}var g;do{g=!1;for(var c=0;c<s.length;){if(s[c].isZero()){s.splice(c,1);continue}for(var m=c+1;m<s.length;)s[c].intersect(s[m])?(g=!0,s[c].union(s[m]),s.splice(m,1)):m++;c++}}while(g);return this._paintRects=s,s},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,a){var n=this.dpr,i=this.dom,s=i.style,o=this.domBack;s&&(s.width=r+"px",s.height=a+"px"),i.width=r*n,i.height=a*n,o&&(o.width=r*n,o.height=a*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(r,a,n){var i=this.dom,s=this.ctx,o=i.width,f=i.height;a=a||this.clearColor;var l=this.motionBlur&&!r,u=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/c,f/c));var d=this.domBack;function v(p,g,m,x){if(s.clearRect(p,g,m,x),a&&a!=="transparent"){var _=void 0;if(rc(a)){var y=a.global||a.__width===m&&a.__height===x;_=y&&a.__canvasGradient||hv(s,a,{x:0,y:0,width:m,height:x}),a.__canvasGradient=_,a.__width=m,a.__height=x}else ZA(a)&&(a.scaleX=a.scaleX||c,a.scaleY=a.scaleY||c,_=dv(s,a,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));s.save(),s.fillStyle=_||a,s.fillRect(p,g,m,x),s.restore()}l&&(s.save(),s.globalAlpha=u,s.drawImage(d,p,g,m,x),s.restore())}!n||l?v(0,0,o,f):n.length&&X(n,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},t})(Qa),Ix=1e5,Bi=314159,y0=.01,vP=.001;function pP(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function gP(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var mP=(function(){function e(t,r,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=Se({},a||{}),this.dpr=a.devicePixelRatio||uu,this._singleCanvas=i,this.root=t;var s=t.style;s&&(lw(t),t.innerHTML=""),this.storage=r;var o=this._zlevelList;this._prevDisplayList=[];var f=this._layers;if(i){var u=t,c=u.width,h=u.height;a.width!=null&&(c=a.width),a.height!=null&&(h=a.height),this.dpr=a.devicePixelRatio||1,u.width=c*this.dpr,u.height=h*this.dpr,this._width=c,this._height=h;var d=new rd(u,this,this.dpr);d.__builtin__=!0,d.initContext(),f[Bi]=d,d.zlevel=Bi,o.push(Bi),this._domRoot=t}else{this._width=js(t,0,a),this._height=js(t,1,a);var l=this._domRoot=gP(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,a,t,this._redrawId);for(var i=0;i<n.length;i++){var s=n[i],o=this._layers[s];if(!o.__builtin__&&o.refresh){var f=i===0?this._backgroundColor:null;o.refresh(f)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,a=this._hoverlayer;if(a&&a.clear(),!!r){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,s=0;s<r;s++){var o=t[s];o.__inHover&&(a||(a=this._hoverlayer=this.getLayer(Ix)),i||(i=a.ctx,i.save()),Zi(i,o,n,s===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Ix)},e.prototype.paintOne=function(t,r){TS(t,r)},e.prototype._paintList=function(t,r,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,a),s=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),s)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var f=this;au(function(){f._paintList(t,r,a,n)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Bi).ctx,r=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,r,a),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,r,a)})},e.prototype._doPaintList=function(t,r,a){for(var n=this,i=[],s=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var f=this._zlevelList[o],l=this._layers[f];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||a)&&i.push(l)}for(var u=!0,c=!1,h=function(p){var g=i[p],m=g.ctx,x=s&&g.createRepaintRects(t,r,d._width,d._height),_=a?g.__startIndex:g.__drawIndex,y=!a&&g.incremental&&Date.now,F=y&&Date.now(),k=g.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,k,x);else if(_===g.__startIndex){var E=t[_];(!E.incremental||!E.notClear||a)&&g.clear(!1,k,x)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,T=function(B){var G={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=_;C<g.__endIndex;C++){var re=t[C];if(re.__inHover&&(c=!0),n._doPaintEl(re,g,s,B,G,C===g.__endIndex-1),y){var j=Date.now()-F;if(j>15)break}}G.prevElClipPaths&&m.restore()};if(x)if(x.length===0)C=g.__endIndex;else for(var b=d.dpr,M=0;M<x.length;++M){var R=x[M];m.save(),m.beginPath(),m.rect(R.x*b,R.y*b,R.width*b,R.height*b),m.clip(),T(R),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(u=!1)},d=this,v=0;v<i.length;v++)h(v);return Ne.wxa&&X(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,a,n,i,s){var o=r.ctx;if(a){var f=t.getPaintRect();(!n||f&&f.intersect(n))&&(Zi(o,t,i,s),t.setPrevPaintRect(f))}else Zi(o,t,i,s)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Bi);var a=this._layers[t];return a||(a=new rd("zr_"+t,this,this.dpr),a.zlevel=t,a.__builtin__=!0,this._layerConfig[t]?Ot(a,this._layerConfig[t],!0):this._layerConfig[t-y0]&&Ot(a,this._layerConfig[t-y0],!0),r&&(a.virtual=r),this.insertLayer(t,a),a.initContext()),a},e.prototype.insertLayer=function(t,r){var a=this._layers,n=this._zlevelList,i=n.length,s=this._domRoot,o=null,f=-1;if(!a[t]&&pP(r)){if(i>0&&t>n[0]){for(f=0;f<i-1&&!(n[f]<t&&n[f+1]>t);f++);o=a[n[f]]}if(n.splice(f+1,0,t),a[t]=r,!r.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(r.dom,l.nextSibling):s.appendChild(r.dom)}else s.firstChild?s.insertBefore(r.dom,s.firstChild):s.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],s=this._layers[i];s.__builtin__&&t.call(r,s,i)}},e.prototype.eachOtherLayer=function(t,r){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],s=this._layers[i];s.__builtin__||t.call(r,s,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var a=1;a<t.length;a++){var n=t[a];if(n.zlevel!==t[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,s=0,o,f;for(f=0;f<t.length;f++){var n=t[f],l=n.zlevel,u=void 0;o!==l&&(o=l,s=0),n.incremental?(u=this.getLayer(l+vP,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?y0:0),this._needsManuallyCompositing),u.__builtin__||ap("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),i=u),n.__dirty&zr&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,X(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var a=this._layerConfig;a[t]?Ot(a[t],r,!0):a[t]=r;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===t||i===t+y0){var s=this._layers[i];Ot(s,a[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,a=this._zlevelList,n=r[t];n&&(n.dom.parentNode.removeChild(n.dom),delete r[t],a.splice(wt(a,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(t!=null&&(n.width=t),r!=null&&(n.height=r),t=js(i,0,n),r=js(i,1,n),a.style.display="",this._width!==t||r!==this._height){a.style.width=t+"px",a.style.height=r+"px";for(var s in this._layers)this._layers.hasOwnProperty(s)&&this._layers[s].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Bi).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Bi].dom;var r=new rd("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var a=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,i=r.dom.height;this.eachLayer(function(c){c.__builtin__?a.drawImage(c.dom,0,0,n,i):c.renderToCanvas&&(a.save(),c.renderToCanvas(a),a.restore())})}else for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),f=0,l=o.length;f<l;f++){var u=o[f];Zi(a,u,s,f===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function xP(e){e.registerPainter("canvas",mP)}function _P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K0={exports:{}};var yP=K0.exports,Mx;function wP(){return Mx||(Mx=1,(function(e,t){((r,a)=>{e.exports=a()})(yP,function r(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},n,i=!a.document&&!!a.postMessage,s=a.IS_PAPA_WORKER||!1,o={},f=0,l={};function u(C){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(T){var b=F(T);b.chunkSize=parseInt(b.chunkSize),T.step||T.chunk||(b.chunkSize=null),this._handle=new p(b),(this._handle.streamer=this)._config=b}).call(this,C),this.parseChunk=function(T,b){var M=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<M){let B=this._config.newline;B||(R=this._config.quoteChar||'"',B=this._handle.guessLineEndings(T,R)),T=[...T.split(B).slice(M)].join(B)}this.isFirstChunk&&E(this._config.beforeFirstChunk)&&(R=this._config.beforeFirstChunk(T))!==void 0&&(T=R),this.isFirstChunk=!1,this._halted=!1;var M=this._partialLine+T,R=(this._partialLine="",this._handle.parse(M,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(T=R.meta.cursor,M=(this._finished||(this._partialLine=M.substring(T-this._baseIndex),this._baseIndex=T),R&&R.data&&(this._rowCount+=R.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)a.postMessage({results:R,workerId:l.WORKER_ID,finished:M});else if(E(this._config.chunk)&&!b){if(this._config.chunk(R,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=R=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(R.data),this._completeResults.errors=this._completeResults.errors.concat(R.errors),this._completeResults.meta=R.meta),this._completed||!M||!E(this._config.complete)||R&&R.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),M||R&&R.meta.paused||this._nextChunk(),R}this._halted=!0},this._sendError=function(T){E(this._config.error)?this._config.error(T):s&&this._config.error&&a.postMessage({workerId:l.WORKER_ID,error:T,finished:!1})}}function c(C){var T;(C=C||{}).chunkSize||(C.chunkSize=l.RemoteChunkSize),u.call(this,C),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(b){this._input=b,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(T=new XMLHttpRequest,this._config.withCredentials&&(T.withCredentials=this._config.withCredentials),i||(T.onload=k(this._chunkLoaded,this),T.onerror=k(this._chunkError,this)),T.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var b,M=this._config.downloadRequestHeaders;for(b in M)T.setRequestHeader(b,M[b])}var R;this._config.chunkSize&&(R=this._start+this._config.chunkSize-1,T.setRequestHeader("Range","bytes="+this._start+"-"+R));try{T.send(this._config.downloadRequestBody)}catch(B){this._chunkError(B.message)}i&&T.status===0&&this._chunkError()}},this._chunkLoaded=function(){T.readyState===4&&(T.status<200||400<=T.status?this._chunkError():(this._start+=this._config.chunkSize||T.responseText.length,this._finished=!this._config.chunkSize||this._start>=(b=>(b=b.getResponseHeader("Content-Range"))!==null?parseInt(b.substring(b.lastIndexOf("/")+1)):-1)(T),this.parseChunk(T.responseText)))},this._chunkError=function(b){b=T.statusText||b,this._sendError(new Error(b))}}function h(C){(C=C||{}).chunkSize||(C.chunkSize=l.LocalChunkSize),u.call(this,C);var T,b,M=typeof FileReader<"u";this.stream=function(R){this._input=R,b=R.slice||R.webkitSlice||R.mozSlice,M?((T=new FileReader).onload=k(this._chunkLoaded,this),T.onerror=k(this._chunkError,this)):T=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var R=this._input,B=(this._config.chunkSize&&(B=Math.min(this._start+this._config.chunkSize,this._input.size),R=b.call(R,this._start,B)),T.readAsText(R,this._config.encoding));M||this._chunkLoaded({target:{result:B}})},this._chunkLoaded=function(R){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(R.target.result)},this._chunkError=function(){this._sendError(T.error)}}function d(C){var T;u.call(this,C=C||{}),this.stream=function(b){return T=b,this._nextChunk()},this._nextChunk=function(){var b,M;if(!this._finished)return b=this._config.chunkSize,T=b?(M=T.substring(0,b),T.substring(b)):(M=T,""),this._finished=!T,this.parseChunk(M)}}function v(C){u.call(this,C=C||{});var T=[],b=!0,M=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(R){this._input=R,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&T.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),T.length?this.parseChunk(T.shift()):b=!0},this._streamData=k(function(R){try{T.push(typeof R=="string"?R:R.toString(this._config.encoding)),b&&(b=!1,this._checkIsFinished(),this.parseChunk(T.shift()))}catch(B){this._streamError(B)}},this),this._streamError=k(function(R){this._streamCleanUp(),this._sendError(R)},this),this._streamEnd=k(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=k(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(C){var T,b,M,R,B=Math.pow(2,53),G=-B,re=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,j=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,q=this,ve=0,U=0,xe=!1,se=!1,P=[],V={data:[],errors:[],meta:{}};function H(le){return C.skipEmptyLines==="greedy"?le.join("").trim()==="":le.length===1&&le[0].length===0}function z(){if(V&&M&&(pe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),M=!1),C.skipEmptyLines&&(V.data=V.data.filter(function(w){return!H(w)})),ae()){let w=function(N,W){E(C.transformHeader)&&(N=C.transformHeader(N,W)),P.push(N)};var ue=w;if(V)if(Array.isArray(V.data[0])){for(var le=0;ae()&&le<V.data.length;le++)V.data[le].forEach(w);V.data.splice(0,1)}else V.data.forEach(w)}function ie(w,N){for(var W=C.header?{}:[],J=0;J<w.length;J++){var K=J,Y=w[J],Y=((oe,ce)=>(de=>(C.dynamicTypingFunction&&C.dynamicTyping[de]===void 0&&(C.dynamicTyping[de]=C.dynamicTypingFunction(de)),(C.dynamicTyping[de]||C.dynamicTyping)===!0))(oe)?ce==="true"||ce==="TRUE"||ce!=="false"&&ce!=="FALSE"&&((de=>{if(re.test(de)&&(de=parseFloat(de),G<de&&de<B))return 1})(ce)?parseFloat(ce):j.test(ce)?new Date(ce):ce===""?null:ce):ce)(K=C.header?J>=P.length?"__parsed_extra":P[J]:K,Y=C.transform?C.transform(Y,K):Y);K==="__parsed_extra"?(W[K]=W[K]||[],W[K].push(Y)):W[K]=Y}return C.header&&(J>P.length?pe("FieldMismatch","TooManyFields","Too many fields: expected "+P.length+" fields but parsed "+J,U+N):J<P.length&&pe("FieldMismatch","TooFewFields","Too few fields: expected "+P.length+" fields but parsed "+J,U+N)),W}var ne;V&&(C.header||C.dynamicTyping||C.transform)&&(ne=1,!V.data.length||Array.isArray(V.data[0])?(V.data=V.data.map(ie),ne=V.data.length):V.data=ie(V.data,0),C.header&&V.meta&&(V.meta.fields=P),U+=ne)}function ae(){return C.header&&P.length===0}function pe(le,ie,ne,ue){le={type:le,code:ie,message:ne},ue!==void 0&&(le.row=ue),V.errors.push(le)}E(C.step)&&(R=C.step,C.step=function(le){V=le,ae()?z():(z(),V.data.length!==0&&(ve+=le.data.length,C.preview&&ve>C.preview?b.abort():(V.data=V.data[0],R(V,q))))}),this.parse=function(le,ie,ne){var ue=C.quoteChar||'"',ue=(C.newline||(C.newline=this.guessLineEndings(le,ue)),M=!1,C.delimiter?E(C.delimiter)&&(C.delimiter=C.delimiter(le),V.meta.delimiter=C.delimiter):((ue=((w,N,W,J,K)=>{var Y,oe,ce,de;K=K||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var he=0;he<K.length;he++){for(var Ae,ye=K[he],we=0,De=0,ke=0,Pe=(ce=void 0,new m({comments:J,delimiter:ye,newline:N,preview:10}).parse(w)),be=0;be<Pe.data.length;be++)W&&H(Pe.data[be])?ke++:(Ae=Pe.data[be].length,De+=Ae,ce===void 0?ce=Ae:0<Ae&&(we+=Math.abs(Ae-ce),ce=Ae));0<Pe.data.length&&(De/=Pe.data.length-ke),(oe===void 0||we<=oe)&&(de===void 0||de<De)&&1.99<De&&(oe=we,Y=ye,de=De)}return{successful:!!(C.delimiter=Y),bestDelimiter:Y}})(le,C.newline,C.skipEmptyLines,C.comments,C.delimitersToGuess)).successful?C.delimiter=ue.bestDelimiter:(M=!0,C.delimiter=l.DefaultDelimiter),V.meta.delimiter=C.delimiter),F(C));return C.preview&&C.header&&ue.preview++,T=le,b=new m(ue),V=b.parse(T,ie,ne),z(),xe?{meta:{paused:!0}}:V||{meta:{paused:!1}}},this.paused=function(){return xe},this.pause=function(){xe=!0,b.abort(),T=E(C.chunk)?"":T.substring(b.getCharIndex())},this.resume=function(){q.streamer._halted?(xe=!1,q.streamer.parseChunk(T,!0)):setTimeout(q.resume,3)},this.aborted=function(){return se},this.abort=function(){se=!0,b.abort(),V.meta.aborted=!0,E(C.complete)&&C.complete(V),T=""},this.guessLineEndings=function(w,ue){w=w.substring(0,1048576);var ue=new RegExp(g(ue)+"([^]*?)"+g(ue),"gm"),ne=(w=w.replace(ue,"")).split("\r"),ue=w.split(`
`),w=1<ue.length&&ue[0].length<ne[0].length;if(ne.length===1||w)return`
`;for(var N=0,W=0;W<ne.length;W++)ne[W][0]===`
`&&N++;return N>=ne.length/2?`\r
`:"\r"}}function g(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(C){var T=(C=C||{}).delimiter,b=C.newline,M=C.comments,R=C.step,B=C.preview,G=C.fastMode,re=null,j=!1,q=C.quoteChar==null?'"':C.quoteChar,ve=q;if(C.escapeChar!==void 0&&(ve=C.escapeChar),(typeof T!="string"||-1<l.BAD_DELIMITERS.indexOf(T))&&(T=","),M===T)throw new Error("Comment character same as delimiter");M===!0?M="#":(typeof M!="string"||-1<l.BAD_DELIMITERS.indexOf(M))&&(M=!1),b!==`
`&&b!=="\r"&&b!==`\r
`&&(b=`
`);var U=0,xe=!1;this.parse=function(se,P,V){if(typeof se!="string")throw new Error("Input must be a string");var H=se.length,z=T.length,ae=b.length,pe=M.length,le=E(R),ie=[],ne=[],ue=[],w=U=0;if(!se)return we();if(G||G!==!1&&se.indexOf(q)===-1){for(var N=se.split(b),W=0;W<N.length;W++){if(ue=N[W],U+=ue.length,W!==N.length-1)U+=b.length;else if(V)return we();if(!M||ue.substring(0,pe)!==M){if(le){if(ie=[],de(ue.split(T)),De(),xe)return we()}else de(ue.split(T));if(B&&B<=W)return ie=ie.slice(0,B),we(!0)}}return we()}for(var J=se.indexOf(T,U),K=se.indexOf(b,U),Y=new RegExp(g(ve)+g(q),"g"),oe=se.indexOf(q,U);;)if(se[U]===q)for(oe=U,U++;;){if((oe=se.indexOf(q,oe+1))===-1)return V||ne.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:U}),Ae();if(oe===H-1)return Ae(se.substring(U,oe).replace(Y,q));if(q===ve&&se[oe+1]===ve)oe++;else if(q===ve||oe===0||se[oe-1]!==ve){J!==-1&&J<oe+1&&(J=se.indexOf(T,oe+1));var ce=he((K=K!==-1&&K<oe+1?se.indexOf(b,oe+1):K)===-1?J:Math.min(J,K));if(se.substr(oe+1+ce,z)===T){ue.push(se.substring(U,oe).replace(Y,q)),se[U=oe+1+ce+z]!==q&&(oe=se.indexOf(q,U)),J=se.indexOf(T,U),K=se.indexOf(b,U);break}if(ce=he(K),se.substring(oe+1+ce,oe+1+ce+ae)===b){if(ue.push(se.substring(U,oe).replace(Y,q)),ye(oe+1+ce+ae),J=se.indexOf(T,U),oe=se.indexOf(q,U),le&&(De(),xe))return we();if(B&&ie.length>=B)return we(!0);break}ne.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:U}),oe++}}else if(M&&ue.length===0&&se.substring(U,U+pe)===M){if(K===-1)return we();U=K+ae,K=se.indexOf(b,U),J=se.indexOf(T,U)}else if(J!==-1&&(J<K||K===-1))ue.push(se.substring(U,J)),U=J+z,J=se.indexOf(T,U);else{if(K===-1)break;if(ue.push(se.substring(U,K)),ye(K+ae),le&&(De(),xe))return we();if(B&&ie.length>=B)return we(!0)}return Ae();function de(ke){ie.push(ke),w=U}function he(ke){var Pe=0;return Pe=ke!==-1&&(ke=se.substring(oe+1,ke))&&ke.trim()===""?ke.length:Pe}function Ae(ke){return V||(ke===void 0&&(ke=se.substring(U)),ue.push(ke),U=H,de(ue),le&&De()),we()}function ye(ke){U=ke,de(ue),ue=[],K=se.indexOf(b,U)}function we(ke){if(C.header&&!P&&ie.length&&!j){var Pe=ie[0],be=Object.create(null),rt=new Set(Pe);let Fe=!1;for(let Ve=0;Ve<Pe.length;Ve++){let Ye=Pe[Ve];if(be[Ye=E(C.transformHeader)?C.transformHeader(Ye,Ve):Ye]){let Qe,qt=be[Ye];for(;Qe=Ye+"_"+qt,qt++,rt.has(Qe););rt.add(Qe),Pe[Ve]=Qe,be[Ye]++,Fe=!0,(re=re===null?{}:re)[Qe]=Ye}else be[Ye]=1,Pe[Ve]=Ye;rt.add(Ye)}Fe&&console.warn("Duplicate headers found and renamed."),j=!0}return{data:ie,errors:ne,meta:{delimiter:T,linebreak:b,aborted:xe,truncated:!!ke,cursor:w+(P||0),renamedHeaders:re}}}function De(){R(we()),ie=[],ne=[]}},this.abort=function(){xe=!0},this.getCharIndex=function(){return U}}function x(C){var T=C.data,b=o[T.workerId],M=!1;if(T.error)b.userError(T.error,T.file);else if(T.results&&T.results.data){var R={abort:function(){M=!0,_(T.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(E(b.userStep)){for(var B=0;B<T.results.data.length&&(b.userStep({data:T.results.data[B],errors:T.results.errors,meta:T.results.meta},R),!M);B++);delete T.results}else E(b.userChunk)&&(b.userChunk(T.results,R,T.file),delete T.results)}T.finished&&!M&&_(T.workerId,T.results)}function _(C,T){var b=o[C];E(b.userComplete)&&b.userComplete(T),b.terminate(),delete o[C]}function y(){throw new Error("Not implemented.")}function F(C){if(typeof C!="object"||C===null)return C;var T,b=Array.isArray(C)?[]:{};for(T in C)b[T]=F(C[T]);return b}function k(C,T){return function(){C.apply(T,arguments)}}function E(C){return typeof C=="function"}return l.parse=function(C,T){var b=(T=T||{}).dynamicTyping||!1;if(E(b)&&(T.dynamicTypingFunction=b,b={}),T.dynamicTyping=b,T.transform=!!E(T.transform)&&T.transform,!T.worker||!l.WORKERS_SUPPORTED)return b=null,l.NODE_STREAM_INPUT,typeof C=="string"?(C=(M=>M.charCodeAt(0)!==65279?M:M.slice(1))(C),b=new(T.download?c:d)(T)):C.readable===!0&&E(C.read)&&E(C.on)?b=new v(T):(a.File&&C instanceof File||C instanceof Object)&&(b=new h(T)),b.stream(C);(b=(()=>{var M;return!!l.WORKERS_SUPPORTED&&(M=(()=>{var R=a.URL||a.webkitURL||null,B=r.toString();return l.BLOB_URL||(l.BLOB_URL=R.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",B,")();"],{type:"text/javascript"})))})(),(M=new a.Worker(M)).onmessage=x,M.id=f++,o[M.id]=M)})()).userStep=T.step,b.userChunk=T.chunk,b.userComplete=T.complete,b.userError=T.error,T.step=E(T.step),T.chunk=E(T.chunk),T.complete=E(T.complete),T.error=E(T.error),delete T.worker,b.postMessage({input:C,config:T,workerId:b.id})},l.unparse=function(C,T){var b=!1,M=!0,R=",",B=`\r
`,G='"',re=G+G,j=!1,q=null,ve=!1,U=((()=>{if(typeof T=="object"){if(typeof T.delimiter!="string"||l.BAD_DELIMITERS.filter(function(P){return T.delimiter.indexOf(P)!==-1}).length||(R=T.delimiter),typeof T.quotes!="boolean"&&typeof T.quotes!="function"&&!Array.isArray(T.quotes)||(b=T.quotes),typeof T.skipEmptyLines!="boolean"&&typeof T.skipEmptyLines!="string"||(j=T.skipEmptyLines),typeof T.newline=="string"&&(B=T.newline),typeof T.quoteChar=="string"&&(G=T.quoteChar),typeof T.header=="boolean"&&(M=T.header),Array.isArray(T.columns)){if(T.columns.length===0)throw new Error("Option columns is empty");q=T.columns}T.escapeChar!==void 0&&(re=T.escapeChar+G),T.escapeFormulae instanceof RegExp?ve=T.escapeFormulae:typeof T.escapeFormulae=="boolean"&&T.escapeFormulae&&(ve=/^[=+\-@\t\r].*$/)}})(),new RegExp(g(G),"g"));if(typeof C=="string"&&(C=JSON.parse(C)),Array.isArray(C)){if(!C.length||Array.isArray(C[0]))return xe(null,C,j);if(typeof C[0]=="object")return xe(q||Object.keys(C[0]),C,j)}else if(typeof C=="object")return typeof C.data=="string"&&(C.data=JSON.parse(C.data)),Array.isArray(C.data)&&(C.fields||(C.fields=C.meta&&C.meta.fields||q),C.fields||(C.fields=Array.isArray(C.data[0])?C.fields:typeof C.data[0]=="object"?Object.keys(C.data[0]):[]),Array.isArray(C.data[0])||typeof C.data[0]=="object"||(C.data=[C.data])),xe(C.fields||[],C.data||[],j);throw new Error("Unable to serialize unrecognized input");function xe(P,V,H){var z="",ae=(typeof P=="string"&&(P=JSON.parse(P)),typeof V=="string"&&(V=JSON.parse(V)),Array.isArray(P)&&0<P.length),pe=!Array.isArray(V[0]);if(ae&&M){for(var le=0;le<P.length;le++)0<le&&(z+=R),z+=se(P[le],le);0<V.length&&(z+=B)}for(var ie=0;ie<V.length;ie++){var ne=(ae?P:V[ie]).length,ue=!1,w=ae?Object.keys(V[ie]).length===0:V[ie].length===0;if(H&&!ae&&(ue=H==="greedy"?V[ie].join("").trim()==="":V[ie].length===1&&V[ie][0].length===0),H==="greedy"&&ae){for(var N=[],W=0;W<ne;W++){var J=pe?P[W]:W;N.push(V[ie][J])}ue=N.join("").trim()===""}if(!ue){for(var K=0;K<ne;K++){0<K&&!w&&(z+=R);var Y=ae&&pe?P[K]:K;z+=se(V[ie][Y],K)}ie<V.length-1&&(!H||0<ne&&!w)&&(z+=B)}}return z}function se(P,V){var H,z;return P==null?"":P.constructor===Date?JSON.stringify(P).slice(1,25):(z=!1,ve&&typeof P=="string"&&ve.test(P)&&(P="'"+P,z=!0),H=P.toString().replace(U,re),(z=z||b===!0||typeof b=="function"&&b(P,V)||Array.isArray(b)&&b[V]||((ae,pe)=>{for(var le=0;le<pe.length;le++)if(-1<ae.indexOf(pe[le]))return!0;return!1})(H,l.BAD_DELIMITERS)||-1<H.indexOf(R)||H.charAt(0)===" "||H.charAt(H.length-1)===" ")?G+H+G:H)}},l.RECORD_SEP="",l.UNIT_SEP="",l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r",`
`,'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!i&&!!a.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=10485760,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=m,l.ParserHandle=p,l.NetworkStreamer=c,l.FileStreamer=h,l.StringStreamer=d,l.ReadableStreamStreamer=v,a.jQuery&&((n=a.jQuery).fn.parse=function(C){var T=C.config||{},b=[];return this.each(function(B){if(!(n(this).prop("tagName").toUpperCase()==="INPUT"&&n(this).attr("type").toLowerCase()==="file"&&a.FileReader)||!this.files||this.files.length===0)return!0;for(var G=0;G<this.files.length;G++)b.push({file:this.files[G],inputElem:this,instanceConfig:n.extend({},T)})}),M(),this;function M(){if(b.length===0)E(C.complete)&&C.complete();else{var B,G,re,j,q=b[0];if(E(C.before)){var ve=C.before(q.file,q.inputElem);if(typeof ve=="object"){if(ve.action==="abort")return B="AbortError",G=q.file,re=q.inputElem,j=ve.reason,void(E(C.error)&&C.error({name:B},G,re,j));if(ve.action==="skip")return void R();typeof ve.config=="object"&&(q.instanceConfig=n.extend(q.instanceConfig,ve.config))}else if(ve==="skip")return void R()}var U=q.instanceConfig.complete;q.instanceConfig.complete=function(xe){E(U)&&U(xe,q.file,q.inputElem),R()},l.parse(q.file,q.instanceConfig)}}function R(){b.splice(0,1),M()}}),s&&(a.onmessage=function(C){C=C.data,l.WORKER_ID===void 0&&C&&(l.WORKER_ID=C.workerId),typeof C.input=="string"?a.postMessage({workerId:l.WORKER_ID,results:l.parse(C.input,C.config),finished:!0}):(a.File&&C.input instanceof File||C.input instanceof Object)&&(C=l.parse(C.input,C.config))&&a.postMessage({workerId:l.WORKER_ID,results:C,finished:!0})}),(c.prototype=Object.create(u.prototype)).constructor=c,(h.prototype=Object.create(u.prototype)).constructor=h,(d.prototype=Object.create(d.prototype)).constructor=d,(v.prototype=Object.create(u.prototype)).constructor=v,l})})(K0)),K0.exports}var TP=wP();const SP=_P(TP);var C4=1252,EP=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],i1={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},s1=function(e){EP.indexOf(e)!=-1&&(C4=i1[0]=e)};function CP(){s1(1252)}var Ea=function(e){s1(e)};function A4(){Ea(1200),CP()}function Rx(e){for(var t=[],r=0,a=e.length;r<a;++r)t[r]=e.charCodeAt(r);return t}function AP(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function D4(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var ff=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?AP(e.slice(2)):t==254&&r==255?D4(e.slice(2)):t==65279?e.slice(1):e},w0=function(t){return String.fromCharCode(t)},Px=function(t){return String.fromCharCode(t)},ll,$n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Lx(e){for(var t="",r=0,a=0,n=0,i=0,s=0,o=0,f=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,a=e.charCodeAt(l++),s=(r&3)<<4|a>>4,n=e.charCodeAt(l++),o=(a&15)<<2|n>>6,f=n&63,isNaN(a)?o=f=64:isNaN(n)&&(f=64),t+=$n.charAt(i)+$n.charAt(s)+$n.charAt(o)+$n.charAt(f);return t}function Kr(e){var t="",r=0,a=0,n=0,i=0,s=0,o=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=$n.indexOf(e.charAt(l++)),s=$n.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),o=$n.indexOf(e.charAt(l++)),a=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(a)),f=$n.indexOf(e.charAt(l++)),n=(o&3)<<6|f,f!==64&&(t+=String.fromCharCode(n));return t}var Ze=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),ds=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function oi(e){return Ze?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Ox(e){return Ze?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Sa=function(t){return Ze?ds(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function vs(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function o1(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return o1(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var Vn=Ze?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:ds(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var a=new Uint8Array(r),n=0;for(t=0,r=0;t<e.length;r+=n,++t)if(n=e[t].length,e[t]instanceof Uint8Array)a.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";a.set(new Uint8Array(e[t]),r)}return a}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function DP(e){for(var t=[],r=0,a=e.length+250,n=oi(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)n[r++]=s;else if(s<2048)n[r++]=192|s>>6&31,n[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++i)&1023;n[r++]=240|s>>8&7,n[r++]=128|s>>2&63,n[r++]=128|o>>6&15|(s&3)<<4,n[r++]=128|o&63}else n[r++]=224|s>>12&15,n[r++]=128|s>>6&63,n[r++]=128|s&63;r>a&&(t.push(n.slice(0,r)),r=0,n=oi(65535),a=65530)}return t.push(n.slice(0,r)),Vn(t)}var Cr=/\u0000/g,lf=/[\u0001-\u0006]/g;function lo(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Ca(e,t){var r=""+e;return r.length>=t?r:At("0",t-r.length)+r}function f1(e,t){var r=""+e;return r.length>=t?r:At(" ",t-r.length)+r}function Mu(e,t){var r=""+e;return r.length>=t?r:r+At(" ",t-r.length)}function kP(e,t){var r=""+Math.round(e);return r.length>=t?r:At("0",t-r.length)+r}function bP(e,t){var r=""+e;return r.length>=t?r:At("0",t-r.length)+r}var Bx=Math.pow(2,32);function Hs(e,t){if(e>Bx||e<-Bx)return kP(e,t);var r=Math.round(e);return bP(r,t)}function Ru(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Nx=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],ad=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function FP(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var We={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Ux={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},IP={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Pu(e,t,r){for(var a=e<0?-1:1,n=e*a,i=0,s=1,o=0,f=1,l=0,u=0,c=Math.floor(n);l<t&&(c=Math.floor(n),o=c*s+i,u=c*l+f,!(n-c<5e-8));)n=1/(n-c),i=s,s=o,f=l,l=u;if(u>t&&(l>t?(u=f,o=i):(u=l,o=s)),!r)return[0,a*o,u];var h=Math.floor(a*o/u);return[h,a*o-h*u,u]}function ji(e,t,r){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0,s=[],o={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(a+=1462),o.u>.9999&&(o.u=0,++n==86400&&(o.T=n=0,++a,++o.D)),a===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(a===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{a>60&&--a;var f=new Date(1900,0,1);f.setDate(f.getDate()+a-1),s=[f.getFullYear(),f.getMonth()+1,f.getDate()],i=f.getDay(),a<60&&(i=(i+6)%7),r&&(i=BP(f,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=i,o}var k4=new Date(1899,11,31,0,0,0),MP=k4.getTime(),RP=new Date(1900,2,1,0,0,0);function b4(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=RP&&(r+=1440*60*1e3),(r-(MP+(e.getTimezoneOffset()-k4.getTimezoneOffset())*6e4))/(1440*60*1e3)}function l1(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function PP(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function LP(e){var t=e<0?12:11,r=l1(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function OP(e){var t=l1(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function ul(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=LP(e):t===10?r=e.toFixed(10).substr(0,12):r=OP(e),l1(PP(r.toUpperCase()))}function ls(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):ul(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ca(14,b4(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function BP(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function NP(e,t,r,a){var n="",i=0,s=0,o=r.y,f,l=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:f=o%100,l=2;break;default:f=o%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:f=r.m,l=t.length;break;case 3:return ad[r.m-1][1];case 5:return ad[r.m-1][0];default:return ad[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:f=r.d,l=t.length;break;case 3:return Nx[r.q][0];default:return Nx[r.q][1]}break;case 104:switch(t.length){case 1:case 2:f=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:f=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:f=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Ca(r.S,t.length):(a>=2?s=a===3?1e3:100:s=a===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(n=Ca(i,2+a),t==="ss"?n.substr(0,2):"."+n.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":f=r.D*24+r.H;break;case"[m]":case"[mm]":f=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":f=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:f=o,l=1;break}var u=l>0?Ca(f,l):"";return u}function Xn(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,a=e.substr(0,r);r!=e.length;r+=t)a+=(a.length>0?",":"")+e.substr(r,t);return a}var F4=/%/g;function UP(e,t,r){var a=t.replace(F4,""),n=t.length-a.length;return xn(e,a,r*Math.pow(10,2*n))+At("%",n)}function HP(e,t,r){for(var a=t.length-1;t.charCodeAt(a-1)===44;)--a;return xn(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}function I4(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+I4(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%n;if(i<0&&(i+=n),r=(t/Math.pow(10,i)).toPrecision(a+1+(n+i)%n),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,f,l,u){return f+l+u.substr(0,(n+i)%n)+"."+u.substr(i)+"E"})}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var M4=/# (\?+)( ?)\/( ?)(\d+)/;function VP(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),i=Math.floor(n/a),s=n-i*a,o=a;return r+(i===0?"":""+i)+" "+(s===0?At(" ",e[1].length+1+e[4].length):f1(s,e[1].length)+e[2]+"/"+e[3]+Ca(o,e[4].length))}function zP(e,t,r){return r+(t===0?"":""+t)+At(" ",e[1].length+2+e[4].length)}var R4=/^#*0*\.([0#]+)/,P4=/\).*[0#]/,L4=/\(###\) ###\\?-####/;function gr(e){for(var t="",r,a=0;a!=e.length;++a)switch(r=e.charCodeAt(a)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function Hx(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Vx(e,t){var r=e-Math.floor(e),a=Math.pow(10,t);return t<(""+Math.round(r*a)).length?0:Math.round(r*a)}function WP(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function GP(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function ea(e,t,r){if(e.charCodeAt(0)===40&&!t.match(P4)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ea("n",a,r):"("+ea("n",a,-r)+")"}if(t.charCodeAt(t.length-1)===44)return HP(e,t,r);if(t.indexOf("%")!==-1)return UP(e,t,r);if(t.indexOf("E")!==-1)return I4(t,r);if(t.charCodeAt(0)===36)return"$"+ea(e,t.substr(t.charAt(1)==" "?2:1),r);var n,i,s,o,f=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Hs(f,t.length);if(t.match(/^[#?]+$/))return n=Hs(r,0),n==="0"&&(n=""),n.length>t.length?n:gr(t.substr(0,t.length-n.length))+n;if(i=t.match(M4))return VP(i,f,l);if(t.match(/^#+0+$/))return l+Hs(f,t.length-t.indexOf("0"));if(i=t.match(R4))return n=Hx(r,i[1].length).replace(/^([^\.]+)$/,"$1."+gr(i[1])).replace(/\.$/,"."+gr(i[1])).replace(/\.(\d*)$/,function(v,p){return"."+p+At("0",gr(i[1]).length-p.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+Hx(f,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Xn(Hs(f,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ea(e,t,-r):Xn(""+(Math.floor(r)+WP(r,i[1].length)))+"."+Ca(Vx(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return ea(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=lo(ea(e,t.replace(/[\\-]/g,""),r)),s=0,lo(lo(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<n.length?n.charAt(s++):v==="0"?"0":""}));if(t.match(L4))return n=ea(e,"##########",r),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),o=Pu(f,Math.pow(10,s)-1,!1),n=""+l,u=xn("n",i[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+i[2]+"/"+i[3],u=Mu(o[2],s),u.length<i[4].length&&(u=gr(i[4].substr(i[4].length-u.length))+u),n+=u,n;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o=Pu(f,Math.pow(10,s)-1,!0),l+(o[0]||(o[1]?"":"0"))+" "+(o[1]?f1(o[1],s)+i[2]+"/"+i[3]+Mu(o[2],s):At(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return n=Hs(r,0),t.length<=n.length?n:gr(t.substr(0,t.length-n.length))+n;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=n.indexOf(".");var c=t.indexOf(".")-s,h=t.length-n.length-c;return gr(t.substr(0,c)+n+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=Vx(r,i[1].length),r<0?"-"+ea(e,t,-r):Xn(GP(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Ca(0,3-v.length):"")+v})+"."+Ca(s,i[1].length);switch(t){case"###,##0.00":return ea(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=Xn(Hs(f,0));return d!=="0"?l+d:"";case"###,###.00":return ea(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return ea(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function $P(e,t,r){for(var a=t.length-1;t.charCodeAt(a-1)===44;)--a;return xn(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}function XP(e,t,r){var a=t.replace(F4,""),n=t.length-a.length;return xn(e,a,r*Math.pow(10,2*n))+At("%",n)}function O4(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+O4(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%n;if(i<0&&(i+=n),r=(t/Math.pow(10,i)).toPrecision(a+1+(n+i)%n),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,f,l,u){return f+l+u.substr(0,(n+i)%n)+"."+u.substr(i)+"E"})}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Na(e,t,r){if(e.charCodeAt(0)===40&&!t.match(P4)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Na("n",a,r):"("+Na("n",a,-r)+")"}if(t.charCodeAt(t.length-1)===44)return $P(e,t,r);if(t.indexOf("%")!==-1)return XP(e,t,r);if(t.indexOf("E")!==-1)return O4(t,r);if(t.charCodeAt(0)===36)return"$"+Na(e,t.substr(t.charAt(1)==" "?2:1),r);var n,i,s,o,f=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Ca(f,t.length);if(t.match(/^[#?]+$/))return n=""+r,r===0&&(n=""),n.length>t.length?n:gr(t.substr(0,t.length-n.length))+n;if(i=t.match(M4))return zP(i,f,l);if(t.match(/^#+0+$/))return l+Ca(f,t.length-t.indexOf("0"));if(i=t.match(R4))return n=(""+r).replace(/^([^\.]+)$/,"$1."+gr(i[1])).replace(/\.$/,"."+gr(i[1])),n=n.replace(/\.(\d*)$/,function(v,p){return"."+p+At("0",gr(i[1]).length-p.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Xn(""+f);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Na(e,t,-r):Xn(""+r)+"."+At("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Na(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=lo(Na(e,t.replace(/[\\-]/g,""),r)),s=0,lo(lo(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<n.length?n.charAt(s++):v==="0"?"0":""}));if(t.match(L4))return n=Na(e,"##########",r),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),o=Pu(f,Math.pow(10,s)-1,!1),n=""+l,u=xn("n",i[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+i[2]+"/"+i[3],u=Mu(o[2],s),u.length<i[4].length&&(u=gr(i[4].substr(i[4].length-u.length))+u),n+=u,n;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o=Pu(f,Math.pow(10,s)-1,!0),l+(o[0]||(o[1]?"":"0"))+" "+(o[1]?f1(o[1],s)+i[2]+"/"+i[3]+Mu(o[2],s):At(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return n=""+r,t.length<=n.length?n:gr(t.substr(0,t.length-n.length))+n;if(i=t.match(/^([#0]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=n.indexOf(".");var c=t.indexOf(".")-s,h=t.length-n.length-c;return gr(t.substr(0,c)+n+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Na(e,t,-r):Xn(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Ca(0,3-v.length):"")+v})+"."+Ca(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=Xn(""+f);return d!=="0"?l+d:"";default:if(t.match(/\.[0#?]*$/))return Na(e,t.slice(0,t.lastIndexOf(".")),r)+gr(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function xn(e,t,r){return(r|0)===r?Na(e,t,r):ea(e,t,r)}function YP(e){for(var t=[],r=!1,a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:r=!r;break;case 95:case 42:case 92:++a;break;case 59:t[t.length]=e.substr(n,a-n),n=a+1}if(t[t.length]=e.substr(n),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var B4=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Eo(e){for(var t=0,r="",a="";t<e.length;)switch(r=e.charAt(t)){case"G":Ru(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(a=r;e.charAt(t++)!=="]"&&t<e.length;)a+=e.charAt(t);if(a.match(B4))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function KP(e,t,r,a){for(var n=[],i="",s=0,o="",f="t",l,u,c,h="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!Ru(e,s))throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";(c=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(c);n[n.length]={t:"t",v:i},++s;break;case"\\":var d=e.charAt(++s),v=d==="("||d===")"?d:"t";n[n.length]={t:v,v:d},++s;break;case"_":n[n.length]={t:"t",v:" "},s+=2;break;case"@":n[n.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null&&(l=ji(t,r,e.charAt(s+1)==="2"),l==null))return"";n[n.length]={t:"X",v:e.substr(s,2)},f=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||l==null&&(l=ji(t,r),l==null))return"";for(i=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)i+=o;o==="m"&&f.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=h),n[n.length]={t:o,v:i},f=o;break;case"A":case"a":case"上":var p={t:o,v:o};if(l==null&&(l=ji(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(p.v=l.H>=12?"P":"A"),p.t="T",h="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(p.v=l.H>=12?"PM":"AM"),p.t="T",s+=5,h="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(p.v=l.H>=12?"下午":"上午"),p.t="T",s+=5,h="h"):(p.t="t",++s),l==null&&p.t==="T")return"";n[n.length]=p,f=o;break;case"[":for(i=o;e.charAt(s++)!=="]"&&s<e.length;)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(B4)){if(l==null&&(l=ji(t,r),l==null))return"";n[n.length]={t:"Z",v:i.toLowerCase()},f=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",Eo(e)||(n[n.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=o;++s<e.length&&(o=e.charAt(s))==="0";)i+=o;n[n.length]={t:"s",v:i};break}case"0":case"#":for(i=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)i+=o;n[n.length]={t:"n",v:i};break;case"?":for(i=o;e.charAt(++s)===o;)i+=o;n[n.length]={t:o,v:i},f=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":n[n.length]={t:a===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:o,v:o},++s;break;case"$":n[n.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"t",v:o},++s;break}var g=0,m=0,x;for(s=n.length-1,f="t";s>=0;--s)switch(n[s].t){case"h":case"H":n[s].t=h,f="h",g<1&&(g=1);break;case"s":(x=n[s].v.match(/\.0+$/))&&(m=Math.max(m,x[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":f=n[s].t;break;case"m":f==="s"&&(n[s].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&n[s].v.match(/[Hh]/)&&(g=1),g<2&&n[s].v.match(/[Mm]/)&&(g=2),g<3&&n[s].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var _="",y;for(s=0;s<n.length;++s)switch(n[s].t){case"t":case"T":case" ":case"D":break;case"X":n[s].v="",n[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[s].v=NP(n[s].t.charCodeAt(0),n[s].v,l,m),n[s].t="t";break;case"n":case"?":for(y=s+1;n[y]!=null&&((o=n[y].t)==="?"||o==="D"||(o===" "||o==="t")&&n[y+1]!=null&&(n[y+1].t==="?"||n[y+1].t==="t"&&n[y+1].v==="/")||n[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(n[y].v==="/"||n[y].v===" "&&n[y+1]!=null&&n[y+1].t=="?"));)n[s].v+=n[y].v,n[y]={v:"",t:";"},++y;_+=n[s].v,s=y-1;break;case"G":n[s].t="t",n[s].v=ls(t,r);break}var F="",k,E;if(_.length>0){_.charCodeAt(0)==40?(k=t<0&&_.charCodeAt(0)===45?-t:t,E=xn("n",_,k)):(k=t<0&&a>1?-t:t,E=xn("n",_,k),k<0&&n[0]&&n[0].t=="t"&&(E=E.substr(1),n[0].v="-"+n[0].v)),y=E.length-1;var C=n.length;for(s=0;s<n.length;++s)if(n[s]!=null&&n[s].t!="t"&&n[s].v.indexOf(".")>-1){C=s;break}var T=n.length;if(C===n.length&&E.indexOf("E")===-1){for(s=n.length-1;s>=0;--s)n[s]==null||"n?".indexOf(n[s].t)===-1||(y>=n[s].v.length-1?(y-=n[s].v.length,n[s].v=E.substr(y+1,n[s].v.length)):y<0?n[s].v="":(n[s].v=E.substr(0,y+1),y=-1),n[s].t="t",T=s);y>=0&&T<n.length&&(n[T].v=E.substr(0,y+1)+n[T].v)}else if(C!==n.length&&E.indexOf("E")===-1){for(y=E.indexOf(".")-1,s=C;s>=0;--s)if(!(n[s]==null||"n?".indexOf(n[s].t)===-1)){for(u=n[s].v.indexOf(".")>-1&&s===C?n[s].v.indexOf(".")-1:n[s].v.length-1,F=n[s].v.substr(u+1);u>=0;--u)y>=0&&(n[s].v.charAt(u)==="0"||n[s].v.charAt(u)==="#")&&(F=E.charAt(y--)+F);n[s].v=F,n[s].t="t",T=s}for(y>=0&&T<n.length&&(n[T].v=E.substr(0,y+1)+n[T].v),y=E.indexOf(".")+1,s=C;s<n.length;++s)if(!(n[s]==null||"n?(".indexOf(n[s].t)===-1&&s!==C)){for(u=n[s].v.indexOf(".")>-1&&s===C?n[s].v.indexOf(".")+1:0,F=n[s].v.substr(0,u);u<n[s].v.length;++u)y<E.length&&(F+=E.charAt(y++));n[s].v=F,n[s].t="t",T=s}}}for(s=0;s<n.length;++s)n[s]!=null&&"n?".indexOf(n[s].t)>-1&&(k=a>1&&t<0&&s>0&&n[s-1].v==="-"?-t:t,n[s].v=xn(n[s].t,n[s].v,k),n[s].t="t");var b="";for(s=0;s!==n.length;++s)n[s]!=null&&(b+=n[s].v);return b}var zx=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Wx(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function ZP(e,t){var r=YP(e),a=r.length,n=r[a-1].indexOf("@");if(a<4&&n>-1&&--a,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[a,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(zx),o=r[1].match(zx);return Wx(t,s)?[a,r[0]]:Wx(t,o)?[a,r[1]]:[a,r[s!=null&&o!=null?2:1]]}return[a,i]}function ca(e,t,r){r==null&&(r={});var a="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?a=r.dateNF:a=e;break;case"number":e==14&&r.dateNF?a=r.dateNF:a=(r.table!=null?r.table:We)[e],a==null&&(a=r.table&&r.table[Ux[e]]||We[Ux[e]]),a==null&&(a=IP[e]||"General");break}if(Ru(a,0))return ls(t,r);t instanceof Date&&(t=b4(t,r.date1904));var n=ZP(a,t);if(Ru(n[1]))return ls(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return KP(n[1],t,r,n[0])}function ns(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(We[r]==null){t<0&&(t=r);continue}if(We[r]==e){t=r;break}}t<0&&(t=391)}return We[t]=e,t}function N4(){We=FP()}var jP={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},U4=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function qP(e){var t=typeof e=="number"?We[e]:e;return t=t.replace(U4,"(\\d+)"),new RegExp("^"+t+"$")}function JP(e,t,r){var a=-1,n=-1,i=-1,s=-1,o=-1,f=-1;(t.match(U4)||[]).forEach(function(c,h){var d=parseInt(r[h+1],10);switch(c.toLowerCase().charAt(0)){case"y":a=d;break;case"d":i=d;break;case"h":s=d;break;case"s":f=d;break;case"m":s>=0?o=d:n=d;break}}),f>=0&&o==-1&&n>=0&&(o=n,n=-1);var l=(""+(a>=0?a:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return s==-1&&o==-1&&f==-1?l:a==-1&&n==-1&&i==-1?u:l+"T"+u}var QP=(function(){var e={};e.version="1.2.0";function t(){for(var E=0,C=new Array(256),T=0;T!=256;++T)E=T,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,C[T]=E;return typeof Int32Array<"u"?new Int32Array(C):C}var r=t();function a(E){var C=0,T=0,b=0,M=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(b=0;b!=256;++b)M[b]=E[b];for(b=0;b!=256;++b)for(T=E[b],C=256+b;C<4096;C+=256)T=M[C]=T>>>8^E[T&255];var R=[];for(b=1;b!=16;++b)R[b-1]=typeof Int32Array<"u"?M.subarray(b*256,b*256+256):M.slice(b*256,b*256+256);return R}var n=a(r),i=n[0],s=n[1],o=n[2],f=n[3],l=n[4],u=n[5],c=n[6],h=n[7],d=n[8],v=n[9],p=n[10],g=n[11],m=n[12],x=n[13],_=n[14];function y(E,C){for(var T=C^-1,b=0,M=E.length;b<M;)T=T>>>8^r[(T^E.charCodeAt(b++))&255];return~T}function F(E,C){for(var T=C^-1,b=E.length-15,M=0;M<b;)T=_[E[M++]^T&255]^x[E[M++]^T>>8&255]^m[E[M++]^T>>16&255]^g[E[M++]^T>>>24]^p[E[M++]]^v[E[M++]]^d[E[M++]]^h[E[M++]]^c[E[M++]]^u[E[M++]]^l[E[M++]]^f[E[M++]]^o[E[M++]]^s[E[M++]]^i[E[M++]]^r[E[M++]];for(b+=15;M<b;)T=T>>>8^r[(T^E[M++])&255];return~T}function k(E,C){for(var T=C^-1,b=0,M=E.length,R=0,B=0;b<M;)R=E.charCodeAt(b++),R<128?T=T>>>8^r[(T^R)&255]:R<2048?(T=T>>>8^r[(T^(192|R>>6&31))&255],T=T>>>8^r[(T^(128|R&63))&255]):R>=55296&&R<57344?(R=(R&1023)+64,B=E.charCodeAt(b++)&1023,T=T>>>8^r[(T^(240|R>>8&7))&255],T=T>>>8^r[(T^(128|R>>2&63))&255],T=T>>>8^r[(T^(128|B>>6&15|(R&3)<<4))&255],T=T>>>8^r[(T^(128|B&63))&255]):(T=T>>>8^r[(T^(224|R>>12&15))&255],T=T>>>8^r[(T^(128|R>>6&63))&255],T=T>>>8^r[(T^(128|R&63))&255]);return~T}return e.table=r,e.bstr=y,e.buf=F,e.str=k,e})(),qe=(function(){var t={};t.version="1.2.1";function r(S,A){for(var D=S.split("/"),I=A.split("/"),L=0,O=0,Z=Math.min(D.length,I.length);L<Z;++L){if(O=D[L].length-I[L].length)return O;if(D[L]!=I[L])return D[L]<I[L]?-1:1}return D.length-I.length}function a(S){if(S.charAt(S.length-1)=="/")return S.slice(0,-1).indexOf("/")===-1?S:a(S.slice(0,-1));var A=S.lastIndexOf("/");return A===-1?S:S.slice(0,A+1)}function n(S){if(S.charAt(S.length-1)=="/")return n(S.slice(0,-1));var A=S.lastIndexOf("/");return A===-1?S:S.slice(A+1)}function i(S,A){typeof A=="string"&&(A=new Date(A));var D=A.getHours();D=D<<6|A.getMinutes(),D=D<<5|A.getSeconds()>>>1,S.write_shift(2,D);var I=A.getFullYear()-1980;I=I<<4|A.getMonth()+1,I=I<<5|A.getDate(),S.write_shift(2,I)}function s(S){var A=S.read_shift(2)&65535,D=S.read_shift(2)&65535,I=new Date,L=D&31;D>>>=5;var O=D&15;D>>>=4,I.setMilliseconds(0),I.setFullYear(D+1980),I.setMonth(O-1),I.setDate(L);var Z=A&31;A>>>=5;var fe=A&63;return A>>>=6,I.setHours(A),I.setMinutes(fe),I.setSeconds(Z<<1),I}function o(S){Yt(S,0);for(var A={},D=0;S.l<=S.length-4;){var I=S.read_shift(2),L=S.read_shift(2),O=S.l+L,Z={};I===21589&&(D=S.read_shift(1),D&1&&(Z.mtime=S.read_shift(4)),L>5&&(D&2&&(Z.atime=S.read_shift(4)),D&4&&(Z.ctime=S.read_shift(4))),Z.mtime&&(Z.mt=new Date(Z.mtime*1e3))),S.l=O,A[I]=Z}return A}var f;function l(){return f||(f={})}function u(S,A){if(S[0]==80&&S[1]==75)return Do(S,A);if((S[0]|32)==109&&(S[1]|32)==105)return Dc(S,A);if(S.length<512)throw new Error("CFB file size "+S.length+" < 512");var D=3,I=512,L=0,O=0,Z=0,fe=0,te=0,ee=[],Q=S.slice(0,512);Yt(Q,0);var ge=c(Q);switch(D=ge[0],D){case 3:I=512;break;case 4:I=4096;break;case 0:if(ge[1]==0)return Do(S,A);default:throw new Error("Major Version: Expected 3 or 4 saw "+D)}I!==512&&(Q=S.slice(0,I),Yt(Q,28));var Te=S.slice(0,I);h(Q,D);var Ce=Q.read_shift(4,"i");if(D===3&&Ce!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ce);Q.l+=4,Z=Q.read_shift(4,"i"),Q.l+=4,Q.chk("00100000","Mini Stream Cutoff Size: "),fe=Q.read_shift(4,"i"),L=Q.read_shift(4,"i"),te=Q.read_shift(4,"i"),O=Q.read_shift(4,"i");for(var _e=-1,Ee=0;Ee<109&&(_e=Q.read_shift(4,"i"),!(_e<0));++Ee)ee[Ee]=_e;var Oe=d(S,I);g(te,O,Oe,I,ee);var ht=x(Oe,Z,ee,I);ht[Z].name="!Directory",L>0&&fe!==B&&(ht[fe].name="!MiniFAT"),ht[ee[0]].name="!FAT",ht.fat_addrs=ee,ht.ssz=I;var lt={},Ut=[],va=[],an=[];_(Z,ht,Oe,Ut,L,lt,va,fe),v(va,an,Ut),Ut.shift();var et={FileIndex:va,FullPaths:an};return A&&A.raw&&(et.raw={header:Te,sectors:Oe}),et}function c(S){if(S[S.l]==80&&S[S.l+1]==75)return[0,0];S.chk(G,"Header Signature: "),S.l+=16;var A=S.read_shift(2,"u");return[S.read_shift(2,"u"),A]}function h(S,A){var D=9;switch(S.l+=2,D=S.read_shift(2)){case 9:if(A!=3)throw new Error("Sector Shift: Expected 9 saw "+D);break;case 12:if(A!=4)throw new Error("Sector Shift: Expected 12 saw "+D);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+D)}S.chk("0600","Mini Sector Shift: "),S.chk("000000000000","Reserved: ")}function d(S,A){for(var D=Math.ceil(S.length/A)-1,I=[],L=1;L<D;++L)I[L-1]=S.slice(L*A,(L+1)*A);return I[D-1]=S.slice(D*A),I}function v(S,A,D){for(var I=0,L=0,O=0,Z=0,fe=0,te=D.length,ee=[],Q=[];I<te;++I)ee[I]=Q[I]=I,A[I]=D[I];for(;fe<Q.length;++fe)I=Q[fe],L=S[I].L,O=S[I].R,Z=S[I].C,ee[I]===I&&(L!==-1&&ee[L]!==L&&(ee[I]=ee[L]),O!==-1&&ee[O]!==O&&(ee[I]=ee[O])),Z!==-1&&(ee[Z]=I),L!==-1&&I!=ee[I]&&(ee[L]=ee[I],Q.lastIndexOf(L)<fe&&Q.push(L)),O!==-1&&I!=ee[I]&&(ee[O]=ee[I],Q.lastIndexOf(O)<fe&&Q.push(O));for(I=1;I<te;++I)ee[I]===I&&(O!==-1&&ee[O]!==O?ee[I]=ee[O]:L!==-1&&ee[L]!==L&&(ee[I]=ee[L]));for(I=1;I<te;++I)if(S[I].type!==0){if(fe=I,fe!=ee[fe])do fe=ee[fe],A[I]=A[fe]+"/"+A[I];while(fe!==0&&ee[fe]!==-1&&fe!=ee[fe]);ee[I]=-1}for(A[0]+="/",I=1;I<te;++I)S[I].type!==2&&(A[I]+="/")}function p(S,A,D){for(var I=S.start,L=S.size,O=[],Z=I;D&&L>0&&Z>=0;)O.push(A.slice(Z*R,Z*R+R)),L-=R,Z=$i(D,Z*4);return O.length===0?Ht(0):Vn(O).slice(0,S.size)}function g(S,A,D,I,L){var O=B;if(S===B){if(A!==0)throw new Error("DIFAT chain shorter than expected")}else if(S!==-1){var Z=D[S],fe=(I>>>2)-1;if(!Z)return;for(var te=0;te<fe&&(O=$i(Z,te*4))!==B;++te)L.push(O);g($i(Z,I-4),A-1,D,I,L)}}function m(S,A,D,I,L){var O=[],Z=[];L||(L=[]);var fe=I-1,te=0,ee=0;for(te=A;te>=0;){L[te]=!0,O[O.length]=te,Z.push(S[te]);var Q=D[Math.floor(te*4/I)];if(ee=te*4&fe,I<4+ee)throw new Error("FAT boundary crossed: "+te+" 4 "+I);if(!S[Q])break;te=$i(S[Q],ee)}return{nodes:O,data:Qx([Z])}}function x(S,A,D,I){var L=S.length,O=[],Z=[],fe=[],te=[],ee=I-1,Q=0,ge=0,Te=0,Ce=0;for(Q=0;Q<L;++Q)if(fe=[],Te=Q+A,Te>=L&&(Te-=L),!Z[Te]){te=[];var _e=[];for(ge=Te;ge>=0;){_e[ge]=!0,Z[ge]=!0,fe[fe.length]=ge,te.push(S[ge]);var Ee=D[Math.floor(ge*4/I)];if(Ce=ge*4&ee,I<4+Ce)throw new Error("FAT boundary crossed: "+ge+" 4 "+I);if(!S[Ee]||(ge=$i(S[Ee],Ce),_e[ge]))break}O[Te]={nodes:fe,data:Qx([te])}}return O}function _(S,A,D,I,L,O,Z,fe){for(var te=0,ee=I.length?2:0,Q=A[S].data,ge=0,Te=0,Ce;ge<Q.length;ge+=128){var _e=Q.slice(ge,ge+128);Yt(_e,64),Te=_e.read_shift(2),Ce=v1(_e,0,Te-ee),I.push(Ce);var Ee={name:Ce,type:_e.read_shift(1),color:_e.read_shift(1),L:_e.read_shift(4,"i"),R:_e.read_shift(4,"i"),C:_e.read_shift(4,"i"),clsid:_e.read_shift(16),state:_e.read_shift(4,"i"),start:0,size:0},Oe=_e.read_shift(2)+_e.read_shift(2)+_e.read_shift(2)+_e.read_shift(2);Oe!==0&&(Ee.ct=y(_e,_e.l-8));var ht=_e.read_shift(2)+_e.read_shift(2)+_e.read_shift(2)+_e.read_shift(2);ht!==0&&(Ee.mt=y(_e,_e.l-8)),Ee.start=_e.read_shift(4,"i"),Ee.size=_e.read_shift(4,"i"),Ee.size<0&&Ee.start<0&&(Ee.size=Ee.type=0,Ee.start=B,Ee.name=""),Ee.type===5?(te=Ee.start,L>0&&te!==B&&(A[te].name="!StreamData")):Ee.size>=4096?(Ee.storage="fat",A[Ee.start]===void 0&&(A[Ee.start]=m(D,Ee.start,A.fat_addrs,A.ssz)),A[Ee.start].name=Ee.name,Ee.content=A[Ee.start].data.slice(0,Ee.size)):(Ee.storage="minifat",Ee.size<0?Ee.size=0:te!==B&&Ee.start!==B&&A[te]&&(Ee.content=p(Ee,A[te].data,(A[fe]||{}).data))),Ee.content&&Yt(Ee.content,0),O[Ce]=Ee,Z.push(Ee)}}function y(S,A){return new Date((Vr(S,A+4)/1e7*Math.pow(2,32)+Vr(S,A)/1e7-11644473600)*1e3)}function F(S,A){return l(),u(f.readFileSync(S),A)}function k(S,A){var D=A&&A.type;switch(D||Ze&&Buffer.isBuffer(S)&&(D="buffer"),D||"base64"){case"file":return F(S,A);case"base64":return u(Sa(Kr(S)),A);case"binary":return u(Sa(S),A)}return u(S,A)}function E(S,A){var D=A||{},I=D.root||"Root Entry";if(S.FullPaths||(S.FullPaths=[]),S.FileIndex||(S.FileIndex=[]),S.FullPaths.length!==S.FileIndex.length)throw new Error("inconsistent CFB structure");S.FullPaths.length===0&&(S.FullPaths[0]=I+"/",S.FileIndex[0]={name:I,type:5}),D.CLSID&&(S.FileIndex[0].clsid=D.CLSID),C(S)}function C(S){var A="Sh33tJ5";if(!qe.find(S,"/"+A)){var D=Ht(4);D[0]=55,D[1]=D[3]=50,D[2]=54,S.FileIndex.push({name:A,type:2,content:D,size:4,L:69,R:69,C:69}),S.FullPaths.push(S.FullPaths[0]+A),T(S)}}function T(S,A){E(S);for(var D=!1,I=!1,L=S.FullPaths.length-1;L>=0;--L){var O=S.FileIndex[L];switch(O.type){case 0:I?D=!0:(S.FileIndex.pop(),S.FullPaths.pop());break;case 1:case 2:case 5:I=!0,isNaN(O.R*O.L*O.C)&&(D=!0),O.R>-1&&O.L>-1&&O.R==O.L&&(D=!0);break;default:D=!0;break}}if(!(!D&&!A)){var Z=new Date(1987,1,19),fe=0,te=Object.create?Object.create(null):{},ee=[];for(L=0;L<S.FullPaths.length;++L)te[S.FullPaths[L]]=!0,S.FileIndex[L].type!==0&&ee.push([S.FullPaths[L],S.FileIndex[L]]);for(L=0;L<ee.length;++L){var Q=a(ee[L][0]);I=te[Q],I||(ee.push([Q,{name:n(Q).replace("/",""),type:1,clsid:j,ct:Z,mt:Z,content:null}]),te[Q]=!0)}for(ee.sort(function(Ce,_e){return r(Ce[0],_e[0])}),S.FullPaths=[],S.FileIndex=[],L=0;L<ee.length;++L)S.FullPaths[L]=ee[L][0],S.FileIndex[L]=ee[L][1];for(L=0;L<ee.length;++L){var ge=S.FileIndex[L],Te=S.FullPaths[L];if(ge.name=n(Te).replace("/",""),ge.L=ge.R=ge.C=-(ge.color=1),ge.size=ge.content?ge.content.length:0,ge.start=0,ge.clsid=ge.clsid||j,L===0)ge.C=ee.length>1?1:-1,ge.size=0,ge.type=5;else if(Te.slice(-1)=="/"){for(fe=L+1;fe<ee.length&&a(S.FullPaths[fe])!=Te;++fe);for(ge.C=fe>=ee.length?-1:fe,fe=L+1;fe<ee.length&&a(S.FullPaths[fe])!=a(Te);++fe);ge.R=fe>=ee.length?-1:fe,ge.type=1}else a(S.FullPaths[L+1]||"")==a(Te)&&(ge.R=L+1),ge.type=2}}}function b(S,A){var D=A||{};if(D.fileType=="mad")return kc(S,D);if(T(S),D.fileType==="zip")return Ec(S,D);var I=(function(Ce){for(var _e=0,Ee=0,Oe=0;Oe<Ce.FileIndex.length;++Oe){var ht=Ce.FileIndex[Oe];if(ht.content){var lt=ht.content.length;lt>0&&(lt<4096?_e+=lt+63>>6:Ee+=lt+511>>9)}}for(var Ut=Ce.FullPaths.length+3>>2,va=_e+7>>3,an=_e+127>>7,et=va+Ee+Ut+an,dr=et+127>>7,Ss=dr<=109?0:Math.ceil((dr-109)/127);et+dr+Ss+127>>7>dr;)Ss=++dr<=109?0:Math.ceil((dr-109)/127);var nn=[1,Ss,dr,an,Ut,Ee,_e,0];return Ce.FileIndex[0].size=_e<<6,nn[7]=(Ce.FileIndex[0].start=nn[0]+nn[1]+nn[2]+nn[3]+nn[4]+nn[5])+(nn[6]+7>>3),nn})(S),L=Ht(I[7]<<9),O=0,Z=0;{for(O=0;O<8;++O)L.write_shift(1,re[O]);for(O=0;O<8;++O)L.write_shift(2,0);for(L.write_shift(2,62),L.write_shift(2,3),L.write_shift(2,65534),L.write_shift(2,9),L.write_shift(2,6),O=0;O<3;++O)L.write_shift(2,0);for(L.write_shift(4,0),L.write_shift(4,I[2]),L.write_shift(4,I[0]+I[1]+I[2]+I[3]-1),L.write_shift(4,0),L.write_shift(4,4096),L.write_shift(4,I[3]?I[0]+I[1]+I[2]-1:B),L.write_shift(4,I[3]),L.write_shift(-4,I[1]?I[0]-1:B),L.write_shift(4,I[1]),O=0;O<109;++O)L.write_shift(-4,O<I[2]?I[1]+O:-1)}if(I[1])for(Z=0;Z<I[1];++Z){for(;O<236+Z*127;++O)L.write_shift(-4,O<I[2]?I[1]+O:-1);L.write_shift(-4,Z===I[1]-1?B:Z+1)}var fe=function(Ce){for(Z+=Ce;O<Z-1;++O)L.write_shift(-4,O+1);Ce&&(++O,L.write_shift(-4,B))};for(Z=O=0,Z+=I[1];O<Z;++O)L.write_shift(-4,q.DIFSECT);for(Z+=I[2];O<Z;++O)L.write_shift(-4,q.FATSECT);fe(I[3]),fe(I[4]);for(var te=0,ee=0,Q=S.FileIndex[0];te<S.FileIndex.length;++te)Q=S.FileIndex[te],Q.content&&(ee=Q.content.length,!(ee<4096)&&(Q.start=Z,fe(ee+511>>9)));for(fe(I[6]+7>>3);L.l&511;)L.write_shift(-4,q.ENDOFCHAIN);for(Z=O=0,te=0;te<S.FileIndex.length;++te)Q=S.FileIndex[te],Q.content&&(ee=Q.content.length,!(!ee||ee>=4096)&&(Q.start=Z,fe(ee+63>>6)));for(;L.l&511;)L.write_shift(-4,q.ENDOFCHAIN);for(O=0;O<I[4]<<2;++O){var ge=S.FullPaths[O];if(!ge||ge.length===0){for(te=0;te<17;++te)L.write_shift(4,0);for(te=0;te<3;++te)L.write_shift(4,-1);for(te=0;te<12;++te)L.write_shift(4,0);continue}Q=S.FileIndex[O],O===0&&(Q.start=Q.size?Q.start-1:B);var Te=O===0&&D.root||Q.name;if(ee=2*(Te.length+1),L.write_shift(64,Te,"utf16le"),L.write_shift(2,ee),L.write_shift(1,Q.type),L.write_shift(1,Q.color),L.write_shift(-4,Q.L),L.write_shift(-4,Q.R),L.write_shift(-4,Q.C),Q.clsid)L.write_shift(16,Q.clsid,"hex");else for(te=0;te<4;++te)L.write_shift(4,0);L.write_shift(4,Q.state||0),L.write_shift(4,0),L.write_shift(4,0),L.write_shift(4,0),L.write_shift(4,0),L.write_shift(4,Q.start),L.write_shift(4,Q.size),L.write_shift(4,0)}for(O=1;O<S.FileIndex.length;++O)if(Q=S.FileIndex[O],Q.size>=4096)if(L.l=Q.start+1<<9,Ze&&Buffer.isBuffer(Q.content))Q.content.copy(L,L.l,0,Q.size),L.l+=Q.size+511&-512;else{for(te=0;te<Q.size;++te)L.write_shift(1,Q.content[te]);for(;te&511;++te)L.write_shift(1,0)}for(O=1;O<S.FileIndex.length;++O)if(Q=S.FileIndex[O],Q.size>0&&Q.size<4096)if(Ze&&Buffer.isBuffer(Q.content))Q.content.copy(L,L.l,0,Q.size),L.l+=Q.size+63&-64;else{for(te=0;te<Q.size;++te)L.write_shift(1,Q.content[te]);for(;te&63;++te)L.write_shift(1,0)}if(Ze)L.l=L.length;else for(;L.l<L.length;)L.write_shift(1,0);return L}function M(S,A){var D=S.FullPaths.map(function(te){return te.toUpperCase()}),I=D.map(function(te){var ee=te.split("/");return ee[ee.length-(te.slice(-1)=="/"?2:1)]}),L=!1;A.charCodeAt(0)===47?(L=!0,A=D[0].slice(0,-1)+A):L=A.indexOf("/")!==-1;var O=A.toUpperCase(),Z=L===!0?D.indexOf(O):I.indexOf(O);if(Z!==-1)return S.FileIndex[Z];var fe=!O.match(lf);for(O=O.replace(Cr,""),fe&&(O=O.replace(lf,"!")),Z=0;Z<D.length;++Z)if((fe?D[Z].replace(lf,"!"):D[Z]).replace(Cr,"")==O||(fe?I[Z].replace(lf,"!"):I[Z]).replace(Cr,"")==O)return S.FileIndex[Z];return null}var R=64,B=-2,G="d0cf11e0a1b11ae1",re=[208,207,17,224,161,177,26,225],j="00000000000000000000000000000000",q={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:B,FREESECT:-1,HEADER_SIGNATURE:G,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:j,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ve(S,A,D){l();var I=b(S,D);f.writeFileSync(A,I)}function U(S){for(var A=new Array(S.length),D=0;D<S.length;++D)A[D]=String.fromCharCode(S[D]);return A.join("")}function xe(S,A){var D=b(S,A);switch(A&&A.type||"buffer"){case"file":return l(),f.writeFileSync(A.filename,D),D;case"binary":return typeof D=="string"?D:U(D);case"base64":return Lx(typeof D=="string"?D:U(D));case"buffer":if(Ze)return Buffer.isBuffer(D)?D:ds(D);case"array":return typeof D=="string"?Sa(D):D}return D}var se;function P(S){try{var A=S.InflateRaw,D=new A;if(D._processChunk(new Uint8Array([3,0]),D._finishFlushFlag),D.bytesRead)se=S;else throw new Error("zlib does not expose bytesRead")}catch(I){console.error("cannot use native zlib: "+(I.message||I))}}function V(S,A){if(!se)return ci(S,A);var D=se.InflateRaw,I=new D,L=I._processChunk(S.slice(S.l),I._finishFlushFlag);return S.l+=I.bytesRead,L}function H(S){return se?se.deflateRawSync(S):Fe(S)}var z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],pe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function le(S){var A=(S<<1|S<<11)&139536|(S<<5|S<<15)&558144;return(A>>16|A>>8|A)&255}for(var ie=typeof Uint8Array<"u",ne=ie?new Uint8Array(256):[],ue=0;ue<256;++ue)ne[ue]=le(ue);function w(S,A){var D=ne[S&255];return A<=8?D>>>8-A:(D=D<<8|ne[S>>8&255],A<=16?D>>>16-A:(D=D<<8|ne[S>>16&255],D>>>24-A))}function N(S,A){var D=A&7,I=A>>>3;return(S[I]|(D<=6?0:S[I+1]<<8))>>>D&3}function W(S,A){var D=A&7,I=A>>>3;return(S[I]|(D<=5?0:S[I+1]<<8))>>>D&7}function J(S,A){var D=A&7,I=A>>>3;return(S[I]|(D<=4?0:S[I+1]<<8))>>>D&15}function K(S,A){var D=A&7,I=A>>>3;return(S[I]|(D<=3?0:S[I+1]<<8))>>>D&31}function Y(S,A){var D=A&7,I=A>>>3;return(S[I]|(D<=1?0:S[I+1]<<8))>>>D&127}function oe(S,A,D){var I=A&7,L=A>>>3,O=(1<<D)-1,Z=S[L]>>>I;return D<8-I||(Z|=S[L+1]<<8-I,D<16-I)||(Z|=S[L+2]<<16-I,D<24-I)||(Z|=S[L+3]<<24-I),Z&O}function ce(S,A,D){var I=A&7,L=A>>>3;return I<=5?S[L]|=(D&7)<<I:(S[L]|=D<<I&255,S[L+1]=(D&7)>>8-I),A+3}function de(S,A,D){var I=A&7,L=A>>>3;return D=(D&1)<<I,S[L]|=D,A+1}function he(S,A,D){var I=A&7,L=A>>>3;return D<<=I,S[L]|=D&255,D>>>=8,S[L+1]=D,A+8}function Ae(S,A,D){var I=A&7,L=A>>>3;return D<<=I,S[L]|=D&255,D>>>=8,S[L+1]=D&255,S[L+2]=D>>>8,A+16}function ye(S,A){var D=S.length,I=2*D>A?2*D:A+5,L=0;if(D>=A)return S;if(Ze){var O=Ox(I);if(S.copy)S.copy(O);else for(;L<S.length;++L)O[L]=S[L];return O}else if(ie){var Z=new Uint8Array(I);if(Z.set)Z.set(S);else for(;L<D;++L)Z[L]=S[L];return Z}return S.length=I,S}function we(S){for(var A=new Array(S),D=0;D<S;++D)A[D]=0;return A}function De(S,A,D){var I=1,L=0,O=0,Z=0,fe=0,te=S.length,ee=ie?new Uint16Array(32):we(32);for(O=0;O<32;++O)ee[O]=0;for(O=te;O<D;++O)S[O]=0;te=S.length;var Q=ie?new Uint16Array(te):we(te);for(O=0;O<te;++O)ee[L=S[O]]++,I<L&&(I=L),Q[O]=0;for(ee[0]=0,O=1;O<=I;++O)ee[O+16]=fe=fe+ee[O-1]<<1;for(O=0;O<te;++O)fe=S[O],fe!=0&&(Q[O]=ee[fe+16]++);var ge=0;for(O=0;O<te;++O)if(ge=S[O],ge!=0)for(fe=w(Q[O],I)>>I-ge,Z=(1<<I+4-ge)-1;Z>=0;--Z)A[fe|Z<<ge]=ge&15|O<<4;return I}var ke=ie?new Uint16Array(512):we(512),Pe=ie?new Uint16Array(32):we(32);if(!ie){for(var be=0;be<512;++be)ke[be]=0;for(be=0;be<32;++be)Pe[be]=0}(function(){for(var S=[],A=0;A<32;A++)S.push(5);De(S,Pe,32);var D=[];for(A=0;A<=143;A++)D.push(8);for(;A<=255;A++)D.push(9);for(;A<=279;A++)D.push(7);for(;A<=287;A++)D.push(8);De(D,ke,288)})();var rt=(function(){for(var A=ie?new Uint8Array(32768):[],D=0,I=0;D<pe.length-1;++D)for(;I<pe[D+1];++I)A[I]=D;for(;I<32768;++I)A[I]=29;var L=ie?new Uint8Array(259):[];for(D=0,I=0;D<ae.length-1;++D)for(;I<ae[D+1];++I)L[I]=D;function O(fe,te){for(var ee=0;ee<fe.length;){var Q=Math.min(65535,fe.length-ee),ge=ee+Q==fe.length;for(te.write_shift(1,+ge),te.write_shift(2,Q),te.write_shift(2,~Q&65535);Q-- >0;)te[te.l++]=fe[ee++]}return te.l}function Z(fe,te){for(var ee=0,Q=0,ge=ie?new Uint16Array(32768):[];Q<fe.length;){var Te=Math.min(65535,fe.length-Q);if(Te<10){for(ee=ce(te,ee,+(Q+Te==fe.length)),ee&7&&(ee+=8-(ee&7)),te.l=ee/8|0,te.write_shift(2,Te),te.write_shift(2,~Te&65535);Te-- >0;)te[te.l++]=fe[Q++];ee=te.l*8;continue}ee=ce(te,ee,+(Q+Te==fe.length)+2);for(var Ce=0;Te-- >0;){var _e=fe[Q];Ce=(Ce<<5^_e)&32767;var Ee=-1,Oe=0;if((Ee=ge[Ce])&&(Ee|=Q&-32768,Ee>Q&&(Ee-=32768),Ee<Q))for(;fe[Ee+Oe]==fe[Q+Oe]&&Oe<250;)++Oe;if(Oe>2){_e=L[Oe],_e<=22?ee=he(te,ee,ne[_e+1]>>1)-1:(he(te,ee,3),ee+=5,he(te,ee,ne[_e-23]>>5),ee+=3);var ht=_e<8?0:_e-4>>2;ht>0&&(Ae(te,ee,Oe-ae[_e]),ee+=ht),_e=A[Q-Ee],ee=he(te,ee,ne[_e]>>3),ee-=3;var lt=_e<4?0:_e-2>>1;lt>0&&(Ae(te,ee,Q-Ee-pe[_e]),ee+=lt);for(var Ut=0;Ut<Oe;++Ut)ge[Ce]=Q&32767,Ce=(Ce<<5^fe[Q])&32767,++Q;Te-=Oe-1}else _e<=143?_e=_e+48:ee=de(te,ee,1),ee=he(te,ee,ne[_e]),ge[Ce]=Q&32767,++Q}ee=he(te,ee,0)-1}return te.l=(ee+7)/8|0,te.l}return function(te,ee){return te.length<8?O(te,ee):Z(te,ee)}})();function Fe(S){var A=Ht(50+Math.floor(S.length*1.1)),D=rt(S,A);return A.slice(0,D)}var Ve=ie?new Uint16Array(32768):we(32768),Ye=ie?new Uint16Array(32768):we(32768),Qe=ie?new Uint16Array(128):we(128),qt=1,Nt=1;function Jt(S,A){var D=K(S,A)+257;A+=5;var I=K(S,A)+1;A+=5;var L=J(S,A)+4;A+=4;for(var O=0,Z=ie?new Uint8Array(19):we(19),fe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],te=1,ee=ie?new Uint8Array(8):we(8),Q=ie?new Uint8Array(8):we(8),ge=Z.length,Te=0;Te<L;++Te)Z[z[Te]]=O=W(S,A),te<O&&(te=O),ee[O]++,A+=3;var Ce=0;for(ee[0]=0,Te=1;Te<=te;++Te)Q[Te]=Ce=Ce+ee[Te-1]<<1;for(Te=0;Te<ge;++Te)(Ce=Z[Te])!=0&&(fe[Te]=Q[Ce]++);var _e=0;for(Te=0;Te<ge;++Te)if(_e=Z[Te],_e!=0){Ce=ne[fe[Te]]>>8-_e;for(var Ee=(1<<7-_e)-1;Ee>=0;--Ee)Qe[Ce|Ee<<_e]=_e&7|Te<<3}var Oe=[];for(te=1;Oe.length<D+I;)switch(Ce=Qe[Y(S,A)],A+=Ce&7,Ce>>>=3){case 16:for(O=3+N(S,A),A+=2,Ce=Oe[Oe.length-1];O-- >0;)Oe.push(Ce);break;case 17:for(O=3+W(S,A),A+=3;O-- >0;)Oe.push(0);break;case 18:for(O=11+Y(S,A),A+=7;O-- >0;)Oe.push(0);break;default:Oe.push(Ce),te<Ce&&(te=Ce);break}var ht=Oe.slice(0,D),lt=Oe.slice(D);for(Te=D;Te<286;++Te)ht[Te]=0;for(Te=I;Te<30;++Te)lt[Te]=0;return qt=De(ht,Ve,286),Nt=De(lt,Ye,30),A}function _s(S,A){if(S[0]==3&&!(S[1]&3))return[oi(A),2];for(var D=0,I=0,L=Ox(A||1<<18),O=0,Z=L.length>>>0,fe=0,te=0;(I&1)==0;){if(I=W(S,D),D+=3,I>>>1)I>>1==1?(fe=9,te=5):(D=Jt(S,D),fe=qt,te=Nt);else{D&7&&(D+=8-(D&7));var ee=S[D>>>3]|S[(D>>>3)+1]<<8;if(D+=32,ee>0)for(!A&&Z<O+ee&&(L=ye(L,O+ee),Z=L.length);ee-- >0;)L[O++]=S[D>>>3],D+=8;continue}for(;;){!A&&Z<O+32767&&(L=ye(L,O+32767),Z=L.length);var Q=oe(S,D,fe),ge=I>>>1==1?ke[Q]:Ve[Q];if(D+=ge&15,ge>>>=4,(ge>>>8&255)===0)L[O++]=ge;else{if(ge==256)break;ge-=257;var Te=ge<8?0:ge-4>>2;Te>5&&(Te=0);var Ce=O+ae[ge];Te>0&&(Ce+=oe(S,D,Te),D+=Te),Q=oe(S,D,te),ge=I>>>1==1?Pe[Q]:Ye[Q],D+=ge&15,ge>>>=4;var _e=ge<4?0:ge-2>>1,Ee=pe[ge];for(_e>0&&(Ee+=oe(S,D,_e),D+=_e),!A&&Z<Ce&&(L=ye(L,Ce+100),Z=L.length);O<Ce;)L[O]=L[O-Ee],++O}}}return A?[L,D+7>>>3]:[L.slice(0,O),D+7>>>3]}function ci(S,A){var D=S.slice(S.l||0),I=_s(D,A);return S.l+=I[1],I[0]}function ys(S,A){if(S)typeof console<"u"&&console.error(A);else throw new Error(A)}function Do(S,A){var D=S;Yt(D,0);var I=[],L=[],O={FileIndex:I,FullPaths:L};E(O,{root:A.root});for(var Z=D.length-4;(D[Z]!=80||D[Z+1]!=75||D[Z+2]!=5||D[Z+3]!=6)&&Z>=0;)--Z;D.l=Z+4,D.l+=4;var fe=D.read_shift(2);D.l+=6;var te=D.read_shift(4);for(D.l=te,Z=0;Z<fe;++Z){D.l+=20;var ee=D.read_shift(4),Q=D.read_shift(4),ge=D.read_shift(2),Te=D.read_shift(2),Ce=D.read_shift(2);D.l+=8;var _e=D.read_shift(4),Ee=o(D.slice(D.l+ge,D.l+ge+Te));D.l+=ge+Te+Ce;var Oe=D.l;D.l=_e+4,Pl(D,ee,Q,O,Ee),D.l=Oe}return O}function Pl(S,A,D,I,L){S.l+=2;var O=S.read_shift(2),Z=S.read_shift(2),fe=s(S);if(O&8257)throw new Error("Unsupported ZIP encryption");for(var te=S.read_shift(4),ee=S.read_shift(4),Q=S.read_shift(4),ge=S.read_shift(2),Te=S.read_shift(2),Ce="",_e=0;_e<ge;++_e)Ce+=String.fromCharCode(S[S.l++]);if(Te){var Ee=o(S.slice(S.l,S.l+Te));(Ee[21589]||{}).mt&&(fe=Ee[21589].mt),((L||{})[21589]||{}).mt&&(fe=L[21589].mt)}S.l+=Te;var Oe=S.slice(S.l,S.l+ee);switch(Z){case 8:Oe=V(S,Q);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Z)}var ht=!1;O&8&&(te=S.read_shift(4),te==134695760&&(te=S.read_shift(4),ht=!0),ee=S.read_shift(4),Q=S.read_shift(4)),ee!=A&&ys(ht,"Bad compressed size: "+A+" != "+ee),Q!=D&&ys(ht,"Bad uncompressed size: "+D+" != "+Q),Ts(I,Ce,Oe,{unsafe:!0,mt:fe})}function Ec(S,A){var D=A||{},I=[],L=[],O=Ht(1),Z=D.compression?8:0,fe=0,te=0,ee=0,Q=0,ge=0,Te=S.FullPaths[0],Ce=Te,_e=S.FileIndex[0],Ee=[],Oe=0;for(te=1;te<S.FullPaths.length;++te)if(Ce=S.FullPaths[te].slice(Te.length),_e=S.FileIndex[te],!(!_e.size||!_e.content||Ce=="Sh33tJ5")){var ht=Q,lt=Ht(Ce.length);for(ee=0;ee<Ce.length;++ee)lt.write_shift(1,Ce.charCodeAt(ee)&127);lt=lt.slice(0,lt.l),Ee[ge]=QP.buf(_e.content,0);var Ut=_e.content;Z==8&&(Ut=H(Ut)),O=Ht(30),O.write_shift(4,67324752),O.write_shift(2,20),O.write_shift(2,fe),O.write_shift(2,Z),_e.mt?i(O,_e.mt):O.write_shift(4,0),O.write_shift(-4,Ee[ge]),O.write_shift(4,Ut.length),O.write_shift(4,_e.content.length),O.write_shift(2,lt.length),O.write_shift(2,0),Q+=O.length,I.push(O),Q+=lt.length,I.push(lt),Q+=Ut.length,I.push(Ut),O=Ht(46),O.write_shift(4,33639248),O.write_shift(2,0),O.write_shift(2,20),O.write_shift(2,fe),O.write_shift(2,Z),O.write_shift(4,0),O.write_shift(-4,Ee[ge]),O.write_shift(4,Ut.length),O.write_shift(4,_e.content.length),O.write_shift(2,lt.length),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(4,0),O.write_shift(4,ht),Oe+=O.l,L.push(O),Oe+=lt.length,L.push(lt),++ge}return O=Ht(22),O.write_shift(4,101010256),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(2,ge),O.write_shift(2,ge),O.write_shift(4,Oe),O.write_shift(4,Q),O.write_shift(2,0),Vn([Vn(I),Vn(L),O])}var ws={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Cc(S,A){if(S.ctype)return S.ctype;var D=S.name||"",I=D.match(/\.([^\.]+)$/);return I&&ws[I[1]]||A&&(I=(D=A).match(/[\.\\]([^\.\\])+$/),I&&ws[I[1]])?ws[I[1]]:"application/octet-stream"}function Ll(S){for(var A=Lx(S),D=[],I=0;I<A.length;I+=76)D.push(A.slice(I,I+76));return D.join(`\r
`)+`\r
`}function Ol(S){var A=S.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ee){var Q=ee.charCodeAt(0).toString(16).toUpperCase();return"="+(Q.length==1?"0"+Q:Q)});A=A.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),A.charAt(0)==`
`&&(A="=0D"+A.slice(1)),A=A.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var D=[],I=A.split(`\r
`),L=0;L<I.length;++L){var O=I[L];if(O.length==0){D.push("");continue}for(var Z=0;Z<O.length;){var fe=76,te=O.slice(Z,Z+fe);te.charAt(fe-1)=="="?fe--:te.charAt(fe-2)=="="?fe-=2:te.charAt(fe-3)=="="&&(fe-=3),te=O.slice(Z,Z+fe),Z+=fe,Z<O.length&&(te+="="),D.push(te)}}return D.join(`\r
`)}function Ac(S){for(var A=[],D=0;D<S.length;++D){for(var I=S[D];D<=S.length&&I.charAt(I.length-1)=="=";)I=I.slice(0,I.length-1)+S[++D];A.push(I)}for(var L=0;L<A.length;++L)A[L]=A[L].replace(/[=][0-9A-Fa-f]{2}/g,function(O){return String.fromCharCode(parseInt(O.slice(1),16))});return Sa(A.join(`\r
`))}function Bl(S,A,D){for(var I="",L="",O="",Z,fe=0;fe<10;++fe){var te=A[fe];if(!te||te.match(/^\s*$/))break;var ee=te.match(/^(.*?):\s*([^\s].*)$/);if(ee)switch(ee[1].toLowerCase()){case"content-location":I=ee[2].trim();break;case"content-type":O=ee[2].trim();break;case"content-transfer-encoding":L=ee[2].trim();break}}switch(++fe,L.toLowerCase()){case"base64":Z=Sa(Kr(A.slice(fe).join("")));break;case"quoted-printable":Z=Ac(A.slice(fe));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+L)}var Q=Ts(S,I.slice(D.length),Z,{unsafe:!0});O&&(Q.ctype=O)}function Dc(S,A){if(U(S.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var D=A&&A.root||"",I=(Ze&&Buffer.isBuffer(S)?S.toString("binary"):U(S)).split(`\r
`),L=0,O="";for(L=0;L<I.length;++L)if(O=I[L],!!/^Content-Location:/i.test(O)&&(O=O.slice(O.indexOf("file")),D||(D=O.slice(0,O.lastIndexOf("/")+1)),O.slice(0,D.length)!=D))for(;D.length>0&&(D=D.slice(0,D.length-1),D=D.slice(0,D.lastIndexOf("/")+1),O.slice(0,D.length)!=D););var Z=(I[1]||"").match(/boundary="(.*?)"/);if(!Z)throw new Error("MAD cannot find boundary");var fe="--"+(Z[1]||""),te=[],ee=[],Q={FileIndex:te,FullPaths:ee};E(Q);var ge,Te=0;for(L=0;L<I.length;++L){var Ce=I[L];Ce!==fe&&Ce!==fe+"--"||(Te++&&Bl(Q,I.slice(ge,L),D),ge=L)}return Q}function kc(S,A){var D=A||{},I=D.boundary||"SheetJS";I="------="+I;for(var L=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+I.slice(2)+'"',"","",""],O=S.FullPaths[0],Z=O,fe=S.FileIndex[0],te=1;te<S.FullPaths.length;++te)if(Z=S.FullPaths[te].slice(O.length),fe=S.FileIndex[te],!(!fe.size||!fe.content||Z=="Sh33tJ5")){Z=Z.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Oe){return"_x"+Oe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Oe){return"_u"+Oe.charCodeAt(0).toString(16)+"_"});for(var ee=fe.content,Q=Ze&&Buffer.isBuffer(ee)?ee.toString("binary"):U(ee),ge=0,Te=Math.min(1024,Q.length),Ce=0,_e=0;_e<=Te;++_e)(Ce=Q.charCodeAt(_e))>=32&&Ce<128&&++ge;var Ee=ge>=Te*4/5;L.push(I),L.push("Content-Location: "+(D.root||"file:///C:/SheetJS/")+Z),L.push("Content-Transfer-Encoding: "+(Ee?"quoted-printable":"base64")),L.push("Content-Type: "+Cc(fe,Z)),L.push(""),L.push(Ee?Ol(Q):Ll(Q))}return L.push(I+`--\r
`),L.join(`\r
`)}function bc(S){var A={};return E(A,S),A}function Ts(S,A,D,I){var L=I&&I.unsafe;L||E(S);var O=!L&&qe.find(S,A);if(!O){var Z=S.FullPaths[0];A.slice(0,Z.length)==Z?Z=A:(Z.slice(-1)!="/"&&(Z+="/"),Z=(Z+A).replace("//","/")),O={name:n(A),type:2},S.FileIndex.push(O),S.FullPaths.push(Z),L||qe.utils.cfb_gc(S)}return O.content=D,O.size=D?D.length:0,I&&(I.CLSID&&(O.clsid=I.CLSID),I.mt&&(O.mt=I.mt),I.ct&&(O.ct=I.ct)),O}function Nl(S,A){E(S);var D=qe.find(S,A);if(D){for(var I=0;I<S.FileIndex.length;++I)if(S.FileIndex[I]==D)return S.FileIndex.splice(I,1),S.FullPaths.splice(I,1),!0}return!1}function Fc(S,A,D){E(S);var I=qe.find(S,A);if(I){for(var L=0;L<S.FileIndex.length;++L)if(S.FileIndex[L]==I)return S.FileIndex[L].name=n(D),S.FullPaths[L]=D,!0}return!1}function Ic(S){T(S,!0)}return t.find=M,t.read=k,t.parse=u,t.write=xe,t.writeFile=ve,t.utils={cfb_new:bc,cfb_add:Ts,cfb_del:Nl,cfb_mov:Fc,cfb_gc:Ic,ReadShift:If,CheckField:o3,prep_blob:Yt,bconcat:Vn,use_zlib:P,_deflateRaw:Fe,_inflateRaw:ci,consts:q},t})();function e7(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(a){if(!a.message||!a.message.match(/onstruct/))throw a}throw new Error("Cannot access file "+e)}function Ja(e){for(var t=Object.keys(e),r=[],a=0;a<t.length;++a)Object.prototype.hasOwnProperty.call(e,t[a])&&r.push(t[a]);return r}function u1(e){for(var t=[],r=Ja(e),a=0;a!==r.length;++a)t[e[r[a]]]=r[a];return t}var Lu=new Date(1899,11,30,0,0,0);function Ar(e,t){var r=e.getTime(),a=Lu.getTime()+(e.getTimezoneOffset()-Lu.getTimezoneOffset())*6e4;return(r-a)/(1440*60*1e3)}var H4=new Date,t7=Lu.getTime()+(H4.getTimezoneOffset()-Lu.getTimezoneOffset())*6e4,Gx=H4.getTimezoneOffset();function yc(e){var t=new Date;return t.setTime(e*24*60*60*1e3+t7),t.getTimezoneOffset()!==Gx&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Gx)*6e4),t}function r7(e){var t=0,r=0,a=!1,n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=n.length;++i)if(n[i]){switch(r=1,i>3&&(a=!0),n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(a)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(n[i],10)}return t}var $x=new Date("2017-02-19T19:06:09.000Z"),V4=isNaN($x.getFullYear())?new Date("2/19/17"):$x,a7=V4.getFullYear()==2017;function $t(e,t){var r=new Date(e);if(a7)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(V4.getFullYear()==1917&&!isNaN(r.getFullYear())){var a=r.getFullYear();return e.indexOf(""+a)>-1||r.setFullYear(r.getFullYear()+100),r}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function us(e,t){if(Ze&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return cf(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return cf(D4(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return cf(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return cf(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","":"‹",Œ:"Œ",Ž:"Ž","":"‘","":"’","“":"“","”":"”","•":"•","":"–","—":"—","˜":"˜","™":"™",š:"š","":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var a=[],n=0;n!=e.length;++n)a.push(String.fromCharCode(e[n]));return a.join("")}function Kt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Kt(e[r]));return t}function At(e,t){for(var r="";r.length<t;)r+=e;return r}function ka(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(a))||(a=a.replace(/[(](.*)[)]/,function(n,i){return r=-r,i}),!isNaN(t=Number(a)))?t/r:t}var n7=["january","february","march","april","may","june","july","august","september","october","november","december"];function go(e){var t=new Date(e),r=new Date(NaN),a=t.getYear(),n=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&n7.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return a<0||a>8099?r:(n>0||i>1)&&a!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var i7=(function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,a,n){if(e||typeof a=="string")return r.split(a);for(var i=r.split(a),s=[i[0]],o=1;o<i.length;++o)s.push(n),s.push(i[o]);return s}})();function z4(e){return e?e.content&&e.type?us(e.content,!0):e.data?ff(e.data):e.asNodeBuffer&&Ze?ff(e.asNodeBuffer().toString("binary")):e.asBinary?ff(e.asBinary()):e._data&&e._data.getContent?ff(us(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function W4(e){if(!e)return null;if(e.data)return Rx(e.data);if(e.asNodeBuffer&&Ze)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?Rx(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function s7(e){return e&&e.name.slice(-4)===".bin"?W4(e):z4(e)}function aa(e,t){for(var r=e.FullPaths||Ja(e.files),a=t.toLowerCase().replace(/[\/]/g,"\\"),n=a.replace(/\\/g,"/"),i=0;i<r.length;++i){var s=r[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(a==s||n==s)return e.files?e.files[r[i]]:e.FileIndex[i]}return null}function c1(e,t){var r=aa(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function Pt(e,t,r){if(!r)return s7(c1(e,t));if(!t)return null;try{return Pt(e,t)}catch{return null}}function Wr(e,t,r){if(!r)return z4(c1(e,t));if(!t)return null;try{return Wr(e,t)}catch{return null}}function o7(e,t,r){return W4(c1(e,t))}function Xx(e){for(var t=e.FullPaths||Ja(e.files),r=[],a=0;a<t.length;++a)t[a].slice(-1)!="/"&&r.push(t[a].replace(/^Root Entry[\/]/,""));return r.sort()}function f7(e,t,r){if(e.FullPaths){if(typeof r=="string"){var a;return Ze?a=ds(r):a=DP(r),qe.utils.cfb_add(e,t,a)}qe.utils.cfb_add(e,t,r)}else e.file(t,r)}function G4(e,t){switch(t.type){case"base64":return qe.read(e,{type:"base64"});case"binary":return qe.read(e,{type:"binary"});case"buffer":case"array":return qe.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function uf(e,t){if(e.charAt(0)=="/")return e.slice(1);var r=t.split("/");t.slice(-1)!="/"&&r.pop();for(var a=e.split("/");a.length!==0;){var n=a.shift();n===".."?r.pop():n!=="."&&r.push(n)}return r.join("/")}var $4=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,l7=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Yx=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,u7=/<[^>]*>/g,hr=$4.match(Yx)?Yx:u7,c7=/<\w*:/,h7=/<(\/?)\w+:/;function Le(e,t,r){for(var a={},n=0,i=0;n!==e.length&&!((i=e.charCodeAt(n))===32||i===10||i===13);++n);if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var s=e.match(l7),o=0,f="",l=0,u="",c="",h=1;if(s)for(l=0;l!=s.length;++l){for(c=s[l],i=0;i!=c.length&&c.charCodeAt(i)!==61;++i);for(u=c.slice(0,i).trim();c.charCodeAt(i+1)==32;)++i;for(h=(n=c.charCodeAt(i+1))==34||n==39?1:0,f=c.slice(i+1+h,c.length-h),o=0;o!=u.length&&u.charCodeAt(o)!==58;++o);if(o===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),a[u]=f,a[u.toLowerCase()]=f;else{var d=(o===5&&u.slice(0,5)==="xmlns"?"xmlns":"")+u.slice(o+1);if(a[d]&&u.slice(o-3,o)=="ext")continue;a[d]=f,a[d.toLowerCase()]=f}}return a}function tn(e){return e.replace(h7,"<$1")}var X4={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},d7=u1(X4),tt=(function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(a){var n=a+"",i=n.indexOf("<![CDATA[");if(i==-1)return n.replace(e,function(o,f){return X4[o]||String.fromCharCode(parseInt(f,o.indexOf("x")>-1?16:10))||o}).replace(t,function(o,f){return String.fromCharCode(parseInt(f,16))});var s=n.indexOf("]]>");return r(n.slice(0,i))+n.slice(i+9,s)+r(n.slice(s+3))}})(),v7=/[&<>'"]/g,p7=/[\u0000-\u001f]/g;function h1(e){var t=e+"";return t.replace(v7,function(r){return d7[r]}).replace(/\n/g,"<br/>").replace(p7,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var Kx=(function(){var e=/&#(\d+);/g;function t(r,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,t)}})();function Tt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function nd(e){for(var t="",r=0,a=0,n=0,i=0,s=0,o=0;r<e.length;){if(a=e.charCodeAt(r++),a<128){t+=String.fromCharCode(a);continue}if(n=e.charCodeAt(r++),a>191&&a<224){s=(a&31)<<6,s|=n&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),a<240){t+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(r++),o=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(o&1023))}return t}function Zx(e){var t=oi(2*e.length),r,a,n=1,i=0,s=0,o;for(a=0;a<e.length;a+=n)n=1,(o=e.charCodeAt(a))<128?r=o:o<224?(r=(o&31)*64+(e.charCodeAt(a+1)&63),n=2):o<240?(r=(o&15)*4096+(e.charCodeAt(a+1)&63)*64+(e.charCodeAt(a+2)&63),n=3):(n=4,r=(o&7)*262144+(e.charCodeAt(a+1)&63)*4096+(e.charCodeAt(a+2)&63)*64+(e.charCodeAt(a+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function jx(e){return ds(e,"binary").toString("utf8")}var T0="foo bar baz☃🍣",_t=Ze&&(jx(T0)==nd(T0)&&jx||Zx(T0)==nd(T0)&&Zx)||nd,cf=Ze?function(e){return ds(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,a=0,n=0;r<e.length;)switch(a=e.charCodeAt(r++),!0){case a<128:t.push(String.fromCharCode(a));break;case a<2048:t.push(String.fromCharCode(192+(a>>6))),t.push(String.fromCharCode(128+(a&63)));break;case(a>=55296&&a<57344):a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)))}return t.join("")},cl=(function(){var e={};return function(r,a){var n=r+"|"+(a||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",a||"")}})(),Y4=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var a=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),n=0;n<e.length;++n)a=a.replace(e[n][0],e[n][1]);return a}})(),g7=(function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}})(),m7=/<\/?(?:vt:)?variant>/g,x7=/<(?:vt:)([^>]*)>([\s\S]*)</;function qx(e,t){var r=Le(e),a=e.match(g7(r.baseType))||[],n=[];if(a.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+a.length+" != "+r.size);return n}return a.forEach(function(i){var s=i.replace(m7,"").match(x7);s&&n.push({v:_t(s[2]),t:s[1]})}),n}var _7=/(^\s|\s$|\n)/;function y7(e){return Ja(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function w7(e,t,r){return"<"+e+(r!=null?y7(r):"")+(t!=null?(t.match(_7)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function d1(e){if(Ze&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return _t(vs(o1(e)));throw new Error("Bad input format: expected Buffer or string")}var hl=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,T7={CT:"http://schemas.openxmlformats.org/package/2006/content-types"},S7=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function E7(e,t){for(var r=1-2*(e[t+7]>>>7),a=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),n=e[t+6]&15,i=5;i>=0;--i)n=n*256+e[t+i];return a==2047?n==0?r*(1/0):NaN:(a==0?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}function C7(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,i=0,s=a?-t:t;isFinite(s)?s==0?n=i=0:(n=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-n),n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?n=-1022:(i-=Math.pow(2,52),n+=1023)):(n=2047,i=isNaN(t)?26985:0);for(var o=0;o<=5;++o,i/=256)e[r+o]=i&255;e[r+6]=(n&15)<<4|i&15,e[r+7]=n>>4|a}var Jx=function(e){for(var t=[],r=10240,a=0;a<e[0].length;++a)if(e[0][a])for(var n=0,i=e[0][a].length;n<i;n+=r)t.push.apply(t,e[0][a].slice(n,n+r));return t},Qx=Ze?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:ds(t)})):Jx(e)}:Jx,e_=function(e,t,r){for(var a=[],n=t;n<r;n+=2)a.push(String.fromCharCode(pn(e,n)));return a.join("").replace(Cr,"")},v1=Ze?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Cr,""):e_(e,t,r)}:e_,t_=function(e,t,r){for(var a=[],n=t;n<t+r;++n)a.push(("0"+e[n].toString(16)).slice(-2));return a.join("")},K4=Ze?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):t_(e,t,r)}:t_,r_=function(e,t,r){for(var a=[],n=t;n<r;n++)a.push(String.fromCharCode($s(e,n)));return a.join("")},kl=Ze?function(t,r,a){return Buffer.isBuffer(t)?t.toString("utf8",r,a):r_(t,r,a)}:r_,Z4=function(e,t){var r=Vr(e,t);return r>0?kl(e,t+4,t+4+r-1):""},j4=Z4,q4=function(e,t){var r=Vr(e,t);return r>0?kl(e,t+4,t+4+r-1):""},J4=q4,Q4=function(e,t){var r=2*Vr(e,t);return r>0?kl(e,t+4,t+4+r-1):""},e3=Q4,t3=function(t,r){var a=Vr(t,r);return a>0?v1(t,r+4,r+4+a):""},r3=t3,a3=function(e,t){var r=Vr(e,t);return r>0?kl(e,t+4,t+4+r):""},n3=a3,i3=function(e,t){return E7(e,t)},Ou=i3,s3=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Ze&&(j4=function(t,r){if(!Buffer.isBuffer(t))return Z4(t,r);var a=t.readUInt32LE(r);return a>0?t.toString("utf8",r+4,r+4+a-1):""},J4=function(t,r){if(!Buffer.isBuffer(t))return q4(t,r);var a=t.readUInt32LE(r);return a>0?t.toString("utf8",r+4,r+4+a-1):""},e3=function(t,r){if(!Buffer.isBuffer(t))return Q4(t,r);var a=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+a-1)},r3=function(t,r){if(!Buffer.isBuffer(t))return t3(t,r);var a=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+a)},n3=function(t,r){if(!Buffer.isBuffer(t))return a3(t,r);var a=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+a)},Ou=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):i3(t,r)},s3=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var $s=function(e,t){return e[t]},pn=function(e,t){return e[t+1]*256+e[t]},A7=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Vr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},$i=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},D7=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function If(e,t){var r="",a,n,i=[],s,o,f,l;switch(t){case"dbcs":if(l=this.l,Ze&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f<e;++f)r+=String.fromCharCode(pn(this,l)),l+=2;e*=2;break;case"utf8":r=kl(this,this.l,this.l+e);break;case"utf16le":e*=2,r=v1(this,this.l,this.l+e);break;case"wstr":return If.call(this,e,"dbcs");case"lpstr-ansi":r=j4(this,this.l),e=4+Vr(this,this.l);break;case"lpstr-cp":r=J4(this,this.l),e=4+Vr(this,this.l);break;case"lpwstr":r=e3(this,this.l),e=4+2*Vr(this,this.l);break;case"lpp4":e=4+Vr(this,this.l),r=r3(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Vr(this,this.l),r=n3(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=$s(this,this.l+e++))!==0;)i.push(w0(s));r=i.join("");break;case"_wstr":for(e=0,r="";(s=pn(this,this.l+e))!==0;)i.push(w0(s)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",l=this.l,f=0;f<e;++f){if(this.lens&&this.lens.indexOf(l)!==-1)return s=$s(this,l),this.l=l+1,o=If.call(this,e-f,s?"dbcs-cont":"sbcs-cont"),i.join("")+o;i.push(w0(pn(this,l))),l+=2}r=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",l=this.l,f=0;f!=e;++f){if(this.lens&&this.lens.indexOf(l)!==-1)return s=$s(this,l),this.l=l+1,o=If.call(this,e-f,s?"dbcs-cont":"sbcs-cont"),i.join("")+o;i.push(w0($s(this,l))),l+=1}r=i.join("");break;default:switch(e){case 1:return a=$s(this,this.l),this.l++,a;case 2:return a=(t==="i"?A7:pn)(this,this.l),this.l+=2,a;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(a=(e>0?$i:D7)(this,this.l),this.l+=4,a):(n=Vr(this,this.l),this.l+=4,n);case 8:case-8:if(t==="f")return e==8?n=Ou(this,this.l):n=Ou([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:r=K4(this,this.l,e);break}}return this.l+=e,r}var k7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},b7=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},F7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function I7(e,t,r){var a=0,n=0;if(r==="dbcs"){for(n=0;n!=t.length;++n)F7(this,t.charCodeAt(n),this.l+2*n);a=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=t.length;++n)this[this.l+n]=t.charCodeAt(n)&255;a=t.length}else if(r==="hex"){for(;n<e;++n)this[this.l++]=parseInt(t.slice(2*n,2*n+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+e,this.length);for(n=0;n<Math.min(t.length,e);++n){var s=t.charCodeAt(n);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:a=1,this[this.l]=t&255;break;case 2:a=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:a=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:a=4,k7(this,t,this.l);break;case 8:if(a=8,r==="f"){C7(this,t,this.l);break}case 16:break;case-4:a=4,b7(this,t,this.l);break}return this.l+=a,this}function o3(e,t){var r=K4(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Yt(e,t){e.l=t,e.read_shift=If,e.chk=o3,e.write_shift=I7}function cr(e,t){e.l+=t}function Ht(e){var t=oi(e);return Yt(t,0),t}function bn(e,t,r){if(e){var a,n,i;Yt(e,e.l||0);for(var s=e.length,o=0,f=0;e.l<s;){o=e.read_shift(1),o&128&&(o=(o&127)+((e.read_shift(1)&127)<<7));var l=zu[o]||zu[65535];for(a=e.read_shift(1),i=a&127,n=1;n<4&&a&128;++n)i+=((a=e.read_shift(1))&127)<<7*n;f=e.l+i;var u=l.f&&l.f(e,i,r);if(e.l=f,t(u,l,o))return}}}function Cv(){var e=[],t=Ze?256:2048,r=function(l){var u=Ht(l);return Yt(u,0),u},a=r(t),n=function(){a&&(a.length>a.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},i=function(l){return a&&l<a.length-a.l?a:(n(),a=r(Math.max(l+1,t)))},s=function(){return n(),Vn(e)},o=function(l){n(),a=l,a.l==null&&(a.l=a.length),i(t)};return{next:i,push:o,end:s,_bufs:e}}function Mf(e,t,r){var a=Kt(e);if(t.s?(a.cRel&&(a.c+=t.s.c),a.rRel&&(a.r+=t.s.r)):(a.cRel&&(a.c+=t.c),a.rRel&&(a.r+=t.r)),!r||r.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function a_(e,t,r){var a=Kt(e);return a.s=Mf(a.s,t.s,r),a.e=Mf(a.e,t.s,r),a}function Rf(e,t){if(e.cRel&&e.c<0)for(e=Kt(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Kt(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Ue(e);return!e.cRel&&e.cRel!=null&&(r=P7(r)),!e.rRel&&e.rRel!=null&&(r=M7(r)),r}function id(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+zt(e.s.c)+":"+(e.e.cRel?"":"$")+zt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Zt(e.s.r)+":"+(e.e.rRel?"":"$")+Zt(e.e.r):Rf(e.s,t.biff)+":"+Rf(e.e,t.biff)}function p1(e){return parseInt(R7(e),10)-1}function Zt(e){return""+(e+1)}function M7(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function R7(e){return e.replace(/\$(\d+)$/,"$1")}function g1(e){for(var t=L7(e),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function zt(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function P7(e){return e.replace(/^([A-Z])/,"$$$1")}function L7(e){return e.replace(/^\$([A-Z])/,"$1")}function O7(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Tr(e){for(var t=0,r=0,a=0;a<e.length;++a){var n=e.charCodeAt(a);n>=48&&n<=57?t=10*t+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:t-1}}function Ue(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Co(e){var t=e.indexOf(":");return t==-1?{s:Tr(e),e:Tr(e)}:{s:Tr(e.slice(0,t)),e:Tr(e.slice(t+1))}}function Je(e,t){return typeof t>"u"||typeof t=="number"?Je(e.s,e.e):(typeof e!="string"&&(e=Ue(e)),typeof t!="string"&&(t=Ue(t)),e==t?e:e+":"+t)}function kt(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,a=0,n=0,i=e.length;for(r=0;a<i&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)r=26*r+n;for(t.s.c=--r,r=0;a<i&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)r=10*r+n;if(t.s.r=--r,a===i||n!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,r=0;a!=i&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)r=26*r+n;for(t.e.c=--r,r=0;a!=i&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)r=10*r+n;return t.e.r=--r,t}function n_(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=ca(e.z,r?Ar(t):t)}catch{}try{return e.w=ca((e.XF||{}).numFmtId||(r?14:0),r?Ar(t):t)}catch{return""+t}}function En(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?ms[e.v]||e.v:t==null?n_(e,e.v):n_(e,t))}function ui(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function f3(e,t,r){var a=r||{},n=e?Array.isArray(e):a.dense,i=e||(n?[]:{}),s=0,o=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var f=typeof a.origin=="string"?Tr(a.origin):a.origin;s=f.r,o=f.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=kt(i["!ref"]);l.s.c=u.s.c,l.s.r=u.s.r,l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),s==-1&&(l.e.r=s=u.e.r+1)}for(var c=0;c!=t.length;++c)if(t[c]){if(!Array.isArray(t[c]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[c].length;++h)if(!(typeof t[c][h]>"u")){var d={v:t[c][h]},v=s+c,p=o+h;if(l.s.r>v&&(l.s.r=v),l.s.c>p&&(l.s.c=p),l.e.r<v&&(l.e.r=v),l.e.c<p&&(l.e.c=p),t[c][h]&&typeof t[c][h]=="object"&&!Array.isArray(t[c][h])&&!(t[c][h]instanceof Date))d=t[c][h];else if(Array.isArray(d.v)&&(d.f=t[c][h][1],d.v=d.v[0]),d.v===null)if(d.f)d.t="n";else if(a.nullError)d.t="e",d.v=0;else if(a.sheetStubs)d.t="z";else continue;else typeof d.v=="number"?d.t="n":typeof d.v=="boolean"?d.t="b":d.v instanceof Date?(d.z=a.dateNF||We[14],a.cellDates?(d.t="d",d.w=ca(d.z,Ar(d.v))):(d.t="n",d.v=Ar(d.v),d.w=ca(d.z,d.v))):d.t="s";if(n)i[v]||(i[v]=[]),i[v][p]&&i[v][p].z&&(d.z=i[v][p].z),i[v][p]=d;else{var g=Ue({c:p,r:v});i[g]&&i[g].z&&(d.z=i[g].z),i[g]=d}}}return l.s.c<1e7&&(i["!ref"]=Je(l)),i}function Ao(e,t){return f3(null,e,t)}function B7(e){return e.read_shift(4,"i")}function ur(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function N7(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function m1(e,t){var r=e.l,a=e.read_shift(1),n=ur(e),i=[],s={t:n,h:n};if((a&1)!==0){for(var o=e.read_shift(4),f=0;f!=o;++f)i.push(N7(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}var U7=m1;function da(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function ps(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}var H7=ur;function x1(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}var V7=ur,Av=x1;function _1(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,a=t[0]&2;e.l+=4;var n=a===0?Ou([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):$i(t,0)>>2;return r?n/100:n}function l3(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var gs=l3;function sr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function z7(e){var t={},r=e.read_shift(1),a=r>>>1,n=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),f=e.read_shift(1);switch(e.l++,a){case 0:t.auto=1;break;case 1:t.index=n;var l=is[n];l&&(t.rgb=vl(l));break;case 2:t.rgb=vl([s,o,f]);break;case 3:t.theme=n;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function W7(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function u3(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},a=e.read_shift(4);switch(a){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function G7(e){return u3(e,1)}function $7(e){return u3(e,2)}var y1=2,Mr=3,S0=11,i_=12,Bu=19,E0=64,X7=65,Y7=71,K7=4108,Z7=4126,Gt=80,c3=81,j7=[Gt,c3],q7={1:{n:"CodePage",t:y1},2:{n:"Category",t:Gt},3:{n:"PresentationFormat",t:Gt},4:{n:"ByteCount",t:Mr},5:{n:"LineCount",t:Mr},6:{n:"ParagraphCount",t:Mr},7:{n:"SlideCount",t:Mr},8:{n:"NoteCount",t:Mr},9:{n:"HiddenCount",t:Mr},10:{n:"MultimediaClipCount",t:Mr},11:{n:"ScaleCrop",t:S0},12:{n:"HeadingPairs",t:K7},13:{n:"TitlesOfParts",t:Z7},14:{n:"Manager",t:Gt},15:{n:"Company",t:Gt},16:{n:"LinksUpToDate",t:S0},17:{n:"CharacterCount",t:Mr},19:{n:"SharedDoc",t:S0},22:{n:"HyperlinksChanged",t:S0},23:{n:"AppVersion",t:Mr,p:"version"},24:{n:"DigSig",t:X7},26:{n:"ContentType",t:Gt},27:{n:"ContentStatus",t:Gt},28:{n:"Language",t:Gt},29:{n:"Version",t:Gt},255:{},2147483648:{n:"Locale",t:Bu},2147483651:{n:"Behavior",t:Bu},1919054434:{}},J7={1:{n:"CodePage",t:y1},2:{n:"Title",t:Gt},3:{n:"Subject",t:Gt},4:{n:"Author",t:Gt},5:{n:"Keywords",t:Gt},6:{n:"Comments",t:Gt},7:{n:"Template",t:Gt},8:{n:"LastAuthor",t:Gt},9:{n:"RevNumber",t:Gt},10:{n:"EditTime",t:E0},11:{n:"LastPrinted",t:E0},12:{n:"CreatedDate",t:E0},13:{n:"ModifiedDate",t:E0},14:{n:"PageCount",t:Mr},15:{n:"WordCount",t:Mr},16:{n:"CharCount",t:Mr},17:{n:"Thumbnail",t:Y7},18:{n:"Application",t:Gt},19:{n:"DocSecurity",t:Mr},255:{},2147483648:{n:"Locale",t:Bu},2147483651:{n:"Behavior",t:Bu},1919054434:{}},s_={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Q7=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function eL(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var tL=eL([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),is=Kt(tL),ms={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},h3={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},o_={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function rL(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function aL(e){var t=rL();if(!e||!e.match)return t;var r={};if((e.match(hr)||[]).forEach(function(a){var n=Le(a);switch(n[0].replace(c7,"<")){case"<?xml":break;case"<Types":t.xmlns=n["xmlns"+(n[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[n.Extension]=n.ContentType;break;case"<Override":t[o_[n.ContentType]]!==void 0&&t[o_[n.ContentType]].push(n.PartName);break}}),t.xmlns!==T7.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}var qs={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Dv(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Pf(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var a={};return(e.match(hr)||[]).forEach(function(n){var i=Le(n);if(i[0]==="<Relationship"){var s={};s.Type=i.Type,s.Target=i.Target,s.Id=i.Id,i.TargetMode&&(s.TargetMode=i.TargetMode);var o=i.TargetMode==="External"?i.Target:uf(i.Target,t);r[o]=s,a[i.Id]=s}}),r["!id"]=a,r}var nL="application/vnd.oasis.opendocument.spreadsheet";function iL(e,t){for(var r=d1(e),a,n;a=hl.exec(r);)switch(a[3]){case"manifest":break;case"file-entry":if(n=Le(a[0],!1),n.path=="/"&&n.type!==nL)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw a}}var Lf=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],sL=(function(){for(var e=new Array(Lf.length),t=0;t<Lf.length;++t){var r=Lf[t],a="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e})();function d3(e){var t={};e=_t(e);for(var r=0;r<Lf.length;++r){var a=Lf[r],n=e.match(sL[r]);n!=null&&n.length>0&&(t[a[1]]=tt(n[1])),a[2]==="date"&&t[a[1]]&&(t[a[1]]=$t(t[a[1]]))}return t}var oL=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function v3(e,t,r,a){var n=[];if(typeof e=="string")n=qx(e,a);else for(var i=0;i<e.length;++i)n=n.concat(e[i].map(function(u){return{v:u}}));var s=typeof t=="string"?qx(t,a).map(function(u){return u.v}):t,o=0,f=0;if(s.length>0)for(var l=0;l!==n.length;l+=2){switch(f=+n[l+1].v,n[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=f,r.SheetNames=s.slice(o,o+f);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=f,r.DefinedNames=s.slice(o,o+f);break;case"Charts":case"Diagramme":r.Chartsheets=f,r.ChartNames=s.slice(o,o+f);break}o+=f}}function fL(e,t,r){var a={};return t||(t={}),e=_t(e),oL.forEach(function(n){var i=(e.match(cl(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=tt(i));break;case"bool":t[n[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));s&&s.length>0&&(a[n[1]]=s[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&v3(a.HeadingPairs,a.TitlesOfParts,t,r),t}var lL=/<[^>]+>[^<]*/g;function uL(e,t){var r={},a="",n=e.match(lL);if(n)for(var i=0;i!=n.length;++i){var s=n[i],o=Le(s);switch(o[0]){case"<?xml":break;case"<Properties":break;case"<property":a=tt(o.name);break;case"</property>":a=null;break;default:if(s.indexOf("<vt:")===0){var f=s.split(">"),l=f[0].slice(4),u=f[1];switch(l){case"lpstr":case"bstr":case"lpwstr":r[a]=tt(u);break;case"bool":r[a]=Tt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[a]=parseInt(u,10);break;case"r4":case"r8":case"decimal":r[a]=parseFloat(u);break;case"filetime":case"date":r[a]=$t(u);break;case"cy":case"error":r[a]=tt(u);break;default:if(l.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",s,l,f)}}else if(s.slice(0,2)!=="</"){if(t.WTF)throw new Error(s)}}}return r}var cL={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},sd;function hL(e,t,r){sd||(sd=u1(cL)),t=sd[t]||t,e[t]=r}function w1(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function p3(e,t,r){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-a&3;)++e.l;return n}function g3(e,t,r){var a=e.read_shift(0,"lpwstr");return a}function m3(e,t,r){return t===31?g3(e):p3(e,t,r)}function kv(e,t,r){return m3(e,t,r===!1?0:4)}function dL(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return m3(e,t,0)}function vL(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a){var n=e.l;r[a]=e.read_shift(0,"lpwstr").replace(Cr,""),e.l-n&2&&(e.l+=2)}return r}function pL(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a)r[a]=e.read_shift(0,"lpstr-cp").replace(Cr,"");return r}function gL(e){var t=e.l,r=Nu(e,c3);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var a=Nu(e,Mr);return[r,a]}function mL(e){for(var t=e.read_shift(4),r=[],a=0;a<t/2;++a)r.push(gL(e));return r}function f_(e,t){for(var r=e.read_shift(4),a={},n=0;n!=r;++n){var i=e.read_shift(4),s=e.read_shift(4);a[i]=e.read_shift(s,t===1200?"utf16le":"utf8").replace(Cr,"").replace(lf,"!"),t===1200&&s%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>3<<2),a}function x3(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function xL(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Nu(e,t,r){var a=e.read_shift(2),n,i=r||{};if(e.l+=2,t!==i_&&a!==t&&j7.indexOf(t)===-1&&!((t&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+t+" saw "+a);switch(t===i_?a:t){case 2:return n=e.read_shift(2,"i"),i.raw||(e.l+=2),n;case 3:return n=e.read_shift(4,"i"),n;case 11:return e.read_shift(4)!==0;case 19:return n=e.read_shift(4),n;case 30:return p3(e,a,4).replace(Cr,"");case 31:return g3(e);case 64:return w1(e);case 65:return x3(e);case 71:return xL(e);case 80:return kv(e,a,!i.raw).replace(Cr,"");case 81:return dL(e,a).replace(Cr,"");case 4108:return mL(e);case 4126:case 4127:return a==4127?vL(e):pL(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+a)}}function l_(e,t){var r=e.l,a=e.read_shift(4),n=e.read_shift(4),i=[],s=0,o=0,f=-1,l={};for(s=0;s!=n;++s){var u=e.read_shift(4),c=e.read_shift(4);i[s]=[u,c+r]}i.sort(function(x,_){return x[1]-_[1]});var h={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){var d=!0;if(s>0&&t)switch(t[i[s-1][0]].t){case 2:e.l+2===i[s][1]&&(e.l+=2,d=!1);break;case 80:e.l<=i[s][1]&&(e.l=i[s][1],d=!1);break;case 4108:e.l<=i[s][1]&&(e.l=i[s][1],d=!1);break}if((!t||s==0)&&e.l<=i[s][1]&&(d=!1,e.l=i[s][1]),d)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(t){var v=t[i[s][0]];if(h[v.n]=Nu(e,v.t,{raw:!0}),v.p==="version"&&(h[v.n]=String(h[v.n]>>16)+"."+("0000"+String(h[v.n]&65535)).slice(-4)),v.n=="CodePage")switch(h[v.n]){case 0:h[v.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Ea(o=h[v.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+h[v.n])}}else if(i[s][0]===1){if(o=h.CodePage=Nu(e,y1),Ea(o),f!==-1){var p=e.l;e.l=i[f][1],l=f_(e,o),e.l=p}}else if(i[s][0]===0){if(o===0){f=s,e.l=i[s+1][1];continue}l=f_(e,o)}else{var g=l[i[s][0]],m;switch(e[e.l]){case 65:e.l+=4,m=x3(e);break;case 30:e.l+=4,m=kv(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,m=kv(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,m=e.read_shift(4,"i");break;case 19:e.l+=4,m=e.read_shift(4);break;case 5:e.l+=4,m=e.read_shift(8,"f");break;case 11:e.l+=4,m=bt(e,4);break;case 64:e.l+=4,m=$t(w1(e));break;default:throw new Error("unparsed value: "+e[e.l])}h[g]=m}}return e.l=r+a,h}function u_(e,t,r){var a=e.content;if(!a)return{};Yt(a,0);var n,i,s,o,f=0;a.chk("feff","Byte Order: "),a.read_shift(2);var l=a.read_shift(4),u=a.read_shift(16);if(u!==qe.utils.consts.HEADER_CLSID&&u!==r)throw new Error("Bad PropertySet CLSID "+u);if(n=a.read_shift(4),n!==1&&n!==2)throw new Error("Unrecognized #Sets: "+n);if(i=a.read_shift(16),o=a.read_shift(4),n===1&&o!==a.l)throw new Error("Length mismatch: "+o+" !== "+a.l);n===2&&(s=a.read_shift(16),f=a.read_shift(4));var c=l_(a,t),h={SystemIdentifier:l};for(var d in c)h[d]=c[d];if(h.FMTID=i,n===1)return h;if(f-a.l==2&&(a.l+=2),a.l!==f)throw new Error("Length mismatch 2: "+a.l+" !== "+f);var v;try{v=l_(a,null)}catch{}for(d in v)h[d]=v[d];return h.FMTID=[i,s],h}function On(e,t){return e.read_shift(t),null}function _L(e,t,r){for(var a=[],n=e.l+t;e.l<n;)a.push(r(e,n-e.l));if(n!==e.l)throw new Error("Slurp error");return a}function bt(e,t){return e.read_shift(t)===1}function Lt(e){return e.read_shift(2,"u")}function _3(e,t){return _L(e,t,Lt)}function yL(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function bl(e,t,r){var a=e.read_shift(r&&r.biff>=12?2:1),n="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(n="dbcs-cont")}else r.biff==12&&(n="wstr");r.biff>=2&&r.biff<=5&&(n="cpstr");var s=a?e.read_shift(a,n):"";return s}function wL(e){var t=e.read_shift(2),r=e.read_shift(1),a=r&4,n=r&8,i=1+(r&1),s=0,o,f={};n&&(s=e.read_shift(2)),a&&(o=e.read_shift(4));var l=i==2?"dbcs-cont":"sbcs-cont",u=t===0?"":e.read_shift(t,l);return n&&(e.l+=4*s),a&&(e.l+=o),f.t=u,n||(f.raw="<t>"+f.t+"</t>",f.r=f.t),f}function cs(e,t,r){var a;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var n=e.read_shift(1);return n===0?a=e.read_shift(t,"sbcs-cont"):a=e.read_shift(t,"dbcs-cont"),a}function Fl(e,t,r){var a=e.read_shift(r&&r.biff==2?1:2);return a===0?(e.l++,""):cs(e,a,r)}function xs(e,t,r){if(r.biff>5)return Fl(e,t,r);var a=e.read_shift(1);return a===0?(e.l++,""):e.read_shift(a,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function TL(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function SL(e){var t=e.read_shift(4),r=e.l,a=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(a=!0),e.l=r);var n=e.read_shift((a?t-24:t)>>1,"utf16le").replace(Cr,"");return a&&(e.l+=24),n}function EL(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var n=e.read_shift(4);if(n===0)return r+a.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=e.read_shift(i>>1,"utf16le").replace(Cr,"");return r+s}function CL(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return SL(e);case"0303000000000000c000000000000046":return EL(e);default:throw new Error("Unsupported Moniker "+r)}}function C0(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(Cr,""):"";return r}function AL(e,t){var r=e.l+t,a=e.read_shift(4);if(a!==2)throw new Error("Unrecognized streamVersion: "+a);var n=e.read_shift(2);e.l+=2;var i,s,o,f,l="",u,c;n&16&&(i=C0(e,r-e.l)),n&128&&(s=C0(e,r-e.l)),(n&257)===257&&(o=C0(e,r-e.l)),(n&257)===1&&(f=CL(e,r-e.l)),n&8&&(l=C0(e,r-e.l)),n&32&&(u=e.read_shift(16)),n&64&&(c=w1(e)),e.l=r;var h=s||o||f||"";h&&l&&(h+="#"+l),h||(h="#"+l),n&2&&h.charAt(0)=="/"&&h.charAt(1)!="/"&&(h="file://"+h);var d={Target:h};return u&&(d.guid=u),c&&(d.time=c),i&&(d.Tooltip=i),d}function y3(e){var t=e.read_shift(1),r=e.read_shift(1),a=e.read_shift(1),n=e.read_shift(1);return[t,r,a,n]}function w3(e,t){var r=y3(e);return r[3]=0,r}function rn(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return{r:t,c:r,ixfe:a}}function DL(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function kL(e,t,r){return t===0?"":xs(e,t,r)}function bL(e,t,r){var a=r.biff>8?4:2,n=e.read_shift(a),i=e.read_shift(a,"i"),s=e.read_shift(a,"i");return[n,i,s]}function T3(e){var t=e.read_shift(2),r=_1(e);return[t,r]}function FL(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=bl(e,t,r),i=e.read_shift(2);if(a-=e.l,i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);return e.l+=i,n}function wc(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2);return{s:{c:a,r:t},e:{c:n,r}}}function S3(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(1),n=e.read_shift(1);return{s:{c:a,r:t},e:{c:n,r}}}var IL=S3;function E3(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[r,t,a]}function ML(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function RL(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function tr(e){e.l+=2,e.l+=e.read_shift(2)}var PL={0:tr,4:tr,5:tr,6:tr,7:RL,8:tr,9:tr,10:tr,11:tr,12:tr,13:ML,14:tr,15:tr,16:tr,17:tr,18:tr,19:tr,20:tr,21:E3};function LL(e,t){for(var r=e.l+t,a=[];e.l<r;){var n=e.read_shift(2);e.l-=2;try{a.push(PL[n](e,r-e.l))}catch{return e.l=r,a}}return e.l!=r&&(e.l=r),a}function A0(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),t-=2,t>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function OL(e,t){return t===0||e.read_shift(2),1200}function BL(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=xs(e,0,r);return e.read_shift(t+a-e.l),n}function NL(e,t,r){var a=r&&r.biff==8||t==2?e.read_shift(2):(e.l+=t,0);return{fDialog:a&16,fBelow:a&64,fRight:a&128}}function UL(e,t,r){var a=e.read_shift(4),n=e.read_shift(1)&3,i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break}var s=bl(e,0,r);return s.length===0&&(s="Sheet1"),{pos:a,hs:n,dt:i,name:s}}function HL(e,t){for(var r=e.l+t,a=e.read_shift(4),n=e.read_shift(4),i=[],s=0;s!=n&&e.l<r;++s)i.push(wL(e));return i.Count=a,i.Unique=n,i}function VL(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function zL(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var a=e.read_shift(1);return e.l+=3,a&7&&(t.level=a&7),a&32&&(t.hidden=!0),a&64&&(t.hpt=r/20),t}function WL(e){var t=DL(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function GL(e){return e.read_shift(2),e.read_shift(4)}function c_(e,t,r){var a=0;r&&r.biff==2||(a=e.read_shift(2));var n=e.read_shift(2);r&&r.biff==2&&(a=1-(n>>15),n&=32767);var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function $L(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),f=e.read_shift(2),l=e.read_shift(2);return{Pos:[t,r],Dim:[a,n],Flags:i,CurTab:s,FirstTab:o,Selected:f,TabRatio:l}}function XL(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function YL(){}function KL(e,t,r){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return a.name=bl(e,0,r),a}function ZL(e){var t=rn(e);return t.isst=e.read_shift(4),t}function jL(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var a=e.l+t,n=rn(e);r.biff==2&&e.l++;var i=Fl(e,a-e.l,r);return n.val=i,n}function qL(e,t,r){var a=e.read_shift(2),n=xs(e,0,r);return[a,n]}var JL=xs;function h_(e,t,r){var a=e.l+t,n=r.biff==8||!r.biff?4:2,i=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(2),f=e.read_shift(2);return e.l=a,{s:{r:i,c:o},e:{r:s,c:f}}}function QL(e){var t=e.read_shift(2),r=e.read_shift(2),a=T3(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}function eO(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),i=[];e.l<r;)i.push(T3(e));if(e.l!==r)throw new Error("MulRK read error");var s=e.read_shift(2);if(i.length!=s-n+1)throw new Error("MulRK length mismatch");return{r:a,c:n,C:s,rkrec:i}}function tO(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),i=[];e.l<r;)i.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var s=e.read_shift(2);if(i.length!=s-n+1)throw new Error("MulBlank length mismatch");return{r:a,c:n,C:s,ixfe:i}}function rO(e,t,r,a){var n={},i=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),f=e.read_shift(2);return n.patternType=Q7[o>>26],a.cellStyles&&(n.alc=i&7,n.fWrap=i>>3&1,n.alcV=i>>4&7,n.fJustLast=i>>7&1,n.trot=i>>8&255,n.cIndent=i>>16&15,n.fShrinkToFit=i>>20&1,n.iReadOrder=i>>22&2,n.fAtrNum=i>>26&1,n.fAtrFnt=i>>27&1,n.fAtrAlc=i>>28&1,n.fAtrBdr=i>>29&1,n.fAtrPat=i>>30&1,n.fAtrProt=i>>31&1,n.dgLeft=s&15,n.dgRight=s>>4&15,n.dgTop=s>>8&15,n.dgBottom=s>>12&15,n.icvLeft=s>>16&127,n.icvRight=s>>23&127,n.grbitDiag=s>>30&3,n.icvTop=o&127,n.icvBottom=o>>7&127,n.icvDiag=o>>14&127,n.dgDiag=o>>21&15,n.icvFore=f&127,n.icvBack=f>>7&127,n.fsxButton=f>>14&1),n}function aO(e,t,r){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,t-=6,a.data=rO(e,t,a.fStyle,r),a}function nO(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function d_(e,t,r){var a=rn(e);(r.biff==2||t==9)&&++e.l;var n=yL(e);return a.val=n,a.t=n===!0||n===!1?"b":"e",a}function iO(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var a=rn(e),n=sr(e);return a.val=n,a}var v_=kL;function sO(e,t,r){var a=e.l+t,n=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,n];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var s=cs(e,i),o=[];a>e.l;)o.push(Fl(e));return[i,n,s,o]}function p_(e,t,r){var a=e.read_shift(2),n,i={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return r.sbcch===14849&&(n=FL(e,t-2,r)),i.body=n||e.read_shift(t-2),typeof n=="string"&&(i.Name=n),i}var oO=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function g_(e,t,r){var a=e.l+t,n=e.read_shift(2),i=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(r&&r.biff==2?1:2),f=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),f=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var l=cs(e,s,r);n&32&&(l=oO[l.charCodeAt(0)]);var u=a-e.l;r&&r.biff==2&&--u;var c=a==e.l||o===0||!(u>0)?[]:zN(e,u,r,o);return{chKey:i,Name:l,itab:f,rgce:c}}function C3(e,t,r){if(r.biff<8)return fO(e,t,r);for(var a=[],n=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)a.push(bL(e,r.biff>8?12:6,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function fO(e,t,r){e[e.l+1]==3&&e[e.l]++;var a=bl(e,t,r);return a.charCodeAt(0)==3?a.slice(1):a}function lO(e,t,r){if(r.biff<8){e.l+=t;return}var a=e.read_shift(2),n=e.read_shift(2),i=cs(e,a,r),s=cs(e,n,r);return[i,s]}function uO(e,t,r){var a=S3(e);e.l++;var n=e.read_shift(1);return t-=8,[WN(e,t,r),n,a]}function m_(e,t,r){var a=IL(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[a,HN(e,t,r)]}function cO(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,a=e.read_shift(4);return[t,r,a]}function hO(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=xs(e,0,r);return r.biff<8&&e.read_shift(1),[{r:a,c:n},o,s,i]}}function dO(e,t,r){return hO(e,t,r)}function vO(e,t){for(var r=[],a=e.read_shift(2);a--;)r.push(wc(e));return r}function pO(e,t,r){if(r&&r.biff<8)return mO(e,t,r);var a=E3(e),n=LL(e,t-22,a[1]);return{cmo:a,ft:n}}var gO={8:function(e,t){var r=e.l+t;e.l+=10;var a=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var n=e.read_shift(1);return e.l+=n,e.l=r,{fmt:a}}};function mO(e,t,r){e.l+=4;var a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((gO[a]||cr)(e,t,r)),{cmo:[n,a,i],ft:s}}function xO(e,t,r){var a=e.l,n="";try{e.l+=4;var i=(r.lastobj||{cmo:[0,0]}).cmo[1],s;[0,5,7,11,12,14].indexOf(i)==-1?e.l+=6:s=TL(e,6,r);var o=e.read_shift(2);e.read_shift(2),Lt(e,2);var f=e.read_shift(2);e.l+=f;for(var l=1;l<e.lens.length-1;++l){if(e.l-a!=e.lens[l])throw new Error("TxO: bad continue record");var u=e[e.l],c=cs(e,e.lens[l+1]-e.lens[l]-1);if(n+=c,n.length>=(u?o:2*o))break}if(n.length!==o&&n.length!==o*2)throw new Error("cchText: "+o+" != "+n.length);return e.l=a+t,{t:n}}catch{return e.l=a+t,{t:n}}}function _O(e,t){var r=wc(e);e.l+=16;var a=AL(e,t-24);return[r,a]}function yO(e,t){e.read_shift(2);var r=wc(e),a=e.read_shift((t-10)/2,"dbcs-cont");return a=a.replace(Cr,""),[r,a]}function wO(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=s_[r]||r,r=e.read_shift(2),t[1]=s_[r]||r,t}function TO(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(w3(e));return r}function SO(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(w3(e));return r}function EO(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function A3(e,t,r){if(!r.cellStyles)return cr(e,t);var a=r&&r.biff>=12?4:2,n=e.read_shift(a),i=e.read_shift(a),s=e.read_shift(a),o=e.read_shift(a),f=e.read_shift(2);a==2&&(e.l+=2);var l={s:n,e:i,w:s,ixfe:o,flags:f};return(r.biff>=5||!r.biff)&&(l.level=f>>8&7),l}function CO(e,t){var r={};return t<32||(e.l+=16,r.header=sr(e),r.footer=sr(e),e.l+=2),r}function AO(e,t,r){var a={area:!1};if(r.biff!=5)return e.l+=t,a;var n=e.read_shift(1);return e.l+=3,n&16&&(a.area=!0),a}var DO=rn,kO=_3,bO=Fl;function FO(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n={fmt:t,env:r,len:a,data:e.slice(e.l,e.l+a)};return e.l+=a,n}function IO(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var a=rn(e);++e.l;var n=xs(e,t-7,r);return a.t="str",a.val=n,a}function MO(e){var t=rn(e);++e.l;var r=sr(e);return t.t="n",t.val=r,t}function RO(e){var t=rn(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function PO(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function LO(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function OO(e,t,r){var a=e.l+t,n=rn(e),i=e.read_shift(2),s=cs(e,i,r);return e.l=a,n.t="str",n.val=s,n}var BO=[2,3,48,49,131,139,140,245],x_=(function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=u1({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(o,f){var l=[],u=oi(1);switch(f.type){case"base64":u=Sa(Kr(o));break;case"binary":u=Sa(o);break;case"buffer":case"array":u=o;break}Yt(u,0);var c=u.read_shift(1),h=!!(c&136),d=!1,v=!1;switch(c){case 2:break;case 3:break;case 48:d=!0,h=!0;break;case 49:d=!0,h=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+c.toString(16))}var p=0,g=521;c==2&&(p=u.read_shift(2)),u.l+=3,c!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),c!=2&&(g=u.read_shift(2));var m=u.read_shift(2),x=f.codepage||1252;c!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(x=e[u[u.l]]),u.l+=1,u.l+=2),v&&(u.l+=36);for(var _=[],y={},F=Math.min(u.length,c==2?521:g-10-(d?264:0)),k=v?32:11;u.l<F&&u[u.l]!=13;)switch(y={},y.name=ll.utils.decode(x,u.slice(u.l,u.l+k)).replace(/[\u0000\r\n].*$/g,""),u.l+=k,y.type=String.fromCharCode(u.read_shift(1)),c!=2&&!v&&(y.offset=u.read_shift(4)),y.len=u.read_shift(1),c==2&&(y.offset=u.read_shift(2)),y.dec=u.read_shift(1),y.name.length&&_.push(y),c!=2&&(u.l+=v?13:14),y.type){case"B":(!d||y.len!=8)&&f.WTF&&console.log("Skipping "+y.name+":"+y.type);break;case"G":case"P":f.WTF&&console.log("Skipping "+y.name+":"+y.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+y.type)}if(u[u.l]!==13&&(u.l=g-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=g;var E=0,C=0;for(l[0]=[],C=0;C!=_.length;++C)l[0][C]=_[C].name;for(;p-- >0;){if(u[u.l]===42){u.l+=m;continue}for(++u.l,l[++E]=[],C=0,C=0;C!=_.length;++C){var T=u.slice(u.l,u.l+_[C].len);u.l+=_[C].len,Yt(T,0);var b=ll.utils.decode(x,T);switch(_[C].type){case"C":b.trim().length&&(l[E][C]=b.replace(/\s+$/,""));break;case"D":b.length===8?l[E][C]=new Date(+b.slice(0,4),+b.slice(4,6)-1,+b.slice(6,8)):l[E][C]=b;break;case"F":l[E][C]=parseFloat(b.trim());break;case"+":case"I":l[E][C]=v?T.read_shift(-4,"i")^2147483648:T.read_shift(4,"i");break;case"L":switch(b.trim().toUpperCase()){case"Y":case"T":l[E][C]=!0;break;case"N":case"F":l[E][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+b+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+c.toString(16));l[E][C]="##MEMO##"+(v?parseInt(b.trim(),10):T.read_shift(4));break;case"N":b=b.replace(/\u0000/g,"").trim(),b&&b!="."&&(l[E][C]=+b||0);break;case"@":l[E][C]=new Date(T.read_shift(-8,"f")-621356832e5);break;case"T":l[E][C]=new Date((T.read_shift(4)-2440588)*864e5+T.read_shift(4));break;case"Y":l[E][C]=T.read_shift(4,"i")/1e4+T.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[E][C]=-T.read_shift(-8,"f");break;case"B":if(d&&_[C].len==8){l[E][C]=T.read_shift(8,"f");break}case"G":case"P":T.l+=_[C].len;break;case"0":if(_[C].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[C].type)}}}if(c!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return f&&f.sheetRows&&(l=l.slice(0,f.sheetRows)),f.DBF=_,l}function a(o,f){var l=f||{};l.dateNF||(l.dateNF="yyyymmdd");var u=Ao(r(o,l),l);return u["!cols"]=l.DBF.map(function(c){return{wch:c.len,DBF:c}}),delete l.DBF,u}function n(o,f){try{return ui(a(o,f),f)}catch(l){if(f&&f.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,f){var l=f||{};if(+l.codepage>=0&&Ea(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var u=Cv(),c=Lv(o,{header:1,raw:!0,cellDates:!0}),h=c[0],d=c.slice(1),v=o["!cols"]||[],p=0,g=0,m=0,x=1;for(p=0;p<h.length;++p){if(((v[p]||{}).DBF||{}).name){h[p]=v[p].DBF.name,++m;continue}if(h[p]!=null){if(++m,typeof h[p]=="number"&&(h[p]=h[p].toString(10)),typeof h[p]!="string")throw new Error("DBF Invalid column name "+h[p]+" |"+typeof h[p]+"|");if(h.indexOf(h[p])!==p){for(g=0;g<1024;++g)if(h.indexOf(h[p]+"_"+g)==-1){h[p]+="_"+g;break}}}}var _=kt(o["!ref"]),y=[],F=[],k=[];for(p=0;p<=_.e.c-_.s.c;++p){var E="",C="",T=0,b=[];for(g=0;g<d.length;++g)d[g][p]!=null&&b.push(d[g][p]);if(b.length==0||h[p]==null){y[p]="?";continue}for(g=0;g<b.length;++g){switch(typeof b[g]){case"number":C="B";break;case"string":C="C";break;case"boolean":C="L";break;case"object":C=b[g]instanceof Date?"D":"C";break;default:C="C"}T=Math.max(T,String(b[g]).length),E=E&&E!=C?"C":C}T>250&&(T=250),C=((v[p]||{}).DBF||{}).type,C=="C"&&v[p].DBF.len>T&&(T=v[p].DBF.len),E=="B"&&C=="N"&&(E="N",k[p]=v[p].DBF.dec,T=v[p].DBF.len),F[p]=E=="C"||C=="N"?T:i[E]||0,x+=F[p],y[p]=E}var M=u.next(32);for(M.write_shift(4,318902576),M.write_shift(4,d.length),M.write_shift(2,296+32*m),M.write_shift(2,x),p=0;p<4;++p)M.write_shift(4,0);for(M.write_shift(4,0|(+t[C4]||3)<<8),p=0,g=0;p<h.length;++p)if(h[p]!=null){var R=u.next(32),B=(h[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);R.write_shift(1,B,"sbcs"),R.write_shift(1,y[p]=="?"?"C":y[p],"sbcs"),R.write_shift(4,g),R.write_shift(1,F[p]||i[y[p]]||0),R.write_shift(1,k[p]||0),R.write_shift(1,2),R.write_shift(4,0),R.write_shift(1,0),R.write_shift(4,0),R.write_shift(4,0),g+=F[p]||i[y[p]]||0}var G=u.next(264);for(G.write_shift(4,13),p=0;p<65;++p)G.write_shift(4,0);for(p=0;p<d.length;++p){var re=u.next(x);for(re.write_shift(1,0),g=0;g<h.length;++g)if(h[g]!=null)switch(y[g]){case"L":re.write_shift(1,d[p][g]==null?63:d[p][g]?84:70);break;case"B":re.write_shift(8,d[p][g]||0,"f");break;case"N":var j="0";for(typeof d[p][g]=="number"&&(j=d[p][g].toFixed(k[g]||0)),m=0;m<F[g]-j.length;++m)re.write_shift(1,32);re.write_shift(1,j,"sbcs");break;case"D":d[p][g]?(re.write_shift(4,("0000"+d[p][g].getFullYear()).slice(-4),"sbcs"),re.write_shift(2,("00"+(d[p][g].getMonth()+1)).slice(-2),"sbcs"),re.write_shift(2,("00"+d[p][g].getDate()).slice(-2),"sbcs")):re.write_shift(8,"00000000","sbcs");break;case"C":var q=String(d[p][g]!=null?d[p][g]:"").slice(0,F[g]);for(re.write_shift(1,q,"sbcs"),m=0;m<F[g]-q.length;++m)re.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:n,to_sheet:a,from_sheet:s}})(),NO=(function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ja(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,d){var v=e[d];return typeof v=="number"?Px(v):v},a=function(h,d,v){var p=d.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return p==59?h:Px(p)};e["|"]=254;function n(h,d){switch(d.type){case"base64":return i(Kr(h),d);case"binary":return i(h,d);case"buffer":return i(Ze&&Buffer.isBuffer(h)?h.toString("binary"):vs(h),d);case"array":return i(us(h),d)}throw new Error("Unrecognized type "+d.type)}function i(h,d){var v=h.split(/[\n\r]+/),p=-1,g=-1,m=0,x=0,_=[],y=[],F=null,k={},E=[],C=[],T=[],b=0,M;for(+d.codepage>=0&&Ea(+d.codepage);m!==v.length;++m){b=0;var R=v[m].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(t,r),B=R.replace(/;;/g,"\0").split(";").map(function(z){return z.replace(/\u0000/g,";")}),G=B[0],re;if(R.length>0)switch(G){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":B[1].charAt(0)=="P"&&y.push(R.slice(3).replace(/;;/g,";"));break;case"C":var j=!1,q=!1,ve=!1,U=!1,xe=-1,se=-1;for(x=1;x<B.length;++x)switch(B[x].charAt(0)){case"A":break;case"X":g=parseInt(B[x].slice(1))-1,q=!0;break;case"Y":for(p=parseInt(B[x].slice(1))-1,q||(g=0),M=_.length;M<=p;++M)_[M]=[];break;case"K":re=B[x].slice(1),re.charAt(0)==='"'?re=re.slice(1,re.length-1):re==="TRUE"?re=!0:re==="FALSE"?re=!1:isNaN(ka(re))?isNaN(go(re).getDate())||(re=$t(re)):(re=ka(re),F!==null&&Eo(F)&&(re=yc(re))),j=!0;break;case"E":U=!0;var P=uo(B[x].slice(1),{r:p,c:g});_[p][g]=[_[p][g],P];break;case"S":ve=!0,_[p][g]=[_[p][g],"S5S"];break;case"G":break;case"R":xe=parseInt(B[x].slice(1))-1;break;case"C":se=parseInt(B[x].slice(1))-1;break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+R)}if(j&&(_[p][g]&&_[p][g].length==2?_[p][g][0]=re:_[p][g]=re,F=null),ve){if(U)throw new Error("SYLK shared formula cannot have own formula");var V=xe>-1&&_[xe][se];if(!V||!V[1])throw new Error("SYLK shared formula cannot find base");_[p][g][1]=O3(V[1],{r:p-xe,c:g-se})}break;case"F":var H=0;for(x=1;x<B.length;++x)switch(B[x].charAt(0)){case"X":g=parseInt(B[x].slice(1))-1,++H;break;case"Y":for(p=parseInt(B[x].slice(1))-1,M=_.length;M<=p;++M)_[M]=[];break;case"M":b=parseInt(B[x].slice(1))/20;break;case"F":break;case"G":break;case"P":F=y[parseInt(B[x].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(T=B[x].slice(1).split(" "),M=parseInt(T[0],10);M<=parseInt(T[1],10);++M)b=parseInt(T[2],10),C[M-1]=b===0?{hidden:!0}:{wch:b},mo(C[M-1]);break;case"C":g=parseInt(B[x].slice(1))-1,C[g]||(C[g]={});break;case"R":p=parseInt(B[x].slice(1))-1,E[p]||(E[p]={}),b>0?(E[p].hpt=b,E[p].hpx=pl(b)):b===0&&(E[p].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+R)}H<1&&(F=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+R)}}return E.length>0&&(k["!rows"]=E),C.length>0&&(k["!cols"]=C),d&&d.sheetRows&&(_=_.slice(0,d.sheetRows)),[_,k]}function s(h,d){var v=n(h,d),p=v[0],g=v[1],m=Ao(p,d);return Ja(g).forEach(function(x){m[x]=g[x]}),m}function o(h,d){return ui(s(h,d),d)}function f(h,d,v,p){var g="C;Y"+(v+1)+";X"+(p+1)+";K";switch(h.t){case"n":g+=h.v||0,h.f&&!h.F&&(g+=";E"+EB(h.f,{r:v,c:p}));break;case"b":g+=h.v?"TRUE":"FALSE";break;case"e":g+=h.w||h.v;break;case"d":g+='"'+(h.w||h.v)+'"';break;case"s":g+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function l(h,d){d.forEach(function(v,p){var g="F;W"+(p+1)+" "+(p+1)+" ";v.hidden?g+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=Hu(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=Vu(v.wpx)),typeof v.wch=="number"&&(g+=Math.round(v.wch))),g.charAt(g.length-1)!=" "&&h.push(g)})}function u(h,d){d.forEach(function(v,p){var g="F;";v.hidden?g+="M0;":v.hpt?g+="M"+20*v.hpt+";":v.hpx&&(g+="M"+20*R3(v.hpx)+";"),g.length>2&&h.push(g+"R"+(p+1))})}function c(h,d){var v=["ID;PWXL;N;E"],p=[],g=kt(h["!ref"]),m,x=Array.isArray(h),_=`\r
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),h["!cols"]&&l(v,h["!cols"]),h["!rows"]&&u(v,h["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var y=g.s.r;y<=g.e.r;++y)for(var F=g.s.c;F<=g.e.c;++F){var k=Ue({r:y,c:F});m=x?(h[y]||[])[F]:h[k],!(!m||m.v==null&&(!m.f||m.F))&&p.push(f(m,h,y,F))}return v.join(_)+_+p.join(_)+_+"E"+_}return{to_workbook:o,to_sheet:s,from_sheet:c}})(),UO=(function(){function e(i,s){switch(s.type){case"base64":return t(Kr(i),s);case"binary":return t(i,s);case"buffer":return t(Ze&&Buffer.isBuffer(i)?i.toString("binary"):vs(i),s);case"array":return t(us(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var o=i.split(`
`),f=-1,l=-1,u=0,c=[];u!==o.length;++u){if(o[u].trim()==="BOT"){c[++f]=[],l=0;continue}if(!(f<0)){var h=o[u].trim().split(","),d=h[0],v=h[1];++u;for(var p=o[u]||"";(p.match(/["]/g)||[]).length&1&&u<o.length-1;)p+=`
`+o[++u];switch(p=p.trim(),+d){case-1:if(p==="BOT"){c[++f]=[],l=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?c[f][l]=!0:p==="FALSE"?c[f][l]=!1:isNaN(ka(v))?isNaN(go(v).getDate())?c[f][l]=v:c[f][l]=$t(v):c[f][l]=ka(v),++l;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),c[f][l++]=p!==""?p:null;break}if(p==="EOD")break}}return s&&s.sheetRows&&(c=c.slice(0,s.sheetRows)),c}function r(i,s){return Ao(e(i,s),s)}function a(i,s){return ui(r(i,s),s)}var n=(function(){var i=function(f,l,u,c,h){f.push(l),f.push(u+","+c),f.push('"'+h.replace(/"/g,'""')+'"')},s=function(f,l,u,c){f.push(l+","+u),f.push(l==1?'"'+c.replace(/"/g,'""')+'"':c)};return function(f){var l=[],u=kt(f["!ref"]),c,h=Array.isArray(f);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,u.e.r-u.s.r+1,""),i(l,"TUPLES",0,u.e.c-u.s.c+1,""),i(l,"DATA",0,0,"");for(var d=u.s.r;d<=u.e.r;++d){s(l,-1,0,"BOT");for(var v=u.s.c;v<=u.e.c;++v){var p=Ue({r:d,c:v});if(c=h?(f[d]||[])[v]:f[p],!c){s(l,1,0,"");continue}switch(c.t){case"n":var g=c.w;!g&&c.v!=null&&(g=c.v),g==null?c.f&&!c.F?s(l,1,0,"="+c.f):s(l,1,0,""):s(l,0,g,"V");break;case"b":s(l,0,c.v?1:0,c.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(c.v)?c.v:'="'+c.v+'"');break;case"d":c.w||(c.w=ca(c.z||We[14],Ar($t(c.v)))),s(l,0,c.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var m=`\r
`,x=l.join(m);return x}})();return{to_workbook:a,to_sheet:r,from_sheet:n}})(),HO=(function(){function e(c){return c.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(c){return c.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(c,h){for(var d=c.split(`
`),v=-1,p=-1,g=0,m=[];g!==d.length;++g){var x=d[g].trim().split(":");if(x[0]==="cell"){var _=Tr(x[1]);if(m.length<=_.r)for(v=m.length;v<=_.r;++v)m[v]||(m[v]=[]);switch(v=_.r,p=_.c,x[2]){case"t":m[v][p]=e(x[3]);break;case"v":m[v][p]=+x[3];break;case"vtf":var y=x[x.length-1];case"vtc":x[3]==="nl"?m[v][p]=!!+x[4]:m[v][p]=+x[4],x[2]=="vtf"&&(m[v][p]=[m[v][p],y])}}}return h&&h.sheetRows&&(m=m.slice(0,h.sheetRows)),m}function a(c,h){return Ao(r(c,h),h)}function n(c,h){return ui(a(c,h),h)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),f="--SocialCalcSpreadsheetControlSave--";function l(c){if(!c||!c["!ref"])return"";for(var h=[],d=[],v,p="",g=Co(c["!ref"]),m=Array.isArray(c),x=g.s.r;x<=g.e.r;++x)for(var _=g.s.c;_<=g.e.c;++_)if(p=Ue({r:x,c:_}),v=m?(c[x]||[])[_]:c[p],!(!v||v.v==null||v.t==="z")){switch(d=["cell",p,"t"],v.t){case"s":case"str":d.push(t(v.v));break;case"n":v.f?(d[2]="vtf",d[3]="n",d[4]=v.v,d[5]=t(v.f)):(d[2]="v",d[3]=v.v);break;case"b":d[2]="vt"+(v.f?"f":"c"),d[3]="nl",d[4]=v.v?"1":"0",d[5]=t(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var y=Ar($t(v.v));d[2]="vtc",d[3]="nd",d[4]=""+y,d[5]=v.w||ca(v.z||We[14],y);break;case"e":continue}h.push(d.join(":"))}return h.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(`
`)}function u(c){return[i,s,o,s,l(c),f].join(`
`)}return{to_workbook:n,to_sheet:a,from_sheet:u}})(),dl=(function(){function e(u,c,h,d,v){v.raw?c[h][d]=u:u===""||(u==="TRUE"?c[h][d]=!0:u==="FALSE"?c[h][d]=!1:isNaN(ka(u))?isNaN(go(u).getDate())?c[h][d]=u:c[h][d]=$t(u):c[h][d]=ka(u))}function t(u,c){var h=c||{},d=[];if(!u||u.length===0)return d;for(var v=u.split(/[\r\n]/),p=v.length-1;p>=0&&v[p].length===0;)--p;for(var g=10,m=0,x=0;x<=p;++x)m=v[x].indexOf(" "),m==-1?m=v[x].length:m++,g=Math.max(g,m);for(x=0;x<=p;++x){d[x]=[];var _=0;for(e(v[x].slice(0,g).trim(),d,x,_,h),_=1;_<=(v[x].length-g)/10+1;++_)e(v[x].slice(g+(_-1)*10,g+_*10).trim(),d,x,_,h)}return h.sheetRows&&(d=d.slice(0,h.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function n(u){for(var c={},h=!1,d=0,v=0;d<u.length;++d)(v=u.charCodeAt(d))==34?h=!h:!h&&v in r&&(c[v]=(c[v]||0)+1);v=[];for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&v.push([c[d],d]);if(!v.length){c=a;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&v.push([c[d],d])}return v.sort(function(p,g){return p[0]-g[0]||a[p[1]]-a[g[1]]}),r[v.pop()[1]]||44}function i(u,c){var h=c||{},d="",v=h.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(d=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(d=u.charAt(4),u=u.slice(6)):d=n(u.slice(0,1024)):h&&h.FS?d=h.FS:d=n(u.slice(0,1024));var g=0,m=0,x=0,_=0,y=0,F=d.charCodeAt(0),k=!1,E=0,C=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
`);var T=h.dateNF!=null?qP(h.dateNF):null;function b(){var M=u.slice(_,y),R={};if(M.charAt(0)=='"'&&M.charAt(M.length-1)=='"'&&(M=M.slice(1,-1).replace(/""/g,'"')),M.length===0)R.t="z";else if(h.raw)R.t="s",R.v=M;else if(M.trim().length===0)R.t="s",R.v=M;else if(M.charCodeAt(0)==61)M.charCodeAt(1)==34&&M.charCodeAt(M.length-1)==34?(R.t="s",R.v=M.slice(2,-1).replace(/""/g,'"')):AB(M)?(R.t="n",R.f=M.slice(1)):(R.t="s",R.v=M);else if(M=="TRUE")R.t="b",R.v=!0;else if(M=="FALSE")R.t="b",R.v=!1;else if(!isNaN(x=ka(M)))R.t="n",h.cellText!==!1&&(R.w=M),R.v=x;else if(!isNaN(go(M).getDate())||T&&M.match(T)){R.z=h.dateNF||We[14];var B=0;T&&M.match(T)&&(M=JP(M,h.dateNF,M.match(T)||[]),B=1),h.cellDates?(R.t="d",R.v=$t(M,B)):(R.t="n",R.v=Ar($t(M,B))),h.cellText!==!1&&(R.w=ca(R.z,R.v instanceof Date?Ar(R.v):R.v)),h.cellNF||delete R.z}else R.t="s",R.v=M;if(R.t=="z"||(h.dense?(v[g]||(v[g]=[]),v[g][m]=R):v[Ue({c:m,r:g})]=R),_=y+1,C=u.charCodeAt(_),p.e.c<m&&(p.e.c=m),p.e.r<g&&(p.e.r=g),E==F)++m;else if(m=0,++g,h.sheetRows&&h.sheetRows<=g)return!0}e:for(;y<u.length;++y)switch(E=u.charCodeAt(y)){case 34:C===34&&(k=!k);break;case F:case 10:case 13:if(!k&&b())break e;break}return y-_>0&&b(),v["!ref"]=Je(p),v}function s(u,c){return!(c&&c.PRN)||c.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?i(u,c):Ao(t(u,c),c)}function o(u,c){var h="",d=c.type=="string"?[0,0,0,0]:b1(u,c);switch(c.type){case"base64":h=Kr(u);break;case"binary":h=u;break;case"buffer":c.codepage==65001?h=u.toString("utf8"):c.codepage&&typeof ll<"u"||(h=Ze&&Buffer.isBuffer(u)?u.toString("binary"):vs(u));break;case"array":h=us(u);break;case"string":h=u;break;default:throw new Error("Unrecognized type "+c.type)}return d[0]==239&&d[1]==187&&d[2]==191?h=_t(h.slice(3)):c.type!="string"&&c.type!="buffer"&&c.codepage==65001?h=_t(h):c.type=="binary"&&typeof ll<"u",h.slice(0,19)=="socialcalc:version:"?HO.to_sheet(c.type=="string"?h:_t(h),c):s(h,c)}function f(u,c){return ui(o(u,c),c)}function l(u){for(var c=[],h=kt(u["!ref"]),d,v=Array.isArray(u),p=h.s.r;p<=h.e.r;++p){for(var g=[],m=h.s.c;m<=h.e.c;++m){var x=Ue({r:p,c:m});if(d=v?(u[p]||[])[m]:u[x],!d||d.v==null){g.push(" ");continue}for(var _=(d.w||(En(d),d.w)||"").slice(0,10);_.length<10;)_+=" ";g.push(_+(m===0?" ":""))}c.push(g.join(""))}return c.join(`
`)}return{to_workbook:f,to_sheet:o,from_sheet:l}})();function VO(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=NO.to_workbook(e,r);return r.WTF=a,n}catch(i){if(r.WTF=a,!i.message.match(/SYLK bad record ID/)&&a)throw i;return dl.to_workbook(e,t)}}var Of=(function(){function e(P,V,H){if(P){Yt(P,P.l||0);for(var z=H.Enum||xe;P.l<P.length;){var ae=P.read_shift(2),pe=z[ae]||z[65535],le=P.read_shift(2),ie=P.l+le,ne=pe.f&&pe.f(P,le,H);if(P.l=ie,V(ne,pe,ae))return}}}function t(P,V){switch(V.type){case"base64":return r(Sa(Kr(P)),V);case"binary":return r(Sa(P),V);case"buffer":case"array":return r(P,V)}throw"Unsupported type "+V.type}function r(P,V){if(!P)return P;var H=V||{},z=H.dense?[]:{},ae="Sheet1",pe="",le=0,ie={},ne=[],ue=[],w={s:{r:0,c:0},e:{r:0,c:0}},N=H.sheetRows||0;if(P[2]==0&&(P[3]==8||P[3]==9)&&P.length>=16&&P[14]==5&&P[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(P[2]==2)H.Enum=xe,e(P,function(Y,oe,ce){switch(ce){case 0:H.vers=Y,Y>=4096&&(H.qpro=!0);break;case 6:w=Y;break;case 204:Y&&(pe=Y);break;case 222:pe=Y;break;case 15:case 51:H.qpro||(Y[1].v=Y[1].v.slice(1));case 13:case 14:case 16:ce==14&&(Y[2]&112)==112&&(Y[2]&15)>1&&(Y[2]&15)<15&&(Y[1].z=H.dateNF||We[14],H.cellDates&&(Y[1].t="d",Y[1].v=yc(Y[1].v))),H.qpro&&Y[3]>le&&(z["!ref"]=Je(w),ie[ae]=z,ne.push(ae),z=H.dense?[]:{},w={s:{r:0,c:0},e:{r:0,c:0}},le=Y[3],ae=pe||"Sheet"+(le+1),pe="");var de=H.dense?(z[Y[0].r]||[])[Y[0].c]:z[Ue(Y[0])];if(de){de.t=Y[1].t,de.v=Y[1].v,Y[1].z!=null&&(de.z=Y[1].z),Y[1].f!=null&&(de.f=Y[1].f);break}H.dense?(z[Y[0].r]||(z[Y[0].r]=[]),z[Y[0].r][Y[0].c]=Y[1]):z[Ue(Y[0])]=Y[1];break}},H);else if(P[2]==26||P[2]==14)H.Enum=se,P[2]==14&&(H.qpro=!0,P.l=0),e(P,function(Y,oe,ce){switch(ce){case 204:ae=Y;break;case 22:Y[1].v=Y[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Y[3]>le&&(z["!ref"]=Je(w),ie[ae]=z,ne.push(ae),z=H.dense?[]:{},w={s:{r:0,c:0},e:{r:0,c:0}},le=Y[3],ae="Sheet"+(le+1)),N>0&&Y[0].r>=N)break;H.dense?(z[Y[0].r]||(z[Y[0].r]=[]),z[Y[0].r][Y[0].c]=Y[1]):z[Ue(Y[0])]=Y[1],w.e.c<Y[0].c&&(w.e.c=Y[0].c),w.e.r<Y[0].r&&(w.e.r=Y[0].r);break;case 27:Y[14e3]&&(ue[Y[14e3][0]]=Y[14e3][1]);break;case 1537:ue[Y[0]]=Y[1],Y[0]==le&&(ae=Y[1]);break}},H);else throw new Error("Unrecognized LOTUS BOF "+P[2]);if(z["!ref"]=Je(w),ie[pe||ae]=z,ne.push(pe||ae),!ue.length)return{SheetNames:ne,Sheets:ie};for(var W={},J=[],K=0;K<ue.length;++K)ie[ne[K]]?(J.push(ue[K]||ne[K]),W[ue[K]]=ie[ue[K]]||ie[ne[K]]):(J.push(ue[K]),W[ue[K]]={"!ref":"A1"});return{SheetNames:J,Sheets:W}}function a(P,V){var H=V||{};if(+H.codepage>=0&&Ea(+H.codepage),H.type=="string")throw new Error("Cannot write WK1 to JS string");var z=Cv(),ae=kt(P["!ref"]),pe=Array.isArray(P),le=[];xa(z,0,i(1030)),xa(z,6,f(ae));for(var ie=Math.min(ae.e.r,8191),ne=ae.s.r;ne<=ie;++ne)for(var ue=Zt(ne),w=ae.s.c;w<=ae.e.c;++w){ne===ae.s.r&&(le[w]=zt(w));var N=le[w]+ue,W=pe?(P[ne]||[])[w]:P[N];if(!(!W||W.t=="z"))if(W.t=="n")(W.v|0)==W.v&&W.v>=-32768&&W.v<=32767?xa(z,13,d(ne,w,W.v)):xa(z,14,p(ne,w,W.v));else{var J=En(W);xa(z,15,c(ne,w,J.slice(0,239)))}}return xa(z,1),z.end()}function n(P,V){var H=V||{};if(+H.codepage>=0&&Ea(+H.codepage),H.type=="string")throw new Error("Cannot write WK3 to JS string");var z=Cv();xa(z,0,s(P));for(var ae=0,pe=0;ae<P.SheetNames.length;++ae)(P.Sheets[P.SheetNames[ae]]||{})["!ref"]&&xa(z,27,U(P.SheetNames[ae],pe++));var le=0;for(ae=0;ae<P.SheetNames.length;++ae){var ie=P.Sheets[P.SheetNames[ae]];if(!(!ie||!ie["!ref"])){for(var ne=kt(ie["!ref"]),ue=Array.isArray(ie),w=[],N=Math.min(ne.e.r,8191),W=ne.s.r;W<=N;++W)for(var J=Zt(W),K=ne.s.c;K<=ne.e.c;++K){W===ne.s.r&&(w[K]=zt(K));var Y=w[K]+J,oe=ue?(ie[W]||[])[K]:ie[Y];if(!(!oe||oe.t=="z"))if(oe.t=="n")xa(z,23,b(W,K,le,oe.v));else{var ce=En(oe);xa(z,22,E(W,K,le,ce.slice(0,239)))}}++le}}return xa(z,1),z.end()}function i(P){var V=Ht(2);return V.write_shift(2,P),V}function s(P){var V=Ht(26);V.write_shift(2,4096),V.write_shift(2,4),V.write_shift(4,0);for(var H=0,z=0,ae=0,pe=0;pe<P.SheetNames.length;++pe){var le=P.SheetNames[pe],ie=P.Sheets[le];if(!(!ie||!ie["!ref"])){++ae;var ne=Co(ie["!ref"]);H<ne.e.r&&(H=ne.e.r),z<ne.e.c&&(z=ne.e.c)}}return H>8191&&(H=8191),V.write_shift(2,H),V.write_shift(1,ae),V.write_shift(1,z),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(1,1),V.write_shift(1,2),V.write_shift(4,0),V.write_shift(4,0),V}function o(P,V,H){var z={s:{c:0,r:0},e:{c:0,r:0}};return V==8&&H.qpro?(z.s.c=P.read_shift(1),P.l++,z.s.r=P.read_shift(2),z.e.c=P.read_shift(1),P.l++,z.e.r=P.read_shift(2),z):(z.s.c=P.read_shift(2),z.s.r=P.read_shift(2),V==12&&H.qpro&&(P.l+=2),z.e.c=P.read_shift(2),z.e.r=P.read_shift(2),V==12&&H.qpro&&(P.l+=2),z.s.c==65535&&(z.s.c=z.e.c=z.s.r=z.e.r=0),z)}function f(P){var V=Ht(8);return V.write_shift(2,P.s.c),V.write_shift(2,P.s.r),V.write_shift(2,P.e.c),V.write_shift(2,P.e.r),V}function l(P,V,H){var z=[{c:0,r:0},{t:"n",v:0},0,0];return H.qpro&&H.vers!=20768?(z[0].c=P.read_shift(1),z[3]=P.read_shift(1),z[0].r=P.read_shift(2),P.l+=2):(z[2]=P.read_shift(1),z[0].c=P.read_shift(2),z[0].r=P.read_shift(2)),z}function u(P,V,H){var z=P.l+V,ae=l(P,V,H);if(ae[1].t="s",H.vers==20768){P.l++;var pe=P.read_shift(1);return ae[1].v=P.read_shift(pe,"utf8"),ae}return H.qpro&&P.l++,ae[1].v=P.read_shift(z-P.l,"cstr"),ae}function c(P,V,H){var z=Ht(7+H.length);z.write_shift(1,255),z.write_shift(2,V),z.write_shift(2,P),z.write_shift(1,39);for(var ae=0;ae<z.length;++ae){var pe=H.charCodeAt(ae);z.write_shift(1,pe>=128?95:pe)}return z.write_shift(1,0),z}function h(P,V,H){var z=l(P,V,H);return z[1].v=P.read_shift(2,"i"),z}function d(P,V,H){var z=Ht(7);return z.write_shift(1,255),z.write_shift(2,V),z.write_shift(2,P),z.write_shift(2,H,"i"),z}function v(P,V,H){var z=l(P,V,H);return z[1].v=P.read_shift(8,"f"),z}function p(P,V,H){var z=Ht(13);return z.write_shift(1,255),z.write_shift(2,V),z.write_shift(2,P),z.write_shift(8,H,"f"),z}function g(P,V,H){var z=P.l+V,ae=l(P,V,H);if(ae[1].v=P.read_shift(8,"f"),H.qpro)P.l=z;else{var pe=P.read_shift(2);y(P.slice(P.l,P.l+pe),ae),P.l+=pe}return ae}function m(P,V,H){var z=V&32768;return V&=-32769,V=(z?P:0)+(V>=8192?V-16384:V),(z?"":"$")+(H?zt(V):Zt(V))}var x={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},_=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function y(P,V){Yt(P,0);for(var H=[],z=0,ae="",pe="",le="",ie="";P.l<P.length;){var ne=P[P.l++];switch(ne){case 0:H.push(P.read_shift(8,"f"));break;case 1:pe=m(V[0].c,P.read_shift(2),!0),ae=m(V[0].r,P.read_shift(2),!1),H.push(pe+ae);break;case 2:{var ue=m(V[0].c,P.read_shift(2),!0),w=m(V[0].r,P.read_shift(2),!1);pe=m(V[0].c,P.read_shift(2),!0),ae=m(V[0].r,P.read_shift(2),!1),H.push(ue+w+":"+pe+ae)}break;case 3:if(P.l<P.length){console.error("WK1 premature formula end");return}break;case 4:H.push("("+H.pop()+")");break;case 5:H.push(P.read_shift(2));break;case 6:{for(var N="";ne=P[P.l++];)N+=String.fromCharCode(ne);H.push('"'+N.replace(/"/g,'""')+'"')}break;case 8:H.push("-"+H.pop());break;case 23:H.push("+"+H.pop());break;case 22:H.push("NOT("+H.pop()+")");break;case 20:case 21:ie=H.pop(),le=H.pop(),H.push(["AND","OR"][ne-20]+"("+le+","+ie+")");break;default:if(ne<32&&_[ne])ie=H.pop(),le=H.pop(),H.push(le+_[ne]+ie);else if(x[ne]){if(z=x[ne][1],z==69&&(z=P[P.l++]),z>H.length){console.error("WK1 bad formula parse 0x"+ne.toString(16)+":|"+H.join("|")+"|");return}var W=H.slice(-z);H.length-=z,H.push(x[ne][0]+"("+W.join(",")+")")}else return ne<=7?console.error("WK1 invalid opcode "+ne.toString(16)):ne<=24?console.error("WK1 unsupported op "+ne.toString(16)):ne<=30?console.error("WK1 invalid opcode "+ne.toString(16)):ne<=115?console.error("WK1 unsupported function opcode "+ne.toString(16)):console.error("WK1 unrecognized opcode "+ne.toString(16))}}H.length==1?V[1].f=""+H[0]:console.error("WK1 bad formula parse |"+H.join("|")+"|")}function F(P){var V=[{c:0,r:0},{t:"n",v:0},0];return V[0].r=P.read_shift(2),V[3]=P[P.l++],V[0].c=P[P.l++],V}function k(P,V){var H=F(P);return H[1].t="s",H[1].v=P.read_shift(V-4,"cstr"),H}function E(P,V,H,z){var ae=Ht(6+z.length);ae.write_shift(2,P),ae.write_shift(1,H),ae.write_shift(1,V),ae.write_shift(1,39);for(var pe=0;pe<z.length;++pe){var le=z.charCodeAt(pe);ae.write_shift(1,le>=128?95:le)}return ae.write_shift(1,0),ae}function C(P,V){var H=F(P);H[1].v=P.read_shift(2);var z=H[1].v>>1;if(H[1].v&1)switch(z&7){case 0:z=(z>>3)*5e3;break;case 1:z=(z>>3)*500;break;case 2:z=(z>>3)/20;break;case 3:z=(z>>3)/200;break;case 4:z=(z>>3)/2e3;break;case 5:z=(z>>3)/2e4;break;case 6:z=(z>>3)/16;break;case 7:z=(z>>3)/64;break}return H[1].v=z,H}function T(P,V){var H=F(P),z=P.read_shift(4),ae=P.read_shift(4),pe=P.read_shift(2);if(pe==65535)return z===0&&ae===3221225472?(H[1].t="e",H[1].v=15):z===0&&ae===3489660928?(H[1].t="e",H[1].v=42):H[1].v=0,H;var le=pe&32768;return pe=(pe&32767)-16446,H[1].v=(1-le*2)*(ae*Math.pow(2,pe+32)+z*Math.pow(2,pe)),H}function b(P,V,H,z){var ae=Ht(14);if(ae.write_shift(2,P),ae.write_shift(1,H),ae.write_shift(1,V),z==0)return ae.write_shift(4,0),ae.write_shift(4,0),ae.write_shift(2,65535),ae;var pe=0,le=0,ie=0,ne=0;return z<0&&(pe=1,z=-z),le=Math.log2(z)|0,z/=Math.pow(2,le-31),ne=z>>>0,(ne&2147483648)==0&&(z/=2,++le,ne=z>>>0),z-=ne,ne|=2147483648,ne>>>=0,z*=Math.pow(2,32),ie=z>>>0,ae.write_shift(4,ie),ae.write_shift(4,ne),le+=16383+(pe?32768:0),ae.write_shift(2,le),ae}function M(P,V){var H=T(P);return P.l+=V-14,H}function R(P,V){var H=F(P),z=P.read_shift(4);return H[1].v=z>>6,H}function B(P,V){var H=F(P),z=P.read_shift(8,"f");return H[1].v=z,H}function G(P,V){var H=B(P);return P.l+=V-10,H}function re(P,V){return P[P.l+V-1]==0?P.read_shift(V,"cstr"):""}function j(P,V){var H=P[P.l++];H>V-1&&(H=V-1);for(var z="";z.length<H;)z+=String.fromCharCode(P[P.l++]);return z}function q(P,V,H){if(!(!H.qpro||V<21)){var z=P.read_shift(1);P.l+=17,P.l+=1,P.l+=2;var ae=P.read_shift(V-21,"cstr");return[z,ae]}}function ve(P,V){for(var H={},z=P.l+V;P.l<z;){var ae=P.read_shift(2);if(ae==14e3){for(H[ae]=[0,""],H[ae][0]=P.read_shift(2);P[P.l];)H[ae][1]+=String.fromCharCode(P[P.l]),P.l++;P.l++}}return H}function U(P,V){var H=Ht(5+P.length);H.write_shift(2,14e3),H.write_shift(2,V);for(var z=0;z<P.length;++z){var ae=P.charCodeAt(z);H[H.l++]=ae>127?95:ae}return H[H.l++]=0,H}var xe={0:{n:"BOF",f:Lt},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:re},222:{n:"SHEETNAMELP",f:j},65535:{n:""}},se={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:k},23:{n:"NUMBER17",f:T},24:{n:"NUMBER18",f:C},25:{n:"FORMULA19",f:M},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ve},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:R},38:{n:"??"},39:{n:"NUMBER27",f:B},40:{n:"FORMULA28",f:G},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:re},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:q},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:n,to_workbook:t}})();function zO(e){var t={},r=e.match(hr),a=0,n=!1;if(r)for(;a!=r.length;++a){var i=Le(r[a]);switch(i[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(i.val=="1")break;t.cp=i1[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=i.val;break;case"<sz":t.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if(i.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(i.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":i.rgb&&(t.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(i[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+i[0])}}return t}var WO=(function(){var e=cl("t"),t=cl("rPr");function r(i){var s=i.match(e);if(!s)return{t:"s",v:""};var o={t:"s",v:tt(s[1])},f=i.match(t);return f&&(o.s=zO(f[1])),o}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(s){return s.replace(a,"").split(n).map(r).filter(function(o){return o.v})}})(),GO=(function(){var t=/(\r\n|\n)/g;function r(n,i,s){var o=[];n.u&&o.push("text-decoration: underline;"),n.uval&&o.push("text-underline-style:"+n.uval+";"),n.sz&&o.push("font-size:"+n.sz+"pt;"),n.outline&&o.push("text-effect: outline;"),n.shadow&&o.push("text-shadow: auto;"),i.push('<span style="'+o.join("")+'">'),n.b&&(i.push("<b>"),s.push("</b>")),n.i&&(i.push("<i>"),s.push("</i>")),n.strike&&(i.push("<s>"),s.push("</s>"));var f=n.valign||"";return f=="superscript"||f=="super"?f="sup":f=="subscript"&&(f="sub"),f!=""&&(i.push("<"+f+">"),s.push("</"+f+">")),s.push("</span>"),n}function a(n){var i=[[],n.v,[]];return n.v?(n.s&&r(n.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"<br/>")+i[2].join("")):""}return function(i){return i.map(a).join("")}})(),$O=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,XO=/<(?:\w+:)?r>/,YO=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function T1(e,t){var r=t?t.cellHTML:!0,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=tt(_t(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=_t(e),r&&(a.h=h1(a.t))):e.match(XO)&&(a.r=_t(e),a.t=tt(_t((e.replace(YO,"").match($O)||[]).join("").replace(hr,""))),r&&(a.h=GO(WO(a.r)))),a):{t:""}}var KO=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,ZO=/<(?:\w+:)?(?:si|sstItem)>/g,jO=/<\/(?:\w+:)?(?:si|sstItem)>/;function qO(e,t){var r=[],a="";if(!e)return r;var n=e.match(KO);if(n){a=n[2].replace(ZO,"").split(jO);for(var i=0;i!=a.length;++i){var s=T1(a[i].trim(),t);s!=null&&(r[r.length]=s)}n=Le(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}function JO(e){return[e.read_shift(4),e.read_shift(4)]}function QO(e,t){var r=[],a=!1;return bn(e,function(i,s,o){switch(o){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(s.T,!a||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),r}function D3(e){for(var t=[],r=e.split(""),a=0;a<r.length;++a)t[a]=r[a].charCodeAt(0);return t}function _n(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function e9(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=_n(e,4),t.U=_n(e,4),t.W=_n(e,4),t}function t9(e){for(var t=e.read_shift(4),r=e.l+t-4,a={},n=e.read_shift(4),i=[];n-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return a}function r9(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(t9(e));return t}function a9(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function n9(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=_n(e,4),t.U=_n(e,4),t.W=_n(e,4),t}function i9(e){var t=n9(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function k3(e,t){var r=e.l+t,a={};a.Flags=e.read_shift(4)&63,e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,a}function b3(e,t){var r={},a=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,a),e.l=a,r}function s9(e){var t=_n(e);switch(t.Minor){case 2:return[t.Minor,o9(e)];case 3:return[t.Minor,f9()];case 4:return[t.Minor,l9(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function o9(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),a=k3(e,r),n=b3(e,e.length-e.l);return{t:"Std",h:a,v:n}}function f9(){throw new Error("File is password-protected: ECMA-376 Extensible")}function l9(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),a={};return r.replace(hr,function(i){var s=Le(i);switch(tn(s[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(o){a[o]=s[o]});break;case"<dataIntegrity":a.encryptedHmacKey=s.encryptedHmacKey,a.encryptedHmacValue=s.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=s.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(s);break;default:throw s[0]}}),a}function u9(e,t){var r={},a=r.EncryptionVersionInfo=_n(e,4);if(t-=4,a.Minor!=2)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);r.Flags=e.read_shift(4),t-=4;var n=e.read_shift(4);return t-=4,r.EncryptionHeader=k3(e,n),t-=n,r.EncryptionVerifier=b3(e,t),r}function c9(e){var t={},r=t.EncryptionVersionInfo=_n(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function h9(e){var t=0,r,a=D3(e),n=a.length+1,i,s,o,f,l;for(r=oi(n),r[0]=a.length,i=1;i!=n;++i)r[i]=a[i-1];for(i=n-1;i>=0;--i)s=r[i],o=(t&16384)===0?0:1,f=t<<1&32767,l=o|f,t=l^s;return t^52811}var F3=(function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(s){return(s/2|s*128)&255},n=function(s,o){return a(s^o)},i=function(s){for(var o=t[s.length-1],f=104,l=s.length-1;l>=0;--l)for(var u=s[l],c=0;c!=7;++c)u&64&&(o^=r[f]),u*=2,--f;return o};return function(s){for(var o=D3(s),f=i(o),l=o.length,u=oi(16),c=0;c!=16;++c)u[c]=0;var h,d,v;for((l&1)===1&&(h=f>>8,u[l]=n(e[0],h),--l,h=f&255,d=o[o.length-1],u[l]=n(d,h));l>0;)--l,h=f>>8,u[l]=n(o[l],h),--l,h=f&255,u[l]=n(o[l],h);for(l=15,v=15-o.length;v>0;)h=f>>8,u[l]=n(e[v],h),--l,--v,h=f&255,u[l]=n(o[l],h),--l,--v;return u}})(),d9=function(e,t,r,a,n){n||(n=t),a||(a=F3(e));var i,s;for(i=0;i!=t.length;++i)s=t[i],s^=a[r],s=(s>>5|s<<3)&255,n[i]=s,++r;return[n,r,a]},v9=function(e){var t=0,r=F3(e);return function(a){var n=d9("",a,t,r);return t=n[1],n[0]}};function p9(e,t,r,a){var n={key:Lt(e),verificationBytes:Lt(e)};return r.password&&(n.verifier=h9(r.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=v9(r.password)),n}function g9(e,t,r){var a=r||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=c9(e):a.Data=u9(e,t),a}function m9(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?g9(e,t-2,a):p9(e,r.biff>=8?t:t-2,r,a),a}var x9=(function(){function e(n,i){switch(i.type){case"base64":return t(Kr(n),i);case"binary":return t(n,i);case"buffer":return t(Ze&&Buffer.isBuffer(n)?n.toString("binary"):vs(n),i);case"array":return t(us(n),i)}throw new Error("Unrecognized type "+i.type)}function t(n,i){var s=i||{},o=s.dense?[]:{},f=n.match(/\\trowd.*?\\row\b/g);if(!f.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(u,c){Array.isArray(o)&&(o[c]=[]);for(var h=/\\\w+\b/g,d=0,v,p=-1;v=h.exec(u);){switch(v[0]){case"\\cell":var g=u.slice(d,h.lastIndex-v[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var m={v:g,t:"s"};Array.isArray(o)?o[c][p]=m:o[Ue({r:c,c:p})]=m}break}d=h.lastIndex}p>l.e.c&&(l.e.c=p)}),o["!ref"]=Je(l),o}function r(n,i){return ui(e(n,i),i)}function a(n){for(var i=["{\\rtf1\\ansi"],s=kt(n["!ref"]),o,f=Array.isArray(n),l=s.s.r;l<=s.e.r;++l){i.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)i.push("\\cellx"+(u+1));for(i.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var c=Ue({r:l,c:u});o=f?(n[l]||[])[u]:n[c],!(!o||o.v==null&&(!o.f||o.F))&&(i.push(" "+(o.w||(En(o),o.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:a}})();function _9(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function vl(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function y9(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.max(t,r,a),i=Math.min(t,r,a),s=n-i;if(s===0)return[0,0,t];var o=0,f=0,l=n+i;switch(f=s/(l>1?2-l:l),n){case t:o=((r-a)/s+6)%6;break;case r:o=(a-t)/s+2;break;case a:o=(t-r)/s+4;break}return[o/6,f,l/2]}function w9(e){var t=e[0],r=e[1],a=e[2],n=r*2*(a<.5?a:1-a),i=a-n/2,s=[i,i,i],o=6*t,f;if(r!==0)switch(o|0){case 0:case 6:f=n*o,s[0]+=n,s[1]+=f;break;case 1:f=n*(2-o),s[0]+=f,s[1]+=n;break;case 2:f=n*(o-2),s[1]+=n,s[2]+=f;break;case 3:f=n*(4-o),s[1]+=f,s[2]+=n;break;case 4:f=n*(o-4),s[2]+=n,s[0]+=f;break;case 5:f=n*(6-o),s[2]+=f,s[0]+=n;break}for(var l=0;l!=3;++l)s[l]=Math.round(s[l]*255);return s}function Uu(e,t){if(t===0)return e;var r=y9(_9(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),vl(w9(r))}var I3=6,T9=15,S9=1,yr=I3;function Hu(e){return Math.floor((e+Math.round(128/yr)/256)*yr)}function Vu(e){return Math.floor((e-5)/yr*100+.5)/100}function bv(e){return Math.round((e*yr+5)/yr*256)/256}function od(e){return bv(Vu(Hu(e)))}function S1(e){var t=Math.abs(e-od(e)),r=yr;if(t>.005)for(yr=S9;yr<T9;++yr)Math.abs(e-od(e))<=t&&(t=Math.abs(e-od(e)),r=yr);yr=r}function mo(e){e.width?(e.wpx=Hu(e.width),e.wch=Vu(e.wpx),e.MDW=yr):e.wpx?(e.wch=Vu(e.wpx),e.width=bv(e.wch),e.MDW=yr):typeof e.wch=="number"&&(e.width=bv(e.wch),e.wpx=Hu(e.width),e.MDW=yr),e.customWidth&&delete e.customWidth}var E9=96,M3=E9;function R3(e){return e*96/M3}function pl(e){return e*M3/96}var C9={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function A9(e,t,r,a){t.Borders=[];var n={},i=!1;(e[0].match(hr)||[]).forEach(function(s){var o=Le(s);switch(tn(o[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":n={},o.diagonalUp&&(n.diagonalUp=Tt(o.diagonalUp)),o.diagonalDown&&(n.diagonalDown=Tt(o.diagonalDown)),t.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+o[0]+" in borders")}})}function D9(e,t,r,a){t.Fills=[];var n={},i=!1;(e[0].match(hr)||[]).forEach(function(s){var o=Le(s);switch(tn(o[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":n={},t.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(n),n={};break;case"<patternFill":case"<patternFill>":o.patternType&&(n.patternType=o.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":n.bgColor||(n.bgColor={}),o.indexed&&(n.bgColor.indexed=parseInt(o.indexed,10)),o.theme&&(n.bgColor.theme=parseInt(o.theme,10)),o.tint&&(n.bgColor.tint=parseFloat(o.tint)),o.rgb&&(n.bgColor.rgb=o.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":n.fgColor||(n.fgColor={}),o.theme&&(n.fgColor.theme=parseInt(o.theme,10)),o.tint&&(n.fgColor.tint=parseFloat(o.tint)),o.rgb!=null&&(n.fgColor.rgb=o.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fills")}})}function k9(e,t,r,a){t.Fonts=[];var n={},i=!1;(e[0].match(hr)||[]).forEach(function(s){var o=Le(s);switch(tn(o[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(n),n={};break;case"<name":o.val&&(n.name=_t(o.val));break;case"<name/>":case"</name>":break;case"<b":n.bold=o.val?Tt(o.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=o.val?Tt(o.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(o.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=o.val?Tt(o.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=o.val?Tt(o.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=o.val?Tt(o.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=o.val?Tt(o.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=o.val?Tt(o.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":o.val&&(n.sz=+o.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":o.val&&(n.vertAlign=o.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":o.val&&(n.family=parseInt(o.val,10));break;case"<family/>":case"</family>":break;case"<scheme":o.val&&(n.scheme=o.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(o.val=="1")break;o.codepage=i1[parseInt(o.val,10)];break;case"<color":if(n.color||(n.color={}),o.auto&&(n.color.auto=Tt(o.auto)),o.rgb)n.color.rgb=o.rgb.slice(-6);else if(o.indexed){n.color.index=parseInt(o.indexed,10);var f=is[n.color.index];n.color.index==81&&(f=is[1]),f||(f=is[1]),n.color.rgb=f[0].toString(16)+f[1].toString(16)+f[2].toString(16)}else o.theme&&(n.color.theme=parseInt(o.theme,10),o.tint&&(n.color.tint=parseFloat(o.tint)),o.theme&&r.themeElements&&r.themeElements.clrScheme&&(n.color.rgb=Uu(r.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fonts")}})}function b9(e,t,r){t.NumberFmt=[];for(var a=Ja(We),n=0;n<a.length;++n)t.NumberFmt[a[n]]=We[a[n]];var i=e[0].match(hr);if(i)for(n=0;n<i.length;++n){var s=Le(i[n]);switch(tn(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var o=tt(_t(s.formatCode)),f=parseInt(s.numFmtId,10);if(t.NumberFmt[f]=o,f>0){if(f>392){for(f=392;f>60&&t.NumberFmt[f]!=null;--f);t.NumberFmt[f]=o}ns(o,f)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}var D0=["numFmtId","fillId","fontId","borderId","xfId"],k0=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function F9(e,t,r){t.CellXf=[];var a,n=!1;(e[0].match(hr)||[]).forEach(function(i){var s=Le(i),o=0;switch(tn(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(a=s,delete a[0],o=0;o<D0.length;++o)a[D0[o]]&&(a[D0[o]]=parseInt(a[D0[o]],10));for(o=0;o<k0.length;++o)a[k0[o]]&&(a[k0[o]]=Tt(a[k0[o]]));if(t.NumberFmt&&a.numFmtId>392){for(o=392;o>60;--o)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[o]){a.numFmtId=o;break}}t.CellXf.push(a);break;case"</xf>":break;case"<alignment":case"<alignment/>":var f={};s.vertical&&(f.vertical=s.vertical),s.horizontal&&(f.horizontal=s.horizontal),s.textRotation!=null&&(f.textRotation=s.textRotation),s.indent&&(f.indent=s.indent),s.wrapText&&(f.wrapText=Tt(s.wrapText)),a.alignment=f;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":n=!0;break;case"</AlternateContent>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}var I9=(function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,a=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,f,l){var u={};if(!o)return u;o=o.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var c;return(c=o.match(t))&&b9(c,u,l),(c=o.match(n))&&k9(c,u,f,l),(c=o.match(a))&&D9(c,u,f,l),(c=o.match(i))&&A9(c,u,f,l),(c=o.match(r))&&F9(c,u,l),u}})();function M9(e,t){var r=e.read_shift(2),a=ur(e);return[r,a]}function R9(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=W7(e);n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1);var i=e.read_shift(2);switch(i===700&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(a.underline=s);var o=e.read_shift(1);o>0&&(a.family=o);var f=e.read_shift(1);switch(f>0&&(a.charset=f),e.l++,a.color=z7(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=ur(e),a}var P9=cr;function L9(e,t){var r=e.l+t,a=e.read_shift(2),n=e.read_shift(2);return e.l=r,{ixfe:a,numFmtId:n}}var O9=cr;function B9(e,t,r){var a={};a.NumberFmt=[];for(var n in We)a.NumberFmt[n]=We[n];a.CellXf=[],a.Fonts=[];var i=[],s=!1;return bn(e,function(f,l,u){switch(u){case 44:a.NumberFmt[f[0]]=f[1],ns(f[1],f[0]);break;case 43:a.Fonts.push(f),f.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(f.color.rgb=Uu(t.themeElements.clrScheme[f.color.theme].rgb,f.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&a.CellXf.push(f);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:i.push(u),s=!0;break;case 38:i.pop(),s=!1;break;default:if(l.T>0)i.push(u);else if(l.T<0)i.pop();else if(!s||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+u.toString(16))}}),a}var N9=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function U9(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(hr)||[]).forEach(function(n){var i=Le(n);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=i.val;break;case"<a:sysClr":a.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[N9.indexOf(i[0])]=a,a={}):a.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function H9(){}function V9(){}var z9=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,W9=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,G9=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function $9(e,t,r){t.themeElements={};var a;[["clrScheme",z9,U9],["fontScheme",W9,H9],["fmtScheme",G9,V9]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)})}var X9=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function P3(e,t){(!e||e.length===0)&&(e=Y9());var r,a={};if(!(r=e.match(X9)))throw new Error("themeElements not found in theme");return $9(r[0],a,t),a.raw=e,a}function Y9(e,t){var r=[$4];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface=" Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface=" Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function K9(e,t,r){var a=e.l+t,n=e.read_shift(4);if(n!==124226){if(!r.cellStyles){e.l=a;return}var i=e.slice(e.l);e.l=a;var s;try{s=G4(i,{type:"array"})}catch{return}var o=Wr(s,"theme/theme/theme1.xml",!0);if(o)return P3(o,r)}}function Z9(e){return e.read_shift(4)}function j9(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=q9(e,4);break;case 2:t.xclrValue=y3(e);break;case 3:t.xclrValue=Z9(e);break;case 4:e.l+=4;break}return e.l+=8,t}function q9(e,t){return cr(e,t)}function J9(e,t){return cr(e,t)}function Q9(e){var t=e.read_shift(2),r=e.read_shift(2)-4,a=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=j9(e);break;case 6:a[1]=J9(e,r);break;case 14:case 15:a[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return a}function eB(e,t){var r=e.l+t;e.l+=2;var a=e.read_shift(2);e.l+=2;for(var n=e.read_shift(2),i=[];n-- >0;)i.push(Q9(e,r-e.l));return{ixfe:a,ext:i}}function tB(e,t){t.forEach(function(r){r[0]})}function rB(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ur(e)}}function aB(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function nB(e){return e.l+=4,e.read_shift(4)!=0}function iB(e,t,r){var a={Types:[],Cell:[],Value:[]},n=r||{},i=[],s=!1,o=2;return bn(e,function(f,l,u){switch(u){case 335:a.Types.push({name:f.name});break;case 51:f.forEach(function(c){o==1?a.Cell.push({type:a.Types[c[0]-1].name,index:c[1]}):o==0&&a.Value.push({type:a.Types[c[0]-1].name,index:c[1]})});break;case 337:o=f?1:0;break;case 338:o=2;break;case 35:i.push(u),s=!0;break;case 36:i.pop(),s=!1;break;default:if(!l.T){if(!s||n.WTF&&i[i.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}}),a}function sB(e,t,r){var a={Types:[],Cell:[],Value:[]};if(!e)return a;var n=!1,i=2,s;return e.replace(hr,function(o){var f=Le(o);switch(tn(f[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":a.Types.push({name:f.name});break;case"</metadataType>":break;case"<futureMetadata":for(var l=0;l<a.Types.length;++l)a.Types[l].name==f.name&&(s=a.Types[l]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":i==1?a.Cell.push({type:a.Types[f.t-1].name,index:+f.v}):i==0&&a.Value.push({type:a.Types[f.t-1].name,index:+f.v});break;case"</rc>":break;case"<cellMetadata":i=1;break;case"</cellMetadata>":i=2;break;case"<valueMetadata":i=0;break;case"</valueMetadata>":i=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<rvb":if(!s)break;s.offsets||(s.offsets=[]),s.offsets.push(+f.i);break;default:if(!n&&r.WTF)throw new Error("unrecognized "+f[0]+" in metadata")}return o}),a}function oB(e){var t=[];if(!e)return t;var r=1;return(e.match(hr)||[]).forEach(function(a){var n=Le(a);switch(n[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?r=n.i:n.i=r,t.push(n);break}}),t}function fB(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=Ue(r);var a=e.read_shift(1);return a&2&&(t.l="1"),a&8&&(t.a="1"),t}function lB(e,t,r){var a=[];return bn(e,function(i,s,o){switch(o){case 63:a.push(i);break;default:if(!s.T)throw new Error("Unexpected record 0x"+o.toString(16))}}),a}function uB(e,t,r,a){if(!e)return e;var n=a||{},i=!1;bn(e,function(o,f,l){switch(l){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(!f.T){if(!i||n.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}},n)}function cB(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}function __(e,t,r,a){var n=Array.isArray(e),i;t.forEach(function(s){var o=Tr(s.ref);if(n?(e[o.r]||(e[o.r]=[]),i=e[o.r][o.c]):i=e[s.ref],!i){i={t:"z"},n?e[o.r][o.c]=i:e[s.ref]=i;var f=kt(e["!ref"]||"BDWGO1000001:A1");f.s.r>o.r&&(f.s.r=o.r),f.e.r<o.r&&(f.e.r=o.r),f.s.c>o.c&&(f.s.c=o.c),f.e.c<o.c&&(f.e.c=o.c);var l=Je(f);l!==e["!ref"]&&(e["!ref"]=l)}i.c||(i.c=[]);var u={a:s.author,t:s.t,r:s.r,T:r};s.h&&(u.h=s.h);for(var c=i.c.length-1;c>=0;--c){if(!r&&i.c[c].T)return;r&&!i.c[c].T&&i.c.splice(c,1)}if(r&&a){for(c=0;c<a.length;++c)if(u.a==a[c].id){u.a=a[c].name||u.a;break}}i.c.push(u)})}function hB(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?author[^>]*>(.*)/);o&&r.push(o[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?comment[^>]*>/);if(o){var f=Le(o[0]),l={author:f.authorId&&r[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},u=Tr(f.ref);if(!(t.sheetRows&&t.sheetRows<=u.r)){var c=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),h=!!c&&!!c[1]&&T1(c[1])||{r:"",t:"",h:""};l.r=h.r,h.r=="<t></t>"&&(h.t=h.h=""),l.t=(h.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),t.cellHTML&&(l.h=h.h),a.push(l)}}}}),a}function dB(e,t){var r=[],a=!1,n={},i=0;return e.replace(hr,function(o,f){var l=Le(o);switch(tn(l[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":n={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":n.t!=null&&r.push(n);break;case"<text>":case"<text":i=f+o.length;break;case"</text>":n.t=e.slice(i,f).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":a=!0;break;case"</mentions>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return o}),r}function vB(e,t){var r=[],a=!1;return e.replace(hr,function(i){var s=Le(i);switch(tn(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function pB(e){var t={};t.iauthor=e.read_shift(4);var r=gs(e);return t.rfx=r.s,t.ref=Ue(r.s),e.l+=16,t}var gB=ur;function mB(e,t){var r=[],a=[],n={},i=!1;return bn(e,function(o,f,l){switch(l){case 632:a.push(o);break;case 635:n=o;break;case 637:n.t=o.t,n.h=o.h,n.r=o.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!f.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}),r}var xB="application/vnd.ms-office.vbaProject";function _B(e){var t=qe.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,a){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");qe.utils.cfb_add(t,n,e.FileIndex[a].content)}}),qe.write(t)}function yB(){return{"!type":"dialog"}}function wB(){return{"!type":"dialog"}}function TB(){return{"!type":"macro"}}function SB(){return{"!type":"macro"}}var uo=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(a,n,i,s){var o=!1,f=!1;i.length==0?f=!0:i.charAt(0)=="["&&(f=!0,i=i.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return o?u+=t.c:--u,f?l+=t.r:--l,n+(o?"":"$")+zt(u)+(f?"":"$")+Zt(l)}return function(n,i){return t=i,n.replace(e,r)}})(),L3=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,EB=(function(){return function(t,r){return t.replace(L3,function(a,n,i,s,o,f){var l=g1(s)-(i?0:r.c),u=p1(f)-(o?0:r.r),c=u==0?"":o?u+1:"["+u+"]",h=l==0?"":i?l+1:"["+l+"]";return n+"R"+c+"C"+h})}})();function O3(e,t){return e.replace(L3,function(r,a,n,i,s,o){return a+(n=="$"?n+i:zt(g1(i)+t.c))+(s=="$"?s+o:Zt(p1(o)+t.r))})}function CB(e,t,r){var a=Co(t),n=a.s,i=Tr(r),s={r:i.r-n.r,c:i.c-n.c};return O3(e,s)}function AB(e){return e.length!=1}function y_(e){return e.replace(/_xlfn\./g,"")}function Rt(e){e.l+=1}function fi(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function B3(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return N3(e);r.biff==12&&(a=4)}var n=e.read_shift(a),i=e.read_shift(a),s=fi(e),o=fi(e);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function N3(e){var t=fi(e),r=fi(e),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function DB(e,t,r){if(r.biff<8)return N3(e);var a=e.read_shift(r.biff==12?4:2),n=e.read_shift(r.biff==12?4:2),i=fi(e),s=fi(e);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:s[0],cRel:s[1],rRel:s[2]}}}function U3(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return kB(e);var a=e.read_shift(r&&r.biff==12?4:2),n=fi(e);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function kB(e){var t=fi(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function bB(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function FB(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return IB(e);var n=e.read_shift(a>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,o=(i&32768)>>15;if(i&=16383,o==1)for(;n>524287;)n-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:n,c:i,cRel:s,rRel:o}}function IB(e){var t=e.read_shift(2),r=e.read_shift(1),a=(t&32768)>>15,n=(t&16384)>>14;return t&=16383,a==1&&t>=8192&&(t=t-16384),n==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:n,rRel:a}}function MB(e,t,r){var a=(e[e.l++]&96)>>5,n=B3(e,r.biff>=2&&r.biff<=5?6:8,r);return[a,n]}function RB(e,t,r){var a=(e[e.l++]&96)>>5,n=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=B3(e,i,r);return[a,n,s]}function PB(e,t,r){var a=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[a]}function LB(e,t,r){var a=(e[e.l++]&96)>>5,n=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[a,n]}function OB(e,t,r){var a=(e[e.l++]&96)>>5,n=DB(e,t-1,r);return[a,n]}function BB(e,t,r){var a=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[a]}function w_(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function NB(e,t,r){e.l+=2;for(var a=e.read_shift(r&&r.biff==2?1:2),n=[],i=0;i<=a;++i)n.push(e.read_shift(r&&r.biff==2?1:2));return n}function UB(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(r&&r.biff==2?1:2)]}function HB(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(r&&r.biff==2?1:2)]}function VB(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function zB(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[a]}function H3(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function WB(e){return e.read_shift(2),H3(e)}function GB(e){return e.read_shift(2),H3(e)}function $B(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=U3(e,0,r);return[a,n]}function XB(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=FB(e,0,r);return[a,n]}function YB(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=U3(e,0,r);return[a,n,i]}function KB(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=e.read_shift(r&&r.biff<=3?1:2);return[ZN[n],W3[n],a]}function ZB(e,t,r){var a=e[e.l++],n=e.read_shift(1),i=r&&r.biff<=3?[a==88?-1:0,e.read_shift(1)]:jB(e);return[n,(i[0]===0?W3:KN)[i[1]]]}function jB(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function qB(e,t,r){e.l+=r&&r.biff==2?3:4}function JB(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var a=e.read_shift(2),n=e.read_shift(r&&r.biff==2?1:2);return[a,n]}function QB(e){return e.l++,ms[e.read_shift(1)]}function eN(e){return e.l++,e.read_shift(2)}function tN(e){return e.l++,e.read_shift(1)!==0}function rN(e){return e.l++,sr(e)}function aN(e,t,r){return e.l++,bl(e,t-1,r)}function nN(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=bt(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=ms[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=sr(e);break;case 2:r[1]=xs(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function iN(e,t,r){for(var a=e.read_shift(r.biff==12?4:2),n=[],i=0;i!=a;++i)n.push((r.biff==12?gs:wc)(e));return n}function sN(e,t,r){var a=0,n=0;r.biff==12?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--a,--n==0&&(n=256));for(var i=0,s=[];i!=a&&(s[i]=[]);++i)for(var o=0;o!=n;++o)s[i][o]=nN(e,r.biff);return s}function oN(e,t,r){var a=e.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,i=e.read_shift(n);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[a,0,i]}function fN(e,t,r){if(r.biff==5)return lN(e);var a=e.read_shift(1)>>>5&3,n=e.read_shift(2),i=e.read_shift(4);return[a,n,i]}function lN(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,r,a]}function uN(e,t,r){var a=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var n=e.read_shift(r&&r.biff==2?1:2);return[a,n]}function cN(e,t,r){var a=e.read_shift(1)>>>5&3,n=e.read_shift(r&&r.biff==2?1:2);return[a,n]}function hN(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[a]}function dN(e,t,r){var a=(e[e.l++]&96)>>5,n=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[a,n]}var vN=cr,pN=cr,gN=cr;function Il(e,t,r){return e.l+=2,[bB(e)]}function E1(e){return e.l+=6,[]}var mN=Il,xN=E1,_N=E1,yN=Il;function V3(e){return e.l+=2,[Lt(e),e.read_shift(2)&1]}var wN=Il,TN=V3,SN=E1,EN=Il,CN=Il,AN=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function DN(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),i=e.read_shift(2),s=AN[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:a,c:n,C:i}}function kN(e){return e.l+=2,[e.read_shift(4)]}function bN(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function FN(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function IN(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function MN(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function RN(e){return e.l+=4,[0,0]}var T_={1:{n:"PtgExp",f:JB},2:{n:"PtgTbl",f:gN},3:{n:"PtgAdd",f:Rt},4:{n:"PtgSub",f:Rt},5:{n:"PtgMul",f:Rt},6:{n:"PtgDiv",f:Rt},7:{n:"PtgPower",f:Rt},8:{n:"PtgConcat",f:Rt},9:{n:"PtgLt",f:Rt},10:{n:"PtgLe",f:Rt},11:{n:"PtgEq",f:Rt},12:{n:"PtgGe",f:Rt},13:{n:"PtgGt",f:Rt},14:{n:"PtgNe",f:Rt},15:{n:"PtgIsect",f:Rt},16:{n:"PtgUnion",f:Rt},17:{n:"PtgRange",f:Rt},18:{n:"PtgUplus",f:Rt},19:{n:"PtgUminus",f:Rt},20:{n:"PtgPercent",f:Rt},21:{n:"PtgParen",f:Rt},22:{n:"PtgMissArg",f:Rt},23:{n:"PtgStr",f:aN},26:{n:"PtgSheet",f:bN},27:{n:"PtgEndSheet",f:FN},28:{n:"PtgErr",f:QB},29:{n:"PtgBool",f:tN},30:{n:"PtgInt",f:eN},31:{n:"PtgNum",f:rN},32:{n:"PtgArray",f:BB},33:{n:"PtgFunc",f:KB},34:{n:"PtgFuncVar",f:ZB},35:{n:"PtgName",f:oN},36:{n:"PtgRef",f:$B},37:{n:"PtgArea",f:MB},38:{n:"PtgMemArea",f:uN},39:{n:"PtgMemErr",f:vN},40:{n:"PtgMemNoMem",f:pN},41:{n:"PtgMemFunc",f:cN},42:{n:"PtgRefErr",f:hN},43:{n:"PtgAreaErr",f:PB},44:{n:"PtgRefN",f:XB},45:{n:"PtgAreaN",f:OB},46:{n:"PtgMemAreaN",f:IN},47:{n:"PtgMemNoMemN",f:MN},57:{n:"PtgNameX",f:fN},58:{n:"PtgRef3d",f:YB},59:{n:"PtgArea3d",f:RB},60:{n:"PtgRefErr3d",f:dN},61:{n:"PtgAreaErr3d",f:LB},255:{}},PN={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},LN={1:{n:"PtgElfLel",f:V3},2:{n:"PtgElfRw",f:EN},3:{n:"PtgElfCol",f:mN},6:{n:"PtgElfRwV",f:CN},7:{n:"PtgElfColV",f:yN},10:{n:"PtgElfRadical",f:wN},11:{n:"PtgElfRadicalS",f:SN},13:{n:"PtgElfColS",f:xN},15:{n:"PtgElfColSV",f:_N},16:{n:"PtgElfRadicalLel",f:TN},25:{n:"PtgList",f:DN},29:{n:"PtgSxName",f:kN},255:{}},ON={0:{n:"PtgAttrNoop",f:RN},1:{n:"PtgAttrSemi",f:zB},2:{n:"PtgAttrIf",f:HB},4:{n:"PtgAttrChoose",f:NB},8:{n:"PtgAttrGoto",f:UB},16:{n:"PtgAttrSum",f:qB},32:{n:"PtgAttrBaxcel",f:w_},33:{n:"PtgAttrBaxcel",f:w_},64:{n:"PtgAttrSpace",f:WB},65:{n:"PtgAttrSpaceSemi",f:GB},128:{n:"PtgAttrIfError",f:VB},255:{}};function Ml(e,t,r,a){if(a.biff<8)return cr(e,t);for(var n=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=sN(e,0,a),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=iN(e,r[s][1],a),i.push(r[s][2]);break;case"PtgExp":a&&a.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=n-e.l,t!==0&&i.push(cr(e,t)),i}function Rl(e,t,r){for(var a=e.l+t,n,i,s=[];a!=e.l;)t=a-e.l,i=e[e.l],n=T_[i]||T_[PN[i]],(i===24||i===25)&&(n=(i===24?LN:ON)[e[e.l+1]]),!n||!n.f?cr(e,t):s.push([n.n,n.f(e,t,r)]);return s}function BN(e){for(var t=[],r=0;r<e.length;++r){for(var a=e[r],n=[],i=0;i<a.length;++i){var s=a[i];s?s[0]===2?n.push('"'+s[1].replace(/"/g,'""')+'"'):n.push(s[1]):n.push("")}t.push(n.join(","))}return t.join(";")}var NN={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function UN(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function z3(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var n="";if(r.biff>8)switch(e[a[0]][0]){case 357:return n=a[1]==-1?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[a[0]][0];default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[a[0]][0][3]?(n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function S_(e,t,r){var a=z3(e,t,r);return a=="#REF"?a:UN(a,r)}function nr(e,t,r,a,n){var i=n&&n.biff||8,s={s:{c:0,r:0}},o=[],f,l,u,c=0,h=0,d,v="";if(!e[0]||!e[0][0])return"";for(var p=-1,g="",m=0,x=e[0].length;m<x;++m){var _=e[0][m];switch(_[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(f=o.pop(),l=o.pop(),p>=0){switch(e[0][p][1][0]){case 0:g=At(" ",e[0][p][1][1]);break;case 1:g=At("\r",e[0][p][1][1]);break;default:if(g="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}l=l+g,p=-1}o.push(l+NN[_[0]]+f);break;case"PtgIsect":f=o.pop(),l=o.pop(),o.push(l+" "+f);break;case"PtgUnion":f=o.pop(),l=o.pop(),o.push(l+","+f);break;case"PtgRange":f=o.pop(),l=o.pop(),o.push(l+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Mf(_[1][1],s,n),o.push(Rf(u,i));break;case"PtgRefN":u=r?Mf(_[1][1],r,n):_[1][1],o.push(Rf(u,i));break;case"PtgRef3d":c=_[1][1],u=Mf(_[1][2],s,n),v=S_(a,c,n),o.push(v+"!"+Rf(u,i));break;case"PtgFunc":case"PtgFuncVar":var y=_[1][0],F=_[1][1];y||(y=0),y&=127;var k=y==0?[]:o.slice(-y);o.length-=y,F==="User"&&(F=k.shift()),o.push(F+"("+k.join(",")+")");break;case"PtgBool":o.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(_[1]);break;case"PtgNum":o.push(String(_[1]));break;case"PtgStr":o.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(_[1]);break;case"PtgAreaN":d=a_(_[1][1],r?{s:r}:s,n),o.push(id(d,n));break;case"PtgArea":d=a_(_[1][1],s,n),o.push(id(d,n));break;case"PtgArea3d":c=_[1][1],d=_[1][2],v=S_(a,c,n),o.push(v+"!"+id(d,n));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=_[1][2];var E=(a.names||[])[h-1]||(a[0]||[])[h],C=E?E.Name:"SH33TJSNAME"+String(h);C&&C.slice(0,6)=="_xlfn."&&!n.xlfn&&(C=C.slice(6)),o.push(C);break;case"PtgNameX":var T=_[1][1];h=_[1][2];var b;if(n.biff<=5)T<0&&(T=-T),a[T]&&(b=a[T][h]);else{var M="";if(((a[T]||[])[0]||[])[0]==14849||(((a[T]||[])[0]||[])[0]==1025?a[T][h]&&a[T][h].itab>0&&(M=a.SheetNames[a[T][h].itab-1]+"!"):M=a.SheetNames[h-1]+"!"),a[T]&&a[T][h])M+=a[T][h].Name;else if(a[0]&&a[0][h])M+=a[0][h].Name;else{var R=(z3(a,T,n)||"").split(";;");R[h-1]?M=R[h-1]:M+="SH33TJSERRX"}o.push(M);break}b||(b={Name:"SH33TJSERRY"}),o.push(b.Name);break;case"PtgParen":var B="(",G=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:B=At(" ",e[0][p][1][1])+B;break;case 3:B=At("\r",e[0][p][1][1])+B;break;case 4:G=At(" ",e[0][p][1][1])+G;break;case 5:G=At("\r",e[0][p][1][1])+G;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}o.push(B+o.pop()+G);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":u={c:_[1][1],r:_[1][0]};var re={c:r.c,r:r.r};if(a.sharedf[Ue(u)]){var j=a.sharedf[Ue(u)];o.push(nr(j,s,re,a,n))}else{var q=!1;for(f=0;f!=a.arrayf.length;++f)if(l=a.arrayf[f],!(u.c<l[0].s.c||u.c>l[0].e.c)&&!(u.r<l[0].s.r||u.r>l[0].e.r)){o.push(nr(l[1],s,re,a,n)),q=!0;break}q||o.push(_[1])}break;case"PtgArray":o.push("{"+BN(_[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var ve=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&p>=0&&ve.indexOf(e[0][m][0])==-1){_=e[0][p];var U=!0;switch(_[1][0]){case 4:U=!1;case 0:g=At(" ",_[1][1]);break;case 5:U=!1;case 1:g=At("\r",_[1][1]);break;default:if(g="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}o.push((U?g:"")+o.pop()+(U?"":g)),p=-1}}if(o.length>1&&n.WTF)throw new Error("bad formula stack");return o[0]}function HN(e,t,r){var a=e.l+t,n=r.biff==2?1:2,i,s=e.read_shift(n);if(s==65535)return[[],cr(e,t-2)];var o=Rl(e,s,r);return t!==s+n&&(i=Ml(e,t-s-n,o,r)),e.l=a,[o,i]}function VN(e,t,r){var a=e.l+t,n=r.biff==2?1:2,i,s=e.read_shift(n);if(s==65535)return[[],cr(e,t-2)];var o=Rl(e,s,r);return t!==s+n&&(i=Ml(e,t-s-n,o,r)),e.l=a,[o,i]}function zN(e,t,r,a){var n=e.l+t,i=Rl(e,a,r),s;return n!==e.l&&(s=Ml(e,n-e.l,i,r)),[i,s]}function WN(e,t,r){var a=e.l+t,n,i=e.read_shift(2),s=Rl(e,i,r);return i==65535?[[],cr(e,t-2)]:(t!==i+2&&(n=Ml(e,a-i-2,s,r)),[s,n])}function GN(e){var t;if(pn(e,e.l+6)!==65535)return[sr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function fd(e,t,r){var a=e.l+t,n=rn(e);r.biff==2&&++e.l;var i=GN(e),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=VN(e,a-e.l,r);return{cell:n,val:i[0],formula:o,shared:s>>3&1,tt:i[1]}}function Tc(e,t,r){var a=e.read_shift(4),n=Rl(e,a,r),i=e.read_shift(4),s=i>0?Ml(e,i,n,r):null;return[n,s]}var $N=Tc,Sc=Tc,XN=Tc,YN=Tc,KN={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},W3={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},ZN={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function E_(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function ld(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Bf={},co={};function Nf(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function G3(e,t,r,a,n,i){try{a.cellNF&&(e.z=We[t])}catch(o){if(a.WTF)throw o}if(!(e.t==="z"&&!a.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=$t(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(We[t]==null&&ns(jP[t]||"General",t),e.t==="e")e.w=e.w||ms[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=ul(e.v);else if(e.t==="d"){var s=Ar(e.v);(s|0)===s?e.w=s.toString(10):e.w=ul(s)}else{if(e.v===void 0)return"";e.w=ls(e.v,co)}else e.t==="d"?e.w=ca(t,Ar(e.v),co):e.w=ca(t,e.v,co)}catch(o){if(a.WTF)throw o}if(a.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Uu(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Uu(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(a.WTF&&i.Fills)throw o}}}function jN(e,t){var r=kt(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=Je(r))}var qN=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,JN=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,QN=/<(?:\w:)?hyperlink [^>]*>/mg,eU=/"(\w*:\w*)"/,tU=/<(?:\w:)?col\b[^>]*[\/]?>/g,rU=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,aU=/<(?:\w:)?pageMargins[^>]*\/>/g,$3=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,nU=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,iU=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function sU(e,t,r,a,n,i,s){if(!e)return e;a||(a={"!id":{}});var o=t.dense?[]:{},f={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",u="",c=e.match(JN);c?(l=e.slice(0,c.index),u=e.slice(c.index+c[0].length)):l=u=e;var h=l.match($3);h?C1(h[0],o,n,r):(h=l.match(nU))&&oU(h[0],h[1]||"",o,n,r);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=l.slice(d,d+50).match(eU);v&&jN(o,v[1])}var p=l.match(iU);p&&p[1]&&dU(p[1],n);var g=[];if(t.cellStyles){var m=l.match(tU);m&&uU(g,m)}c&&vU(c[1],o,t,f,i,s);var x=u.match(rU);x&&(o["!autofilter"]=cU(x[0]));var _=[],y=u.match(qN);if(y)for(d=0;d!=y.length;++d)_[d]=kt(y[d].slice(y[d].indexOf('"')+1));var F=u.match(QN);F&&fU(o,F,a);var k=u.match(aU);if(k&&(o["!margins"]=lU(Le(k[0]))),!o["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r&&(o["!ref"]=Je(f)),t.sheetRows>0&&o["!ref"]){var E=kt(o["!ref"]);t.sheetRows<=+E.e.r&&(E.e.r=t.sheetRows-1,E.e.r>f.e.r&&(E.e.r=f.e.r),E.e.r<E.s.r&&(E.s.r=E.e.r),E.e.c>f.e.c&&(E.e.c=f.e.c),E.e.c<E.s.c&&(E.s.c=E.e.c),o["!fullref"]=o["!ref"],o["!ref"]=Je(E))}return g.length>0&&(o["!cols"]=g),_.length>0&&(o["!merges"]=_),o}function C1(e,t,r,a){var n=Le(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=tt(_t(n.codeName)))}function oU(e,t,r,a,n){C1(e.slice(0,e.indexOf(">")),r,a,n)}function fU(e,t,r){for(var a=Array.isArray(e),n=0;n!=t.length;++n){var i=Le(_t(t[n]),!0);if(!i.ref)return;var s=((r||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+tt(i.location))):(i.Target="#"+tt(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var o=kt(i.ref),f=o.s.r;f<=o.e.r;++f)for(var l=o.s.c;l<=o.e.c;++l){var u=Ue({c:l,r:f});a?(e[f]||(e[f]=[]),e[f][l]||(e[f][l]={t:"z",v:void 0}),e[f][l].l=i):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=i)}}}function lU(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function uU(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=Le(t[a],!0);n.hidden&&(n.hidden=Tt(n.hidden));var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,S1(n.width)),mo(n);i<=s;)e[i++]=Kt(n)}}function cU(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var hU=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function dU(e,t){t.Views||(t.Views=[{}]),(e.match(hU)||[]).forEach(function(r,a){var n=Le(r);t.Views[a]||(t.Views[a]={}),+n.zoomScale&&(t.Views[a].zoom=+n.zoomScale),Tt(n.rightToLeft)&&(t.Views[a].RTL=!0)})}var vU=(function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,i=cl("v"),s=cl("f");return function(f,l,u,c,h,d){for(var v=0,p="",g=[],m=[],x=0,_=0,y=0,F="",k,E,C=0,T=0,b,M,R=0,B=0,G=Array.isArray(d.CellXf),re,j=[],q=[],ve=Array.isArray(l),U=[],xe={},se=!1,P=!!u.sheetStubs,V=f.split(t),H=0,z=V.length;H!=z;++H){p=V[H].trim();var ae=p.length;if(ae!==0){var pe=0;e:for(v=0;v<ae;++v)switch(p[v]){case">":if(p[v-1]!="/"){++v;break e}if(u&&u.cellStyles){if(E=Le(p.slice(pe,v),!0),C=E.r!=null?parseInt(E.r,10):C+1,T=-1,u.sheetRows&&u.sheetRows<C)continue;xe={},se=!1,E.ht&&(se=!0,xe.hpt=parseFloat(E.ht),xe.hpx=pl(xe.hpt)),E.hidden=="1"&&(se=!0,xe.hidden=!0),E.outlineLevel!=null&&(se=!0,xe.level=+E.outlineLevel),se&&(U[C-1]=xe)}break;case"<":pe=v;break}if(pe>=v)break;if(E=Le(p.slice(pe,v),!0),C=E.r!=null?parseInt(E.r,10):C+1,T=-1,!(u.sheetRows&&u.sheetRows<C)){c.s.r>C-1&&(c.s.r=C-1),c.e.r<C-1&&(c.e.r=C-1),u&&u.cellStyles&&(xe={},se=!1,E.ht&&(se=!0,xe.hpt=parseFloat(E.ht),xe.hpx=pl(xe.hpt)),E.hidden=="1"&&(se=!0,xe.hidden=!0),E.outlineLevel!=null&&(se=!0,xe.level=+E.outlineLevel),se&&(U[C-1]=xe)),g=p.slice(v).split(e);for(var le=0;le!=g.length&&g[le].trim().charAt(0)=="<";++le);for(g=g.slice(le),v=0;v!=g.length;++v)if(p=g[v].trim(),p.length!==0){if(m=p.match(r),x=v,_=0,y=0,p="<c "+(p.slice(0,1)=="<"?">":"")+p,m!=null&&m.length===2){for(x=0,F=m[1],_=0;_!=F.length&&!((y=F.charCodeAt(_)-64)<1||y>26);++_)x=26*x+y;--x,T=x}else++T;for(_=0;_!=p.length&&p.charCodeAt(_)!==62;++_);if(++_,E=Le(p.slice(0,_),!0),E.r||(E.r=Ue({r:C-1,c:T})),F=p.slice(_),k={t:""},(m=F.match(i))!=null&&m[1]!==""&&(k.v=tt(m[1])),u.cellFormula){if((m=F.match(s))!=null&&m[1]!==""){if(k.f=tt(_t(m[1])).replace(/\r\n/g,`
`),u.xlfn||(k.f=y_(k.f)),m[0].indexOf('t="array"')>-1)k.F=(F.match(n)||[])[1],k.F.indexOf(":")>-1&&j.push([kt(k.F),k.F]);else if(m[0].indexOf('t="shared"')>-1){M=Le(m[0]);var ie=tt(_t(m[1]));u.xlfn||(ie=y_(ie)),q[parseInt(M.si,10)]=[M,ie,E.r]}}else(m=F.match(/<f[^>]*\/>/))&&(M=Le(m[0]),q[M.si]&&(k.f=CB(q[M.si][1],q[M.si][2],E.r)));var ne=Tr(E.r);for(_=0;_<j.length;++_)ne.r>=j[_][0].s.r&&ne.r<=j[_][0].e.r&&ne.c>=j[_][0].s.c&&ne.c<=j[_][0].e.c&&(k.F=j[_][1])}if(E.t==null&&k.v===void 0)if(k.f||k.F)k.v=0,k.t="n";else if(P)k.t="z";else continue;else k.t=E.t||"n";switch(c.s.c>T&&(c.s.c=T),c.e.c<T&&(c.e.c=T),k.t){case"n":if(k.v==""||k.v==null){if(!P)continue;k.t="z"}else k.v=parseFloat(k.v);break;case"s":if(typeof k.v>"u"){if(!P)continue;k.t="z"}else b=Bf[parseInt(k.v,10)],k.v=b.t,k.r=b.r,u.cellHTML&&(k.h=b.h);break;case"str":k.t="s",k.v=k.v!=null?_t(k.v):"",u.cellHTML&&(k.h=h1(k.v));break;case"inlineStr":m=F.match(a),k.t="s",m!=null&&(b=T1(m[1]))?(k.v=b.t,u.cellHTML&&(k.h=b.h)):k.v="";break;case"b":k.v=Tt(k.v);break;case"d":u.cellDates?k.v=$t(k.v,1):(k.v=Ar($t(k.v,1)),k.t="n");break;case"e":(!u||u.cellText!==!1)&&(k.w=k.v),k.v=h3[k.v];break}if(R=B=0,re=null,G&&E.s!==void 0&&(re=d.CellXf[E.s],re!=null&&(re.numFmtId!=null&&(R=re.numFmtId),u.cellStyles&&re.fillId!=null&&(B=re.fillId))),G3(k,R,B,u,h,d),u.cellDates&&G&&k.t=="n"&&Eo(We[R])&&(k.t="d",k.v=yc(k.v)),E.cm&&u.xlmeta){var ue=(u.xlmeta.Cell||[])[+E.cm-1];ue&&ue.type=="XLDAPR"&&(k.D=!0)}if(ve){var w=Tr(E.r);l[w.r]||(l[w.r]=[]),l[w.r][w.c]=k}else l[E.r]=k}}}}U.length>0&&(l["!rows"]=U)}})();function pU(e,t){var r={},a=e.l+t;r.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=a,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=n/20),r}var gU=gs;function mU(){}function xU(e,t){var r={},a=e[e.l];return++e.l,r.above=!(a&64),r.left=!(a&128),e.l+=18,r.name=H7(e),r}function _U(e){var t=da(e);return[t]}function yU(e){var t=ps(e);return[t]}function wU(e){var t=da(e),r=e.read_shift(1);return[t,r,"b"]}function TU(e){var t=ps(e),r=e.read_shift(1);return[t,r,"b"]}function SU(e){var t=da(e),r=e.read_shift(1);return[t,r,"e"]}function EU(e){var t=ps(e),r=e.read_shift(1);return[t,r,"e"]}function CU(e){var t=da(e),r=e.read_shift(4);return[t,r,"s"]}function AU(e){var t=ps(e),r=e.read_shift(4);return[t,r,"s"]}function DU(e){var t=da(e),r=sr(e);return[t,r,"n"]}function X3(e){var t=ps(e),r=sr(e);return[t,r,"n"]}function kU(e){var t=da(e),r=_1(e);return[t,r,"n"]}function bU(e){var t=ps(e),r=_1(e);return[t,r,"n"]}function FU(e){var t=da(e),r=m1(e);return[t,r,"is"]}function IU(e){var t=da(e),r=ur(e);return[t,r,"str"]}function MU(e){var t=ps(e),r=ur(e);return[t,r,"str"]}function RU(e,t,r){var a=e.l+t,n=da(e);n.r=r["!row"];var i=e.read_shift(1),s=[n,i,"b"];if(r.cellFormula){e.l+=2;var o=Sc(e,a-e.l,r);s[3]=nr(o,null,n,r.supbooks,r)}else e.l=a;return s}function PU(e,t,r){var a=e.l+t,n=da(e);n.r=r["!row"];var i=e.read_shift(1),s=[n,i,"e"];if(r.cellFormula){e.l+=2;var o=Sc(e,a-e.l,r);s[3]=nr(o,null,n,r.supbooks,r)}else e.l=a;return s}function LU(e,t,r){var a=e.l+t,n=da(e);n.r=r["!row"];var i=sr(e),s=[n,i,"n"];if(r.cellFormula){e.l+=2;var o=Sc(e,a-e.l,r);s[3]=nr(o,null,n,r.supbooks,r)}else e.l=a;return s}function OU(e,t,r){var a=e.l+t,n=da(e);n.r=r["!row"];var i=ur(e),s=[n,i,"str"];if(r.cellFormula){e.l+=2;var o=Sc(e,a-e.l,r);s[3]=nr(o,null,n,r.supbooks,r)}else e.l=a;return s}var BU=gs;function NU(e,t){var r=e.l+t,a=gs(e),n=x1(e),i=ur(e),s=ur(e),o=ur(e);e.l=r;var f={rfx:a,relId:n,loc:i,display:o};return s&&(f.Tooltip=s),f}function UU(){}function HU(e,t,r){var a=e.l+t,n=l3(e),i=e.read_shift(1),s=[n];if(s[2]=i,r.cellFormula){var o=$N(e,a-e.l,r);s[1]=o}else e.l=a;return s}function VU(e,t,r){var a=e.l+t,n=gs(e),i=[n];if(r.cellFormula){var s=YN(e,a-e.l,r);i[1]=s,e.l=a}else e.l=a;return i}var zU=["left","right","top","bottom","header","footer"];function WU(e){var t={};return zU.forEach(function(r){t[r]=sr(e)}),t}function GU(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function $U(){}function XU(){}function YU(e,t,r,a,n,i,s){if(!e)return e;var o=t||{};a||(a={"!id":{}});var f=o.dense?[]:{},l,u={s:{r:2e6,c:2e6},e:{r:0,c:0}},c=!1,h=!1,d,v,p,g,m,x,_,y,F,k=[];o.biff=12,o["!row"]=0;var E=0,C=!1,T=[],b={},M=o.supbooks||n.supbooks||[[]];if(M.sharedf=b,M.arrayf=T,M.SheetNames=n.SheetNames||n.Sheets.map(function(ve){return ve.name}),!o.supbooks&&(o.supbooks=M,n.Names))for(var R=0;R<n.Names.length;++R)M[0][R+1]=n.Names[R];var B=[],G=[],re=!1;zu[16]={n:"BrtShortReal",f:X3};var j;if(bn(e,function(U,xe,se){if(!h)switch(se){case 148:l=U;break;case 0:d=U,o.sheetRows&&o.sheetRows<=d.r&&(h=!0),y=Zt(g=d.r),o["!row"]=d.r,(U.hidden||U.hpt||U.level!=null)&&(U.hpt&&(U.hpx=pl(U.hpt)),G[U.r]=U);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(v={t:U[2]},U[2]){case"n":v.v=U[1];break;case"s":_=Bf[U[1]],v.v=_.t,v.r=_.r;break;case"b":v.v=!!U[1];break;case"e":v.v=U[1],o.cellText!==!1&&(v.w=ms[v.v]);break;case"str":v.t="s",v.v=U[1];break;case"is":v.t="s",v.v=U[1].t;break}if((p=s.CellXf[U[0].iStyleRef])&&G3(v,p.numFmtId,null,o,i,s),m=U[0].c==-1?m+1:U[0].c,o.dense?(f[g]||(f[g]=[]),f[g][m]=v):f[zt(m)+y]=v,o.cellFormula){for(C=!1,E=0;E<T.length;++E){var P=T[E];d.r>=P[0].s.r&&d.r<=P[0].e.r&&m>=P[0].s.c&&m<=P[0].e.c&&(v.F=Je(P[0]),C=!0)}!C&&U.length>3&&(v.f=U[3])}if(u.s.r>d.r&&(u.s.r=d.r),u.s.c>m&&(u.s.c=m),u.e.r<d.r&&(u.e.r=d.r),u.e.c<m&&(u.e.c=m),o.cellDates&&p&&v.t=="n"&&Eo(We[p.numFmtId])){var V=ji(v.v);V&&(v.t="d",v.v=new Date(V.y,V.m-1,V.d,V.H,V.M,V.S,V.u))}j&&(j.type=="XLDAPR"&&(v.D=!0),j=void 0);break;case 1:case 12:if(!o.sheetStubs||c)break;v={t:"z",v:void 0},m=U[0].c==-1?m+1:U[0].c,o.dense?(f[g]||(f[g]=[]),f[g][m]=v):f[zt(m)+y]=v,u.s.r>d.r&&(u.s.r=d.r),u.s.c>m&&(u.s.c=m),u.e.r<d.r&&(u.e.r=d.r),u.e.c<m&&(u.e.c=m),j&&(j.type=="XLDAPR"&&(v.D=!0),j=void 0);break;case 176:k.push(U);break;case 49:j=((o.xlmeta||{}).Cell||[])[U-1];break;case 494:var H=a["!id"][U.relId];for(H?(U.Target=H.Target,U.loc&&(U.Target+="#"+U.loc),U.Rel=H):U.relId==""&&(U.Target="#"+U.loc),g=U.rfx.s.r;g<=U.rfx.e.r;++g)for(m=U.rfx.s.c;m<=U.rfx.e.c;++m)o.dense?(f[g]||(f[g]=[]),f[g][m]||(f[g][m]={t:"z",v:void 0}),f[g][m].l=U):(x=Ue({c:m,r:g}),f[x]||(f[x]={t:"z",v:void 0}),f[x].l=U);break;case 426:if(!o.cellFormula)break;T.push(U),F=o.dense?f[g][m]:f[zt(m)+y],F.f=nr(U[1],u,{r:d.r,c:m},M,o),F.F=Je(U[0]);break;case 427:if(!o.cellFormula)break;b[Ue(U[0].s)]=U[1],F=o.dense?f[g][m]:f[zt(m)+y],F.f=nr(U[1],u,{r:d.r,c:m},M,o);break;case 60:if(!o.cellStyles)break;for(;U.e>=U.s;)B[U.e--]={width:U.w/256,hidden:!!(U.flags&1),level:U.level},re||(re=!0,S1(U.w/256)),mo(B[U.e+1]);break;case 161:f["!autofilter"]={ref:Je(U)};break;case 476:f["!margins"]=U;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),U.name&&(n.Sheets[r].CodeName=U.name),(U.above||U.left)&&(f["!outline"]={above:U.above,left:U.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),U.RTL&&(n.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:c=!0;break;case 36:c=!1;break;case 37:c=!0;break;case 38:c=!1;break;default:if(!xe.T){if(!c||o.WTF)throw new Error("Unexpected record 0x"+se.toString(16))}}},o),delete o.supbooks,delete o["!row"],!f["!ref"]&&(u.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(f["!ref"]=Je(l||u)),o.sheetRows&&f["!ref"]){var q=kt(f["!ref"]);o.sheetRows<=+q.e.r&&(q.e.r=o.sheetRows-1,q.e.r>u.e.r&&(q.e.r=u.e.r),q.e.r<q.s.r&&(q.s.r=q.e.r),q.e.c>u.e.c&&(q.e.c=u.e.c),q.e.c<q.s.c&&(q.s.c=q.e.c),f["!fullref"]=f["!ref"],f["!ref"]=Je(q))}return k.length>0&&(f["!merges"]=k),B.length>0&&(f["!cols"]=B),G.length>0&&(f["!rows"]=G),f}function KU(e){var t=[],r=e.match(/^<c:numCache>/),a;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var s=i.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var n=tt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(i){a=i.replace(/<.*?>/g,"")}),[t,n,a]}function ZU(e,t,r,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var o=0,f=0,l="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(c){var h=KU(c);u.s.r=u.s.c=0,u.e.c=o,l=zt(o),h[0].forEach(function(d,v){s[l+Zt(v)]={t:"n",v:d,z:h[1]},f=v}),u.e.r<f&&(u.e.r=f),++o}),o>0&&(s["!ref"]=Je(u)),s}function jU(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s,o=e.match($3);return o&&C1(o[0],i,n,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}function qU(e,t){e.l+=10;var r=ur(e);return{name:r}}function JU(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s=!1;return bn(e,function(f,l,u){switch(u){case 550:i["!rel"]=f;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),f.name&&(n.Sheets[r].CodeName=f.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!(l.T>0)){if(!(l.T<0)){if(!s||t.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}}},t),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}var Y3=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],QU=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],eH=[],tH=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function C_(e,t){for(var r=0;r!=e.length;++r)for(var a=e[r],n=0;n!=t.length;++n){var i=t[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":typeof a[i[0]]=="string"&&(a[i[0]]=Tt(a[i[0]]));break;case"int":typeof a[i[0]]=="string"&&(a[i[0]]=parseInt(a[i[0]],10));break}}}function A_(e,t){for(var r=0;r!=t.length;++r){var a=t[r];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":typeof e[a[0]]=="string"&&(e[a[0]]=Tt(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function K3(e){A_(e.WBProps,Y3),A_(e.CalcPr,tH),C_(e.WBView,QU),C_(e.Sheets,eH),co.date1904=Tt(e.WBProps.date1904)}var rH="][*?/\\".split("");function aH(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return rH.forEach(function(a){if(e.indexOf(a)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}var nH=/<\w+:workbook/;function iH(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},a=!1,n="xmlns",i={},s=0;if(e.replace(hr,function(f,l){var u=Le(f);switch(tn(u[0])){case"<?xml":break;case"<workbook":f.match(nH)&&(n="xmlns"+f.match(/<(\w+):/)[1]),r.xmlns=u[n];break;case"</workbook>":break;case"<fileVersion":delete u[0],r.AppVersion=u;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Y3.forEach(function(c){if(u[c[0]]!=null)switch(c[2]){case"bool":r.WBProps[c[0]]=Tt(u[c[0]]);break;case"int":r.WBProps[c[0]]=parseInt(u[c[0]],10);break;default:r.WBProps[c[0]]=u[c[0]]}}),u.codeName&&(r.WBProps.CodeName=_t(u.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete u[0],r.WBView.push(u);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(u.state){case"hidden":u.Hidden=1;break;case"veryHidden":u.Hidden=2;break;default:u.Hidden=0}delete u.state,u.name=tt(_t(u.name)),delete u[0],r.Sheets.push(u);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":a=!0;break;case"</definedNames>":a=!1;break;case"<definedName":i={},i.Name=_t(u.name),u.comment&&(i.Comment=u.comment),u.localSheetId&&(i.Sheet=+u.localSheetId),Tt(u.hidden||"0")&&(i.Hidden=!0),s=l+f.length;break;case"</definedName>":i.Ref=tt(_t(e.slice(s,l))),r.Names.push(i);break;case"<definedName/>":break;case"<calcPr":delete u[0],r.CalcPr=u;break;case"<calcPr/>":delete u[0],r.CalcPr=u;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":a=!0;break;case"</AlternateContent>":a=!1;break;case"<revisionPtr":break;default:if(!a&&t.WTF)throw new Error("unrecognized "+u[0]+" in workbook")}return f}),S7.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return K3(r),r}function sH(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Av(e),r.name=ur(e),r}function oH(e,t){var r={},a=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var n=t>8?ur(e):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(a&65536),r.backupFile=!!(a&64),r.checkCompatibility=!!(a&4096),r.date1904=!!(a&1),r.filterPrivacy=!!(a&8),r.hidePivotFieldList=!!(a&1024),r.promptedSolutions=!!(a&16),r.publishItems=!!(a&2048),r.refreshAllConnections=!!(a&262144),r.saveExternalLinkValues=!!(a&128),r.showBorderUnselectedTables=!!(a&4),r.showInkAnnotation=!!(a&32),r.showObjects=["all","placeholders","none"][a>>13&3],r.showPivotChartFilter=!!(a&32768),r.updateLinks=["userSet","never","always"][a>>8&3],r}function fH(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function lH(e,t,r){var a=e.l+t;e.l+=4,e.l+=1;var n=e.read_shift(4),i=V7(e),s=XN(e,0,r),o=x1(e);e.l=a;var f={Name:i,Ptg:s};return n<268435455&&(f.Sheet=n),o&&(f.Comment=o),f}function uH(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;t||(t={}),t.biff=12;var i=[],s=[[]];return s.SheetNames=[],s.XTI=[],zu[16]={n:"BrtFRTArchID$",f:fH},bn(e,function(f,l,u){switch(u){case 156:s.SheetNames.push(f.name),r.Sheets.push(f);break;case 153:r.WBProps=f;break;case 39:f.Sheet!=null&&(t.SID=f.Sheet),f.Ref=nr(f.Ptg,null,null,s,t),delete t.SID,delete f.Ptg,i.push(f);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([u,f]):s[0]=[u,f],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(f),s.XTI=s.XTI.concat(f);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:a.push(u),n=!0;break;case 36:a.pop(),n=!1;break;case 37:a.push(u),n=!0;break;case 38:a.pop(),n=!1;break;case 16:break;default:if(!l.T){if(!n||t.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}},t),K3(r),r.Names=i,r.supbooks=s,r}function cH(e,t,r){return t.slice(-4)===".bin"?uH(e,r):iH(e,r)}function hH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?YU(e,a,r,n,i,s,o):sU(e,a,r,n,i,s,o)}function dH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?JU(e,a,r,n,i):jU(e,a,r,n,i)}function vH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?TB():SB()}function pH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?yB():wB()}function gH(e,t,r,a){return t.slice(-4)===".bin"?B9(e,r,a):I9(e,r,a)}function mH(e,t,r){return P3(e,r)}function xH(e,t,r){return t.slice(-4)===".bin"?QO(e,r):qO(e,r)}function _H(e,t,r){return t.slice(-4)===".bin"?mB(e,r):hB(e,r)}function yH(e,t,r){return t.slice(-4)===".bin"?lB(e):oB(e)}function wH(e,t,r,a){return r.slice(-4)===".bin"?uB(e,t,r,a):void 0}function TH(e,t,r){return t.slice(-4)===".bin"?iB(e,t,r):sB(e,t,r)}var Z3=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,j3=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function ma(e,t){var r=e.split(/\s+/),a=[];if(a[0]=r[0],r.length===1)return a;var n=e.match(Z3),i,s,o,f;if(n)for(f=0;f!=n.length;++f)i=n[f].match(j3),(s=i[1].indexOf(":"))===-1?a[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(s+1),a[o]=i[2].slice(1,i[2].length-1));return a}function SH(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var a=e.match(Z3),n,i,s,o;if(a)for(o=0;o!=a.length;++o)n=a[o].match(j3),(i=n[1].indexOf(":"))===-1?r[n[1]]=n[2].slice(1,n[2].length-1):(n[1].slice(0,6)==="xmlns:"?s="xmlns"+n[1].slice(6):s=n[1].slice(i+1),r[s]=n[2].slice(1,n[2].length-1));return r}var Uf;function EH(e,t){var r=Uf[e]||tt(e);return r==="General"?ls(t):ca(r,t)}function CH(e,t,r,a){var n=a;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Tt(a);break;case"i2":case"int":n=parseInt(a,10);break;case"r4":case"float":n=parseFloat(a);break;case"date":case"dateTime.tz":n=$t(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[tt(t)]=n}function AH(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||ms[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=ul(e.v):e.w=ls(e.v):e.w=EH(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var a=Uf[t]||t||"General";if(r.cellNF&&(e.z=a),r.cellDates&&e.t=="n"&&Eo(a)){var n=ji(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}catch(i){if(r.WTF)throw i}}}function DH(e,t,r){if(r.cellStyles&&t.Interior){var a=t.Interior;a.Pattern&&(a.patternType=C9[a.Pattern]||a.Pattern)}e[t.ID]=t}function kH(e,t,r,a,n,i,s,o,f,l){var u="General",c=a.StyleID,h={};l=l||{};var d=[],v=0;for(c===void 0&&o&&(c=o.StyleID),c===void 0&&s&&(c=s.StyleID);i[c]!==void 0&&(i[c].nf&&(u=i[c].nf),i[c].Interior&&d.push(i[c].Interior),!!i[c].Parent);)c=i[c].Parent;switch(r.Type){case"Boolean":a.t="b",a.v=Tt(e);break;case"String":a.t="s",a.r=Kx(tt(e)),a.v=e.indexOf("<")>-1?tt(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),a.v=($t(e)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),a.v!==a.v?a.v=tt(e):a.v<60&&(a.v=a.v-1),(!u||u=="General")&&(u="yyyy-mm-dd");case"Number":a.v===void 0&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=h3[e],l.cellText!==!1&&(a.w=e);break;default:e==""&&t==""?a.t="z":(a.t="s",a.v=Kx(t||e));break}if(AH(a,u,l),l.cellFormula!==!1)if(a.Formula){var p=tt(a.Formula);p.charCodeAt(0)==61&&(p=p.slice(1)),a.f=uo(p,n),delete a.Formula,a.ArrayRange=="RC"?a.F=uo("RC:RC",n):a.ArrayRange&&(a.F=uo(a.ArrayRange,n),f.push([kt(a.F),a.F]))}else for(v=0;v<f.length;++v)n.r>=f[v][0].s.r&&n.r<=f[v][0].e.r&&n.c>=f[v][0].s.c&&n.c<=f[v][0].e.c&&(a.F=f[v][1]);l.cellStyles&&(d.forEach(function(g){!h.patternType&&g.patternType&&(h.patternType=g.patternType)}),a.s=h),a.StyleID!==void 0&&(a.ixfe=a.StyleID)}function bH(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function ud(e,t){var r=t||{};N4();var a=ff(d1(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(a=_t(a));var n=a.slice(0,1024).toLowerCase(),i=!1;if(n=n.replace(/".*?"/g,""),(n.indexOf(">")&1023)>Math.min(n.indexOf(",")&1023,n.indexOf(";")&1023)){var s=Kt(r);return s.type="string",dl.to_workbook(a,s)}if(n.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(oe){n.indexOf("<"+oe)>=0&&(i=!0)}),i)return NH(a,r);Uf={"General Number":"General","General Date":We[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":We[15],"Short Date":We[14],"Long Time":We[19],"Medium Time":We[18],"Short Time":We[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:We[2],Standard:We[4],Percent:We[10],Scientific:We[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,f=[],l,u={},c=[],h=r.dense?[]:{},d="",v={},p={},g=ma('<Data ss:Type="String">'),m=0,x=0,_=0,y={s:{r:2e6,c:2e6},e:{r:0,c:0}},F={},k={},E="",C=0,T=[],b={},M={},R=0,B=[],G=[],re={},j=[],q,ve=!1,U=[],xe=[],se={},P=0,V=0,H={Sheets:[],WBProps:{date1904:!1}},z={};hl.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"");for(var ae="";o=hl.exec(a);)switch(o[3]=(ae=o[3]).toLowerCase()){case"data":if(ae=="data"){if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&f.push([o[3],!0]);break}if(f[f.length-1][1])break;o[1]==="/"?kH(a.slice(m,o.index),E,g,f[f.length-1][0]=="comment"?re:v,{c:x,r:_},F,j[x],p,U,r):(E="",g=ma(o[0]),m=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(G.length>0&&(v.c=G),(!r.sheetRows||r.sheetRows>_)&&v.v!==void 0&&(r.dense?(h[_]||(h[_]=[]),h[_][x]=v):h[zt(x)+Zt(_)]=v),v.HRef&&(v.l={Target:tt(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(P=x+(parseInt(v.MergeAcross,10)|0),V=_+(parseInt(v.MergeDown,10)|0),T.push({s:{c:x,r:_},e:{c:P,r:V}})),!r.sheetStubs)v.MergeAcross?x=P+1:++x;else if(v.MergeAcross||v.MergeDown){for(var pe=x;pe<=P;++pe)for(var le=_;le<=V;++le)(pe>x||le>_)&&(r.dense?(h[le]||(h[le]=[]),h[le][pe]={t:"z"}):h[zt(pe)+Zt(le)]={t:"z"});x=P+1}else++x;else v=SH(o[0]),v.Index&&(x=+v.Index-1),x<y.s.c&&(y.s.c=x),x>y.e.c&&(y.e.c=x),o[0].slice(-2)==="/>"&&++x,G=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(_<y.s.r&&(y.s.r=_),_>y.e.r&&(y.e.r=_),o[0].slice(-2)==="/>"&&(p=ma(o[0]),p.Index&&(_=+p.Index-1)),x=0,++_):(p=ma(o[0]),p.Index&&(_=+p.Index-1),se={},(p.AutoFitHeight=="0"||p.Height)&&(se.hpx=parseInt(p.Height,10),se.hpt=R3(se.hpx),xe[_]=se),p.Hidden=="1"&&(se.hidden=!0,xe[_]=se));break;case"worksheet":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"));c.push(d),y.s.r<=y.e.r&&y.s.c<=y.e.c&&(h["!ref"]=Je(y),r.sheetRows&&r.sheetRows<=y.e.r&&(h["!fullref"]=h["!ref"],y.e.r=r.sheetRows-1,h["!ref"]=Je(y))),T.length&&(h["!merges"]=T),j.length>0&&(h["!cols"]=j),xe.length>0&&(h["!rows"]=xe),u[d]=h}else y={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=x=0,f.push([o[3],!1]),l=ma(o[0]),d=tt(l.Name),h=r.dense?[]:{},T=[],U=[],xe=[],z={name:d,Hidden:0},H.Sheets.push(z);break;case"table":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else{if(o[0].slice(-2)=="/>")break;f.push([o[3],!1]),j=[],ve=!1}break;case"style":o[1]==="/"?DH(F,k,r):k=ma(o[0]);break;case"numberformat":k.nf=tt(ma(o[0]).Format||"General"),Uf[k.nf]&&(k.nf=Uf[k.nf]);for(var ie=0;ie!=392&&We[ie]!=k.nf;++ie);if(ie==392){for(ie=57;ie!=392;++ie)if(We[ie]==null){ns(k.nf,ie);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(q=ma(o[0]),q.Hidden&&(q.hidden=!0,delete q.Hidden),q.Width&&(q.wpx=parseInt(q.Width,10)),!ve&&q.wpx>10){ve=!0,yr=I3;for(var ne=0;ne<j.length;++ne)j[ne]&&mo(j[ne])}ve&&mo(q),j[q.Index-1||j.length]=q;for(var ue=0;ue<+q.Span;++ue)j[j.length]=Kt(q);break;case"namedrange":if(o[1]==="/")break;H.Names||(H.Names=[]);var w=Le(o[0]),N={Name:w.Name,Ref:uo(w.RefersTo.slice(1),{r:0,c:0})};H.Sheets.length>0&&(N.Sheet=H.Sheets.length-1),H.Names.push(N);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(o[0].slice(-2)==="/>")break;o[1]==="/"?E+=a.slice(C,o.index):C=o.index+o[0].length;break;case"interior":if(!r.cellStyles)break;k.Interior=ma(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(o[0].slice(-2)==="/>")break;o[1]==="/"?hL(b,ae,a.slice(R,o.index)):R=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else f.push([o[3],!1]);break;case"comment":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"));bH(re),G.push(re)}else f.push([o[3],!1]),l=ma(o[0]),re={a:l.Author};break;case"autofilter":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else if(o[0].charAt(o[0].length-2)!=="/"){var W=ma(o[0]);h["!autofilter"]={ref:uo(W.Range).replace(/\$/g,"")},f.push([o[3],!0])}break;case"name":break;case"datavalidation":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&f.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(o[1]==="/"){if((l=f.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&f.push([o[3],!0]);break;case"null":break;default:if(f.length==0&&o[3]=="document"||f.length==0&&o[3]=="uof")return M_(a,r);var J=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:J=!1}break;case"componentoptions":switch(o[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:J=!1}break;case"excelworkbook":switch(o[3]){case"date1904":H.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:J=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:J=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(a.slice(R,o.index)){case"SheetHidden":z.Hidden=1;break;case"SheetVeryHidden":z.Hidden=2;break}else R=o.index+o[0].length;break;case"header":h["!margins"]||Nf(h["!margins"]={},"xlml"),isNaN(+Le(o[0]).Margin)||(h["!margins"].header=+Le(o[0]).Margin);break;case"footer":h["!margins"]||Nf(h["!margins"]={},"xlml"),isNaN(+Le(o[0]).Margin)||(h["!margins"].footer=+Le(o[0]).Margin);break;case"pagemargins":var K=Le(o[0]);h["!margins"]||Nf(h["!margins"]={},"xlml"),isNaN(+K.Top)||(h["!margins"].top=+K.Top),isNaN(+K.Left)||(h["!margins"].left=+K.Left),isNaN(+K.Right)||(h["!margins"].right=+K.Right),isNaN(+K.Bottom)||(h["!margins"].bottom=+K.Bottom);break;case"displayrighttoleft":H.Views||(H.Views=[]),H.Views[0]||(H.Views[0]={}),H.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":h["!outline"]||(h["!outline"]={}),h["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":h["!outline"]||(h["!outline"]={}),h["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:J=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:J=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:J=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:J=!1}break;case"querytable":switch(o[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:J=!1}break;case"datavalidation":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:J=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:J=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:J=!1}break;case"smarttags":break;default:J=!1;break}if(J||o[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+f.join("|");if(f[f.length-1][0]==="customdocumentproperties"){if(o[0].slice(-2)==="/>")break;o[1]==="/"?CH(M,ae,B,a.slice(R,o.index)):(B=o,R=o.index+o[0].length);break}if(r.WTF)throw"Unrecognized tag: "+o[3]+"|"+f.join("|")}var Y={};return!r.bookSheets&&!r.bookProps&&(Y.Sheets=u),Y.SheetNames=c,Y.Workbook=H,Y.SSF=Kt(We),Y.Props=b,Y.Custprops=M,Y}function Fv(e,t){switch(k1(t=t||{}),t.type||"base64"){case"base64":return ud(Kr(e),t);case"binary":case"buffer":case"file":return ud(e,t);case"array":return ud(vs(e),t)}}function FH(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=G7(r),r.length-r.l<=4)return t;var a=r.read_shift(4);if(a==0||a>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(a=r.read_shift(4),a!==1907505652)||(t.UnicodeClipboardFormat=$7(r),a=r.read_shift(4),a==0||a>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var IH=[60,1084,2066,2165,2175];function MH(e,t,r,a,n){var i=a,s=[],o=r.slice(r.l,r.l+i);if(n&&n.enc&&n.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:n.enc.insitu(o)}s.push(o),r.l+=i;for(var f=pn(r,r.l),l=Iv[f],u=0;l!=null&&IH.indexOf(f)>-1;)i=pn(r,r.l+2),u=r.l+4,f==2066?u+=4:(f==2165||f==2175)&&(u+=12),o=r.slice(u,r.l+4+i),s.push(o),r.l+=4+i,l=Iv[f=pn(r,r.l)];var c=Vn(s);Yt(c,0);var h=0;c.lens=[];for(var d=0;d<s.length;++d)c.lens.push(h),h+=s[d].length;if(c.length<a)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+c.length+" < "+a;return t.f(c,c.length,n)}function Ba(e,t,r){if(e.t!=="z"&&e.XF){var a=0;try{a=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=We[a])}catch(i){if(t.WTF)throw i}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||ms[e.v]:a===0||a=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=ul(e.v):e.w=ls(e.v):e.w=ca(a,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(i){if(t.WTF)throw i}if(t.cellDates&&a&&e.t=="n"&&Eo(We[a]||String(a))){var n=ji(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}}function b0(e,t,r){return{v:e,ixfe:t,t:r}}function RH(e,t){var r={opts:{}},a={},n=t.dense?[]:{},i={},s={},o=null,f=[],l="",u={},c,h="",d,v,p,g,m={},x=[],_,y,F=[],k=[],E={Sheets:[],WBProps:{date1904:!1},Views:[{}]},C={},T=function(Fe){return Fe<8?is[Fe]:Fe<64&&k[Fe-8]||is[Fe]},b=function(Fe,Ve,Ye){var Qe=Ve.XF.data;if(!(!Qe||!Qe.patternType||!Ye||!Ye.cellStyles)){Ve.s={},Ve.s.patternType=Qe.patternType;var qt;(qt=vl(T(Qe.icvFore)))&&(Ve.s.fgColor={rgb:qt}),(qt=vl(T(Qe.icvBack)))&&(Ve.s.bgColor={rgb:qt})}},M=function(Fe,Ve,Ye){if(!(se>1)&&!(Ye.sheetRows&&Fe.r>=Ye.sheetRows)){if(Ye.cellStyles&&Ve.XF&&Ve.XF.data&&b(Fe,Ve,Ye),delete Ve.ixfe,delete Ve.XF,c=Fe,h=Ue(Fe),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),Fe.r<s.s.r&&(s.s.r=Fe.r),Fe.c<s.s.c&&(s.s.c=Fe.c),Fe.r+1>s.e.r&&(s.e.r=Fe.r+1),Fe.c+1>s.e.c&&(s.e.c=Fe.c+1),Ye.cellFormula&&Ve.f){for(var Qe=0;Qe<x.length;++Qe)if(!(x[Qe][0].s.c>Fe.c||x[Qe][0].s.r>Fe.r)&&!(x[Qe][0].e.c<Fe.c||x[Qe][0].e.r<Fe.r)){Ve.F=Je(x[Qe][0]),(x[Qe][0].s.c!=Fe.c||x[Qe][0].s.r!=Fe.r)&&delete Ve.f,Ve.f&&(Ve.f=""+nr(x[Qe][1],s,Fe,U,R));break}}Ye.dense?(n[Fe.r]||(n[Fe.r]=[]),n[Fe.r][Fe.c]=Ve):n[h]=Ve}},R={enc:!1,sbcch:0,snames:[],sharedf:m,arrayf:x,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(R.password=t.password);var B,G=[],re=[],j=[],q=[],ve=!1,U=[];U.SheetNames=R.snames,U.sharedf=R.sharedf,U.arrayf=R.arrayf,U.names=[],U.XTI=[];var xe=0,se=0,P=0,V=[],H=[],z;R.codepage=1200,Ea(1200);for(var ae=!1;e.l<e.length-1;){var pe=e.l,le=e.read_shift(2);if(le===0&&xe===10)break;var ie=e.l===e.length?0:e.read_shift(2),ne=Iv[le];if(ne&&ne.f){if(t.bookSheets&&xe===133&&le!==133)break;if(xe=le,ne.r===2||ne.r==12){var ue=e.read_shift(2);if(ie-=2,!R.enc&&ue!==le&&((ue&255)<<8|ue>>8)!==le)throw new Error("rt mismatch: "+ue+"!="+le);ne.r==12&&(e.l+=10,ie-=10)}var w={};if(le===10?w=ne.f(e,ie,R):w=MH(le,ne,e,ie,R),se==0&&[9,521,1033,2057].indexOf(xe)===-1)continue;switch(le){case 34:r.opts.Date1904=E.WBProps.date1904=w;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(R.enc||(e.l=0),R.enc=w,!t.password)throw new Error("File is password-protected");if(w.valid==null)throw new Error("Encryption scheme unsupported");if(!w.valid)throw new Error("Password is incorrect");break;case 92:R.lastuser=w;break;case 66:var N=Number(w);switch(N){case 21010:N=1200;break;case 32768:N=1e4;break;case 32769:N=1252;break}Ea(R.codepage=N),ae=!0;break;case 317:R.rrtabid=w;break;case 25:R.winlocked=w;break;case 439:r.opts.RefreshAll=w;break;case 12:r.opts.CalcCount=w;break;case 16:r.opts.CalcDelta=w;break;case 17:r.opts.CalcIter=w;break;case 13:r.opts.CalcMode=w;break;case 14:r.opts.CalcPrecision=w;break;case 95:r.opts.CalcSaveRecalc=w;break;case 15:R.CalcRefMode=w;break;case 2211:r.opts.FullCalc=w;break;case 129:w.fDialog&&(n["!type"]="dialog"),w.fBelow||((n["!outline"]||(n["!outline"]={})).above=!0),w.fRight||((n["!outline"]||(n["!outline"]={})).left=!0);break;case 224:F.push(w);break;case 430:U.push([w]),U[U.length-1].XTI=[];break;case 35:case 547:U[U.length-1].push(w);break;case 24:case 536:z={Name:w.Name,Ref:nr(w.rgce,s,null,U,R)},w.itab>0&&(z.Sheet=w.itab-1),U.names.push(z),U[0]||(U[0]=[],U[0].XTI=[]),U[U.length-1].push(w),w.Name=="_xlnm._FilterDatabase"&&w.itab>0&&w.rgce&&w.rgce[0]&&w.rgce[0][0]&&w.rgce[0][0][0]=="PtgArea3d"&&(H[w.itab-1]={ref:Je(w.rgce[0][0][1][2])});break;case 22:R.ExternCount=w;break;case 23:U.length==0&&(U[0]=[],U[0].XTI=[]),U[U.length-1].XTI=U[U.length-1].XTI.concat(w),U.XTI=U.XTI.concat(w);break;case 2196:if(R.biff<8)break;z!=null&&(z.Comment=w[1]);break;case 18:n["!protect"]=w;break;case 19:w!==0&&R.WTF&&console.error("Password verifier: "+w);break;case 133:i[w.pos]=w,R.snames.push(w.name);break;case 10:{if(--se)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,n["!ref"]=Je(s),t.sheetRows&&t.sheetRows<=s.e.r){var W=s.e.r;s.e.r=t.sheetRows-1,n["!fullref"]=n["!ref"],n["!ref"]=Je(s),s.e.r=W}s.e.r++,s.e.c++}G.length>0&&(n["!merges"]=G),re.length>0&&(n["!objects"]=re),j.length>0&&(n["!cols"]=j),q.length>0&&(n["!rows"]=q),E.Sheets.push(C)}l===""?u=n:a[l]=n,n=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(R.biff===8&&(R.biff={9:2,521:3,1033:4}[le]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[w.BIFFVer]||8),R.biffguess=w.BIFFVer==0,w.BIFFVer==0&&w.dt==4096&&(R.biff=5,ae=!0,Ea(R.codepage=28591)),R.biff==8&&w.BIFFVer==0&&w.dt==16&&(R.biff=2),se++)break;if(n=t.dense?[]:{},R.biff<8&&!ae&&(ae=!0,Ea(R.codepage=t.codepage||1252)),R.biff<5||w.BIFFVer==0&&w.dt==4096){l===""&&(l="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var J={pos:e.l-ie,name:l};i[J.pos]=J,R.snames.push(l)}else l=(i[pe]||{name:""}).name;w.dt==32&&(n["!type"]="chart"),w.dt==64&&(n["!type"]="macro"),G=[],re=[],R.arrayf=x=[],j=[],q=[],ve=!1,C={Hidden:(i[pe]||{hs:0}).hs,name:l}}break;case 515:case 3:case 2:n["!type"]=="chart"&&(t.dense?(n[w.r]||[])[w.c]:n[Ue({c:w.c,r:w.r})])&&++w.c,_={ixfe:w.ixfe,XF:F[w.ixfe]||{},v:w.val,t:"n"},P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:w.c,r:w.r},_,t);break;case 5:case 517:_={ixfe:w.ixfe,XF:F[w.ixfe],v:w.val,t:w.t},P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:w.c,r:w.r},_,t);break;case 638:_={ixfe:w.ixfe,XF:F[w.ixfe],v:w.rknum,t:"n"},P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:w.c,r:w.r},_,t);break;case 189:for(var K=w.c;K<=w.C;++K){var Y=w.rkrec[K-w.c][0];_={ixfe:Y,XF:F[Y],v:w.rkrec[K-w.c][1],t:"n"},P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:K,r:w.r},_,t)}break;case 6:case 518:case 1030:{if(w.val=="String"){o=w;break}if(_=b0(w.val,w.cell.ixfe,w.tt),_.XF=F[_.ixfe],t.cellFormula){var oe=w.formula;if(oe&&oe[0]&&oe[0][0]&&oe[0][0][0]=="PtgExp"){var ce=oe[0][0][1][0],de=oe[0][0][1][1],he=Ue({r:ce,c:de});m[he]?_.f=""+nr(w.formula,s,w.cell,U,R):_.F=((t.dense?(n[ce]||[])[de]:n[he])||{}).F}else _.f=""+nr(w.formula,s,w.cell,U,R)}P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M(w.cell,_,t),o=w}break;case 7:case 519:if(o)o.val=w,_=b0(w,o.cell.ixfe,"s"),_.XF=F[_.ixfe],t.cellFormula&&(_.f=""+nr(o.formula,s,o.cell,U,R)),P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M(o.cell,_,t),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{x.push(w);var Ae=Ue(w[0].s);if(d=t.dense?(n[w[0].s.r]||[])[w[0].s.c]:n[Ae],t.cellFormula&&d){if(!o||!Ae||!d)break;d.f=""+nr(w[1],s,w[0],U,R),d.F=Je(w[0])}}break;case 1212:{if(!t.cellFormula)break;if(h){if(!o)break;m[Ue(o.cell)]=w[0],d=t.dense?(n[o.cell.r]||[])[o.cell.c]:n[Ue(o.cell)],(d||{}).f=""+nr(w[0],s,c,U,R)}}break;case 253:_=b0(f[w.isst].t,w.ixfe,"s"),f[w.isst].h&&(_.h=f[w.isst].h),_.XF=F[_.ixfe],P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:w.c,r:w.r},_,t);break;case 513:t.sheetStubs&&(_={ixfe:w.ixfe,XF:F[w.ixfe],t:"z"},P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:w.c,r:w.r},_,t));break;case 190:if(t.sheetStubs)for(var ye=w.c;ye<=w.C;++ye){var we=w.ixfe[ye-w.c];_={ixfe:we,XF:F[we],t:"z"},P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:ye,r:w.r},_,t)}break;case 214:case 516:case 4:_=b0(w.val,w.ixfe,"s"),_.XF=F[_.ixfe],P>0&&(_.z=V[_.ixfe>>8&63]),Ba(_,t,r.opts.Date1904),M({c:w.c,r:w.r},_,t);break;case 0:case 512:se===1&&(s=w);break;case 252:f=w;break;case 1054:if(R.biff==4){V[P++]=w[1];for(var De=0;De<P+163&&We[De]!=w[1];++De);De>=163&&ns(w[1],P+163)}else ns(w[1],w[0]);break;case 30:{V[P++]=w;for(var ke=0;ke<P+163&&We[ke]!=w;++ke);ke>=163&&ns(w,P+163)}break;case 229:G=G.concat(w);break;case 93:re[w.cmo[0]]=R.lastobj=w;break;case 438:R.lastobj.TxO=w;break;case 127:R.lastobj.ImData=w;break;case 440:for(g=w[0].s.r;g<=w[0].e.r;++g)for(p=w[0].s.c;p<=w[0].e.c;++p)d=t.dense?(n[g]||[])[p]:n[Ue({c:p,r:g})],d&&(d.l=w[1]);break;case 2048:for(g=w[0].s.r;g<=w[0].e.r;++g)for(p=w[0].s.c;p<=w[0].e.c;++p)d=t.dense?(n[g]||[])[p]:n[Ue({c:p,r:g})],d&&d.l&&(d.l.Tooltip=w[1]);break;case 28:{if(R.biff<=5&&R.biff>=2)break;d=t.dense?(n[w[0].r]||[])[w[0].c]:n[Ue(w[0])];var Pe=re[w[2]];d||(t.dense?(n[w[0].r]||(n[w[0].r]=[]),d=n[w[0].r][w[0].c]={t:"z"}):d=n[Ue(w[0])]={t:"z"},s.e.r=Math.max(s.e.r,w[0].r),s.s.r=Math.min(s.s.r,w[0].r),s.e.c=Math.max(s.e.c,w[0].c),s.s.c=Math.min(s.s.c,w[0].c)),d.c||(d.c=[]),v={a:w[1],t:Pe.TxO.t},d.c.push(v)}break;case 2173:tB(F[w.ixfe],w.ext);break;case 125:{if(!R.cellStyles)break;for(;w.e>=w.s;)j[w.e--]={width:w.w/256,level:w.level||0,hidden:!!(w.flags&1)},ve||(ve=!0,S1(w.w/256)),mo(j[w.e+1])}break;case 520:{var be={};w.level!=null&&(q[w.r]=be,be.level=w.level),w.hidden&&(q[w.r]=be,be.hidden=!0),w.hpt&&(q[w.r]=be,be.hpt=w.hpt,be.hpx=pl(w.hpt))}break;case 38:case 39:case 40:case 41:n["!margins"]||Nf(n["!margins"]={}),n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[le]]=w;break;case 161:n["!margins"]||Nf(n["!margins"]={}),n["!margins"].header=w.header,n["!margins"].footer=w.footer;break;case 574:w.RTL&&(E.Views[0].RTL=!0);break;case 146:k=w;break;case 2198:B=w;break;case 140:y=w;break;case 442:l?C.CodeName=w||C.name:E.WBProps.CodeName=w||"ThisWorkbook";break}}else ne||console.error("Missing Info for XLS Record 0x"+le.toString(16)),e.l+=ie}return r.SheetNames=Ja(i).sort(function(rt,Fe){return Number(rt)-Number(Fe)}).map(function(rt){return i[rt].name}),t.bookSheets||(r.Sheets=a),!r.SheetNames.length&&u["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=u)):r.Preamble=u,r.Sheets&&H.forEach(function(rt,Fe){r.Sheets[r.SheetNames[Fe]]["!autofilter"]=rt}),r.Strings=f,r.SSF=Kt(We),R.enc&&(r.Encryption=R.enc),B&&(r.Themes=B),r.Metadata={},y!==void 0&&(r.Metadata.Country=y),U.names.length>0&&(E.Names=U.names),r.Workbook=E,r}var D_={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function PH(e,t,r){var a=qe.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=u_(a,q7,D_.DSI);for(var i in n)t[i]=n[i]}catch(l){if(r.WTF)throw l}var s=qe.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=u_(s,J7,D_.SI);for(var f in o)t[f]==null&&(t[f]=o[f])}catch(l){if(r.WTF)throw l}t.HeadingPairs&&t.TitlesOfParts&&(v3(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function q3(e,t){t||(t={}),k1(t),A4(),t.codepage&&s1(t.codepage);var r,a;if(e.FullPaths){if(qe.find(e,"/encryption"))throw new Error("File is password-protected");r=qe.find(e,"!CompObj"),a=qe.find(e,"/Workbook")||qe.find(e,"/Book")}else{switch(t.type){case"base64":e=Sa(Kr(e));break;case"binary":e=Sa(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Yt(e,0),a={content:e}}var n,i;if(r&&FH(r),t.bookProps&&!t.bookSheets)n={};else{var s=Ze?"buffer":"array";if(a&&a.content)n=RH(a.content,t);else if((i=qe.find(e,"PerfectOffice_MAIN"))&&i.content)n=Of.to_workbook(i.content,(t.type=s,t));else if((i=qe.find(e,"NativeContent_MAIN"))&&i.content)n=Of.to_workbook(i.content,(t.type=s,t));else throw(i=qe.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&qe.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=_B(e))}var o={};return e.FullPaths&&PH(e,o,t),n.Props=n.Custprops=o,t.bookFiles&&(n.cfb=e),n}var zu={0:{f:pU},1:{f:_U},2:{f:kU},3:{f:SU},4:{f:wU},5:{f:DU},6:{f:IU},7:{f:CU},8:{f:OU},9:{f:LU},10:{f:RU},11:{f:PU},12:{f:yU},13:{f:bU},14:{f:EU},15:{f:TU},16:{f:X3},17:{f:MU},18:{f:AU},19:{f:m1},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:lH},40:{},42:{},43:{f:R9},44:{f:M9},45:{f:P9},46:{f:O9},47:{f:L9},48:{},49:{f:B7},50:{},51:{f:aB},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:A3},62:{f:FU},63:{f:fB},64:{f:$U},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:cr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:GU},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:xU},148:{f:gU,p:16},151:{f:UU},152:{},153:{f:oH},154:{},155:{},156:{f:sH},157:{},158:{},159:{T:1,f:JO},160:{T:-1},161:{T:1,f:gs},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:BU},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:rB},336:{T:-1},337:{f:nB,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Av},357:{},358:{},359:{},360:{T:1},361:{},362:{f:C3},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:HU},427:{f:VU},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:WU},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:mU},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:NU},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Av},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:gB},633:{T:1},634:{T:-1},635:{T:1,f:pB},636:{T:-1},637:{f:U7},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:qU},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:XU},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Iv={6:{f:fd},10:{f:On},12:{f:Lt},13:{f:Lt},14:{f:bt},15:{f:bt},16:{f:sr},17:{f:bt},18:{f:bt},19:{f:Lt},20:{f:v_},21:{f:v_},23:{f:C3},24:{f:g_},25:{f:bt},26:{},27:{},28:{f:dO},29:{},34:{f:bt},35:{f:p_},38:{f:sr},39:{f:sr},40:{f:sr},41:{f:sr},42:{f:bt},43:{f:bt},47:{f:m9},49:{f:KL},51:{f:Lt},60:{},61:{f:$L},64:{f:bt},65:{f:YL},66:{f:Lt},77:{},80:{},81:{},82:{},85:{f:Lt},89:{},90:{},91:{},92:{f:BL},93:{f:pO},94:{},95:{f:bt},96:{},97:{},99:{f:bt},125:{f:A3},128:{f:nO},129:{f:NL},130:{f:Lt},131:{f:bt},132:{f:bt},133:{f:UL},134:{},140:{f:wO},141:{f:Lt},144:{},146:{f:SO},151:{},152:{},153:{},154:{},155:{},156:{f:Lt},157:{},158:{},160:{f:kO},161:{f:CO},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:eO},190:{f:tO},193:{f:On},197:{},198:{},199:{},200:{},201:{},202:{f:bt},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Lt},220:{},221:{f:bt},222:{},224:{f:aO},225:{f:OL},226:{f:On},227:{},229:{f:vO},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:HL},253:{f:ZL},255:{f:VL},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:_3},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:bt},353:{f:On},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:sO},431:{f:bt},432:{},433:{},434:{},437:{},438:{f:xO},439:{f:bt},440:{f:_O},441:{},442:{f:Fl},443:{},444:{f:Lt},445:{},446:{},448:{f:On},449:{f:GL,r:2},450:{f:On},512:{f:h_},513:{f:DO},515:{f:iO},516:{f:jL},517:{f:d_},519:{f:bO},520:{f:zL},523:{},545:{f:m_},549:{f:c_},566:{},574:{f:XL},638:{f:QL},659:{},1048:{},1054:{f:qL},1084:{},1212:{f:uO},2048:{f:yO},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:A0},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:On},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:EO,r:12},2173:{f:eB,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:bt,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:lO,r:12},2197:{},2198:{f:K9,r:12},2199:{},2200:{},2201:{},2202:{f:cO,r:12},2203:{f:On},2204:{},2205:{},2206:{},2207:{},2211:{f:WL},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Lt},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:AO},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:TO},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:h_},1:{},2:{f:RO},3:{f:MO},4:{f:IO},5:{f:d_},7:{f:PO},8:{},9:{f:A0},11:{},22:{f:Lt},30:{f:JL},31:{},32:{},33:{f:m_},36:{},37:{f:c_},50:{f:LO},62:{},52:{},67:{},68:{f:Lt},69:{},86:{},126:{},127:{f:FO},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:OO},223:{},234:{},354:{},421:{},518:{f:fd},521:{f:A0},536:{f:g_},547:{f:p_},561:{},579:{},1030:{f:fd},1033:{f:A0},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function xa(e,t,r,a){var n=t;if(!isNaN(n)){var i=(r||[]).length||0,s=e.next(4);s.write_shift(2,n),s.write_shift(2,i),i>0&&s3(r)&&e.push(r)}}function k_(e,t){var r=t||{},a=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var n=e.match(/<table/i);if(!n)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),s=n.index,o=i&&i.index||e.length,f=i7(e.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,u=0,c=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},v=[];for(s=0;s<f.length;++s){var p=f[s].trim(),g=p.slice(0,3).toLowerCase();if(g=="<tr"){if(++l,r.sheetRows&&r.sheetRows<=l){--l;break}u=0;continue}if(!(g!="<td"&&g!="<th")){var m=p.split(/<\/t[dh]>/i);for(o=0;o<m.length;++o){var x=m[o].trim();if(x.match(/<t[dh]/i)){for(var _=x,y=0;_.charAt(0)=="<"&&(y=_.indexOf(">"))>-1;)_=_.slice(y+1);for(var F=0;F<v.length;++F){var k=v[F];k.s.c==u&&k.s.r<l&&l<=k.e.r&&(u=k.e.c+1,F=-1)}var E=Le(x.slice(0,x.indexOf(">")));h=E.colspan?+E.colspan:1,((c=+E.rowspan)>1||h>1)&&v.push({s:{r:l,c:u},e:{r:l+(c||1)-1,c:u+h-1}});var C=E.t||E["data-t"]||"";if(!_.length){u+=h;continue}if(_=Y4(_),d.s.r>l&&(d.s.r=l),d.e.r<l&&(d.e.r=l),d.s.c>u&&(d.s.c=u),d.e.c<u&&(d.e.c=u),!_.length){u+=h;continue}var T={t:"s",v:_};r.raw||!_.trim().length||C=="s"||(_==="TRUE"?T={t:"b",v:!0}:_==="FALSE"?T={t:"b",v:!1}:isNaN(ka(_))?isNaN(go(_).getDate())||(T={t:"d",v:$t(_)},r.cellDates||(T={t:"n",v:Ar(T.v)}),T.z=r.dateNF||We[14]):T={t:"n",v:ka(_)}),r.dense?(a[l]||(a[l]=[]),a[l][u]=T):a[Ue({r:l,c:u})]=T,u+=h}}}}return a["!ref"]=Je(d),v.length&&(a["!merges"]=v),a}function LH(e,t,r,a){for(var n=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,f=0,l=0;l<n.length;++l)if(!(n[l].s.r>r||n[l].s.c>s)&&!(n[l].e.r<r||n[l].e.c<s)){if(n[l].s.r<r||n[l].s.c<s){o=-1;break}o=n[l].e.r-n[l].s.r+1,f=n[l].e.c-n[l].s.c+1;break}if(!(o<0)){var u=Ue({r,c:s}),c=a.dense?(e[r]||[])[s]:e[u],h=c&&c.v!=null&&(c.h||h1(c.w||(En(c),c.w)||""))||"",d={};o>1&&(d.rowspan=o),f>1&&(d.colspan=f),a.editable?h='<span contenteditable="true">'+h+"</span>":c&&(d["data-t"]=c&&c.t||"z",c.v!=null&&(d["data-v"]=c.v),c.z!=null&&(d["data-z"]=c.z),c.l&&(c.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+c.l.Target+'">'+h+"</a>")),d.id=(a.id||"sjs")+"-"+u,i.push(w7("td",h,d))}}var v="<tr>";return v+i.join("")+"</tr>"}var OH='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',BH="</body></html>";function NH(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return ui(k_(r[0],t),t);var a=F1();return r.forEach(function(n,i){I1(a,k_(n,t),"Sheet"+(i+1))}),a}function UH(e,t,r){var a=[];return a.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function HH(e,t){var r=t||{},a=r.header!=null?r.header:OH,n=r.footer!=null?r.footer:BH,i=[a],s=Co(e["!ref"]);r.dense=Array.isArray(e),i.push(UH(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)i.push(LH(e,s,o,r));return i.push("</table>"+n),i.join("")}function J3(e,t,r){var a=r||{},n=0,i=0;if(a.origin!=null)if(typeof a.origin=="number")n=a.origin;else{var s=typeof a.origin=="string"?Tr(a.origin):a.origin;n=s.r,i=s.c}var o=t.getElementsByTagName("tr"),f=Math.min(a.sheetRows||1e7,o.length),l={s:{r:0,c:0},e:{r:n,c:i}};if(e["!ref"]){var u=Co(e["!ref"]);l.s.r=Math.min(l.s.r,u.s.r),l.s.c=Math.min(l.s.c,u.s.c),l.e.r=Math.max(l.e.r,u.e.r),l.e.c=Math.max(l.e.c,u.e.c),n==-1&&(l.e.r=n=u.e.r+1)}var c=[],h=0,d=e["!rows"]||(e["!rows"]=[]),v=0,p=0,g=0,m=0,x=0,_=0;for(e["!cols"]||(e["!cols"]=[]);v<o.length&&p<f;++v){var y=o[v];if(b_(y)){if(a.display)continue;d[p]={hidden:!0}}var F=y.children;for(g=m=0;g<F.length;++g){var k=F[g];if(!(a.display&&b_(k))){var E=k.hasAttribute("data-v")?k.getAttribute("data-v"):k.hasAttribute("v")?k.getAttribute("v"):Y4(k.innerHTML),C=k.getAttribute("data-z")||k.getAttribute("z");for(h=0;h<c.length;++h){var T=c[h];T.s.c==m+i&&T.s.r<p+n&&p+n<=T.e.r&&(m=T.e.c+1-i,h=-1)}_=+k.getAttribute("colspan")||1,((x=+k.getAttribute("rowspan")||1)>1||_>1)&&c.push({s:{r:p+n,c:m+i},e:{r:p+n+(x||1)-1,c:m+i+(_||1)-1}});var b={t:"s",v:E},M=k.getAttribute("data-t")||k.getAttribute("t")||"";E!=null&&(E.length==0?b.t=M||"z":a.raw||E.trim().length==0||M=="s"||(E==="TRUE"?b={t:"b",v:!0}:E==="FALSE"?b={t:"b",v:!1}:isNaN(ka(E))?isNaN(go(E).getDate())||(b={t:"d",v:$t(E)},a.cellDates||(b={t:"n",v:Ar(b.v)}),b.z=a.dateNF||We[14]):b={t:"n",v:ka(E)})),b.z===void 0&&C!=null&&(b.z=C);var R="",B=k.getElementsByTagName("A");if(B&&B.length)for(var G=0;G<B.length&&!(B[G].hasAttribute("href")&&(R=B[G].getAttribute("href"),R.charAt(0)!="#"));++G);R&&R.charAt(0)!="#"&&(b.l={Target:R}),a.dense?(e[p+n]||(e[p+n]=[]),e[p+n][m+i]=b):e[Ue({c:m+i,r:p+n})]=b,l.e.c<m+i&&(l.e.c=m+i),m+=_}}++p}return c.length&&(e["!merges"]=(e["!merges"]||[]).concat(c)),l.e.r=Math.max(l.e.r,p-1+n),e["!ref"]=Je(l),p>=f&&(e["!fullref"]=Je((l.e.r=o.length-v+p-1+n,l))),e}function Q3(e,t){var r=t||{},a=r.dense?[]:{};return J3(a,e,t)}function VH(e,t){return ui(Q3(e,t),t)}function b_(e){var t="",r=zH(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function zH(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function WH(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(a,n){return Array(parseInt(n,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
`),r=tt(t.replace(/<[^>]*>/g,""));return[r]}var F_={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function eE(e,t){var r=t||{},a=d1(e),n=[],i,s,o={name:""},f="",l=0,u,c,h={},d=[],v=r.dense?[]:{},p,g,m={value:""},x="",_=0,y=[],F=-1,k=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}},C=0,T={},b=[],M={},R=0,B=0,G=[],re=1,j=1,q=[],ve={Names:[]},U={},xe=["",""],se=[],P={},V="",H=0,z=!1,ae=!1,pe=0;for(hl.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");p=hl.exec(a);)switch(p[3]=p[3].replace(/_.*$/,"")){case"table":case"工作表":p[1]==="/"?(E.e.c>=E.s.c&&E.e.r>=E.s.r?v["!ref"]=Je(E):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=E.e.r&&(v["!fullref"]=v["!ref"],E.e.r=r.sheetRows-1,v["!ref"]=Je(E)),b.length&&(v["!merges"]=b),G.length&&(v["!rows"]=G),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),d.push(u.name),h[u.name]=v,ae=!1):p[0].charAt(p[0].length-2)!=="/"&&(u=Le(p[0],!1),F=k=-1,E.s.r=E.s.c=1e7,E.e.r=E.e.c=0,v=r.dense?[]:{},b=[],G=[],ae=!0);break;case"table-row-group":p[1]==="/"?--C:++C;break;case"table-row":case"行":if(p[1]==="/"){F+=re,re=1;break}if(c=Le(p[0],!1),c.行号?F=c.行号-1:F==-1&&(F=0),re=+c["number-rows-repeated"]||1,re<10)for(pe=0;pe<re;++pe)C>0&&(G[F+pe]={level:C});k=-1;break;case"covered-table-cell":p[1]!=="/"&&++k,r.sheetStubs&&(r.dense?(v[F]||(v[F]=[]),v[F][k]={t:"z"}):v[Ue({r:F,c:k})]={t:"z"}),x="",y=[];break;case"table-cell":case"数据":if(p[0].charAt(p[0].length-2)==="/")++k,m=Le(p[0],!1),j=parseInt(m["number-columns-repeated"]||"1",10),g={t:"z",v:null},m.formula&&r.cellFormula!=!1&&(g.f=E_(tt(m.formula))),(m.数据类型||m["value-type"])=="string"&&(g.t="s",g.v=tt(m["string-value"]||""),r.dense?(v[F]||(v[F]=[]),v[F][k]=g):v[Ue({r:F,c:k})]=g),k+=j-1;else if(p[1]!=="/"){++k,x="",_=0,y=[],j=1;var le=re?F+re-1:F;if(k>E.e.c&&(E.e.c=k),k<E.s.c&&(E.s.c=k),F<E.s.r&&(E.s.r=F),le>E.e.r&&(E.e.r=le),m=Le(p[0],!1),se=[],P={},g={t:m.数据类型||m["value-type"],v:null},r.cellFormula)if(m.formula&&(m.formula=tt(m.formula)),m["number-matrix-columns-spanned"]&&m["number-matrix-rows-spanned"]&&(R=parseInt(m["number-matrix-rows-spanned"],10)||0,B=parseInt(m["number-matrix-columns-spanned"],10)||0,M={s:{r:F,c:k},e:{r:F+R-1,c:k+B-1}},g.F=Je(M),q.push([M,g.F])),m.formula)g.f=E_(m.formula);else for(pe=0;pe<q.length;++pe)F>=q[pe][0].s.r&&F<=q[pe][0].e.r&&k>=q[pe][0].s.c&&k<=q[pe][0].e.c&&(g.F=q[pe][1]);switch((m["number-columns-spanned"]||m["number-rows-spanned"])&&(R=parseInt(m["number-rows-spanned"],10)||0,B=parseInt(m["number-columns-spanned"],10)||0,M={s:{r:F,c:k},e:{r:F+R-1,c:k+B-1}},b.push(M)),m["number-columns-repeated"]&&(j=parseInt(m["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Tt(m["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(m.value);break;case"percentage":g.t="n",g.v=parseFloat(m.value);break;case"currency":g.t="n",g.v=parseFloat(m.value);break;case"date":g.t="d",g.v=$t(m["date-value"]),r.cellDates||(g.t="n",g.v=Ar(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=r7(m["time-value"])/86400,r.cellDates&&(g.t="d",g.v=yc(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(m.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",m["string-value"]!=null&&(x=tt(m["string-value"]),y=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(z=!1,g.t==="s"&&(g.v=x||"",y.length&&(g.R=y),z=_==0),U.Target&&(g.l=U),se.length>0&&(g.c=se,se=[]),x&&r.cellText!==!1&&(g.w=x),z&&(g.t="z",delete g.v),(!z||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=F))for(var ie=0;ie<re;++ie){if(j=parseInt(m["number-columns-repeated"]||"1",10),r.dense)for(v[F+ie]||(v[F+ie]=[]),v[F+ie][k]=ie==0?g:Kt(g);--j>0;)v[F+ie][k+j]=Kt(g);else for(v[Ue({r:F+ie,c:k})]=g;--j>0;)v[Ue({r:F+ie,c:k+j})]=Kt(g);E.e.c<=k&&(E.e.c=k)}j=parseInt(m["number-columns-repeated"]||"1",10),k+=j-1,j=0,g={},x="",y=[]}U={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(p[1]==="/"){if((i=n.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&n.push([p[3],!0]);break;case"annotation":if(p[1]==="/"){if((i=n.pop())[0]!==p[3])throw"Bad state: "+i;P.t=x,y.length&&(P.R=y),P.a=V,se.push(P)}else p[0].charAt(p[0].length-2)!=="/"&&n.push([p[3],!1]);V="",H=0,x="",_=0,y=[];break;case"creator":p[1]==="/"?V=a.slice(H,p.index):H=p.index+p[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(p[1]==="/"){if((i=n.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&n.push([p[3],!1]);x="",_=0,y=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(p[1]==="/"){if(T[o.name]=f,(i=n.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&(f="",o=Le(p[0],!1),n.push([p[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(n[n.length-1][0]){case"time-style":case"date-style":s=Le(p[0],!1),f+=F_[p[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(n[n.length-1][0]){case"time-style":case"date-style":s=Le(p[0],!1),f+=F_[p[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(p[0].slice(-2)==="/>")break;if(p[1]==="/")switch(n[n.length-1][0]){case"number-style":case"date-style":case"time-style":f+=a.slice(l,p.index);break}else l=p.index+p[0].length;break;case"named-range":s=Le(p[0],!1),xe=ld(s["cell-range-address"]);var ne={Name:s.name,Ref:xe[0]+"!"+xe[1]};ae&&(ne.Sheet=d.length),ve.Names.push(ne);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(n[n.length-1][0])>-1)break;if(p[1]==="/"&&(!m||!m["string-value"])){var ue=WH(a.slice(_,p.index));x=(x.length>0?x+`
`:"")+ue[0]}else Le(p[0],!1),_=p.index+p[0].length;break;case"s":break;case"database-range":if(p[1]==="/")break;try{xe=ld(Le(p[0])["target-range-address"]),h[xe[0]]["!autofilter"]={ref:xe[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(p[1]!=="/"){if(U=Le(p[0],!1),!U.href)break;U.Target=tt(U.href),delete U.href,U.Target.charAt(0)=="#"&&U.Target.indexOf(".")>-1?(xe=ld(U.Target.slice(1)),U.Target="#"+xe[0]+"!"+xe[1]):U.Target.match(/^\.\.[\\\/]/)&&(U.Target=U.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(p[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(p)}}var w={Sheets:h,SheetNames:d,Workbook:ve};return r.bookSheets&&delete w.Sheets,w}function I_(e,t){t=t||{},aa(e,"META-INF/manifest.xml")&&iL(Pt(e,"META-INF/manifest.xml"),t);var r=Wr(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=eE(_t(r),t);return aa(e,"meta.xml")&&(a.Props=d3(Pt(e,"meta.xml"))),a}function M_(e,t){return eE(e,t)}function A1(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Mv(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):_t(vs(e))}function Rv(e){var t=e.reduce(function(n,i){return n+i.length},0),r=new Uint8Array(t),a=0;return e.forEach(function(n){r.set(n,a),a+=n.length}),r}function R_(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function GH(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,a=e[t+14]&1,n=t+13;n>=t;--n)a=a*256+e[n];return(e[t+15]&128?-a:a)*Math.pow(10,r-6176)}function gl(e,t){var r=t?t[0]:0,a=e[r]&127;e:if(e[r++]>=128&&(a|=(e[r]&127)<<7,e[r++]<128||(a|=(e[r]&127)<<14,e[r++]<128)||(a|=(e[r]&127)<<21,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),a}function Wt(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function or(e){for(var t=[],r=[0];r[0]<e.length;){var a=r[0],n=gl(e,r),i=n&7;n=Math.floor(n/8);var s=0,o;if(n==0)break;switch(i){case 0:{for(var f=r[0];e[r[0]++]>=128;);o=e.slice(f,r[0])}break;case 5:s=4,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=gl(e,r),o=e.slice(r[0],r[0]+s),r[0]+=s;break;default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a))}var l={data:o,type:i};t[n]==null?t[n]=[l]:t[n].push(l)}return t}function D1(e,t){return e?.map(function(r){return t(r.data)})||[]}function $H(e){for(var t,r=[],a=[0];a[0]<e.length;){var n=gl(e,a),i=or(e.slice(a[0],a[0]+n));a[0]+=n;var s={id:Wt(i[1][0].data),messages:[]};i[2].forEach(function(o){var f=or(o.data),l=Wt(f[3][0].data);s.messages.push({meta:f,data:e.slice(a[0],a[0]+l)}),a[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=Wt(i[3][0].data)>>>0>0),r.push(s)}return r}function XH(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],a=gl(t,r),n=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var o=s-59;s=t[r[0]],o>1&&(s|=t[r[0]+1]<<8),o>2&&(s|=t[r[0]+2]<<16),o>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=o}n.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var f=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,f=(t[r[0]++]&224)<<3,f|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(f=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(f=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),n=[Rv(n)],f==0)throw new Error("Invalid offset 0");if(f>n[0].length)throw new Error("Invalid offset beyond length");if(l>=f)for(n.push(n[0].slice(-f)),l-=f;l>=n[n.length-1].length;)n.push(n[n.length-1]),l-=n[n.length-1].length;n.push(n[0].slice(-f,-f+l))}}var u=Rv(n);if(u.length!=a)throw new Error("Unexpected length: ".concat(u.length," != ").concat(a));return u}function YH(e){for(var t=[],r=0;r<e.length;){var a=e[r++],n=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(XH(a,e.slice(r,r+n))),r+=n}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Rv(t)}function KH(e,t,r,a){var n=A1(e),i=n.getUint32(4,!0),s=(a>1?12:8)+R_(i&(a>1?3470:398))*4,o=-1,f=-1,l=NaN,u=new Date(2001,0,1);i&512&&(o=n.getUint32(s,!0),s+=4),s+=R_(i&(a>1?12288:4096))*4,i&16&&(f=n.getUint32(s,!0),s+=4),i&32&&(l=n.getFloat64(s,!0),s+=8),i&64&&(u.setTime(u.getTime()+n.getFloat64(s,!0)*1e3),s+=8);var c;switch(e[2]){case 0:break;case 2:c={t:"n",v:l};break;case 3:c={t:"s",v:t[f]};break;case 5:c={t:"d",v:u};break;case 6:c={t:"b",v:l>0};break;case 7:c={t:"n",v:l/86400};break;case 8:c={t:"e",v:0};break;case 9:if(o>-1)c={t:"s",v:r[o]};else if(f>-1)c={t:"s",v:t[f]};else if(!isNaN(l))c={t:"n",v:l};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return c}function ZH(e,t,r){var a=A1(e),n=a.getUint32(8,!0),i=12,s=-1,o=-1,f=NaN,l=NaN,u=new Date(2001,0,1);n&1&&(f=GH(e,i),i+=16),n&2&&(l=a.getFloat64(i,!0),i+=8),n&4&&(u.setTime(u.getTime()+a.getFloat64(i,!0)*1e3),i+=8),n&8&&(o=a.getUint32(i,!0),i+=4),n&16&&(s=a.getUint32(i,!0),i+=4);var c;switch(e[1]){case 0:break;case 2:c={t:"n",v:f};break;case 3:c={t:"s",v:t[o]};break;case 5:c={t:"d",v:u};break;case 6:c={t:"b",v:l>0};break;case 7:c={t:"n",v:l/86400};break;case 8:c={t:"e",v:0};break;case 9:if(s>-1)c={t:"s",v:r[s]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)));break;case 10:c={t:"n",v:f};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)))}return c}function jH(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return KH(e,t,r,e[0]);case 5:return ZH(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Qn(e){var t=or(e);return gl(t[1][0].data)}function P_(e,t){var r=or(t.data),a=Wt(r[1][0].data),n=r[3],i=[];return(n||[]).forEach(function(s){var o=or(s.data),f=Wt(o[1][0].data)>>>0;switch(a){case 1:i[f]=Mv(o[3][0].data);break;case 8:{var l=e[Qn(o[9][0].data)][0],u=or(l.data),c=e[Qn(u[1][0].data)][0],h=Wt(c.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var d=or(c.data);i[f]=d[3].map(function(v){return Mv(v.data)}).join("")}break}}),i}function qH(e,t){var r,a,n,i,s,o,f,l,u,c,h,d,v,p,g=or(e),m=Wt(g[1][0].data)>>>0,x=Wt(g[2][0].data)>>>0,_=((a=(r=g[8])==null?void 0:r[0])==null?void 0:a.data)&&Wt(g[8][0].data)>0||!1,y,F;if((i=(n=g[7])==null?void 0:n[0])!=null&&i.data&&t!=0)y=(o=(s=g[7])==null?void 0:s[0])==null?void 0:o.data,F=(l=(f=g[6])==null?void 0:f[0])==null?void 0:l.data;else if((c=(u=g[4])==null?void 0:u[0])!=null&&c.data&&t!=1)y=(d=(h=g[4])==null?void 0:h[0])==null?void 0:d.data,F=(p=(v=g[3])==null?void 0:v[0])==null?void 0:p.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var k=_?4:1,E=A1(y),C=[],T=0;T<y.length/2;++T){var b=E.getUint16(T*2,!0);b<65535&&C.push([T,b])}if(C.length!=x)throw"Expected ".concat(x," cells, found ").concat(C.length);var M=[];for(T=0;T<C.length-1;++T)M[C[T][0]]=F.subarray(C[T][1]*k,C[T+1][1]*k);return C.length>=1&&(M[C[C.length-1][0]]=F.subarray(C[C.length-1][1]*k)),{R:m,cells:M}}function JH(e,t){var r,a=or(t.data),n=(r=a?.[7])!=null&&r[0]?Wt(a[7][0].data)>>>0>0?1:0:-1,i=D1(a[5],function(s){return qH(s,n)});return{nrows:Wt(a[4][0].data)>>>0,data:i.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEach(function(f,l){if(s[o.R][l])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(l));s[o.R][l]=f}),s},[])}}function QH(e,t,r){var a,n=or(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Wt(n[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(i.e.c=(Wt(n[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=Je(i);var s=or(n[4][0].data),o=P_(e,e[Qn(s[4][0].data)][0]),f=(a=s[17])!=null&&a[0]?P_(e,e[Qn(s[17][0].data)][0]):[],l=or(s[3][0].data),u=0;l[1].forEach(function(c){var h=or(c.data),d=e[Qn(h[2][0].data)][0],v=Wt(d.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var p=JH(e,d);p.data.forEach(function(g,m){g.forEach(function(x,_){var y=Ue({r:u+m,c:_}),F=jH(x,o,f);F&&(r[y]=F)})}),u+=p.nrows})}function eV(e,t){var r=or(t.data),a={"!ref":"A1"},n=e[Qn(r[2][0].data)],i=Wt(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return QH(e,n[0],a),a}function tV(e,t){var r,a=or(t.data),n={name:(r=a[1])!=null&&r[0]?Mv(a[1][0].data):"",sheets:[]},i=D1(a[2],Qn);return i.forEach(function(s){e[s].forEach(function(o){var f=Wt(o.meta[1][0].data);f==6e3&&n.sheets.push(eV(e,o))})}),n}function rV(e,t){var r=F1(),a=or(t.data),n=D1(a[1],Qn);if(n.forEach(function(i){e[i].forEach(function(s){var o=Wt(s.meta[1][0].data);if(o==2){var f=tV(e,s);f.sheets.forEach(function(l,u){I1(r,l,u==0?f.name:f.name+"_"+u,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function cd(e){var t,r,a,n,i={},s=[];if(e.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(f){if(f.name.match(/\.iwa$/)){var l;try{l=YH(f.content)}catch(c){return console.log("?? "+f.content.length+" "+(c.message||c))}var u;try{u=$H(l)}catch(c){return console.log("## "+(c.message||c))}u.forEach(function(c){i[c.id]=c.messages,s.push(c.id)})}}),!s.length)throw new Error("File has no messages");var o=((n=(a=(r=(t=i?.[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:a[1])==null?void 0:n[0].data)&&Wt(i[1][0].meta[1][0].data)==1&&i[1][0];if(o||s.forEach(function(f){i[f].forEach(function(l){var u=Wt(l.meta[1][0].data)>>>0;if(u==1)if(!o)o=l;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return rV(i,o)}function aV(e){return function(r){for(var a=0;a!=e.length;++a){var n=e[a];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function k1(e){aV([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function nV(e){return qs.WS.indexOf(e)>-1?"sheet":e==qs.CS?"chart":e==qs.DS?"dialog":e==qs.MS?"macro":e&&e.length?e:"sheet"}function iV(e,t){if(!e)return 0;try{e=t.map(function(a){return a.id||(a.id=a.strRelID),[a.name,e["!id"][a.id].Target,nV(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function sV(e,t,r,a,n,i,s,o,f,l,u,c){try{i[a]=Pf(Wr(e,r,!0),t);var h=Pt(e,t),d;switch(o){case"sheet":d=hH(h,t,n,f,i[a],l,u,c);break;case"chart":if(d=dH(h,t,n,f,i[a],l,u,c),!d||!d["!drawel"])break;var v=uf(d["!drawel"].Target,t),p=Dv(v),g=cB(Wr(e,v,!0),Pf(Wr(e,p,!0),v)),m=uf(g,v),x=Dv(m);d=ZU(Wr(e,m,!0),m,f,Pf(Wr(e,x,!0),m),l,d);break;case"macro":d=vH(h,t,n,f,i[a],l,u,c);break;case"dialog":d=pH(h,t,n,f,i[a],l,u,c);break;default:throw new Error("Unrecognized sheet type "+o)}s[a]=d;var _=[];i&&i[a]&&Ja(i[a]).forEach(function(y){var F="";if(i[a][y].Type==qs.CMNT){F=uf(i[a][y].Target,t);var k=_H(Pt(e,F,!0),F,f);if(!k||!k.length)return;__(d,k,!1)}i[a][y].Type==qs.TCMNT&&(F=uf(i[a][y].Target,t),_=_.concat(dB(Pt(e,F,!0),f)))}),_&&_.length&&__(d,_,!0,f.people||[])}catch(y){if(f.WTF)throw y}}function qr(e){return e.charAt(0)=="/"?e.slice(1):e}function oV(e,t){if(N4(),t=t||{},k1(t),aa(e,"META-INF/manifest.xml")||aa(e,"objectdata.xml"))return I_(e,t);if(aa(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof cd<"u"){if(e.FileIndex)return cd(e);var r=qe.utils.cfb_new();return Xx(e).forEach(function(G){f7(r,G,o7(e,G))}),cd(r)}throw new Error("Unsupported NUMBERS file")}if(!aa(e,"[Content_Types].xml"))throw aa(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):aa(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var a=Xx(e),n=aL(Wr(e,"[Content_Types].xml")),i=!1,s,o;if(n.workbooks.length===0&&(o="xl/workbook.xml",Pt(e,o,!0)&&n.workbooks.push(o)),n.workbooks.length===0){if(o="xl/workbook.bin",!Pt(e,o,!0))throw new Error("Could not find workbook");n.workbooks.push(o),i=!0}n.workbooks[0].slice(-3)=="bin"&&(i=!0);var f={},l={};if(!t.bookSheets&&!t.bookProps){if(Bf=[],n.sst)try{Bf=xH(Pt(e,qr(n.sst)),n.sst,t)}catch(G){if(t.WTF)throw G}t.cellStyles&&n.themes.length&&(f=mH(Wr(e,n.themes[0].replace(/^\//,""),!0)||"",n.themes[0],t)),n.style&&(l=gH(Pt(e,qr(n.style)),n.style,f,t))}n.links.map(function(G){try{var re=Pf(Wr(e,Dv(qr(G))),G);return wH(Pt(e,qr(G)),re,G,t)}catch{}});var u=cH(Pt(e,qr(n.workbooks[0])),n.workbooks[0],t),c={},h="";n.coreprops.length&&(h=Pt(e,qr(n.coreprops[0]),!0),h&&(c=d3(h)),n.extprops.length!==0&&(h=Pt(e,qr(n.extprops[0]),!0),h&&fL(h,c,t)));var d={};(!t.bookSheets||t.bookProps)&&n.custprops.length!==0&&(h=Wr(e,qr(n.custprops[0]),!0),h&&(d=uL(h,t)));var v={};if((t.bookSheets||t.bookProps)&&(u.Sheets?s=u.Sheets.map(function(re){return re.name}):c.Worksheets&&c.SheetNames.length>0&&(s=c.SheetNames),t.bookProps&&(v.Props=c,v.Custprops=d),t.bookSheets&&typeof s<"u"&&(v.SheetNames=s),t.bookSheets?v.SheetNames:t.bookProps))return v;s={};var p={};t.bookDeps&&n.calcchain&&(p=yH(Pt(e,qr(n.calcchain)),n.calcchain));var g=0,m={},x,_;{var y=u.Sheets;c.Worksheets=y.length,c.SheetNames=[];for(var F=0;F!=y.length;++F)c.SheetNames[F]=y[F].name}var k=i?"bin":"xml",E=n.workbooks[0].lastIndexOf("/"),C=(n.workbooks[0].slice(0,E+1)+"_rels/"+n.workbooks[0].slice(E+1)+".rels").replace(/^\//,"");aa(e,C)||(C="xl/_rels/workbook."+k+".rels");var T=Pf(Wr(e,C,!0),C.replace(/_rels.*/,"s5s"));(n.metadata||[]).length>=1&&(t.xlmeta=TH(Pt(e,qr(n.metadata[0])),n.metadata[0],t)),(n.people||[]).length>=1&&(t.people=vB(Pt(e,qr(n.people[0])),t)),T&&(T=iV(T,u.Sheets));var b=Pt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=c.Worksheets;++g){var M="sheet";if(T&&T[g]?(x="xl/"+T[g][1].replace(/[\/]?xl\//,""),aa(e,x)||(x=T[g][1]),aa(e,x)||(x=C.replace(/_rels\/.*$/,"")+T[g][1]),M=T[g][2]):(x="xl/worksheets/sheet"+(g+1-b)+"."+k,x=x.replace(/sheet0\./,"sheet.")),_=x.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(g!=t.sheets)continue e;break;case"string":if(c.SheetNames[g].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var R=!1,B=0;B!=t.sheets.length;++B)typeof t.sheets[B]=="number"&&t.sheets[B]==g&&(R=1),typeof t.sheets[B]=="string"&&t.sheets[B].toLowerCase()==c.SheetNames[g].toLowerCase()&&(R=1);if(!R)continue e}}sV(e,x,_,c.SheetNames[g],g,m,s,M,t,u,f,l)}return v={Directory:n,Workbook:u,Props:c,Custprops:d,Deps:p,Sheets:s,SheetNames:c.SheetNames,Strings:Bf,Styles:l,Themes:f,SSF:Kt(We)},t&&t.bookFiles&&(e.files?(v.keys=a,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(G,re){G=G.replace(/^Root Entry[\/]/,""),v.keys.push(G),v.files[G]=e.FileIndex[re]}))),t&&t.bookVBA&&(n.vba.length>0?v.vbaraw=Pt(e,qr(n.vba[0]),!0):n.defaults&&n.defaults.bin===xB&&(v.vbaraw=Pt(e,"xl/vbaProject.bin",!0))),v}function fV(e,t){var r=t||{},a="Workbook",n=qe.find(e,a);try{if(a="/!DataSpaces/Version",n=qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(e9(n.content),a="/!DataSpaces/DataSpaceMap",n=qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=r9(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=a9(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);i9(n.content)}catch{}if(a="/EncryptionInfo",n=qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=s9(n.content);if(a="/EncryptedPackage",n=qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],n.content,r.password||"",r);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],n.content,r.password||"",r);throw new Error("File is password-protected")}function b1(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Kr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function lV(e,t){return qe.find(e,"EncryptedPackage")?fV(e,t):q3(e,t)}function uV(e,t){var r,a=e,n=t||{};return n.type||(n.type=Ze&&Buffer.isBuffer(e)?"buffer":"base64"),r=G4(a,n),oV(r,n)}function tE(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return Fv(e.slice(r),t);default:break e}return dl.to_workbook(e,t)}function cV(e,t){var r="",a=b1(e,t);switch(t.type){case"base64":r=Kr(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=us(e);break;default:throw new Error("Unrecognized type "+t.type)}return a[0]==239&&a[1]==187&&a[2]==191&&(r=_t(r)),t.type="binary",tE(r,t)}function hV(e,t){var r=e;return t.type=="base64"&&(r=Kr(r)),r=ll.utils.decode(1200,r.slice(2),"str"),t.type="binary",tE(r,t)}function dV(e){return e.match(/[^\x00-\x7F]/)?cf(e):e}function hd(e,t,r,a){return a?(r.type="string",dl.to_workbook(e,r)):dl.to_workbook(t,r)}function Pv(e,t){A4();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return Pv(new Uint8Array(e),(r=Kt(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var a=e,n=[0,0,0,0],i=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),co={},r.dateNF&&(co.dateNF=r.dateNF),r.type||(r.type=Ze&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=Ze?"buffer":"binary",a=e7(e),typeof Uint8Array<"u"&&!Ze&&(r.type="array")),r.type=="string"&&(i=!0,r.type="binary",r.codepage=65001,a=dV(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return r=Kt(r),r.type="array",Pv(o1(a),r)}switch((n=b1(a,r))[0]){case 208:if(n[1]===207&&n[2]===17&&n[3]===224&&n[4]===161&&n[5]===177&&n[6]===26&&n[7]===225)return lV(qe.read(a,r),r);break;case 9:if(n[1]<=8)return q3(a,r);break;case 60:return Fv(a,r);case 73:if(n[1]===73&&n[2]===42&&n[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(n[1]===68)return VO(a,r);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return UO.to_workbook(a,r);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?uV(a,r):hd(e,a,r,i);case 239:return n[3]===60?Fv(a,r):hd(e,a,r,i);case 255:if(n[1]===254)return hV(a,r);if(n[1]===0&&n[2]===2&&n[3]===0)return Of.to_workbook(a,r);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return Of.to_workbook(a,r);break;case 3:case 131:case 139:case 140:return x_.to_workbook(a,r);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return x9.to_workbook(a,r);break;case 10:case 13:case 32:return cV(a,r);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return BO.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?x_.to_workbook(a,r):hd(e,a,r,i)}function vV(e,t,r,a,n,i,s,o){var f=Zt(r),l=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),c=!0,h=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!s||e[r])for(var d=t.s.c;d<=t.e.c;++d){var v=s?e[r][d]:e[a[d]+f];if(v===void 0||v.t===void 0){if(l===void 0)continue;i[d]!=null&&(h[i[d]]=l);continue}var p=v.v;switch(v.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(i[d]!=null){if(p==null)if(v.t=="e"&&p===null)h[i[d]]=null;else if(l!==void 0)h[i[d]]=l;else if(u&&p===null)h[i[d]]=null;else continue;else h[i[d]]=u&&(v.t!=="n"||v.t==="n"&&o.rawNumbers!==!1)?p:En(v,p,o);p!=null&&(c=!1)}}return{row:h,isempty:c}}function Lv(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},a=0,n=1,i=[],s=0,o="",f={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},u=l.range!=null?l.range:e["!ref"];switch(l.header===1?a=1:l.header==="A"?a=2:Array.isArray(l.header)?a=3:l.header==null&&(a=0),typeof u){case"string":f=kt(u);break;case"number":f=kt(e["!ref"]),f.s.r=u;break;default:f=u}a>0&&(n=0);var c=Zt(f.s.r),h=[],d=[],v=0,p=0,g=Array.isArray(e),m=f.s.r,x=0,_={};g&&!e[m]&&(e[m]=[]);var y=l.skipHidden&&e["!cols"]||[],F=l.skipHidden&&e["!rows"]||[];for(x=f.s.c;x<=f.e.c;++x)if(!(y[x]||{}).hidden)switch(h[x]=zt(x),r=g?e[m][x]:e[h[x]+c],a){case 1:i[x]=x-f.s.c;break;case 2:i[x]=h[x];break;case 3:i[x]=l.header[x-f.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=En(r,null,l),p=_[s]||0,!p)_[s]=1;else{do o=s+"_"+p++;while(_[o]);_[s]=p,_[o]=1}i[x]=o}for(m=f.s.r+n;m<=f.e.r;++m)if(!(F[m]||{}).hidden){var k=vV(e,f,m,h,a,i,g,l);(k.isempty===!1||(a===1?l.blankrows!==!1:l.blankrows))&&(d[v++]=k.row)}return d.length=v,d}var L_=/"/g;function pV(e,t,r,a,n,i,s,o){for(var f=!0,l=[],u="",c=Zt(r),h=t.s.c;h<=t.e.c;++h)if(a[h]){var d=o.dense?(e[r]||[])[h]:e[a[h]+c];if(d==null)u="";else if(d.v!=null){f=!1,u=""+(o.rawNumbers&&d.t=="n"?d.v:En(d,null,o));for(var v=0,p=0;v!==u.length;++v)if((p=u.charCodeAt(v))===n||p===i||p===34||o.forceQuotes){u='"'+u.replace(L_,'""')+'"';break}u=="ID"&&(u='"ID"')}else d.f!=null&&!d.F?(f=!1,u="="+d.f,u.indexOf(",")>=0&&(u='"'+u.replace(L_,'""')+'"')):u="";l.push(u)}return o.blankrows===!1&&f?null:l.join(s)}function rE(e,t){var r=[],a=t??{};if(e==null||e["!ref"]==null)return"";var n=kt(e["!ref"]),i=a.FS!==void 0?a.FS:",",s=i.charCodeAt(0),o=a.RS!==void 0?a.RS:`
`,f=o.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),u="",c=[];a.dense=Array.isArray(e);for(var h=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],v=n.s.c;v<=n.e.c;++v)(h[v]||{}).hidden||(c[v]=zt(v));for(var p=0,g=n.s.r;g<=n.e.r;++g)(d[g]||{}).hidden||(u=pV(e,n,g,c,s,f,i,a),u!=null&&(a.strip&&(u=u.replace(l,"")),(u||a.blankrows!==!1)&&r.push((p++?o:"")+u)));return delete a.dense,r.join("")}function gV(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=rE(e,t);return r}function mV(e){var t="",r,a="";if(e==null||e["!ref"]==null)return[];var n=kt(e["!ref"]),i="",s=[],o,f=[],l=Array.isArray(e);for(o=n.s.c;o<=n.e.c;++o)s[o]=zt(o);for(var u=n.s.r;u<=n.e.r;++u)for(i=Zt(u),o=n.s.c;o<=n.e.c;++o)if(t=s[o]+i,r=l?(e[u]||[])[o]:e[t],a="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;a=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)a=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)a=""+r.v;else if(r.t=="b")a=r.v?"TRUE":"FALSE";else if(r.w!==void 0)a="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?a="'"+r.v:a=""+r.v}}f[f.length]=t+"="+a}return f}function aE(e,t,r){var a=r||{},n=+!a.skipHeader,i=e||{},s=0,o=0;if(i&&a.origin!=null)if(typeof a.origin=="number")s=a.origin;else{var f=typeof a.origin=="string"?Tr(a.origin):a.origin;s=f.r,o=f.c}var l,u={s:{c:0,r:0},e:{c:o,r:s+t.length-1+n}};if(i["!ref"]){var c=kt(i["!ref"]);u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),s==-1&&(s=c.e.r+1,u.e.r=s+t.length-1+n)}else s==-1&&(s=0,u.e.r=t.length-1+n);var h=a.header||[],d=0;t.forEach(function(p,g){Ja(p).forEach(function(m){(d=h.indexOf(m))==-1&&(h[d=h.length]=m);var x=p[m],_="z",y="",F=Ue({c:o+d,r:s+g+n});l=ml(i,F),x&&typeof x=="object"&&!(x instanceof Date)?i[F]=x:(typeof x=="number"?_="n":typeof x=="boolean"?_="b":typeof x=="string"?_="s":x instanceof Date?(_="d",a.cellDates||(_="n",x=Ar(x)),y=a.dateNF||We[14]):x===null&&a.nullError&&(_="e",x=0),l?(l.t=_,l.v=x,delete l.w,delete l.R,y&&(l.z=y)):i[F]=l={t:_,v:x},y&&(l.z=y))})}),u.e.c=Math.max(u.e.c,o+h.length-1);var v=Zt(s);if(n)for(d=0;d<h.length;++d)i[zt(d+o)+v]={t:"s",v:h[d]};return i["!ref"]=Je(u),i}function xV(e,t){return aE(null,e,t)}function ml(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var a=Tr(t);return e[a.r]||(e[a.r]=[]),e[a.r][a.c]||(e[a.r][a.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?ml(e,Ue(t)):ml(e,Ue({r:t,c:r||0}))}function _V(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function F1(){return{SheetNames:[],Sheets:{}}}function I1(e,t,r,a){var n=1;if(!r)for(;n<=65535&&e.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var s=i&&i[1]||r;for(++n;n<=65535&&e.SheetNames.indexOf(r=s+n)!=-1;++n);}if(aH(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function yV(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=_V(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r}function wV(e,t){return e.z=t,e}function nE(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function TV(e,t,r){return nE(e,"#"+t,r)}function SV(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function EV(e,t,r,a){for(var n=typeof t!="string"?t:kt(t),i=typeof t=="string"?t:Je(t),s=n.s.r;s<=n.e.r;++s)for(var o=n.s.c;o<=n.e.c;++o){var f=ml(e,s,o);f.t="n",f.F=i,delete f.v,s==n.s.r&&o==n.s.c&&(f.f=r,a&&(f.D=!0))}return e}var CV={encode_col:zt,encode_row:Zt,encode_cell:Ue,encode_range:Je,decode_col:g1,decode_row:p1,split_cell:O7,decode_cell:Tr,decode_range:Co,format_cell:En,sheet_add_aoa:f3,sheet_add_json:aE,sheet_add_dom:J3,aoa_to_sheet:Ao,json_to_sheet:xV,table_to_sheet:Q3,table_to_book:VH,sheet_to_csv:rE,sheet_to_txt:gV,sheet_to_json:Lv,sheet_to_html:HH,sheet_to_formulae:mV,sheet_to_row_object_array:Lv,sheet_get_cell:ml,book_new:F1,book_append_sheet:I1,book_set_sheet_visibility:yV,cell_set_number_format:wV,cell_set_hyperlink:nE,cell_set_internal_link:TV,cell_add_comment:SV,sheet_set_array_formula:EV,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function AV(e){const t=String(e);if(!t||/[\u4e00-\u9fff]/.test(t)||!/[ÃÂÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]/.test(t))return t;try{const r=decodeURIComponent(escape(t));if(/[\u4e00-\u9fff]/.test(r))return r}catch{}return t}function O_(e){return e==null?"":AV(e).trim()}function iE(e){if(e.length===0)return{headers:[],rows:[]};const t=e[0]??[],r=e.reduce((i,s)=>Math.max(i,s.length),t.length),a=Array.from({length:r},(i,s)=>O_(t[s])||`${s+1}`),n=e.slice(1).map(i=>Array.from({length:r},(s,o)=>O_(i[o])));return{headers:a,rows:n}}function DV(e){const t=SP.parse(e,{skipEmptyLines:!1});if(t.errors.length>0){const a=t.errors[0];throw new Error(`CSV 解析失败: ${a.message}`)}const r=t.data.map(a=>a??[]);return iE(r)}function B_(e){const t=Pv(e,{type:"array",codepage:936}),r=t.SheetNames[0];if(!r)throw new Error("Excel 文件中没有工作表");const a=t.Sheets[r],n=CV.sheet_to_json(a,{header:1,raw:!1,blankrows:!1});return iE(n)}function Wu(e){return e.trim()}function kV(e){const t=e.replace(/,/g,"").trim();if(!t)return null;const r=Number(t);return Number.isNaN(r)?null:r}function sE(e){return e.length===0?"(空)":e}function N_(e,t,r){return r.length===0?"未选择列":r.map(a=>{const n=t[a]??`${a+1}`,i=e[a]??"";return`${a+1} 列(${n}="${sE(i)}"`}).join("")}function bV(e,t){const r=t.sourceDataColumn===null?"":e[t.sourceDataColumn]??"";return t.sourceDescriptionColumns.length===0?Wu(r):t.sourceDescriptionColumns.map(n=>Wu(e[n]??"")).filter(n=>n.length>0).join(t.delimiter)}function FV(e,t,r){return t.targetDescriptionColumns.map(n=>{const i=Wu(e[n]??"");return i.length>0?(r.set(n,i),i):r.get(n)??""}).filter(n=>n.length>0).join(t.delimiter)}function IV(e,t){if(t.sourceDataColumn===null)throw new Error("必须选择源数据列");if(t.targetDescriptionColumns.length===0)throw new Error("必须至少选择一个目标描述列");const r=new Map,a=[];let n=0;const i=t.sourceDataColumn,s=e.headers[i]??`${i+1}`,o=new Map;e.rows.forEach((h,d)=>{const v=d+2,p=h[i]??"",g=Wu(p),m=kV(g);if(m===null){a.push(`${v} 行, 第 ${i+1} 列(${s}: 源数据不是有效数字,原始值="${sE(p)}",已跳过`),n+=1;return}const x=bV(h,t);if(!x){const k=N_(h,e.headers,t.sourceDescriptionColumns);a.push(`${v} 行: 源描述为空,字段=${k},已跳过`),n+=1;return}const _=FV(h,t,o);if(!_){const k=N_(h,e.headers,t.targetDescriptionColumns);a.push(`${v} 行: 目标描述为空,字段=${k},且无可继承的上方值,已跳过`),n+=1;return}const y=`${x}@@${_}`,F=r.get(y)??0;r.set(y,F+m)});const f=[],l=new Set,u=new Set;return r.forEach((h,d)=>{const[v,p]=d.split("@@");!v||!p||(l.add(v),u.add(p),f.push({source:v,target:p,value:h}))}),{nodes:[...Array.from(l).map(h=>({name:h,kind:"source"})),...Array.from(u).filter(h=>!l.has(h)).map(h=>({name:h,kind:"target"}))],links:f,meta:{droppedRows:n,warnings:a}}}function MV(e,t){return t==="source-to-target"?e:e.map(r=>({source:r.target,target:r.source,value:r.value}))}const RV=[{id:"figma-aegean",name:"Figma-Aegean",colors:["#264653","#287271","#2A9D8F","#8AB17D","#E9C46A","#EFB366","#F4A261","#F1965D","#EE8959","#E76F51"]},{id:"figma-violet",name:"Figma-Violet",colors:["#F72585","#B5179E","#7209B7","#560BAD","#480CA8","#3A0CA3","#3F37C9","#4361EE","#4895EF","#4CC9F0"]},{id:"figma-1",name:"Figma-01",colors:["#322F4F","#433E71","#554C93","#98958C","#DBDD85","#D8DD7D","#D5DB74","#CED56E","#C8CF67","#BAC35A"]},{id:"figma-2",name:"Figma-02",colors:["#2B3B51","#355971","#3F7690","#91A483","#E2D075","#E4C66F","#E4BD69","#E0B464","#DBAA5F","#D19654"]},{id:"figma-3",name:"Figma-03",colors:["#274D4C","#2B7171","#2F9595","#8B9395","#E79094","#EC878A","#EF7D7F","#EC7578","#E86D6F","#E15D5F"]},{id:"figma-4",name:"Figma-04",colors:["#3D3D3D","#5B5B5B","#797979","#9F9F9F","#C4C4C4","#BCBCBC","#B3B3B3","#AAAAAA","#A1A1A1","#8F8F8F"]},{id:"figma-5",name:"Figma-05",colors:["#F4F1DE","#EAB69F","#E07A5F","#8F5D5D","#3D405B","#5F797B","#81B29A","#9EB998","#BABF95","#F2CC8F"]},{id:"figma-6",name:"Figma-06",colors:["#F2F3E3","#D6DAA5","#B9C167","#7C805D","#3E3D52","#68667A","#938FA1","#A8A6A1","#BBBBA1","#E3E6A1"]},{id:"figma-7",name:"Figma-07",colors:["#F3F1E0","#E0C7A1","#CD9B62","#856D5D","#3D3F57","#63707A","#89A19D","#A2B09C","#BABD9A","#EBD896"]},{id:"figma-8",name:"Figma-08",colors:["#F3E6E7","#E7A8A9","#DA6A6B","#8C5D5D","#3D4F4E","#607A7A","#83A4A5","#9FA6A7","#BAA7A8","#F0A9AB"]},{id:"figma-9",name:"Figma-09",colors:["#EFEFEF","#C2C2C2","#959595","#6B6B6B","#424242","#717171","#A0A0A0","#ADADAD","#B8B8B8","#D0D0D0"]},{id:"figma-10",name:"Figma-10",colors:["#A8B868","#798575","#4A5282","#393F7C","#313679","#282C75","#3C3C9D","#4E4CC3","#645FD4","#7A71E4"]},{id:"figma-11",name:"Figma-11",colors:["#EF476F","#F78C6B","#FFD166","#83D483","#06D6A0","#001914","#118AB2","#0F7799","#0C637F","#073B4C"]},{id:"figma-12",name:"Figma-12",colors:["#D06A79","#984B8D","#5E2BA1","#482398","#3D1F94","#311B90","#3D39B6","#4857DC","#567BE3","#629FEB"]},{id:"figma-13",name:"Figma-13",colors:["#B0BC63","#CED674","#EDF186","#A19B9B","#5444B0","#493DAB","#3E35A6","#362E8E","#2C2676","#1A1646"]},{id:"figma-14",name:"Figma-14",colors:["#D07E6A","#E3AF6F","#F6E073","#91B98D","#2C90A6","#2A79A9","#2761AD","#225494","#1B467B","#102949"]},{id:"figma-15",name:"Figma-15",colors:["#E65D5C","#F1797A","#FC9498","#87A6A9","#10B7B9","#14ACAC","#17A09F","#148A88","#107271","#094443"]},{id:"figma-16",name:"Figma-16",colors:["#7D7D7D","#A8A8A8","#D2D2D2","#B2B2B2","#919191","#7E7E7E","#6A6A6A","#5B5B5B","#4C4C4C","#2D2D2D"]},{id:"figma-17",name:"Figma-17",colors:["#5F0F40","#7D092F","#9A031E","#CB4721","#FB8B24","#EF781C","#E36414","#AE5E26","#795838","#0F4C5C"]},{id:"figma-18",name:"Figma-18",colors:["#414731","#515A23","#616C15","#99A32C","#D1D942","#C2CB37","#B3BC2C","#909636","#6C6F41","#252157"]},{id:"figma-19",name:"Figma-19",colors:["#502939","#672F2A","#7E351A","#B27225","#E6B030","#D99F27","#CB8E1E","#9F782D","#72623C","#1A375A"]},{id:"figma-20",name:"Figma-20",colors:["#5B2A28","#771E1C","#921211","#C43133","#F55054","#E94347","#DC363A","#AA3E40","#774547","#125554"]},{id:"figma-21",name:"Figma-21",colors:["#2C2C2C","#303030","#333333","#6A6A6A","#A0A0A0","#919191","#808080","#6F6F6F","#5E5E5E","#3B3B3B"]},{id:"figma-22",name:"Figma-22",colors:["#366260","#516765","#6C6B6A","#8E6D6C","#B16E6D","#C76E6D","#DE6D6D","#E38384","#E6999A"]},{id:"figma-23",name:"Figma-23",colors:["#39476C","#515371","#695F75","#876F74","#A67F73","#BA8971","#CE936E","#D7AA7E","#DEC08F"]},{id:"figma-24",name:"Figma-24",colors:["#3F3D66","#52526B","#656770","#7E8270","#979D70","#A7AE6F","#B7C06D","#C5CC81","#D2D794"]},{id:"figma-25",name:"Figma-25",colors:["#4B4B4B","#575757","#626262","#707070","#7E7E7E","#878787","#8F8F8F","#A5A5A5","#BABABA"]},{id:"figma-26",name:"Figma-26",colors:["#363636","#474747","#585858","#9C9C9C","#E0E0E0","#A5A5A5","#696969","#565656","#424242"]},{id:"figma-27",name:"Figma-27",colors:["#293B3B","#235959","#1D7575","#84A6A6","#ECD7D8","#D58A8A","#BD3C3D","#993333","#732829"]},{id:"figma-28",name:"Figma-28",colors:["#2B363B","#2B4559","#295477","#899BA6","#EAE2D5","#CBA886","#AC6F37","#8B5B2F","#694626"]},{id:"figma-29",name:"Figma-29",colors:["#2F2E3B","#353159","#3A3376","#908EA6","#E7E8D6","#BEC388","#949D3A","#788031","#5B6127"]},{id:"figma-30",name:"Figma-30",colors:["#283D3B","#21585A","#197278","#83A8A6","#EDDDD4","#D99185","#E9B5AF","#9E3A2E","#772E25"]},{id:"figma-31",name:"Figma-31",colors:["#BDBDBD","#9D9D9D","#7E7E7E","#6B6B6B","#585858","#5D5D5D","#606060","#626262","#707070","#7D7D7D"]},{id:"figma-32",name:"Figma-32",colors:["#FB5860","#F74046","#F2292C","#F23433","#F23E39","#B86E68","#9C867F","#7F9E96","#5FB4AE","#3DCAC5"]},{id:"figma-33",name:"Figma-33",colors:["#F3D321","#E7B019","#DC8C10","#D67039","#D05460","#A2529A","#8C51B8","#7550D5","#5F5FE3","#476CEF"]},{id:"figma-34",name:"Figma-34",colors:["#E6EB40","#D1DA2F","#BDC91E","#AEBE36","#9FB24D","#838F81","#757E9C","#666CB6","#5F5FC8","#5650DA"]},{id:"figma-35",name:"Figma-35",colors:["#FFBE0B","#FD8A09","#FB5607","#FD2B3B","#FF006E","#C11CAD","#A22ACD","#8338EC","#5F5FF6","#3A86FF"]},{id:"figma-36",name:"Figma-36",colors:["#6E6E6E","#555555","#3C3C3C","#333333","#2F2F2F","#2A2A2A","#4A4A4A","#686868","#888888","#A8A8A8"]},{id:"figma-37",name:"Figma-37",colors:["#EC5B57","#AD635D","#6C6B64","#526660","#45645D","#37615B","#3E8983","#44B0AB","#4BC8C4","#52DFDD"]},{id:"figma-38",name:"Figma-38",colors:["#05668D","#04738F","#028090","#019493","#00A896","#01B698","#02C39A","#79DBAC","#B5E7B5","#F0F3BD"]},{id:"figma-39",name:"Figma-39",colors:["#292281","#2D2586","#31278B","#382D93","#3F329B","#4437A1","#4A3BA6","#9D96BA","#C7C4C4","#F1F0CD"]},{id:"figma-40",name:"Figma-40",colors:["#164588","#184E8B","#19568E","#1B6393","#1E7098","#22799B","#25829F","#8ABAB1","#BED6BB","#F0F2C3"]},{id:"figma-41",name:"Figma-41",colors:["#097C7A","#098281","#088988","#089393","#089D9E","#0AA4A6","#0BABAD","#7DC0C2","#B7CACC","#F0D4D6"]},{id:"figma-42",name:"Figma-42",colors:["#4D4D4D","#555555","#5C5C5C","#676767","#737373","#7C7C7C","#848484","#B8B8B8","#D2D2D2","#EBEBEB"]},{id:"figma-43",name:"Figma-43",colors:["#16697A","#2F8498","#489FB5","#65B0C1","#9DCAD2","#B8D4D8","#EDE7E3","#F2D7B5","#F6C787","#FFA62B"]},{id:"figma-44",name:"Figma-44",colors:["#352E74","#4E4892","#6862AE","#817BBB","#ADAACF","#C2C0D6","#EAEBE4","#E7E9BF","#E4E79A","#DDE44F"]},{id:"figma-45",name:"Figma-45",colors:["#254D77","#3E6795","#5782B2","#7297BE","#A5BBD1","#BDCAD7","#EBE8E3","#EDDFB9","#EDD68F","#EEC33A"]},{id:"figma-46",name:"Figma-46",colors:["#1A7271","#338F8E","#4CABAA","#68B9B8","#9FCECE","#B9D6D6","#ECE4E4","#F0C3C5","#F3A2A5","#FA6065"]},{id:"figma-47",name:"Figma-47",colors:["#525252","#6C6C6C","#878787","#9B9B9B","#BDBDBD","#CCCCCC","#E8E8E8","#DBDBDB","#CDCDCD","#B2B2B2"]}],PV="/assets/webicon-ajYrwN-u.png",LV="/assets/%E6%98%9F%E7%A8%8B%E6%A1%91%E5%9F%BA%E5%9B%BE-B-SY2I_4.svg",OV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20fill='none'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23FCFCFC'%20d='M22.774%2013.238a6.734%206.734%200%201%201-4.77-1.98%206.702%206.702%200%200%201%204.77%201.98Z'/%3e%3cpath%20fill='%2300E8CF'%20d='M18.005%206.76v4.498a6.703%206.703%200%200%200-4.769%201.98L10.05%2010.05a11.238%2011.238%200%200%201%207.955-3.292Z'/%3e%3cpath%20fill='%2370FFEF'%20d='M18.005.761V6.76a11.239%2011.239%200%200%200-7.955%203.292L5.813%205.815A17.162%2017.162%200%200%201%2018.005.76Z'/%3e%3cpath%20fill='%230064B5'%20d='m10.05%2010.051%203.186%203.187a6.702%206.702%200%200%200-1.98%204.768H6.759a11.239%2011.239%200%200%201%203.292-7.955Z'/%3e%3cpath%20fill='%230091FF'%20d='M10.05%2010.051a11.238%2011.238%200%200%200-3.292%207.955H.76A17.162%2017.162%200%200%201%205.813%205.815l4.237%204.236Z'/%3e%3cpath%20fill='%2331C4FF'%20d='M11.257%2018.006a6.7%206.7%200%200%200%201.98%204.769l-3.187%203.187a11.24%2011.24%200%200%201-3.292-7.956h4.499Z'/%3e%3cpath%20fill='%239EEBFF'%20d='M6.758%2018.006a11.24%2011.24%200%200%200%203.292%207.956l-4.237%204.236A17.162%2017.162%200%200%201%20.76%2018.006h5.998Z'/%3e%3cpath%20fill='%235F4A9E'%20d='M18.005%2024.754v4.5a11.239%2011.239%200%200%201-7.955-3.292l3.186-3.187a6.702%206.702%200%200%200%204.769%201.98Z'/%3e%3cpath%20fill='%239D87E0'%20d='M10.05%2025.962a11.24%2011.24%200%200%200%207.955%203.291v5.998a17.16%2017.16%200%200%201-12.192-5.053l4.237-4.236Z'/%3e%3cpath%20fill='%23FF468C'%20d='M25.96%2025.962a11.241%2011.241%200%200%201-7.955%203.291v-4.499a6.7%206.7%200%200%200%204.769-1.98l3.186%203.188Z'/%3e%3cpath%20fill='%23FFA1C8'%20d='m25.96%2025.962%204.236%204.236a17.162%2017.162%200%200%201-12.191%205.053v-5.998a11.239%2011.239%200%200%200%207.955-3.291Z'/%3e%3cpath%20fill='%23F03049'%20d='M24.753%2018.006h4.499a11.241%2011.241%200%200%201-3.292%207.956l-3.186-3.187a6.7%206.7%200%200%200%201.979-4.769Z'/%3e%3cpath%20fill='%23FF636E'%20d='M29.252%2018.006h5.998a17.163%2017.163%200%200%201-5.053%2012.192l-4.237-4.236a11.241%2011.241%200%200%200%203.292-7.956Z'/%3e%3cpath%20fill='%23FE8205'%20d='M25.96%2010.051a11.24%2011.24%200%200%201%203.292%207.955h-4.499a6.701%206.701%200%200%200-1.98-4.768l3.187-3.187Z'/%3e%3cpath%20fill='%23FFA426'%20d='M35.25%2018.006h-5.998a11.24%2011.24%200%200%200-3.292-7.955l4.236-4.236a17.163%2017.163%200%200%201%205.054%2012.191Z'/%3e%3cpath%20fill='%23FFC247'%20d='m25.96%2010.051-3.186%203.187a6.702%206.702%200%200%200-4.77-1.98V6.76a11.24%2011.24%200%200%201%207.956%203.292Z'/%3e%3cpath%20fill='%23FFFD78'%20d='M30.197%205.815%2025.96%2010.05a11.24%2011.24%200%200%200-7.955-3.292V.761a17.162%2017.162%200%200%201%2012.192%205.054Z'/%3e%3cpath%20fill='%23000'%20d='m32.863%2010.832%201.35-.653a19.376%2019.376%200%200%200-.854-1.56L32.08%209.4c.286.467.546.948.783%201.432Z'/%3e%3cpath%20fill='%23000'%20d='m34.88%2011.743-1.406.525c.589%201.601.924%203.284.993%204.988H29.97a11.883%2011.883%200%200%200-2.967-7.186l3.186-3.185c.317.347.62.707.905%201.08l1.19-.914a17.995%2017.995%200%200%200-29.629%2020.35l1.277-.786a16.459%2016.459%200%200%201-2.405-7.859H6.03a11.882%2011.882%200%200%200%202.985%207.18l-3.188%203.187a16.61%2016.61%200%200%201-.91-1.075l-1.19.914A18%2018%200%200%200%2034.88%2011.744ZM5.822%206.883l3.185%203.187a11.883%2011.883%200%200%200-2.965%207.186H1.543a16.345%2016.345%200%200%201%204.28-10.372Zm16.424%2015.365a5.998%205.998%200%201%201%201.757-4.242%205.96%205.96%200%200%201-1.757%204.242ZM12.2%2013.26a7.424%207.424%200%200%200-1.652%203.995H7.545a10.39%2010.39%200%200%201%202.533-6.116l2.121%202.12Zm10.55-1.06a7.423%207.423%200%200%200-3.995-1.651V7.546a10.39%2010.39%200%200%201%206.117%202.533L22.75%2012.2Zm-5.495-1.655a7.422%207.422%200%200%200-3.993%201.658l-2.124-2.123a10.39%2010.39%200%200%201%206.117-2.534v3Zm-6.711%208.211A7.423%207.423%200%200%200%2012.2%2022.75l-2.123%202.124a10.39%2010.39%200%200%201-2.533-6.117h2.999Zm2.715%205.057a7.423%207.423%200%200%200%203.996%201.65v3.004a10.39%2010.39%200%200%201-6.117-2.534l2.121-2.12Zm5.496%201.654a7.423%207.423%200%200%200%203.993-1.657l2.123%202.123a10.39%2010.39%200%200%201-6.116%202.534v-3Zm7.177-.594-2.121-2.121a7.423%207.423%200%200%200%201.651-3.996h3.003a10.39%2010.39%200%200%201-2.533%206.117Zm2.533-7.617h-2.999a7.423%207.423%200%200%200-1.658-3.993l2.124-2.123a10.39%2010.39%200%200%201%202.533%206.116Zm-9.71-15.729a16.358%2016.358%200%200%201%2010.36%204.31l-3.181%203.18a11.89%2011.89%200%200%200-7.18-2.985V1.527Zm-1.5.018v4.5a11.89%2011.89%200%200%200-7.187%202.964L6.882%205.824a16.345%2016.345%200%200%201%2010.373-4.279Zm-7.187%2025.459a11.89%2011.89%200%200%200%207.187%202.965v4.499a16.354%2016.354%200%200%201-10.373-4.28l3.186-3.184Zm8.687%207.481V29.98a11.898%2011.898%200%200%200%207.186-2.976l3.186%203.186a16.37%2016.37%200%200%201-10.372%204.295Zm11.42-5.37-3.18-3.18a11.882%2011.882%200%200%200%202.983-7.179h4.506a16.352%2016.352%200%200%201-4.31%2010.36Z'/%3e%3c/svg%3e",BV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='31'%20fill='none'%20viewBox='0%200%2040%2031'%3e%3cpath%20fill='%232420A8'%20d='M40%2024.68a5.17%205.17%200%200%201-.34%201.88%205.179%205.179%200%200%201-.96%201.58c-.413.467-.893.86-1.44%201.18-.547.32-1.14.533-1.78.64l.04.04H8.12c-.133.027-.347.04-.64.04-1.04%200-2.013-.2-2.92-.6-.907-.4-1.7-.94-2.38-1.62a7.48%207.48%200%200%201-1.6-2.38A7.365%207.365%200%200%201%200%2022.52c0-1.04.193-2.013.58-2.92a7.48%207.48%200%200%201%201.6-2.38%207.763%207.763%200%200%201%202.38-1.62c.907-.4%201.88-.6%202.92-.6h.04a4.85%204.85%200%200%201-.04-.6v-.64c0-1.893.36-3.68%201.08-5.36.72-1.68%201.707-3.14%202.96-4.38a14.132%2014.132%200%200%201%204.38-2.94C17.567.36%2019.347%200%2021.24%200c1.893%200%203.68.36%205.36%201.08%201.68.72%203.147%201.7%204.4%202.94%201.253%201.24%202.24%202.7%202.96%204.38.72%201.68%201.08%203.467%201.08%205.36%200%20.987-.107%201.953-.32%202.9a14.878%2014.878%200%200%201-.88%202.7%204.66%204.66%200%200%201%20.84-.08c.72%200%201.407.14%202.06.42.653.28%201.22.667%201.7%201.16.48.493.86%201.067%201.14%201.72.28.653.42%201.353.42%202.1Zm-14-4.76c.533%200%20.88-.06%201.04-.18.16-.12.053-.407-.32-.86-.373-.48-.787-1.107-1.24-1.88-.453-.773-.927-1.56-1.42-2.36-.493-.8-.993-1.547-1.5-2.24-.507-.693-1-1.2-1.48-1.52-.48-.347-.833-.533-1.06-.56-.227-.027-.553.133-.98.48-.48.4-.947.907-1.4%201.52a54.547%2054.547%200%200%200-1.38%201.96c-.467.693-.933%201.373-1.4%202.04a15.38%2015.38%200%200%201-1.42%201.76c-.48.48-.653.907-.52%201.28s.467.56%201%20.56h.64c.24%200%20.5.007.78.02.28.013.553.02.82.02h.68c.373.027.613.153.72.38.107.227.16.54.16.94%200%20.453-.007.853-.02%201.2-.013.347-.02.68-.02%201%200%20.32-.007.653-.02%201-.013.347-.02.747-.02%201.2%200%20.187.02.387.06.6.04.213.113.413.22.6s.267.34.48.46c.213.12.493.18.84.18h.92c.24%200%20.6.013%201.08.04.64%200%201.007-.16%201.1-.48.093-.32.14-.827.14-1.52%200-.613.007-1.167.02-1.66.013-.493.02-1.167.02-2.02%200-.613.06-1.087.18-1.42.12-.333.38-.5.78-.5.293%200%20.713-.007%201.26-.02.547-.013.967-.02%201.26-.02Z'/%3e%3c/svg%3e",NV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='42'%20fill='none'%20viewBox='0%200%2018%2042'%3e%3cpath%20fill='%2300E8CF'%20d='M12.723%205.08H3.775v.442c0%20.513.14.917.42%201.212.263.28.652.42%201.164.42h7.2c.56%200%20.987-.125%201.282-.373.264-.233.42-.59.466-1.072l.07-.955a.771.771%200%200%201%20.268-.56.882.882%200%200%201%20.594-.21.794.794%200%200%201%20.571.28.81.81%200%200%201%20.198.606l-.07.955c-.078.948-.42%201.678-1.025%202.19-.606.529-1.39.793-2.354.793h-7.2c-.947%200-1.732-.303-2.353-.909-.606-.606-.909-1.398-.909-2.377V.816c0-.218.082-.408.245-.571A.809.809%200%200%201%202.936%200h9.787c.217%200%20.411.082.582.245a.764.764%200%200%201%20.256.57v3.45a.754.754%200%200%201-.256.582.842.842%200%200%201-.582.233ZM.839%2011.068h10.043v-.979a.78.78%200%200%201%20.244-.57.809.809%200%200%201%20.595-.245c.217%200%20.407.082.57.245a.782.782%200%200%201%20.245.57v.98h3.659c.217%200%20.407.08.57.244a.782.782%200%200%201%20.245.57.808.808%200%200%201-.245.595.782.782%200%200%201-.57.245h-3.659v7.572a.809.809%200%200%201-.245.595.782.782%200%200%201-.57.244.81.81%200%200%201-.595-.244.809.809%200%200%201-.244-.595v-7.572H.839a.809.809%200%200%201-.594-.245.809.809%200%200%201-.245-.594c0-.218.082-.408.245-.571a.809.809%200%200%201%20.594-.245Zm11.045-9.414h-8.11V3.45h8.11V1.654ZM6.198%2014.866v2.866a.809.809%200%200%201-.245.595.782.782%200%200%201-.57.244.809.809%200%200%201-.595-.244.809.809%200%200%201-.244-.595v-2.866a.81.81%200%200%201%20.244-.594.809.809%200%200%201%20.595-.245c.217%200%20.407.082.57.245a.81.81%200%200%201%20.245.594ZM1.266%2041.161v-7.456c0-.233.081-.431.244-.594a.809.809%200%200%201%20.595-.245c.233%200%20.427.081.582.245a.83.83%200%200%201%20.233.594v6.64h4.66v-9.6H2.99a.83.83%200%200%201-.594-.233.771.771%200%200%201-.245-.582v-6.268c0-.218.082-.408.245-.571a.809.809%200%200%201%20.594-.245c.218%200%20.408.082.571.245a.782.782%200%200%201%20.245.57v5.453H7.58v-7.2a.81.81%200%200%201%20.245-.594.809.809%200%200%201%20.594-.245c.218%200%20.408.082.571.245a.809.809%200%200%201%20.245.594v7.2h3.775v-5.569a.78.78%200%200%201%20.244-.57.809.809%200%200%201%20.595-.245.78.78%200%200%201%20.57.244.782.782%200%200%201%20.245.571v6.385a.771.771%200%200%201-.245.582.801.801%200%200%201-.57.233H9.235v9.6h4.66v-6.757a.81.81%200%200%201%20.245-.594.782.782%200%200%201%20.57-.245.81.81%200%200%201%20.595.245.81.81%200%200%201%20.245.594v7.573a.809.809%200%200%201-.245.594.81.81%200%200%201-.594.245H2.105a.809.809%200%200%201-.595-.245.809.809%200%200%201-.244-.594Z'/%3e%3c/svg%3e",UV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20fill='none'%20viewBox='0%200%2048%2048'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='%238552A1'%20opacity='.2'/%3e%3ccircle%20cx='24'%20cy='24'%20r='18'%20fill='%238552A1'/%3e%3cpath%20fill='%23F3EDF7'%20d='M12.062%2018.99H17.4v1.942h-4.425c-.51%200-.834.025-.97.074-.287.1-.43.343-.43.728%200%20.324.137.573.41.747.15.1.555.15%201.214.15h1.475c.946%200%201.692.199%202.24.597.61.448.915%201.107.915%201.979%200%20.66-.187%201.263-.56%201.81-.274.436-.607.722-.999.86-.392.136-1.048.204-1.97.204H9.13V26.14h4.461c.548%200%20.921-.006%201.12-.019.448-.05.672-.305.672-.765%200-.373-.149-.629-.448-.765-.149-.075-.51-.112-1.082-.112h-1.512c-.598%200-1.055-.038-1.373-.112a2.451%202.451%200%200%201-.886-.411%202.399%202.399%200%200%201-.794-.98A3.14%203.14%200%200%201%209%2021.64c0-.908.33-1.63.99-2.165.398-.324%201.088-.486%202.072-.486Zm9.325%200%202.314%206.254%202.54-6.254h2.65l-3.92%209.091h-2.688l-3.622-9.09h2.726Zm12.946%200H39v9.036c0%20.51-.06.964-.177%201.362-.118.398-.29.734-.514%201.008a2.196%202.196%200%200%201-1.036.719c-.404.13-.992.196-1.764.196h-4.984V29.37h4.648c.548%200%20.905-.084%201.073-.252.168-.168.252-.514.252-1.037h-2.296c-.734%200-1.34-.077-1.82-.233a3.438%203.438%200%200%201-1.297-.774c-.909-.86-1.363-2.042-1.363-3.547%200-1.718.554-2.969%201.662-3.753a3.86%203.86%200%200%201%201.26-.606c.442-.119%201.005-.178%201.69-.178Zm2.166%207.15v-5.208h-2.073c-1.443%200-2.165.871-2.165%202.613%200%20.847.196%201.49.588%201.932.392.442.961.663%201.708.663h1.941Z'/%3e%3c/svg%3e",HV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20fill='none'%20viewBox='0%200%2048%2048'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='%232420A8'%20opacity='.2'/%3e%3ccircle%20cx='24'%20cy='24'%20r='18'%20fill='%232420A8'/%3e%3cpath%20fill='%23F3EDF7'%20d='M9%2031.301v-12.3h4.296c.833%200%201.463.051%201.891.155.429.104.839.31%201.23.615%201.065.832%201.598%202.112%201.598%203.837%200%201.31-.392%202.369-1.175%203.177a3.537%203.537%200%200%201-1.35.88c-.508.184-1.129.276-1.863.276H11.46v3.36H9Zm4.131-10.391h-1.67v5.122h1.505c.795%200%201.377-.172%201.744-.514.514-.453.771-1.15.771-2.093%200-.808-.202-1.43-.606-1.864-.404-.434-.985-.651-1.744-.651Zm6.683%207.031v-8.94h4.737c.71%200%201.251.051%201.625.155.373.104.713.29%201.019.56.624.575.936%201.481.936%202.717v5.508h-2.46v-5.783c0-.44-.098-.759-.294-.955-.196-.196-.52-.293-.973-.293h-2.13v7.031h-2.46ZM34.41%2019H39v8.886c0%20.502-.058.949-.174%201.34a2.807%202.807%200%200%201-.505.992%202.161%202.161%200%200%201-1.02.707c-.397.128-.975.193-1.734.193h-4.902v-1.91h4.571c.539%200%20.89-.082%201.056-.248.165-.165.248-.505.248-1.019h-2.258c-.723%200-1.32-.076-1.79-.23a3.381%203.381%200%200%201-1.277-.761c-.893-.845-1.34-2.008-1.34-3.488%200-1.69.545-2.92%201.634-3.69a3.806%203.806%200%200%201%201.24-.598c.434-.116.988-.174%201.661-.174Zm2.13%207.032V20.91h-2.038c-1.42%200-2.13.856-2.13%202.57%200%20.832.193%201.466.578%201.9.386.435.946.652%201.68.652h1.91Z'/%3e%3c/svg%3e",VV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='19'%20height='19'%20fill='none'%20viewBox='0%200%2019%2019'%3e%3cpath%20fill='%23FF7B15'%20d='M2.499%2015.435a2.105%202.105%200%200%201-2.105-2.104V6.314a2.105%202.105%200%200%201%204.21%200v7.017a2.105%202.105%200%200%201-2.105%202.104Zm6.548%200a2.105%202.105%200%200%201-2.105-2.104V2.104a2.105%202.105%200%200%201%204.21%200V13.33a2.105%202.105%200%200%201-2.105%202.104Zm6.548%200a2.105%202.105%200%200%201-2.105-2.104v-2.807a2.105%202.105%200%201%201%204.21%200v2.807a2.105%202.105%200%200%201-2.105%202.104Zm2.105%202.616H.394a.394.394%200%200%201%200-.788H17.7a.394.394%200%200%201%200%20.788Z'/%3e%3c/svg%3e",U_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23F9D11F'%20d='M11.327%2018.005H2.1a2.043%202.043%200%200%201-1.485-.651A2.291%202.291%200%200%201%200%2015.78V2.224C0%201.634.221%201.068.615.65A2.043%202.043%200%200%201%202.1%200h9.227a2%202%200%200%201%20.803.17c.255.111.487.275.682.481.195.207.35.452.455.722.106.27.16.559.16.85v13.558c0%20.292-.054.581-.16.851-.105.27-.26.515-.455.721a2.1%202.1%200%200%201-.681.482%202%202%200%200%201-.804.17Z'/%3e%3cpath%20fill='%234C86C6'%20d='m12.187%2014.972%205.097-5.396A2.776%202.776%200%200%200%2018%207.682a2.772%202.772%200%200%200-.745-1.88%202.473%202.473%200%200%200-1.777-.788%202.469%202.469%200%200%200-1.788.758l-5.096%205.396v3.804h3.593Z'/%3e%3cpath%20fill='%23fff'%20d='M2.506%2014.971h6.087v-1.705H2.506v1.705Zm0-10.801h8.415V2.464H2.506V4.17Zm2.328%202.842h3.938V5.306H4.834v1.706Z'/%3e%3cpath%20fill='%231565B2'%20d='m8.594%2011.168-.001%203.803%203.594.001%201.24-1.313V6.051l-4.833%205.117Z'/%3e%3c/svg%3e",H_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%20viewBox='0%200%2018%2018'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%238552A1'%20d='M9%200a9%209%200%200%200-9%209%209%209%200%200%200%209%209%209%209%200%200%200%209-9%209%209%200%200%200-9-9Zm5.934%206.21L8.16%2012.988a.843.843%200%200%201-.599.247.844.844%200%200%201-.6-.247L3.066%209.09a.846.846%200%201%201%201.198-1.197L7.56%2011.19l6.177-6.177a.847.847%200%201%201%201.197%201.198Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h18v18H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",V_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20fill='none'%20viewBox='0%200%2012%2012'%3e%3crect%20width='9.917'%20height='9.917'%20x='.875'%20y='.875'%20stroke='%23C9CDD4'%20stroke-width='.583'%20rx='4.958'/%3e%3c/svg%3e",z_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%238552A1'%20d='M15.5%200h-11A4.5%204.5%200%200%200%200%204.5v11A4.5%204.5%200%200%200%204.5%2020h11a4.5%204.5%200%200%200%204.5-4.5v-11A4.5%204.5%200%200%200%2015.5%200Zm1.394%206.902-7.445%207.444-.03.028-.033.028-.037.028-.035.025-.039.024-.036.021-.042.02-.037.018-.044.016-.037.014-.045.01-.038.01-.047.007H8.74l-.048-.006h-.035l-.05-.011-.033-.01-.049-.015-.032-.012-.048-.022-.031-.015-.047-.028-.03-.016c-.017-.011-.033-.024-.05-.036l-.022-.016a.887.887%200%200%201-.067-.06l-3.949-3.95a.883.883%200%200%201%20.01-1.26.904.904%200%200%201%201.261.033l3.304%203.303%206.82-6.82a.884.884%200%201%201%201.25%201.25l-.001-.002Z'/%3e%3cpath%20fill='%23fff'%20d='m15.645%205.654-6.82%206.82L5.523%209.17a.904.904%200%200%200-1.263-.03.883.883%200%200%200-.011%201.259l3.95%203.948a.866.866%200%200%200%20.068.06l.022.016a.711.711%200%200%200%20.05.037l.029.016.047.027.031.015.048.023.033.011.048.017.034.008.049.011h.035l.048.007h.208l.048-.008.037-.008.045-.012.037-.014.044-.016.038-.017.041-.02.036-.022.039-.023.035-.025.037-.028.033-.028.03-.028%207.444-7.444a.886.886%200%200%200%200-1.25.885.885%200%200%200-1.25%200l.001.003Z'/%3e%3c/svg%3e",W_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%20viewBox='0%200%2020%2020'%3e%3crect%20x='1'%20y='1'%20width='18'%20height='18'%20rx='4'%20stroke='%238552A1'%20stroke-width='2'/%3e%3c/svg%3e",dd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20fill='none'%20viewBox='0%200%2015%2015'%3e%3cpath%20fill='%23000'%20d='M7.5%200a7.5%207.5%200%200%200%200%2015%207.5%207.5%200%200%200%200-15Zm4.242%206.567L8.03%2010.28a.751.751%200%200%201-1.062%200l-3.71-3.713A.751.751%200%200%201%204.32%205.505L7.5%208.688l3.183-3.18a.75.75%200%201%201%201.06%201.06Z'/%3e%3c/svg%3e",vd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20fill='none'%20viewBox='0%200%2015%2015'%3e%3cpath%20fill='%23000'%20d='M15%207.5a7.5%207.5%200%201%201-15%200%207.5%207.5%200%200%201%2015%200Z'/%3e%3cpath%20fill='%23fff'%20d='M3%207.75A.75.75%200%200%201%203.75%207h7.5a.75.75%200%200%201%200%201.5h-7.5A.75.75%200%200%201%203%207.75Z'/%3e%3c/svg%3e",G_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='23'%20fill='none'%20viewBox='0%200%2024%2023'%3e%3cpath%20fill='%238552A1'%20d='M.858%202.656V0H24v2.656H.858Zm9.919%207.034V7.034h13.202V9.69H10.777Zm.02%205.464v-2.656h13.165v2.656H10.794h.003ZM.91%2022.085v-2.656h23.015v2.656H.91ZM0%209.621l4.109-4.18%204.106%204.182H0V9.62Zm.045%203.601h8.208L4.15%2017.356.045%2013.222Z'/%3e%3c/svg%3e",$_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23C9CDD4'%20d='M5.6%2018.4h12.8V5.6H5.6v12.8ZM24%2020.8a3.2%203.2%200%200%201-2.874%203.184L20.8%2024H3.2l-.326-.016a3.2%203.2%200%200%201-2.856-2.858L0%2020.8V3.2A3.2%203.2%200%200%201%203.2%200h17.6A3.2%203.2%200%200%201%2024%203.2v17.6Z'/%3e%3cpath%20fill='%238552A1'%20d='M17.4%2021.6a1.2%201.2%200%201%201%200%202.4H6.6a1.2%201.2%200%201%201%200-2.4h10.8ZM0%2017.4V6.6a1.2%201.2%200%201%201%202.4%200v10.8a1.2%201.2%200%201%201-2.4%200Zm21.6%200V6.6a1.2%201.2%200%201%201%202.4%200v10.8a1.2%201.2%200%201%201-2.4%200ZM17.4%200a1.2%201.2%200%201%201%200%202.4H6.6a1.2%201.2%200%200%201%200-2.4h10.8Z'/%3e%3c/svg%3e",zV="/assets/sankeyview-4v1IjNp4.svg",WV="/assets/information-D2vc0JhH.svg",GV="/assets/select-B3ZlOGIm.svg",X_="/assets/weixin-BLJIkz8T.svg",$V={class:"page"},XV={class:"top-bar"},YV={class:"brand"},KV=["src"],ZV=["src"],jV={class:"toolbar"},qV=["src"],JV={class:"theme-wheel-wrap"},QV=["onClick"],ez=["src"],tz={class:"tool-item"},rz=["src"],az=["onKeydown"],nz={class:"upload-text"},iz={class:"export-box"},sz=["src"],oz=["src"],fz=["src"],lz=["src"],uz=["src"],cz={class:"content"},hz={class:"left-pane"},dz={class:"panel block-panel select-panel"},vz=["src"],pz={class:"field-block"},gz=["src","alt"],mz={key:0,class:"column-list"},xz=["src"],_z={class:"column-label"},yz=["onClick"],wz=["src"],Tz={class:"field-block"},Sz=["src","alt"],Ez={key:0,class:"column-list"},Cz=["src"],Az={class:"column-label"},Dz=["onClick"],kz=["src"],bz={class:"field-block"},Fz=["src","alt"],Iz={key:0,class:"column-list"},Mz=["src"],Rz={class:"column-label"},Pz=["onClick"],Lz=["src"],Oz={class:"panel info-panel"},Bz=["src"],Nz={key:0,class:"info-log-list"},Uz={key:1,class:"info-log-empty"},Hz={class:"panel preview-panel"},Vz={class:"preview-head"},zz=["src"],Wz={class:"preview-controls"},Gz={class:"compact-control"},$z=["src"],Xz=["value"],Yz={class:"compact-control"},Kz=["src"],Zz=["value"],jz={class:"slider-label desktop-only"},qz=["src"],Jz={class:"slider-track-wrap"},Qz={class:"slider-label desktop-only"},eW=["src"],tW={class:"slider-track-wrap"},rW={key:2,class:"compact-control mobile-only"},aW=["value"],nW={class:"direction-switch-text"},iW={class:"label-position-control"},sW=["value"],oW={class:"target-align-control"},fW=["value"],pd="sankey-workspace-v1",Y_=1,K_=42,Z_=8,j_=8,lW=sC({__name:"App",setup(e){Kp([WM,RR,xP,dP]);const t=RV,r=mt("figma-violet"),a=mt(!1),n=mt(!1),i=mt("点击上传或将csv/xls文件拖到这里上传"),s=mt(""),o=mt(""),f=mt(null),l=mt(0),u=mt(null),c=mt(null),h=mt(null),d=mt(null),v=mt(null),p=mt(null);let g=null,m=0,x=null;const _=mt({}),y=mt(null),F=mt(null),k=mt(null),E=mt(!1),C=mt(!1),T=mt(!1),b=zf({sourceDataColumn:null,sourceDescriptionColumns:[],targetDescriptionColumns:[],delimiter:"-"}),M=mt("source-to-target"),R=mt(5),B=mt(24),G=mt("inner"),re=[{value:"inner",label:"内"},{value:"outer",label:"外"},{value:"left",label:"左"},{value:"right",label:"右"}],j=mt("between"),q=[{value:"between",label:"两端"},{value:"middle",label:"中间"},{value:"top",label:"顶部"},{value:"bottom",label:"底部"}],ve=[{value:"source-to-target",label:"源"},{value:"target-to-source",label:"目标"}],U=[0,5,10,15,20,25,30],xe=[0,10,20,30,40,50,60,70,80],se=zf({sourceData:!0,sourceDesc:!0,targetDesc:!0}),P=Jr(()=>{const S=t.findIndex(A=>A.id===r.value);return S>=0?S:0}),V=Jr(()=>t[P.value]??t[0]),H=Jr(()=>{const S=y.value?.headers??[];return S.length>0?S.map((A,D)=>A||`${D+1}`):["列1","列2","列3","列4"]}),z=Jr(()=>F.value?.meta.warnings.slice(0,8)??[]),ae=Jr(()=>b.sourceDataColumn===null?"未选择":H.value[b.sourceDataColumn]??`${b.sourceDataColumn+1}`),pe=Jr(()=>b.sourceDescriptionColumns.length===0?"未选择":b.sourceDescriptionColumns.map(S=>H.value[S]??`${S+1}`).join("")),le=Jr(()=>b.targetDescriptionColumns.length===0?"未选择":b.targetDescriptionColumns.map(S=>H.value[S]??`${S+1}`).join("")),ie=Jr(()=>{const S=[],A=y.value,D=F.value;return A?S.push({level:"info",text:`解析信息: 已加载 ${A.rows.length} 行,${A.headers.length}`}):S.push({level:"info",text:"解析信息: 尚未加载数据文件"}),D&&(S.push({level:"info",text:`解析信息: 已生成 ${D.nodes.length} 个节点,${D.links.length} 条连线`}),D.meta.droppedRows>0&&S.push({level:"warn",text:`告警: 已跳过 ${D.meta.droppedRows} 行异常数据`})),S.push({level:"info",text:`日志: 源数据列=${ae.value}`}),S.push({level:"info",text:`日志: 源标签列=${pe.value}`}),S.push({level:"info",text:`日志: 目标标签列=${le.value}`}),z.value.forEach(I=>{S.push({level:"warn",text:`告警: ${I}`})}),s.value&&S.push({level:"error",text:`错误: ${s.value}`}),o.value&&S.push({level:"error",text:`错误: ${o.value}`}),S});function ne(S,A,D){const I=S===0&&A>0,L=A===0&&S>0;if(!(!I&&!L))return D==="left"?"left":D==="right"?"right":D==="inner"?I?"right":"left":I?"left":"right"}function ue(S){const A=new Map,D=Math.max(0,l.value-B.value*2-Z_-j_);if(D<=0||S.length===0)return A;const I=new Map,L=new Map,O=new Map,Z=new Map,fe=[],te=new Set;S.forEach(et=>{L.set(et.source,(L.get(et.source)??0)+1),I.set(et.target,(I.get(et.target)??0)+1),O.set(et.source,(O.get(et.source)??0)+et.value),Z.set(et.target,(Z.get(et.target)??0)+et.value),te.has(et.source)||(te.add(et.source),fe.push(et.source)),te.has(et.target)||(te.add(et.target),fe.push(et.target))});const ee=fe.filter(et=>{const dr=I.get(et)??0,Ss=L.get(et)??0;return dr===0&&Ss>0}),Q=fe.filter(et=>{const dr=I.get(et)??0;return(L.get(et)??0)===0&&dr>0});if(ee.length===0||Q.length===0)return A;const ge=ee.reduce((et,dr)=>et+(O.get(dr)??0),0);if(ge<=0)return A;const Te=Math.max(0,R.value),Ce=Math.max(0,ee.length-1),_e=Math.max(0,D-Te*Ce),Ee=ge>0?_e/ge:0,Oe=ge*Ee,ht=Oe+Te*Ce;let lt=Te;j.value==="between"&&Q.length>1&&(lt=(ht-Oe)/(Q.length-1)),lt=Math.max(0,lt);const Ut=Oe+lt*Math.max(0,Q.length-1);let va=0;j.value==="middle"?va=(ht-Ut)/2:j.value==="bottom"&&(va=ht-Ut),va=Math.max(0,va);let an=va;return Q.forEach((et,dr)=>{A.set(et,an/D),an+=(Z.get(et)??0)*Ee,dr<Q.length-1&&(an+=lt)}),A}const w=Jr(()=>{const S=N.value,A=new Set,D=new Map,I=new Map,L=ue(S);S.forEach(Z=>{A.add(Z.source),A.add(Z.target),I.set(Z.source,(I.get(Z.source)??0)+1),D.set(Z.target,(D.get(Z.target)??0)+1)});const O=V.value.colors;return Array.from(A).map((Z,fe)=>{const te=D.get(Z)??0,ee=I.get(Z)??0,Q=ne(te,ee,G.value);return{name:Z,itemStyle:{color:O[fe%O.length]},localY:L.get(Z),label:Q?{position:Q}:void 0}})}),N=Jr(()=>F.value?MV(F.value.links,M.value):[]),W=Jr(()=>({backgroundColor:"#f7f8fa",tooltip:{trigger:"item"},series:[{type:"sankey",left:B.value,top:B.value+Z_,right:B.value,bottom:B.value+j_,nodeAlign:"justify",nodeGap:R.value,nodeWidth:14,roam:!0,label:{color:"#4e5969",fontSize:12},lineStyle:{color:"source",curveness:.45,opacity:.45},data:w.value,links:N.value}]}));tC(()=>{const S=y.value;if(!S){F.value=null,o.value="";return}if(b.sourceDataColumn===null){F.value=null,o.value="请选择源数据列";return}if(b.targetDescriptionColumns.length===0){F.value=null,o.value="请至少选择一个目标描述列";return}try{F.value=IV(S,{sourceDataColumn:b.sourceDataColumn,sourceDescriptionColumns:[...b.sourceDescriptionColumns],targetDescriptionColumns:[...b.targetDescriptionColumns],delimiter:b.delimiter}),o.value=""}catch(A){F.value=null,o.value=A instanceof Error?A.message:"构建桑基图失败"}}),pf(W,()=>{g&&g.setOption(W.value,!0)},{deep:!0}),pf(()=>[b.sourceDataColumn,b.sourceDescriptionColumns.join(","),b.targetDescriptionColumns.join(","),b.delimiter,M.value,R.value,B.value,r.value,G.value,j.value,se.sourceData,se.sourceDesc,se.targetDesc,k.value?.name??"",k.value?.base64.length??0],()=>{E.value||Ol()});function J(){K(),Y(),l.value=f.value?.clientHeight??l.value,g?.resize()}function K(){if(typeof window>"u")return;const S=window.visualViewport?.height??window.innerHeight;document.documentElement.style.setProperty("--app-vh",`${S*.01}px`)}function Y(){typeof window>"u"||(C.value=window.matchMedia("(max-width: 640px)").matches,T.value=window.matchMedia("(max-width: 1024px)").matches)}function oe(){const S=f.value;!S||typeof ResizeObserver>"u"||(x?.disconnect(),x=new ResizeObserver(()=>{J()}),x.observe(S))}function ce(){a.value=!1}function de(){const S=!a.value;a.value=S,S&&Yv(()=>{ke(),De(P.value)})}function he(S){r.value=S,a.value=!1}function Ae(){n.value=!n.value}function ye(S){const A=S.target;if(A){if(a.value){const D=d.value,I=h.value;!D?.contains(A)&&!I?.contains(A)&&(a.value=!1)}if(n.value){const D=p.value,I=v.value;!D?.contains(A)&&!I?.contains(A)&&(n.value=!1)}}}function we(){m!==0&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{const S=c.value;if(!S)return;const A=Math.round(S.scrollTop/K_),D=Math.max(0,Math.min(t.length-1,A));r.value=t[D]?.id??r.value})}function De(S,A){const D=c.value;if(!D)return;const I=S*K_,L=Math.max(0,D.scrollHeight-D.clientHeight),O=Math.max(0,Math.min(L,I));D.scrollTo({top:O,behavior:"auto"})}function ke(){if(!a.value)return;const S=h.value,A=d.value;if(!S||!A)return;const D=S.getBoundingClientRect(),I=A.offsetWidth||292,L=window.innerWidth,O=8;let Z=D.left+D.width/2-I/2;Z=Math.max(O,Math.min(L-I-O,Z));const fe=D.bottom+8,te=D.left+D.width/2,ee=Math.max(20,Math.min(I-20,te-Z));_.value={left:`${Z}px`,top:`${fe}px`,"--theme-arrow-left":`${ee}px`}}function Pe(S){const A=Math.abs(S-P.value);return A===0?1:A===1?.75:A===2?.5:.3}function be(S,A,D){const I=Math.max(1,D-A),L=Math.max(0,Math.min(1,(S-A)/I)),Z=(.5-L)*18;return{left:`calc(${L*100}% + ${Z}px)`}}function rt(S,A,D){const I=Math.max(1,D-A);return{"--slider-percent":`${Math.max(0,Math.min(1,(S-A)/I))*100}%`}}function Fe(S){if(b.sourceDescriptionColumns.includes(S)){b.sourceDescriptionColumns=b.sourceDescriptionColumns.filter(A=>A!==S);return}b.sourceDescriptionColumns=[...b.sourceDescriptionColumns,S].sort((A,D)=>A-D)}function Ve(S){se[S]=!se[S]}function Ye(S){if(b.targetDescriptionColumns.includes(S)){b.targetDescriptionColumns=b.targetDescriptionColumns.filter(A=>A!==S);return}b.targetDescriptionColumns=[...b.targetDescriptionColumns,S].sort((A,D)=>A-D)}function Qe(){M.value=M.value==="source-to-target"?"target-to-source":"source-to-target"}function qt(){u.value?.click()}function Nt(S){return S.trim().toLowerCase().replace(/[\s_-]+/g,"")}function Jt(S,A){const D=new Set(A.map(I=>Nt(I)));return S.findIndex(I=>D.has(Nt(I)))}function _s(S){const A=S.replace(/,/g,"").trim();return A?!Number.isNaN(Number(A)):!1}function ci(S){return(S.rows[0]??[]).findIndex(D=>_s(D??""))}function ys(S){const A=S.headers,D=Jt(A,["data","value","数据","值"]),I=ci(S),L=Jt(A,["source","源"]),O=Jt(A,["target","目标"]);b.sourceDataColumn=D>=0?D:I>=0?I:null,b.sourceDescriptionColumns=L>=0?[L]:[],b.targetDescriptionColumns=O>=0?[O]:[]}function Do(S){b.sourceDataColumn=S.sourceDataColumn,b.sourceDescriptionColumns=[...S.sourceDescriptionColumns],b.targetDescriptionColumns=[...S.targetDescriptionColumns],b.delimiter=S.delimiter}function Pl(S,A){const D=S.toLowerCase();if(D.endsWith(".csv")){const I=new TextDecoder().decode(A);return DV(I)}if(D.endsWith(".xlsx")||D.endsWith(".xls"))return B_(A);throw new Error("仅支持 .csv / .xlsx / .xls 文件")}function Ec(S){const A=new Uint8Array(S),D=32768;let I="";for(let L=0;L<A.length;L+=D){const O=A.subarray(L,L+D);I+=String.fromCharCode(...O)}return btoa(I)}function ws(S){const A=atob(S),D=new Uint8Array(A.length);for(let I=0;I<A.length;I+=1)D[I]=A.charCodeAt(I);return D.buffer}function Cc(S,A,D){return{name:S,type:A,base64:Ec(D)}}function Ll(S,A){const D=Math.max(A,1),I=ee=>Math.min(Math.max(ee,0),D-1),L=ee=>Array.isArray(ee)?ee.filter(Q=>Number.isInteger(Q)).map(Q=>I(Q)).filter((Q,ge,Te)=>Te.indexOf(Q)===ge).sort((Q,ge)=>Q-ge):[],O={sourceDataColumn:I(2),sourceDescriptionColumns:[I(0)].filter((ee,Q,ge)=>ge.indexOf(ee)===Q),targetDescriptionColumns:[I(2)].filter((ee,Q,ge)=>ge.indexOf(ee)===Q),delimiter:"-"};if(!S)return O;const Z=typeof S.sourceDataColumn=="number"&&Number.isInteger(S.sourceDataColumn)?I(S.sourceDataColumn):O.sourceDataColumn,fe=L(S.sourceDescriptionColumns),te=L(S.targetDescriptionColumns);return{sourceDataColumn:Z,sourceDescriptionColumns:fe,targetDescriptionColumns:te.length>0?te:O.targetDescriptionColumns,delimiter:typeof S.delimiter=="string"&&S.delimiter.length>0?S.delimiter:"-"}}function Ol(){if(typeof window>"u")return;const S={version:Y_,uploadedFile:k.value??void 0,mapping:{sourceDataColumn:b.sourceDataColumn,sourceDescriptionColumns:[...b.sourceDescriptionColumns],targetDescriptionColumns:[...b.targetDescriptionColumns],delimiter:b.delimiter},direction:M.value,nodeGap:R.value,chartPadding:B.value,selectedThemeId:r.value,labelPositionMode:G.value,targetAlignMode:j.value,sectionVisible:{sourceData:se.sourceData,sourceDesc:se.sourceDesc,targetDesc:se.targetDesc}};try{window.localStorage.setItem(pd,JSON.stringify(S))}catch(A){console.warn("工作区保存失败:",A)}}async function Ac(){if(typeof window>"u")return{restoredUploadedFile:!1};const S=window.localStorage.getItem(pd);if(!S)return{restoredUploadedFile:!1};E.value=!0;try{const A=JSON.parse(S);if(A.version!==Y_)return{restoredUploadedFile:!1};if((A.direction==="source-to-target"||A.direction==="target-to-source")&&(M.value=A.direction),typeof A.nodeGap=="number"&&Number.isFinite(A.nodeGap)&&(R.value=Math.max(0,Math.min(30,A.nodeGap))),typeof A.chartPadding=="number"&&Number.isFinite(A.chartPadding)&&(B.value=Math.max(0,Math.min(80,A.chartPadding))),typeof A.selectedThemeId=="string"&&t.some(L=>L.id===A.selectedThemeId)&&(r.value=A.selectedThemeId),(A.labelPositionMode==="inner"||A.labelPositionMode==="outer"||A.labelPositionMode==="left"||A.labelPositionMode==="right")&&(G.value=A.labelPositionMode),(A.targetAlignMode==="between"||A.targetAlignMode==="middle"||A.targetAlignMode==="top"||A.targetAlignMode==="bottom")&&(j.value=A.targetAlignMode),A.sectionVisible&&(typeof A.sectionVisible.sourceData=="boolean"&&(se.sourceData=A.sectionVisible.sourceData),typeof A.sectionVisible.sourceDesc=="boolean"&&(se.sourceDesc=A.sectionVisible.sourceDesc),typeof A.sectionVisible.targetDesc=="boolean"&&(se.targetDesc=A.sectionVisible.targetDesc)),!A.uploadedFile)return{restoredUploadedFile:!1,restoredMapping:A.mapping};const D=ws(A.uploadedFile.base64),I=Pl(A.uploadedFile.name,D);return y.value=I,k.value=A.uploadedFile,A.mapping?Do(Ll(A.mapping,I.headers.length)):ys(I),i.value=`已恢复: ${A.uploadedFile.name}${I.rows.length} 行)`,s.value="",{restoredUploadedFile:!0}}catch(A){return window.localStorage.removeItem(pd),console.warn("工作区恢复失败,已清理坏数据:",A),{restoredUploadedFile:!1}}finally{E.value=!1}}async function Bl(S){s.value="";try{const A=await S.arrayBuffer(),D=Pl(S.name,A);y.value=D,ys(D),k.value=Cc(S.name,S.type,A),i.value=`已加载: ${S.name}${D.rows.length} 行)`,Ol()}catch(A){s.value=A instanceof Error?A.message:"文件解析失败"}}async function Dc(S){const A=S.target,D=A.files?.[0];D&&(await Bl(D),A.value="")}async function kc(S){const A=S.dataTransfer?.files?.[0];A&&await Bl(A)}async function bc(){if(!y.value)try{const S=await fetch("/data/example0.xlsx",{cache:"no-store"});if(!S.ok)throw new Error(`示例文件加载失败: HTTP ${S.status}`);const A=await S.arrayBuffer(),D=B_(A);y.value=D,ys(D),k.value=null,i.value=`已加载: example0.xlsx${D.rows.length} 行)`,s.value=""}catch(S){s.value=S instanceof Error?S.message:"示例文件加载失败"}}function Ts(){const S=new Date,A=D=>String(D).padStart(2,"0");return`${S.getFullYear()}${A(S.getMonth()+1)}${A(S.getDate())}_${A(S.getHours())}${A(S.getMinutes())}${A(S.getSeconds())}`}function Nl(S,A){const D=document.createElement("a");D.href=S,D.download=A,document.body.append(D),D.click(),D.remove()}function Fc(){if(!g)return;const S=g.getWidth(),A=g.getHeight(),D=document.createElement("div");D.style.position="fixed",D.style.left="-99999px",D.style.top="-99999px",D.style.width=`${S}px`,D.style.height=`${A}px`,D.style.opacity="0",D.style.pointerEvents="none",document.body.append(D);let I=null;try{I=Hm(D,void 0,{renderer:"svg",width:S,height:A}),I.setOption(g.getOption(),!0);const L=I.getDataURL({type:"svg",backgroundColor:"#ffffff"});Nl(L,`sankey_${Ts()}.svg`)}finally{I?.dispose(),D.remove()}}function Ic(){if(!g)return;const S=g.getDataURL({type:"png",backgroundColor:"#ffffff",pixelRatio:2});Nl(S,`sankey_${Ts()}.png`)}return Fy(()=>{const S=f.value;S&&(K(),Y(),g=Hm(S,void 0,{renderer:"canvas"}),l.value=S.clientHeight,g.setOption(W.value),oe(),J(),(async()=>{const{restoredUploadedFile:A,restoredMapping:D}=await Ac();A||(await bc(),D&&y.value&&Do(Ll(D,y.value.headers.length)))})(),window.addEventListener("resize",J),window.visualViewport?.addEventListener("resize",J),window.visualViewport?.addEventListener("scroll",J),window.addEventListener("resize",ke),window.addEventListener("scroll",ke,!0),window.addEventListener("pointerdown",ye))}),Iy(()=>{window.removeEventListener("resize",J),window.visualViewport?.removeEventListener("resize",J),window.visualViewport?.removeEventListener("scroll",J),window.removeEventListener("resize",ke),window.removeEventListener("scroll",ke,!0),window.removeEventListener("pointerdown",ye),x?.disconnect(),x=null,g?.dispose(),g=null,m!==0&&(cancelAnimationFrame(m),m=0)}),(S,A)=>(it(),ut("div",$V,[me("header",XV,[me("div",YV,[me("img",{src:Ke(PV),alt:"webicon",class:"logo"},null,8,KV),me("img",{src:Ke(LV),alt:"星程桑基图",class:"title-logo"},null,8,ZV)]),me("div",jV,[me("div",{ref_key:"themeTriggerRef",ref:h,class:"tool-item theme-trigger"},[A[15]||(A[15]=me("span",{class:"tool-label"},"选择主题",-1)),me("button",{class:"icon-btn",type:"button",title:"选择主题","aria-label":"选择主题",onClick:pi(de,["stop"])},[me("img",{src:Ke(OV),alt:"choose-color",title:"选择主题"},null,8,qV)]),a.value?(it(),ut("div",{key:0,ref_key:"themePopoverRef",ref:d,class:"theme-popover",style:Ta(_.value),onClick:A[0]||(A[0]=pi(()=>{},["stop"]))},[A[14]||(A[14]=me("div",{class:"theme-header"},"选择配色主题",-1)),me("div",JV,[me("div",{ref_key:"themeWheelRef",ref:c,class:"theme-wheel",onScroll:we},[(it(!0),ut(Ct,null,pa(Ke(t),(D,I)=>(it(),ut("button",{key:D.id,class:eo(["theme-row",{selected:r.value===D.id}]),style:Ta({opacity:Pe(I)}),type:"button",onClick:L=>he(D.id)},[me("img",{src:r.value===D.id?Ke(H_):Ke(V_),alt:"主题选择"},null,8,ez),me("div",{class:"palette",style:Ta({gridTemplateColumns:`repeat(${D.colors.length}, 1fr)`})},[(it(!0),ut(Ct,null,pa(D.colors,L=>(it(),ut("span",{key:`${D.id}-${L}`,class:"palette-cell",style:Ta({backgroundColor:L})},null,4))),128))],4)],14,QV))),128))],544),A[13]||(A[13]=me("div",{class:"theme-mask"},null,-1))])],4)):Fo("",!0)],512),me("div",tz,[A[16]||(A[16]=me("span",{class:"tool-label"},"文件上传",-1)),me("button",{class:"icon-btn",type:"button",title:"上传文件","aria-label":"上传文件",onClick:qt},[me("img",{src:Ke(BV),alt:"upload",title:"上传文件"},null,8,rz)])]),me("label",{class:"upload-area",onDragover:A[1]||(A[1]=pi(()=>{},["prevent"])),onDrop:pi(kc,["prevent"]),onKeydown:bA(pi(qt,["prevent"]),["enter"]),onClick:ce},[me("input",{ref_key:"fileInputRef",ref:u,class:"hidden-input",type:"file",accept:".csv,.xls,.xlsx",onChange:Dc},null,544),me("span",nz,br(i.value),1)],40,az),me("div",iz,[me("img",{src:Ke(NV),alt:"export",class:"export-main",title:"导出"},null,8,sz),me("button",{class:"icon-btn export-item",type:"button",title:"导出 SVG","aria-label":"导出 SVG",onClick:Fc},[me("img",{src:Ke(UV),alt:"export-svg",title:"导出 SVG"},null,8,oz)]),me("button",{class:"icon-btn export-item",type:"button",title:"导出 PNG","aria-label":"导出 PNG",onClick:Ic},[me("img",{src:Ke(HV),alt:"export-png",title:"导出 PNG"},null,8,fz)])]),me("div",{ref_key:"weixinTriggerRef",ref:v,class:"tool-item weixin-trigger"},[me("button",{class:"icon-btn weixin-btn",type:"button",title:"微信小程序","aria-label":"微信小程序",onClick:pi(Ae,["stop"])},[me("img",{src:Ke(X_),alt:"weixin",title:"微信小程序"},null,8,lz)]),n.value?(it(),ut("div",{key:0,ref_key:"weixinPopoverRef",ref:p,class:"weixin-popover",onClick:A[2]||(A[2]=pi(()=>{},["stop"]))},[A[17]||(A[17]=me("div",{class:"weixin-header"},"微信扫码使用小程序",-1)),me("img",{src:Ke(X_),alt:"小程序二维码",class:"weixin-qrcode"},null,8,uz)],512)):Fo("",!0)],512)])]),me("main",cz,[me("section",hz,[me("article",dz,[me("img",{src:Ke(GV),alt:"数据选择器",class:"panel-title-svg panel-title-select"},null,8,vz),me("div",pz,[me("button",{class:"field-title-wrap",type:"button",onClick:A[3]||(A[3]=D=>Ve("sourceData"))},[me("img",{src:se.sourceData?Ke(vd):Ke(dd),alt:se.sourceData?"折叠":"展开",class:"expand-icon"},null,8,gz),A[18]||(A[18]=me("h3",null,"源数据(link value)",-1))]),se.sourceData?(it(),ut("div",mz,[(it(!0),ut(Ct,null,pa(H.value,(D,I)=>(it(),ut("div",{key:`source-data-${I}`,class:"column-row"},[me("img",{src:Ke(VV),alt:"数据列",class:"column-icon"},null,8,xz),me("span",_z,br(D),1),me("button",{class:"select-btn",type:"button",onClick:L=>b.sourceDataColumn=I},[me("img",{src:b.sourceDataColumn===I?Ke(H_):Ke(V_),alt:"单选"},null,8,wz)],8,yz)]))),128))])):Fo("",!0)]),me("div",Tz,[me("button",{class:"field-title-wrap",type:"button",onClick:A[4]||(A[4]=D=>Ve("sourceDesc"))},[me("img",{src:se.sourceDesc?Ke(vd):Ke(dd),alt:se.sourceDesc?"折叠":"展开",class:"expand-icon"},null,8,Sz),A[19]||(A[19]=me("h3",null,"源标签(Source label)",-1))]),se.sourceDesc?(it(),ut("div",Ez,[(it(!0),ut(Ct,null,pa(H.value,(D,I)=>(it(),ut("div",{key:`source-desc-${I}`,class:"column-row"},[me("img",{src:Ke(U_),alt:"源标签列",class:"column-icon"},null,8,Cz),me("span",Az,br(D),1),me("button",{class:"select-btn",type:"button",onClick:L=>Fe(I)},[me("img",{src:b.sourceDescriptionColumns.includes(I)?Ke(z_):Ke(W_),alt:"复选"},null,8,kz)],8,Dz)]))),128))])):Fo("",!0)]),me("div",bz,[me("button",{class:"field-title-wrap",type:"button",onClick:A[5]||(A[5]=D=>Ve("targetDesc"))},[me("img",{src:se.targetDesc?Ke(vd):Ke(dd),alt:se.targetDesc?"折叠":"展开",class:"expand-icon"},null,8,Fz),A[20]||(A[20]=me("h3",null,"目标标签(target label)",-1))]),se.targetDesc?(it(),ut("div",Iz,[(it(!0),ut(Ct,null,pa(H.value,(D,I)=>(it(),ut("div",{key:`target-desc-${I}`,class:"column-row"},[me("img",{src:Ke(U_),alt:"目标标签列",class:"column-icon"},null,8,Mz),me("span",Rz,br(D),1),me("button",{class:"select-btn",type:"button",onClick:L=>Ye(I)},[me("img",{src:b.targetDescriptionColumns.includes(I)?Ke(z_):Ke(W_),alt:"复选"},null,8,Lz)],8,Pz)]))),128))])):Fo("",!0)])]),me("article",Oz,[me("img",{src:Ke(WV),alt:"信息日志",class:"panel-title-svg panel-title-info"},null,8,Bz),ie.value.length>0?(it(),ut("ul",Nz,[(it(!0),ut(Ct,null,pa(ie.value,(D,I)=>(it(),ut("li",{key:`${D.level}-${I}-${D.text}`,class:eo(["info-log-item",`level-${D.level}`])},br(D.text),3))),128))])):(it(),ut("p",Uz,"暂无日志"))])]),me("section",Hz,[me("div",Vz,[me("img",{src:Ke(zV),alt:"桑基图预览",title:"桑基图预览",class:"panel-title-svg panel-title-preview"},null,8,zz),me("div",Wz,[T.value?(it(),ut(Ct,{key:0},[me("label",Gz,[me("img",{src:Ke(G_),alt:"间距",title:"间距",class:"slider-icon"},null,8,$z),hi(me("select",{"onUpdate:modelValue":A[6]||(A[6]=D=>R.value=D),class:"compact-select","aria-label":"间距"},[(it(),ut(Ct,null,pa(U,D=>me("option",{key:`gap-${D}`,value:D},br(D),9,Xz)),64))],512),[[Io,R.value,void 0,{number:!0}]])]),me("label",Yz,[me("img",{src:Ke($_),alt:"边距",title:"边距",class:"slider-icon"},null,8,Kz),hi(me("select",{"onUpdate:modelValue":A[7]||(A[7]=D=>B.value=D),class:"compact-select","aria-label":"边距"},[(it(),ut(Ct,null,pa(xe,D=>me("option",{key:`padding-${D}`,value:D},br(D),9,Zz)),64))],512),[[Io,B.value,void 0,{number:!0}]])])],64)):(it(),ut(Ct,{key:1},[me("label",jz,[me("img",{src:Ke(G_),alt:"间距",title:"间距",class:"slider-icon"},null,8,qz),me("div",Jz,[me("span",{class:"slider-value",style:Ta(be(R.value,0,30))},br(R.value),5),hi(me("input",{"onUpdate:modelValue":A[8]||(A[8]=D=>R.value=D),class:"slider-input",style:Ta(rt(R.value,0,30)),type:"range",min:"0",max:"30","aria-label":"间距"},null,4),[[lg,R.value,void 0,{number:!0}]])])]),me("label",Qz,[me("img",{src:Ke($_),alt:"边距",title:"边距",class:"slider-icon"},null,8,eW),me("div",tW,[me("span",{class:"slider-value",style:Ta(be(B.value,0,80))},br(B.value),5),hi(me("input",{"onUpdate:modelValue":A[9]||(A[9]=D=>B.value=D),class:"slider-input",style:Ta(rt(B.value,0,80)),type:"range",min:"0",max:"80","aria-label":"边距"},null,4),[[lg,B.value,void 0,{number:!0}]])])])],64)),C.value?(it(),ut("label",rW,[A[21]||(A[21]=me("span",{class:"compact-label"},"方向",-1)),hi(me("select",{"onUpdate:modelValue":A[10]||(A[10]=D=>M.value=D),class:"compact-select","aria-label":"方向"},[(it(),ut(Ct,null,pa(ve,D=>me("option",{key:D.value,value:D.value},br(D.label),9,aW)),64))],512),[[Io,M.value]])])):(it(),ut("button",{key:3,class:"direction-control desktop-only",type:"button",onClick:Qe},[A[23]||(A[23]=me("span",{class:"direction-label"},"方向",-1)),me("span",{class:eo(["direction-switch",{on:M.value==="source-to-target"}])},[me("span",nW,br(M.value==="source-to-target"?"源":"目标"),1),A[22]||(A[22]=me("span",{class:"direction-switch-thumb"},null,-1))],2)])),me("label",iW,[A[24]||(A[24]=me("span",{class:"label-position-label"},"标签位置",-1)),hi(me("select",{"onUpdate:modelValue":A[11]||(A[11]=D=>G.value=D),class:"label-position-select"},[(it(),ut(Ct,null,pa(re,D=>me("option",{key:D.value,value:D.value},br(D.label),9,sW)),64))],512),[[Io,G.value]])]),me("label",oW,[A[25]||(A[25]=me("span",{class:"target-align-label"},"汇聚对齐",-1)),hi(me("select",{"onUpdate:modelValue":A[12]||(A[12]=D=>j.value=D),class:"target-align-select"},[(it(),ut(Ct,null,pa(q,D=>me("option",{key:D.value,value:D.value},br(D.label),9,fW)),64))],512),[[Io,j.value]])])])]),me("div",{ref_key:"chartRef",ref:f,class:"chart-area"},null,512)])]),A[26]||(A[26]=me("footer",{class:"footer"},"@版权说明星程社所有反馈邮箱douboer@gmail.com",-1))]))}});MA(lW).mount("#app");