diff --git a/.gitignore b/.gitignore index 99d3f2e..52b0020 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ lerna-debug.log* node_modules .npm-cache -dist coverage *.local @@ -25,10 +24,6 @@ coverage *.sw? *.ttf -frontend/vite.config.ts -frontend/dist/fonts.json -frontend/public/fonts.json -miniprogram/assets/fonts.json # secrets .env diff --git a/dist/assets/index-BV2gMr2P.css b/dist/assets/index-BV2gMr2P.css new file mode 100644 index 0000000..026cfb8 --- /dev/null +++ b/dist/assets/index-BV2gMr2P.css @@ -0,0 +1 @@ +:root{--primary-7: #8552a1;--primary-6: #9b6bc2;--fill-1: #f7f8fa;--fill-3: #e5e6eb;--fill-4: #c9cdd4;--text-1: #ffffff;--text-3: #86909c;--text-4: #4e5969;--danger-3: #fbaca3;--font-pingfang: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%}body{background:#f3f4f6;color:#1d2129;font-family:var(--font-pingfang)}.page{position:relative;width:100%;height:calc(var(--app-vh, 1vh) * 100);padding:16px 16px 10px;display:flex;flex-direction:column;overflow:hidden}.top-bar{position:relative;display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px;padding:0 8px}.brand{display:flex;align-items:center;gap:8px}.logo{width:64px;height:64px;border-radius:16px}.title-logo{width:174px;height:auto}.toolbar{display:flex;align-items:center;gap:12px;flex:1;justify-content:flex-end}.tool-item{display:flex;align-items:center;gap:4px}.theme-trigger{position:relative}.tool-label{color:#1d2129;font-size:14px;white-space:nowrap}.icon-btn{border:0;background:transparent;cursor:pointer;padding:0;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center}.icon-btn img{max-width:100%;max-height:100%;object-fit:contain}.upload-area{min-width:280px;max-width:420px;flex:1;min-height:38px;border-radius:6px;display:flex;align-items:center;padding:4px 10px;background:var(--fill-1);border:1px solid var(--fill-3);cursor:pointer;position:relative}.hidden-input{display:none}.upload-text{color:var(--text-4);font-size:12px}.export-box{display:flex;gap:6px;align-items:center;background:#fff;border:1px solid var(--fill-3);border-radius:8px;padding:2px 8px}.export-main{width:18px;height:34px}.export-item{width:40px;height:40px}.theme-popover{position:fixed;width:292px;border:1px solid var(--primary-7);border-radius:24px 24px 0 0;background:#fff;z-index:10;padding:8px 8px 10px}.theme-popover:before{content:"";position:absolute;top:-8px;left:var(--theme-arrow-left, 50%);width:14px;height:14px;background:#fff;border-top:1px solid var(--primary-7);border-left:1px solid var(--primary-7);transform:translate(-50%) rotate(45deg)}.theme-header{text-align:center;color:var(--primary-6);font-size:15px;margin-bottom:6px}.theme-wheel-wrap{--theme-row-height: 42px;position:relative;height:calc(var(--theme-row-height) * 5);overflow:hidden}.theme-wheel{height:100%;overflow-y:auto;padding-block:calc(var(--theme-row-height) * 2);margin:0;scrollbar-width:thin;scrollbar-color:#d6d8dc #fff}.theme-wheel::-webkit-scrollbar{width:6px}.theme-wheel::-webkit-scrollbar-track{background:#fff}.theme-wheel::-webkit-scrollbar-thumb{background:#d6d8dc;border-radius:999px}.theme-mask{position:absolute;inset:0;pointer-events:none;z-index:3;background:linear-gradient(180deg,#fff,#ffffffbd 20%,#fff0 35% 65%,#ffffffbd 80%,#fff)}.theme-row{width:100%;border:0;background:#fff;display:flex;align-items:center;gap:8px;height:42px;padding:5px 6px;cursor:pointer;transition:opacity .2s ease}.theme-row.selected{opacity:1}.theme-row img{width:18px;height:18px}.palette{flex:1;display:grid;height:20px;border-radius:2px;overflow:hidden;position:relative}.theme-row.selected .palette:before,.theme-row.selected .palette:after{content:"";position:absolute;left:0;right:0;border-top:1px solid var(--fill-3)}.theme-row.selected .palette:before{top:0}.theme-row.selected .palette:after{bottom:0}.palette-cell{display:block}.content{display:grid;grid-template-columns:360px 1fr;gap:8px;flex:1;min-height:0}.left-pane{display:flex;flex-direction:column;gap:10px;min-height:0}.panel{border:1px solid #f7dede;border-radius:16px;background:#fff}.block-panel{padding:8px 8px 10px}.select-panel{flex:1;min-height:0;overflow:auto}.panel-title-svg{display:block;max-width:100%;height:auto}.panel-title-select{width:189px}.panel-title-preview{width:238px}.panel-title-info{width:186px}.field-block{margin-top:14px;position:relative}.field-title-wrap{width:100%;border:0;background:transparent;padding:0;display:flex;align-items:center;gap:6px;margin-bottom:8px;cursor:pointer;text-align:left}.field-title-wrap h3{margin:0;font-size:18px;font-weight:500}.expand-icon{width:20px;height:20px}.column-list{position:relative;--connector-x: 10px;--icon-left: 20px;--row-height: 32px;--connector-top-offset: -6px}.column-list:before{content:"";position:absolute;left:var(--connector-x);top:var(--connector-top-offset);bottom:calc(var(--row-height) / 2);border-left:1px solid var(--fill-4)}.column-row{position:relative;display:flex;align-items:center;gap:8px;height:32px;padding-bottom:6px;padding-left:var(--icon-left)}.column-row:before{content:"";position:absolute;left:var(--connector-x);top:calc(50% - .5px);width:calc(var(--icon-left) - var(--connector-x));border-top:1px solid var(--fill-4)}.column-row:after{content:"";position:absolute;left:var(--icon-left);right:0;bottom:0;border-top:1px solid var(--fill-4)}.column-icon{width:18px;height:18px}.column-label{flex:1;color:var(--text-3);font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-btn{border:0;background:transparent;cursor:pointer;padding:0;width:16px;height:16px}.select-btn img{width:16px;height:16px}.preview-panel{padding:8px;display:flex;flex-direction:column;min-height:0}.preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:60px;margin-bottom:8px}.preview-controls{display:flex;align-items:center;gap:24px}.desktop-only{display:inline-flex}.mobile-only{display:none}.preview-controls .slider-label{display:inline-flex;align-items:center;gap:6px;width:148px}.slider-track-wrap{position:relative;width:122px;height:24px}.slider-icon{width:20px;height:20px;flex-shrink:0}.slider-input{width:100%;height:24px;margin:0;background:transparent;-webkit-appearance:none;appearance:none}.slider-input::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,var(--primary-6) 0,var(--primary-6) var(--slider-percent, 0%),var(--fill-3) var(--slider-percent, 0%),var(--fill-3) 100%)}.slider-input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;border:1px solid var(--fill-3);background:#fff;box-shadow:0 2px 4px #00000014;margin-top:-7px}.slider-input::-moz-range-track{height:4px;border-radius:999px;background:var(--fill-3)}.slider-input::-moz-range-thumb{width:18px;height:18px;border-radius:50%;border:1px solid var(--fill-3);background:#fff;box-shadow:0 2px 4px #00000014}.slider-input::-moz-range-progress{height:4px;border-radius:999px;background:var(--primary-6)}.slider-value{position:absolute;top:-13px;transform:translate(-50%);font-size:10px;line-height:1;color:var(--primary-6);white-space:nowrap;pointer-events:none}.direction-control{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;padding:0;cursor:pointer;flex-shrink:0}.direction-label{font-size:14px;font-weight:600;color:#000;line-height:1}.direction-switch{display:inline-flex;align-items:center;gap:1px;min-width:0;width:auto;height:14px;padding:1px;border-radius:58.333px;background:var(--fill-3);justify-content:space-between}.direction-switch-text{font-size:8px;line-height:1;padding:0 1px;white-space:nowrap;color:var(--text-4)}.direction-switch-thumb{width:11.667px;height:11.667px;border-radius:50%;background:#fff;border:0;box-shadow:none}.direction-switch.on{background:var(--primary-6)}.direction-switch.on .direction-switch-text{color:#fff}.direction-switch:not(.on){flex-direction:row-reverse}.label-position-control{display:inline-flex;align-items:center;gap:6px}.label-position-label{font-size:14px;font-weight:600;color:#000;line-height:1;white-space:nowrap}.label-position-select{min-width:0}.target-align-control{display:inline-flex;align-items:center;gap:6px}.target-align-label{font-size:14px;font-weight:600;color:#000;line-height:1;white-space:nowrap}.target-align-select{min-width:0}.compact-control{display:inline-flex;align-items:center;gap:4px}.compact-label{font-size:12px;font-weight:600;color:#000;line-height:1;white-space:nowrap}.compact-select{min-width:0}.label-position-select,.target-align-select,.compact-select{width:auto;inline-size:max-content;height:14px;border:.5px solid #c9aee0;border-radius:4px;background:#fff;color:#1d2129;font-size:12px;line-height:1;padding:0 14px 0 4px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='9'%20fill='none'%20viewBox='0%200%2010%209'%3e%3cpath%20fill='%23606060'%20d='m9.755%202.404-3.19%204.904c-.696%201.068-2.434%201.068-3.13%200L.246%202.404C-.451%201.336.419%200%201.809%200h6.382c1.39%200%202.26%201.336%201.564%202.404Z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 2px center;background-size:10px 8px;flex-shrink:0}.example-line{margin:4px 0 8px;color:var(--text-4);font-size:12px}.chart-area{background:var(--fill-1);border-radius:8px;flex:1;min-height:0}.info-panel{padding:8px;min-height:120px;max-height:220px;display:flex;flex-direction:column;gap:8px;overflow:hidden}.info-log-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;overflow:auto}.info-log-item{font-size:12px;line-height:1.45;color:var(--text-4)}.info-log-item.level-warn{color:#8d5b00}.info-log-item.level-error{color:#cb272d}.info-log-empty{margin:0;font-size:12px;color:var(--text-3)}.footer{margin-top:6px;flex-shrink:0;color:var(--text-3);font-size:16px}@media(max-width:1024px){.top-bar{flex-direction:column;align-items:stretch}.toolbar{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:8px;scrollbar-width:none}.toolbar::-webkit-scrollbar{display:none}.tool-item,.export-box,.upload-area{flex-shrink:0}.content{display:flex;flex-direction:column;overflow:hidden}.preview-panel{order:1;flex:1;min-height:0}.left-pane{order:2;min-height:0;max-height:42%;overflow:auto}.block-panel{min-height:auto}.chart-area{min-height:0}.preview-head{min-height:auto;align-items:center;flex-direction:row;gap:8px}.preview-controls{flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:none}.preview-controls::-webkit-scrollbar{display:none}.preview-controls .slider-label{width:120px}.slider-track-wrap{width:96px}.label-position-control,.target-align-control{margin-left:0;flex-shrink:0}.info-panel{max-height:180px}.footer{font-size:14px}}@media(max-width:640px){.page{padding:8px}.logo{width:48px;height:48px;border-radius:12px}.title-logo{width:160px}.tool-label{font-size:12px}.upload-area{display:flex;min-width:92px;max-width:none;flex:1 1 auto;min-height:28px;padding:2px 5px}.upload-text{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-bar{padding:0;gap:6px}.toolbar{width:100%;flex-wrap:nowrap;overflow:hidden;justify-content:flex-start;gap:4px}.tool-item .tool-label{display:none}.tool-item,.export-box{flex-shrink:0}.tool-item .icon-btn{width:28px;height:28px}.export-box{padding:1px 4px;gap:4px}.export-main{display:block;width:12px;height:24px}.export-item{width:28px;height:28px}.content{gap:6px}.left-pane{max-height:46%}.field-title-wrap h3{font-size:16px}.panel-title-preview{width:190px}.preview-head{gap:4px}.preview-controls{width:100%;flex-wrap:nowrap;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;justify-content:flex-start}.preview-controls::-webkit-scrollbar{display:none}.desktop-only{display:none}.mobile-only{display:inline-flex}.preview-controls .slider-label{width:74px}.slider-track-wrap{width:61px}.label-position-control,.target-align-control{gap:4px;flex-shrink:0}.label-position-label,.target-align-label{font-size:12px}.label-position-select,.target-align-select{min-width:0;font-size:12px;padding:0 14px 0 4px}.direction-control{flex-shrink:0}} diff --git a/dist/assets/index-Dq_3ClUQ.js b/dist/assets/index-Dq_3ClUQ.js new file mode 100644 index 0000000..a3fe1ee --- /dev/null +++ b/dist/assets/index-Dq_3ClUQ.js @@ -0,0 +1,64 @@ +(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 mt={},js=[],Ya=()=>{},j_=()=>!1,Xu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Bv=e=>e.startsWith("onUpdate:"),Qt=Object.assign,Nv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},sE=Object.prototype.hasOwnProperty,ut=(e,t)=>sE.call(e,t),ze=Array.isArray,qs=e=>ml(e)==="[object Map]",Yu=e=>ml(e)==="[object Set]",M1=e=>ml(e)==="[object Date]",Ze=e=>typeof e=="function",zt=e=>typeof e=="string",ja=e=>typeof e=="symbol",vt=e=>e!==null&&typeof e=="object",q_=e=>(vt(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),J_=Object.prototype.toString,ml=e=>J_.call(e),oE=e=>ml(e).slice(8,-1),Q_=e=>ml(e)==="[object Object]",Uv=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cf=Ov(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ku=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},fE=/-\w/g,ti=Ku(e=>e.replace(fE,t=>t.slice(1).toUpperCase())),lE=/\B([A-Z])/g,ui=Ku(e=>e.replace(lE,"-$1").toLowerCase()),ey=Ku(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mc=Ku(e=>e?`on${ey(e)}`:""),Kn=(e,t)=>!Object.is(e,t),M0=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:r})},Zu=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let R1;const ju=()=>R1||(R1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Sa(e){if(ze(e)){const t={};for(let r=0;r{if(r){const a=r.split(cE);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function Js(e){let t="";if(zt(e))t=e;else if(ze(e))for(let r=0;rxl(r,t))}const ay=e=>!!(e&&e.__v_isRef===!0),Ir=e=>zt(e)?e:e==null?"":ze(e)||vt(e)&&(e.toString===J_||!Ze(e.toString))?ay(e)?Ir(e.value):JSON.stringify(e,ny,2):String(e),ny=(e,t)=>ay(t)?ny(e,t.value):qs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[a,n],i)=>(r[Rc(a,i)+" =>"]=n,r),{})}:Yu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Rc(r))}:ja(t)?Rc(t):vt(t)&&!ze(t)&&!Q_(t)?String(t):t,Rc=(e,t="")=>{var r;return ja(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Rr;class xE{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=Rr,!t&&Rr&&(this.index=(Rr.scopes||(Rr.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;t0&&--this._on===0&&(Rr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,a;for(r=0,a=this.effects.length;r0)return;if(df){let t=df;for(df=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;hf;){let t=hf;for(hf=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 fy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ly(e){let t,r=e.depsTail,a=r;for(;a;){const n=a.prevDep;a.version===-1?(a===r&&(r=n),zv(a),yE(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&&(uy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function uy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Uf)||(e.globalVersion=Uf,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!gd(e))))return;e.flags|=2;const t=e.dep,r=yt,a=Da;yt=e,Da=!0;try{fy(e);const n=e.fn(e._value);(t.version===0||Kn(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{yt=r,Da=a,ly(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 yE(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Da=!0;const cy=[];function yn(){cy.push(Da),Da=!1}function wn(){const e=cy.pop();Da=e===void 0?!0:e}function P1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=yt;yt=void 0;try{t()}finally{yt=r}}}let Uf=0;class wE{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(!yt||!Da||yt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==yt)r=this.activeLink=new wE(yt,this),yt.deps?(r.prevDep=yt.depsTail,yt.depsTail.nextDep=r,yt.depsTail=r):yt.deps=yt.depsTail=r,hy(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=yt.depsTail,r.nextDep=void 0,yt.depsTail.nextDep=r,yt.depsTail=r,yt.deps===r&&(yt.deps=a)}return r}trigger(t){this.version++,Uf++,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 hy(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)hy(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(""),Hf=Symbol("");function sr(e,t,r){if(Da&&yt){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){Uf++;return}const o=f=>{f&&f.trigger()};if(Hv(),t==="clear")s.forEach(o);else{const f=ze(e),l=f&&Uv(r);if(f&&r==="length"){const u=Number(a);s.forEach((c,h)=>{(h==="length"||h===Hf||!ja(h)&&h>=u)&&o(c)})}else switch((r!==void 0||s.has(void 0))&&o(s.get(r)),l&&o(s.get(Hf)),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 Ts(e){const t=lt(e);return t===e?t:(sr(t,"iterate",Hf),ca(e)?t:t.map(Fa))}function qu(e){return sr(e=lt(e),"iterate",Hf),e}function Hn(e,t){return Tn(e)?uo(es(e)?Fa(t):t):Fa(t)}const TE={__proto__:null,[Symbol.iterator](){return Lc(this,Symbol.iterator,e=>Hn(this,e))},concat(...e){return Ts(this).concat(...e.map(t=>ze(t)?Ts(t):t))},entries(){return Lc(this,"entries",e=>(e[1]=Hn(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=>Hn(this,a)),arguments)},find(e,t){return sn(this,"find",e,t,r=>Hn(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=>Hn(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 Ts(this).join(e)},lastIndexOf(...e){return Oc(this,"lastIndexOf",e)},map(e,t){return sn(this,"map",e,t,void 0,arguments)},pop(){return Do(this,"pop")},push(...e){return Do(this,"push",e)},reduce(e,...t){return L1(this,"reduce",e,t)},reduceRight(e,...t){return L1(this,"reduceRight",e,t)},shift(){return Do(this,"shift")},some(e,t){return sn(this,"some",e,t,void 0,arguments)},splice(...e){return Do(this,"splice",e)},toReversed(){return Ts(this).toReversed()},toSorted(e){return Ts(this).toSorted(e)},toSpliced(...e){return Ts(this).toSpliced(...e)},unshift(...e){return Do(this,"unshift",e)},values(){return Lc(this,"values",e=>Hn(this,e))}};function Lc(e,t,r){const a=qu(e),n=a[t]();return a!==e&&!ca(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.done||(i.value=r(i.value)),i}),n}const SE=Array.prototype;function sn(e,t,r,a,n,i){const s=qu(e),o=s!==e&&!ca(e),f=s[t];if(f!==SE[t]){const c=f.apply(e,i);return o?Fa(c):c}let l=r;s!==e&&(o?l=function(c,h){return r.call(this,Hn(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=qu(e);let i=r;return n!==e&&(ca(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,Hn(e,o),f,e)}),n[t](i,...a)}function Oc(e,t,r){const a=lt(e);sr(a,"iterate",Hf);const n=a[t](...r);return(n===-1||n===!1)&&Xv(r[0])?(r[0]=lt(r[0]),a[t](...r)):n}function Do(e,t,r=[]){yn(),Hv();const a=lt(e)[t].apply(e,r);return Vv(),wn(),a}const EE=Ov("__proto__,__v_isRef,__isVue"),dy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ja));function CE(e){ja(e)||(e=String(e));const t=lt(this);return sr(t,"has",e),t.hasOwnProperty(e)}class vy{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?LE:xy:i?my:gy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const s=ze(t);if(!n){let f;if(s&&(f=TE[r]))return f;if(r==="hasOwnProperty")return CE}const o=Reflect.get(t,r,lr(t)?t:a);if((ja(r)?dy.has(r):EE(r))||(n||sr(t,"get",r),i))return o;if(lr(o)){const f=s&&Uv(r)?o:o.value;return n&&vt(f)?yd(f):f}return vt(o)?n?yd(o):Vf(o):o}}class py extends vy{constructor(t=!1){super(!1,t)}set(t,r,a,n){let i=t[r];const s=ze(t)&&Uv(r);if(!this._isShallow){const l=Tn(i);if(!ca(a)&&!Tn(a)&&(i=lt(i),a=lt(a)),!s&&lr(i)&&!lr(a))return l||(i.value=a),!0}const o=s?Number(r)e,Hl=e=>Reflect.getPrototypeOf(e);function FE(e,t,r){return function(...a){const n=this.__v_raw,i=lt(n),s=qs(i),o=e==="entries"||e===Symbol.iterator&&s,f=e==="keys"&&s,l=n[e](...a),u=r?_d:t?uo:Fa;return!t&&sr(i,"iterate",f?xd:Qi),Qt(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 Vl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function IE(e,t){const r={get(n){const i=this.__v_raw,s=lt(i),o=lt(n);e||(Kn(n,o)&&sr(s,"get",n),sr(s,"get",o));const{has:f}=Hl(s),l=t?_d:e?uo:Fa;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&&sr(lt(n),"iterate",Qi),n.size},has(n){const i=this.__v_raw,s=lt(i),o=lt(n);return e||(Kn(n,o)&&sr(s,"has",n),sr(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=lt(o),l=t?_d:e?uo:Fa;return!e&&sr(f,"iterate",Qi),o.forEach((u,c)=>n.call(i,l(u),l(c),s))}};return Qt(r,e?{add:Vl("add"),set:Vl("set"),delete:Vl("delete"),clear:Vl("clear")}:{add(n){!t&&!ca(n)&&!Tn(n)&&(n=lt(n));const i=lt(this);return Hl(i).has.call(i,n)||(i.add(n),hn(i,"add",n,n)),this},set(n,i){!t&&!ca(i)&&!Tn(i)&&(i=lt(i));const s=lt(this),{has:o,get:f}=Hl(s);let l=o.call(s,n);l||(n=lt(n),l=o.call(s,n));const u=f.call(s,n);return s.set(n,i),l?Kn(i,u)&&hn(s,"set",n,i):hn(s,"add",n,i),this},delete(n){const i=lt(this),{has:s,get:o}=Hl(i);let f=s.call(i,n);f||(n=lt(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=lt(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]=FE(n,e,t)}),r}function Gv(e,t){const r=IE(e,t);return(a,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?a:Reflect.get(ut(r,n)&&n in a?r:a,n,i)}const ME={get:Gv(!1,!1)},RE={get:Gv(!1,!0)},PE={get:Gv(!0,!1)};const gy=new WeakMap,my=new WeakMap,xy=new WeakMap,LE=new WeakMap;function OE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function BE(e){return e.__v_skip||!Object.isExtensible(e)?0:OE(oE(e))}function Vf(e){return Tn(e)?e:$v(e,!1,DE,ME,gy)}function NE(e){return $v(e,!1,bE,RE,my)}function yd(e){return $v(e,!0,kE,PE,xy)}function $v(e,t,r,a,n){if(!vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=BE(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 es(e){return Tn(e)?es(e.__v_raw):!!(e&&e.__v_isReactive)}function Tn(e){return!!(e&&e.__v_isReadonly)}function ca(e){return!!(e&&e.__v_isShallow)}function Xv(e){return e?!!e.__v_raw:!1}function lt(e){const t=e&&e.__v_raw;return t?lt(t):e}function UE(e){return!ut(e,"__v_skip")&&Object.isExtensible(e)&&ty(e,"__v_skip",!0),e}const Fa=e=>vt(e)?Vf(e):e,uo=e=>vt(e)?yd(e):e;function lr(e){return e?e.__v_isRef===!0:!1}function kt(e){return HE(e,!1)}function HE(e,t){return lr(e)?e:new VE(e,t)}class VE{constructor(t,r){this.dep=new Wv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:lt(t),this._value=r?t:Fa(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,a=this.__v_isShallow||ca(t)||Tn(t);t=a?t:lt(t),Kn(t,r)&&(this._rawValue=t,this._value=a?t:Fa(t),this.dep.trigger())}}function nt(e){return lr(e)?e.value:e}const zE={get:(e,t,r)=>t==="__v_raw"?e:nt(Reflect.get(e,t,r)),set:(e,t,r,a)=>{const n=e[t];return lr(n)&&!lr(r)?(n.value=r,!0):Reflect.set(e,t,r,a)}};function _y(e){return es(e)?e:new Proxy(e,zE)}class WE{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=Uf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&yt!==this)return oy(this,!0),!0}get value(){const t=this.dep.track();return uy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function GE(e,t,r=!1){let a,n;return Ze(e)?a=e:(a=e.get,n=e.set),new WE(a,n,r)}const zl={},q0=new WeakMap;let Hi;function $E(e,t=!1,r=Hi){if(r){let a=q0.get(r);a||q0.set(r,a=[]),a.push(e)}}function XE(e,t,r=mt){const{immediate:a,deep:n,once:i,scheduler:s,augmentJob:o,call:f}=r,l=y=>n?y:ca(y)||n===!1||n===0?dn(y,1):dn(y);let u,c,h,d,v=!1,p=!1;if(lr(e)?(c=()=>e.value,v=ca(e)):es(e)?(c=()=>l(e),v=!0):ze(e)?(p=!0,v=e.some(y=>es(y)||ca(y)),c=()=>e.map(y=>{if(lr(y))return y.value;if(es(y))return l(y);if(Ze(y))return f?f(y,2):y()})):Ze(e)?t?c=f?()=>f(e,2):e:c=()=>{if(h){yn();try{h()}finally{wn()}}const y=Hi;Hi=u;try{return f?f(e,3,[d]):e(d)}finally{Hi=y}}:c=Ya,t&&n){const y=c,k=n===!0?1/0:n;c=()=>dn(y(),k)}const g=_E(),m=()=>{u.stop(),g&&g.active&&Nv(g.effects,u)};if(i&&t){const y=t;t=(...k)=>{y(...k),m()}}let x=p?new Array(e.length).fill(zl):zl;const _=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const k=u.run();if(n||v||(p?k.some((C,w)=>Kn(C,x[w])):Kn(k,x))){h&&h();const C=Hi;Hi=u;try{const w=[k,x===zl?void 0:p&&x[0]===zl?[]:x,d];x=k,f?f(t,3,w):t(...w)}finally{Hi=C}}}else u.run()};return o&&o(_),u=new iy(c),u.scheduler=s?()=>s(_,!1):_,d=y=>$E(y,!1,u),h=u.onStop=()=>{const y=q0.get(u);if(y){if(f)f(y,4);else for(const k of y)k();q0.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||!vt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,lr(e))dn(e.value,t,r);else if(ze(e))for(let a=0;a{dn(a,t,r)});else if(Q_(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 _l(e,t,r,a){try{return a?e(...a):e()}catch(n){Ju(n,t,r)}}function qa(e,t,r,a){if(Ze(e)){const n=_l(e,t,r,a);return n&&q_(n)&&n.catch(i=>{Ju(i,t,r)}),n}if(ze(e)){const n=[];for(let i=0;i>>1,n=_r[a],i=zf(n);i=zf(r)?_r.push(e):_r.splice(KE(t),0,e),e.flags|=1,wy()}}function wy(){J0||(J0=yy.then(Sy))}function ZE(e){ze(e)?Qs.push(...e):Vn&&e.id===-1?Vn.splice(Us+1,0,e):e.flags&1||(Qs.push(e),e.flags|=1),wy()}function O1(e,t,r=Ha+1){for(;r<_r.length;r++){const a=_r[r];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;_r.splice(r,1),r--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function Ty(e){if(Qs.length){const t=[...new Set(Qs)].sort((r,a)=>zf(r)-zf(a));if(Qs.length=0,Vn){Vn.push(...t);return}for(Vn=t,Us=0;Use.id==null?e.flags&2?-1:1/0:e.id;function Sy(e){try{for(Ha=0;Ha<_r.length;Ha++){const t=_r[Ha];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_l(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ha<_r.length;Ha++){const t=_r[Ha];t&&(t.flags&=-2)}Ha=-1,_r.length=0,Ty(),J0=null,(_r.length||Qs.length)&&Sy()}}let ua=null,Ey=null;function Q0(e){const t=ua;return ua=e,Ey=e&&e.type.__scopeId||null,t}function jE(e,t=ua,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 pi(e,t){if(ua===null)return e;const r=rc(ua),a=e.dirs||(e.dirs=[]);for(let n=0;n1)return r&&Ze(t)?t.call(a&&a.proxy):t}}const JE=Symbol.for("v-scx"),QE=()=>R0(JE);function eC(e,t){return Zv(e,null,t)}function vf(e,t,r){return Zv(e,t,r)}function Zv(e,t,r=mt){const{immediate:a,deep:n,flush:i,once:s}=r,o=Qt({},r),f=t&&a||!t&&i!=="post";let l;if(Gf){if(i==="sync"){const d=QE();l=d.__watcherHandles||(d.__watcherHandles=[])}else if(!f){const d=()=>{};return d.stop=Ya,d.resume=Ya,d.pause=Ya,d}}const u=Sr;o.call=(d,v,p)=>qa(d,u,v,p);let c=!1;i==="post"?o.scheduler=d=>{Mr(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=XE(e,t,o);return Gf&&(l?l.push(h):f&&h()),h}function tC(e,t,r){const a=this.proxy,n=zt(e)?e.includes(".")?Cy(a,e):()=>a[e]:e.bind(a,a);let i;Ze(t)?i=t:(i=t.handler,r=t);const s=yl(this),o=Zv(n,i.bind(a),r);return s(),o}function Cy(e,t){const r=t.split(".");return()=>{let a=e;for(let n=0;ne.__isTeleport,nC=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 iC(e,t){return Ze(e)?Qt({name:e.name},t,{setup:e}):e}function Ay(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 eu=new WeakMap;function pf(e,t,r,a,n=!1){if(ze(e)){e.forEach((p,g)=>pf(p,t&&(ze(t)?t[g]:t),r,a,n));return}if(gf(a)&&!n){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&pf(e,t,r,a.component.subTree);return}const i=a.shapeFlag&4?rc(a.component):a.el,s=n?null:i,{i:o,r:f}=e,l=t&&t.r,u=o.refs===mt?o.refs={}:o.refs,c=o.setupState,h=lt(c),d=c===mt?j_:p=>B1(u,p)?!1:ut(h,p),v=(p,g)=>!(g&&B1(u,g));if(l!=null&&l!==f){if(N1(t),zt(l))u[l]=null,d(l)&&(c[l]=null);else if(lr(l)){const p=t;v(l,p.k)&&(l.value=null),p.k&&(u[p.k]=null)}}if(Ze(f))_l(f,o,12,[s,u]);else{const p=zt(f),g=lr(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)ze(x)&&Nv(x,i);else if(ze(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(),eu.delete(e)};x.id=-1,eu.set(e,x),Mr(x,r)}else N1(e),m()}}}function N1(e){const t=eu.get(e);t&&(t.flags|=8,eu.delete(e))}ju().requestIdleCallback;ju().cancelIdleCallback;const gf=e=>!!e.type.__asyncLoader,Dy=e=>e.type.__isKeepAlive;function sC(e,t){ky(e,"a",t)}function oC(e,t){ky(e,"da",t)}function ky(e,t,r=Sr){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;)Dy(n.parent.vnode)&&fC(a,t,r,n),n=n.parent}}function fC(e,t,r,a){const n=Qu(t,e,a,!0);Iy(()=>{Nv(a[t],n)},r)}function Qu(e,t,r=Sr,a=!1){if(r){const n=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...s)=>{yn();const o=yl(r),f=qa(t,r,e,s);return o(),wn(),f});return a?n.unshift(i):n.push(i),i}}const Cn=e=>(t,r=Sr)=>{(!Gf||e==="sp")&&Qu(e,(...a)=>t(...a),r)},lC=Cn("bm"),by=Cn("m"),uC=Cn("bu"),cC=Cn("u"),Fy=Cn("bum"),Iy=Cn("um"),hC=Cn("sp"),dC=Cn("rtg"),vC=Cn("rtc");function pC(e,t=Sr){Qu("ec",e,t)}const gC=Symbol.for("v-ndc");function ga(e,t,r,a){let n;const i=r,s=ze(e);if(s||zt(e)){const o=s&&es(e);let f=!1,l=!1;o&&(f=!ca(e),l=Tn(e),e=qu(e)),n=new Array(e.length);for(let u=0,c=e.length;ut(o,f,void 0,i));else{const o=Object.keys(e);n=new Array(o.length);for(let f=0,l=o.length;fe?Jy(e)?rc(e):wd(e.parent):null,mf=Qt(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=>Ry(e),$forceUpdate:e=>e.f||(e.f=()=>{Kv(e.update)}),$nextTick:e=>e.n||(e.n=Yv.bind(e.proxy)),$watch:e=>tC.bind(e)}),Bc=(e,t)=>e!==mt&&!e.__isScriptSetup&&ut(e,t),mC={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!==mt&&ut(n,t))return s[t]=2,n[t];if(ut(i,t))return s[t]=3,i[t];if(r!==mt&&ut(r,t))return s[t]=4,r[t];Td&&(s[t]=0)}}const l=mf[t];let u,c;if(l)return t==="$attrs"&&sr(e.attrs,"get",""),l(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(r!==mt&&ut(r,t))return s[t]=4,r[t];if(c=f.config.globalProperties,ut(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!==mt&&ut(a,t)?(a[t]=r,!0):ut(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!==mt&&o[0]!=="$"&&ut(e,o)||Bc(t,o)||ut(i,o)||ut(a,o)||ut(mf,o)||ut(n.config.globalProperties,o)||(f=s.__cssModules)&&f[o])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ut(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function U1(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Td=!0;function xC(e){const t=Ry(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:k,renderTracked:C,renderTriggered:w,errorCaptured:E,serverPrefetch:S,expose:D,inheritAttrs:b,components:F,directives:B,filters:Y}=t;if(l&&_C(l,a,null),s)for(const q in s){const ce=s[q];Ze(ce)&&(a[q]=ce.bind(r))}if(n){const q=n.call(r,r);vt(q)&&(e.data=Vf(q))}if(Td=!0,i)for(const q in i){const ce=i[q],U=Ze(ce)?ce.bind(r,r):Ze(ce.get)?ce.get.bind(r,r):Ya,ye=!Ze(ce)&&Ze(ce.set)?ce.set.bind(r):Ya,pe=ea({get:U,set:ye});Object.defineProperty(a,q,{enumerable:!0,configurable:!0,get:()=>pe.value,set:M=>pe.value=M})}if(o)for(const q in o)My(o[q],a,r,q);if(f){const q=Ze(f)?f.call(r):f;Reflect.ownKeys(q).forEach(ce=>{qE(ce,q[ce])})}u&&H1(u,e,"c");function J(q,ce){ze(ce)?ce.forEach(U=>q(U.bind(r))):ce&&q(ce.bind(r))}if(J(lC,c),J(by,h),J(uC,d),J(cC,v),J(sC,p),J(oC,g),J(pC,E),J(vC,C),J(dC,w),J(Fy,x),J(Iy,y),J(hC,S),ze(D))if(D.length){const q=e.exposed||(e.exposed={});D.forEach(ce=>{Object.defineProperty(q,ce,{get:()=>r[ce],set:U=>r[ce]=U,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===Ya&&(e.render=k),b!=null&&(e.inheritAttrs=b),F&&(e.components=F),B&&(e.directives=B),S&&Ay(e)}function _C(e,t,r=Ya){ze(e)&&(e=Sd(e));for(const a in e){const n=e[a];let i;vt(n)?"default"in n?i=R0(n.from||a,n.default,!0):i=R0(n.from||a):i=R0(n),lr(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){qa(ze(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,r)}function My(e,t,r,a){let n=a.includes(".")?Cy(r,a):()=>r[a];if(zt(e)){const i=t[e];Ze(i)&&vf(n,i)}else if(Ze(e))vf(n,e.bind(r));else if(vt(e))if(ze(e))e.forEach(i=>My(i,t,r,a));else{const i=Ze(e.handler)?e.handler.bind(r):t[e.handler];Ze(i)&&vf(n,i,e)}}function Ry(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=>tu(f,l,s,!0)),tu(f,t,s)),vt(t)&&i.set(t,f),f}function tu(e,t,r,a=!1){const{mixins:n,extends:i}=t;i&&tu(e,i,r,!0),n&&n.forEach(s=>tu(e,s,r,!0));for(const s in t)if(!(a&&s==="expose")){const o=yC[s]||r&&r[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const yC={data:V1,props:z1,emits:z1,methods:qo,computed:qo,beforeCreate:gr,created:gr,beforeMount:gr,mounted:gr,beforeUpdate:gr,updated:gr,beforeDestroy:gr,beforeUnmount:gr,destroyed:gr,unmounted:gr,activated:gr,deactivated:gr,errorCaptured:gr,serverPrefetch:gr,components:qo,directives:qo,watch:TC,provide:V1,inject:wC};function V1(e,t){return t?e?function(){return Qt(Ze(e)?e.call(this,this):e,Ze(t)?t.call(this,this):t)}:t:e}function wC(e,t){return qo(Sd(e),Sd(t))}function Sd(e){if(ze(e)){const t={};for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ti(t)}Modifiers`]||e[`${ui(t)}Modifiers`];function AC(e,t,...r){if(e.isUnmounted)return;const a=e.vnode.props||mt;let n=r;const i=t.startsWith("update:"),s=i&&CC(a,t.slice(7));s&&(s.trim&&(n=r.map(u=>zt(u)?u.trim():u)),s.number&&(n=r.map(Zu)));let o,f=a[o=Mc(t)]||a[o=Mc(ti(t))];!f&&i&&(f=a[o=Mc(ui(t))]),f&&qa(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,qa(l,e,6,n)}}const DC=new WeakMap;function Ly(e,t,r=!1){const a=r?DC:t.emitsCache,n=a.get(e);if(n!==void 0)return n;const i=e.emits;let s={},o=!1;if(!Ze(e)){const f=l=>{const u=Ly(l,t,!0);u&&(o=!0,Qt(s,u))};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!o?(vt(e)&&a.set(e,null),null):(ze(i)?i.forEach(f=>s[f]=null):Qt(s,i),vt(e)&&a.set(e,s),s)}function ec(e,t){return!e||!Xu(t)?!1:(t=t.slice(2).replace(/Once$/,""),ut(e,t[0].toLowerCase()+t.slice(1))||ut(e,ui(t))||ut(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,k=y;m=za(l.call(k,y,u,c,d,h,v)),x=o}else{const y=t;m=za(y.length>1?y(c,{attrs:o,slots:s,emit:f}):y(c,null)),x=t.props?o:kC(o)}}catch(y){xf.length=0,Ju(y,e,1),m=gn(ri)}let _=m;if(x&&p!==!1){const y=Object.keys(x),{shapeFlag:k}=_;y.length&&k&7&&(i&&y.some(Bv)&&(x=bC(x,i)),_=co(_,x,!1,!0))}return r.dirs&&(_=co(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&jv(_,r.transition),m=_,Q0(g),m}const kC=e=>{let t;for(const r in e)(r==="class"||r==="style"||Xu(r))&&((t||(t={}))[r]=e[r]);return t},bC=(e,t)=>{const r={};for(const a in e)(!Bv(a)||!(a.slice(9)in t))&&(r[a]=e[a]);return r};function FC(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;cObject.create(By),Uy=e=>Object.getPrototypeOf(e)===By;function MC(e,t,r,a=!1){const n={},i=Ny();e.propsDefaults=Object.create(null),Hy(e,t,n,i);for(const s in e.propsOptions[0])s in n||(n[s]=void 0);r?e.props=a?n:NE(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function RC(e,t,r,a){const{props:n,attrs:i,vnode:{patchFlag:s}}=e,o=lt(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{f=!0;const[h,d]=Vy(c,t,!0);Qt(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 vt(e)&&a.set(e,js),js;if(ze(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Jv=e=>ze(e)?e.map(za):[za(e)],LC=(e,t,r)=>{if(t._n)return t;const a=jE((...n)=>Jv(t(...n)),r);return a._c=!1,a},zy=(e,t,r)=>{const a=e._ctx;for(const n in e){if(qv(n))continue;const i=e[n];if(Ze(i))t[n]=LC(n,i,a);else if(i!=null){const s=Jv(i);t[n]=()=>s}}},Wy=(e,t)=>{const r=Jv(t);e.slots.default=()=>r},Gy=(e,t,r)=>{for(const a in t)(r||!qv(a))&&(e[a]=t[a])},OC=(e,t,r)=>{const a=e.slots=Ny();if(e.vnode.shapeFlag&32){const n=t._;n?(Gy(a,t,r),r&&ty(a,"_",n,!0)):zy(t,a)}else t&&Wy(e,t)},BC=(e,t,r)=>{const{vnode:a,slots:n}=e;let i=!0,s=mt;if(a.shapeFlag&32){const o=t._;o?r&&o===1?i=!1:Gy(n,t,r):(i=!t.$stable,zy(t,n)),s=t}else t&&(Wy(e,t),s={default:1});if(i)for(const o in n)!qv(o)&&s[o]==null&&delete n[o]},Mr=zC;function NC(e){return UC(e)}function UC(e,t){const r=ju();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=Ya,insertStaticContent:v}=e,p=(T,N,W,ee=null,Z=null,K=null,ue=void 0,ve=null,me=!!N.dynamicChildren)=>{if(T===N)return;T&&!ko(T,N)&&(ee=xe(T),M(T,Z,K,!0),T=null),N.patchFlag===-2&&(me=!1,N.dynamicChildren=null);const{type:ge,ref:be,shapeFlag:Ee}=N;switch(ge){case tc:g(T,N,W,ee);break;case ri:m(T,N,W,ee);break;case Uc:T==null&&x(N,W,ee,ue);break;case bt:F(T,N,W,ee,Z,K,ue,ve,me);break;default:Ee&1?k(T,N,W,ee,Z,K,ue,ve,me):Ee&6?B(T,N,W,ee,Z,K,ue,ve,me):(Ee&64||Ee&128)&&ge.process(T,N,W,ee,Z,K,ue,ve,me,oe)}be!=null&&Z?pf(be,T&&T.ref,K,N||T,!N):be==null&&T&&T.ref!=null&&pf(T.ref,null,K,T,!0)},g=(T,N,W,ee)=>{if(T==null)a(N.el=o(N.children),W,ee);else{const Z=N.el=T.el;N.children!==T.children&&l(Z,N.children)}},m=(T,N,W,ee)=>{T==null?a(N.el=f(N.children||""),W,ee):N.el=T.el},x=(T,N,W,ee)=>{[T.el,T.anchor]=v(T.children,N,W,ee,T.el,T.anchor)},_=({el:T,anchor:N},W,ee)=>{let Z;for(;T&&T!==N;)Z=h(T),a(T,W,ee),T=Z;a(N,W,ee)},y=({el:T,anchor:N})=>{let W;for(;T&&T!==N;)W=h(T),n(T),T=W;n(N)},k=(T,N,W,ee,Z,K,ue,ve,me)=>{if(N.type==="svg"?ue="svg":N.type==="math"&&(ue="mathml"),T==null)C(N,W,ee,Z,K,ue,ve,me);else{const ge=T.el&&T.el._isVueCE?T.el:null;try{ge&&ge._beginPatch(),S(T,N,Z,K,ue,ve,me)}finally{ge&&ge._endPatch()}}},C=(T,N,W,ee,Z,K,ue,ve)=>{let me,ge;const{props:be,shapeFlag:Ee,transition:Se,dirs:Ie}=T;if(me=T.el=s(T.type,K,be&&be.is,be),Ee&8?u(me,T.children):Ee&16&&E(T.children,me,null,ee,Z,Nc(T,K),ue,ve),Ie&&gi(T,null,ee,"created"),w(me,T,T.scopeId,ue,ee),be){for(const Ne in be)Ne!=="value"&&!cf(Ne)&&i(me,Ne,null,be[Ne],K,ee);"value"in be&&i(me,"value",null,be.value,K),(ge=be.onVnodeBeforeMount)&&Ra(ge,ee,T)}Ie&&gi(T,null,ee,"beforeMount");const Me=HC(Z,Se);Me&&Se.beforeEnter(me),a(me,N,W),((ge=be&&be.onVnodeMounted)||Me||Ie)&&Mr(()=>{ge&&Ra(ge,ee,T),Me&&Se.enter(me),Ie&&gi(T,null,ee,"mounted")},Z)},w=(T,N,W,ee,Z)=>{if(W&&d(T,W),ee)for(let K=0;K{for(let ge=me;ge{const ve=N.el=T.el;let{patchFlag:me,dynamicChildren:ge,dirs:be}=N;me|=T.patchFlag&16;const Ee=T.props||mt,Se=N.props||mt;let Ie;if(W&&mi(W,!1),(Ie=Se.onVnodeBeforeUpdate)&&Ra(Ie,W,N,T),be&&gi(N,T,W,"beforeUpdate"),W&&mi(W,!0),(Ee.innerHTML&&Se.innerHTML==null||Ee.textContent&&Se.textContent==null)&&u(ve,""),ge?D(T.dynamicChildren,ge,ve,W,ee,Nc(N,Z),K):ue||ce(T,N,ve,null,W,ee,Nc(N,Z),K,!1),me>0){if(me&16)b(ve,Ee,Se,W,Z);else if(me&2&&Ee.class!==Se.class&&i(ve,"class",null,Se.class,Z),me&4&&i(ve,"style",Ee.style,Se.style,Z),me&8){const Me=N.dynamicProps;for(let Ne=0;Ne{Ie&&Ra(Ie,W,N,T),be&&gi(N,T,W,"updated")},ee)},D=(T,N,W,ee,Z,K,ue)=>{for(let ve=0;ve{if(N!==W){if(N!==mt)for(const K in N)!cf(K)&&!(K in W)&&i(T,K,N[K],null,Z,ee);for(const K in W){if(cf(K))continue;const ue=W[K],ve=N[K];ue!==ve&&K!=="value"&&i(T,K,ve,ue,Z,ee)}"value"in W&&i(T,"value",N.value,W.value,Z)}},F=(T,N,W,ee,Z,K,ue,ve,me)=>{const ge=N.el=T?T.el:o(""),be=N.anchor=T?T.anchor:o("");let{patchFlag:Ee,dynamicChildren:Se,slotScopeIds:Ie}=N;Ie&&(ve=ve?ve.concat(Ie):Ie),T==null?(a(ge,W,ee),a(be,W,ee),E(N.children||[],W,be,Z,K,ue,ve,me)):Ee>0&&Ee&64&&Se&&T.dynamicChildren&&T.dynamicChildren.length===Se.length?(D(T.dynamicChildren,Se,W,Z,K,ue,ve),(N.key!=null||Z&&N===Z.subTree)&&$y(T,N,!0)):ce(T,N,W,be,Z,K,ue,ve,me)},B=(T,N,W,ee,Z,K,ue,ve,me)=>{N.slotScopeIds=ve,T==null?N.shapeFlag&512?Z.ctx.activate(N,W,ee,ue,me):Y(N,W,ee,Z,K,ue,me):Q(T,N,me)},Y=(T,N,W,ee,Z,K,ue)=>{const ve=T.component=qC(T,ee,Z);if(Dy(T)&&(ve.ctx.renderer=oe),QC(ve,!1,ue),ve.asyncDep){if(Z&&Z.registerDep(ve,J,ue),!T.el){const me=ve.subTree=gn(ri);m(null,me,N,W),T.placeholder=me.el}}else J(ve,T,N,W,Z,K,ue)},Q=(T,N,W)=>{const ee=N.component=T.component;if(FC(T,N,W))if(ee.asyncDep&&!ee.asyncResolved){q(ee,N,W);return}else ee.next=N,ee.update();else N.el=T.el,ee.vnode=N},J=(T,N,W,ee,Z,K,ue)=>{const ve=()=>{if(T.isMounted){let{next:Ee,bu:Se,u:Ie,parent:Me,vnode:Ne}=T;{const Je=Xy(T);if(Je){Ee&&(Ee.el=Ne.el,q(T,Ee,ue)),Je.asyncDep.then(()=>{Mr(()=>{T.isUnmounted||ge()},Z)});return}}let Pe=Ee,ot;mi(T,!1),Ee?(Ee.el=Ne.el,q(T,Ee,ue)):Ee=Ne,Se&&M0(Se),(ot=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&Ra(ot,Me,Ee,Ne),mi(T,!0);const Re=W1(T),Ye=T.subTree;T.subTree=Re,p(Ye,Re,c(Ye.el),xe(Ye),T,Z,K),Ee.el=Re.el,Pe===null&&IC(T,Re.el),Ie&&Mr(Ie,Z),(ot=Ee.props&&Ee.props.onVnodeUpdated)&&Mr(()=>Ra(ot,Me,Ee,Ne),Z)}else{let Ee;const{el:Se,props:Ie}=N,{bm:Me,m:Ne,parent:Pe,root:ot,type:Re}=T,Ye=gf(N);mi(T,!1),Me&&M0(Me),!Ye&&(Ee=Ie&&Ie.onVnodeBeforeMount)&&Ra(Ee,Pe,N),mi(T,!0);{ot.ce&&ot.ce._hasShadowRoot()&&ot.ce._injectChildStyle(Re);const Je=T.subTree=W1(T);p(null,Je,W,ee,T,Z,K),N.el=Je.el}if(Ne&&Mr(Ne,Z),!Ye&&(Ee=Ie&&Ie.onVnodeMounted)){const Je=N;Mr(()=>Ra(Ee,Pe,Je),Z)}(N.shapeFlag&256||Pe&&gf(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&T.a&&Mr(T.a,Z),T.isMounted=!0,N=W=ee=null}};T.scope.on();const me=T.effect=new iy(ve);T.scope.off();const ge=T.update=me.run.bind(me),be=T.job=me.runIfDirty.bind(me);be.i=T,be.id=T.uid,me.scheduler=()=>Kv(be),mi(T,!0),ge()},q=(T,N,W)=>{N.component=T;const ee=T.vnode.props;T.vnode=N,T.next=null,RC(T,N.props,ee,W),BC(T,N.children,W),yn(),O1(T),wn()},ce=(T,N,W,ee,Z,K,ue,ve,me=!1)=>{const ge=T&&T.children,be=T?T.shapeFlag:0,Ee=N.children,{patchFlag:Se,shapeFlag:Ie}=N;if(Se>0){if(Se&128){ye(ge,Ee,W,ee,Z,K,ue,ve,me);return}else if(Se&256){U(ge,Ee,W,ee,Z,K,ue,ve,me);return}}Ie&8?(be&16&&ie(ge,Z,K),Ee!==ge&&u(W,Ee)):be&16?Ie&16?ye(ge,Ee,W,ee,Z,K,ue,ve,me):ie(ge,Z,K,!0):(be&8&&u(W,""),Ie&16&&E(Ee,W,ee,Z,K,ue,ve,me))},U=(T,N,W,ee,Z,K,ue,ve,me)=>{T=T||js,N=N||js;const ge=T.length,be=N.length,Ee=Math.min(ge,be);let Se;for(Se=0;Sebe?ie(T,Z,K,!0,!1,Ee):E(N,W,ee,Z,K,ue,ve,me,Ee)},ye=(T,N,W,ee,Z,K,ue,ve,me)=>{let ge=0;const be=N.length;let Ee=T.length-1,Se=be-1;for(;ge<=Ee&&ge<=Se;){const Ie=T[ge],Me=N[ge]=me?cn(N[ge]):za(N[ge]);if(ko(Ie,Me))p(Ie,Me,W,null,Z,K,ue,ve,me);else break;ge++}for(;ge<=Ee&&ge<=Se;){const Ie=T[Ee],Me=N[Se]=me?cn(N[Se]):za(N[Se]);if(ko(Ie,Me))p(Ie,Me,W,null,Z,K,ue,ve,me);else break;Ee--,Se--}if(ge>Ee){if(ge<=Se){const Ie=Se+1,Me=IeSe)for(;ge<=Ee;)M(T[ge],Z,K,!0),ge++;else{const Ie=ge,Me=ge,Ne=new Map;for(ge=Me;ge<=Se;ge++){const Bt=N[ge]=me?cn(N[ge]):za(N[ge]);Bt.key!=null&&Ne.set(Bt.key,ge)}let Pe,ot=0;const Re=Se-Me+1;let Ye=!1,Je=0;const at=new Array(Re);for(ge=0;ge=Re){M(Bt,Z,K,!0);continue}let pr;if(Bt.key!=null)pr=Ne.get(Bt.key);else for(Pe=Me;Pe<=Se;Pe++)if(at[Pe-Me]===0&&ko(Bt,N[Pe])){pr=Pe;break}pr===void 0?M(Bt,Z,K,!0):(at[pr-Me]=ge+1,pr>=Je?Je=pr:Ye=!0,p(Bt,N[pr],W,null,Z,K,ue,ve,me),ot++)}const vr=Ye?VC(at):js;for(Pe=vr.length-1,ge=Re-1;ge>=0;ge--){const Bt=Me+ge,pr=N[Bt],hi=N[Bt+1],di=Bt+1{const{el:K,type:ue,transition:ve,children:me,shapeFlag:ge}=T;if(ge&6){pe(T.component.subTree,N,W,ee);return}if(ge&128){T.suspense.move(N,W,ee);return}if(ge&64){ue.move(T,N,W,oe);return}if(ue===bt){a(K,N,W);for(let Ee=0;Eeve.enter(K),Z);else{const{leave:Ee,delayLeave:Se,afterLeave:Ie}=ve,Me=()=>{T.ctx.isUnmounted?n(K):a(K,N,W)},Ne=()=>{K._isLeaving&&K[nC](!0),Ee(K,()=>{Me(),Ie&&Ie()})};Se?Se(K,Me,Ne):Ne()}else a(K,N,W)},M=(T,N,W,ee=!1,Z=!1)=>{const{type:K,props:ue,ref:ve,children:me,dynamicChildren:ge,shapeFlag:be,patchFlag:Ee,dirs:Se,cacheIndex:Ie}=T;if(Ee===-2&&(Z=!1),ve!=null&&(yn(),pf(ve,null,W,T,!0),wn()),Ie!=null&&(N.renderCache[Ie]=void 0),be&256){N.ctx.deactivate(T);return}const Me=be&1&&Se,Ne=!gf(T);let Pe;if(Ne&&(Pe=ue&&ue.onVnodeBeforeUnmount)&&Ra(Pe,N,T),be&6)V(T.component,W,ee);else{if(be&128){T.suspense.unmount(W,ee);return}Me&&gi(T,null,N,"beforeUnmount"),be&64?T.type.remove(T,N,W,oe,ee):ge&&!ge.hasOnce&&(K!==bt||Ee>0&&Ee&64)?ie(ge,N,W,!1,!0):(K===bt&&Ee&384||!Z&&be&16)&&ie(me,N,W),ee&&H(T)}(Ne&&(Pe=ue&&ue.onVnodeUnmounted)||Me)&&Mr(()=>{Pe&&Ra(Pe,N,T),Me&&gi(T,null,N,"unmounted")},W)},H=T=>{const{type:N,el:W,anchor:ee,transition:Z}=T;if(N===bt){z(W,ee);return}if(N===Uc){y(T);return}const K=()=>{n(W),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(T.shapeFlag&1&&Z&&!Z.persisted){const{leave:ue,delayLeave:ve}=Z,me=()=>ue(W,K);ve?ve(T.el,K,me):me()}else K()},z=(T,N)=>{let W;for(;T!==N;)W=h(T),n(T),T=W;n(N)},V=(T,N,W)=>{const{bum:ee,scope:Z,job:K,subTree:ue,um:ve,m:me,a:ge}=T;X1(me),X1(ge),ee&&M0(ee),Z.stop(),K&&(K.flags|=8,M(ue,T,N,W)),ve&&Mr(ve,N),Mr(()=>{T.isUnmounted=!0},N)},ie=(T,N,W,ee=!1,Z=!1,K=0)=>{for(let ue=K;ue{if(T.shapeFlag&6)return xe(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const N=h(T.anchor||T.el),W=N&&N[rC];return W?h(W):N};let de=!1;const fe=(T,N,W)=>{let ee;T==null?N._vnode&&(M(N._vnode,null,null,!0),ee=N._vnode.component):p(N._vnode||null,T,N,null,null,null,W),N._vnode=T,de||(de=!0,O1(ee),Ty(),de=!1)},oe={p,um:M,m:pe,r:H,mt:Y,mc:E,pc:ce,pbc:D,n:xe,o:e};return{render:fe,hydrate:void 0,createApp:EC(fe)}}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 mi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function HC(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $y(e,t,r=!1){const a=e.children,n=t.children;if(ze(a)&&ze(n))for(let i=0;i>1,e[r[o]]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 Xy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xy(t)}function X1(e){if(e)for(let t=0;te.__isSuspense;function zC(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):ZE(e)}const bt=Symbol.for("v-fgt"),tc=Symbol.for("v-txt"),ri=Symbol.for("v-cmt"),Uc=Symbol.for("v-stc"),xf=[];let Xr=null;function ht(e=!1){xf.push(Xr=e?null:[])}function WC(){xf.pop(),Xr=xf[xf.length-1]||null}let Wf=1;function Y1(e,t=!1){Wf+=e,e<0&&Xr&&t&&(Xr.hasOnce=!0)}function Zy(e){return e.dynamicChildren=Wf>0?Xr||js:null,WC(),Wf>0&&Xr&&Xr.push(e),e}function dt(e,t,r,a,n,i){return Zy(_e(e,t,r,a,n,i,!0))}function GC(e,t,r,a,n){return Zy(gn(e,t,r,a,n,!0))}function jy(e){return e?e.__v_isVNode===!0:!1}function ko(e,t){return e.type===t.type&&e.key===t.key}const qy=({key:e})=>e??null,P0=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?zt(e)||lr(e)||Ze(e)?{i:ua,r:e,k:t,f:!!r}:e:null);function _e(e,t=null,r=null,a=0,n=null,i=e===bt?0:1,s=!1,o=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qy(t),ref:t&&P0(t),scopeId:Ey,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:ua};return o?(Qv(f,r),i&128&&e.normalize(f)):r&&(f.shapeFlag|=zt(r)?8:16),Wf>0&&!s&&Xr&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Xr.push(f),f}const gn=$C;function $C(e,t=null,r=null,a=0,n=null,i=!1){if((!e||e===gC)&&(e=ri),jy(e)){const o=co(e,t,!0);return r&&Qv(o,r),Wf>0&&!i&&Xr&&(o.shapeFlag&6?Xr[Xr.indexOf(e)]=o:Xr.push(o)),o.patchFlag=-2,o}if(aA(e)&&(e=e.__vccOpts),t){t=XC(t);let{class:o,style:f}=t;o&&!zt(o)&&(t.class=Js(o)),vt(f)&&(Xv(f)&&!ze(f)&&(f=Qt({},f)),t.style=Sa(f))}const s=zt(e)?1:Ky(e)?128:aC(e)?64:vt(e)?4:Ze(e)?2:0;return _e(e,t,r,a,n,s,i,!0)}function XC(e){return e?Xv(e)||Uy(e)?Qt({},e):e:null}function co(e,t,r=!1,a=!1){const{props:n,ref:i,patchFlag:s,children:o,transition:f}=e,l=t?KC(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qy(l),ref:t&&t.ref?r&&i?ze(i)?i.concat(P0(t)):[i,P0(t)]:P0(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!==bt?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&&co(e.ssContent),ssFallback:e.ssFallback&&co(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 YC(e=" ",t=0){return gn(tc,null,e,t)}function Wl(e="",t=!1){return t?(ht(),GC(ri,null,e)):gn(ri,null,e)}function za(e){return e==null||typeof e=="boolean"?gn(ri):ze(e)?gn(bt,null,e.slice()):jy(e)?cn(e):gn(tc,null,String(e))}function cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:co(e)}function Qv(e,t){let r=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(ze(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&&!Uy(t)?t._ctx=ua:n===3&&ua&&(ua.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:ua},r=32):(t=String(t),a&64?(r=16,t=[YC(t)]):r=8);e.children=t,e.shapeFlag|=r}function KC(...e){const t={};for(let r=0;rSr||ua;let ru,Cd;{const e=ju(),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)}};ru=t("__VUE_INSTANCE_SETTERS__",r=>Sr=r),Cd=t("__VUE_SSR_SETTERS__",r=>Gf=r)}const yl=e=>{const t=Sr;return ru(e),e.scope.on(),()=>{e.scope.off(),ru(t)}},K1=()=>{Sr&&Sr.scope.off(),ru(null)};function Jy(e){return e.vnode.shapeFlag&4}let Gf=!1;function QC(e,t=!1,r=!1){t&&Cd(t);const{props:a,children:n}=e.vnode,i=Jy(e);MC(e,a,i,t),OC(e,n,r||t);const s=i?eA(e,t):void 0;return t&&Cd(!1),s}function eA(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mC);const{setup:a}=r;if(a){yn();const n=e.setupContext=a.length>1?rA(e):null,i=yl(e),s=_l(a,e,0,[e.props,n]),o=q_(s);if(wn(),i(),(o||e.sp)&&!gf(e)&&Ay(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 Qy(e)}function Z1(e,t,r){Ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vt(t)&&(e.setupState=_y(t)),Qy(e)}function Qy(e,t,r){const a=e.type;e.render||(e.render=a.render||Ya);{const n=yl(e);yn();try{xC(e)}finally{wn(),n()}}}const tA={get(e,t){return sr(e,"get",""),e[t]}};function rA(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,tA),slots:e.slots,emit:e.emit,expose:t}}function rc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_y(UE(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in mf)return mf[r](e)},has(t,r){return r in t||r in mf}})):e.proxy}function aA(e){return Ze(e)&&"__vccOpts"in e}const ea=(e,t)=>GE(e,t,Gf),nA="3.5.28";let Ad;const j1=typeof window<"u"&&window.trustedTypes;if(j1)try{Ad=j1.createPolicy("vue",{createHTML:e=>e})}catch{}const ew=Ad?e=>Ad.createHTML(e):e=>e,iA="http://www.w3.org/2000/svg",sA="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,q1=ln&&ln.createElement("template"),oA={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(iA,e):t==="mathml"?ln.createElementNS(sA,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=ew(a==="svg"?`${e}`:a==="mathml"?`${e}`: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]}},fA=Symbol("_vtc");function lA(e,t,r){const a=e[fA];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const J1=Symbol("_vod"),uA=Symbol("_vsh"),cA=Symbol(""),hA=/(?:^|;)\s*display\s*:/;function dA(e,t,r){const a=e.style,n=zt(r);let i=!1;if(r&&!n){if(t)if(zt(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();r[o]==null&&L0(a,o,"")}else for(const s in t)r[s]==null&&L0(a,s,"");for(const s in r)s==="display"&&(i=!0),L0(a,s,r[s])}else if(n){if(t!==r){const s=a[cA];s&&(r+=";"+s),a.cssText=r,i=hA.test(r)}}else t&&e.removeAttribute("style");J1 in e&&(e[J1]=i?a.display:"",e[uA]&&(a.display="none"))}const Q1=/\s*!important$/;function L0(e,t,r){if(ze(r))r.forEach(a=>L0(e,t,a));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const a=vA(e,t);Q1.test(r)?e.setProperty(ui(a),r.replace(Q1,""),"important"):e[a]=r}}const eg=["Webkit","Moz","ms"],Hc={};function vA(e,t){const r=Hc[t];if(r)return r;let a=ti(t);if(a!=="filter"&&a in e)return Hc[t]=a;a=ey(a);for(let n=0;nVc||(xA.then(()=>Vc=0),Vc=Date.now());function yA(e,t){const r=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=r.attached)return;qa(wA(a,r.value),t,5,[a])};return r.value=e,r.attached=_A(),r}function wA(e,t){if(ze(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,TA=(e,t,r,a,n,i)=>{const s=n==="svg";t==="class"?lA(e,a,s):t==="style"?dA(e,r,a):Xu(t)?Bv(t)||gA(e,t,r,a,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):SA(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)||!zt(a))?ag(e,ti(t),a,i,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),rg(e,t,a,s))};function SA(e,t,r,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&sg(t)&&Ze(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)&&zt(r)?!1:t in e}const au=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>M0(t,r):t};function EA(e){e.target.composing=!0}function og(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const to=Symbol("_assign");function fg(e,t,r){return t&&(e=e.trim()),r&&(e=Zu(e)),e}const lg={created(e,{modifiers:{lazy:t,trim:r,number:a}},n){e[to]=au(n);const i=a||n.props&&n.props.type==="number";Gi(e,t?"change":"input",s=>{s.target.composing||e[to](fg(e.value,r,i))}),(r||i)&&Gi(e,"change",()=>{e.value=fg(e.value,r,i)}),t||(Gi(e,"compositionstart",EA),Gi(e,"compositionend",og),Gi(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[to]=au(s),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Zu(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))}},bo={deep:!0,created(e,{value:t,modifiers:{number:r}},a){const n=Yu(t);Gi(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?Zu(nu(s)):nu(s));e[to](e.multiple?n?new Set(i):i:i[0]),e._assigning=!0,Yv(()=>{e._assigning=!1})}),e[to]=au(a)},mounted(e,{value:t}){ug(e,t)},beforeUpdate(e,t,r){e[to]=au(r)},updated(e,{value:t}){e._assigning||ug(e,t)}};function ug(e,t){const r=e.multiple,a=ze(t);if(!(r&&!a&&!Yu(t))){for(let n=0,i=e.options.length;nString(l)===String(o)):s.selected=mE(t,o)>-1}else s.selected=t.has(o);else if(xl(nu(s),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function nu(e){return"_value"in e?e._value:e.value}const CA=["ctrl","shift","alt","meta"],AA={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)=>CA.some(r=>e[`${r}Key`]&&!t.includes(r))},Fo=(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{const r=e._withKeys||(e._withKeys={}),a=t.join(".");return r[a]||(r[a]=(n=>{if(!("key"in n))return;const i=ui(n.key);if(t.some(s=>s===i||DA[s]===i))return e(n)}))},bA=Qt({patchProp:TA},oA);let cg;function FA(){return cg||(cg=NC(bA))}const IA=((...e)=>{const t=FA().createApp(...e),{mount:r}=t;return t.mount=a=>{const n=RA(a);if(!n)return;const i=t._component;!Ze(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const s=r(n,!1,MA(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),s},t});function MA(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function RA(e){return zt(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 $e(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 PA=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),LA=(function(){function e(){this.browser=new PA,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})(),We=new LA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(We.wxa=!0,We.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?We.worker=!0:!We.hasGlobalWindow||"Deno"in window?(We.node=!0,We.svgSupported=!0):OA(navigator.userAgent,We);function OA(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,tw="sans-serif",ai=ep+"px "+tw,BA=20,NA=100,UA="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function HA(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)o=s*r.length;else for(var f=0;f>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 cD(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 lw(e){return e.nodeName.toUpperCase()==="CANVAS"}var hD=/([&<>"'])/g,dD={"&":"&","<":"<",">":">",'"':""","'":"'"};function yr(e){return e==null?"":(e+"").replace(hD,function(t,r){return dD[r]})}var vD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gc=[],pD=We.browser.firefox&&+We.browser.version.split(".")[0]<39;function Rd(e,t,r,a){return r=r||{},a?mg(e,t,r):pD&&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(We.domSupported&&e.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(lw(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 aa(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=gD(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&vD.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function gD(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 mD(e,t,r,a){e.addEventListener(t,r,a)}function xD(e,t,r,a){e.removeEventListener(t,r,a)}var uw=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},_D=(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;s1&&a&&a.length>1){var i=xg(a)/xg(n);!isFinite(i)&&(i=1),t.pinchScale=i;var s=yD(a);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function ao(){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 wD(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 no(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 TD(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 cw(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 gt=(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})(),$l=Math.min,Xl=Math.max,xi=new gt,_i=new gt,yi=new gt,wi=new gt,Io=new gt,Mo=new gt,xt=(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=$l(t.x,this.x),a=$l(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xl(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xl(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=ao();return Pd(i,i,[-r.x,-r.y]),TD(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=!(iv&&(v=_,pv&&(v=y,m=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}xi.x=yi.x=r.x,xi.y=wi.y=r.y,_i.x=wi.x=r.x+r.width,_i.y=yi.y=r.y+r.height,xi.transform(a),wi.transform(a),_i.transform(a),yi.transform(a),t.x=$l(xi.x,_i.x,yi.x,wi.x),t.y=$l(xi.y,_i.y,yi.y,wi.y);var f=Xl(xi.x,_i.x,yi.x,wi.x),l=Xl(xi.y,_i.y,yi.y,wi.y);t.width=f-t.x,t.height=l-t.y},e})(),hw="silent";function SD(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:ED}}function ED(){uw(this.event)}var CD=(function(e){$e(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})(en),Ro=(function(){function e(t,r){this.x=t,this.y=r}return e})(),AD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xc=new xt(0,0,0,0),dw=(function(e){$e(t,e);function t(r,a,n,i,s){var o=e.call(this)||this;return o._hovered=new Ro(0,0),o.storage=r,o.painter=a,o.painterRoot=i,o._pointerSize=s,n=n||new CD,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new oD(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(G(AD,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=vw(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 Ro(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 Ro(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=SD(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 Ro(r,a);if(_g(i,s,r,a,n),this._pointerSize&&!s.target){for(var o=[],f=this._pointerSize,l=f/2,u=new xt(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;g4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function DD(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?hw:!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=DD(s,r,a))&&(!t.topTarget&&(t.topTarget=s),o!==hw)){t.target=s;break}}}function vw(e,t,r){var a=e.painter;return t<0||t>a.getWidth()||r<0||r>a.getHeight()}var pw=32,Po=7;function kD(e){for(var t=0;e>=pw;)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=0;)n++;return n-t}function bD(e,t,r){for(r--;t>>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;f0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o),s+=n,f+=n}else{for(o=n+1;fo&&(f=o);var l=s;s=n-f,f=n-l}for(s++;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;fo&&(f=o);var l=s;s=n-f,f=n-l}else{for(o=a-n;f=0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o),s+=n,f+=n}for(s++;s>>1);i(e,t[r+u])<0?f=u:s=u+1}return f}function FD(e,t){var r=Po,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])break;u(d)}}function l(){for(;i>1;){var d=i-2;d>0&&n[d-1]=Po||w>=Po);if(E)break;k<0&&(k=0),k+=2}if(r=k,r<1&&(r=1),v===1){for(m=0;m=0;m--)e[C+m]=e[k+m];e[y]=s[_];return}for(var w=r;;){var E=0,S=0,D=!1;do if(t(s[_],e[x])<0){if(e[y--]=e[x--],E++,S=0,--v===0){D=!0;break}}else if(e[y--]=s[_--],S++,E=0,--g===1){D=!0;break}while((E|S)=0;m--)e[C+m]=e[k+m];if(v===0){D=!0;break}}if(e[y--]=s[_--],--g===1){D=!0;break}if(S=g-Yc(e[x],s,0,g,g-1,t),S!==0){for(y-=S,_-=S,g-=S,C=y+1,k=_+1,m=0;m=Po||S>=Po);if(D)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(y-=v,x-=v,C=y+1,k=x+1,m=v-1;m>=0;m--)e[C+m]=e[k+m];e[y]=s[_]}else{if(g===0)throw new Error;for(k=y-(g-1),m=0;mo&&(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 Gr=1,Jo=2,Hs=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 ID=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Sg}return e.prototype.traverse=function(t,r){for(var a=0;a0&&(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=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})(),iu;iu=We.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var wf={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-wf.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?wf.bounceIn(e*2)*.5:wf.bounceOut(e*2-1)*.5+.5}},Yl=Math.pow,Zn=Math.sqrt,su=1e-8,gw=1e-4,Eg=Zn(3),Kl=1/3,Ga=xo(),oa=xo(),io=xo();function Wn(e){return e>-su&&esu||e<-su}function wr(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 xw(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(Wn(u)&&Wn(c))if(Wn(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(Wn(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=Zn(p),_=u*o+1.5*s*(-c+x),y=u*o+1.5*s*(-c-x);_<0?_=-Yl(-_,Kl):_=Yl(_,Kl),y<0?y=-Yl(-y,Kl):y=Yl(y,Kl);var v=(-o-(_+y))/(3*s);v>=0&&v<=1&&(i[d++]=v)}else{var k=(2*u*o-3*s*c)/(2*Zn(u*u*u)),C=Math.acos(k)/3,w=Zn(u),E=Math.cos(C),v=(-o-2*w*E)/(3*s),m=(-o+w*(E+Eg*Math.sin(C)))/(3*s),S=(-o+w*(E-Eg*Math.sin(C)))/(3*s);v>=0&&v<=1&&(i[d++]=v),m>=0&&m<=1&&(i[d++]=m),S>=0&&S<=1&&(i[d++]=S)}}return d}function _w(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(Wn(s)){if(mw(i)){var l=-o/i;l>=0&&l<=1&&(n[f++]=l)}}else{var u=i*i-4*s*o;if(Wn(u))n[0]=-i/(2*s);else if(u>0){var c=Zn(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 ou(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 MD(e,t,r,a,n,i,s,o,f,l,u){var c,h=.005,d=1/0,v,p,g,m;Ga[0]=f,Ga[1]=l;for(var x=0;x<1;x+=.05)oa[0]=wr(e,r,n,s,x),oa[1]=wr(t,a,i,o,x),g=ro(Ga,oa),g=0&&g=0&&l<=1&&(n[f++]=l)}}else{var u=s*s-4*i*o;if(Wn(u)){var l=-s/(2*i);l>=0&&l<=1&&(n[f++]=l)}else if(u>0){var c=Zn(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 yw(e,t,r){var a=e+r-2*t;return a===0?.5:(e-t)/a}function fu(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 LD(e,t,r,a,n,i,s,o,f){var l,u=.005,c=1/0;Ga[0]=s,Ga[1]=o;for(var h=0;h<1;h+=.05){oa[0]=Lr(e,r,n,h),oa[1]=Lr(t,a,i,h);var d=ro(Ga,oa);d=0&&d=1?1:xw(0,a,i,1,f,o)&&wr(0,n,s,1,o[0])}}}var ND=(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||ur,this.ondestroy=t.ondestroy||ur,this.onrestart=t.onrestart||ur,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=ct(t)?t:wf[t]||fp(t)},e})(),ww=(function(){function e(t){this.value=t}return e})(),UD=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new ww(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})(),Tl=(function(){function e(t){this._list=new UD,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 ww(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 jn(e){return e=Math.round(e),e<0?0:e>255?255:e}function HD(e){return e=Math.round(e),e<0?0:e>360?360:e}function lu(e){return e<0?0:e>1?1:e}function jc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jn(parseFloat(t)/100*255):jn(parseInt(t,10))}function ts(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?lu(parseFloat(t)/100):lu(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 Zl(e,t,r){return e+(t-e)*r}function ta(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 Tw=new Tl(20),jl=null;function Es(e,t){jl&&Ld(jl,t),jl=Tw.put(e,jl||t.slice())}function Za(e,t){if(e){t=t||[];var r=Tw.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]),Es(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)){ta(t,0,0,0,1);return}return ta(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),Es(e,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){ta(t,0,0,0,1);return}return ta(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Es(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?ta(t,+l[0],+l[1],+l[2],1):ta(t,0,0,0,1);u=ts(l.pop());case"rgb":if(l.length>=3)return ta(t,jc(l[0]),jc(l[1]),jc(l[2]),l.length===3?u:ts(l[3])),Es(e,t),t;ta(t,0,0,0,1);return;case"hsla":if(l.length!==4){ta(t,0,0,0,1);return}return l[3]=ts(l[3]),Od(l,t),Es(e,t),t;case"hsl":if(l.length!==3){ta(t,0,0,0,1);return}return Od(l,t),Es(e,t),t;default:return}}ta(t,0,0,0,1)}}function Od(e,t){var r=(parseFloat(e[0])%360+360)%360/360,a=ts(e[1]),n=ts(e[2]),i=n<=.5?n*(a+1):n+a-n*a,s=n*2-i;return t=t||[],ta(t,jn(qc(s,i,r+1/3)*255),jn(qc(s,i,r)*255),jn(qc(s,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function VD(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=Za(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 rs(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]=jn(Zl(s[0],o[0],f)),r[1]=jn(Zl(s[1],o[1],f)),r[2]=jn(Zl(s[2],o[2],f)),r[3]=lu(Zl(s[3],o[3],f)),r}}function Qc(e,t,r,a){var n=Za(e);if(e)return n=VD(n),t!=null&&(n[0]=HD(t)),r!=null&&(n[1]=ts(r)),a!=null&&(n[2]=ts(a)),rs(Od(n),"rgba")}function zD(e,t){var r=Za(e);if(r&&t!=null)return r[3]=lu(t),rs(r,"rgba")}function rs(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 uu(e,t){var r=Za(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var bg=new Tl(100);function Bd(e){if(Oe(e)){var t=bg.get(e);return t||(t=kg(e,-.1),bg.put(e,t)),t}else if(nc(e)){var r=De({},e);return r.colorStops=je(e.colorStops,function(a){return{offset:a.offset,color:kg(a.color,-.1)}}),r}return e}var cu=Math.round;function Xf(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Za(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Fg=1e-4;function Gn(e){return e-Fg}function ql(e){return cu(e*1e3)/1e3}function Nd(e){return cu(e*1e4)/1e4}function WD(e){return"matrix("+ql(e[0])+","+ql(e[1])+","+ql(e[2])+","+ql(e[3])+","+Nd(e[4])+","+Nd(e[5])+")"}var GD={left:"start",right:"end",center:"middle",middle:"middle"};function $D(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function XD(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function YD(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 Sw(e){return e&&!!e.image}function KD(e){return e&&!!e.svgElement}function lp(e){return Sw(e)||KD(e)}function Ew(e){return e.type==="linear"}function Cw(e){return e.type==="radial"}function Aw(e){return e&&(e.type==="linear"||e.type==="radial")}function sc(e){return"url(#"+e+")"}function Dw(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 kw(e){var t=e.x||0,r=e.y||0,a=(e.rotation||0)*O0,n=Xe(e.scaleX,1),i=Xe(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("+cu(s*O0)+"deg, "+cu(o*O0)+"deg)"),f.join(" ")}var ZD=(function(){return We.hasGlobalWindow&&ct(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;ia?t:e,i=Math.min(r,a),s=n[i-1]||{color:[0,0,0,0],offset:0},o=i;os;if(o)a.length=s;else for(var f=i;f=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(Nr(r)){var l=QD(r);o=l,(l===1&&!Lt(r[0])||l===2&&!Lt(r[0][0]))&&(s=!0)}else if(Lt(r)&&!ZA(r))o=Ql;else if(Oe(r))if(!isNaN(+r))o=Ql;else{var u=Za(r);u&&(f=u,o=Qo)}else if(nc(r)){var c=De({},f);c.colorStops=je(r.colorStops,function(d){return{offset:d.offset,color:Za(d.color)}}),Ew(r)?o=Hd:Cw(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=ct(a)?a:wf[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=e0(n),l=Rg(n),u=0;u=0&&!(s[u].percent<=r);u--);u=h(u,o-2)}else{for(u=c;ur);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?Lo:t[f];if((e0(i)||l)&&!x&&(x=this._additiveValue=[]),this.discrete)t[f]=m<1?d.rawValue:v.rawValue;else if(e0(i))i===H0?eh(x,d[n],v[n],m):jD(x,d[n],v[n],m);else if(Rg(i)){var _=d[n],y=v[n],k=i===Hd;t[f]={type:k?"linear":"radial",x:un(_.x,y.x,m),y:un(_.y,y.y,m),colorStops:je(_.colorStops,function(w,E){var S=y.colorStops[E];return{offset:un(w.offset,S.offset,m),color:U0(eh([],w.color,S.color,m))}}),global:y.global},k?(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]=U0(x));else{var C=un(d[n],v[n],m);a?this._additiveValue=C:t[f]=C}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===Qo?(Za(t[a],Lo),Jl(Lo,Lo,n,1),t[a]=U0(Lo)):r===H0?Jl(t[a],t[a],n,1):r===bw&&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,st(r),a)},e.prototype.whenWithKeys=function(t,r,a,n){for(var i=this._tracks,s=0;s0&&f.addKeyframe(0,N0(l),n),this._trackKeys.push(o)}f.addKeyframe(t,N0(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;a0)){this._started=1;for(var r=this,a=[],n=this._maxTime||0,i=0;i1){var o=s.pop();i.addKeyframe(o.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e})();function Xs(){return new Date().getTime()}var tk=(function(e){$e(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=Xs()-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&&(iu(a),!r._paused&&r.update())}iu(a)},t.prototype.start=function(){this._running||(this._time=Xs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Xs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Xs()-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})(en),rk=300,th=We.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=je(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 ak(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 nk(e,t){return aa(e.dom,new ik(e,t),!0)}function Fw(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 ik=(function(){function e(t,r){this.stopPropagation=ur,this.stopImmediatePropagation=ur,this.preventDefault=ur,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),wa={mousedown:function(e){e=aa(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=aa(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=aa(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=aa(this.dom,e);var t=e.toElement||e.relatedTarget;Fw(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Lg=!0,e=aa(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Lg||(e=aa(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=aa(this.dom,e),ah(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wa.mousemove.call(this,e),wa.mousedown.call(this,e)},touchmove:function(e){e=aa(this.dom,e),ah(e),this.handler.processGesture(e,"change"),wa.mousemove.call(this,e)},touchend:function(e){e=aa(this.dom,e),ah(e),this.handler.processGesture(e,"end"),wa.mouseup.call(this,e),+new Date-+this.__lastTouchMomentNg||e<-Ng}var Si=[],Cs=[],ih=ao(),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 Ti(this.rotation)||Ti(this.x)||Ti(this.y)||Ti(this.scaleX-1)||Ti(this.scaleY-1)||Ti(this.skewX)||Ti(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||ao(),r?this.getLocalTransform(a):Bg(a),t&&(r?no(a,t,a):wD(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Si);var a=Si[0]<0?-1:1,n=Si[1]<0?-1:1,i=((Si[0]-a)*r+a)/Si[0]||0,s=((Si[1]-n)*r+n)/Si[1]||0;t[0]*=i,t[1]*=i,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||ao(),cw(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||ao(),no(Cs,t.invTransform,r),r=Cs);var a=this.originX,n=this.originY;(a||n)&&(ih[4]=a,ih[5]=n,no(Cs,r,ih),Cs[4]-=a,Cs[5]-=n,r=Cs),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&&Ka(a,a,n),a},e.prototype.transformCoordToGlobal=function(t,r){var a=[t,r],n=this.transform;return n&&Ka(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){Mw(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})(),Yf=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Mw(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Pw(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+=Kf(a[0],r.width),l+=Kf(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=Yf.concat(["ignore"]),uk=mo(Yf,function(e,t){return e[t]=!0,e},{ignore:!1}),As={},ck=new xt(0,0,0,0),fc=(function(){function e(t){this.id=nw(),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=ck;a.layoutRect?u.copy(a.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(As,a,u):Pw(As,a,u),i.x=As.x,i.y=As.y,s=As.align,o=As.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=Kf(c[0],u.width),d=Kf(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|=Gr,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"&&Za(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,rs(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||{},De(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(Be(t))for(var a=t,n=st(a),i=0;i0},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(!(St(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&=~Gr),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;f0,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&=~Gr)}},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=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=St(n,t),s=St(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=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;s0&&r.during&&i[0].during(function(v,p){r.during(p)});for(var h=0;h0||n.force&&!s.length){var E=void 0,S=void 0,D=void 0;if(o){S={},h&&(E={});for(var y=0;y<_;y++){var m=p[y];S[m]=r[m],h?E[m]=a[m]:r[m]=a[m]}}else if(h){D={};for(var y=0;y<_;y++){var m=p[y];D[m]=N0(r[m]),dk(r,a,m)}}var k=new up(r,!1,!1,c?zr(v,function(F){return F.targetName===t}):null);k.targetName=t,n.scope&&(k.scope=n.scope),h&&E&&k.whenWithKeys(0,E,p),D&&k.whenWithKeys(0,D,p),k.whenWithKeys(l??500,o?S:a,p).delay(u||0),e.addAnimator(k,t),s.push(k)}}var Sn=(function(e){$e(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=0&&(n.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,a){var n=St(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=St(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;n0&&(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;r0){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 Wa(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 Oe(e)?Tk(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Sk(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Bw),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 Ek(e)}function Ek(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 Ck(e,t){var r=Math.max(Wg(e),Wg(t)),a=e+t;return r>Bw?a:Sk(a,r)}function Nw(e){var t=Math.PI*2;return(e%t+t)%t}function du(e){return e>-zg&&e=0||i&&St(i,f)<0)){var l=a.getShallow(f,t);l!=null&&(s[e[o][0]]=l)}}return s}}var qk=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Jk=qf(qk),Qk=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Jk(this,t,r)},e})(),Kd=new Tl(50);function e5(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,!uc(t)&&i.pending.push(s)):(t=go.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=s;f++)o-=s;var l=Yr(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 Kw(e,t,r){var a=r.containerWidth,n=r.font,i=r.contentWidth;if(!a){e.textLine="",e.isTruncated=!1;return}var s=Yr(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?r5(t,i,r.ascCharWidth,r.cnCharWidth):s>0?Math.floor(t.length*i/s):0;t=t.substr(0,f),s=Yr(t,n)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function r5(e,t,r,a){for(var n=0,i=0,s=e.length;iv&&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=Yw(c,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m={},x=0;xo&&dh(r,e.substring(o,l),t,s),dh(r,f[2],t,s,f[1]),o=hh.lastIndex}on){var B=r.lines.length;C>0?(_.tokens=_.tokens.slice(0,C),m(_,k,y),r.lines=r.lines.slice(0,x+1)):r.lines=r.lines.slice(0,x),r.isTruncated=r.isTruncated||r.lines.length0&&v+a.accumWidth>a.width&&(u=t.split(` +`),l=!0),a.accumWidth=v}else{var p=Zw(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=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var f5=mo(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function l5(e){return o5(e)?!!f5[e]:!0}function Zw(e,t,r,a,n){for(var i=[],s=[],o="",f="",l=0,u=0,c=0;cr: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),as={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};as[Zd]=!0;var Zg=["z","z2","invisible"],u5=["invisible"],Al=(function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var a=st(r),n=0;n1e-4){o[0]=e-r,o[1]=t-a,f[0]=e+r,f[1]=t+a;return}if(t0[0]=mh(n)*r+e,t0[1]=gh(n)*a+t,r0[0]=mh(i)*r+e,r0[1]=gh(i)*a+t,l(o,t0,r0),u(f,t0,r0),n=n%Ci,n<0&&(n=n+Ci),i=i%Ci,i<0&&(i=i+Ci),n>i&&!s?i+=Ci:nn&&(a0[0]=mh(d)*r+e,a0[1]=gh(d)*a+t,l(o,a0,o),u(f,a0,f))}var ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ai=[],Di=[],Pa=[],In=[],La=[],Oa=[],xh=Math.min,_h=Math.max,ki=Math.cos,bi=Math.sin,on=Math.abs,jd=Math.PI,Nn=jd*2,yh=typeof Float32Array<"u",Oo=[];function wh(e){var t=Math.round(e/jd*1e8)/1e8;return t%2*jd}function p5(e,t){var r=wh(e[0]);r<0&&(r+=Nn);var a=r-e[0],n=e[1];n+=a,!t&&n-r>=Nn?n=r+Nn:t&&r-n>=Nn?n=r-Nn:!t&&r>n?n=r+(Nn-wh(r-n)):t&&r0&&(this._ux=on(a/hu/t)||0,this._uy=on(a/hu/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(ft.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(ft.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(ft.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(ft.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(),Oo[0]=n,Oo[1]=i,p5(Oo,s),n=Oo[0],i=Oo[1];var o=i-n;return this.addData(ft.A,t,r,a,a,n,o,0,s?0:1),this._ctx&&this._ctx.arc(t,r,a,n,i,s),this._xi=ki(i)*a+t,this._yi=bi(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(ft.R,t,r,a,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ft.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;au.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(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;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Pa[0]=Pa[1]=La[0]=La[1]=Number.MAX_VALUE,In[0]=In[1]=Oa[0]=Oa[1]=-Number.MAX_VALUE;var t=this.data,r=0,a=0,n=0,i=0,s;for(s=0;sa||on(_)>n||h===r-1)&&(p=Math.sqrt(x*x+_*_),i=g,s=m);break}case ft.C:{var y=t[h++],k=t[h++],g=t[h++],m=t[h++],C=t[h++],w=t[h++];p=RD(i,s,y,k,g,m,C,w,10),i=C,s=w;break}case ft.Q:{var y=t[h++],k=t[h++],g=t[h++],m=t[h++];p=OD(i,s,y,k,g,m,10),i=g,s=m;break}case ft.A:var E=t[h++],S=t[h++],D=t[h++],b=t[h++],F=t[h++],B=t[h++],Y=B+F;h+=1,v&&(o=ki(F)*D+E,f=bi(F)*b+S),p=_h(D,b)*xh(Nn,Math.abs(B)),i=ki(Y)*D+E,s=bi(Y)*b+S;break;case ft.R:{o=i=t[h++],f=s=t[h++];var Q=t[h++],J=t[h++];p=Q*2+J*2;break}case ft.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,k;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,x=r*p,!x)))e:for(var C=0;C0&&(t.lineTo(y,k),_=0),w){case ft.M:o=l=a[C++],f=u=a[C++],t.moveTo(l,u);break;case ft.L:{c=a[C++],h=a[C++];var S=on(c-l),D=on(h-u);if(S>n||D>i){if(d){var b=v[m++];if(g+b>x){var F=(x-g)/b;t.lineTo(l*(1-F)+c*F,u*(1-F)+h*F);break e}g+=b}t.lineTo(c,h),l=c,u=h,_=0}else{var B=S*S+D*D;B>_&&(y=c,k=h,_=B)}break}case ft.C:{var Y=a[C++],Q=a[C++],J=a[C++],q=a[C++],ce=a[C++],U=a[C++];if(d){var b=v[m++];if(g+b>x){var F=(x-g)/b;ou(l,Y,J,ce,F,Ai),ou(u,Q,q,U,F,Di),t.bezierCurveTo(Ai[1],Di[1],Ai[2],Di[2],Ai[3],Di[3]);break e}g+=b}t.bezierCurveTo(Y,Q,J,q,ce,U),l=ce,u=U;break}case ft.Q:{var Y=a[C++],Q=a[C++],J=a[C++],q=a[C++];if(d){var b=v[m++];if(g+b>x){var F=(x-g)/b;fu(l,Y,J,F,Ai),fu(u,Q,q,F,Di),t.quadraticCurveTo(Ai[1],Di[1],Ai[2],Di[2]);break e}g+=b}t.quadraticCurveTo(Y,Q,J,q),l=J,u=q;break}case ft.A:var ye=a[C++],pe=a[C++],M=a[C++],H=a[C++],z=a[C++],V=a[C++],ie=a[C++],xe=!a[C++],de=M>H?M:H,fe=on(M-H)>.001,oe=z+V,he=!1;if(d){var b=v[m++];g+b>x&&(oe=z+V*(x-g)/b,he=!0),g+=b}if(fe&&t.ellipse?t.ellipse(ye,pe,M,H,ie,z,oe,xe):t.arc(ye,pe,de,z,oe,xe),he)break e;E&&(o=ki(z)*M+ye,f=bi(z)*H+pe),l=ki(oe)*M+ye,u=bi(oe)*H+pe;break;case ft.R:o=l=a[C],f=u=a[C+1],c=a[C++],h=a[C++];var T=a[C++],N=a[C++];if(d){var b=v[m++];if(g+b>x){var W=x-g;t.moveTo(c,h),t.lineTo(c+xh(W,T),h),W-=T,W>0&&t.lineTo(c+T,h+xh(W,N)),W-=N,W>0&&t.lineTo(c+_h(T-W,0),h+N),W-=T,W>0&&t.lineTo(c,h+_h(N-W,0));break e}g+=b}t.rect(c,h,T,N);break;case ft.Z:if(d){var b=v[m++];if(g+b>x){var F=(x-g)/b;t.lineTo(l*(1-F)+o*F,u*(1-F)+f*F);break e}g+=b}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=ft,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Ds(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||se+o&&i>r+o||it+c&&u>a+c&&u>i+c&&u>o+c||ue+c&&l>r+c&&l>n+c&&l>s+c||lt+l&&f>a+l&&f>i+l||fe+l&&o>r+l&&o>n+l||or||u+ln&&(n+=Bo);var h=Math.atan2(f,o);return h<0&&(h+=Bo),h>=a&&h<=n||h+Bo>=a&&h+Bo<=n}function Fi(e,t,r,a,n,i){if(i>t&&i>a||in?o:0}var Mn=ls.CMD,Ii=Math.PI*2,_5=1e-4;function y5(e,t){return Math.abs(e-t)<_5}var mr=[-1,-1,-1],sa=[-1,-1];function w5(){var e=sa[0];sa[0]=sa[1],sa[1]=e}function T5(e,t,r,a,n,i,s,o,f,l){if(l>t&&l>a&&l>i&&l>o||l1&&w5(),d=wr(t,a,i,o,sa[0]),h>1&&(v=wr(t,a,i,o,sa[1]))),h===2?gt&&o>a&&o>i||o=0&&l<=1){for(var u=0,c=Lr(t,a,i,l),h=0;hr||o<-r)return 0;var f=Math.sqrt(r*r-o*o);mr[0]=-f,mr[1]=f;var l=Math.abs(a-n);if(l<1e-4)return 0;if(l>=Ii-1e-4){a=0,n=Ii;var u=i?1:-1;return s>=mr[0]+e&&s<=mr[1]+e?u:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=Ii,n+=Ii);for(var h=0,d=0;d<2;d++){var v=mr[d];if(v+e>s){var p=Math.atan2(o,v),u=i?1:-1;p<0&&(p=Ii+p),(p>=a&&p<=n||p+Ii>=a&&p+Ii<=n)&&(p>Math.PI/2&&p1&&(r||(o+=Fi(f,l,u,c,a,n))),g&&(f=i[v],l=i[v+1],u=f,c=l),p){case Mn.M:u=i[v++],c=i[v++],f=u,l=c;break;case Mn.L:if(r){if(Ds(f,l,i[v],i[v+1],t,a,n))return!0}else o+=Fi(f,l,i[v],i[v+1],a,n)||0;f=i[v++],l=i[v++];break;case Mn.C:if(r){if(g5(f,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,a,n))return!0}else o+=T5(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 Mn.Q:if(r){if(m5(f,l,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+1],a,n)||0;f=i[v++],l=i[v++];break;case Mn.A:var m=i[v++],x=i[v++],_=i[v++],y=i[v++],k=i[v++],C=i[v++];v+=1;var w=!!(1-i[v++]);h=Math.cos(k)*_+m,d=Math.sin(k)*y+x,g?(u=h,c=d):o+=Fi(f,l,h,d,a,n);var E=(a-m)*y/_+m;if(r){if(x5(m,x,y,k,k+C,w,t,E,n))return!0}else o+=E5(m,x,y,k,k+C,w,E,n);f=Math.cos(k+C)*_+m,l=Math.sin(k+C)*y+x;break;case Mn.R:u=f=i[v++],c=l=i[v++];var S=i[v++],D=i[v++];if(h=u+S,d=c+D,r){if(Ds(u,c,h,c,t,a,n)||Ds(h,c,h,d,t,a,n)||Ds(h,d,u,d,t,a,n)||Ds(u,d,u,c,t,a,n))return!0}else o+=Fi(h,c,h,d,a,n),o+=Fi(u,d,u,c,a,n);break;case Mn.Z:if(r){if(Ds(f,l,u,c,t,a,n))return!0}else o+=Fi(f,l,u,c,a,n);f=u,l=c;break}}return!r&&!y5(l,c)&&(o+=Fi(f,l,u,c,a,n)||0),o!==0}function C5(e,t,r){return jw(e,0,!1,t,r)}function A5(e,t,r,a){return jw(e,t,!0,r,a)}var pu=Ot({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},as),D5={style:Ot({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cc.style)},Th=Yf.concat(["invisible","culling","z","z2","zlevel","parent"]),_t=(function(e){$e(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.5?$d:a>.2?lk:Xd}else if(r)return Xd}return $d},t.prototype.getInsideTextStroke=function(r){var a=this.style.fill;if(Oe(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),s=uu(r,0)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&Hs)&&(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)),A5(o,f/l,r,a)))return!0}if(this.hasFill())return C5(o,r,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Hs,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:De(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Hs)},t.prototype.createStyle=function(r){return ic(pu,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var a=this._normalState;r.shape&&!a.shape&&(a.shape=De({},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=De({},n.shape),De(l,a.shape)):(l=De({},i?this.shape:n.shape),De(l,a.shape)):f&&(l=n.shape),l)if(s){this.shape=De({},this.shape);for(var u={},c=st(l),h=0;h0},t.prototype.hasFill=function(){var r=this.style,a=r.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(r){return ic(k5,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=Rw(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})(Al);Jf.prototype.type="tspan";var b5=Ot({x:0,y:0},as),F5={style:Ot({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cc.style)};function I5(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var An=(function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ic(b5,r)},t.prototype._getSize=function(r){var a=this.style,n=a[r];if(n!=null)return n;var i=I5(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 F5},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new xt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Al);An.prototype.type="image";function M5(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 Ys=Math.round;function qw(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&&(Ys(a*2)===Ys(n*2)&&(e.x1=e.x2=Zi(a,o,!0)),Ys(i*2)===Ys(s*2)&&(e.y1=e.y2=Zi(i,o,!0))),e}}function Jw(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=Zi(a,o,!0),e.y=Zi(n,o,!0),e.width=Math.max(Zi(a+i,o,!1)-e.x,i===0?0:1),e.height=Math.max(Zi(n+s,o,!1)-e.y,s===0?0:1)),e}}function Zi(e,t,r){if(!t)return e;var a=Ys(e*2);return(a+Ys(t))%2===0?a/2:(a+(r?1:-1))/2}var R5=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),P5={},Kr=(function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new R5},t.prototype.buildPath=function(r,a){var n,i,s,o;if(this.subPixelOptimize){var f=Jw(P5,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?M5(r,a):r.rect(n,i,s,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(_t);Kr.prototype.type="rect";var e2={fill:"#000"},t2=2,L5={style:Ot({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},cc.style)},Ja=(function(e){$e(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;r0,F=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),B=s.calculatedLineHeight,Y=0;Y=0&&(Y=C[B],Y.align==="right");)this._placeToken(Y,r,E,m,F,"right",_),S-=Y.width,F-=Y.width,B--;for(b+=(i-(b-g)-(x-F)-S)/2;D<=B;)Y=C[D],this._placeToken(Y,r,E,m,b+Y.width/2,"center",_),b+=Y.width,D++;m+=E}},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(Jf),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)),k=i2("stroke"in l?l.stroke:"stroke"in a?a.stroke:!d&&!f&&(!m.autoStroke||x)?(_=t2,m.stroke):null),C=l.textShadowBlur>0||a.textShadowBlur>0;g.text=r.text,g.x=s,g.y=c,C&&(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||ai,g.opacity=_f(l.opacity,a.opacity,1),a2(g,l),k&&(g.lineWidth=_f(l.lineWidth,a.lineWidth,_),g.lineDash=Xe(l.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=k),y&&(g.fill=y);var w=r.contentWidth,E=r.contentHeight;p.setBoundingRect(new xt(ef(g.x,w,g.textAlign),Vs(g.y,E,g.textBaseline),w,E))},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(Kr),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=Xe(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=Xe(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=_f(r.opacity,a.opacity,1)},t.makeFont=function(r){var a="";return eT(r)&&(a=[r.fontStyle,r.fontWeight,Qw(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),a&&$a(a)||r.textFont||r.font},t})(Al),O5={left:!0,right:1,center:1},B5={top:1,bottom:1,middle:1},r2=["fontStyle","fontWeight","fontSize","fontFamily"];function Qw(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=0,i=!1;if(e instanceof _t){var s=tT(e),o=n&&s.selectFill||s.normalFill,f=n&&s.selectStroke||s.normalStroke;if(ks(o)||ks(f)){a=a||{};var l=a.style||{};l.fill==="inherit"?(i=!0,a=De({},a),l=De({},l),l.fill=o):!ks(l.fill)&&ks(o)?(i=!0,a=De({},a),l=De({},l),l.fill=Bd(o)):!ks(l.stroke)&&ks(f)&&(i||(a=De({},a),l=De({},l)),l.stroke=Bd(f)),a.style=l}}if(a&&a.z2==null){i||(a=De({},a));var u=e.z2EmphasisLift;a.z2=e.z2+(u??H5)}return a}function X5(e,t,r){if(r&&r.z2==null){r=De({},r);var a=e.z2SelectLift;r.z2=e.z2+(a??V5)}return r}function Y5(e,t,r){var a=St(e.currentStates,t)>=0,n=e.style.opacity,i=a?null:G5(e,["opacity"],t,{opacity:1});r=r||{};var s=r.style||{};return s.opacity==null&&(r=De({},r),s=De({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 $5(this,e,t,r);if(e==="blur")return Y5(this,e,r);if(e==="select")return X5(this,e,r)}return r}function K5(e){e.stateProxy=Eh;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Eh),r&&(r.stateProxy=Eh)}function d2(e,t){!lT(e,t)&&!e.__highByOuter&&Dn(e,aT)}function v2(e,t){!lT(e,t)&&!e.__highByOuter&&Dn(e,nT)}function gu(e,t){e.__highByOuter|=1<<(t||0),Dn(e,aT)}function mu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Dn(e,nT)}function Z5(e){Dn(e,_p)}function sT(e){Dn(e,iT)}function oT(e){Dn(e,z5)}function fT(e){Dn(e,W5)}function lT(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function uT(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){iT(l)}),o&&r.push(i)),s.isBlured=!1}),G(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;c0){var o={dataIndex:s,seriesIndex:r.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function tb(e,t,r){cT(e,!0),Dn(e,K5),ab(e,t,r)}function rb(e){cT(e,!1)}function g2(e,t,r,a){a?rb(e):tb(e,t,r)}function ab(e,t,r){var a=At(e);t!=null?(a.focus=t,a.blurScope=r):a.focus&&(a.focus=null)}var m2=["emphasis","blur","select"],nb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function x2(e,t,r,a){r=r||"itemStyle";for(var n=0;n1&&(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+s0(c)*g-i0(c)*m,_=(t+a)/2+i0(c)*g+s0(c)*m,y=T2([1,0],[(h-g)/s,(d-m)/o]),k=[(h-g)/s,(d-m)/o],C=[(-1*h-g)/s,(-1*d-m)/o],w=T2(k,C);if(tv(k,C)<=-1&&(w=No),tv(k,C)>=1&&(w=0),w<0){var E=Math.round(w/No*1e6)/1e6;w=No*2+E%2*No}u.addData(l,x,_,s,o,y,w,c,i)}var ub=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hb(e){var t=new ls;if(!e)return t;var r=0,a=0,n=r,i=a,s,o=ls.CMD,f=e.match(ub);if(!f)return t;for(var l=0;lY*Y+Q*Q&&(E=D,S=b),{cx:E,cy:S,x0:-u,y0:-c,x1:E*(n/k-1),y1:S*(n/k-1)}}function yb(e){var t;if(Le(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 wb(e,t){var r,a=tf(t.r,0),n=tf(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>ya&&(d=v),!(a>ya))e.moveTo(u,c);else if(d>Ah-ya)e.moveTo(u+a*Fs(f),c+a*Mi(f)),e.arc(u,c,a,f,l,!h),n>ya&&(e.moveTo(u+n*Fs(l),c+n*Mi(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,k=void 0,C=void 0,w=void 0,E=void 0,S=void 0,D=void 0,b=void 0,F=void 0,B=void 0,Y=void 0,Q=a*Fs(f),J=a*Mi(f),q=n*Fs(l),ce=n*Mi(l),U=d>ya;if(U){var ye=t.cornerRadius;ye&&(r=yb(ye),p=r[0],g=r[1],m=r[2],x=r[3]);var pe=E2(a-n)/2;if(_=Ba(pe,m),y=Ba(pe,x),k=Ba(pe,p),C=Ba(pe,g),S=w=tf(_,y),D=E=tf(k,C),(w>ya||E>ya)&&(b=a*Fs(l),F=a*Mi(l),B=n*Fs(f),Y=n*Mi(f),dya){var fe=Ba(m,S),oe=Ba(x,S),he=o0(B,Y,Q,J,a,fe,h),T=o0(b,F,q,ce,a,oe,h);e.moveTo(u+he.cx+he.x0,c+he.cy+he.y0),S0&&e.arc(u+he.cx,c+he.cy,fe,er(he.y0,he.x0),er(he.y1,he.x1),!h),e.arc(u,c,a,er(he.cy+he.y1,he.cx+he.x1),er(T.cy+T.y1,T.cx+T.x1),!h),oe>0&&e.arc(u+T.cx,c+T.cy,oe,er(T.y1,T.x1),er(T.y0,T.x0),!h))}else e.moveTo(u+Q,c+J),e.arc(u,c,a,f,l,!h);if(!(n>ya)||!U)e.lineTo(u+q,c+ce);else if(D>ya){var fe=Ba(p,D),oe=Ba(g,D),he=o0(q,ce,b,F,n,-oe,h),T=o0(Q,J,B,Y,n,-fe,h);e.lineTo(u+he.cx+he.x0,c+he.cy+he.y0),D0&&e.arc(u+he.cx,c+he.cy,oe,er(he.y0,he.x0),er(he.y1,he.x1),!h),e.arc(u,c,n,er(he.cy+he.y1,he.cx+he.x1),er(T.cy+T.y1,T.cx+T.x1),h),fe>0&&e.arc(u+T.cx,c+T.cy,fe,er(T.y1,T.x1),er(T.y0,T.x0),!h))}else e.lineTo(u+q,c+ce),e.arc(u,c,n,l,f,h)}e.closePath()}}}var Tb=(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){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Tb},t.prototype.buildPath=function(r,a){wb(r,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(_t);Tp.prototype.type="sector";var Sb=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Sp=(function(e){$e(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){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})(_t);Sp.prototype.type="ring";function Eb(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=2){if(a){var i=Eb(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;oPi[1]){if(o=!1,i)return o;var u=Math.abs(Pi[0]-Ri[1]),c=Math.abs(Ri[0]-Pi[1]);Math.min(u,c)>n.len()&&(u0){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 yT(e,t,r,a,n,i){Dp("enter",e,t,r,a,n,i)}function Af(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function D2(e){return!e.isGroup}function $b(e){return e.shape!=null}function Xb(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 $b(s)&&(o.shape=De({},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,At(s).dataIndex)}}})}function Yb(e,t){return je(e,function(r){var a=r[0];a=_u(a,t.x),a=yu(a,t.x+t.width);var n=r[1];return n=_u(n,t.y),n=yu(n,t.y+t.height),[a,n]})}function Kb(e,t){var r=_u(e.x,t.x),a=yu(e.x+e.width,t.x+t.width),n=_u(e.y,t.y),i=yu(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 CT(e,t,r){var a=De({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),Ot(n,r),new An(a)):bp(e.replace("path://",""),a,r,"center")}function Zb(e,t,r,a,n){for(var i=0,s=n[n.length-1];i1)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 jb(e){return e<=1e-6&&e>=-1e-6}function Mp(e){var t=e.itemTooltipOption,r=e.componentModel,a=e.itemName,n=Oe(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&&G(st(f),function(u){ho(o,u)||(o[u]=f[u],o.$vars.push(u))});var l=At(e.el);l.componentMainType=i,l.componentIndex=s,l.tooltipConfig={name:a,option:Ot({content:a,encodeHTMLContent:!0,formatterParams:o},n)}}function k2(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function DT(e,t){if(e)if(Le(e))for(var r=0;r=0&&o.push(f)}),o}}const h8={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:". "}}}},d8={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 wu="ZH",Rp="EN",so=Rp,$0={},Pp={},FT=We.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||so).toUpperCase();return e.indexOf(wu)>-1?wu:so})():so;function IT(e,t){e=e.toUpperCase(),Pp[e]=new It(t),$0[e]=t}function v8(e){if(Oe(e)){var t=$0[e.toUpperCase()]||{};return e===wu||e===Rp?et(t):Vt(et(t),et($0[so]),!1)}else return Vt(et(e),et($0[so]),!1)}function p8(e){return Pp[e]}function g8(){return Pp[so]}IT(Rp,h8);IT(wu,d8);function Rn(e,t){return e+="","0000".substr(0,t-e.length)+e}function MT(e,t,r,a){var n=lc(e),i=n[m8(r)](),s=n[x8(r)]()+1,o=Math.floor((s-1)/3)+1,f=n[_8(r)](),l=n["get"+(r?"UTC":"")+"Day"](),u=n[y8(r)](),c=(u-1)%12+1,h=n[w8(r)](),d=n[T8(r)](),v=n[S8(r)](),p=u>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof It?a:p8(FT)||g8(),x=m.getModel("time"),_=x.get("month"),y=x.get("monthAbbr"),k=x.get("dayOfWeek"),C=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Rn(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,_[s-1]).replace(/{MMM}/g,y[s-1]).replace(/{MM}/g,Rn(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Rn(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,k[l]).replace(/{ee}/g,C[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Rn(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Rn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Rn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Rn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Rn(v,3)).replace(/{S}/g,v+"")}function m8(e){return e?"getUTCFullYear":"getFullYear"}function x8(e){return e?"getUTCMonth":"getMonth"}function _8(e){return e?"getUTCDate":"getDate"}function y8(e){return e?"getUTCHours":"getHours"}function w8(e){return e?"getUTCMinutes":"getMinutes"}function T8(e){return e?"getUTCSeconds":"getSeconds"}function S8(e){return e?"getUTCMilliseconds":"getMilliseconds"}function E8(e){if(!Dk(e))return Oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function RT(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=iw;function av(e,t,r){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(u){return u&&$a(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?lc(e):e;if(isNaN(+f)){if(o)return"-"}else return MT(f,a,r)}if(t==="ordinal")return kd(e)?n(e):Lt(e)&&i(e)?e+"":"-";var l=vu(e);return i(l)?E8(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 PT(e,t,r){Le(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';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 el(e,t){return t=t||"transparent",Oe(e)?e:Be(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var X0=G,A8=["left","right","top","bottom","width","height"],u0=[["width","left","right"],["height","top","bottom"]];function LT(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)})}Cr(LT,"vertical");Cr(LT,"horizontal");function OT(e,t,r){r=Lp(r||0);var a=t.width,n=t.height,i=Wa(e.left,a),s=Wa(e.top,n),o=Wa(e.right,a),f=Wa(e.bottom,n),l=Wa(e.width,a),u=Wa(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 xt(i+r[3],s+r[0],l,u);return v.margin=r,v}function Tu(e){var t=e.layoutMode||e.constructor.layoutMode;return Be(t)?t:t?{type:t}:null}function Su(e,t,r){var a=r&&r.ignoreSize;!Le(a)&&(a=[a,a]);var n=s(u0[0],0),i=s(u0[1],1);l(u0[0],e,n),l(u0[1],e,i);function s(u,c){var h={},d=0,v={},p=0,g=2;if(X0(u,function(_){v[_]=e[_]}),X0(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=0;f--)o=Vt(o,n[f],!0);a.defaultOption=o}return a.defaultOption},t.prototype.getReferringComponents=function(r,a){var n=r+"Index",i=r+"Id";return Cl(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})(It);Xw(Tt,It);vp(Tt);u8(Tt);c8(Tt,b8);function b8(e){var t=[];return G(Tt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=je(t,function(r){return Xa(r).main}),e!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}var NT="";typeof navigator<"u"&&(NT=navigator.platform||"");var Is="rgba(0, 0, 0, 0.2)";const F8={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Is,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Is,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Is,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Is,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Is,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Is,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:NT.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 UT=qe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),va="original",Hr="arrayRows",tn="objectRows",kn="keyedColumns",qn="typedArray",HT="unknown",mn="column",yo="row",Vr={Must:1,Might:2,Not:3},VT=Zt();function I8(e){VT(e).datasetMap=qe()}function M8(e,t,r){var a={},n=zT(t);if(!n||!e)return a;var i=[],s=[],o=t.ecModel,f=VT(o).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,u,c;e=e.slice(),G(e,function(p,g){var m=Be(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});G(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;xt)return e[a];return e[r-1]}function N8(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:B8(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 U8(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var c0,Uo,U2,H2="\0_ec_inner",H8=1,Bp=(function(e){$e(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 It(i),this._locale=new It(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&&G(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=qe(),l=a&&a.replaceMergeMainTypeMap;I8(this),G(r,function(c,h){c!=null&&(Tt.hasClass(h)?h&&(o.push(h),f.set(h,!0)):n[h]=n[h]==null?et(c):Vt(n[h],c,!0))}),l&&l.each(function(c,h){Tt.hasClass(h)&&!f.get(h)&&(o.push(h),f.set(h,!0))}),Tt.topologicalTravel(o,Tt.getAllClassMainTypes(),u,this);function u(c){var h=O8(this,c,Ar(r[c])),d=i.get(c),v=d?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Fk(d,h,v);Bk(p,c,Tt),n[c]=null,i.set(c,null),s.set(c,0);var g=[],m=[],x=0,_;G(p,function(y,k){var C=y.existing,w=y.newOption;if(!w)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var E=c==="series",S=Tt.getClass(c,y.keyInfo.subType,!E);if(!S)return;if(c==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===S)C.name=y.keyInfo.name,C.mergeOption(w,this),C.optionUpdated(w,!1);else{var D=De({componentIndex:k},y.keyInfo);C=new S(w,this,this,D),De(C,D),y.brandNew&&(C.__requireNewView=!0),C.init(w,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),x++):(g.push(void 0),m.push(void 0))},this),n[c]=g,i.set(c,m),s.set(c,x),c==="series"&&c0(this)}this._seriesIndices||c0(this)},t.prototype.getOption=function(){var r=et(this.option);return G(r,function(a,n){if(Tt.hasClass(n)){for(var i=Ar(a),s=i.length,o=!1,f=s-1;f>=0;f--)i[f]&&!jf(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=t:r==="max"?e<=t:e===t}function Z8(e,t){return e.join(",")===t.join(",")}var ma=G,tl=Be,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=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=Ck(h,x),p=x;break}}}return a[0]=h,a[1]=p,a})})}var xc=(function(){function e(t){this.data=t.data||(t.sourceFormat===kn?{}:[]),this.sourceFormat=t.sourceFormat||HT,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;ap&&(p=_)}d[0]=v,d[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};q2=(t={},t[Hr+"_"+mn]={pure:!0,appendData:i},t[Hr+"_"+yo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tn]={pure:!0,appendData:i},t[kn]={pure:!0,appendData:function(s){var o=this._data;G(s,function(f,l){for(var u=o[l]||(o[l]=[]),c=0;c<(f||[]).length;c++)u.push(f[c])})}},t[va]={appendData:i},t[qn]={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=0&&(p=s.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Eu(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,a){},e})();function tm(e){var t,r;return Be(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Df(e){return new dF(e)}var dF=(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||d1&&a>0?o:s}};return i;function s(){return t=e?null:fn?-this._resultLT:0},e})(),pF=(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 Y0(t,r)},e})();function gF(e,t){var r=new pF,a=e.data,n=r.sourceFormat=e.sourceFormat,i=e.startIndex,s="";e.seriesLayoutBy!==mn&&Or(s);var o=[],f={},l=e.dimensionsDefine;if(l)G(l,function(p,g){var m=p.name,x={index:g,name:m,displayName:p.displayName};if(o.push(x),m!=null){var _="";ho(f,m)&&Or(_),f[m]=x}});else for(var u=0;u65535?EF:CF}function Rs(){return[1/0,-1/0]}function AF(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nm(e,t,r,a,n){var i=tS[r||"float"];if(n){var s=e[t],o=s&&s.length;if(o!==a){for(var f=new i(a),l=0;lg[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=je(s,function(x){return x.property}),u=0;um[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=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,a=r[t];if(a!=null&&at)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=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=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],k=t[n[1]][1],m=0;m=c&&x<=h||isNaN(x))&&(C>=y&&C<=k||isNaN(C))&&(f[l++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m=c&&x<=h||isNaN(x))&&(f[l++]=w)}else for(var m=0;mt[D][1])&&(E=!1)}E&&(f[l++]=r.getRawIndex(m))}return lm[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(Ms(this._rawCount))(Math.min((Math.ceil(s/f)+2)*2,s));d[o++]=l;for(var v=1;vu&&(u=c,h=y)}b>0&&bo&&(p=o-u);for(var g=0;gv&&(v=x,d=u+g)}var _=this.getRawIndex(c),y=this.getRawIndex(d);cu-v&&(f=u-v,o.length=f);for(var p=0;pc[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();if&&(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=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 Y0(r[i],this._dimensions[i])}Lh={arrayRows:t,objectRows:function(r,a,n,i){return Y0(r[a],this._dimensions[i])},keyedColumns:t,original:function(r,a,n,i){var s=r&&(r.value==null?r:r.value);return Y0(s instanceof Array?s[i]:s,this._dimensions[i])},typedArray:function(r,a,n,i){return r[i]}}})(),e})(),DF=(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(h0(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=Ur(o)?qn:va,i=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Xe(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=Xe(c.sourceHeader,h.sourceHeader),p=Xe(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 G(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=TF(a,o,{datasetIndex:r.componentIndex}):n!=null&&(s=[iF(o[0])]),{sourceList:s,upstreamSignList:f}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return G(e.blocks,function(n){var i=iS(n);i>=t&&(t=i+ +(a&&(!i||sv(n)&&!n.noHeader)))}),t}return 0}function IF(e,t,r,a){var n=t.noHeader,i=RF(iS(t)),s=[],o=t.blocks||[];Zr(!o||Le(o)),o=o||[];var f=e.orderMode;if(t.sortBlocks&&f){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(ho(l,f)){var u=new vF(l[f],null);o.sort(function(p,g){return u.evaluate(p.sortParam,g.sortParam)})}else f==="seriesDesc"&&o.reverse()}G(o,function(p,g){var m=t.valueFormatter,x=nS(p)(m?De(De({},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=aS(a,e.renderMode).nameStyle,v=rS(a);return e.renderMode==="richText"?sS(e,h,d)+i.richText+c:ov(a,'
'+yr(h)+"
"+c,r)}function MF(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=Le(y)?y:[y],je(y,function(k,C){return av(k,Le(d)?d[C]: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=aS(a,n),x=m.nameStyle,_=m.valueStyle;return n==="richText"?(o?"":c)+(i?"":sS(e,h,x))+(s?"":OF(e,v,p,g,_)):ov(a,(o?"":c)+(i?"":PF(h,!o,x))+(s?"":LF(v,p,g,_)),r)}}function sm(e,t,r,a,n,i){if(e){var s=nS(e),o={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(o,e,0,i)}}function RF(e){return{html:bF[e],richText:FF[e]}}function ov(e,t,r){var a='
',n="margin: "+r+"px 0 0",i=rS(e);return'
'+t+a+"
"}function PF(e,t,r){var a=t?"margin-left:2px":"";return''+yr(e)+""}function LF(e,t,r,a){var n=r?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return e=Le(e)?e:[e],''+je(e,function(s){return yr(s)}).join("  ")+""}function sS(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function OF(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(Le(t)?t.join(" "):t,i)}function BF(e,t){var r=e.getData().getItemVisual(t,"style"),a=r[e.visualDrawType];return el(a)}function oS(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Oh=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Uw()}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=C8({color:r,type:t,renderMode:a,markerId:n});return Oe(i)?i:(this.richTextStyles[n]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var a={};Le(r)?G(r,function(i){return De(a,i)}):De(a,r);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},e})();function NF(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=Le(o),l=BF(t,r),u,c,h,d;if(s>1||f&&!s){var v=UF(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=Eu(n,r,i[0]),c=p.type}else d=u=f?o[0]:o;var g=Ww(t),m=g&&t.name||"",x=n.getName(r),_=a?m:x;return us("section",{header:m,noHeader:a||!g,sortParam:d,blocks:[us("nameValue",{markerType:"item",markerColor:l,name:_,noName:!$a(_),value:u,valueType:c,dataIndex:r})].concat(h||[])})}function UF(e,t,r,a,n){var i=t.getData(),s=mo(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?G(a,function(c){u(Eu(i,r,c),c)}):G(e,u);function u(c,h){var d=i.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(s?l.push(us("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 Pn=Zt();function d0(e,t){return e.getName(t)||e.getId(t)}var HF="__universalTransitionEnabled",ii=(function(e){$e(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=Df({count:zF,reset:WF}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var i=Pn(this).sourceManager=new DF(this);i.prepareSource();var s=this.getInitialData(r,n);fm(s,this),this.dataTask.context.data=s,Pn(this).dataBeforeProcessed=s,om(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(r,a){var n=Tu(this),i=n?BT(r):{},s=this.subType;Tt.hasClass(s)&&(s+="Series"),Vt(r,a.getTheme().get(this.subType)),Vt(r,this.getDefaultOption()),$g(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Su(r,i,n)},t.prototype.mergeOption=function(r,a){r=Vt(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Tu(this);n&&Su(this.option,r,n);var i=Pn(this).sourceManager;i.dirty(),i.prepareSource();var s=this.getInitialData(r,a);fm(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Pn(this).dataBeforeProcessed=s,om(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(r){if(r&&!Ur(r))for(var a=["show"],n=0;nthis.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=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[d0(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[HF])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"){Be(s.selectedMap)||(s.selectedMap={});for(var l=s.selectedMap,u=0;u0&&this._innerSelect(r,a)}},t.registerClass=function(r){return Tt.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})(Tt);Ia(ii,hF);Ia(ii,Op);Xw(ii,Tt);function om(e){var t=e.name;Ww(e)||(e.name=VF(e)||t)}function VF(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),a=[];return G(r,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function zF(e){return e.model.getRawData().count()}function WF(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),GF}function GF(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function fm(e,t){G(QA(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Cr($F,t))})}function $F(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 si=(function(){function e(){this.group=new Sn,this.uid=gc("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(si);vp(si);function XF(){var e=Zt();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 fS=Zt(),YF=XF(),Jn=(function(){function e(){this.group=new Sn,this.uid=gc("viewChart"),this.renderTask=Df({plan:KF,reset:ZF}),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){DT(this.group,t)},e.markUpdateMethod=function(t,r){fS(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function lm(e,t,r){e&&Qd(e)&&(t==="emphasis"?gu:mu)(e,r)}function um(e,t,r){var a=El(e,t),n=t&&t.highlightKey!=null?ib(t.highlightKey):null;a!=null?G(Ar(a),function(i){lm(e.getItemGraphicEl(i),r,n)}):e.eachItemGraphicEl(function(i){lm(i,r,n)})}dp(Jn);vp(Jn);function KF(e){return YF(e.model)}function ZF(e){var t=e.model,r=e.ecModel,a=e.api,n=e.payload,i=t.pipelineContext.progressiveRender,s=e.view,o=n&&fS(n).updateMethod,f=i?"incrementalPrepareRender":o&&s[o]?o:"render";return f!=="render"&&s[f](t,r,a,n),jF[f]}var jF={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)}}},Cu="\0__throttleOriginMethod",cm="\0__throttleRate",hm="\0__throttleType";function lS(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=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 uS(e,t,r,a){var n=e[t];if(n){var i=n[Cu]||n,s=n[hm],o=n[cm];if(o!==r||s!==a){if(r==null||!a)return e[t]=i;n=e[t]=lS(i,r,a==="debounce"),n[Cu]=i,n[hm]=a,n[cm]=r}return n}}function lv(e,t){var r=e[t];r&&r[Cu]&&(r.clear&&r.clear(),e[t]=r[Cu])}var dm=Zt(),vm={itemStyle:qf(bT,!0),lineStyle:qf(kT,!0)},qF={lineStyle:"stroke",itemStyle:"fill"};function cS(e,t){var r=e.visualStyleMapper||vm[t];return r||(console.warn("Unknown style type '"+t+"'."),vm.itemStyle)}function hS(e,t){var r=e.visualDrawType||qF[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var JF={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=e.getModel(a),i=cS(e,a),s=i(n),o=n.getShallow("decal");o&&(r.setVisual("decal",o),o.dirty=!0);var f=hS(e,a),l=s[f],u=ct(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"||ct(s.fill)?h:s.fill,s.stroke=s.stroke==="auto"||ct(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=De({},s);g[f]=u(p),d.setItemVisual(v,"style",g)}}}},Vo=new It,QF={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=cS(e,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(s,o){var f=s.getRawDataItem(o);if(f&&f[a]){Vo.option=f[a];var l=n(Vo),u=s.ensureUniqueItemVisual(o,"style");De(u,l),Vo.option.decal&&(s.setItemVisual(o,"decal",Vo.option.decal),Vo.option.decal.dirty=!0),i in l&&s.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},e6={performRawSeries:!0,overallReset:function(e){var t=qe();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=hS(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)}})}})}},v0=Math.PI;function t6(e,t){t=t||{},Ot(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 Kr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(a);var n=new Ja({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 Kr({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 vc({shape:{startAngle:-v0/2,endAngle:-v0/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:v0*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:v0*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 dS=(function(){function e(t,r,a,n){this._stageTaskMap=qe(),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=qe();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;G(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),s="";Zr(!(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;G(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=qe(),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)||Df({plan:s6,reset:o6,count:l6}));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||Df({reset:r6});s.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var o=s.agentStubMap,f=s.agentStubMap=qe(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";Zr(!t.createOnAllSeries,d),l?a.eachRawSeriesByType(l,v):u?u(a,n).each(v):(c=!1,G(a.getSeries(),v));function v(p){var g=p.uid,m=f.set(g,o&&o.get(g)||(h=!0,Df({reset:a6,onDirty:i6})));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 ct(t)&&(t={overallReset:t,seriesType:u6(t)}),t.uid=gc("stageHandler"),r&&(t.visualType=r),t},e})();function r6(e){e.overallReset(e.ecModel,e.api,e.payload)}function a6(e){return e.overallProgress&&n6}function n6(){this.agent.dirty(),this.getDownstream().dirty()}function i6(){this.agent&&this.agent.dirty()}function s6(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function o6(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ar(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?je(t,function(r,a){return vS(a)}):f6}var f6=vS(0);function vS(e){return function(t,r){var a=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var i=t.start;i0&&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"]),d6={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=0&&ji(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"?I6(e,t,r):F6(e,t,r),n=t.colorStops,i=0;i0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Lt(e)?[e]:Le(e)?e:null}function zp(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&R6(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=je(r,function(i){return i/n}),a/=n)}return[r,a]}var P6=new ls(!0);function Du(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function _m(e){return typeof e=="string"&&e!=="none"}function ku(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(uc(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)*O0),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function L6(e,t,r,a){var n,i=Du(r),s=ku(r),o=r.strokePercent,f=o<1,l=!t.path;(!t.silent||f)&&l&&t.createPathProxy();var u=t.path||P6,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,k=void 0,C=void 0;(v||p)&&(C=t.getBoundingRect()),v&&(x=c?hv(e,h,C):t.__canvasFillGradient,t.__canvasFillGradient=x),p&&(_=c?hv(e,d,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(y=c||!t.__canvasFillPattern?dv(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=y),m&&(k=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&&(k?e.strokeStyle=k:i=!1)}var w=t.getGlobalScale();u.setScale(w[0],w[1],t.segmentIgnoreThreshold);var E,S;e.setLineDash&&r.lineDash&&(n=zp(t),E=n[0],S=n[1]);var D=!0;(l||c&Hs)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),D=!1),u.reset(),t.buildPath(u,t.shape,a),u.toStatic(),t.pathUpdated()),D&&u.rebuildPath(e,f?o:1),E&&(e.setLineDash(E),e.lineDashOffset=S),a||(r.strokeFirst?(i&&wm(e,r),s&&ym(e,r)):(s&&ym(e,r),i&&wm(e,r))),E&&e.setLineDash([])}function O6(e,t,r){var a=t.__image=pp(r.image,t.__image,t,t.onload);if(!(!a||!uc(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 B6(e,t,r){var a,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ai,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?(Du(r)&&e.strokeText(n,r.x,r.y),ku(r)&&e.fillText(n,r.x,r.y)):(ku(r)&&e.fillText(n,r.x,r.y),Du(r)&&e.strokeText(n,r.x,r.y)),i&&e.setLineDash([])}}var Tm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _S(e,t,r,a,n){var i=!1;if(!a&&(r=r||{},t===r))return!1;if(a||t.opacity!==r.opacity){Br(e,n),i=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?as.opacity:s}(a||t.blend!==r.blend)&&(i||(Br(e,n),i=!0),e.globalCompositeOperation=t.blend||as.blend);for(var o=0;o0&&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[tr]){if(this._disposed){this.id;return}var i,s,o;if(Be(a)&&(n=a.lazyUpdate,i=a.silent,s=a.replaceMerge,o=a.transition,a=a.notMerge),this[tr]=!0,!this._model||a){var f=new $8(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[Fr]={silent:i,updateParams:c},this[tr]=!1,this.getZr().wakeUp();else{try{Ls(this),Ln.update.call(this,null,c)}catch(h){throw this[Fr]=null,this[tr]=!1,h}this._ssr||this._zr.flush(),this[Fr]=null,this[tr]=!1,zo.call(this,i),Wo.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||We.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(We.svgSupported){var r=this._zr,a=r.storage.getDisplayList();return G(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;G(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 G(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();G(bf,function(_,y){if(_.group===n){var k=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(r)),C=_.getDom().getBoundingClientRect();f=i(C.left,f),l=i(C.top,l),u=s(C.right,u),c=s(C.bottom,c),h.push({dom:k,left:C.left,top:C.top})}}),f*=d,l*=d,u*=d,c*=d;var v=u-f,p=c-l,g=go.createCanvas(),m=Vg(g,{renderer:a?"svg":"canvas"});if(m.resize({width:v,height:p}),a){var x="";return G(h,function(_){var y=_.left-f,k=_.top-l;x+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=x,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Kr({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),G(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 G(s,function(o,f){f.indexOf("Models")>=0&&G(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?p6(o,f,a):g6(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;G(fI,function(a){var n=function(i){var s=r.getModel(),o=i.target,f,l=a==="globalout";if(l?f={}:o&&af(o,function(v){var p=At(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=De({},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)}),G(kf,function(a,n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),G(["selectchanged"],function(a){r._messageCenter.on(a,function(n){this.trigger(a,n)},r)}),m6(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&&Gw(this.getDom(),$p,"");var a=this,n=a._api,i=a._model;G(a._componentsViews,function(s){s.dispose(i,n)}),G(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 bf[a.id]},t.prototype.resize=function(r){if(!this[tr]){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[Fr]&&(i==null&&(i=this[Fr].silent),n=!0,this[Fr]=null),this[tr]=!0;try{n&&Ls(this),Ln.update.call(this,{type:"resize",animation:De({duration:0},r&&r.animation)})}catch(s){throw this[tr]=!1,s}this[tr]=!1,zo.call(this,i),Wo.call(this,i)}}},t.prototype.showLoading=function(r,a){if(this._disposed){this.id;return}if(Be(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=De({},r);return a.type=kf[r.type],a},t.prototype.dispatchAction=function(r,a){if(this._disposed){this.id;return}if(Be(a)||(a={silent:!!a}),!!bu[r.type]&&this._model){if(this[tr]){this._pendingActions.push(r);return}var n=a.silent;Wh.call(this,r,n);var i=a.flush;i?this._zr.flush():i!==!1&&We.browser.weChat&&this._throttledZrFlush(),zo.call(this,n),Wo.call(this,n)}},t.prototype.updateLabelLayout=function(){Ta.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(){Ls=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;_h.get("hoverLayerThreshold")&&!We.node&&!We.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;_0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Af(m))return;if(m instanceof _t&&sb(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){$e(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){gu(v,p),qr(c)},d.prototype.leaveEmphasis=function(v,p){mu(v,p),qr(c)},d.prototype.enterBlur=function(v){Z5(v),qr(c)},d.prototype.leaveBlur=function(v){sT(v),qr(c)},d.prototype.enterSelect=function(v){oT(v),qr(c)},d.prototype.leaveSelect=function(v){fT(v),qr(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})(GT))(c)},PS=function(c){function h(d,v){for(var p=0;p=0)){Vm.push(r);var i=dS.wrapStageHandler(r,n);i.__prio=t,i.__raw=r,e.push(i)}}function HS(e,t){gv[e]=t}function pI(e,t,r){var a=Y6("registerMap");a&&a(e,t,r)}var gI=wF;vs(Wp,JF);vs(yc,QF);vs(yc,e6);vs(Wp,d6);vs(yc,v6);vs(kS,$6);NS(XT);US(j6,aF);HS("default",t6);wo({type:ns,event:ns,update:ns},ur);wo({type:W0,event:W0,update:W0},ur);wo({type:Sf,event:Sf,update:Sf},ur);wo({type:G0,event:G0,update:G0},ur);wo({type:Ef,event:Ef,update:Ef},ur);BS("light",c6);BS("dark",mS);function Go(e){return e==null?0:e.length||1}function zm(e){return e}var mI=(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;s1){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;o1&&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;d1)for(var o=0;o30}var $o=Be,On=je,EI=typeof Int32Array>"u"?Array:Int32Array,CI="e\0\0",Wm=-1,AI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DI=["_approximateExtent"],Gm,_0,Xo,Yo,Xh,Ko,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;zS(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=r)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,s=this._idList,o=n.getSource().sourceFormat,f=o===va;if(f&&!n.pure)for(var l=[],u=t;u0},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),Le(i)?i=i.slice():$o(i)&&(i=De({},i)),n[r]=i),i},e.prototype.setItemVisual=function(t,r,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,$o(r)?De(n,r):n[r]=a},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){$o(t)?De(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?De(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;U5(a,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){G(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:On(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];ct(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;G(r,function(a,n){var i=t._dimInfos[n],s=i.ordinalMeta,o=t._store;if(s){a=r[n]=new EI(s.categories.length);for(var f=0;f1&&(f+="__ec__"+u),n[r]=f}}})(),e})();function XS(e,t){Np(e)||(e=Up(e)),t=t||{};var r=t.coordDimensions||[],a=t.dimensionsDefine||e.dimensionsDefine||[],n=qe(),i=[],s=bI(e,r,a,t.dimensionsCount),o=t.canOmitUnusedDimensions&&$S(s),f=a===e.dimensionsDefine,l=f?GS(e):WS(a),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,s));for(var c=qe(u),h=new eS(s),d=0;d0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function bI(e,t,r,a){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,a||0);return G(t,function(i){var s;Be(i)&&(s=i.dimsDef)&&(n=Math.max(n,s.length))}),n}function FI(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 II=(function(){function e(t){this.coordSysDims=[],this.axisMap=qe(),this.categoryAxisMap=qe(),this.coordSysName=t}return e})();function MI(e){var t=e.get("coordinateSystem"),r=new II(t),a=RI[t];if(a)return a(e,r,r.axisMap,r.categoryAxisMap),r}var RI={cartesian2d:function(e,t,r,a){var n=e.getReferringComponents("xAxis",Ki).models[0],i=e.getReferringComponents("yAxis",Ki).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",i),Os(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Os(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,a){var n=e.getReferringComponents("singleAxis",Ki).models[0];t.coordSysDims=["single"],r.set("single",n),Os(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,a){var n=e.getReferringComponents("polar",Ki).models[0],i=n.findAxisModel("radiusAxis"),s=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",s),Os(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Os(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();G(i.parallelAxisIndex,function(o,f){var l=n.getComponent("parallelAxis",o),u=s[f];r.set(u,l),Os(l)&&(a.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=f))})}};function Os(e){return e.get("type")==="category"}function PI(e,t,r){r=r||{};var a=r.byIndex,n=r.stackedCoordDimension,i,s,o;LI(t)?i=t:(s=t.schema,i=s.dimensions,o=t.store);var f=!!(e&&e.get("stack")),l,u,c,h;if(G(i,function(x,_){Oe(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;G(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 LI(e){return!zS(e.schema)}function OI(e,t){var r=e.get("coordinateSystem"),a=mc.get(r),n;return t&&t.coordSysDims&&(n=je(t.coordSysDims,function(i){var s={name:i},o=t.axisMap.get(i);if(o){var f=o.get("type");s.type=yI(f)}return s})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function BI(e,t,r){var a,n;return r&&G(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 NI(e,t,r){r=r||{};var a=t.getSourceManager(),n,i=!1;e?(i=!0,n=Up(e)):(n=a.getSource(),i=n.sourceFormat===va);var s=MI(t),o=OI(t,s),f=r.useEncodeDefaulter,l=ct(f)?f:f?Cr(M8,o,t):null,u={coordDimensions:o,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},c=XS(n,u),h=BI(c.dimensions,r.createInvertedIndices,s),d=i?null:a.getSharedDataStore(c),v=PI(t,{schema:c,store:d}),p=new mv(c,t);p.setCalculationInfo(v);var g=h!=null&&UI(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 UI(e){if(e.sourceFormat===va){var t=HI(e.data||[]);return!Le(Sl(t))}}function HI(e){for(var t=0;t=0||($m.push(e),ct(e)&&(e={install:e}),e.install(WI))}function GI(e){for(var t=[],r=0;r0?"top":"bottom",i="center"):du(n-$n)?(s=a>0?"bottom":"top",i="center"):(s="middle",n>0&&n<$n?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&&(Ka(o,o,s),Ka(f,f,s));var u=De({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new _o({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"]);Oe(h)&&(h=[h,h]),(Oe(d)||Lt(d))&&(d=[d,d]);var v=b6(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];G([{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 _=xS(h[x],-p/2,-g/2,p,g,u.stroke,!0),y=m.r+m.offset,k=l?f:o;_.attr({rotation:m.rotate,x:k[0]+y*Math.cos(e.rotation),y:k[1]-y*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,a){var n=KI(r,a,t,e),i=jI(r,a,t,e);if(YI(t,i,n),ZI(r,a,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=GI(je(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));$I(s)}},axisName:function(e,t,r,a){var n=fs(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*$n/180);var v;Zm(i)?h=is.innerTextLayout(e.rotation,d??e.rotation,s):(h=XI(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=fs(e.nameTruncateMaxWidth,g.maxWidth,v),_=new Ja({x:c[0],y:c[1],rotation:h.rotation,silent:is.isLabelSilent(t),style:Qf(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=is.makeAxisEventDataBase(t);y.targetType="axisName",y.name=n,At(_).eventData=y}a.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function XI(e,t,r,a){var n=Nw(r-e),i,s,o=a[0]>a[1],f=t==="start"&&!o||t!=="start"&&o;return du(n-$n/2)?(s=f?"bottom":"top",i="center"):du(n-$n*1.5)?(s=f?"top":"bottom",i="center"):(s="middle",n<$n*1.5&&n>$n/2?i=f?"left":"right":i=f?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:s}}function YI(e,t,r){if(!zI(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(no([],n,e.getLocalTransform())),a.applyTransform(no([],n,t.getLocalTransform())),r.intersect(a)}}function Zm(e){return e==="middle"||e==="center"}function KS(e,t,r,a,n){for(var i=[],s=[],o=[],f=0;f=0||e===t}function rM(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=0;i--)a[i]==null&&(delete r[t[i]],t.pop())}function Zh(e,t){var r=e.visual,a=[];Be(r)?il(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]),jS(e,a)}function y0(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(Zf(e,[0,1],[0,t.length-1]))]||{}}function Zo(e){return function(t,r,a){a(e,this.mapValueToVisual(t))}}function nf(e){var t=this.option.visual;return t[this.option.loop&&e!==Iu?e%t.length:e]}function Vi(){return this.option.visual[0]}function _v(e){return{linear:function(t){return Zf(t,e,this.option.visual)},category:nf,piecewise:function(t,r){var a=yv.call(this,r);return a==null&&(a=Zf(t,e,this.option.visual)),a},fixed:Vi}}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 jS(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=je(t,function(r){var a=Za(r);return a||[0,0,0,1]})),t}var pM={linear:function(e){return Zf(e,this.option.dataExtent,[0,1])},piecewise:function(e){var t=this.option.pieceList,r=qp.findPieceIndex(e,t,!0);if(r!=null)return Zf(r,[0,t.length-1],[0,1])},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??Iu},fixed:ur};function w0(e,t,r){return e?t<=r:t=0&&t.call(r,a[i],i)},e.prototype.eachEdge=function(t,r){for(var a=this.edges,n=a.length,i=0;i=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 zi||(r=this._nodesMap[Bs(r)]),!!r){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",s=0;s=0&&f.node2.dataIndex>=0});for(var i=0,s=n.length;i=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)}}}Ia(zi,JS("hostGraph","data"));Ia(qS,JS("hostGraph","edgeData"));function mM(e,t,r,a,n){for(var i=new gM(a),s=0;s "+h)),l++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=NI(e,r);else{var p=mc.get(d),g=p?p.dimensions||[]:[];St(g,"value")<0&&g.concat(["value"]);var m=XS(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),iM({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var xM=(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})(),_M=(function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xM},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(){gu(this)},t.prototype.downplay=function(){mu(this)},t})(_t),yM=(function(e){$e(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 _M,g=At(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(),k=v.node1.getModel(),C=k.get("localX"),w=k.get("localY"),E=v.node2.getLayout(),S=v.node2.getModel(),D=S.get("localX"),b=S.get("localY"),F=v.getLayout(),B,Y,Q,J,q,ce,U,ye;p.shape.extent=Math.max(1,F.dy),p.shape.orient=d,d==="vertical"?(B=(C!=null?C*l:y.x)+F.sy,Y=(w!=null?w*u:y.y)+y.dy,Q=(D!=null?D*l:E.x)+F.ty,J=b!=null?b*u:E.y,q=B,ce=Y*(1-_)+J*_,U=Q,ye=Y*_+J*(1-_)):(B=(C!=null?C*l:y.x)+y.dx,Y=(w!=null?w*u:y.y)+F.sy,Q=D!=null?D*l:E.x,J=(b!=null?b*u:E.y)+F.ty,q=B*(1-_)+Q*_,ce=Y,U=B*_+Q*(1-_),ye=J),p.setShape({x1:B,y1:Y,x2:Q,y2:J,cpx1:q,cpy1:ce,cpx2:U,cpy2:ye}),p.useStyle(x.getItemStyle()),Jm(p.style,d,v);var pe=""+m.get("value"),M=I2(m,"edgeLabel");F2(p,M,{labelFetcher:{getFormattedLabel:function(V,ie,xe,de,fe,oe){return r.getFormattedLabel(V,ie,"edge",de,_f(fe,M.normal&&M.normal.get("formatter"),pe),oe)}},labelDataIndex:v.dataIndex,defaultText:pe}),p.setTextConfig({position:"inside"});var H=m.getModel("emphasis");x2(p,m,"lineStyle",function(V){var ie=V.getItemStyle();return Jm(ie,d,v),ie}),o.add(p),h.setItemGraphicEl(v.dataIndex,p);var z=H.get("focus");g2(p,z==="adjacency"?v.getAdjacentDataIndices():z==="trajectory"?v.getTrajectoryDataIndices():z,H.get("blurScope"),H.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,k=new Kr({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(k,I2(g),{labelFetcher:{getFormattedLabel:function(w,E){return r.getFormattedLabel(w,E,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),k.disableLabelAnimation=!0,k.setStyle("fill",v.getVisual("color")),k.setStyle("decal",v.getVisual("style").decal),x2(k,g),o.add(k),c.setItemGraphicEl(v.dataIndex,k),At(k).dataType="node";var C=_.get("focus");g2(k,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,_.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(wM(o.getBoundingRect(),r,function(){o.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(Jn);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");Oe(a)&&Oe(n)&&(e.fill=new _T(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function wM(e,t,r){var a=new Kr({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return yT(a,{shape:{width:e.width+20}},t,r),a}var TM=(function(e){$e(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=0&&(o[s[f].depth]=new It(s[f],this,a));var l=mM(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 us("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 us("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})(ii);function SM(e,t){e.eachSeriesByType("sankey",function(r){var a=r.get("nodeWidth"),n=r.get("nodeGap"),i=EM(r,t);r.layoutInfo=i;var s=i.width,o=i.height,f=r.getGraph(),l=f.nodes,u=f.edges;AM(l);var c=zr(l,function(p){return p.getLayout().value===0}),h=c.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");CM(l,u,a,n,s,o,h,d,v)})}function EM(e,t){return OT(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function CM(e,t,r,a,n,i,s,o,f){DM(e,t,r,n,i,o,f),IM(e,t,i,n,a,s,o),HM(e,o)}function AM(e){G(e,function(t){var r=Qn(t.outEdges,Mu),a=Qn(t.inEdges,Mu),n=t.getValue()||0,i=Math.max(r,a,n);t.setLayout({value:i},!0)})}function DM(e,t,r,a,n,i,s){for(var o=[],f=[],l=[],u=[],c=0,h=0;h=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;xc-1?d:c-1;s&&s!=="left"&&kM(e,s,i,w);var E=i==="vertical"?(n-r)/w:(a-r)/w;FM(e,E,i)}function QS(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function kM(e,t,r,a){if(t==="right"){for(var n=[],i=e,s=0;i.length;){for(var o=0;o0;i--)f*=.99,PM(o,f,s),jh(o,n,r,a,s),UM(o,f,s),jh(o,n,r,a,s)}function MM(e,t){var r=[],a=t==="vertical"?"y":"x",n=zk(e,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,s){return i-s}),G(n.keys,function(i){r.push(n.buckets.get(i))}),r}function RM(e,t,r,a,n,i){var s=1/0;G(e,function(o){var f=o.length,l=0;G(o,function(c){l+=c.getLayout().value});var u=i==="vertical"?(a-(f-1)*n)/l:(r-(f-1)*n)/l;u0&&(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 PM(e,t,r){G(e.slice().reverse(),function(a){G(a,function(n){if(n.outEdges.length){var i=Qn(n.outEdges,LM,r)/Qn(n.outEdges,Mu);if(isNaN(i)){var s=n.outEdges.length;i=s?Qn(n.outEdges,OM,r)/s:0}if(r==="vertical"){var o=n.getLayout().x+(i-oi(n,r))*t;n.setLayout({x:o},!0)}else{var f=n.getLayout().y+(i-oi(n,r))*t;n.setLayout({y:f},!0)}}})})}function LM(e,t){return oi(e.node2,t)*e.getValue()}function OM(e,t){return oi(e.node2,t)}function BM(e,t){return oi(e.node1,t)*e.getValue()}function NM(e,t){return oi(e.node1,t)}function oi(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Mu(e){return e.getValue()}function Qn(e,t,r){for(var a=0,n=e.length,i=-1;++is&&(s=f)}),G(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&&G(n,function(o){var f=o.getModel().get("lineStyle");o.setVisual("style",f)})})}function zM(e){e.registerChartView(yM),e.registerSeriesModel(TM),e.registerLayout(SM),e.registerVisual(VM),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 $i=Zt(),Qm=et,qh=Dt,WM=(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=Cr(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=$i(t).pointerEl=new qb[i.type](Qm(r.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,r,a,n){if(r.label){var i=$i(t).labelEl=new Ja(Qm(r.label));t.add(i),tx(i,n)}},e.prototype.updatePointerEl=function(t,r,a){var n=$i(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=$i(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=CT(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){uw(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");Le(f)||(f=[f,f]),n.scaleX=f[0]/2,n.scaleY=f[1]/2,uS(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)),$i(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){e4($i(r).lastProp,a)||($i(r).lastProp=a,t?kp(r,a,e):(r.stopAnimation(),r.attr(a)))}function e4(e,t){if(Be(e)&&Be(t)){var r=!0;return G(t,function(a,n){r=r&&e4(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 GM(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 $M(e,t,r,a,n){var i=r.get("value"),s=t4(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=Rw(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),XM(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:Qf(o,{text:s,font:l,fill:o.getTextColor(),padding:f,backgroundColor:g}),z2:10}}function XM(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 t4(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:YS(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(a,function(f){var l=r.getSeriesByIndex(f.seriesIndex),u=f.dataIndexInside,c=l&&l.getDataParams(u);c&&o.seriesData.push(c)}),Oe(s)?i=s.replace("{value}",i):ct(s)&&(i=s(o))}return i}function r4(e,t,r){var a=ao();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 YM(e,t,r,a,n,i){var s=is.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),$M(t,a,n,i,{position:r4(a.axis,e,r),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function KM(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function ZM(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var jM=(function(e){$e(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=GM(i),d=qM[l](o,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=Xm(f.model,n);YM(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=r4(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})(WM);function ax(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var qM={line:function(e,t,r){var a=KM([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:ZM([t-a/2,r[0]],[a,n],nx(e))}}};function nx(e){return e.dim==="x"?0:1}var JM=(function(e){$e(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})(Tt),vn=Zt(),QM=G;function a4(e,t,r){if(!We.node){var a=t.getZr();vn(a).records||(vn(a).records={}),eR(a,t);var n=vn(a).records[e]||(vn(a).records[e]={});n.handler=r}}function eR(e,t){if(vn(e).initialized)return;vn(e).initialized=!0,r("click",Cr(ix,"click")),r("mousemove",Cr(ix,"mousemove")),r("globalout",rR);function r(a,n){e.on(a,function(i){var s=aR(t);QM(vn(e).records,function(o){o&&n(o,i,s.dispatchAction)}),tR(s.pendings,t)})}}function tR(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 rR(e,t,r){e.handler("leave",null,r)}function ix(e,t,r,a){t.handler(e,r,a)}function aR(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(!We.node){var r=t.getZr(),a=(vn(r).records||{})[e];a&&(vn(r).records[e]=null)}}var nR=(function(e){$e(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";a4("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})(si);function n4(e,t){var r=[],a=e.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),s=El(i,e);if(s==null||s<0||Le(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(je(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=Zt();function iR(e,t,r){var a=e.currTrigger,n=[e.x,e.y],i=e,s=e.dispatchAction||Dt(r.dispatchAction,r),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){Z0(n)&&(n=n4({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var f=Z0(n),l=i.axesInfo,u=o.axesInfo,c=a==="leave"||Z0(n),h={},d={},v={list:[],map:{}},p={showPointer:Cr(oR,d),showTooltip:Cr(fR,v)};G(o.coordSysMap,function(m,x){var _=f||m.containPoint(n);G(o.coordSysAxesInfo[x],function(y,k){var C=y.axis,w=hR(l,y);if(!c&&_&&(!l||w)){var E=w&&w.value;E==null&&!f&&(E=C.pointToData(n)),E!=null&&ox(y,E,p,!1,h)}})});var g={};return G(u,function(m,x){var _=m.linkGroup;_&&!d[x]&&G(_.axesInfo,function(y,k){var C=d[k];if(y!==m&&C){var w=C.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,fx(y),fx(m)))),g[m.key]=w}})}),G(g,function(m,x){ox(u[x],m,p,!0,h)}),lR(d,u,h),uR(v,n,e,s),cR(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=sR(t,e),o=s.payloadBatch,f=s.snapToValue;o[0]&&n.seriesIndex==null&&De(n,o[0]),!a&&e.snap&&i.containData(f)&&f!=null&&(t=f),r.showPointer(e,t,o),r.showTooltip(e,s,f)}}function sR(e,t){var r=t.axis,a=r.dim,n=e,i=[],s=Number.MAX_VALUE,o=-1;return G(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=0&&o<0)&&(s=p,o=v,n=c,i.length=0),G(h,function(g){i.push({seriesIndex:f.seriesIndex,dataIndexInside:g,dataIndex:f.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function oR(e,t,r,a){e[t.key]={value:r,payloadBatch:a}}function fR(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=nl(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 lR(e,t,r){var a=r.axesInfo=[];G(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 uR(e,t,r,a){if(Z0(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 cR(e,t,r){var a=r.getZr(),n="axisPointerLastHighlights",i=sx(a)[n]||{},s=sx(a)[n]={};G(e,function(l,u){var c=l.axisPointerModel.option;c.status==="show"&&l.triggerEmphasis&&G(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;s[d]=h})});var o=[],f=[];G(i,function(l,u){!s[u]&&f.push(l)}),G(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 hR(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 Z0(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function dR(e){nM.registerAxisPointerClass("CartesianAxisPointer",jM),e.registerComponentModel(JM),e.registerComponentView(nR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Le(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=qI(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iR)}var vR=(function(e){$e(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})(Tt);function i4(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function s4(e){if(We.domSupported){for(var t=document.documentElement.style,r=0,a=e.length;r-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'
'}function wR(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+=We.transformSupported?","+Jp+a:",left"+a+",top"+a),mR+":"+n}function lx(e,t,r){var a=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!We.transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=We.transform3dSupported,s="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+Jp+":"+s+";":[["top",0],["left",0],[o4,s]]}function TR(e){var t=[],r=e.get("fontSize"),a=e.getTextColor();a&&t.push("color:"+a),t.push("font:"+e.getFont());var n=Xe(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),G(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function SR(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=oS(e,"html"),h=f+"px "+l+"px "+s+"px "+o;return a.push("box-shadow:"+h),t&&n&&a.push(wR(n,r)),i&&a.push("background-color:"+i),G(["width","color","radius"],function(d){var v="border-"+d,p=RT(v),g=e.get(p);g!=null&&a.push(v+":"+g+(d==="color"?"":"px"))}),a.push(TR(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&&lD(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 ER=(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,We.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&&(Oe(i)?document.querySelector(i):$f(i)?i:ct(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();aa(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=gR(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=xR+SR(t,!this._firstShow,this._longHide)+lx(i[0],i[1],!0)+("border-color:"+el(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(Oe(i)&&a.get("trigger")==="item"&&!i4(a)&&(o=yR(a,n,i)),Oe(t))s.innerHTML=t+o;else if(t){s.innerHTML="",Le(t)||(t=[t]);for(var f=0;f=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||We.node||!n.getDom())){var s=dx(i,n);this._ticket="";var o=i.dataByCoordSys,f=IR(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=AR;u.x=i.x,u.y=i.y,u.update(),At(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=n4(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=jo([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=At(n);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var f,l;af(n,function(u){if(At(u).dataIndex!=null)return f=u,!0;if(At(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=Dt(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=jo([a.tooltipOption],i),f=this._renderMode,l=[],u=us("section",{blocks:[],noHeader:!0}),c=[],h=new Oh;G(r,function(x){G(x.dataByAxis,function(_){var y=n.getComponent(_.axisDim+"Axis",_.axisIndex),k=_.value;if(!(!y||k==null)){var C=t4(k,y.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=us("section",{header:C,noHeader:!$a(C),sortBlocks:!0,blocks:[]});u.blocks.push(w),G(_.seriesDataIndices,function(E){var S=n.getSeriesByIndex(E.seriesIndex),D=E.dataIndexInside,b=S.getDataParams(D);if(!(b.dataIndex<0)){b.axisDim=_.axisDim,b.axisIndex=_.axisIndex,b.axisType=_.axisType,b.axisId=_.axisId,b.axisValue=YS(y.axis,{value:k}),b.axisValueLabel=C,b.marker=h.makeTooltipMarker("item",el(b.color),f);var F=tm(S.formatTooltip(D,!0,null)),B=F.frag;if(B){var Y=jo([S],i).get("valueFormatter");w.blocks.push(Y?De({valueFormatter:Y},B):B)}F.text&&c.push(F.text),l.push(b)}})}})}),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"?` + +`:"
",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=At(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=jo([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",el(m.color),d);var _=tm(l.formatTooltip(u,!1,c)),y=p.get("order"),k=p.get("valueFormatter"),C=_.frag,w=C?sm(k?De({valueFormatter:k},C):C,x,d,y,i.get("useUTC"),p.get("textStyle")):_.text,E="item_"+l.name+"_"+u;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,E,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=At(a),o=s.tooltipConfig,f=o.option||{},l=f.encodeHTMLContent;if(Oe(f)){var u=f;f={content:u,formatter:u},l=!0}l&&i&&f.content&&(f=et(f),f.content=yr(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=jo(c,this._tooltipModel,d?{position:d}:null),p=v.get("content"),g=Math.random()+"",m=new Oh;this._showOrMove(v,function(){var x=et(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(Oe(h)){var g=r.ecModel.get("useUTC"),m=Le(n)?n[0]:n,x=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,x&&(d=MT(m.axisValue,d,g)),d=PT(d,n,!0)}else if(ct(h)){var _=Dt(function(y,k){y===this._ticket&&(c.setContent(k,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"||Le(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Le(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),ct(a)&&(a=a([n,i],o,s.el,v,{viewSize:[l,u],contentSize:c.slice()})),Le(a))n=Wa(a[0],l),i=Wa(a[1],u);else if(Be(a)){var p=a;p.width=c[0],p.height=c[1];var g=OT(p,{width:l,height:u});n=g.x,i=g.y,h=null,d=null}else if(Oe(a)&&f){var m=FR(a,v,c,r.get("borderWidth"));n=m[0],i=m[1]}else{var m=kR(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),i4(r)){var m=bR(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&&G(n,function(o,f){var l=o.dataByAxis||[],u=r[f]||{},c=u.dataByAxis||[];s=s&&l.length===c.length,s&&G(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&&G(p,function(m,x){var _=g[x];s=s&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&G(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){We.node||!a.getDom()||(lv(this,"_updatePosition"),this._tooltipContent.dispose(),wv("itemTooltip",a))},t.type="tooltip",t})(si);function jo(e,t,r){var a=t.ecModel,n;r?(n=new It(r,a,a),n=new It(t.option,n,a)):n=t;for(var i=e.length-1;i>=0;i--){var s=e[i];s&&(s instanceof It&&(s=s.get("tooltip",!0)),Oe(s)&&(s={formatter:s}),s&&(n=new It(s,n,a)))}return n}function dx(e,t){return e.dispatchAction||Dt(t.dispatchAction,t)}function kR(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 bR(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 FR(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 IR(e,t,r){var a=hp(e).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Cl(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=At(l).tooltipConfig;if(u&&u.name===e.name)return f=l,!0}),f)return{componentMainType:n,componentIndex:s.componentIndex,el:f}}}}function MR(e){Kp(dR),e.registerComponentModel(vR),e.registerComponentView(DR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ur),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ur)}var Qh=Math.sin,ed=Math.cos,l4=Math.PI,Ni=Math.PI*2,RR=180/l4,u4=(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=Gn(c-Ni)||(u?l>=Ni:-l>=Ni),d=l>0?l%Ni:l%Ni+Ni,v=!1;h?v=!0:Gn(c)?v=!1:v=d>=l4==!!u;var p=t+a*ed(s),g=r+n*Qh(s);this._start&&this._add("M",p,g);var m=Math.round(i*RR);if(h){var x=1/this._p,_=(u?1:-1)*(Ni-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),k=r+n*Qh(o);this._add("A",a,n,m,+v,+u,y,k)}},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"}function zR(e){return""}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 VR(s,o)+(s!=="style"?yr(f):f||"")+(i?""+r+je(i,function(l){return a(l)}).join(r)+r:"")+zR(s)}return a(e)}function WR(e,t,r){r=r||{};var a=r.newline?` +`:"",n=" {"+a,i=a+"}",s=je(st(e),function(f){return f+n+je(st(e[f]),function(l){return l+":"+e[f][l]+";"}).join(a)+i}).join(a),o=je(st(t),function(f){return"@keyframes "+f+n+je(st(t[f]),function(l){return l+n+je(st(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?"":[""].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 Gt("svg","root",{width:e,height:t,xmlns:c4,"xmlns:xlink":h4,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+e+" "+t:!1},r)}var GR=0;function v4(){return GR++}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"},Wi="transform-origin";function $R(e,t,r){var a=De({},e.shape);De(a,t),e.buildPath(r,a);var n=new u4;return n.reset(Dw(e)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function XR(e,t){var r=t.originX,a=t.originY;(r||a)&&(e[Wi]=r+"px "+a+"px")}var YR={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function p4(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function KR(e,t,r){var a=e.shape.paths,n={},i,s;if(G(a,function(f){var l=Sv(r.zrId);l.animation=!0,wc(f,{},l,!0);var u=l.cssAnims,c=l.cssNodes,h=st(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=p4(n,r);return i.replace(s,o)}}function xx(e){return Oe(e)?mx[e]?"cubic-bezier("+mx[e]+")":fp(e)?e:"":""}function wc(e,t,r,a){var n=e.animators,i=n.length,s=[];if(e instanceof mT){var o=KR(e,t,r);if(o)s.push(o);else if(!i)return}else if(!i)return;for(var f={},l=0;l0}).length){var xe=p4(w,r);return xe+" "+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-"+v4();r.cssNodes["."+m]={animation:s.join(",")},t.class=m}}function ZR(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-"+v4(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var sl=Math.round;function g4(e){return e&&Oe(e.src)}function m4(e){return e&&ct(e.toDataURL)}function t1(e,t,r,a){NR(function(n,i){var s=n==="fill"||n==="stroke";s&&Aw(i)?_4(t,e,n,a):s&&lp(i)?y4(r,e,n,a):e[n]=i,s&&a.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),rP(r,e,a)}function r1(e,t){var r=yk(t);r&&(r.each(function(a,n){a!=null&&(e[(px+n).toLowerCase()]=a+"")}),t.isSilent()&&(e[px+"silent"]="true"))}function yx(e){return Gn(e[0]-1)&&Gn(e[1])&&Gn(e[2])&&Gn(e[3]-1)}function jR(e){return Gn(e[4])&&Gn(e[5])}function a1(e,t,r){if(t&&!(jR(t)&&yx(t))){var a=1e4;e.transform=yx(t)?"translate("+sl(t[4]*a)/a+" "+sl(t[5]*a)/a+")":WD(t)}}function Tx(e,t,r){for(var a=e.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Zr(h,g),Zr(d,g)}else if(h==null||d==null){var m=function(D,b){if(D){var F=D.elm,B=h||b.width,Y=d||b.height;D.tag==="pattern"&&(l?(Y=1,B/=i.width):u&&(B=1,Y/=i.height)),D.attrs.width=B,D.attrs.height=Y,F&&(F.setAttribute("width",B),F.setAttribute("height",Y))}},x=pp(v,null,e,function(D){f||m(C,D),m(c,D)});x&&x.width&&x.height&&(h=h||x.width,d=d||x.height)}c=Gt("image","img",{href:v,width:h,height:d}),s.width=h,s.height=d}else n.svgElement&&(c=et(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 k=kw(n);k&&(s.patternTransform=k);var C=Gt("pattern","",s,[c]),w=e1(C),E=a.patternCache,S=E[w];S||(S=a.zrId+"-p"+a.patternIdx++,E[w]=S,s.id=S,C=a.defs[S]=Gt("pattern",S,s,[c])),t[r]=sc(S)}}function aP(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]=Gt("clipPath",i,s,[x4(e,r)])}t["clip-path"]=sc(i)}function Cx(e){return document.createTextNode(e)}function Xi(e,t,r){e.insertBefore(t,r)}function Ax(e,t){e.removeChild(t)}function Dx(e,t){e.appendChild(t)}function w4(e){return e.parentNode}function T4(e){return e.nextSibling}function td(e,t){e.textContent=t}var kx=58,nP=120,iP=Gt("","");function Ev(e){return e===void 0}function Va(e){return e!==void 0}function sP(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 sf(e,t){var r=e.key===t.key,a=e.tag===t.tag;return a&&r}function ol(e){var t,r=e.children,a=e.tag;if(Va(a)){var n=e.elm=d4(a);if(n1(iP,e),Le(r))for(t=0;ti?(v=r[f+1]==null?null:r[f+1].elm,S4(e,v,r,n,f)):Ru(e,t,a,i))}function zs(e,t){var r=t.elm=e.elm,a=e.children,n=t.children;e!==t&&(n1(e,t),Ev(t.text)?Va(a)&&Va(n)?a!==n&&oP(r,a,n):Va(n)?(Va(e.text)&&td(r,""),S4(r,null,n,0,n.length-1)):Va(a)?Ru(r,a,0,a.length-1):Va(e.text)&&td(r,""):e.text!==t.text&&(Va(a)&&Ru(r,a,0,a.length-1),td(r,t.text)))}function fP(e,t){if(sf(e,t))zs(e,t);else{var r=e.elm,a=w4(r);ol(t),a!==null&&(Xi(a,t.elm,T4(r)),Ru(a,[e],0,0))}return t}var lP=0,uP=(function(){function e(t,r,a){if(this.type="svg",this.refreshHover=bx(),this.configLayer=bx(),this.storage=r,this._opts=a=De({},a),this.root=t,this._id="zr"+lP++,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=d4("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",fP(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=cP(a,n,this._backgroundColor,i);o&&s.push(o);var f=t.compress?null:this._mainVNode=Gt("g","main",{},[]);this._paintList(r,i,f?f.children:s),f&&s.push(f);var l=je(st(i.defs),function(h){return i.defs[h]});if(l.length&&s.push(Gt("defs","defs",{},l)),t.animation){var u=WR(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=Gt("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:Xe(t.cssAnimation,!0),emphasis:Xe(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Xe(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=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=o)}}for(var c=this.__startIndex;c15)break}}Y.prevElClipPaths&&m.restore()};if(x)if(x.length===0)E=g.__endIndex;else for(var D=d.dpr,b=0;b0&&t>n[0]){for(f=0;ft);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;n0?T0: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&Gr&&!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,G(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var a=this._layerConfig;a[t]?Vt(a[t],r,!0):a[t]=r;for(var n=0;n{e.exports=a()})(_P,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(E){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(S){var D=k(S);D.chunkSize=parseInt(D.chunkSize),S.step||S.chunk||(D.chunkSize=null),this._handle=new p(D),(this._handle.streamer=this)._config=D}).call(this,E),this.parseChunk=function(S,D){var b=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview),s)a.postMessage({results:F,workerId:l.WORKER_ID,finished:b});else if(w(this._config.chunk)&&!D){if(this._config.chunk(F,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=F=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(F.data),this._completeResults.errors=this._completeResults.errors.concat(F.errors),this._completeResults.meta=F.meta),this._completed||!b||!w(this._config.complete)||F&&F.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),b||F&&F.meta.paused||this._nextChunk(),F}this._halted=!0},this._sendError=function(S){w(this._config.error)?this._config.error(S):s&&this._config.error&&a.postMessage({workerId:l.WORKER_ID,error:S,finished:!1})}}function c(E){var S;(E=E||{}).chunkSize||(E.chunkSize=l.RemoteChunkSize),u.call(this,E),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(D){this._input=D,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(S=new XMLHttpRequest,this._config.withCredentials&&(S.withCredentials=this._config.withCredentials),i||(S.onload=C(this._chunkLoaded,this),S.onerror=C(this._chunkError,this)),S.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var D,b=this._config.downloadRequestHeaders;for(D in b)S.setRequestHeader(D,b[D])}var F;this._config.chunkSize&&(F=this._start+this._config.chunkSize-1,S.setRequestHeader("Range","bytes="+this._start+"-"+F));try{S.send(this._config.downloadRequestBody)}catch(B){this._chunkError(B.message)}i&&S.status===0&&this._chunkError()}},this._chunkLoaded=function(){S.readyState===4&&(S.status<200||400<=S.status?this._chunkError():(this._start+=this._config.chunkSize||S.responseText.length,this._finished=!this._config.chunkSize||this._start>=(D=>(D=D.getResponseHeader("Content-Range"))!==null?parseInt(D.substring(D.lastIndexOf("/")+1)):-1)(S),this.parseChunk(S.responseText)))},this._chunkError=function(D){D=S.statusText||D,this._sendError(new Error(D))}}function h(E){(E=E||{}).chunkSize||(E.chunkSize=l.LocalChunkSize),u.call(this,E);var S,D,b=typeof FileReader<"u";this.stream=function(F){this._input=F,D=F.slice||F.webkitSlice||F.mozSlice,b?((S=new FileReader).onload=C(this._chunkLoaded,this),S.onerror=C(this._chunkError,this)):S=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(F.target.result)},this._chunkError=function(){this._sendError(S.error)}}function d(E){var S;u.call(this,E=E||{}),this.stream=function(D){return S=D,this._nextChunk()},this._nextChunk=function(){var D,b;if(!this._finished)return D=this._config.chunkSize,S=D?(b=S.substring(0,D),S.substring(D)):(b=S,""),this._finished=!S,this.parseChunk(b)}}function v(E){u.call(this,E=E||{});var S=[],D=!0,b=!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(F){this._input=F,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){b&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):D=!0},this._streamData=C(function(F){try{S.push(typeof F=="string"?F:F.toString(this._config.encoding)),D&&(D=!1,this._checkIsFinished(),this.parseChunk(S.shift()))}catch(B){this._streamError(B)}},this),this._streamError=C(function(F){this._streamCleanUp(),this._sendError(F)},this),this._streamEnd=C(function(){this._streamCleanUp(),b=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(E){var S,D,b,F,B=Math.pow(2,53),Y=-B,Q=/^\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,ce=0,U=0,ye=!1,pe=!1,M=[],H={data:[],errors:[],meta:{}};function z(de){return E.skipEmptyLines==="greedy"?de.join("").trim()==="":de.length===1&&de[0].length===0}function V(){if(H&&b&&(xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),b=!1),E.skipEmptyLines&&(H.data=H.data.filter(function(T){return!z(T)})),ie()){let T=function(N,W){w(E.transformHeader)&&(N=E.transformHeader(N,W)),M.push(N)};var he=T;if(H)if(Array.isArray(H.data[0])){for(var de=0;ie()&&de(me=>(E.dynamicTypingFunction&&E.dynamicTyping[me]===void 0&&(E.dynamicTyping[me]=E.dynamicTypingFunction(me)),(E.dynamicTyping[me]||E.dynamicTyping)===!0))(ue)?ve==="true"||ve==="TRUE"||ve!=="false"&&ve!=="FALSE"&&((me=>{if(Q.test(me)&&(me=parseFloat(me),Y=M.length?"__parsed_extra":M[ee]:Z,K=E.transform?E.transform(K,Z):K);Z==="__parsed_extra"?(W[Z]=W[Z]||[],W[Z].push(K)):W[Z]=K}return E.header&&(ee>M.length?xe("FieldMismatch","TooManyFields","Too many fields: expected "+M.length+" fields but parsed "+ee,U+N):eeE.preview?D.abort():(H.data=H.data[0],F(H,q))))}),this.parse=function(de,fe,oe){var he=E.quoteChar||'"',he=(E.newline||(E.newline=this.guessLineEndings(de,he)),b=!1,E.delimiter?w(E.delimiter)&&(E.delimiter=E.delimiter(de),H.meta.delimiter=E.delimiter):((he=((T,N,W,ee,Z)=>{var K,ue,ve,me;Z=Z||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var ge=0;ge=oe.length/2?`\r +`:"\r"}}function g(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(E){var S=(E=E||{}).delimiter,D=E.newline,b=E.comments,F=E.step,B=E.preview,Y=E.fastMode,Q=null,J=!1,q=E.quoteChar==null?'"':E.quoteChar,ce=q;if(E.escapeChar!==void 0&&(ce=E.escapeChar),(typeof S!="string"||-1=B)return Se(!0);break}oe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:fe.length,index:U}),ue++}}else if(b&&he.length===0&&pe.substring(U,U+xe)===b){if(Z===-1)return Se();U=Z+ie,Z=pe.indexOf(D,U),ee=pe.indexOf(S,U)}else if(ee!==-1&&(ee=B)return Se(!0)}return be();function me(Me){fe.push(Me),T=U}function ge(Me){var Ne=0;return Ne=Me!==-1&&(Me=pe.substring(ue+1,Me))&&Me.trim()===""?Me.length:Ne}function be(Me){return H||(Me===void 0&&(Me=pe.substring(U)),he.push(Me),U=z,me(he),de&&Ie()),Se()}function Ee(Me){U=Me,me(he),he=[],Z=pe.indexOf(D,U)}function Se(Me){if(E.header&&!M&&fe.length&&!J){var Ne=fe[0],Pe=Object.create(null),ot=new Set(Ne);let Re=!1;for(let Ye=0;Yeb.charCodeAt(0)!==65279?b:b.slice(1))(E),D=new(S.download?c:d)(S)):E.readable===!0&&w(E.read)&&w(E.on)?D=new v(S):(a.File&&E instanceof File||E instanceof Object)&&(D=new h(S)),D.stream(E);(D=(()=>{var b;return!!l.WORKERS_SUPPORTED&&(b=(()=>{var F=a.URL||a.webkitURL||null,B=r.toString();return l.BLOB_URL||(l.BLOB_URL=F.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"})))})(),(b=new a.Worker(b)).onmessage=x,b.id=f++,o[b.id]=b)})()).userStep=S.step,D.userChunk=S.chunk,D.userComplete=S.complete,D.userError=S.error,S.step=w(S.step),S.chunk=w(S.chunk),S.complete=w(S.complete),S.error=w(S.error),delete S.worker,D.postMessage({input:E,config:S,workerId:D.id})},l.unparse=function(E,S){var D=!1,b=!0,F=",",B=`\r +`,Y='"',Q=Y+Y,J=!1,q=null,ce=!1,U=((()=>{if(typeof S=="object"){if(typeof S.delimiter!="string"||l.BAD_DELIMITERS.filter(function(M){return S.delimiter.indexOf(M)!==-1}).length||(F=S.delimiter),typeof S.quotes!="boolean"&&typeof S.quotes!="function"&&!Array.isArray(S.quotes)||(D=S.quotes),typeof S.skipEmptyLines!="boolean"&&typeof S.skipEmptyLines!="string"||(J=S.skipEmptyLines),typeof S.newline=="string"&&(B=S.newline),typeof S.quoteChar=="string"&&(Y=S.quoteChar),typeof S.header=="boolean"&&(b=S.header),Array.isArray(S.columns)){if(S.columns.length===0)throw new Error("Option columns is empty");q=S.columns}S.escapeChar!==void 0&&(Q=S.escapeChar+Y),S.escapeFormulae instanceof RegExp?ce=S.escapeFormulae:typeof S.escapeFormulae=="boolean"&&S.escapeFormulae&&(ce=/^[=+\-@\t\r].*$/)}})(),new RegExp(g(Y),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return ye(null,E,J);if(typeof E[0]=="object")return ye(q||Object.keys(E[0]),E,J)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||q),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),ye(E.fields||[],E.data||[],J);throw new Error("Unable to serialize unrecognized input");function ye(M,H,z){var V="",ie=(typeof M=="string"&&(M=JSON.parse(M)),typeof H=="string"&&(H=JSON.parse(H)),Array.isArray(M)&&0{for(var de=0;de>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function A4(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var of=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?CP(e.slice(2)):t==254&&r==255?A4(e.slice(2)):t==65279?e.slice(1):e},S0=function(t){return String.fromCharCode(t)},Px=function(t){return String.fromCharCode(t)},fl,Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Lx(e){for(var t="",r=0,a=0,n=0,i=0,s=0,o=0,f=0,l=0;l>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+=Xn.charAt(i)+Xn.charAt(s)+Xn.charAt(o)+Xn.charAt(f);return t}function jr(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>4,t+=String.fromCharCode(r),o=Xn.indexOf(e.charAt(l++)),a=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(a)),f=Xn.indexOf(e.charAt(l++)),n=(o&3)<<6|f,f!==64&&(t+=String.fromCharCode(n));return t}var Qe=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),ps=(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 fi(e){return Qe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Ox(e){return Qe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ea=function(t){return Qe?ps(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function gs(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return o1(new Uint8Array(e));for(var t=new Array(e.length),r=0;r>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=fi(65535),a=65530)}return t.push(n.slice(0,r)),zn(t)}var Dr=/\u0000/g,ff=/[\u0001-\u0006]/g;function oo(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Aa(e,t){var r=""+e;return r.length>=t?r:Ft("0",t-r.length)+r}function f1(e,t){var r=""+e;return r.length>=t?r:Ft(" ",t-r.length)+r}function Pu(e,t){var r=""+e;return r.length>=t?r:r+Ft(" ",t-r.length)}function DP(e,t){var r=""+Math.round(e);return r.length>=t?r:Ft("0",t-r.length)+r}function kP(e,t){var r=""+e;return r.length>=t?r:Ft("0",t-r.length)+r}var Bx=Math.pow(2,32);function Ns(e,t){if(e>Bx||e<-Bx)return DP(e,t);var r=Math.round(e);return kP(r,t)}function Lu(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 bP(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 Ke={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},FP={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 Ou(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);lt&&(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=OP(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 D4=new Date(1899,11,31,0,0,0),IP=D4.getTime(),MP=new Date(1900,2,1,0,0,0);function k4(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=MP&&(r+=1440*60*1e3),(r-(IP+(e.getTimezoneOffset()-D4.getTimezoneOffset())*6e4))/(1440*60*1e3)}function l1(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function RP(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function PP(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 LP(e){var t=l1(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function ll(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=PP(e):t===10?r=e.toFixed(10).substr(0,12):r=LP(e),l1(RP(r.toUpperCase()))}function cs(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):ll(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return da(14,k4(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function OP(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function BP(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")?Aa(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=Aa(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?Aa(f,l):"";return u}function Yn(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 b4=/%/g;function NP(e,t,r){var a=t.replace(b4,""),n=t.length-a.length;return xn(e,a,r*Math.pow(10,2*n))+Ft("%",n)}function UP(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 F4(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"-"+F4(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 I4=/# (\?+)( ?)\/( ?)(\d+)/;function HP(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?Ft(" ",e[1].length+1+e[4].length):f1(s,e[1].length)+e[2]+"/"+e[3]+Aa(o,e[4].length))}function VP(e,t,r){return r+(t===0?"":""+t)+Ft(" ",e[1].length+2+e[4].length)}var M4=/^#*0*\.([0#]+)/,R4=/\).*[0#]/,P4=/\(###\) ###\\?-####/;function xr(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 zP(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function WP(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function ra(e,t,r){if(e.charCodeAt(0)===40&&!t.match(R4)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ra("n",a,r):"("+ra("n",a,-r)+")"}if(t.charCodeAt(t.length-1)===44)return UP(e,t,r);if(t.indexOf("%")!==-1)return NP(e,t,r);if(t.indexOf("E")!==-1)return F4(t,r);if(t.charCodeAt(0)===36)return"$"+ra(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+Ns(f,t.length);if(t.match(/^[#?]+$/))return n=Ns(r,0),n==="0"&&(n=""),n.length>t.length?n:xr(t.substr(0,t.length-n.length))+n;if(i=t.match(I4))return HP(i,f,l);if(t.match(/^#+0+$/))return l+Ns(f,t.length-t.indexOf("0"));if(i=t.match(M4))return n=Hx(r,i[1].length).replace(/^([^\.]+)$/,"$1."+xr(i[1])).replace(/\.$/,"."+xr(i[1])).replace(/\.(\d*)$/,function(v,p){return"."+p+Ft("0",xr(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+Yn(Ns(f,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ra(e,t,-r):Yn(""+(Math.floor(r)+zP(r,i[1].length)))+"."+Aa(Vx(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return ra(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=oo(ra(e,t.replace(/[\\-]/g,""),r)),s=0,oo(oo(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s=0?Ua("n",a,r):"("+Ua("n",a,-r)+")"}if(t.charCodeAt(t.length-1)===44)return GP(e,t,r);if(t.indexOf("%")!==-1)return $P(e,t,r);if(t.indexOf("E")!==-1)return L4(t,r);if(t.charCodeAt(0)===36)return"$"+Ua(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+Aa(f,t.length);if(t.match(/^[#?]+$/))return n=""+r,r===0&&(n=""),n.length>t.length?n:xr(t.substr(0,t.length-n.length))+n;if(i=t.match(I4))return VP(i,f,l);if(t.match(/^#+0+$/))return l+Aa(f,t.length-t.indexOf("0"));if(i=t.match(M4))return n=(""+r).replace(/^([^\.]+)$/,"$1."+xr(i[1])).replace(/\.$/,"."+xr(i[1])),n=n.replace(/\.(\d*)$/,function(v,p){return"."+p+Ft("0",xr(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+Yn(""+f);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ua(e,t,-r):Yn(""+r)+"."+Ft("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Ua(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=oo(Ua(e,t.replace(/[\\-]/g,""),r)),s=0,oo(oo(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s-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-1;);break;case" ":++t;break;default:++t;break}return!1}function YP(e,t,r,a){for(var n=[],i="",s=0,o="",f="t",l,u,c,h="H";s=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-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",To(e)||(n[n.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=o;++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-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;s0){_.charCodeAt(0)==40?(C=t<0&&_.charCodeAt(0)===45?-t:t,w=xn("n",_,C)):(C=t<0&&a>1?-t:t,w=xn("n",_,C),C<0&&n[0]&&n[0].t=="t"&&(w=w.substr(1),n[0].v="-"+n[0].v)),y=w.length-1;var E=n.length;for(s=0;s-1){E=s;break}var S=n.length;if(E===n.length&&w.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=w.substr(y+1,n[s].v.length)):y<0?n[s].v="":(n[s].v=w.substr(0,y+1),y=-1),n[s].t="t",S=s);y>=0&&S=0;--s)if(!(n[s]==null||"n?".indexOf(n[s].t)===-1)){for(u=n[s].v.indexOf(".")>-1&&s===E?n[s].v.indexOf(".")-1:n[s].v.length-1,k=n[s].v.substr(u+1);u>=0;--u)y>=0&&(n[s].v.charAt(u)==="0"||n[s].v.charAt(u)==="#")&&(k=w.charAt(y--)+k);n[s].v=k,n[s].t="t",S=s}for(y>=0&&S-1&&s===E?n[s].v.indexOf(".")+1:0,k=n[s].v.substr(0,u);u-1&&(C=a>1&&t<0&&s>0&&n[s-1].v==="-"?-t:t,n[s].v=xn(n[s].t,n[s].v,C),n[s].t="t");var D="";for(s=0;s!==n.length;++s)n[s]!=null&&(D+=n[s].v);return D}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":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function KP(e,t){var r=XP(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 da(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:Ke)[e],a==null&&(a=r.table&&r.table[Ux[e]]||Ke[Ux[e]]),a==null&&(a=FP[e]||"General");break}if(Lu(a,0))return cs(t,r);t instanceof Date&&(t=k4(t,r.date1904));var n=KP(a,t);if(Lu(n[1]))return cs(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return YP(n[1],t,r,n[0])}function ss(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Ke[r]==null){t<0&&(t=r);continue}if(Ke[r]==e){t=r;break}}t<0&&(t=391)}return Ke[t]=e,t}function B4(){Ke=bP()}var ZP={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"},N4=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function jP(e){var t=typeof e=="number"?Ke[e]:e;return t=t.replace(N4,"(\\d+)"),new RegExp("^"+t+"$")}function qP(e,t,r){var a=-1,n=-1,i=-1,s=-1,o=-1,f=-1;(t.match(N4)||[]).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 JP=(function(){var e={};e.version="1.2.0";function t(){for(var w=0,E=new Array(256),S=0;S!=256;++S)w=S,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,E[S]=w;return typeof Int32Array<"u"?new Int32Array(E):E}var r=t();function a(w){var E=0,S=0,D=0,b=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(D=0;D!=256;++D)b[D]=w[D];for(D=0;D!=256;++D)for(S=w[D],E=256+D;E<4096;E+=256)S=b[E]=S>>>8^w[S&255];var F=[];for(D=1;D!=16;++D)F[D-1]=typeof Int32Array<"u"?b.subarray(D*256,D*256+256):b.slice(D*256,D*256+256);return F}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(w,E){for(var S=E^-1,D=0,b=w.length;D>>8^r[(S^w.charCodeAt(D++))&255];return~S}function k(w,E){for(var S=E^-1,D=w.length-15,b=0;b>8&255]^m[w[b++]^S>>16&255]^g[w[b++]^S>>>24]^p[w[b++]]^v[w[b++]]^d[w[b++]]^h[w[b++]]^c[w[b++]]^u[w[b++]]^l[w[b++]]^f[w[b++]]^o[w[b++]]^s[w[b++]]^i[w[b++]]^r[w[b++]];for(D+=15;b>>8^r[(S^w[b++])&255];return~S}function C(w,E){for(var S=E^-1,D=0,b=w.length,F=0,B=0;D>>8^r[(S^F)&255]:F<2048?(S=S>>>8^r[(S^(192|F>>6&31))&255],S=S>>>8^r[(S^(128|F&63))&255]):F>=55296&&F<57344?(F=(F&1023)+64,B=w.charCodeAt(D++)&1023,S=S>>>8^r[(S^(240|F>>8&7))&255],S=S>>>8^r[(S^(128|F>>2&63))&255],S=S>>>8^r[(S^(128|B>>6&15|(F&3)<<4))&255],S=S>>>8^r[(S^(128|B&63))&255]):(S=S>>>8^r[(S^(224|F>>12&15))&255],S=S>>>8^r[(S^(128|F>>6&63))&255],S=S>>>8^r[(S^(128|F&63))&255]);return~S}return e.table=r,e.bstr=y,e.buf=k,e.str=C,e})(),tt=(function(){var t={};t.version="1.2.1";function r(A,P){for(var I=A.split("/"),R=P.split("/"),L=0,O=0,j=Math.min(I.length,R.length);L>>1,A.write_shift(2,I);var R=P.getFullYear()-1980;R=R<<4|P.getMonth()+1,R=R<<5|P.getDate(),A.write_shift(2,R)}function s(A){var P=A.read_shift(2)&65535,I=A.read_shift(2)&65535,R=new Date,L=I&31;I>>>=5;var O=I&15;I>>>=4,R.setMilliseconds(0),R.setFullYear(I+1980),R.setMonth(O-1),R.setDate(L);var j=P&31;P>>>=5;var le=P&63;return P>>>=6,R.setHours(P),R.setMinutes(le),R.setSeconds(j<<1),R}function o(A){jt(A,0);for(var P={},I=0;A.l<=A.length-4;){var R=A.read_shift(2),L=A.read_shift(2),O=A.l+L,j={};R===21589&&(I=A.read_shift(1),I&1&&(j.mtime=A.read_shift(4)),L>5&&(I&2&&(j.atime=A.read_shift(4)),I&4&&(j.ctime=A.read_shift(4))),j.mtime&&(j.mt=new Date(j.mtime*1e3))),A.l=O,P[R]=j}return P}var f;function l(){return f||(f={})}function u(A,P){if(A[0]==80&&A[1]==75)return Pl(A,P);if((A[0]|32)==109&&(A[1]|32)==105)return Ul(A,P);if(A.length<512)throw new Error("CFB file size "+A.length+" < 512");var I=3,R=512,L=0,O=0,j=0,le=0,te=0,ae=[],se=A.slice(0,512);jt(se,0);var we=c(se);switch(I=we[0],I){case 3:R=512;break;case 4:R=4096;break;case 0:if(we[1]==0)return Pl(A,P);default:throw new Error("Major Version: Expected 3 or 4 saw "+I)}R!==512&&(se=A.slice(0,R),jt(se,28));var Ce=A.slice(0,R);h(se,I);var Fe=se.read_shift(4,"i");if(I===3&&Fe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Fe);se.l+=4,j=se.read_shift(4,"i"),se.l+=4,se.chk("00100000","Mini Stream Cutoff Size: "),le=se.read_shift(4,"i"),L=se.read_shift(4,"i"),te=se.read_shift(4,"i"),O=se.read_shift(4,"i");for(var Te=-1,ke=0;ke<109&&(Te=se.read_shift(4,"i"),!(Te<0));++ke)ae[ke]=Te;var He=d(A,R);g(te,O,He,R,ae);var pt=x(He,j,ae,R);pt[j].name="!Directory",L>0&&le!==B&&(pt[le].name="!MiniFAT"),pt[ae[0]].name="!FAT",pt.fat_addrs=ae,pt.ssz=R;var Ue={},Et=[],Fn=[],Co=[];_(j,pt,He,Et,L,Ue,Fn,le),v(Fn,Co,Et),Et.shift();var Ao={FileIndex:Fn,FullPaths:Co};return P&&P.raw&&(Ao.raw={header:Ce,sectors:He}),Ao}function c(A){if(A[A.l]==80&&A[A.l+1]==75)return[0,0];A.chk(Y,"Header Signature: "),A.l+=16;var P=A.read_shift(2,"u");return[A.read_shift(2,"u"),P]}function h(A,P){var I=9;switch(A.l+=2,I=A.read_shift(2)){case 9:if(P!=3)throw new Error("Sector Shift: Expected 9 saw "+I);break;case 12:if(P!=4)throw new Error("Sector Shift: Expected 12 saw "+I);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+I)}A.chk("0600","Mini Sector Shift: "),A.chk("000000000000","Reserved: ")}function d(A,P){for(var I=Math.ceil(A.length/P)-1,R=[],L=1;L0&&j>=0;)O.push(P.slice(j*F,j*F+F)),L-=F,j=Yi(I,j*4);return O.length===0?Wt(0):zn(O).slice(0,A.size)}function g(A,P,I,R,L){var O=B;if(A===B){if(P!==0)throw new Error("DIFAT chain shorter than expected")}else if(A!==-1){var j=I[A],le=(R>>>2)-1;if(!j)return;for(var te=0;te=0;){L[te]=!0,O[O.length]=te,j.push(A[te]);var se=I[Math.floor(te*4/R)];if(ae=te*4&le,R<4+ae)throw new Error("FAT boundary crossed: "+te+" 4 "+R);if(!A[se])break;te=Yi(A[se],ae)}return{nodes:O,data:Qx([j])}}function x(A,P,I,R){var L=A.length,O=[],j=[],le=[],te=[],ae=R-1,se=0,we=0,Ce=0,Fe=0;for(se=0;se=L&&(Ce-=L),!j[Ce]){te=[];var Te=[];for(we=Ce;we>=0;){Te[we]=!0,j[we]=!0,le[le.length]=we,te.push(A[we]);var ke=I[Math.floor(we*4/R)];if(Fe=we*4&ae,R<4+Fe)throw new Error("FAT boundary crossed: "+we+" 4 "+R);if(!A[ke]||(we=Yi(A[ke],Fe),Te[we]))break}O[Ce]={nodes:le,data:Qx([te])}}return O}function _(A,P,I,R,L,O,j,le){for(var te=0,ae=R.length?2:0,se=P[A].data,we=0,Ce=0,Fe;we0&&te!==B&&(P[te].name="!StreamData")):ke.size>=4096?(ke.storage="fat",P[ke.start]===void 0&&(P[ke.start]=m(I,ke.start,P.fat_addrs,P.ssz)),P[ke.start].name=ke.name,ke.content=P[ke.start].data.slice(0,ke.size)):(ke.storage="minifat",ke.size<0?ke.size=0:te!==B&&ke.start!==B&&P[te]&&(ke.content=p(ke,P[te].data,(P[le]||{}).data))),ke.content&&jt(ke.content,0),O[Fe]=ke,j.push(ke)}}function y(A,P){return new Date((Wr(A,P+4)/1e7*Math.pow(2,32)+Wr(A,P)/1e7-11644473600)*1e3)}function k(A,P){return l(),u(f.readFileSync(A),P)}function C(A,P){var I=P&&P.type;switch(I||Qe&&Buffer.isBuffer(A)&&(I="buffer"),I||"base64"){case"file":return k(A,P);case"base64":return u(Ea(jr(A)),P);case"binary":return u(Ea(A),P)}return u(A,P)}function w(A,P){var I=P||{},R=I.root||"Root Entry";if(A.FullPaths||(A.FullPaths=[]),A.FileIndex||(A.FileIndex=[]),A.FullPaths.length!==A.FileIndex.length)throw new Error("inconsistent CFB structure");A.FullPaths.length===0&&(A.FullPaths[0]=R+"/",A.FileIndex[0]={name:R,type:5}),I.CLSID&&(A.FileIndex[0].clsid=I.CLSID),E(A)}function E(A){var P="Sh33tJ5";if(!tt.find(A,"/"+P)){var I=Wt(4);I[0]=55,I[1]=I[3]=50,I[2]=54,A.FileIndex.push({name:P,type:2,content:I,size:4,L:69,R:69,C:69}),A.FullPaths.push(A.FullPaths[0]+P),S(A)}}function S(A,P){w(A);for(var I=!1,R=!1,L=A.FullPaths.length-1;L>=0;--L){var O=A.FileIndex[L];switch(O.type){case 0:R?I=!0:(A.FileIndex.pop(),A.FullPaths.pop());break;case 1:case 2:case 5:R=!0,isNaN(O.R*O.L*O.C)&&(I=!0),O.R>-1&&O.L>-1&&O.R==O.L&&(I=!0);break;default:I=!0;break}}if(!(!I&&!P)){var j=new Date(1987,1,19),le=0,te=Object.create?Object.create(null):{},ae=[];for(L=0;L1?1:-1,we.size=0,we.type=5;else if(Ce.slice(-1)=="/"){for(le=L+1;le=ae.length?-1:le,le=L+1;le=ae.length?-1:le,we.type=1}else a(A.FullPaths[L+1]||"")==a(Ce)&&(we.R=L+1),we.type=2}}}function D(A,P){var I=P||{};if(I.fileType=="mad")return bc(A,I);if(S(A),I.fileType==="zip")return Ol(A,I);var R=(function(Fe){for(var Te=0,ke=0,He=0;He0&&(Ue<4096?Te+=Ue+63>>6:ke+=Ue+511>>9)}}for(var Et=Fe.FullPaths.length+3>>2,Fn=Te+7>>3,Co=Te+127>>7,Ao=Fn+ke+Et+Co,vi=Ao+127>>7,Ic=vi<=109?0:Math.ceil((vi-109)/127);Ao+vi+Ic+127>>7>vi;)Ic=++vi<=109?0:Math.ceil((vi-109)/127);var nn=[1,Ic,vi,Co,Et,ke,Te,0];return Fe.FileIndex[0].size=Te<<6,nn[7]=(Fe.FileIndex[0].start=nn[0]+nn[1]+nn[2]+nn[3]+nn[4]+nn[5])+(nn[6]+7>>3),nn})(A),L=Wt(R[7]<<9),O=0,j=0;{for(O=0;O<8;++O)L.write_shift(1,Q[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,R[2]),L.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),L.write_shift(4,0),L.write_shift(4,4096),L.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:B),L.write_shift(4,R[3]),L.write_shift(-4,R[1]?R[0]-1:B),L.write_shift(4,R[1]),O=0;O<109;++O)L.write_shift(-4,O>9)));for(le(R[6]+7>>3);L.l&511;)L.write_shift(-4,q.ENDOFCHAIN);for(j=O=0,te=0;te=4096)&&(se.start=j,le(ae+63>>6)));for(;L.l&511;)L.write_shift(-4,q.ENDOFCHAIN);for(O=0;O=4096)if(L.l=se.start+1<<9,Qe&&Buffer.isBuffer(se.content))se.content.copy(L,L.l,0,se.size),L.l+=se.size+511&-512;else{for(te=0;te0&&se.size<4096)if(Qe&&Buffer.isBuffer(se.content))se.content.copy(L,L.l,0,se.size),L.l+=se.size+63&-64;else{for(te=0;te>16|P>>8|P)&255}for(var fe=typeof Uint8Array<"u",oe=fe?new Uint8Array(256):[],he=0;he<256;++he)oe[he]=de(he);function T(A,P){var I=oe[A&255];return P<=8?I>>>8-P:(I=I<<8|oe[A>>8&255],P<=16?I>>>16-P:(I=I<<8|oe[A>>16&255],I>>>24-P))}function N(A,P){var I=P&7,R=P>>>3;return(A[R]|(I<=6?0:A[R+1]<<8))>>>I&3}function W(A,P){var I=P&7,R=P>>>3;return(A[R]|(I<=5?0:A[R+1]<<8))>>>I&7}function ee(A,P){var I=P&7,R=P>>>3;return(A[R]|(I<=4?0:A[R+1]<<8))>>>I&15}function Z(A,P){var I=P&7,R=P>>>3;return(A[R]|(I<=3?0:A[R+1]<<8))>>>I&31}function K(A,P){var I=P&7,R=P>>>3;return(A[R]|(I<=1?0:A[R+1]<<8))>>>I&127}function ue(A,P,I){var R=P&7,L=P>>>3,O=(1<>>R;return I<8-R||(j|=A[L+1]<<8-R,I<16-R)||(j|=A[L+2]<<16-R,I<24-R)||(j|=A[L+3]<<24-R),j&O}function ve(A,P,I){var R=P&7,L=P>>>3;return R<=5?A[L]|=(I&7)<>8-R),P+3}function me(A,P,I){var R=P&7,L=P>>>3;return I=(I&1)<>>3;return I<<=R,A[L]|=I&255,I>>>=8,A[L+1]=I,P+8}function be(A,P,I){var R=P&7,L=P>>>3;return I<<=R,A[L]|=I&255,I>>>=8,A[L+1]=I&255,A[L+2]=I>>>8,P+16}function Ee(A,P){var I=A.length,R=2*I>P?2*I:P+5,L=0;if(I>=P)return A;if(Qe){var O=Ox(R);if(A.copy)A.copy(O);else for(;L>R-we,j=(1<=0;--j)P[le|j<0;)te[te.l++]=le[ae++]}return te.l}function j(le,te){for(var ae=0,se=0,we=fe?new Uint16Array(32768):[];se0;)te[te.l++]=le[se++];ae=te.l*8;continue}ae=ve(te,ae,+(se+Ce==le.length)+2);for(var Fe=0;Ce-- >0;){var Te=le[se];Fe=(Fe<<5^Te)&32767;var ke=-1,He=0;if((ke=we[Fe])&&(ke|=se&-32768,ke>se&&(ke-=32768),ke2){Te=L[He],Te<=22?ae=ge(te,ae,oe[Te+1]>>1)-1:(ge(te,ae,3),ae+=5,ge(te,ae,oe[Te-23]>>5),ae+=3);var pt=Te<8?0:Te-4>>2;pt>0&&(be(te,ae,He-ie[Te]),ae+=pt),Te=P[se-ke],ae=ge(te,ae,oe[Te]>>3),ae-=3;var Ue=Te<4?0:Te-2>>1;Ue>0&&(be(te,ae,se-ke-xe[Te]),ae+=Ue);for(var Et=0;Et>8-Te;for(var ke=(1<<7-Te)-1;ke>=0;--ke)at[Fe|ke<>>=3){case 16:for(O=3+N(A,P),P+=2,Fe=He[He.length-1];O-- >0;)He.push(Fe);break;case 17:for(O=3+W(A,P),P+=3;O-- >0;)He.push(0);break;case 18:for(O=11+K(A,P),P+=7;O-- >0;)He.push(0);break;default:He.push(Fe),te>>0,le=0,te=0;(R&1)==0;){if(R=W(A,I),I+=3,R>>>1)R>>1==1?(le=9,te=5):(I=pr(A,I),le=vr,te=Bt);else{I&7&&(I+=8-(I&7));var ae=A[I>>>3]|A[(I>>>3)+1]<<8;if(I+=32,ae>0)for(!P&&j0;)L[O++]=A[I>>>3],I+=8;continue}for(;;){!P&&j>>1==1?Me[se]:Ye[se];if(I+=we&15,we>>>=4,(we>>>8&255)===0)L[O++]=we;else{if(we==256)break;we-=257;var Ce=we<8?0:we-4>>2;Ce>5&&(Ce=0);var Fe=O+ie[we];Ce>0&&(Fe+=ue(A,I,Ce),I+=Ce),se=ue(A,I,te),we=R>>>1==1?Ne[se]:Je[se],I+=we&15,we>>>=4;var Te=we<4?0:we-2>>1,ke=xe[we];for(Te>0&&(ke+=ue(A,I,Te),I+=Te),!P&&j>>3]:[L.slice(0,O),I+7>>>3]}function di(A,P){var I=A.slice(A.l||0),R=hi(I,P);return A.l+=R[1],R[0]}function Rl(A,P){if(A)typeof console<"u"&&console.error(P);else throw new Error(P)}function Pl(A,P){var I=A;jt(I,0);var R=[],L=[],O={FileIndex:R,FullPaths:L};w(O,{root:P.root});for(var j=I.length-4;(I[j]!=80||I[j+1]!=75||I[j+2]!=5||I[j+3]!=6)&&j>=0;)--j;I.l=j+4,I.l+=4;var le=I.read_shift(2);I.l+=6;var te=I.read_shift(4);for(I.l=te,j=0;j0&&(I=I.slice(0,I.length-1),I=I.slice(0,I.lastIndexOf("/")+1),O.slice(0,I.length)!=I););var j=(R[1]||"").match(/boundary="(.*?)"/);if(!j)throw new Error("MAD cannot find boundary");var le="--"+(j[1]||""),te=[],ae=[],se={FileIndex:te,FullPaths:ae};w(se);var we,Ce=0;for(L=0;L=32&&Fe<128&&++we;var ke=we>=Ce*4/5;L.push(R),L.push("Content-Location: "+(I.root||"file:///C:/SheetJS/")+j),L.push("Content-Transfer-Encoding: "+(ke?"quoted-printable":"base64")),L.push("Content-Type: "+Bl(le,j)),L.push(""),L.push(ke?Dc(se):Ac(se))}return L.push(R+`--\r +`),L.join(`\r +`)}function Fc(A){var P={};return w(P,A),P}function ne(A,P,I,R){var L=R&&R.unsafe;L||w(A);var O=!L&&tt.find(A,P);if(!O){var j=A.FullPaths[0];P.slice(0,j.length)==j?j=P:(j.slice(-1)!="/"&&(j+="/"),j=(j+P).replace("//","/")),O={name:n(P),type:2},A.FileIndex.push(O),A.FullPaths.push(j),L||tt.utils.cfb_gc(A)}return O.content=I,O.size=I?I.length:0,R&&(R.CLSID&&(O.clsid=R.CLSID),R.mt&&(O.mt=R.mt),R.ct&&(O.ct=R.ct)),O}function X(A,P){w(A);var I=tt.find(A,P);if(I){for(var R=0;R3&&(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"),H4=isNaN($x.getFullYear())?new Date("2/19/17"):$x,r7=H4.getFullYear()==2017;function Kt(e,t){var r=new Date(e);if(r7)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(H4.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 hs(e,t){if(Qe&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return uf(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return uf(A4(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return uf(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return uf(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 qt(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]=qt(e[r]));return t}function Ft(e,t){for(var r="";r.length3&&a7.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 n7=(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\r +`,f7=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Yx=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,l7=/<[^>]*>/g,dr=G4.match(Yx)?Yx:l7,u7=/<\w*:/,c7=/<(\/?)\w+:/;function Ve(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(f7),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 rn(e){return e.replace(c7,"<$1")}var $4={""":'"',"'":"'",">":">","<":"<","&":"&"},h7=u1($4),it=(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("-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))}})(),d7=/[&<>'"]/g,v7=/[\u0000-\u001f]/g;function h1(e){var t=e+"";return t.replace(d7,function(r){return h7[r]}).replace(/\n/g,"
").replace(v7,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 Ct(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;r191&&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=fi(2*e.length),r,a,n=1,i=0,s=0,o;for(a=0;a>>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 ps(e,"binary").toString("utf8")}var E0="foo bar baz☃🍣",wt=Qe&&(jx(E0)==nd(E0)&&jx||Zx(E0)==nd(E0)&&Zx)||nd,uf=Qe?function(e){return ps(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,a=0,n=0;r>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("")},ul=(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]*?)",a||"")}})(),X4=(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(/<[^>]*>/g,""),n=0;n([\\s\\S]*?)","g")}})(),g7=/<\/?(?:vt:)?variant>/g,m7=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function d1(e){if(Qe&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return wt(gs(o1(e)));throw new Error("Bad input format: expected Buffer or string")}var cl=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,w7={CT:"http://schemas.openxmlformats.org/package/2006/content-types"},T7=["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 S7(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 E7(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>4|a}var Jx=function(e){for(var t=[],r=10240,a=0;a0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:ps(t)})):Jx(e)}:Jx,e_=function(e,t,r){for(var a=[],n=t;n0?Dl(e,t+4,t+4+r-1):""},Z4=K4,j4=function(e,t){var r=Wr(e,t);return r>0?Dl(e,t+4,t+4+r-1):""},q4=j4,J4=function(e,t){var r=2*Wr(e,t);return r>0?Dl(e,t+4,t+4+r-1):""},Q4=J4,e3=function(t,r){var a=Wr(t,r);return a>0?v1(t,r+4,r+4+a):""},t3=e3,r3=function(e,t){var r=Wr(e,t);return r>0?Dl(e,t+4,t+4+r):""},a3=r3,n3=function(e,t){return S7(e,t)},Nu=n3,i3=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Qe&&(Z4=function(t,r){if(!Buffer.isBuffer(t))return K4(t,r);var a=t.readUInt32LE(r);return a>0?t.toString("utf8",r+4,r+4+a-1):""},q4=function(t,r){if(!Buffer.isBuffer(t))return j4(t,r);var a=t.readUInt32LE(r);return a>0?t.toString("utf8",r+4,r+4+a-1):""},Q4=function(t,r){if(!Buffer.isBuffer(t))return J4(t,r);var a=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+a-1)},t3=function(t,r){if(!Buffer.isBuffer(t))return e3(t,r);var a=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+a)},a3=function(t,r){if(!Buffer.isBuffer(t))return r3(t,r);var a=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+a)},Nu=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):n3(t,r)},i3=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Ws=function(e,t){return e[t]},pn=function(e,t){return e[t+1]*256+e[t]},C7=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Wr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Yi=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},A7=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Ff(e,t){var r="",a,n,i=[],s,o,f,l;switch(t){case"dbcs":if(l=this.l,Qe&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f0?Yi:A7)(this,this.l),this.l+=4,a):(n=Wr(this,this.l),this.l+=4,n);case 8:case-8:if(t==="f")return e==8?n=Nu(this,this.l):n=Nu([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=Y4(this,this.l,e);break}}return this.l+=e,r}var D7=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},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};function F7(e,t,r){var a=0,n=0;if(r==="dbcs"){for(n=0;n!=t.length;++n)b7(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>8}for(;this.l>>=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,D7(this,t,this.l);break;case 8:if(a=8,r==="f"){E7(this,t,this.l);break}case 16:break;case-4:a=4,k7(this,t,this.l);break}return this.l+=a,this}function s3(e,t){var r=Y4(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function jt(e,t){e.l=t,e.read_shift=Ff,e.chk=s3,e.write_shift=F7}function hr(e,t){e.l+=t}function Wt(e){var t=fi(e);return jt(t,0),t}function bn(e,t,r){if(e){var a,n,i;jt(e,e.l||0);for(var s=e.length,o=0,f=0;e.la.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=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function a_(e,t,r){var a=qt(e);return a.s=If(a.s,t.s,r),a.e=If(a.e,t.s,r),a}function Mf(e,t){if(e.cRel&&e.c<0)for(e=qt(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=qt(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Ge(e);return!e.cRel&&e.cRel!=null&&(r=R7(r)),!e.rRel&&e.rRel!=null&&(r=I7(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?"":"$")+$t(e.s.c)+":"+(e.e.cRel?"":"$")+$t(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Jt(e.s.r)+":"+(e.e.rRel?"":"$")+Jt(e.e.r):Mf(e.s,t.biff)+":"+Mf(e.e,t.biff)}function p1(e){return parseInt(M7(e),10)-1}function Jt(e){return""+(e+1)}function I7(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function M7(e){return e.replace(/\$(\d+)$/,"$1")}function g1(e){for(var t=P7(e),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function $t(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 R7(e){return e.replace(/^([A-Z])/,"$$$1")}function P7(e){return e.replace(/^\$([A-Z])/,"$1")}function L7(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Er(e){for(var t=0,r=0,a=0;a=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 Ge(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 So(e){var t=e.indexOf(":");return t==-1?{s:Er(e),e:Er(e)}:{s:Er(e.slice(0,t)),e:Er(e.slice(t+1))}}function rt(e,t){return typeof t>"u"||typeof t=="number"?rt(e.s,e.e):(typeof e!="string"&&(e=Ge(e)),typeof t!="string"&&(t=Ge(t)),e==t?e:e+":"+t)}function Mt(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;a26);++a)r=26*r+n;for(t.s.c=--r,r=0;a9);++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=da(e.z,r?kr(t):t)}catch{}try{return e.w=da((e.XF||{}).numFmtId||(r?14:0),r?kr(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"?_s[e.v]||e.v:t==null?n_(e,e.v):n_(e,t))}function ci(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function o3(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"?Er(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=Mt(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>2;return r?n/100:n}function f3(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 xs=f3;function or(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function V7(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=os[n];l&&(t.rgb=dl(l));break;case 2:t.rgb=dl([s,o,f]);break;case 3:t.theme=n;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function z7(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 l3(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 W7(e){return l3(e,1)}function G7(e){return l3(e,2)}var y1=2,Pr=3,C0=11,i_=12,Uu=19,A0=64,$7=65,X7=71,Y7=4108,K7=4126,Yt=80,u3=81,Z7=[Yt,u3],j7={1:{n:"CodePage",t:y1},2:{n:"Category",t:Yt},3:{n:"PresentationFormat",t:Yt},4:{n:"ByteCount",t:Pr},5:{n:"LineCount",t:Pr},6:{n:"ParagraphCount",t:Pr},7:{n:"SlideCount",t:Pr},8:{n:"NoteCount",t:Pr},9:{n:"HiddenCount",t:Pr},10:{n:"MultimediaClipCount",t:Pr},11:{n:"ScaleCrop",t:C0},12:{n:"HeadingPairs",t:Y7},13:{n:"TitlesOfParts",t:K7},14:{n:"Manager",t:Yt},15:{n:"Company",t:Yt},16:{n:"LinksUpToDate",t:C0},17:{n:"CharacterCount",t:Pr},19:{n:"SharedDoc",t:C0},22:{n:"HyperlinksChanged",t:C0},23:{n:"AppVersion",t:Pr,p:"version"},24:{n:"DigSig",t:$7},26:{n:"ContentType",t:Yt},27:{n:"ContentStatus",t:Yt},28:{n:"Language",t:Yt},29:{n:"Version",t:Yt},255:{},2147483648:{n:"Locale",t:Uu},2147483651:{n:"Behavior",t:Uu},1919054434:{}},q7={1:{n:"CodePage",t:y1},2:{n:"Title",t:Yt},3:{n:"Subject",t:Yt},4:{n:"Author",t:Yt},5:{n:"Keywords",t:Yt},6:{n:"Comments",t:Yt},7:{n:"Template",t:Yt},8:{n:"LastAuthor",t:Yt},9:{n:"RevNumber",t:Yt},10:{n:"EditTime",t:A0},11:{n:"LastPrinted",t:A0},12:{n:"CreatedDate",t:A0},13:{n:"ModifiedDate",t:A0},14:{n:"PageCount",t:Pr},15:{n:"WordCount",t:Pr},16:{n:"CharCount",t:Pr},17:{n:"Thumbnail",t:X7},18:{n:"Application",t:Yt},19:{n:"DocSecurity",t:Pr},255:{},2147483648:{n:"Locale",t:Uu},2147483651:{n:"Behavior",t:Uu},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"},J7=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Q7(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var eL=Q7([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]),os=qt(eL),_s={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},c3={"#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 tL(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function rL(e){var t=tL();if(!e||!e.match)return t;var r={};if((e.match(dr)||[]).forEach(function(a){var n=Ve(a);switch(n[0].replace(u7,"<")){case"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 Zs={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 Rf(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var a={};return(e.match(dr)||[]).forEach(function(n){var i=Ve(n);if(i[0]==="]*>([\\s\\S]*?)")}return e})();function h3(e){var t={};e=wt(e);for(var r=0;r0&&(t[a[1]]=it(n[1])),a[2]==="date"&&t[a[1]]&&(t[a[1]]=Kt(t[a[1]]))}return t}var sL=[["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 d3(e,t,r,a){var n=[];if(typeof e=="string")n=qx(e,a);else for(var i=0;i0)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 oL(e,t,r){var a={};return t||(t={}),e=wt(e),sL.forEach(function(n){var i=(e.match(ul(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=it(i));break;case"bool":t[n[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(a[n[1]]=s[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&d3(a.HeadingPairs,a.TitlesOfParts,t,r),t}var fL=/<[^>]+>[^<]*/g;function lL(e,t){var r={},a="",n=e.match(fL);if(n)for(var i=0;i!=n.length;++i){var s=n[i],o=Ve(s);switch(o[0]){case"":a=null;break;default:if(s.indexOf(""),l=f[0].slice(4),u=f[1];switch(l){case"lpstr":case"bstr":case"lpwstr":r[a]=it(u);break;case"bool":r[a]=Ct(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]=Kt(u);break;case"cy":case"error":r[a]=it(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)!==">3<<2),a}function m3(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 mL(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Hu(e,t,r){var a=e.read_shift(2),n,i=r||{};if(e.l+=2,t!==i_&&a!==t&&Z7.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 v3(e,a,4).replace(Dr,"");case 31:return p3(e);case 64:return w1(e);case 65:return m3(e);case 71:return mL(e);case 80:return kv(e,a,!i.raw).replace(Dr,"");case 81:return hL(e,a).replace(Dr,"");case 4108:return gL(e);case 4126:case 4127:return a==4127?dL(e):vL(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]=Hu(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:Ca(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=Hu(e,y1),Ca(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=m3(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=Rt(e,4);break;case 64:e.l+=4,m=Kt(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{};jt(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!==tt.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 Bn(e,t){return e.read_shift(t),null}function xL(e,t,r){for(var a=[],n=e.l+t;e.l=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 yL(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=""+f.t+"",f.r=f.t),f}function ds(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 bl(e,t,r){var a=e.read_shift(r&&r.biff==2?1:2);return a===0?(e.l++,""):ds(e,a,r)}function ys(e,t,r){if(r.biff>5)return bl(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 wL(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function TL(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(Dr,"");return a&&(e.l+=24),n}function SL(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(Dr,"");return r+s}function EL(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return TL(e);case"0303000000000000c000000000000046":return SL(e);default:throw new Error("Unsupported Moniker "+r)}}function D0(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(Dr,""):"";return r}function CL(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=D0(e,r-e.l)),n&128&&(s=D0(e,r-e.l)),(n&257)===257&&(o=D0(e,r-e.l)),(n&257)===1&&(f=EL(e,r-e.l)),n&8&&(l=D0(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 _3(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 y3(e,t){var r=_3(e);return r[3]=0,r}function an(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 AL(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function DL(e,t,r){return t===0?"":ys(e,t,r)}function kL(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 w3(e){var t=e.read_shift(2),r=_1(e);return[t,r]}function bL(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=kl(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 Sc(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 T3(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 FL=T3;function S3(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 IL(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function ML(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function rr(e){e.l+=2,e.l+=e.read_shift(2)}var RL={0:rr,4:rr,5:rr,6:rr,7:ML,8:rr,9:rr,10:rr,11:rr,12:rr,13:IL,14:rr,15:rr,16:rr,17:rr,18:rr,19:rr,20:rr,21:S3};function PL(e,t){for(var r=e.l+t,a=[];e.l=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 LL(e,t){return t===0||e.read_shift(2),1200}function OL(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=ys(e,0,r);return e.read_shift(t+a-e.l),n}function BL(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 NL(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=kl(e,0,r);return s.length===0&&(s="Sheet1"),{pos:a,hs:n,dt:i,name:s}}function UL(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>15),n&=32767);var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function GL(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 $L(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function XL(){}function YL(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=kl(e,0,r),a}function KL(e){var t=an(e);return t.isst=e.read_shift(4),t}function ZL(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var a=e.l+t,n=an(e);r.biff==2&&e.l++;var i=bl(e,a-e.l,r);return n.val=i,n}function jL(e,t,r){var a=e.read_shift(2),n=ys(e,0,r);return[a,n]}var qL=ys;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 JL(e){var t=e.read_shift(2),r=e.read_shift(2),a=w3(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}function QL(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),i=[];e.l>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 rO(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=tO(e,t,a.fStyle,r),a}function aO(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=an(e);(r.biff==2||t==9)&&++e.l;var n=_L(e);return a.val=n,a.t=n===!0||n===!1?"b":"e",a}function nO(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var a=an(e),n=or(e);return a.val=n,a}var v_=DL;function iO(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=ds(e,i),o=[];a>e.l;)o.push(bl(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=bL(e,t-2,r)),i.body=n||e.read_shift(t-2),typeof n=="string"&&(i.Name=n),i}var sO=["_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=ds(e,s,r);n&32&&(l=sO[l.charCodeAt(0)]);var u=a-e.l;r&&r.biff==2&&--u;var c=a==e.l||o===0||!(u>0)?[]:VN(e,u,r,o);return{chKey:i,Name:l,itab:f,rgce:c}}function E3(e,t,r){if(r.biff<8)return oO(e,t,r);for(var a=[],n=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)a.push(kL(e,r.biff>8?12:6,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function oO(e,t,r){e[e.l+1]==3&&e[e.l]++;var a=kl(e,t,r);return a.charCodeAt(0)==3?a.slice(1):a}function fO(e,t,r){if(r.biff<8){e.l+=t;return}var a=e.read_shift(2),n=e.read_shift(2),i=ds(e,a,r),s=ds(e,n,r);return[i,s]}function lO(e,t,r){var a=T3(e);e.l++;var n=e.read_shift(1);return t-=8,[zN(e,t,r),n,a]}function m_(e,t,r){var a=FL(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,UN(e,t,r)]}function uO(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,a=e.read_shift(4);return[t,r,a]}function cO(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=ys(e,0,r);return r.biff<8&&e.read_shift(1),[{r:a,c:n},o,s,i]}}function hO(e,t,r){return cO(e,t,r)}function dO(e,t){for(var r=[],a=e.read_shift(2);a--;)r.push(Sc(e));return r}function vO(e,t,r){if(r&&r.biff<8)return gO(e,t,r);var a=S3(e),n=PL(e,t-22,a[1]);return{cmo:a,ft:n}}var pO={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 gO(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((pO[a]||hr)(e,t,r)),{cmo:[n,a,i],ft:s}}function mO(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=wL(e,6,r);var o=e.read_shift(2);e.read_shift(2),Ht(e,2);var f=e.read_shift(2);e.l+=f;for(var l=1;l=(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 xO(e,t){var r=Sc(e);e.l+=16;var a=CL(e,t-24);return[r,a]}function _O(e,t){e.read_shift(2);var r=Sc(e),a=e.read_shift((t-10)/2,"dbcs-cont");return a=a.replace(Dr,""),[r,a]}function yO(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 wO(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(y3(e));return r}function TO(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(y3(e));return r}function SO(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 C3(e,t,r){if(!r.cellStyles)return hr(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 EO(e,t){var r={};return t<32||(e.l+=16,r.header=or(e),r.footer=or(e),e.l+=2),r}function CO(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 AO=an,DO=x3,kO=bl;function bO(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 FO(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var a=an(e);++e.l;var n=ys(e,t-7,r);return a.t="str",a.val=n,a}function IO(e){var t=an(e);++e.l;var r=or(e);return t.t="n",t.val=r,t}function MO(e){var t=an(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function RO(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function PO(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function LO(e,t,r){var a=e.l+t,n=an(e),i=e.read_shift(2),s=ds(e,i,r);return e.l=a,n.t="str",n.val=s,n}var OO=[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=fi(1);switch(f.type){case"base64":u=Ea(jr(o));break;case"binary":u=Ea(o);break;case"buffer":case"array":u=o;break}jt(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={},k=Math.min(u.length,c==2?521:g-10-(d?264:0)),C=v?32:11;u.l0;){if(u[u.l]===42){u.l+=m;continue}for(++u.l,l[++w]=[],E=0,E=0;E!=_.length;++E){var S=u.slice(u.l,u.l+_[E].len);u.l+=_[E].len,jt(S,0);var D=fl.utils.decode(x,S);switch(_[E].type){case"C":D.trim().length&&(l[w][E]=D.replace(/\s+$/,""));break;case"D":D.length===8?l[w][E]=new Date(+D.slice(0,4),+D.slice(4,6)-1,+D.slice(6,8)):l[w][E]=D;break;case"F":l[w][E]=parseFloat(D.trim());break;case"+":case"I":l[w][E]=v?S.read_shift(-4,"i")^2147483648:S.read_shift(4,"i");break;case"L":switch(D.trim().toUpperCase()){case"Y":case"T":l[w][E]=!0;break;case"N":case"F":l[w][E]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+D+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+c.toString(16));l[w][E]="##MEMO##"+(v?parseInt(D.trim(),10):S.read_shift(4));break;case"N":D=D.replace(/\u0000/g,"").trim(),D&&D!="."&&(l[w][E]=+D||0);break;case"@":l[w][E]=new Date(S.read_shift(-8,"f")-621356832e5);break;case"T":l[w][E]=new Date((S.read_shift(4)-2440588)*864e5+S.read_shift(4));break;case"Y":l[w][E]=S.read_shift(4,"i")/1e4+S.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[w][E]=-S.read_shift(-8,"f");break;case"B":if(d&&_[E].len==8){l[w][E]=S.read_shift(8,"f");break}case"G":case"P":S.l+=_[E].len;break;case"0":if(_[E].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[E].type)}}}if(c!=2&&u.l=0&&Ca(+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;p250&&(S=250),E=((v[p]||{}).DBF||{}).type,E=="C"&&v[p].DBF.len>S&&(S=v[p].DBF.len),w=="B"&&E=="N"&&(w="N",C[p]=v[p].DBF.dec,S=v[p].DBF.len),k[p]=w=="C"||E=="N"?S:i[w]||0,x+=k[p],y[p]=w}var b=u.next(32);for(b.write_shift(4,318902576),b.write_shift(4,d.length),b.write_shift(2,296+32*m),b.write_shift(2,x),p=0;p<4;++p)b.write_shift(4,0);for(b.write_shift(4,0|(+t[E4]||3)<<8),p=0,g=0;p":190,"?":191,"{":223},t=new RegExp("\x1BN("+Qa(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(jr(h),d);case"binary":return i(h,d);case"buffer":return i(Qe&&Buffer.isBuffer(h)?h.toString("binary"):gs(h),d);case"array":return i(hs(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=[],k=null,C={},w=[],E=[],S=[],D=0,b;for(+d.codepage>=0&&Ca(+d.codepage);m!==v.length;++m){D=0;var F=v[m].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(t,r),B=F.replace(/;;/g,"\0").split(";").map(function(V){return V.replace(/\u0000/g,";")}),Y=B[0],Q;if(F.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":B[1].charAt(0)=="P"&&y.push(F.slice(3).replace(/;;/g,";"));break;case"C":var J=!1,q=!1,ce=!1,U=!1,ye=-1,pe=-1;for(x=1;x-1&&_[ye][pe];if(!H||!H[1])throw new Error("SYLK shared formula cannot find base");_[p][g][1]=L3(H[1],{r:p-ye,c:g-pe})}break;case"F":var z=0;for(x=1;x0?(w[p].hpt=D,w[p].hpx=vl(D)):D===0&&(w[p].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+F)}z<1&&(k=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+F)}}return w.length>0&&(C["!rows"]=w),E.length>0&&(C["!cols"]=E),d&&d.sheetRows&&(_=_.slice(0,d.sheetRows)),[_,C]}function s(h,d){var v=n(h,d),p=v[0],g=v[1],m=Eo(p,d);return Qa(g).forEach(function(x){m[x]=g[x]}),m}function o(h,d){return ci(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"+SB(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=zu(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=Wu(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*M3(v.hpx)+";"),g.length>2&&h.push(g+"R"+(p+1))})}function c(h,d){var v=["ID;PWXL;N;E"],p=[],g=Mt(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 k=g.s.c;k<=g.e.c;++k){var C=Ge({r:y,c:k});m=x?(h[y]||[])[k]:h[C],!(!m||m.v==null&&(!m.f||m.F))&&p.push(f(m,h,y,k))}return v.join(_)+_+p.join(_)+_+"E"+_}return{to_workbook:o,to_sheet:s,from_sheet:c}})(),NO=(function(){function e(i,s){switch(s.type){case"base64":return t(jr(i),s);case"binary":return t(i,s);case"buffer":return t(Qe&&Buffer.isBuffer(i)?i.toString("binary"):gs(i),s);case"array":return t(hs(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=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;d0&&D(),v["!ref"]=rt(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):Eo(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=jr(u);break;case"binary":h=u;break;case"buffer":c.codepage==65001?h=u.toString("utf8"):c.codepage&&typeof fl<"u"||(h=Qe&&Buffer.isBuffer(u)?u.toString("binary"):gs(u));break;case"array":h=hs(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=wt(h.slice(3)):c.type!="string"&&c.type!="buffer"&&c.codepage==65001?h=wt(h):c.type=="binary"&&typeof fl<"u",h.slice(0,19)=="socialcalc:version:"?UO.to_sheet(c.type=="string"?h:wt(h),c):s(h,c)}function f(u,c){return ci(o(u,c),c)}function l(u){for(var c=[],h=Mt(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=Ge({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 HO(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=BO.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 hl.to_workbook(e,t)}}var Lf=(function(){function e(M,H,z){if(M){jt(M,M.l||0);for(var V=z.Enum||ye;M.l=16&&M[14]==5&&M[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(M[2]==2)z.Enum=ye,e(M,function(K,ue,ve){switch(ve){case 0:z.vers=K,K>=4096&&(z.qpro=!0);break;case 6:T=K;break;case 204:K&&(xe=K);break;case 222:xe=K;break;case 15:case 51:z.qpro||(K[1].v=K[1].v.slice(1));case 13:case 14:case 16:ve==14&&(K[2]&112)==112&&(K[2]&15)>1&&(K[2]&15)<15&&(K[1].z=z.dateNF||Ke[14],z.cellDates&&(K[1].t="d",K[1].v=Tc(K[1].v))),z.qpro&&K[3]>de&&(V["!ref"]=rt(T),fe[ie]=V,oe.push(ie),V=z.dense?[]:{},T={s:{r:0,c:0},e:{r:0,c:0}},de=K[3],ie=xe||"Sheet"+(de+1),xe="");var me=z.dense?(V[K[0].r]||[])[K[0].c]:V[Ge(K[0])];if(me){me.t=K[1].t,me.v=K[1].v,K[1].z!=null&&(me.z=K[1].z),K[1].f!=null&&(me.f=K[1].f);break}z.dense?(V[K[0].r]||(V[K[0].r]=[]),V[K[0].r][K[0].c]=K[1]):V[Ge(K[0])]=K[1];break}},z);else if(M[2]==26||M[2]==14)z.Enum=pe,M[2]==14&&(z.qpro=!0,M.l=0),e(M,function(K,ue,ve){switch(ve){case 204:ie=K;break;case 22:K[1].v=K[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(K[3]>de&&(V["!ref"]=rt(T),fe[ie]=V,oe.push(ie),V=z.dense?[]:{},T={s:{r:0,c:0},e:{r:0,c:0}},de=K[3],ie="Sheet"+(de+1)),N>0&&K[0].r>=N)break;z.dense?(V[K[0].r]||(V[K[0].r]=[]),V[K[0].r][K[0].c]=K[1]):V[Ge(K[0])]=K[1],T.e.c=0&&Ca(+z.codepage),z.type=="string")throw new Error("Cannot write WK1 to JS string");var V=Cv(),ie=Mt(M["!ref"]),xe=Array.isArray(M),de=[];_a(V,0,i(1030)),_a(V,6,f(ie));for(var fe=Math.min(ie.e.r,8191),oe=ie.s.r;oe<=fe;++oe)for(var he=Jt(oe),T=ie.s.c;T<=ie.e.c;++T){oe===ie.s.r&&(de[T]=$t(T));var N=de[T]+he,W=xe?(M[oe]||[])[T]:M[N];if(!(!W||W.t=="z"))if(W.t=="n")(W.v|0)==W.v&&W.v>=-32768&&W.v<=32767?_a(V,13,d(oe,T,W.v)):_a(V,14,p(oe,T,W.v));else{var ee=En(W);_a(V,15,c(oe,T,ee.slice(0,239)))}}return _a(V,1),V.end()}function n(M,H){var z=H||{};if(+z.codepage>=0&&Ca(+z.codepage),z.type=="string")throw new Error("Cannot write WK3 to JS string");var V=Cv();_a(V,0,s(M));for(var ie=0,xe=0;ie8191&&(z=8191),H.write_shift(2,z),H.write_shift(1,ie),H.write_shift(1,V),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(1,1),H.write_shift(1,2),H.write_shift(4,0),H.write_shift(4,0),H}function o(M,H,z){var V={s:{c:0,r:0},e:{c:0,r:0}};return H==8&&z.qpro?(V.s.c=M.read_shift(1),M.l++,V.s.r=M.read_shift(2),V.e.c=M.read_shift(1),M.l++,V.e.r=M.read_shift(2),V):(V.s.c=M.read_shift(2),V.s.r=M.read_shift(2),H==12&&z.qpro&&(M.l+=2),V.e.c=M.read_shift(2),V.e.r=M.read_shift(2),H==12&&z.qpro&&(M.l+=2),V.s.c==65535&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}function f(M){var H=Wt(8);return H.write_shift(2,M.s.c),H.write_shift(2,M.s.r),H.write_shift(2,M.e.c),H.write_shift(2,M.e.r),H}function l(M,H,z){var V=[{c:0,r:0},{t:"n",v:0},0,0];return z.qpro&&z.vers!=20768?(V[0].c=M.read_shift(1),V[3]=M.read_shift(1),V[0].r=M.read_shift(2),M.l+=2):(V[2]=M.read_shift(1),V[0].c=M.read_shift(2),V[0].r=M.read_shift(2)),V}function u(M,H,z){var V=M.l+H,ie=l(M,H,z);if(ie[1].t="s",z.vers==20768){M.l++;var xe=M.read_shift(1);return ie[1].v=M.read_shift(xe,"utf8"),ie}return z.qpro&&M.l++,ie[1].v=M.read_shift(V-M.l,"cstr"),ie}function c(M,H,z){var V=Wt(7+z.length);V.write_shift(1,255),V.write_shift(2,H),V.write_shift(2,M),V.write_shift(1,39);for(var ie=0;ie=128?95:xe)}return V.write_shift(1,0),V}function h(M,H,z){var V=l(M,H,z);return V[1].v=M.read_shift(2,"i"),V}function d(M,H,z){var V=Wt(7);return V.write_shift(1,255),V.write_shift(2,H),V.write_shift(2,M),V.write_shift(2,z,"i"),V}function v(M,H,z){var V=l(M,H,z);return V[1].v=M.read_shift(8,"f"),V}function p(M,H,z){var V=Wt(13);return V.write_shift(1,255),V.write_shift(2,H),V.write_shift(2,M),V.write_shift(8,z,"f"),V}function g(M,H,z){var V=M.l+H,ie=l(M,H,z);if(ie[1].v=M.read_shift(8,"f"),z.qpro)M.l=V;else{var xe=M.read_shift(2);y(M.slice(M.l,M.l+xe),ie),M.l+=xe}return ie}function m(M,H,z){var V=H&32768;return H&=-32769,H=(V?M:0)+(H>=8192?H-16384:H),(V?"":"$")+(z?$t(H):Jt(H))}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(M,H){jt(M,0);for(var z=[],V=0,ie="",xe="",de="",fe="";M.lz.length){console.error("WK1 bad formula parse 0x"+oe.toString(16)+":|"+z.join("|")+"|");return}var W=z.slice(-V);z.length-=V,z.push(x[oe][0]+"("+W.join(",")+")")}else return oe<=7?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=24?console.error("WK1 unsupported op "+oe.toString(16)):oe<=30?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=115?console.error("WK1 unsupported function opcode "+oe.toString(16)):console.error("WK1 unrecognized opcode "+oe.toString(16))}}z.length==1?H[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")}function k(M){var H=[{c:0,r:0},{t:"n",v:0},0];return H[0].r=M.read_shift(2),H[3]=M[M.l++],H[0].c=M[M.l++],H}function C(M,H){var z=k(M);return z[1].t="s",z[1].v=M.read_shift(H-4,"cstr"),z}function w(M,H,z,V){var ie=Wt(6+V.length);ie.write_shift(2,M),ie.write_shift(1,z),ie.write_shift(1,H),ie.write_shift(1,39);for(var xe=0;xe=128?95:de)}return ie.write_shift(1,0),ie}function E(M,H){var z=k(M);z[1].v=M.read_shift(2);var V=z[1].v>>1;if(z[1].v&1)switch(V&7){case 0:V=(V>>3)*5e3;break;case 1:V=(V>>3)*500;break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64;break}return z[1].v=V,z}function S(M,H){var z=k(M),V=M.read_shift(4),ie=M.read_shift(4),xe=M.read_shift(2);if(xe==65535)return V===0&&ie===3221225472?(z[1].t="e",z[1].v=15):V===0&&ie===3489660928?(z[1].t="e",z[1].v=42):z[1].v=0,z;var de=xe&32768;return xe=(xe&32767)-16446,z[1].v=(1-de*2)*(ie*Math.pow(2,xe+32)+V*Math.pow(2,xe)),z}function D(M,H,z,V){var ie=Wt(14);if(ie.write_shift(2,M),ie.write_shift(1,z),ie.write_shift(1,H),V==0)return ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(2,65535),ie;var xe=0,de=0,fe=0,oe=0;return V<0&&(xe=1,V=-V),de=Math.log2(V)|0,V/=Math.pow(2,de-31),oe=V>>>0,(oe&2147483648)==0&&(V/=2,++de,oe=V>>>0),V-=oe,oe|=2147483648,oe>>>=0,V*=Math.pow(2,32),fe=V>>>0,ie.write_shift(4,fe),ie.write_shift(4,oe),de+=16383+(xe?32768:0),ie.write_shift(2,de),ie}function b(M,H){var z=S(M);return M.l+=H-14,z}function F(M,H){var z=k(M),V=M.read_shift(4);return z[1].v=V>>6,z}function B(M,H){var z=k(M),V=M.read_shift(8,"f");return z[1].v=V,z}function Y(M,H){var z=B(M);return M.l+=H-10,z}function Q(M,H){return M[M.l+H-1]==0?M.read_shift(H,"cstr"):""}function J(M,H){var z=M[M.l++];z>H-1&&(z=H-1);for(var V="";V.length127?95:ie}return z[z.l++]=0,z}var ye={0:{n:"BOF",f:Ht},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:Q},222:{n:"SHEETNAMELP",f:J},65535:{n:""}},pe={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:C},23:{n:"NUMBER17",f:S},24:{n:"NUMBER18",f:E},25:{n:"FORMULA19",f:b},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ce},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:F},38:{n:"??"},39:{n:"NUMBER27",f:B},40:{n:"FORMULA28",f:Y},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:Q},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 VO(e){var t={},r=e.match(dr),a=0,n=!1;if(r)for(;a!=r.length;++a){var i=Ve(r[a]);switch(i[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":n=!1;break;default:if(i[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+i[0])}}return t}var zO=(function(){var e=ul("t"),t=ul("rPr");function r(i){var s=i.match(e);if(!s)return{t:"s",v:""};var o={t:"s",v:it(s[1])},f=i.match(t);return f&&(o.s=VO(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})}})(),WO=(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(''),n.b&&(i.push(""),s.push("")),n.i&&(i.push(""),s.push("")),n.strike&&(i.push(""),s.push(""));var f=n.valign||"";return f=="superscript"||f=="super"?f="sup":f=="subscript"&&(f="sub"),f!=""&&(i.push("<"+f+">"),s.push("")),s.push(""),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,"
")+i[2].join("")):""}return function(i){return i.map(a).join("")}})(),GO=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,$O=/<(?:\w+:)?r>/,XO=/<(?:\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=it(wt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=wt(e),r&&(a.h=h1(a.t))):e.match($O)&&(a.r=wt(e),a.t=it(wt((e.replace(XO,"").match(GO)||[]).join("").replace(dr,""))),r&&(a.h=WO(zO(a.r)))),a):{t:""}}var YO=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,KO=/<(?:\w+:)?(?:si|sstItem)>/g,ZO=/<\/(?:\w+:)?(?:si|sstItem)>/;function jO(e,t){var r=[],a="";if(!e)return r;var n=e.match(YO);if(n){a=n[2].replace(KO,"").split(ZO);for(var i=0;i!=a.length;++i){var s=T1(a[i].trim(),t);s!=null&&(r[r.length]=s)}n=Ve(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}function qO(e){return[e.read_shift(4),e.read_shift(4)]}function JO(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 A3(e){for(var t=[],r=e.split(""),a=0;a=4&&(e.l+=t-4),r}function QO(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 e9(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 t9(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e9(e));return t}function r9(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 a9(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 n9(e){var t=a9(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 D3(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 k3(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 i9(e){var t=_n(e);switch(t.Minor){case 2:return[t.Minor,s9(e)];case 3:return[t.Minor,o9()];case 4:return[t.Minor,f9(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function s9(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),a=D3(e,r),n=k3(e,e.length-e.l);return{t:"Std",h:a,v:n}}function o9(){throw new Error("File is password-protected: ECMA-376 Extensible")}function f9(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(dr,function(i){var s=Ve(i);switch(rn(s[0])){case"":break;case"":case"":break;case"":break;case"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=D3(e,n),t-=n,r.EncryptionVerifier=k3(e,t),r}function u9(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 c9(e){var t=0,r,a=A3(e),n=a.length+1,i,s,o,f,l;for(r=fi(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 b3=(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=A3(s),f=i(o),l=o.length,u=fi(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}})(),h9=function(e,t,r,a,n){n||(n=t),a||(a=b3(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]},d9=function(e){var t=0,r=b3(e);return function(a){var n=h9("",a,t,r);return t=n[1],n[0]}};function v9(e,t,r,a){var n={key:Ht(e),verificationBytes:Ht(e)};return r.password&&(n.verifier=c9(r.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=d9(r.password)),n}function p9(e,t,r){var a=r||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=u9(e):a.Data=l9(e,t),a}function g9(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?p9(e,t-2,a):v9(e,r.biff>=8?t:t-2,r,a),a}var m9=(function(){function e(n,i){switch(i.type){case"base64":return t(jr(n),i);case"binary":return t(n,i);case"buffer":return t(Qe&&Buffer.isBuffer(n)?n.toString("binary"):gs(n),i);case"array":return t(hs(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[Ge({r:c,c:p})]=m}break}d=h.lastIndex}p>l.e.c&&(l.e.c=p)}),o["!ref"]=rt(l),o}function r(n,i){return ci(e(n,i),i)}function a(n){for(var i=["{\\rtf1\\ansi"],s=Mt(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=Ge({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 x9(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 dl(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 _9(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 y9(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 Vu(e,t){if(t===0)return e;var r=_9(x9(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),dl(y9(r))}var F3=6,w9=15,T9=1,Tr=F3;function zu(e){return Math.floor((e+Math.round(128/Tr)/256)*Tr)}function Wu(e){return Math.floor((e-5)/Tr*100+.5)/100}function bv(e){return Math.round((e*Tr+5)/Tr*256)/256}function od(e){return bv(Wu(zu(e)))}function S1(e){var t=Math.abs(e-od(e)),r=Tr;if(t>.005)for(Tr=T9;Tr":case"":break;case"":case"":n={},o.diagonalUp&&(n.diagonalUp=Ct(o.diagonalUp)),o.diagonalDown&&(n.diagonalDown=Ct(o.diagonalDown)),t.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+o[0]+" in borders")}})}function A9(e,t,r,a){t.Fills=[];var n={},i=!1;(e[0].match(dr)||[]).forEach(function(s){var o=Ve(s);switch(rn(o[0])){case"":case"":break;case"":case"":n={},t.Fills.push(n);break;case"":break;case"":break;case"":t.Fills.push(n),n={};break;case"":o.patternType&&(n.patternType=o.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fills")}})}function D9(e,t,r,a){t.Fonts=[];var n={},i=!1;(e[0].match(dr)||[]).forEach(function(s){var o=Ve(s);switch(rn(o[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(n),n={};break;case"":case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fonts")}})}function k9(e,t,r){t.NumberFmt=[];for(var a=Qa(Ke),n=0;n":case"":case"":break;case"0){if(f>392){for(f=392;f>60&&t.NumberFmt[f]!=null;--f);t.NumberFmt[f]=o}ss(o,f)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}var b0=["numFmtId","fillId","fontId","borderId","xfId"],F0=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function b9(e,t,r){t.CellXf=[];var a,n=!1;(e[0].match(dr)||[]).forEach(function(i){var s=Ve(i),o=0;switch(rn(s[0])){case"":case"":case"":break;case"":for(a=s,delete a[0],o=0;o392){for(o=392;o>60;--o)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[o]){a.numFmtId=o;break}}t.CellXf.push(a);break;case"":break;case"":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=Ct(s.wrapText)),a.alignment=f;break;case"":break;case"":case"":break;case"":n=!1;break;case"":case"":break;case"":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}var F9=(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(//mg,"").replace(//gm,"");var c;return(c=o.match(t))&&k9(c,u,l),(c=o.match(n))&&D9(c,u,f,l),(c=o.match(a))&&A9(c,u,f,l),(c=o.match(i))&&C9(c,u,f,l),(c=o.match(r))&&b9(c,u,l),u}})();function I9(e,t){var r=e.read_shift(2),a=cr(e);return[r,a]}function M9(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=z7(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=V7(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=cr(e),a}var R9=hr;function P9(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 L9=hr;function O9(e,t,r){var a={};a.NumberFmt=[];for(var n in Ke)a.NumberFmt[n]=Ke[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],ss(f[1],f[0]);break;case 43:a.Fonts.push(f),f.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(f.color.rgb=Vu(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 B9=["","","","","","","","","","","",""];function N9(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(dr)||[]).forEach(function(n){var i=Ve(n);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[B9.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 U9(){}function H9(){}var V9=/]*)>[\s\S]*<\/a:clrScheme>/,z9=/]*)>[\s\S]*<\/a:fontScheme>/,W9=/]*)>[\s\S]*<\/a:fmtScheme>/;function G9(e,t,r){t.themeElements={};var a;[["clrScheme",V9,N9],["fontScheme",z9,U9],["fmtScheme",W9,H9]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)})}var $9=/]*)>[\s\S]*<\/a:themeElements>/;function R3(e,t){(!e||e.length===0)&&(e=X9());var r,a={};if(!(r=e.match($9)))throw new Error("themeElements not found in theme");return G9(r[0],a,t),a.raw=e,a}function X9(e,t){var r=[G4];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Y9(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=W4(i,{type:"array"})}catch{return}var o=$r(s,"theme/theme/theme1.xml",!0);if(o)return R3(o,r)}}function K9(e){return e.read_shift(4)}function Z9(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=j9(e,4);break;case 2:t.xclrValue=_3(e);break;case 3:t.xclrValue=K9(e);break;case 4:e.l+=4;break}return e.l+=8,t}function j9(e,t){return hr(e,t)}function q9(e,t){return hr(e,t)}function J9(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]=Z9(e);break;case 6:a[1]=q9(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 Q9(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(J9(e,r-e.l));return{ixfe:a,ext:i}}function eB(e,t){t.forEach(function(r){r[0]})}function tB(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:cr(e)}}function rB(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function aB(e){return e.l+=4,e.read_shift(4)!=0}function nB(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 iB(e,t,r){var a={Types:[],Cell:[],Value:[]};if(!e)return a;var n=!1,i=2,s;return e.replace(dr,function(o){var f=Ve(o);switch(rn(f[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":n=!1;break;case"":case"":break;case"]*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=Er(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=Mt(e["!ref"]||"BDWGO1000001:A1");f.s.r>o.r&&(f.s.r=o.r),f.e.ro.c&&(f.s.c=o.c),f.e.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/))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=Ve(o[0]),l={author:f.authorId&&r[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},u=Er(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==""&&(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 hB(e,t){var r=[],a=!1,n={},i=0;return e.replace(dr,function(o,f){var l=Ve(o);switch(rn(l[0])){case"":break;case"":n.t!=null&&r.push(n);break;case"":case"":n.t=e.slice(i,f).replace(/\r\n/g,` +`).replace(/\r/g,` +`);break;case"":a=!0;break;case"":a=!1;break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return o}),r}function dB(e,t){var r=[],a=!1;return e.replace(dr,function(i){var s=Ve(i);switch(rn(s[0])){case"":break;case"":break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function vB(e){var t={};t.iauthor=e.read_shift(4);var r=xs(e);return t.rfx=r.s,t.ref=Ge(r.s),e.l+=16,t}var pB=cr;function gB(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 mB="application/vnd.ms-office.vbaProject";function xB(e){var t=tt.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*/,"");tt.utils.cfb_add(t,n,e.FileIndex[a].content)}}),tt.write(t)}function _B(){return{"!type":"dialog"}}function yB(){return{"!type":"dialog"}}function wB(){return{"!type":"macro"}}function TB(){return{"!type":"macro"}}var fo=(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?"":"$")+$t(u)+(f?"":"$")+Jt(l)}return function(n,i){return t=i,n.replace(e,r)}})(),P3=/(^|[^._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,SB=(function(){return function(t,r){return t.replace(P3,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 L3(e,t){return e.replace(P3,function(r,a,n,i,s,o){return a+(n=="$"?n+i:$t(g1(i)+t.c))+(s=="$"?s+o:Jt(p1(o)+t.r))})}function EB(e,t,r){var a=So(t),n=a.s,i=Er(r),s={r:i.r-n.r,c:i.c-n.c};return L3(e,s)}function CB(e){return e.length!=1}function y_(e){return e.replace(/_xlfn\./g,"")}function Nt(e){e.l+=1}function li(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function O3(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return B3(e);r.biff==12&&(a=4)}var n=e.read_shift(a),i=e.read_shift(a),s=li(e),o=li(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 B3(e){var t=li(e),r=li(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 AB(e,t,r){if(r.biff<8)return B3(e);var a=e.read_shift(r.biff==12?4:2),n=e.read_shift(r.biff==12?4:2),i=li(e),s=li(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 N3(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return DB(e);var a=e.read_shift(r&&r.biff==12?4:2),n=li(e);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function DB(e){var t=li(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function kB(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 bB(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return FB(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 FB(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 IB(e,t,r){var a=(e[e.l++]&96)>>5,n=O3(e,r.biff>=2&&r.biff<=5?6:8,r);return[a,n]}function MB(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=O3(e,i,r);return[a,n,s]}function RB(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 PB(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 LB(e,t,r){var a=(e[e.l++]&96)>>5,n=AB(e,t-1,r);return[a,n]}function OB(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 BB(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 NB(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 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){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function VB(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[a]}function U3(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function zB(e){return e.read_shift(2),U3(e)}function WB(e){return e.read_shift(2),U3(e)}function GB(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=N3(e,0,r);return[a,n]}function $B(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=bB(e,0,r);return[a,n]}function XB(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=N3(e,0,r);return[a,n,i]}function YB(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[KN[n],z3[n],a]}function KB(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)]:ZB(e);return[n,(i[0]===0?z3:YN)[i[1]]]}function ZB(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function jB(e,t,r){e.l+=r&&r.biff==2?3:4}function qB(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 JB(e){return e.l++,_s[e.read_shift(1)]}function QB(e){return e.l++,e.read_shift(2)}function eN(e){return e.l++,e.read_shift(1)!==0}function tN(e){return e.l++,or(e)}function rN(e,t,r){return e.l++,kl(e,t-1,r)}function aN(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]=Rt(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=_s[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=or(e);break;case 2:r[1]=ys(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function nN(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?xs:Sc)(e));return n}function iN(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]=aN(e,r.biff);return s}function sN(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 oN(e,t,r){if(r.biff==5)return fN(e);var a=e.read_shift(1)>>>5&3,n=e.read_shift(2),i=e.read_shift(4);return[a,n,i]}function fN(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 lN(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 uN(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 cN(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 hN(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 dN=hr,vN=hr,pN=hr;function Fl(e,t,r){return e.l+=2,[kB(e)]}function E1(e){return e.l+=6,[]}var gN=Fl,mN=E1,xN=E1,_N=Fl;function H3(e){return e.l+=2,[Ht(e),e.read_shift(2)&1]}var yN=Fl,wN=H3,TN=E1,SN=Fl,EN=Fl,CN=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function AN(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=CN[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:a,c:n,C:i}}function DN(e){return e.l+=2,[e.read_shift(4)]}function kN(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function bN(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function FN(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function IN(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function MN(e){return e.l+=4,[0,0]}var T_={1:{n:"PtgExp",f:qB},2:{n:"PtgTbl",f:pN},3:{n:"PtgAdd",f:Nt},4:{n:"PtgSub",f:Nt},5:{n:"PtgMul",f:Nt},6:{n:"PtgDiv",f:Nt},7:{n:"PtgPower",f:Nt},8:{n:"PtgConcat",f:Nt},9:{n:"PtgLt",f:Nt},10:{n:"PtgLe",f:Nt},11:{n:"PtgEq",f:Nt},12:{n:"PtgGe",f:Nt},13:{n:"PtgGt",f:Nt},14:{n:"PtgNe",f:Nt},15:{n:"PtgIsect",f:Nt},16:{n:"PtgUnion",f:Nt},17:{n:"PtgRange",f:Nt},18:{n:"PtgUplus",f:Nt},19:{n:"PtgUminus",f:Nt},20:{n:"PtgPercent",f:Nt},21:{n:"PtgParen",f:Nt},22:{n:"PtgMissArg",f:Nt},23:{n:"PtgStr",f:rN},26:{n:"PtgSheet",f:kN},27:{n:"PtgEndSheet",f:bN},28:{n:"PtgErr",f:JB},29:{n:"PtgBool",f:eN},30:{n:"PtgInt",f:QB},31:{n:"PtgNum",f:tN},32:{n:"PtgArray",f:OB},33:{n:"PtgFunc",f:YB},34:{n:"PtgFuncVar",f:KB},35:{n:"PtgName",f:sN},36:{n:"PtgRef",f:GB},37:{n:"PtgArea",f:IB},38:{n:"PtgMemArea",f:lN},39:{n:"PtgMemErr",f:dN},40:{n:"PtgMemNoMem",f:vN},41:{n:"PtgMemFunc",f:uN},42:{n:"PtgRefErr",f:cN},43:{n:"PtgAreaErr",f:RB},44:{n:"PtgRefN",f:$B},45:{n:"PtgAreaN",f:LB},46:{n:"PtgMemAreaN",f:FN},47:{n:"PtgMemNoMemN",f:IN},57:{n:"PtgNameX",f:oN},58:{n:"PtgRef3d",f:XB},59:{n:"PtgArea3d",f:MB},60:{n:"PtgRefErr3d",f:hN},61:{n:"PtgAreaErr3d",f:PB},255:{}},RN={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},PN={1:{n:"PtgElfLel",f:H3},2:{n:"PtgElfRw",f:SN},3:{n:"PtgElfCol",f:gN},6:{n:"PtgElfRwV",f:EN},7:{n:"PtgElfColV",f:_N},10:{n:"PtgElfRadical",f:yN},11:{n:"PtgElfRadicalS",f:TN},13:{n:"PtgElfColS",f:mN},15:{n:"PtgElfColSV",f:xN},16:{n:"PtgElfRadicalLel",f:wN},25:{n:"PtgList",f:AN},29:{n:"PtgSxName",f:DN},255:{}},LN={0:{n:"PtgAttrNoop",f:MN},1:{n:"PtgAttrSemi",f:VB},2:{n:"PtgAttrIf",f:UB},4:{n:"PtgAttrChoose",f:BB},8:{n:"PtgAttrGoto",f:NB},16:{n:"PtgAttrSum",f:jB},32:{n:"PtgAttrBaxcel",f:w_},33:{n:"PtgAttrBaxcel",f:w_},64:{n:"PtgAttrSpace",f:zB},65:{n:"PtgAttrSpaceSemi",f:WB},128:{n:"PtgAttrIfError",f:HB},255:{}};function Il(e,t,r,a){if(a.biff<8)return hr(e,t);for(var n=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=iN(e,0,a),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=nN(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(hr(e,t)),i}function Ml(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_[RN[i]],(i===24||i===25)&&(n=(i===24?PN:LN)[e[e.l+1]]),!n||!n.f?hr(e,t):s.push([n.n,n.f(e,t,r)]);return s}function ON(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function NN(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 V3(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=V3(e,t,r);return a=="#REF"?a:NN(a,r)}function ir(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=0){switch(e[0][p][1][0]){case 0:g=Ft(" ",e[0][p][1][1]);break;case 1:g=Ft("\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+BN[_[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=If(_[1][1],s,n),o.push(Mf(u,i));break;case"PtgRefN":u=r?If(_[1][1],r,n):_[1][1],o.push(Mf(u,i));break;case"PtgRef3d":c=_[1][1],u=If(_[1][2],s,n),v=S_(a,c,n),o.push(v+"!"+Mf(u,i));break;case"PtgFunc":case"PtgFuncVar":var y=_[1][0],k=_[1][1];y||(y=0),y&=127;var C=y==0?[]:o.slice(-y);o.length-=y,k==="User"&&(k=C.shift()),o.push(k+"("+C.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 w=(a.names||[])[h-1]||(a[0]||[])[h],E=w?w.Name:"SH33TJSNAME"+String(h);E&&E.slice(0,6)=="_xlfn."&&!n.xlfn&&(E=E.slice(6)),o.push(E);break;case"PtgNameX":var S=_[1][1];h=_[1][2];var D;if(n.biff<=5)S<0&&(S=-S),a[S]&&(D=a[S][h]);else{var b="";if(((a[S]||[])[0]||[])[0]==14849||(((a[S]||[])[0]||[])[0]==1025?a[S][h]&&a[S][h].itab>0&&(b=a.SheetNames[a[S][h].itab-1]+"!"):b=a.SheetNames[h-1]+"!"),a[S]&&a[S][h])b+=a[S][h].Name;else if(a[0]&&a[0][h])b+=a[0][h].Name;else{var F=(V3(a,S,n)||"").split(";;");F[h-1]?b=F[h-1]:b+="SH33TJSERRX"}o.push(b);break}D||(D={Name:"SH33TJSERRY"}),o.push(D.Name);break;case"PtgParen":var B="(",Y=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:B=Ft(" ",e[0][p][1][1])+B;break;case 3:B=Ft("\r",e[0][p][1][1])+B;break;case 4:Y=Ft(" ",e[0][p][1][1])+Y;break;case 5:Y=Ft("\r",e[0][p][1][1])+Y;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}o.push(B+o.pop()+Y);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":u={c:_[1][1],r:_[1][0]};var Q={c:r.c,r:r.r};if(a.sharedf[Ge(u)]){var J=a.sharedf[Ge(u)];o.push(ir(J,s,Q,a,n))}else{var q=!1;for(f=0;f!=a.arrayf.length;++f)if(l=a.arrayf[f],!(u.cl[0].e.c)&&!(u.rl[0].e.r)){o.push(ir(l[1],s,Q,a,n)),q=!0;break}q||o.push(_[1])}break;case"PtgArray":o.push("{"+ON(_[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 ce=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&p>=0&&ce.indexOf(e[0][m][0])==-1){_=e[0][p];var U=!0;switch(_[1][0]){case 4:U=!1;case 0:g=Ft(" ",_[1][1]);break;case 5:U=!1;case 1:g=Ft("\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 UN(e,t,r){var a=e.l+t,n=r.biff==2?1:2,i,s=e.read_shift(n);if(s==65535)return[[],hr(e,t-2)];var o=Ml(e,s,r);return t!==s+n&&(i=Il(e,t-s-n,o,r)),e.l=a,[o,i]}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[[],hr(e,t-2)];var o=Ml(e,s,r);return t!==s+n&&(i=Il(e,t-s-n,o,r)),e.l=a,[o,i]}function VN(e,t,r,a){var n=e.l+t,i=Ml(e,a,r),s;return n!==e.l&&(s=Il(e,n-e.l,i,r)),[i,s]}function zN(e,t,r){var a=e.l+t,n,i=e.read_shift(2),s=Ml(e,i,r);return i==65535?[[],hr(e,t-2)]:(t!==i+2&&(n=Il(e,a-i-2,s,r)),[s,n])}function WN(e){var t;if(pn(e,e.l+6)!==65535)return[or(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=an(e);r.biff==2&&++e.l;var i=WN(e),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=HN(e,a-e.l,r);return{cell:n,val:i[0],formula:o,shared:s>>3&1,tt:i[1]}}function Ec(e,t,r){var a=e.read_shift(4),n=Ml(e,a,r),i=e.read_shift(4),s=i>0?Il(e,i,n,r):null;return[n,s]}var GN=Ec,Cc=Ec,$N=Ec,XN=Ec,YN={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"},z3={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"},KN={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 Of={},lo={};function Bf(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 W3(e,t,r,a,n,i){try{a.cellNF&&(e.z=Ke[t])}catch(o){if(a.WTF)throw o}if(!(e.t==="z"&&!a.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Kt(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(Ke[t]==null&&ss(ZP[t]||"General",t),e.t==="e")e.w=e.w||_s[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=ll(e.v);else if(e.t==="d"){var s=kr(e.v);(s|0)===s?e.w=s.toString(10):e.w=ll(s)}else{if(e.v===void 0)return"";e.w=cs(e.v,lo)}else e.t==="d"?e.w=da(t,kr(e.v),lo):e.w=da(t,e.v,lo)}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=Vu(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=Vu(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 ZN(e,t){var r=Mt(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=rt(r))}var jN=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,qN=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,JN=/<(?:\w:)?hyperlink [^>]*>/mg,QN=/"(\w*:\w*)"/,eU=/<(?:\w:)?col\b[^>]*[\/]?>/g,tU=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,rU=/<(?:\w:)?pageMargins[^>]*\/>/g,G3=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,aU=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,nU=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function iU(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(qN);c?(l=e.slice(0,c.index),u=e.slice(c.index+c[0].length)):l=u=e;var h=l.match(G3);h?C1(h[0],o,n,r):(h=l.match(aU))&&sU(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(QN);v&&ZN(o,v[1])}var p=l.match(nU);p&&p[1]&&hU(p[1],n);var g=[];if(t.cellStyles){var m=l.match(eU);m&&lU(g,m)}c&&dU(c[1],o,t,f,i,s);var x=u.match(tU);x&&(o["!autofilter"]=uU(x[0]));var _=[],y=u.match(jN);if(y)for(d=0;d!=y.length;++d)_[d]=Mt(y[d].slice(y[d].indexOf('"')+1));var k=u.match(JN);k&&oU(o,k,a);var C=u.match(rU);if(C&&(o["!margins"]=fU(Ve(C[0]))),!o["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r&&(o["!ref"]=rt(f)),t.sheetRows>0&&o["!ref"]){var w=Mt(o["!ref"]);t.sheetRows<=+w.e.r&&(w.e.r=t.sheetRows-1,w.e.r>f.e.r&&(w.e.r=f.e.r),w.e.rf.e.c&&(w.e.c=f.e.c),w.e.c0&&(o["!cols"]=g),_.length>0&&(o["!merges"]=_),o}function C1(e,t,r,a){var n=Ve(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=it(wt(n.codeName)))}function sU(e,t,r,a,n){C1(e.slice(0,e.indexOf(">")),r,a,n)}function oU(e,t,r){for(var a=Array.isArray(e),n=0;n!=t.length;++n){var i=Ve(wt(t[n]),!0);if(!i.ref)return;var s=((r||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+it(i.location))):(i.Target="#"+it(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var o=Mt(i.ref),f=o.s.r;f<=o.e.r;++f)for(var l=o.s.c;l<=o.e.c;++l){var u=Ge({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 fU(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function lU(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=Ve(t[a],!0);n.hidden&&(n.hidden=Ct(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)),po(n);i<=s;)e[i++]=qt(n)}}function uU(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var cU=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function hU(e,t){t.Views||(t.Views=[{}]),(e.match(cU)||[]).forEach(function(r,a){var n=Ve(r);t.Views[a]||(t.Views[a]={}),+n.zoomScale&&(t.Views[a].zoom=+n.zoomScale),Ct(n.rightToLeft)&&(t.Views[a].RTL=!0)})}var dU=(function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,i=ul("v"),s=ul("f");return function(f,l,u,c,h,d){for(var v=0,p="",g=[],m=[],x=0,_=0,y=0,k="",C,w,E=0,S=0,D,b,F=0,B=0,Y=Array.isArray(d.CellXf),Q,J=[],q=[],ce=Array.isArray(l),U=[],ye={},pe=!1,M=!!u.sheetStubs,H=f.split(t),z=0,V=H.length;z!=V;++z){p=H[z].trim();var ie=p.length;if(ie!==0){var xe=0;e:for(v=0;v":if(p[v-1]!="/"){++v;break e}if(u&&u.cellStyles){if(w=Ve(p.slice(xe,v),!0),E=w.r!=null?parseInt(w.r,10):E+1,S=-1,u.sheetRows&&u.sheetRows=v)break;if(w=Ve(p.slice(xe,v),!0),E=w.r!=null?parseInt(w.r,10):E+1,S=-1,!(u.sheetRows&&u.sheetRowsE-1&&(c.s.r=E-1),c.e.r":"")+p,m!=null&&m.length===2){for(x=0,k=m[1],_=0;_!=k.length&&!((y=k.charCodeAt(_)-64)<1||y>26);++_)x=26*x+y;--x,S=x}else++S;for(_=0;_!=p.length&&p.charCodeAt(_)!==62;++_);if(++_,w=Ve(p.slice(0,_),!0),w.r||(w.r=Ge({r:E-1,c:S})),k=p.slice(_),C={t:""},(m=k.match(i))!=null&&m[1]!==""&&(C.v=it(m[1])),u.cellFormula){if((m=k.match(s))!=null&&m[1]!==""){if(C.f=it(wt(m[1])).replace(/\r\n/g,` +`),u.xlfn||(C.f=y_(C.f)),m[0].indexOf('t="array"')>-1)C.F=(k.match(n)||[])[1],C.F.indexOf(":")>-1&&J.push([Mt(C.F),C.F]);else if(m[0].indexOf('t="shared"')>-1){b=Ve(m[0]);var fe=it(wt(m[1]));u.xlfn||(fe=y_(fe)),q[parseInt(b.si,10)]=[b,fe,w.r]}}else(m=k.match(/]*\/>/))&&(b=Ve(m[0]),q[b.si]&&(C.f=EB(q[b.si][1],q[b.si][2],w.r)));var oe=Er(w.r);for(_=0;_=J[_][0].s.r&&oe.r<=J[_][0].e.r&&oe.c>=J[_][0].s.c&&oe.c<=J[_][0].e.c&&(C.F=J[_][1])}if(w.t==null&&C.v===void 0)if(C.f||C.F)C.v=0,C.t="n";else if(M)C.t="z";else continue;else C.t=w.t||"n";switch(c.s.c>S&&(c.s.c=S),c.e.c"u"){if(!M)continue;C.t="z"}else D=Of[parseInt(C.v,10)],C.v=D.t,C.r=D.r,u.cellHTML&&(C.h=D.h);break;case"str":C.t="s",C.v=C.v!=null?wt(C.v):"",u.cellHTML&&(C.h=h1(C.v));break;case"inlineStr":m=k.match(a),C.t="s",m!=null&&(D=T1(m[1]))?(C.v=D.t,u.cellHTML&&(C.h=D.h)):C.v="";break;case"b":C.v=Ct(C.v);break;case"d":u.cellDates?C.v=Kt(C.v,1):(C.v=kr(Kt(C.v,1)),C.t="n");break;case"e":(!u||u.cellText!==!1)&&(C.w=C.v),C.v=c3[C.v];break}if(F=B=0,Q=null,Y&&w.s!==void 0&&(Q=d.CellXf[w.s],Q!=null&&(Q.numFmtId!=null&&(F=Q.numFmtId),u.cellStyles&&Q.fillId!=null&&(B=Q.fillId))),W3(C,F,B,u,h,d),u.cellDates&&Y&&C.t=="n"&&To(Ke[F])&&(C.t="d",C.v=Tc(C.v)),w.cm&&u.xlmeta){var he=(u.xlmeta.Cell||[])[+w.cm-1];he&&he.type=="XLDAPR"&&(C.D=!0)}if(ce){var T=Er(w.r);l[T.r]||(l[T.r]=[]),l[T.r][T.c]=C}else l[w.r]=C}}}}U.length>0&&(l["!rows"]=U)}})();function vU(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 pU=xs;function gU(){}function mU(e,t){var r={},a=e[e.l];return++e.l,r.above=!(a&64),r.left=!(a&128),e.l+=18,r.name=U7(e),r}function xU(e){var t=pa(e);return[t]}function _U(e){var t=ms(e);return[t]}function yU(e){var t=pa(e),r=e.read_shift(1);return[t,r,"b"]}function wU(e){var t=ms(e),r=e.read_shift(1);return[t,r,"b"]}function TU(e){var t=pa(e),r=e.read_shift(1);return[t,r,"e"]}function SU(e){var t=ms(e),r=e.read_shift(1);return[t,r,"e"]}function EU(e){var t=pa(e),r=e.read_shift(4);return[t,r,"s"]}function CU(e){var t=ms(e),r=e.read_shift(4);return[t,r,"s"]}function AU(e){var t=pa(e),r=or(e);return[t,r,"n"]}function $3(e){var t=ms(e),r=or(e);return[t,r,"n"]}function DU(e){var t=pa(e),r=_1(e);return[t,r,"n"]}function kU(e){var t=ms(e),r=_1(e);return[t,r,"n"]}function bU(e){var t=pa(e),r=m1(e);return[t,r,"is"]}function FU(e){var t=pa(e),r=cr(e);return[t,r,"str"]}function IU(e){var t=ms(e),r=cr(e);return[t,r,"str"]}function MU(e,t,r){var a=e.l+t,n=pa(e);n.r=r["!row"];var i=e.read_shift(1),s=[n,i,"b"];if(r.cellFormula){e.l+=2;var o=Cc(e,a-e.l,r);s[3]=ir(o,null,n,r.supbooks,r)}else e.l=a;return s}function RU(e,t,r){var a=e.l+t,n=pa(e);n.r=r["!row"];var i=e.read_shift(1),s=[n,i,"e"];if(r.cellFormula){e.l+=2;var o=Cc(e,a-e.l,r);s[3]=ir(o,null,n,r.supbooks,r)}else e.l=a;return s}function PU(e,t,r){var a=e.l+t,n=pa(e);n.r=r["!row"];var i=or(e),s=[n,i,"n"];if(r.cellFormula){e.l+=2;var o=Cc(e,a-e.l,r);s[3]=ir(o,null,n,r.supbooks,r)}else e.l=a;return s}function LU(e,t,r){var a=e.l+t,n=pa(e);n.r=r["!row"];var i=cr(e),s=[n,i,"str"];if(r.cellFormula){e.l+=2;var o=Cc(e,a-e.l,r);s[3]=ir(o,null,n,r.supbooks,r)}else e.l=a;return s}var OU=xs;function BU(e,t){var r=e.l+t,a=xs(e),n=x1(e),i=cr(e),s=cr(e),o=cr(e);e.l=r;var f={rfx:a,relId:n,loc:i,display:o};return s&&(f.Tooltip=s),f}function NU(){}function UU(e,t,r){var a=e.l+t,n=f3(e),i=e.read_shift(1),s=[n];if(s[2]=i,r.cellFormula){var o=GN(e,a-e.l,r);s[1]=o}else e.l=a;return s}function HU(e,t,r){var a=e.l+t,n=xs(e),i=[n];if(r.cellFormula){var s=XN(e,a-e.l,r);i[1]=s,e.l=a}else e.l=a;return i}var VU=["left","right","top","bottom","header","footer"];function zU(e){var t={};return VU.forEach(function(r){t[r]=or(e)}),t}function WU(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function GU(){}function $U(){}function XU(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,k,C=[];o.biff=12,o["!row"]=0;var w=0,E=!1,S=[],D={},b=o.supbooks||n.supbooks||[[]];if(b.sharedf=D,b.arrayf=S,b.SheetNames=n.SheetNames||n.Sheets.map(function(ce){return ce.name}),!o.supbooks&&(o.supbooks=b,n.Names))for(var F=0;F=M[0].s.r&&d.r<=M[0].e.r&&m>=M[0].s.c&&m<=M[0].e.c&&(v.F=rt(M[0]),E=!0)}!E&&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.rd.r&&(u.s.r=d.r),u.s.c>m&&(u.s.c=m),u.e.r=U.s;)B[U.e--]={width:U.w/256,hidden:!!(U.flags&1),level:U.level},Q||(Q=!0,S1(U.w/256)),po(B[U.e+1]);break;case 161:f["!autofilter"]={ref:rt(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(!ye.T){if(!c||o.WTF)throw new Error("Unexpected record 0x"+pe.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"]=rt(l||u)),o.sheetRows&&f["!ref"]){var q=Mt(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.ru.e.c&&(q.e.c=u.e.c),q.e.c0&&(f["!merges"]=C),B.length>0&&(f["!cols"]=B),Y.length>0&&(f["!rows"]=Y),f}function YU(e){var t=[],r=e.match(/^/),a;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var s=i.match(/(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var n=it((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(i){a=i.replace(/<.*?>/g,"")}),[t,n,a]}function KU(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(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(c){var h=YU(c);u.s.r=u.s.c=0,u.e.c=o,l=$t(o),h[0].forEach(function(d,v){s[l+Jt(v)]={t:"n",v:d,z:h[1]},f=v}),u.e.r0&&(s["!ref"]=rt(u)),s}function ZU(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s,o=e.match(G3);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 jU(e,t){e.l+=10;var r=cr(e);return{name:r}}function qU(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 X3=[["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"]],JU=[["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"]],QU=[],eH=[["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]]=Ct(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]]=Ct(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function Y3(e){A_(e.WBProps,X3),A_(e.CalcPr,eH),C_(e.WBView,JU),C_(e.Sheets,QU),lo.date1904=Ct(e.WBProps.date1904)}var tH="][*?/\\".split("");function rH(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return tH.forEach(function(a){if(e.indexOf(a)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}var aH=/<\w+:workbook/;function nH(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(dr,function(f,l){var u=Ve(f);switch(rn(u[0])){case"":break;case"":case"":break;case"":break;case"":X3.forEach(function(c){if(u[c[0]]!=null)switch(c[2]){case"bool":r.WBProps[c[0]]=Ct(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=wt(u.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete u[0],r.WBView.push(u);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":a=!1;break;case"":i.Ref=it(wt(e.slice(s,l))),r.Names.push(i);break;case"":break;case"":delete u[0],r.CalcPr=u;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":a=!1;break;case"":a=!0;break;case"":a=!1;break;case"8?cr(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 oH(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function fH(e,t,r){var a=e.l+t;e.l+=4,e.l+=1;var n=e.read_shift(4),i=H7(e),s=$N(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 lH(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=[],Gu[16]={n:"BrtFRTArchID$",f:oH},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=ir(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),Y3(r),r.Names=i,r.supbooks=s,r}function uH(e,t,r){return t.slice(-4)===".bin"?lH(e,r):nH(e,r)}function cH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?XU(e,a,r,n,i,s,o):iU(e,a,r,n,i,s,o)}function hH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?qU(e,a,r,n,i):ZU(e,a,r,n,i)}function dH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?wB():TB()}function vH(e,t,r,a,n,i,s,o){return t.slice(-4)===".bin"?_B():yB()}function pH(e,t,r,a){return t.slice(-4)===".bin"?O9(e,r,a):F9(e,r,a)}function gH(e,t,r){return R3(e,r)}function mH(e,t,r){return t.slice(-4)===".bin"?JO(e,r):jO(e,r)}function xH(e,t,r){return t.slice(-4)===".bin"?gB(e,r):cB(e,r)}function _H(e,t,r){return t.slice(-4)===".bin"?fB(e):sB(e)}function yH(e,t,r,a){return r.slice(-4)===".bin"?lB(e,t,r,a):void 0}function wH(e,t,r){return t.slice(-4)===".bin"?nB(e,t,r):iB(e,t,r)}var K3=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Z3=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function xa(e,t){var r=e.split(/\s+/),a=[];if(a[0]=r[0],r.length===1)return a;var n=e.match(K3),i,s,o,f;if(n)for(f=0;f!=n.length;++f)i=n[f].match(Z3),(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 TH(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var a=e.match(K3),n,i,s,o;if(a)for(o=0;o!=a.length;++o)n=a[o].match(Z3),(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 Nf;function SH(e,t){var r=Nf[e]||it(e);return r==="General"?cs(t):da(r,t)}function EH(e,t,r,a){var n=a;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Ct(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=Kt(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[it(t)]=n}function CH(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||_s[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=ll(e.v):e.w=cs(e.v):e.w=SH(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var a=Nf[t]||t||"General";if(r.cellNF&&(e.z=a),r.cellDates&&e.t=="n"&&To(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 AH(e,t,r){if(r.cellStyles&&t.Interior){var a=t.Interior;a.Pattern&&(a.patternType=E9[a.Pattern]||a.Pattern)}e[t.ID]=t}function DH(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=Ct(e);break;case"String":a.t="s",a.r=Kx(it(e)),a.v=e.indexOf("<")>-1?it(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),a.v=(Kt(e)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),a.v!==a.v?a.v=it(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=c3[e],l.cellText!==!1&&(a.w=e);break;default:e==""&&t==""?a.t="z":(a.t="s",a.v=Kx(t||e));break}if(CH(a,u,l),l.cellFormula!==!1)if(a.Formula){var p=it(a.Formula);p.charCodeAt(0)==61&&(p=p.slice(1)),a.f=fo(p,n),delete a.Formula,a.ArrayRange=="RC"?a.F=fo("RC:RC",n):a.ArrayRange&&(a.F=fo(a.ArrayRange,n),f.push([Mt(a.F),a.F]))}else for(v=0;v=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 kH(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||{};B4();var a=of(d1(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(a=wt(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=qt(r);return s.type="string",hl.to_workbook(a,s)}if(n.indexOf("=0&&(i=!0)}),i)return BH(a,r);Nf={"General Number":"General","General Date":Ke[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ke[15],"Short Date":Ke[14],"Long Time":Ke[19],"Medium Time":Ke[18],"Short Time":Ke[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ke[2],Standard:Ke[4],Percent:Ke[10],Scientific:Ke[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=xa(''),m=0,x=0,_=0,y={s:{r:2e6,c:2e6},e:{r:0,c:0}},k={},C={},w="",E=0,S=[],D={},b={},F=0,B=[],Y=[],Q={},J=[],q,ce=!1,U=[],ye=[],pe={},M=0,H=0,z={Sheets:[],WBProps:{date1904:!1}},V={};cl.lastIndex=0,a=a.replace(//mg,"");for(var ie="";o=cl.exec(a);)switch(o[3]=(ie=o[3]).toLowerCase()){case"data":if(ie=="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]==="/"?DH(a.slice(m,o.index),w,g,f[f.length-1][0]=="comment"?Q:v,{c:x,r:_},k,J[x],p,U,r):(w="",g=xa(o[0]),m=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(Y.length>0&&(v.c=Y),(!r.sheetRows||r.sheetRows>_)&&v.v!==void 0&&(r.dense?(h[_]||(h[_]=[]),h[_][x]=v):h[$t(x)+Jt(_)]=v),v.HRef&&(v.l={Target:it(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(M=x+(parseInt(v.MergeAcross,10)|0),H=_+(parseInt(v.MergeDown,10)|0),S.push({s:{c:x,r:_},e:{c:M,r:H}})),!r.sheetStubs)v.MergeAcross?x=M+1:++x;else if(v.MergeAcross||v.MergeDown){for(var xe=x;xe<=M;++xe)for(var de=_;de<=H;++de)(xe>x||de>_)&&(r.dense?(h[de]||(h[de]=[]),h[de][xe]={t:"z"}):h[$t(xe)+Jt(de)]={t:"z"});x=M+1}else++x;else v=TH(o[0]),v.Index&&(x=+v.Index-1),xy.e.c&&(y.e.c=x),o[0].slice(-2)==="/>"&&++x,Y=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(_y.e.r&&(y.e.r=_),o[0].slice(-2)==="/>"&&(p=xa(o[0]),p.Index&&(_=+p.Index-1)),x=0,++_):(p=xa(o[0]),p.Index&&(_=+p.Index-1),pe={},(p.AutoFitHeight=="0"||p.Height)&&(pe.hpx=parseInt(p.Height,10),pe.hpt=M3(pe.hpx),ye[_]=pe),p.Hidden=="1"&&(pe.hidden=!0,ye[_]=pe));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"]=rt(y),r.sheetRows&&r.sheetRows<=y.e.r&&(h["!fullref"]=h["!ref"],y.e.r=r.sheetRows-1,h["!ref"]=rt(y))),S.length&&(h["!merges"]=S),J.length>0&&(h["!cols"]=J),ye.length>0&&(h["!rows"]=ye),u[d]=h}else y={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=x=0,f.push([o[3],!1]),l=xa(o[0]),d=it(l.Name),h=r.dense?[]:{},S=[],U=[],ye=[],V={name:d,Hidden:0},z.Sheets.push(V);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=[],ce=!1}break;case"style":o[1]==="/"?AH(k,C,r):C=xa(o[0]);break;case"numberformat":C.nf=it(xa(o[0]).Format||"General"),Nf[C.nf]&&(C.nf=Nf[C.nf]);for(var fe=0;fe!=392&&Ke[fe]!=C.nf;++fe);if(fe==392){for(fe=57;fe!=392;++fe)if(Ke[fe]==null){ss(C.nf,fe);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(q=xa(o[0]),q.Hidden&&(q.hidden=!0,delete q.Hidden),q.Width&&(q.wpx=parseInt(q.Width,10)),!ce&&q.wpx>10){ce=!0,Tr=F3;for(var oe=0;oe0&&(N.Sheet=z.Sheets.length-1),z.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]==="/"?w+=a.slice(E,o.index):E=o.index+o[0].length;break;case"interior":if(!r.cellStyles)break;C.Interior=xa(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]==="/"?cL(D,ie,a.slice(F,o.index)):F=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("|"));kH(Q),Y.push(Q)}else f.push([o[3],!1]),l=xa(o[0]),Q={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=xa(o[0]);h["!autofilter"]={ref:fo(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 ee=!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:ee=!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:ee=!1}break;case"excelworkbook":switch(o[3]){case"date1904":z.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:ee=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:ee=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(a.slice(F,o.index)){case"SheetHidden":V.Hidden=1;break;case"SheetVeryHidden":V.Hidden=2;break}else F=o.index+o[0].length;break;case"header":h["!margins"]||Bf(h["!margins"]={},"xlml"),isNaN(+Ve(o[0]).Margin)||(h["!margins"].header=+Ve(o[0]).Margin);break;case"footer":h["!margins"]||Bf(h["!margins"]={},"xlml"),isNaN(+Ve(o[0]).Margin)||(h["!margins"].footer=+Ve(o[0]).Margin);break;case"pagemargins":var Z=Ve(o[0]);h["!margins"]||Bf(h["!margins"]={},"xlml"),isNaN(+Z.Top)||(h["!margins"].top=+Z.Top),isNaN(+Z.Left)||(h["!margins"].left=+Z.Left),isNaN(+Z.Right)||(h["!margins"].right=+Z.Right),isNaN(+Z.Bottom)||(h["!margins"].bottom=+Z.Bottom);break;case"displayrighttoleft":z.Views||(z.Views=[]),z.Views[0]||(z.Views[0]={}),z.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:ee=!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:ee=!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:ee=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ee=!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:ee=!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:ee=!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:ee=!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:ee=!1}break;case"smarttags":break;default:ee=!1;break}if(ee||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]==="/"?EH(b,ie,B,a.slice(F,o.index)):(B=o,F=o.index+o[0].length);break}if(r.WTF)throw"Unrecognized tag: "+o[3]+"|"+f.join("|")}var K={};return!r.bookSheets&&!r.bookProps&&(K.Sheets=u),K.SheetNames=c,K.Workbook=z,K.SSF=qt(Ke),K.Props=D,K.Custprops=b,K}function Fv(e,t){switch(k1(t=t||{}),t.type||"base64"){case"base64":return ud(jr(e),t);case"binary":case"buffer":case"file":return ud(e,t);case"array":return ud(gs(e),t)}}function bH(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=W7(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=G7(r),a=r.read_shift(4),a==0||a>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var FH=[60,1084,2066,2165,2175];function IH(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&&FH.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=zn(s);jt(c,0);var h=0;c.lens=[];for(var d=0;d1)&&!(Je.sheetRows&&Re.r>=Je.sheetRows)){if(Je.cellStyles&&Ye.XF&&Ye.XF.data&&D(Re,Ye,Je),delete Ye.ixfe,delete Ye.XF,c=Re,h=Ge(Re),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),Re.rs.e.r&&(s.e.r=Re.r+1),Re.c+1>s.e.c&&(s.e.c=Re.c+1),Je.cellFormula&&Ye.f){for(var at=0;atRe.c||x[at][0].s.r>Re.r)&&!(x[at][0].e.c>8)!==de)throw new Error("rt mismatch: "+he+"!="+de);oe.r==12&&(e.l+=10,fe-=10)}var T={};if(de===10?T=oe.f(e,fe,F):T=IH(de,oe,e,fe,F),pe==0&&[9,521,1033,2057].indexOf(ye)===-1)continue;switch(de){case 34:r.opts.Date1904=w.WBProps.date1904=T;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(F.enc||(e.l=0),F.enc=T,!t.password)throw new Error("File is password-protected");if(T.valid==null)throw new Error("Encryption scheme unsupported");if(!T.valid)throw new Error("Password is incorrect");break;case 92:F.lastuser=T;break;case 66:var N=Number(T);switch(N){case 21010:N=1200;break;case 32768:N=1e4;break;case 32769:N=1252;break}Ca(F.codepage=N),ie=!0;break;case 317:F.rrtabid=T;break;case 25:F.winlocked=T;break;case 439:r.opts.RefreshAll=T;break;case 12:r.opts.CalcCount=T;break;case 16:r.opts.CalcDelta=T;break;case 17:r.opts.CalcIter=T;break;case 13:r.opts.CalcMode=T;break;case 14:r.opts.CalcPrecision=T;break;case 95:r.opts.CalcSaveRecalc=T;break;case 15:F.CalcRefMode=T;break;case 2211:r.opts.FullCalc=T;break;case 129:T.fDialog&&(n["!type"]="dialog"),T.fBelow||((n["!outline"]||(n["!outline"]={})).above=!0),T.fRight||((n["!outline"]||(n["!outline"]={})).left=!0);break;case 224:k.push(T);break;case 430:U.push([T]),U[U.length-1].XTI=[];break;case 35:case 547:U[U.length-1].push(T);break;case 24:case 536:V={Name:T.Name,Ref:ir(T.rgce,s,null,U,F)},T.itab>0&&(V.Sheet=T.itab-1),U.names.push(V),U[0]||(U[0]=[],U[0].XTI=[]),U[U.length-1].push(T),T.Name=="_xlnm._FilterDatabase"&&T.itab>0&&T.rgce&&T.rgce[0]&&T.rgce[0][0]&&T.rgce[0][0][0]=="PtgArea3d"&&(z[T.itab-1]={ref:rt(T.rgce[0][0][1][2])});break;case 22:F.ExternCount=T;break;case 23:U.length==0&&(U[0]=[],U[0].XTI=[]),U[U.length-1].XTI=U[U.length-1].XTI.concat(T),U.XTI=U.XTI.concat(T);break;case 2196:if(F.biff<8)break;V!=null&&(V.Comment=T[1]);break;case 18:n["!protect"]=T;break;case 19:T!==0&&F.WTF&&console.error("Password verifier: "+T);break;case 133:i[T.pos]=T,F.snames.push(T.name);break;case 10:{if(--pe)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,n["!ref"]=rt(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"]=rt(s),s.e.r=W}s.e.r++,s.e.c++}Y.length>0&&(n["!merges"]=Y),Q.length>0&&(n["!objects"]=Q),J.length>0&&(n["!cols"]=J),q.length>0&&(n["!rows"]=q),w.Sheets.push(E)}l===""?u=n:a[l]=n,n=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(F.biff===8&&(F.biff={9:2,521:3,1033:4}[de]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[T.BIFFVer]||8),F.biffguess=T.BIFFVer==0,T.BIFFVer==0&&T.dt==4096&&(F.biff=5,ie=!0,Ca(F.codepage=28591)),F.biff==8&&T.BIFFVer==0&&T.dt==16&&(F.biff=2),pe++)break;if(n=t.dense?[]:{},F.biff<8&&!ie&&(ie=!0,Ca(F.codepage=t.codepage||1252)),F.biff<5||T.BIFFVer==0&&T.dt==4096){l===""&&(l="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-fe,name:l};i[ee.pos]=ee,F.snames.push(l)}else l=(i[xe]||{name:""}).name;T.dt==32&&(n["!type"]="chart"),T.dt==64&&(n["!type"]="macro"),Y=[],Q=[],F.arrayf=x=[],J=[],q=[],ce=!1,E={Hidden:(i[xe]||{hs:0}).hs,name:l}}break;case 515:case 3:case 2:n["!type"]=="chart"&&(t.dense?(n[T.r]||[])[T.c]:n[Ge({c:T.c,r:T.r})])&&++T.c,_={ixfe:T.ixfe,XF:k[T.ixfe]||{},v:T.val,t:"n"},M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:T.c,r:T.r},_,t);break;case 5:case 517:_={ixfe:T.ixfe,XF:k[T.ixfe],v:T.val,t:T.t},M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:T.c,r:T.r},_,t);break;case 638:_={ixfe:T.ixfe,XF:k[T.ixfe],v:T.rknum,t:"n"},M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:T.c,r:T.r},_,t);break;case 189:for(var Z=T.c;Z<=T.C;++Z){var K=T.rkrec[Z-T.c][0];_={ixfe:K,XF:k[K],v:T.rkrec[Z-T.c][1],t:"n"},M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:Z,r:T.r},_,t)}break;case 6:case 518:case 1030:{if(T.val=="String"){o=T;break}if(_=I0(T.val,T.cell.ixfe,T.tt),_.XF=k[_.ixfe],t.cellFormula){var ue=T.formula;if(ue&&ue[0]&&ue[0][0]&&ue[0][0][0]=="PtgExp"){var ve=ue[0][0][1][0],me=ue[0][0][1][1],ge=Ge({r:ve,c:me});m[ge]?_.f=""+ir(T.formula,s,T.cell,U,F):_.F=((t.dense?(n[ve]||[])[me]:n[ge])||{}).F}else _.f=""+ir(T.formula,s,T.cell,U,F)}M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b(T.cell,_,t),o=T}break;case 7:case 519:if(o)o.val=T,_=I0(T,o.cell.ixfe,"s"),_.XF=k[_.ixfe],t.cellFormula&&(_.f=""+ir(o.formula,s,o.cell,U,F)),M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b(o.cell,_,t),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{x.push(T);var be=Ge(T[0].s);if(d=t.dense?(n[T[0].s.r]||[])[T[0].s.c]:n[be],t.cellFormula&&d){if(!o||!be||!d)break;d.f=""+ir(T[1],s,T[0],U,F),d.F=rt(T[0])}}break;case 1212:{if(!t.cellFormula)break;if(h){if(!o)break;m[Ge(o.cell)]=T[0],d=t.dense?(n[o.cell.r]||[])[o.cell.c]:n[Ge(o.cell)],(d||{}).f=""+ir(T[0],s,c,U,F)}}break;case 253:_=I0(f[T.isst].t,T.ixfe,"s"),f[T.isst].h&&(_.h=f[T.isst].h),_.XF=k[_.ixfe],M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:T.c,r:T.r},_,t);break;case 513:t.sheetStubs&&(_={ixfe:T.ixfe,XF:k[T.ixfe],t:"z"},M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:T.c,r:T.r},_,t));break;case 190:if(t.sheetStubs)for(var Ee=T.c;Ee<=T.C;++Ee){var Se=T.ixfe[Ee-T.c];_={ixfe:Se,XF:k[Se],t:"z"},M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:Ee,r:T.r},_,t)}break;case 214:case 516:case 4:_=I0(T.val,T.ixfe,"s"),_.XF=k[_.ixfe],M>0&&(_.z=H[_.ixfe>>8&63]),Na(_,t,r.opts.Date1904),b({c:T.c,r:T.r},_,t);break;case 0:case 512:pe===1&&(s=T);break;case 252:f=T;break;case 1054:if(F.biff==4){H[M++]=T[1];for(var Ie=0;Ie=163&&ss(T[1],M+163)}else ss(T[1],T[0]);break;case 30:{H[M++]=T;for(var Me=0;Me=163&&ss(T,M+163)}break;case 229:Y=Y.concat(T);break;case 93:Q[T.cmo[0]]=F.lastobj=T;break;case 438:F.lastobj.TxO=T;break;case 127:F.lastobj.ImData=T;break;case 440:for(g=T[0].s.r;g<=T[0].e.r;++g)for(p=T[0].s.c;p<=T[0].e.c;++p)d=t.dense?(n[g]||[])[p]:n[Ge({c:p,r:g})],d&&(d.l=T[1]);break;case 2048:for(g=T[0].s.r;g<=T[0].e.r;++g)for(p=T[0].s.c;p<=T[0].e.c;++p)d=t.dense?(n[g]||[])[p]:n[Ge({c:p,r:g})],d&&d.l&&(d.l.Tooltip=T[1]);break;case 28:{if(F.biff<=5&&F.biff>=2)break;d=t.dense?(n[T[0].r]||[])[T[0].c]:n[Ge(T[0])];var Ne=Q[T[2]];d||(t.dense?(n[T[0].r]||(n[T[0].r]=[]),d=n[T[0].r][T[0].c]={t:"z"}):d=n[Ge(T[0])]={t:"z"},s.e.r=Math.max(s.e.r,T[0].r),s.s.r=Math.min(s.s.r,T[0].r),s.e.c=Math.max(s.e.c,T[0].c),s.s.c=Math.min(s.s.c,T[0].c)),d.c||(d.c=[]),v={a:T[1],t:Ne.TxO.t},d.c.push(v)}break;case 2173:eB(k[T.ixfe],T.ext);break;case 125:{if(!F.cellStyles)break;for(;T.e>=T.s;)J[T.e--]={width:T.w/256,level:T.level||0,hidden:!!(T.flags&1)},ce||(ce=!0,S1(T.w/256)),po(J[T.e+1])}break;case 520:{var Pe={};T.level!=null&&(q[T.r]=Pe,Pe.level=T.level),T.hidden&&(q[T.r]=Pe,Pe.hidden=!0),T.hpt&&(q[T.r]=Pe,Pe.hpt=T.hpt,Pe.hpx=vl(T.hpt))}break;case 38:case 39:case 40:case 41:n["!margins"]||Bf(n["!margins"]={}),n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[de]]=T;break;case 161:n["!margins"]||Bf(n["!margins"]={}),n["!margins"].header=T.header,n["!margins"].footer=T.footer;break;case 574:T.RTL&&(w.Views[0].RTL=!0);break;case 146:C=T;break;case 2198:B=T;break;case 140:y=T;break;case 442:l?E.CodeName=T||E.name:w.WBProps.CodeName=T||"ThisWorkbook";break}}else oe||console.error("Missing Info for XLS Record 0x"+de.toString(16)),e.l+=fe}return r.SheetNames=Qa(i).sort(function(ot,Re){return Number(ot)-Number(Re)}).map(function(ot){return i[ot].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&&z.forEach(function(ot,Re){r.Sheets[r.SheetNames[Re]]["!autofilter"]=ot}),r.Strings=f,r.SSF=qt(Ke),F.enc&&(r.Encryption=F.enc),B&&(r.Themes=B),r.Metadata={},y!==void 0&&(r.Metadata.Country=y),U.names.length>0&&(w.Names=U.names),r.Workbook=w,r}var D_={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function RH(e,t,r){var a=tt.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=u_(a,j7,D_.DSI);for(var i in n)t[i]=n[i]}catch(l){if(r.WTF)throw l}var s=tt.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=u_(s,q7,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&&(d3(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function j3(e,t){t||(t={}),k1(t),C4(),t.codepage&&s1(t.codepage);var r,a;if(e.FullPaths){if(tt.find(e,"/encryption"))throw new Error("File is password-protected");r=tt.find(e,"!CompObj"),a=tt.find(e,"/Workbook")||tt.find(e,"/Book")}else{switch(t.type){case"base64":e=Ea(jr(e));break;case"binary":e=Ea(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}jt(e,0),a={content:e}}var n,i;if(r&&bH(r),t.bookProps&&!t.bookSheets)n={};else{var s=Qe?"buffer":"array";if(a&&a.content)n=MH(a.content,t);else if((i=tt.find(e,"PerfectOffice_MAIN"))&&i.content)n=Lf.to_workbook(i.content,(t.type=s,t));else if((i=tt.find(e,"NativeContent_MAIN"))&&i.content)n=Lf.to_workbook(i.content,(t.type=s,t));else throw(i=tt.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&tt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=xB(e))}var o={};return e.FullPaths&&RH(e,o,t),n.Props=n.Custprops=o,t.bookFiles&&(n.cfb=e),n}var Gu={0:{f:vU},1:{f:xU},2:{f:DU},3:{f:TU},4:{f:yU},5:{f:AU},6:{f:FU},7:{f:EU},8:{f:LU},9:{f:PU},10:{f:MU},11:{f:RU},12:{f:_U},13:{f:kU},14:{f:SU},15:{f:wU},16:{f:$3},17:{f:IU},18:{f:CU},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:fH},40:{},42:{},43:{f:M9},44:{f:I9},45:{f:R9},46:{f:L9},47:{f:P9},48:{},49:{f:O7},50:{},51:{f:rB},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:C3},62:{f:bU},63:{f:oB},64:{f:GU},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:hr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:WU},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:mU},148:{f:pU,p:16},151:{f:NU},152:{},153:{f:sH},154:{},155:{},156:{f:iH},157:{},158:{},159:{T:1,f:qO},160:{T:-1},161:{T:1,f:xs},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:OU},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:tB},336:{T:-1},337:{f:aB,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:E3},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:UU},427:{f:HU},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:zU},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:gU},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:BU},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:pB},633:{T:1},634:{T:-1},635:{T:1,f:vB},636:{T:-1},637:{f:N7},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:jU},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:$U},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:Bn},12:{f:Ht},13:{f:Ht},14:{f:Rt},15:{f:Rt},16:{f:or},17:{f:Rt},18:{f:Rt},19:{f:Ht},20:{f:v_},21:{f:v_},23:{f:E3},24:{f:g_},25:{f:Rt},26:{},27:{},28:{f:hO},29:{},34:{f:Rt},35:{f:p_},38:{f:or},39:{f:or},40:{f:or},41:{f:or},42:{f:Rt},43:{f:Rt},47:{f:g9},49:{f:YL},51:{f:Ht},60:{},61:{f:GL},64:{f:Rt},65:{f:XL},66:{f:Ht},77:{},80:{},81:{},82:{},85:{f:Ht},89:{},90:{},91:{},92:{f:OL},93:{f:vO},94:{},95:{f:Rt},96:{},97:{},99:{f:Rt},125:{f:C3},128:{f:aO},129:{f:BL},130:{f:Ht},131:{f:Rt},132:{f:Rt},133:{f:NL},134:{},140:{f:yO},141:{f:Ht},144:{},146:{f:TO},151:{},152:{},153:{},154:{},155:{},156:{f:Ht},157:{},158:{},160:{f:DO},161:{f:EO},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:QL},190:{f:eO},193:{f:Bn},197:{},198:{},199:{},200:{},201:{},202:{f:Rt},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Ht},220:{},221:{f:Rt},222:{},224:{f:rO},225:{f:LL},226:{f:Bn},227:{},229:{f:dO},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:UL},253:{f:KL},255:{f:HL},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:x3},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Rt},353:{f:Bn},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:iO},431:{f:Rt},432:{},433:{},434:{},437:{},438:{f:mO},439:{f:Rt},440:{f:xO},441:{},442:{f:bl},443:{},444:{f:Ht},445:{},446:{},448:{f:Bn},449:{f:WL,r:2},450:{f:Bn},512:{f:h_},513:{f:AO},515:{f:nO},516:{f:ZL},517:{f:d_},519:{f:kO},520:{f:VL},523:{},545:{f:m_},549:{f:c_},566:{},574:{f:$L},638:{f:JL},659:{},1048:{},1054:{f:jL},1084:{},1212:{f:lO},2048:{f:_O},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:k0},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:Bn},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:SO,r:12},2173:{f:Q9,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Rt,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:fO,r:12},2197:{},2198:{f:Y9,r:12},2199:{},2200:{},2201:{},2202:{f:uO,r:12},2203:{f:Bn},2204:{},2205:{},2206:{},2207:{},2211:{f:zL},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:Ht},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:CO},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:wO},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:h_},1:{},2:{f:MO},3:{f:IO},4:{f:FO},5:{f:d_},7:{f:RO},8:{},9:{f:k0},11:{},22:{f:Ht},30:{f:qL},31:{},32:{},33:{f:m_},36:{},37:{f:c_},50:{f:PO},62:{},52:{},67:{},68:{f:Ht},69:{},86:{},126:{},127:{f:bO},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:LO},223:{},234:{},354:{},421:{},518:{f:fd},521:{f:k0},536:{f:g_},547:{f:p_},561:{},579:{},1030:{f:fd},1033:{f:k0},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function _a(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&&i3(r)&&e.push(r)}}function k_(e,t){var r=t||{},a=r.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var i=e.match(/<\/table/i),s=n.index,o=i&&i.index||e.length,f=n7(e.slice(s,o),/(:?]*>)/i,""),l=-1,u=0,c=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},v=[];for(s=0;s/i);for(o=0;o"))>-1;)_=_.slice(y+1);for(var k=0;k")));h=w.colspan?+w.colspan:1,((c=+w.rowspan)>1||h>1)&&v.push({s:{r:l,c:u},e:{r:l+(c||1)-1,c:u+h-1}});var E=w.t||w["data-t"]||"";if(!_.length){u+=h;continue}if(_=X4(_),d.s.r>l&&(d.s.r=l),d.e.ru&&(d.s.c=u),d.e.cr||n[l].s.c>s)&&!(n[l].e.r1&&(d.rowspan=o),f>1&&(d.colspan=f),a.editable?h=''+h+"":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=''+h+"")),d.id=(a.id||"sjs")+"-"+u,i.push(y7("td",h,d))}}var v="";return v+i.join("")+""}var LH='SheetJS Table Export',OH="";function BH(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find
");if(r.length==1)return ci(k_(r[0],t),t);var a=F1();return r.forEach(function(n,i){I1(a,k_(n,t),"Sheet"+(i+1))}),a}function NH(e,t,r){var a=[];return a.join("")+""}function UH(e,t){var r=t||{},a=r.header!=null?r.header:LH,n=r.footer!=null?r.footer:OH,i=[a],s=So(e["!ref"]);r.dense=Array.isArray(e),i.push(NH(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)i.push(PH(e,s,o,r));return i.push("
"+n),i.join("")}function q3(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"?Er(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=So(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"]=[]);v1||_>1)&&c.push({s:{r:p+n,c:m+i},e:{r:p+n+(x||1)-1,c:m+i+(_||1)-1}});var D={t:"s",v:w},b=C.getAttribute("data-t")||C.getAttribute("t")||"";w!=null&&(w.length==0?D.t=b||"z":a.raw||w.trim().length==0||b=="s"||(w==="TRUE"?D={t:"b",v:!0}:w==="FALSE"?D={t:"b",v:!1}:isNaN(ba(w))?isNaN(vo(w).getDate())||(D={t:"d",v:Kt(w)},a.cellDates||(D={t:"n",v:kr(D.v)}),D.z=a.dateNF||Ke[14]):D={t:"n",v:ba(w)})),D.z===void 0&&E!=null&&(D.z=E);var F="",B=C.getElementsByTagName("A");if(B&&B.length)for(var Y=0;Y=f&&(e["!fullref"]=rt((l.e.r=o.length-v+p-1+n,l))),e}function J3(e,t){var r=t||{},a=r.dense?[]:{};return q3(a,e,t)}function HH(e,t){return ci(J3(e,t),t)}function b_(e){var t="",r=VH(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function VH(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function zH(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(a,n){return Array(parseInt(n,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` +`),r=it(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 Q3(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=[],k=-1,C=-1,w={s:{r:1e6,c:1e7},e:{r:0,c:0}},E=0,S={},D=[],b={},F=0,B=0,Y=[],Q=1,J=1,q=[],ce={Names:[]},U={},ye=["",""],pe=[],M={},H="",z=0,V=!1,ie=!1,xe=0;for(cl.lastIndex=0,a=a.replace(//mg,"").replace(//gm,"");p=cl.exec(a);)switch(p[3]=p[3].replace(/_.*$/,"")){case"table":case"工作表":p[1]==="/"?(w.e.c>=w.s.c&&w.e.r>=w.s.r?v["!ref"]=rt(w):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=w.e.r&&(v["!fullref"]=v["!ref"],w.e.r=r.sheetRows-1,v["!ref"]=rt(w)),D.length&&(v["!merges"]=D),Y.length&&(v["!rows"]=Y),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),d.push(u.name),h[u.name]=v,ie=!1):p[0].charAt(p[0].length-2)!=="/"&&(u=Ve(p[0],!1),k=C=-1,w.s.r=w.s.c=1e7,w.e.r=w.e.c=0,v=r.dense?[]:{},D=[],Y=[],ie=!0);break;case"table-row-group":p[1]==="/"?--E:++E;break;case"table-row":case"行":if(p[1]==="/"){k+=Q,Q=1;break}if(c=Ve(p[0],!1),c.行号?k=c.行号-1:k==-1&&(k=0),Q=+c["number-rows-repeated"]||1,Q<10)for(xe=0;xe0&&(Y[k+xe]={level:E});C=-1;break;case"covered-table-cell":p[1]!=="/"&&++C,r.sheetStubs&&(r.dense?(v[k]||(v[k]=[]),v[k][C]={t:"z"}):v[Ge({r:k,c:C})]={t:"z"}),x="",y=[];break;case"table-cell":case"数据":if(p[0].charAt(p[0].length-2)==="/")++C,m=Ve(p[0],!1),J=parseInt(m["number-columns-repeated"]||"1",10),g={t:"z",v:null},m.formula&&r.cellFormula!=!1&&(g.f=E_(it(m.formula))),(m.数据类型||m["value-type"])=="string"&&(g.t="s",g.v=it(m["string-value"]||""),r.dense?(v[k]||(v[k]=[]),v[k][C]=g):v[Ge({r:k,c:C})]=g),C+=J-1;else if(p[1]!=="/"){++C,x="",_=0,y=[],J=1;var de=Q?k+Q-1:k;if(C>w.e.c&&(w.e.c=C),Cw.e.r&&(w.e.r=de),m=Ve(p[0],!1),pe=[],M={},g={t:m.数据类型||m["value-type"],v:null},r.cellFormula)if(m.formula&&(m.formula=it(m.formula)),m["number-matrix-columns-spanned"]&&m["number-matrix-rows-spanned"]&&(F=parseInt(m["number-matrix-rows-spanned"],10)||0,B=parseInt(m["number-matrix-columns-spanned"],10)||0,b={s:{r:k,c:C},e:{r:k+F-1,c:C+B-1}},g.F=rt(b),q.push([b,g.F])),m.formula)g.f=E_(m.formula);else for(xe=0;xe=q[xe][0].s.r&&k<=q[xe][0].e.r&&C>=q[xe][0].s.c&&C<=q[xe][0].e.c&&(g.F=q[xe][1]);switch((m["number-columns-spanned"]||m["number-rows-spanned"])&&(F=parseInt(m["number-rows-spanned"],10)||0,B=parseInt(m["number-columns-spanned"],10)||0,b={s:{r:k,c:C},e:{r:k+F-1,c:C+B-1}},D.push(b)),m["number-columns-repeated"]&&(J=parseInt(m["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Ct(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=Kt(m["date-value"]),r.cellDates||(g.t="n",g.v=kr(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=t7(m["time-value"])/86400,r.cellDates&&(g.t="d",g.v=Tc(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=it(m["string-value"]),y=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(V=!1,g.t==="s"&&(g.v=x||"",y.length&&(g.R=y),V=_==0),U.Target&&(g.l=U),pe.length>0&&(g.c=pe,pe=[]),x&&r.cellText!==!1&&(g.w=x),V&&(g.t="z",delete g.v),(!V||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=k))for(var fe=0;fe0;)v[k+fe][C+J]=qt(g);else for(v[Ge({r:k+fe,c:C})]=g;--J>0;)v[Ge({r:k+fe,c:C+J})]=qt(g);w.e.c<=C&&(w.e.c=C)}J=parseInt(m["number-columns-repeated"]||"1",10),C+=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;M.t=x,y.length&&(M.R=y),M.a=H,pe.push(M)}else p[0].charAt(p[0].length-2)!=="/"&&n.push([p[3],!1]);H="",z=0,x="",_=0,y=[];break;case"creator":p[1]==="/"?H=a.slice(z,p.index):z=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(S[o.name]=f,(i=n.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&(f="",o=Ve(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=Ve(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=Ve(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=Ve(p[0],!1),ye=ld(s["cell-range-address"]);var oe={Name:s.name,Ref:ye[0]+"!"+ye[1]};ie&&(oe.Sheet=d.length),ce.Names.push(oe);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 he=zH(a.slice(_,p.index));x=(x.length>0?x+` +`:"")+he[0]}else Ve(p[0],!1),_=p.index+p[0].length;break;case"s":break;case"database-range":if(p[1]==="/")break;try{ye=ld(Ve(p[0])["target-range-address"]),h[ye[0]]["!autofilter"]={ref:ye[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=Ve(p[0],!1),!U.href)break;U.Target=it(U.href),delete U.href,U.Target.charAt(0)=="#"&&U.Target.indexOf(".")>-1?(ye=ld(U.Target.slice(1)),U.Target="#"+ye[0]+"!"+ye[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 T={Sheets:h,SheetNames:d,Workbook:ce};return r.bookSheets&&delete T.Sheets,T}function I_(e,t){t=t||{},ia(e,"META-INF/manifest.xml")&&nL(Ut(e,"META-INF/manifest.xml"),t);var r=$r(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=Q3(wt(r),t);return ia(e,"meta.xml")&&(a.Props=h3(Ut(e,"meta.xml"))),a}function M_(e,t){return Q3(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):wt(gs(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 WH(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 pl(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 Xt(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 fr(e){for(var t=[],r=[0];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=pl(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 GH(e){for(var t,r=[],a=[0];a[0]>>0>0),r.push(s)}return r}function $H(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],a=pl(t,r),n=[];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 XH(e){for(var t=[],r=0;r1?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 KH(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=WH(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 ZH(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return YH(e,t,r,e[0]);case 5:return KH(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function ei(e){var t=fr(e);return pl(t[1][0].data)}function P_(e,t){var r=fr(t.data),a=Xt(r[1][0].data),n=r[3],i=[];return(n||[]).forEach(function(s){var o=fr(s.data),f=Xt(o[1][0].data)>>>0;switch(a){case 1:i[f]=Mv(o[3][0].data);break;case 8:{var l=e[ei(o[9][0].data)][0],u=fr(l.data),c=e[ei(u[1][0].data)][0],h=Xt(c.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var d=fr(c.data);i[f]=d[3].map(function(v){return Mv(v.data)}).join("")}break}}),i}function jH(e,t){var r,a,n,i,s,o,f,l,u,c,h,d,v,p,g=fr(e),m=Xt(g[1][0].data)>>>0,x=Xt(g[2][0].data)>>>0,_=((a=(r=g[8])==null?void 0:r[0])==null?void 0:a.data)&&Xt(g[8][0].data)>0||!1,y,k;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,k=(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,k=(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 C=_?4:1,w=A1(y),E=[],S=0;S=1&&(b[E[E.length-1][0]]=k.subarray(E[E.length-1][1]*C)),{R:m,cells:b}}function qH(e,t){var r,a=fr(t.data),n=(r=a?.[7])!=null&&r[0]?Xt(a[7][0].data)>>>0>0?1:0:-1,i=D1(a[5],function(s){return jH(s,n)});return{nrows:Xt(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 JH(e,t,r){var a,n=fr(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Xt(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=(Xt(n[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=rt(i);var s=fr(n[4][0].data),o=P_(e,e[ei(s[4][0].data)][0]),f=(a=s[17])!=null&&a[0]?P_(e,e[ei(s[17][0].data)][0]):[],l=fr(s[3][0].data),u=0;l[1].forEach(function(c){var h=fr(c.data),d=e[ei(h[2][0].data)][0],v=Xt(d.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var p=qH(e,d);p.data.forEach(function(g,m){g.forEach(function(x,_){var y=Ge({r:u+m,c:_}),k=ZH(x,o,f);k&&(r[y]=k)})}),u+=p.nrows})}function QH(e,t){var r=fr(t.data),a={"!ref":"A1"},n=e[ei(r[2][0].data)],i=Xt(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return JH(e,n[0],a),a}function eV(e,t){var r,a=fr(t.data),n={name:(r=a[1])!=null&&r[0]?Mv(a[1][0].data):"",sheets:[]},i=D1(a[2],ei);return i.forEach(function(s){e[s].forEach(function(o){var f=Xt(o.meta[1][0].data);f==6e3&&n.sheets.push(QH(e,o))})}),n}function tV(e,t){var r=F1(),a=fr(t.data),n=D1(a[1],ei);if(n.forEach(function(i){e[i].forEach(function(s){var o=Xt(s.meta[1][0].data);if(o==2){var f=eV(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=XH(f.content)}catch(c){return console.log("?? "+f.content.length+" "+(c.message||c))}var u;try{u=GH(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)&&Xt(i[1][0].meta[1][0].data)==1&&i[1][0];if(o||s.forEach(function(f){i[f].forEach(function(l){var u=Xt(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 tV(i,o)}function rV(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){rV([["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 aV(e){return Zs.WS.indexOf(e)>-1?"sheet":e==Zs.CS?"chart":e==Zs.DS?"dialog":e==Zs.MS?"macro":e&&e.length?e:"sheet"}function nV(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,aV(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function iV(e,t,r,a,n,i,s,o,f,l,u,c){try{i[a]=Rf($r(e,r,!0),t);var h=Ut(e,t),d;switch(o){case"sheet":d=cH(h,t,n,f,i[a],l,u,c);break;case"chart":if(d=hH(h,t,n,f,i[a],l,u,c),!d||!d["!drawel"])break;var v=lf(d["!drawel"].Target,t),p=Dv(v),g=uB($r(e,v,!0),Rf($r(e,p,!0),v)),m=lf(g,v),x=Dv(m);d=KU($r(e,m,!0),m,f,Rf($r(e,x,!0),m),l,d);break;case"macro":d=dH(h,t,n,f,i[a],l,u,c);break;case"dialog":d=vH(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]&&Qa(i[a]).forEach(function(y){var k="";if(i[a][y].Type==Zs.CMNT){k=lf(i[a][y].Target,t);var C=xH(Ut(e,k,!0),k,f);if(!C||!C.length)return;__(d,C,!1)}i[a][y].Type==Zs.TCMNT&&(k=lf(i[a][y].Target,t),_=_.concat(hB(Ut(e,k,!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 sV(e,t){if(B4(),t=t||{},k1(t),ia(e,"META-INF/manifest.xml")||ia(e,"objectdata.xml"))return I_(e,t);if(ia(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=tt.utils.cfb_new();return Xx(e).forEach(function(Y){o7(r,Y,s7(e,Y))}),cd(r)}throw new Error("Unsupported NUMBERS file")}if(!ia(e,"[Content_Types].xml"))throw ia(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):ia(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var a=Xx(e),n=rL($r(e,"[Content_Types].xml")),i=!1,s,o;if(n.workbooks.length===0&&(o="xl/workbook.xml",Ut(e,o,!0)&&n.workbooks.push(o)),n.workbooks.length===0){if(o="xl/workbook.bin",!Ut(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(Of=[],n.sst)try{Of=mH(Ut(e,Qr(n.sst)),n.sst,t)}catch(Y){if(t.WTF)throw Y}t.cellStyles&&n.themes.length&&(f=gH($r(e,n.themes[0].replace(/^\//,""),!0)||"",n.themes[0],t)),n.style&&(l=pH(Ut(e,Qr(n.style)),n.style,f,t))}n.links.map(function(Y){try{var Q=Rf($r(e,Dv(Qr(Y))),Y);return yH(Ut(e,Qr(Y)),Q,Y,t)}catch{}});var u=uH(Ut(e,Qr(n.workbooks[0])),n.workbooks[0],t),c={},h="";n.coreprops.length&&(h=Ut(e,Qr(n.coreprops[0]),!0),h&&(c=h3(h)),n.extprops.length!==0&&(h=Ut(e,Qr(n.extprops[0]),!0),h&&oL(h,c,t)));var d={};(!t.bookSheets||t.bookProps)&&n.custprops.length!==0&&(h=$r(e,Qr(n.custprops[0]),!0),h&&(d=lL(h,t)));var v={};if((t.bookSheets||t.bookProps)&&(u.Sheets?s=u.Sheets.map(function(Q){return Q.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=_H(Ut(e,Qr(n.calcchain)),n.calcchain));var g=0,m={},x,_;{var y=u.Sheets;c.Worksheets=y.length,c.SheetNames=[];for(var k=0;k!=y.length;++k)c.SheetNames[k]=y[k].name}var C=i?"bin":"xml",w=n.workbooks[0].lastIndexOf("/"),E=(n.workbooks[0].slice(0,w+1)+"_rels/"+n.workbooks[0].slice(w+1)+".rels").replace(/^\//,"");ia(e,E)||(E="xl/_rels/workbook."+C+".rels");var S=Rf($r(e,E,!0),E.replace(/_rels.*/,"s5s"));(n.metadata||[]).length>=1&&(t.xlmeta=wH(Ut(e,Qr(n.metadata[0])),n.metadata[0],t)),(n.people||[]).length>=1&&(t.people=dB(Ut(e,Qr(n.people[0])),t)),S&&(S=nV(S,u.Sheets));var D=Ut(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=c.Worksheets;++g){var b="sheet";if(S&&S[g]?(x="xl/"+S[g][1].replace(/[\/]?xl\//,""),ia(e,x)||(x=S[g][1]),ia(e,x)||(x=E.replace(/_rels\/.*$/,"")+S[g][1]),b=S[g][2]):(x="xl/worksheets/sheet"+(g+1-D)+"."+C,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 F=!1,B=0;B!=t.sheets.length;++B)typeof t.sheets[B]=="number"&&t.sheets[B]==g&&(F=1),typeof t.sheets[B]=="string"&&t.sheets[B].toLowerCase()==c.SheetNames[g].toLowerCase()&&(F=1);if(!F)continue e}}iV(e,x,_,c.SheetNames[g],g,m,s,b,t,u,f,l)}return v={Directory:n,Workbook:u,Props:c,Custprops:d,Deps:p,Sheets:s,SheetNames:c.SheetNames,Strings:Of,Styles:l,Themes:f,SSF:qt(Ke)},t&&t.bookFiles&&(e.files?(v.keys=a,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(Y,Q){Y=Y.replace(/^Root Entry[\/]/,""),v.keys.push(Y),v.files[Y]=e.FileIndex[Q]}))),t&&t.bookVBA&&(n.vba.length>0?v.vbaraw=Ut(e,Qr(n.vba[0]),!0):n.defaults&&n.defaults.bin===mB&&(v.vbaraw=Ut(e,"xl/vbaProject.bin",!0))),v}function oV(e,t){var r=t||{},a="Workbook",n=tt.find(e,a);try{if(a="/!DataSpaces/Version",n=tt.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(QO(n.content),a="/!DataSpaces/DataSpaceMap",n=tt.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=t9(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=tt.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=r9(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=tt.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);n9(n.content)}catch{}if(a="/EncryptionInfo",n=tt.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=i9(n.content);if(a="/EncryptedPackage",n=tt.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=jr(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 fV(e,t){return tt.find(e,"EncryptedPackage")?oV(e,t):j3(e,t)}function lV(e,t){var r,a=e,n=t||{};return n.type||(n.type=Qe&&Buffer.isBuffer(e)?"buffer":"base64"),r=W4(a,n),sV(r,n)}function eE(e,t){var r=0;e:for(;r=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return Lf.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 m9.to_workbook(a,r);break;case 10:case 13:case 32:return uV(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 OO.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?x_.to_workbook(a,r):hd(e,a,r,i)}function dV(e,t,r,a,n,i,s,o){var f=Jt(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=Mt(u);break;case"number":f=Mt(e["!ref"]),f.s.r=u;break;default:f=u}a>0&&(n=0);var c=Jt(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"]||[],k=l.skipHidden&&e["!rows"]||[];for(x=f.s.c;x<=f.e.c;++x)if(!(y[x]||{}).hidden)switch(h[x]=$t(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(!(k[m]||{}).hidden){var C=dV(e,f,m,h,a,i,g,l);(C.isempty===!1||(a===1?l.blankrows!==!1:l.blankrows))&&(d[v++]=C.row)}return d.length=v,d}var L_=/"/g;function vV(e,t,r,a,n,i,s,o){for(var f=!0,l=[],u="",c=Jt(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 tE(e,t){var r=[],a=t??{};if(e==null||e["!ref"]==null)return"";var n=Mt(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]=$t(v));for(var p=0,g=n.s.r;g<=n.e.r;++g)(d[g]||{}).hidden||(u=vV(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 pV(e,t){t||(t={}),t.FS=" ",t.RS=` +`;var r=tE(e,t);return r}function gV(e){var t="",r,a="";if(e==null||e["!ref"]==null)return[];var n=Mt(e["!ref"]),i="",s=[],o,f=[],l=Array.isArray(e);for(o=n.s.c;o<=n.e.c;++o)s[o]=$t(o);for(var u=n.s.r;u<=n.e.r;++u)for(i=Jt(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 rE(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"?Er(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=Mt(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){Qa(p).forEach(function(m){(d=h.indexOf(m))==-1&&(h[d=h.length]=m);var x=p[m],_="z",y="",k=Ge({c:o+d,r:s+g+n});l=gl(i,k),x&&typeof x=="object"&&!(x instanceof Date)?i[k]=x:(typeof x=="number"?_="n":typeof x=="boolean"?_="b":typeof x=="string"?_="s":x instanceof Date?(_="d",a.cellDates||(_="n",x=kr(x)),y=a.dateNF||Ke[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[k]=l={t:_,v:x},y&&(l.z=y))})}),u.e.c=Math.max(u.e.c,o+h.length-1);var v=Jt(s);if(n)for(d=0;d=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(rH(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 _V(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=xV(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 yV(e,t){return e.z=t,e}function aE(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function wV(e,t,r){return aE(e,"#"+t,r)}function TV(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function SV(e,t,r,a){for(var n=typeof t!="string"?t:Mt(t),i=typeof t=="string"?t:rt(t),s=n.s.r;s<=n.e.r;++s)for(var o=n.s.c;o<=n.e.c;++o){var f=gl(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 EV={encode_col:$t,encode_row:Jt,encode_cell:Ge,encode_range:rt,decode_col:g1,decode_row:p1,split_cell:L7,decode_cell:Er,decode_range:So,format_cell:En,sheet_add_aoa:o3,sheet_add_json:rE,sheet_add_dom:q3,aoa_to_sheet:Eo,json_to_sheet:mV,table_to_sheet:J3,table_to_book:HH,sheet_to_csv:tE,sheet_to_txt:pV,sheet_to_json:Lv,sheet_to_html:UH,sheet_to_formulae:gV,sheet_to_row_object_array:Lv,sheet_get_cell:gl,book_new:F1,book_append_sheet:I1,book_set_sheet_visibility:_V,cell_set_number_format:yV,cell_set_hyperlink:aE,cell_set_internal_link:wV,cell_add_comment:TV,sheet_set_array_formula:SV,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function CV(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?"":CV(e).trim()}function nE(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 AV(e){const t=TP.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 nE(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=EV.sheet_to_json(a,{header:1,raw:!1,blankrows:!1});return nE(n)}function $u(e){return e.trim()}function DV(e){const t=e.replace(/,/g,"").trim();if(!t)return null;const r=Number(t);return Number.isNaN(r)?null:r}function iE(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})="${iE(i)}"`}).join(",")}function kV(e,t){const r=t.sourceDataColumn===null?"":e[t.sourceDataColumn]??"";return t.sourceDescriptionColumns.length===0?$u(r):t.sourceDescriptionColumns.map(n=>$u(e[n]??"")).filter(n=>n.length>0).join(t.delimiter)}function bV(e,t,r){return t.targetDescriptionColumns.map(n=>{const i=$u(e[n]??"");return i.length>0?(r.set(n,i),i):r.get(n)??""}).filter(n=>n.length>0).join(t.delimiter)}function FV(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=$u(p),m=DV(g);if(m===null){a.push(`第 ${v} 行, 第 ${i+1} 列(${s}): 源数据不是有效数字,原始值="${iE(p)}",已跳过`),n+=1;return}const x=kV(h,t);if(!x){const C=N_(h,e.headers,t.sourceDescriptionColumns);a.push(`第 ${v} 行: 源描述为空,字段=${C},已跳过`),n+=1;return}const _=bV(h,t,o);if(!_){const C=N_(h,e.headers,t.targetDescriptionColumns);a.push(`第 ${v} 行: 目标描述为空,字段=${C},且无可继承的上方值,已跳过`),n+=1;return}const y=`${x}@@${_}`,k=r.get(y)??0;r.set(y,k+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 IV(e,t){return t==="source-to-target"?e:e.map(r=>({source:r.target,target:r.source,value:r.value}))}const MV=[{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"]}],RV="/assets/webicon-ajYrwN-u.png",PV="/assets/%E6%98%9F%E7%A8%8B%E6%A1%91%E5%9F%BA%E5%9B%BE-B-SY2I_4.svg",LV="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",OV="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",BV="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",NV="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",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='%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",HV="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",VV="/assets/sankeyview-4v1IjNp4.svg",zV="/assets/information-D2vc0JhH.svg",WV="/assets/select-B3ZlOGIm.svg",GV={class:"page"},$V={class:"top-bar"},XV={class:"brand"},YV=["src"],KV=["src"],ZV={class:"toolbar"},jV=["src"],qV={class:"theme-wheel-wrap"},JV=["onClick"],QV=["src"],ez={class:"tool-item"},tz=["src"],rz=["onKeydown"],az={class:"upload-text"},nz={class:"export-box"},iz=["src"],sz=["src"],oz=["src"],fz={class:"content"},lz={class:"left-pane"},uz={class:"panel block-panel select-panel"},cz=["src"],hz={class:"field-block"},dz=["src","alt"],vz={key:0,class:"column-list"},pz=["src"],gz={class:"column-label"},mz=["onClick"],xz=["src"],_z={class:"field-block"},yz=["src","alt"],wz={key:0,class:"column-list"},Tz=["src"],Sz={class:"column-label"},Ez=["onClick"],Cz=["src"],Az={class:"field-block"},Dz=["src","alt"],kz={key:0,class:"column-list"},bz=["src"],Fz={class:"column-label"},Iz=["onClick"],Mz=["src"],Rz={class:"panel info-panel"},Pz=["src"],Lz={key:0,class:"info-log-list"},Oz={key:1,class:"info-log-empty"},Bz={class:"panel preview-panel"},Nz={class:"preview-head"},Uz=["src"],Hz={class:"preview-controls"},Vz={class:"compact-control"},zz=["src"],Wz=["value"],Gz={class:"compact-control"},$z=["src"],Xz=["value"],Yz={class:"slider-label desktop-only"},Kz=["src"],Zz={class:"slider-track-wrap"},jz={class:"slider-label desktop-only"},qz=["src"],Jz={class:"slider-track-wrap"},Qz={key:2,class:"compact-control mobile-only"},eW=["value"],tW={class:"direction-switch-text"},rW={class:"label-position-control"},aW=["value"],nW={class:"target-align-control"},iW=["value"],pd="sankey-workspace-v1",X_=1,Y_=42,K_=8,Z_=8,sW=iC({__name:"App",setup(e){Kp([zM,MR,mP,hP]);const t=MV,r=kt("figma-violet"),a=kt(!1),n=kt("点击上传或将csv/xls文件拖到这里上传"),i=kt(""),s=kt(""),o=kt(null),f=kt(0),l=kt(null),u=kt(null),c=kt(null),h=kt(null);let d=null,v=0,p=null;const g=kt({}),m=kt(null),x=kt(null),_=kt(null),y=kt(!1),k=kt(!1),C=kt(!1),w=Vf({sourceDataColumn:null,sourceDescriptionColumns:[],targetDescriptionColumns:[],delimiter:"-"}),E=kt("source-to-target"),S=kt(5),D=kt(24),b=kt("inner"),F=[{value:"inner",label:"内"},{value:"outer",label:"外"},{value:"left",label:"左"},{value:"right",label:"右"}],B=kt("between"),Y=[{value:"between",label:"两端"},{value:"middle",label:"中间"},{value:"top",label:"顶部"},{value:"bottom",label:"底部"}],Q=[{value:"source-to-target",label:"源"},{value:"target-to-source",label:"目标"}],J=[0,5,10,15,20,25,30],q=[0,10,20,30,40,50,60,70,80],ce=Vf({sourceData:!0,sourceDesc:!0,targetDesc:!0}),U=ea(()=>{const ne=t.findIndex(X=>X.id===r.value);return ne>=0?ne:0}),ye=ea(()=>t[U.value]??t[0]),pe=ea(()=>{const ne=m.value?.headers??[];return ne.length>0?ne.map((X,re)=>X||`列${re+1}`):["列1","列2","列3","列4"]}),M=ea(()=>x.value?.meta.warnings.slice(0,8)??[]),H=ea(()=>w.sourceDataColumn===null?"未选择":pe.value[w.sourceDataColumn]??`列${w.sourceDataColumn+1}`),z=ea(()=>w.sourceDescriptionColumns.length===0?"未选择":w.sourceDescriptionColumns.map(ne=>pe.value[ne]??`列${ne+1}`).join(",")),V=ea(()=>w.targetDescriptionColumns.length===0?"未选择":w.targetDescriptionColumns.map(ne=>pe.value[ne]??`列${ne+1}`).join(",")),ie=ea(()=>{const ne=[],X=m.value,re=x.value;return X?ne.push({level:"info",text:`解析信息: 已加载 ${X.rows.length} 行,${X.headers.length} 列`}):ne.push({level:"info",text:"解析信息: 尚未加载数据文件"}),re&&(ne.push({level:"info",text:`解析信息: 已生成 ${re.nodes.length} 个节点,${re.links.length} 条连线`}),re.meta.droppedRows>0&&ne.push({level:"warn",text:`告警: 已跳过 ${re.meta.droppedRows} 行异常数据`})),ne.push({level:"info",text:`日志: 源数据列=${H.value}`}),ne.push({level:"info",text:`日志: 源标签列=${z.value}`}),ne.push({level:"info",text:`日志: 目标标签列=${V.value}`}),M.value.forEach(Ae=>{ne.push({level:"warn",text:`告警: ${Ae}`})}),i.value&&ne.push({level:"error",text:`错误: ${i.value}`}),s.value&&ne.push({level:"error",text:`错误: ${s.value}`}),ne});function xe(ne,X,re){const Ae=ne===0&&X>0,A=X===0&&ne>0;if(!(!Ae&&!A))return re==="left"?"left":re==="right"?"right":re==="inner"?Ae?"right":"left":Ae?"left":"right"}function de(ne){const X=new Map,re=Math.max(0,f.value-D.value*2-K_-Z_);if(re<=0||ne.length===0)return X;const Ae=new Map,A=new Map,P=new Map,I=new Map,R=[],L=new Set;ne.forEach(Ue=>{A.set(Ue.source,(A.get(Ue.source)??0)+1),Ae.set(Ue.target,(Ae.get(Ue.target)??0)+1),P.set(Ue.source,(P.get(Ue.source)??0)+Ue.value),I.set(Ue.target,(I.get(Ue.target)??0)+Ue.value),L.has(Ue.source)||(L.add(Ue.source),R.push(Ue.source)),L.has(Ue.target)||(L.add(Ue.target),R.push(Ue.target))});const O=R.filter(Ue=>{const Et=Ae.get(Ue)??0,Fn=A.get(Ue)??0;return Et===0&&Fn>0}),j=R.filter(Ue=>{const Et=Ae.get(Ue)??0;return(A.get(Ue)??0)===0&&Et>0});if(O.length===0||j.length===0)return X;const le=O.reduce((Ue,Et)=>Ue+(P.get(Et)??0),0);if(le<=0)return X;const te=Math.max(0,S.value),ae=Math.max(0,O.length-1),se=Math.max(0,re-te*ae),we=le>0?se/le:0,Ce=le*we,Fe=Ce+te*ae;let Te=te;B.value==="between"&&j.length>1&&(Te=(Fe-Ce)/(j.length-1)),Te=Math.max(0,Te);const ke=Ce+Te*Math.max(0,j.length-1);let He=0;B.value==="middle"?He=(Fe-ke)/2:B.value==="bottom"&&(He=Fe-ke),He=Math.max(0,He);let pt=He;return j.forEach((Ue,Et)=>{X.set(Ue,pt/re),pt+=(I.get(Ue)??0)*we,Et{const ne=oe.value,X=new Set,re=new Map,Ae=new Map,A=de(ne);ne.forEach(I=>{X.add(I.source),X.add(I.target),Ae.set(I.source,(Ae.get(I.source)??0)+1),re.set(I.target,(re.get(I.target)??0)+1)});const P=ye.value.colors;return Array.from(X).map((I,R)=>{const L=re.get(I)??0,O=Ae.get(I)??0,j=xe(L,O,b.value);return{name:I,itemStyle:{color:P[R%P.length]},localY:A.get(I),label:j?{position:j}:void 0}})}),oe=ea(()=>x.value?IV(x.value.links,E.value):[]),he=ea(()=>({backgroundColor:"#f7f8fa",tooltip:{trigger:"item"},series:[{type:"sankey",left:D.value,top:D.value+K_,right:D.value,bottom:D.value+Z_,nodeAlign:"justify",nodeGap:S.value,nodeWidth:14,roam:!0,label:{color:"#4e5969",fontSize:12},lineStyle:{color:"source",curveness:.45,opacity:.45},data:fe.value,links:oe.value}]}));eC(()=>{const ne=m.value;if(!ne){x.value=null,s.value="";return}if(w.sourceDataColumn===null){x.value=null,s.value="请选择源数据列";return}if(w.targetDescriptionColumns.length===0){x.value=null,s.value="请至少选择一个目标描述列";return}try{x.value=FV(ne,{sourceDataColumn:w.sourceDataColumn,sourceDescriptionColumns:[...w.sourceDescriptionColumns],targetDescriptionColumns:[...w.targetDescriptionColumns],delimiter:w.delimiter}),s.value=""}catch(X){x.value=null,s.value=X instanceof Error?X.message:"构建桑基图失败"}}),vf(he,()=>{d&&d.setOption(he.value,!0)},{deep:!0}),vf(()=>[w.sourceDataColumn,w.sourceDescriptionColumns.join(","),w.targetDescriptionColumns.join(","),w.delimiter,E.value,S.value,D.value,r.value,b.value,B.value,ce.sourceData,ce.sourceDesc,ce.targetDesc,_.value?.name??"",_.value?.base64.length??0],()=>{y.value||Ol()});function T(){N(),W(),f.value=o.value?.clientHeight??f.value,d?.resize()}function N(){if(typeof window>"u")return;const ne=window.visualViewport?.height??window.innerHeight;document.documentElement.style.setProperty("--app-vh",`${ne*.01}px`)}function W(){typeof window>"u"||(k.value=window.matchMedia("(max-width: 640px)").matches,C.value=window.matchMedia("(max-width: 1024px)").matches)}function ee(){const ne=o.value;!ne||typeof ResizeObserver>"u"||(p?.disconnect(),p=new ResizeObserver(()=>{T()}),p.observe(ne))}function Z(){a.value=!1}function K(){const ne=!a.value;a.value=ne,ne&&Yv(()=>{be(),ge(U.value)})}function ue(ne){r.value=ne,a.value=!1}function ve(ne){const X=ne.target;if(X&&a.value){const re=h.value,Ae=c.value;!re?.contains(X)&&!Ae?.contains(X)&&(a.value=!1)}}function me(){v!==0&&cancelAnimationFrame(v),v=requestAnimationFrame(()=>{const ne=u.value;if(!ne)return;const X=Math.round(ne.scrollTop/Y_),re=Math.max(0,Math.min(t.length-1,X));r.value=t[re]?.id??r.value})}function ge(ne,X){const re=u.value;if(!re)return;const Ae=ne*Y_,A=Math.max(0,re.scrollHeight-re.clientHeight),P=Math.max(0,Math.min(A,Ae));re.scrollTo({top:P,behavior:"auto"})}function be(){if(!a.value)return;const ne=c.value,X=h.value;if(!ne||!X)return;const re=ne.getBoundingClientRect(),Ae=X.offsetWidth||292,A=window.innerWidth,P=8;let I=re.left+re.width/2-Ae/2;I=Math.max(P,Math.min(A-Ae-P,I));const R=re.bottom+8,L=re.left+re.width/2,O=Math.max(20,Math.min(Ae-20,L-I));g.value={left:`${I}px`,top:`${R}px`,"--theme-arrow-left":`${O}px`}}function Ee(ne){const X=Math.abs(ne-U.value);return X===0?1:X===1?.75:X===2?.5:.3}function Se(ne,X,re){const Ae=Math.max(1,re-X),A=Math.max(0,Math.min(1,(ne-X)/Ae)),I=(.5-A)*18;return{left:`calc(${A*100}% + ${I}px)`}}function Ie(ne,X,re){const Ae=Math.max(1,re-X);return{"--slider-percent":`${Math.max(0,Math.min(1,(ne-X)/Ae))*100}%`}}function Me(ne){if(w.sourceDescriptionColumns.includes(ne)){w.sourceDescriptionColumns=w.sourceDescriptionColumns.filter(X=>X!==ne);return}w.sourceDescriptionColumns=[...w.sourceDescriptionColumns,ne].sort((X,re)=>X-re)}function Ne(ne){ce[ne]=!ce[ne]}function Pe(ne){if(w.targetDescriptionColumns.includes(ne)){w.targetDescriptionColumns=w.targetDescriptionColumns.filter(X=>X!==ne);return}w.targetDescriptionColumns=[...w.targetDescriptionColumns,ne].sort((X,re)=>X-re)}function ot(){E.value=E.value==="source-to-target"?"target-to-source":"source-to-target"}function Re(){l.value?.click()}function Ye(ne){return ne.trim().toLowerCase().replace(/[\s_-]+/g,"")}function Je(ne,X){const re=new Set(X.map(Ae=>Ye(Ae)));return ne.findIndex(Ae=>re.has(Ye(Ae)))}function at(ne){const X=ne.replace(/,/g,"").trim();return X?!Number.isNaN(Number(X)):!1}function vr(ne){return(ne.rows[0]??[]).findIndex(re=>at(re??""))}function Bt(ne){const X=ne.headers,re=Je(X,["data","value","数据","值"]),Ae=vr(ne),A=Je(X,["source","源"]),P=Je(X,["target","目标"]);w.sourceDataColumn=re>=0?re:Ae>=0?Ae:null,w.sourceDescriptionColumns=A>=0?[A]:[],w.targetDescriptionColumns=P>=0?[P]:[]}function pr(ne){w.sourceDataColumn=ne.sourceDataColumn,w.sourceDescriptionColumns=[...ne.sourceDescriptionColumns],w.targetDescriptionColumns=[...ne.targetDescriptionColumns],w.delimiter=ne.delimiter}function hi(ne,X){const re=ne.toLowerCase();if(re.endsWith(".csv")){const Ae=new TextDecoder().decode(X);return AV(Ae)}if(re.endsWith(".xlsx")||re.endsWith(".xls"))return B_(X);throw new Error("仅支持 .csv / .xlsx / .xls 文件")}function di(ne){const X=new Uint8Array(ne),re=32768;let Ae="";for(let A=0;AMath.min(Math.max(O,0),re-1),A=O=>Array.isArray(O)?O.filter(j=>Number.isInteger(j)).map(j=>Ae(j)).filter((j,le,te)=>te.indexOf(j)===le).sort((j,le)=>j-le):[],P={sourceDataColumn:Ae(2),sourceDescriptionColumns:[Ae(0)].filter((O,j,le)=>le.indexOf(O)===j),targetDescriptionColumns:[Ae(2)].filter((O,j,le)=>le.indexOf(O)===j),delimiter:"-"};if(!ne)return P;const I=typeof ne.sourceDataColumn=="number"&&Number.isInteger(ne.sourceDataColumn)?Ae(ne.sourceDataColumn):P.sourceDataColumn,R=A(ne.sourceDescriptionColumns),L=A(ne.targetDescriptionColumns);return{sourceDataColumn:I,sourceDescriptionColumns:R,targetDescriptionColumns:L.length>0?L:P.targetDescriptionColumns,delimiter:typeof ne.delimiter=="string"&&ne.delimiter.length>0?ne.delimiter:"-"}}function Ol(){if(typeof window>"u")return;const ne={version:X_,uploadedFile:_.value??void 0,mapping:{sourceDataColumn:w.sourceDataColumn,sourceDescriptionColumns:[...w.sourceDescriptionColumns],targetDescriptionColumns:[...w.targetDescriptionColumns],delimiter:w.delimiter},direction:E.value,nodeGap:S.value,chartPadding:D.value,selectedThemeId:r.value,labelPositionMode:b.value,targetAlignMode:B.value,sectionVisible:{sourceData:ce.sourceData,sourceDesc:ce.sourceDesc,targetDesc:ce.targetDesc}};try{window.localStorage.setItem(pd,JSON.stringify(ne))}catch(X){console.warn("工作区保存失败:",X)}}async function ws(){if(typeof window>"u")return{restoredUploadedFile:!1};const ne=window.localStorage.getItem(pd);if(!ne)return{restoredUploadedFile:!1};y.value=!0;try{const X=JSON.parse(ne);if(X.version!==X_)return{restoredUploadedFile:!1};if((X.direction==="source-to-target"||X.direction==="target-to-source")&&(E.value=X.direction),typeof X.nodeGap=="number"&&Number.isFinite(X.nodeGap)&&(S.value=Math.max(0,Math.min(30,X.nodeGap))),typeof X.chartPadding=="number"&&Number.isFinite(X.chartPadding)&&(D.value=Math.max(0,Math.min(80,X.chartPadding))),typeof X.selectedThemeId=="string"&&t.some(A=>A.id===X.selectedThemeId)&&(r.value=X.selectedThemeId),(X.labelPositionMode==="inner"||X.labelPositionMode==="outer"||X.labelPositionMode==="left"||X.labelPositionMode==="right")&&(b.value=X.labelPositionMode),(X.targetAlignMode==="between"||X.targetAlignMode==="middle"||X.targetAlignMode==="top"||X.targetAlignMode==="bottom")&&(B.value=X.targetAlignMode),X.sectionVisible&&(typeof X.sectionVisible.sourceData=="boolean"&&(ce.sourceData=X.sectionVisible.sourceData),typeof X.sectionVisible.sourceDesc=="boolean"&&(ce.sourceDesc=X.sectionVisible.sourceDesc),typeof X.sectionVisible.targetDesc=="boolean"&&(ce.targetDesc=X.sectionVisible.targetDesc)),!X.uploadedFile)return{restoredUploadedFile:!1,restoredMapping:X.mapping};const re=Rl(X.uploadedFile.base64),Ae=hi(X.uploadedFile.name,re);return m.value=Ae,_.value=X.uploadedFile,X.mapping?pr(Ll(X.mapping,Ae.headers.length)):Bt(Ae),n.value=`已恢复: ${X.uploadedFile.name}(${Ae.rows.length} 行)`,i.value="",{restoredUploadedFile:!0}}catch(X){return window.localStorage.removeItem(pd),console.warn("工作区恢复失败,已清理坏数据:",X),{restoredUploadedFile:!1}}finally{y.value=!1}}async function Bl(ne){i.value="";try{const X=await ne.arrayBuffer(),re=hi(ne.name,X);m.value=re,Bt(re),_.value=Pl(ne.name,ne.type,X),n.value=`已加载: ${ne.name}(${re.rows.length} 行)`,Ol()}catch(X){i.value=X instanceof Error?X.message:"文件解析失败"}}async function Ac(ne){const X=ne.target,re=X.files?.[0];re&&(await Bl(re),X.value="")}async function Dc(ne){const X=ne.dataTransfer?.files?.[0];X&&await Bl(X)}async function kc(){if(!m.value)try{const ne=await fetch("/data/example0.xlsx",{cache:"no-store"});if(!ne.ok)throw new Error(`示例文件加载失败: HTTP ${ne.status}`);const X=await ne.arrayBuffer(),re=B_(X);m.value=re,Bt(re),_.value=null,n.value=`已加载: example0.xlsx(${re.rows.length} 行)`,i.value=""}catch(ne){i.value=ne instanceof Error?ne.message:"示例文件加载失败"}}function Nl(){const ne=new Date,X=re=>String(re).padStart(2,"0");return`${ne.getFullYear()}${X(ne.getMonth()+1)}${X(ne.getDate())}_${X(ne.getHours())}${X(ne.getMinutes())}${X(ne.getSeconds())}`}function Ul(ne,X){const re=document.createElement("a");re.href=ne,re.download=X,document.body.append(re),re.click(),re.remove()}function bc(){if(!d)return;const ne=d.getWidth(),X=d.getHeight(),re=document.createElement("div");re.style.position="fixed",re.style.left="-99999px",re.style.top="-99999px",re.style.width=`${ne}px`,re.style.height=`${X}px`,re.style.opacity="0",re.style.pointerEvents="none",document.body.append(re);let Ae=null;try{Ae=Hm(re,void 0,{renderer:"svg",width:ne,height:X}),Ae.setOption(d.getOption(),!0);const A=Ae.getDataURL({type:"svg",backgroundColor:"#ffffff"});Ul(A,`sankey_${Nl()}.svg`)}finally{Ae?.dispose(),re.remove()}}function Fc(){if(!d)return;const ne=d.getDataURL({type:"png",backgroundColor:"#ffffff",pixelRatio:2});Ul(ne,`sankey_${Nl()}.png`)}return by(()=>{const ne=o.value;ne&&(N(),W(),d=Hm(ne,void 0,{renderer:"canvas"}),f.value=ne.clientHeight,d.setOption(he.value),ee(),T(),(async()=>{const{restoredUploadedFile:X,restoredMapping:re}=await ws();X||(await kc(),re&&m.value&&pr(Ll(re,m.value.headers.length)))})(),window.addEventListener("resize",T),window.visualViewport?.addEventListener("resize",T),window.visualViewport?.addEventListener("scroll",T),window.addEventListener("resize",be),window.addEventListener("scroll",be,!0),window.addEventListener("pointerdown",ve))}),Fy(()=>{window.removeEventListener("resize",T),window.visualViewport?.removeEventListener("resize",T),window.visualViewport?.removeEventListener("scroll",T),window.removeEventListener("resize",be),window.removeEventListener("scroll",be,!0),window.removeEventListener("pointerdown",ve),p?.disconnect(),p=null,d?.dispose(),d=null,v!==0&&(cancelAnimationFrame(v),v=0)}),(ne,X)=>(ht(),dt("div",GV,[_e("header",$V,[_e("div",XV,[_e("img",{src:nt(RV),alt:"webicon",class:"logo"},null,8,YV),_e("img",{src:nt(PV),alt:"星程桑基图",class:"title-logo"},null,8,KV)]),_e("div",ZV,[_e("div",{ref_key:"themeTriggerRef",ref:c,class:"tool-item theme-trigger"},[X[14]||(X[14]=_e("span",{class:"tool-label"},"选择主题",-1)),_e("button",{class:"icon-btn",type:"button",title:"选择主题","aria-label":"选择主题",onClick:Fo(K,["stop"])},[_e("img",{src:nt(LV),alt:"choose-color",title:"选择主题"},null,8,jV)]),a.value?(ht(),dt("div",{key:0,ref_key:"themePopoverRef",ref:h,class:"theme-popover",style:Sa(g.value),onClick:X[0]||(X[0]=Fo(()=>{},["stop"]))},[X[13]||(X[13]=_e("div",{class:"theme-header"},"选择配色主题",-1)),_e("div",qV,[_e("div",{ref_key:"themeWheelRef",ref:u,class:"theme-wheel",onScroll:me},[(ht(!0),dt(bt,null,ga(nt(t),(re,Ae)=>(ht(),dt("button",{key:re.id,class:Js(["theme-row",{selected:r.value===re.id}]),style:Sa({opacity:Ee(Ae)}),type:"button",onClick:A=>ue(re.id)},[_e("img",{src:r.value===re.id?nt(H_):nt(V_),alt:"主题选择"},null,8,QV),_e("div",{class:"palette",style:Sa({gridTemplateColumns:`repeat(${re.colors.length}, 1fr)`})},[(ht(!0),dt(bt,null,ga(re.colors,A=>(ht(),dt("span",{key:`${re.id}-${A}`,class:"palette-cell",style:Sa({backgroundColor:A})},null,4))),128))],4)],14,JV))),128))],544),X[12]||(X[12]=_e("div",{class:"theme-mask"},null,-1))])],4)):Wl("",!0)],512),_e("div",ez,[X[15]||(X[15]=_e("span",{class:"tool-label"},"文件上传",-1)),_e("button",{class:"icon-btn",type:"button",title:"上传文件","aria-label":"上传文件",onClick:Re},[_e("img",{src:nt(OV),alt:"upload",title:"上传文件"},null,8,tz)])]),_e("label",{class:"upload-area",onDragover:X[1]||(X[1]=Fo(()=>{},["prevent"])),onDrop:Fo(Dc,["prevent"]),onKeydown:kA(Fo(Re,["prevent"]),["enter"]),onClick:Z},[_e("input",{ref_key:"fileInputRef",ref:l,class:"hidden-input",type:"file",accept:".csv,.xls,.xlsx",onChange:Ac},null,544),_e("span",az,Ir(n.value),1)],40,rz),_e("div",nz,[_e("img",{src:nt(BV),alt:"export",class:"export-main",title:"导出"},null,8,iz),_e("button",{class:"icon-btn export-item",type:"button",title:"导出 SVG","aria-label":"导出 SVG",onClick:bc},[_e("img",{src:nt(NV),alt:"export-svg",title:"导出 SVG"},null,8,sz)]),_e("button",{class:"icon-btn export-item",type:"button",title:"导出 PNG","aria-label":"导出 PNG",onClick:Fc},[_e("img",{src:nt(UV),alt:"export-png",title:"导出 PNG"},null,8,oz)])])])]),_e("main",fz,[_e("section",lz,[_e("article",uz,[_e("img",{src:nt(WV),alt:"数据选择器",class:"panel-title-svg panel-title-select"},null,8,cz),_e("div",hz,[_e("button",{class:"field-title-wrap",type:"button",onClick:X[2]||(X[2]=re=>Ne("sourceData"))},[_e("img",{src:ce.sourceData?nt(vd):nt(dd),alt:ce.sourceData?"折叠":"展开",class:"expand-icon"},null,8,dz),X[16]||(X[16]=_e("h3",null,"源数据(link value)",-1))]),ce.sourceData?(ht(),dt("div",vz,[(ht(!0),dt(bt,null,ga(pe.value,(re,Ae)=>(ht(),dt("div",{key:`source-data-${Ae}`,class:"column-row"},[_e("img",{src:nt(HV),alt:"数据列",class:"column-icon"},null,8,pz),_e("span",gz,Ir(re),1),_e("button",{class:"select-btn",type:"button",onClick:A=>w.sourceDataColumn=Ae},[_e("img",{src:w.sourceDataColumn===Ae?nt(H_):nt(V_),alt:"单选"},null,8,xz)],8,mz)]))),128))])):Wl("",!0)]),_e("div",_z,[_e("button",{class:"field-title-wrap",type:"button",onClick:X[3]||(X[3]=re=>Ne("sourceDesc"))},[_e("img",{src:ce.sourceDesc?nt(vd):nt(dd),alt:ce.sourceDesc?"折叠":"展开",class:"expand-icon"},null,8,yz),X[17]||(X[17]=_e("h3",null,"源标签(Source label)",-1))]),ce.sourceDesc?(ht(),dt("div",wz,[(ht(!0),dt(bt,null,ga(pe.value,(re,Ae)=>(ht(),dt("div",{key:`source-desc-${Ae}`,class:"column-row"},[_e("img",{src:nt(U_),alt:"源标签列",class:"column-icon"},null,8,Tz),_e("span",Sz,Ir(re),1),_e("button",{class:"select-btn",type:"button",onClick:A=>Me(Ae)},[_e("img",{src:w.sourceDescriptionColumns.includes(Ae)?nt(z_):nt(W_),alt:"复选"},null,8,Cz)],8,Ez)]))),128))])):Wl("",!0)]),_e("div",Az,[_e("button",{class:"field-title-wrap",type:"button",onClick:X[4]||(X[4]=re=>Ne("targetDesc"))},[_e("img",{src:ce.targetDesc?nt(vd):nt(dd),alt:ce.targetDesc?"折叠":"展开",class:"expand-icon"},null,8,Dz),X[18]||(X[18]=_e("h3",null,"目标标签(target label)",-1))]),ce.targetDesc?(ht(),dt("div",kz,[(ht(!0),dt(bt,null,ga(pe.value,(re,Ae)=>(ht(),dt("div",{key:`target-desc-${Ae}`,class:"column-row"},[_e("img",{src:nt(U_),alt:"目标标签列",class:"column-icon"},null,8,bz),_e("span",Fz,Ir(re),1),_e("button",{class:"select-btn",type:"button",onClick:A=>Pe(Ae)},[_e("img",{src:w.targetDescriptionColumns.includes(Ae)?nt(z_):nt(W_),alt:"复选"},null,8,Mz)],8,Iz)]))),128))])):Wl("",!0)])]),_e("article",Rz,[_e("img",{src:nt(zV),alt:"信息日志",class:"panel-title-svg panel-title-info"},null,8,Pz),ie.value.length>0?(ht(),dt("ul",Lz,[(ht(!0),dt(bt,null,ga(ie.value,(re,Ae)=>(ht(),dt("li",{key:`${re.level}-${Ae}-${re.text}`,class:Js(["info-log-item",`level-${re.level}`])},Ir(re.text),3))),128))])):(ht(),dt("p",Oz,"暂无日志"))])]),_e("section",Bz,[_e("div",Nz,[_e("img",{src:nt(VV),alt:"桑基图预览",title:"桑基图预览",class:"panel-title-svg panel-title-preview"},null,8,Uz),_e("div",Hz,[C.value?(ht(),dt(bt,{key:0},[_e("label",Vz,[_e("img",{src:nt(G_),alt:"间距",title:"间距",class:"slider-icon"},null,8,zz),pi(_e("select",{"onUpdate:modelValue":X[5]||(X[5]=re=>S.value=re),class:"compact-select","aria-label":"间距"},[(ht(),dt(bt,null,ga(J,re=>_e("option",{key:`gap-${re}`,value:re},Ir(re),9,Wz)),64))],512),[[bo,S.value,void 0,{number:!0}]])]),_e("label",Gz,[_e("img",{src:nt($_),alt:"边距",title:"边距",class:"slider-icon"},null,8,$z),pi(_e("select",{"onUpdate:modelValue":X[6]||(X[6]=re=>D.value=re),class:"compact-select","aria-label":"边距"},[(ht(),dt(bt,null,ga(q,re=>_e("option",{key:`padding-${re}`,value:re},Ir(re),9,Xz)),64))],512),[[bo,D.value,void 0,{number:!0}]])])],64)):(ht(),dt(bt,{key:1},[_e("label",Yz,[_e("img",{src:nt(G_),alt:"间距",title:"间距",class:"slider-icon"},null,8,Kz),_e("div",Zz,[_e("span",{class:"slider-value",style:Sa(Se(S.value,0,30))},Ir(S.value),5),pi(_e("input",{"onUpdate:modelValue":X[7]||(X[7]=re=>S.value=re),class:"slider-input",style:Sa(Ie(S.value,0,30)),type:"range",min:"0",max:"30","aria-label":"间距"},null,4),[[lg,S.value,void 0,{number:!0}]])])]),_e("label",jz,[_e("img",{src:nt($_),alt:"边距",title:"边距",class:"slider-icon"},null,8,qz),_e("div",Jz,[_e("span",{class:"slider-value",style:Sa(Se(D.value,0,80))},Ir(D.value),5),pi(_e("input",{"onUpdate:modelValue":X[8]||(X[8]=re=>D.value=re),class:"slider-input",style:Sa(Ie(D.value,0,80)),type:"range",min:"0",max:"80","aria-label":"边距"},null,4),[[lg,D.value,void 0,{number:!0}]])])])],64)),k.value?(ht(),dt("label",Qz,[X[19]||(X[19]=_e("span",{class:"compact-label"},"方向",-1)),pi(_e("select",{"onUpdate:modelValue":X[9]||(X[9]=re=>E.value=re),class:"compact-select","aria-label":"方向"},[(ht(),dt(bt,null,ga(Q,re=>_e("option",{key:re.value,value:re.value},Ir(re.label),9,eW)),64))],512),[[bo,E.value]])])):(ht(),dt("button",{key:3,class:"direction-control desktop-only",type:"button",onClick:ot},[X[21]||(X[21]=_e("span",{class:"direction-label"},"方向",-1)),_e("span",{class:Js(["direction-switch",{on:E.value==="source-to-target"}])},[_e("span",tW,Ir(E.value==="source-to-target"?"源":"目标"),1),X[20]||(X[20]=_e("span",{class:"direction-switch-thumb"},null,-1))],2)])),_e("label",rW,[X[22]||(X[22]=_e("span",{class:"label-position-label"},"标签位置",-1)),pi(_e("select",{"onUpdate:modelValue":X[10]||(X[10]=re=>b.value=re),class:"label-position-select"},[(ht(),dt(bt,null,ga(F,re=>_e("option",{key:re.value,value:re.value},Ir(re.label),9,aW)),64))],512),[[bo,b.value]])]),_e("label",nW,[X[23]||(X[23]=_e("span",{class:"target-align-label"},"汇聚对齐",-1)),pi(_e("select",{"onUpdate:modelValue":X[11]||(X[11]=re=>B.value=re),class:"target-align-select"},[(ht(),dt(bt,null,ga(Y,re=>_e("option",{key:re.value,value:re.value},Ir(re.label),9,iW)),64))],512),[[bo,B.value]])])])]),_e("div",{ref_key:"chartRef",ref:o,class:"chart-area"},null,512)])]),X[24]||(X[24]=_e("footer",{class:"footer"},"@版权说明:星程社所有,反馈邮箱:douboer@gmail.com",-1))]))}});IA(sW).mount("#app"); diff --git a/dist/assets/information-D2vc0JhH.svg b/dist/assets/information-D2vc0JhH.svg new file mode 100644 index 0000000..3b3945c --- /dev/null +++ b/dist/assets/information-D2vc0JhH.svg @@ -0,0 +1,4 @@ + + + + diff --git a/dist/assets/sankeyview-4v1IjNp4.svg b/dist/assets/sankeyview-4v1IjNp4.svg new file mode 100644 index 0000000..a9a2a0b --- /dev/null +++ b/dist/assets/sankeyview-4v1IjNp4.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/dist/assets/select-B3ZlOGIm.svg b/dist/assets/select-B3ZlOGIm.svg new file mode 100644 index 0000000..3660533 --- /dev/null +++ b/dist/assets/select-B3ZlOGIm.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/dist/assets/webicon-ajYrwN-u.png b/dist/assets/webicon-ajYrwN-u.png new file mode 100644 index 0000000..05220b4 Binary files /dev/null and b/dist/assets/webicon-ajYrwN-u.png differ diff --git a/dist/assets/星程桑基图-B-SY2I_4.svg b/dist/assets/星程桑基图-B-SY2I_4.svg new file mode 100644 index 0000000..011baf9 --- /dev/null +++ b/dist/assets/星程桑基图-B-SY2I_4.svg @@ -0,0 +1,3 @@ + + + diff --git a/dist/data/example.xlsx b/dist/data/example.xlsx new file mode 100644 index 0000000..47c553d Binary files /dev/null and b/dist/data/example.xlsx differ diff --git a/dist/data/example0.xlsx b/dist/data/example0.xlsx new file mode 100644 index 0000000..3e474af Binary files /dev/null and b/dist/data/example0.xlsx differ diff --git a/dist/data/example00.xlsx b/dist/data/example00.xlsx new file mode 100644 index 0000000..9d89343 Binary files /dev/null and b/dist/data/example00.xlsx differ diff --git a/dist/data/example1.xlsx b/dist/data/example1.xlsx new file mode 100644 index 0000000..0441816 Binary files /dev/null and b/dist/data/example1.xlsx differ diff --git a/dist/data/拉流切图节点与算法池信息.csv b/dist/data/拉流切图节点与算法池信息.csv new file mode 100644 index 0000000..9806e00 --- /dev/null +++ b/dist/data/拉流切图节点与算法池信息.csv @@ -0,0 +1,32 @@ +分析云切图节点,当前负载,算力池信息,算法地址,模型,算法版本,最大容量(路数),当前算法负载 +宁波北欧1,3197,宁波通算+嘉善智算,http://14.174.128.46:8899/api/v1/detect,小模型+大模型,0109,10000,9364 +宁波北欧2,2729,,,,,, +宁波鄞中24,3438,,,,,, +宁波北欧5,1677,宁波通算+嘉善智算,http://14.174.128.49:8899/api/v1/detect,小模型+大模型,0109,10000,6876 +宁波北欧8,2594,,,,,, +宁波鄞中25,2605,,,,,, +宁波北欧3,281,金华林田通算+嘉善智算,http://14.182.3.216:8899/api/v1/detect,小模型+大模型,0109,18000,15561 +宁波北欧6,3154,,,,,, +宁波北欧7,2761,,,,,, +宁波北欧9,3321,,,,,, +宁波北欧11,2647,,,,,, +宁波鄞中14,3397,,,,,, +宁波北欧4,2014,金华林田通算+嘉善智算,http://14.182.3.218:8899/api/v1/detect,小模型+大模型,0109,18000,6399 +宁波北欧13,0,,,,,, +宁波鄞中21,3571,,,,,, +宁波鄞中22,814,,,,,, +台州1,0,嘉善算力池0109版本(172.64.142.10:8888),http://172.64.142.10:8888/ai/aiFactoryServer/v1/apis/1/servicecode-qr22:1.1,,,, +宁波鄞中18,3363,湖州通算+嘉善智算,http://14.172.0.11:8897/api/v1/detect,小模型,0908,18000,6530 +宁波鄞中19,3167,,,,,, +宁波鄞中20,2391,湖州通算+嘉善智算,http://14.172.0.12:8888/ai/aiFactoryServer/v1/apis/1/servicecode-bz0t:1.1,小模型,0908,8000,2391 +宁波北欧10,2582,嘉兴四级算力池,http://14.173.1.216:8898/api/v1/detect,小模型,0908,12000,11623 +宁波北欧12,2610,,,,,, +宁波鄞中15,507,,,,,, +宁波鄞中26,2914,,,,,, +宁波鄞中27,3010,,,,,, +嘉兴1,0,嘉兴四级算力池,http://172.61.142.10:8898/api/v1/detect,小模型,0908,2000,1418 +丽水1,1418,,,,,, +宁波鄞中16,1534,台州四级算力池,http://172.67.14.15:8888/ai/aiFactoryServer/v1/apis/1/servicecode-tqs9:1.1,小模型,0908,8000,2292 +宁波鄞中17,758,,,,,, +嘉兴2,0,,,,,, +丽水2,0,,,,,, \ No newline at end of file diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..a4bbc61 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,13 @@ + + + + + + 星程桑基图 + + + + +
+ +