plugin-file-preview-auth 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunkplugin_file_preview_auth=self.webpackChunkplugin_file_preview_auth||[]).push([["514"],{94:function(t,e,n){var r=n(156),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,n){var r,l={},u=null,h=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)o.call(e,r)&&!s.hasOwnProperty(r)&&(l[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===l[r]&&(l[r]=e[r]);return{$$typeof:i,type:t,key:u,ref:h,props:l,_owner:a.current}}e.jsx=l,e.jsxs=l},512:function(t,e,n){t.exports=n(94)},55:function(t,e,n){n.d(e,{P:function(){return bL},a:function(){return W},b:function(){return G},c:function(){return H},g:function(){return V},p:function(){return tz},r:function(){return U}});var r,i,o=n(512),a=n(156),s=Object.defineProperty,l=(t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e,n)=>l(t,"symbol"!=typeof e?e+"":e,n),h="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};function c(t){throw Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var d={exports:{}};let p=(g||(g=1,d.exports=(function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){if(!s&&c)return c(a,!0);if(o)return o(a,!0);var l=Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){return i(e[a][1][t]||t)},u,u.exports,t,e,n,r)}return n[a].exports}for(var o=c,a=0;a<r.length;a++)i(r[a]);return i})({1:[function(t,e,n){var r=t("./utils"),i=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,a,s,l,u,h=[],c=0,d=t.length,p=d,f="string"!==r.getTypeOf(t);c<t.length;)p=d-c,i=f?(e=t[c++],n=c<d?t[c++]:0,c<d?t[c++]:0):(e=t.charCodeAt(c++),n=c<d?t.charCodeAt(c++):0,c<d?t.charCodeAt(c++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|i>>6:64,u=2<p?63&i:64,h.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return h.join("")},n.decode=function(t){var e,n,r,a,s,l,u=0,h=0,c="data:";if(t.substr(0,c.length)===c)throw Error("Invalid base64 input, it looks like a data url.");var d,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|p):Array(0|p);u<t.length;)e=o.indexOf(t.charAt(u++))<<2|(a=o.indexOf(t.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(t.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(t.charAt(u++))),d[h++]=e,64!==s&&(d[h++]=n),64!==l&&(d[h++]=r);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){var r=t("./external"),i=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?0xedb88320^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var o=0+n;t^=-1;for(var a=0;a<o;a++)t=t>>>8^i[255&(t^e[a])];return -1^t}(0|e,t,t.length,0):function(t,e,n,r){var o=0+n;t^=-1;for(var a=0;a<o;a++)t=t>>>8^i[255&(t^e.charCodeAt(a))];return -1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){var r=null;e.exports={Promise:"u">typeof Promise?Promise:t("lie")}},{lie:37}],7:[function(t,e,n){var r="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,i=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=r?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,a,h){var c,d,p,f,g=t.file,m=t.compression,y=h!==s.utf8encode,v=o.transformTo("string",h(g.name)),_=o.transformTo("string",s.utf8encode(g.name)),x=g.comment,b=o.transformTo("string",h(x)),w=o.transformTo("string",s.utf8encode(x)),S=_.length!==g.name.length,k=w.length!==x.length,M="",C="",T="",I=g.dir,A=g.date,D={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(D.crc32=t.crc32,D.compressedSize=t.compressedSize,D.uncompressedSize=t.uncompressedSize);var L=0;e&&(L|=8),!y&&(S||k)&&(L|=2048);var $=0,P=0;I&&($|=16),"UNIX"===a?(P=798,$|=(c=g.unixPermissions,d=c,c||(d=I?16893:33204),(65535&d)<<16)):(P=20,$|=63&(g.dosPermissions||0)),p=(A.getUTCHours()<<6|A.getUTCMinutes())<<5|A.getUTCSeconds()/2,f=(A.getUTCFullYear()-1980<<4|A.getUTCMonth()+1)<<5|A.getUTCDate(),S&&(C=r(1,1)+r(l(v),4)+_,M+="up"+r(C.length,2)+C),k&&(T=r(1,1)+r(l(b),4)+w,M+="uc"+r(T.length,2)+T);var O="";return O+=`
|
|
11
|
+
\0`,O+=r(L,2),O+=m.magic,O+=r(p,2),O+=r(f,2),O+=r(D.crc32,4),O+=r(D.compressedSize,4),O+=r(D.uncompressedSize,4),O+=r(v.length,2),O+=r(M.length,2),{fileRecord:u.LOCAL_FILE_HEADER+O+v+M,dirRecord:u.CENTRAL_FILE_HEADER+r(P,2)+O+r(b.length,2)+"\0\0\0\0"+r($,4)+r(i,4)+v+M+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),u=t("../signature");function h(t,e,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,a),h.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},h.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var t,e,n,i,a=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var l=this.bytesWritten-a,h=(t=this.dirRecords.length,e=this.zipComment,n=this.encodeFileName,i=o.transformTo("string",n(e)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(l,4)+r(a,4)+r(i.length,2)+i);this.push({data:h,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(t){e.error(t)}),this},h.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch{}return!0},h.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new i(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach(function(t,n){a++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(t,e){return new r().loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){var r=t("./utils"),i=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then(function(t){var n=new a(e);return n.load(t),n}).then(function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var o=0;o<r.length;o++)n.push(function(t){return new i.Promise(function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",function(t){n(t)}).on("end",function(){r.streamInfo.crc32!==t.decompressed.crc32?n(Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(r[o]));return i.Promise.all(n)}).then(function(t){for(var i=t.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){var r=t("../utils"),i=t("../stream/GenericWorker");function o(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(o,i),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}})}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",function(t,e){i.push(t)||i._helper.pause(),n&&n(e)}).on("error",function(t){i.emit("error",t)}).on("end",function(){i.push(null)})}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){e.exports={isNode:"u">typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){function r(t,e,n){var r,i=o.getTypeOf(e),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(r=f(t))&&m.call(this,r,!0);var c="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!c),(e instanceof u&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var y=null;y=e instanceof u||e instanceof a?e:d.isNode&&d.isStream(e)?new p(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new h(t,y,s);this.files[t]=v}var i=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),u=t("./compressedObject"),h=t("./zipObject"),c=t("./generate"),d=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}e.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach(function(n,r){t(n,r)&&e.push(r)}),e},file:function(t,e,n){if(1!=arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(y(t)){var i=t;return this.filter(function(t,e){return!e.dir&&i.test(t)})}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(y(t))return this.filter(function(e,n){return n.dir&&t.test(e)});var e=this.root+t,n=m.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter(function(e,n){return n.name.slice(0,t.length)===t}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=c.generateWorker(this,n,r)}catch(t){(e=new a("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return -1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){var r=t("../utils"),i=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new l(r.transformTo("uint8array",t)):new o(r.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,e,n){var r=t("./GenericWorker"),i=t("../utils");function o(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(o,r),o.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){var r=t("./GenericWorker"),i=t("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,r),o.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(o,i),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,e,n){var r=t("../utils"),i=t("./ConvertWorker"),o=t("./GenericWorker"),a=t("../base64"),s=t("../support"),l=t("../external"),u=null;if(s.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(t,e,n){var a=e;switch(e){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=e,this._mimeType=n,r.checkSupport(a),this._worker=t.pipe(new i(a)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){var e;return e=this,new l.Promise(function(n,i){var o=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",function(e,n){o.push(e),t&&t(n)}).on("error",function(t){o=[],i(t)}).on("end",function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return a.encode(e);default:return r.transformTo(t,e)}}(l,function(t,e){var n,r=0,i=null,o=0;for(n=0;n<e.length;n++)o+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(o),n=0;n<e.length;n++)i.set(e[n],r),r+=e[n].length;return i;case"nodebuffer":return Buffer.concat(e);default:throw Error("concat : unsupported type '"+t+"'")}}(s,o),u);n(t)}catch(t){i(t)}o=[]}).resume()})},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,function(t){e.call(n,t.data,t.meta)}):this._worker.on(t,function(){r.delay(e,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="u">typeof ArrayBuffer&&"u">typeof Uint8Array,n.nodebuffer="u">typeof Buffer,n.uint8array="u">typeof Uint8Array,typeof ArrayBuffer>"u")n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch{n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){for(var r=t("./utils"),i=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function h(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(r=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(l):Array(l),o=a=0;a<l;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(r=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,o,a=t.length,l=Array(2*a);for(e=n=0;e<a;)if((i=t[e++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,e+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&e<a;)i=i<<6|63&t[e++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(u,a),u.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&(192&t[n])==128;)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(i.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(h,a),h.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){var r=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(t),r.getBlob(e)}catch{throw Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var r=[],i=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch{return!1}}()}};function h(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return u.stringifyByChunk(t,r,e)}catch{e=Math.floor(e/2)}return u.stringifyByChar(t)}function c(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=h;var d={};d.string={string:s,array:function(t){return l(t,Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},d.array={string:h,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return c(new Uint8Array(t),Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:h,array:function(t){return c(t,Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:h,array:function(t){return c(t,Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){return(e=e||"",t)?(n.checkSupport(t),d[n.getTypeOf(e)][t](e)):e},n.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&o.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){setImmediate(function(){t.apply(n||null,e||[])})},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,s,u){return a.Promise.resolve(e).then(function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"u">typeof FileReader?new a.Promise(function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)}):t}).then(function(e){var h,c=n.getTypeOf(e);return c?("arraybuffer"===c?e=n.transformTo("uint8array",e):"string"===c&&(u?e=i.decode(e):o&&!0!==s&&(e=l(h=e,r.uint8array?new Uint8Array(h.length):Array(h.length)))),e):a.Promise.reject(Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){var r=t("./reader/readerFor"),i=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){var r=t("./reader/readerFor"),i=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),u=t("./support");function h(t,e){this.options=t,this.loadOptions=e}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&r&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<u.length;c++)r.prototype[u[c]]=h;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(h),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){h(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(h,0)};else{var l=new t.MessageChannel;l.port1.onmessage=h,n=function(){l.port2.postMessage(0)}}var u=[];function h(){var t,e;r=!0;for(var n=u.length;n;){for(e=u,u=[],t=-1;++t<n;)e[t]();n=u.length}r=!1}e.exports=function(t){1!==u.push(t)||r||n()}}).call(this,"u">typeof h?h:"u">typeof self?self:"u">typeof window?window:{})},{}],37:[function(t,e,n){var r=t("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(t){if("function"!=typeof t)throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==i&&p(this,t)}function h(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function c(t,e,n){r(function(){var r;try{r=e(n)}catch(e){return o.reject(t,e)}r===t?o.reject(t,TypeError("Cannot resolve promise with itself")):o.resolve(t,r)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function r(e){n||(n=!0,o.reject(t,e))}function i(e){n||(n=!0,o.resolve(t,e))}var a=f(function(){e(i,r)});"error"===a.status&&r(a.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=u).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){throw n})})},u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?c(n,this.state===s?t:e,this.outcome):this.queue.push(new h(n,t,e)),n},h.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},h.prototype.otherCallFulfilled=function(t){c(this.promise,this.onFulfilled,t)},h.prototype.callRejected=function(t){o.reject(this.promise,t)},h.prototype.otherCallRejected=function(t){c(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(d,e);if("error"===n.status)return o.reject(t,n.value);var r=n.value;if(r)p(t,r);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},u.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)},u.reject=function(t){var e=new this(i);return o.reject(e,t)},u.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=Array(n),s=0,l=-1,u=new this(i);++l<n;)!function(t,i){e.resolve(t).then(function(t){a[i]=t,++s!==n||r||(r=!0,o.resolve(u,a))},function(t){r||(r=!0,o.reject(u,t))})}(t[l],l);return u},u.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var e,n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(i);++a<n;)e=t[a],this.resolve(e).then(function(t){r||(r=!0,o.resolve(s,t))},function(t){r||(r=!0,o.reject(s,t))});return s}},{immediate:36}],38:[function(t,e,n){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){var r=t("./zlib/deflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e,n=this.options;n.raw&&0<n.windowBits?n.windowBits=-n.windowBits:n.gzip&&0<n.windowBits&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var h=r.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(0!==h)throw Error(a[h]);if(n.header&&r.deflateSetHeader(this.strm,n.header),n.dictionary){if(e="string"==typeof n.dictionary?o.string2buf(n.dictionary):"[object ArrayBuffer]"===l.call(n.dictionary)?new Uint8Array(n.dictionary):n.dictionary,0!==(h=r.deflateSetDictionary(this.strm,e)))throw Error(a[h]);this._dict_set=!0}}function h(t,e){var n=new u(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:4*(!0===e),"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=u,n.deflate=h,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,h(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){var r=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),u=t("./zlib/gzheader"),h=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}c.prototype.push=function(t,e){var n,s,l,u,c,d,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===h.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new i.Buf8(f),p.next_out=0,p.avail_out=f),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===h.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),u=p.next_out-l,c=o.buf2string(p.output,l),p.next_out=u,p.avail_out=f-u,u&&i.arraySet(p.output,p.output,l,u,0),this.onData(c)):this.onData(i.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=c,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){var r="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(t,e,n){var r=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(i=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(l),o=a=0;a<l;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(i=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,o,s=e||t.length,u=Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&t[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&(192&t[n])==128;)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){e.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+e[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(t,e,n){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?0xedb88320^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var o=i+n;t^=-1;for(var a=i;a<o;a++)t=t>>>8^r[255&(t^e[a])];return -1^t}},{}],46:[function(t,e,n){var r,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages");function u(t,e){return t.msg=l[e],e}function h(t){return(t<<1)-9*(4<t)}function c(t){for(var e=t.length;0<=--e;)t[e]=0}function d(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function p(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function f(t,e){t.pending_buf[t.pending++]=e}function g(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function m(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,u=t.window,h=t.w_mask,c=t.prev,d=t.strstart+258,p=u[o+a-1],f=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do if(u[(n=e)+a]===f&&u[n+a-1]===p&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do;while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=258-(d-o),o=d-258,a<r){if(t.match_start=e,s<=(a=r))break;p=u[o+a-1],f=u[o+a]}}while((e=c[e&h])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,o,l,u,h,c,d,p,f=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-262)){for(i.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;r=t.head[--e],t.head[e]=f<=r?r-f:0,--n;);for(e=n=f;r=t.prev[--e],t.prev[e]=f<=r?r-f:0,--n;);o+=f}if(0===t.strm.avail_in)break;if(u=t.strm,h=t.window,c=t.strstart+t.lookahead,p=void 0,(d=o)<(p=u.avail_in)&&(p=d),n=0===p?0:(u.avail_in-=p,i.arraySet(h,u.input,u.next_in,p,c),1===u.state.wrap?u.adler=a(u.adler,h,p,c):2===u.state.wrap&&(u.adler=s(u.adler,h,p,c)),u.next_in+=p,u.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function v(t,e){for(var n,r;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=m(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var n,r,i;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=m(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&p(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),c(this.dyn_ltree),c(this.dyn_dtree),c(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),c(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),c(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=+(2!==e.wrap),e.last_flush=0,o._tr_init(e),0):u(t,-2)}function S(t){var e,n=w(t);return 0===n&&((e=t.state).window_size=2*e.w_size,c(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function k(t,e,n,r,o,a){if(!t)return -2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||8!==n||r<8||15<r||e<0||9<e||a<0||4<a)return u(t,-2);8===r&&(r=9);var l=new b;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=+l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,S(t)}r=[new x(0,0,0,0,function(t,e){var n=65535;for(65535>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,p(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)}),new x(4,4,8,4,v),new x(4,5,16,8,v),new x(4,6,32,32,v),new x(4,4,16,16,_),new x(8,16,32,32,_),new x(8,16,128,128,_),new x(8,32,128,256,_),new x(32,128,258,1024,_),new x(32,258,258,4096,_)],n.deflateInit=function(t,e){return k(t,e,8,15,8,0)},n.deflateInit2=k,n.deflateReset=S,n.deflateResetKeep=w,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},n.deflate=function(t,e){var n,i,a,l;if(!t||!t.state||5<e||e<0)return t?u(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return u(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,f(i,31),f(i,139),f(i,8),i.gzhead?(f(i,+!!i.gzhead.text+2*!!i.gzhead.hcrc+4*!!i.gzhead.extra+8*!!i.gzhead.name+16*!!i.gzhead.comment),f(i,255&i.gzhead.time),f(i,i.gzhead.time>>8&255),f(i,i.gzhead.time>>16&255),f(i,i.gzhead.time>>24&255),f(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),f(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(f(i,255&i.gzhead.extra.length),f(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(f(i,0),f(i,0),f(i,0),f(i,0),f(i,0),f(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),f(i,3),i.status=113);else{var m=8+(i.w_bits-8<<4)<<8;m|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=32),m+=31-m%31,i.status=113,g(i,m),0!==i.strstart&&(g(i,t.adler>>>16),g(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)f(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,f(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,f(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(f(i,255&t.adler),f(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&h(e)<=h(n)&&4!==e)return u(t,-5);if(666===i.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var v=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==v&&4!==v||(i.status=666),1===v||3===v)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===v&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(c(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(f(i,255&t.adler),f(i,t.adler>>8&255),f(i,t.adler>>16&255),f(i,t.adler>>24&255),f(i,255&t.total_in),f(i,t.total_in>>8&255),f(i,t.total_in>>16&255),f(i,t.total_in>>24&255)):(g(i,t.adler>>>16),g(i,65535&t.adler)),d(t),0<i.wrap&&(i.wrap=-i.wrap),+(0===i.pending))},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?u(t,-2):(t.state=null,113===e?u(t,-3):0):-2},n.deflateSetDictionary=function(t,e){var n,r,o,s,l,u,h,d,p=e.length;if(!t||!t.state||2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return -2;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(c(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,p-n.w_size,n.w_size,0),e=d,p=n.w_size),l=t.avail_in,u=t.next_in,h=t.input,t.avail_in=p,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){for(r=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=h,t.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){e.exports=function(t,e){var n,r,i,o,a,s,l,u,h,c,d,p,f,g,m,y,v,_,x,b,w,S,k,M,C;n=t.state,r=t.next_in,M=t.input,i=r+(t.avail_in-5),o=t.next_out,C=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,u=n.wsize,h=n.whave,c=n.wnext,d=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do for(f<15&&(p+=M[r++]<<f,f+=8,p+=M[r++]<<f,f+=8),_=g[p&y];;){if(p>>>=x=_>>>24,f-=x,0==(x=_>>>16&255))C[o++]=65535&_;else{if(!(16&x)){if((64&x)==0){_=g[(65535&_)+(p&(1<<x)-1)];continue}if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}for(b=65535&_,(x&=15)&&(f<x&&(p+=M[r++]<<f,f+=8),b+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=M[r++]<<f,f+=8,p+=M[r++]<<f,f+=8),_=m[p&v];;){if(p>>>=x=_>>>24,f-=x,!(16&(x=_>>>16&255))){if((64&x)==0){_=m[(65535&_)+(p&(1<<x)-1)];continue}t.msg="invalid distance code",n.mode=30;break t}if(w=65535&_,f<(x&=15)&&(p+=M[r++]<<f,(f+=8)<x&&(p+=M[r++]<<f,f+=8)),l<(w+=p&(1<<x)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,(x=o-a)<w){if(h<(x=w-x)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=d,(S=0)===c){if(S+=u-x,x<b){for(b-=x;C[o++]=d[S++],--x;);S=o-w,k=C}}else if(c<x){if(S+=u+c-x,(x-=c)<b){for(b-=x;C[o++]=d[S++],--x;);if(S=0,c<b){for(b-=x=c;C[o++]=d[S++],--x;);S=o-w,k=C}}}else if(S+=c-x,x<b){for(b-=x;C[o++]=d[S++],--x;);S=o-w,k=C}for(;2<b;)C[o++]=k[S++],C[o++]=k[S++],C[o++]=k[S++],b-=3;b&&(C[o++]=k[S++],1<b&&(C[o++]=k[S++]))}else{for(S=o-w;C[o++]=C[S++],C[o++]=C[S++],C[o++]=C[S++],2<(b-=3););b&&(C[o++]=C[S++],1<b&&(C[o++]=C[S++]))}break}}break}while(r<i&&o<s);r-=b=f>>3,p&=(1<<(f-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){var r=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees");function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function c(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,h(t)):-2}function d(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,c(t))):-2}function p(t,e){var n;return t?((t.state=new u).window=null,0!==(n=d(t,e))&&(t.state=null),n):-2}var f,g,m=!0;function y(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=c,n.inflateReset2=d,n.inflateResetKeep=h,n.inflateInit=function(t){return p(t,15)},n.inflateInit2=p,n.inflate=function(t,e){var n,u,h,c,d,p,v,_,x,b,w,S,k,M,C,T,I,A,D,L,$,P,O,E,N=0,R=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return -2;12===(n=t.state).mode&&(n.mode=13),d=t.next_out,h=t.output,v=t.avail_out,c=t.next_in,u=t.input,p=t.avail_in,_=n.hold,x=n.bits,b=p,w=v,P=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(2&n.wrap&&35615===_){R[n.check=0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0),x=_=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",n.mode=30;break}if((15&_)!=8){t.msg="unknown compression method",n.mode=30;break}if(x-=4,$=8+(15&(_>>>=4)),0===n.wbits)n.wbits=$;else if($>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<$,t.adler=n.check=1,n.mode=512&_?10:12,x=_=0;break;case 2:for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(n.flags=_,(255&n.flags)!=8){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0)),x=_=0,n.mode=3;case 3:for(;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.head&&(n.head.time=_),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,R[2]=_>>>16&255,R[3]=_>>>24&255,n.check=o(n.check,R,4,0)),x=_=0,n.mode=4;case 4:for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0)),x=_=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0)),x=_=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(S=n.length)&&(S=p),S&&(n.head&&($=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,u,c,S,$)),512&n.flags&&(n.check=o(n.check,u,S,c)),p-=S,c+=S,n.length-=S),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;for(S=0;$=u[c+S++],n.head&&$&&n.length<65536&&(n.head.name+=String.fromCharCode($)),$&&S<p;);if(512&n.flags&&(n.check=o(n.check,u,S,c)),p-=S,c+=S,$)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;for(S=0;$=u[c+S++],n.head&&$&&n.length<65536&&(n.head.comment+=String.fromCharCode($)),$&&S<p;);if(512&n.flags&&(n.check=o(n.check,u,S,c)),p-=S,c+=S,$)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(_!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}x=_=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}t.adler=n.check=l(_),x=_=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=d,t.avail_out=v,t.next_in=c,t.avail_in=p,n.hold=_,n.bits=x,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){_>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}switch(n.last=1&_,x-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(function(t){if(m){var e;for(f=new r.Buf32(512),g=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,f,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,g,0,t.work,{bits:5}),m=!1}t.lencode=f,t.lenbits=9,t.distcode=g,t.distbits=5}(n),n.mode=20,6!==e)break;_>>>=2,x-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}_>>>=2,x-=2;break;case 14:for(_>>>=7&x,x-=7&x;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,x=_=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(S=n.length){if(p<S&&(S=p),v<S&&(S=v),0===S)break t;r.arraySet(h,u,c,S,d),p-=S,c+=S,v-=S,d+=S,n.length-=S;break}n.mode=12;break;case 17:for(;x<14;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(n.nlen=257+(31&_),x-=5,n.ndist=1+(31&(_>>>=5)),x-=5,n.ncode=4+(15&(_>>>=5)),_>>>=4,x-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.lens[z[n.have++]]=7&_,_>>>=3,x-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},P=s(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,P){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(N=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,I=65535&N,!((C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(I<16)_>>>=C,x-=C,n.lens[n.have++]=I;else{if(16===I){for(E=C+2;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(_>>>=C,x-=C,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}$=n.lens[n.have-1],S=3+(3&_),_>>>=2,x-=2}else if(17===I){for(E=C+3;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}x-=C,$=0,S=3+(7&(_>>>=C)),_>>>=3,x-=3}else{for(E=C+7;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}x-=C,$=0,S=11+(127&(_>>>=C)),_>>>=7,x-=7}if(n.have+S>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=$}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},P=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,P){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},P=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,P){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=p&&258<=v){t.next_out=d,t.avail_out=v,t.next_in=c,t.avail_in=p,n.hold=_,n.bits=x,a(t,w),d=t.next_out,h=t.output,v=t.avail_out,c=t.next_in,u=t.input,p=t.avail_in,_=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(N=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,I=65535&N,!((C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(T&&(240&T)==0){for(A=C,D=T,L=I;T=(N=n.lencode[L+((_&(1<<A+D)-1)>>A)])>>>16&255,I=65535&N,!(A+(C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}_>>>=A,x-=A,n.back+=A}if(_>>>=C,x-=C,n.back+=C,n.length=I,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(E=n.extra;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(N=n.distcode[_&(1<<n.distbits)-1])>>>16&255,I=65535&N,!((C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if((240&T)==0){for(A=C,D=T,L=I;T=(N=n.distcode[L+((_&(1<<A+D)-1)>>A)])>>>16&255,I=65535&N,!(A+(C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}_>>>=A,x-=A,n.back+=A}if(_>>>=C,x-=C,n.back+=C,64&T){t.msg="invalid distance code",n.mode=30;break}n.offset=I,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(E=n.extra;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break t;if(S=w-v,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}k=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),M=n.window}else M=h,k=d-n.offset,S=n.length;for(v<S&&(S=v),v-=S,n.length-=S;h[d++]=M[k++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===v)break t;h[d++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===p)break t;p--,_|=u[c++]<<x,x+=8}if(w-=v,t.total_out+=w,n.total+=w,w&&(t.adler=n.check=n.flags?o(n.check,h,w,d-w):i(n.check,h,w,d-w)),w=v,(n.flags?_:l(_))!==n.check){t.msg="incorrect data check",n.mode=30;break}x=_=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(_!==(0xffffffff&n.total)){t.msg="incorrect length check",n.mode=30;break}x=_=0}n.mode=29;case 29:P=1;break t;case 30:P=-3;break t;case 31:return -4;default:return -2}return t.next_out=d,t.avail_out=v,t.next_in=c,t.avail_in=p,n.hold=_,n.bits=x,(n.wsize||w!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,w-t.avail_out)?(n.mode=31,-4):(b-=t.avail_in,w-=t.avail_out,t.total_in+=b,t.total_out+=w,n.total+=w,n.wrap&&w&&(t.adler=n.check=n.flags?o(n.check,h,w,t.next_out-w):i(n.check,h,w,t.next_out-w)),t.data_type=n.bits+64*!!n.last+128*(12===n.mode)+256*(20===n.mode||15===n.mode),(0==b&&0===w||4===e)&&0===P&&(P=-5),P)},n.inflateEnd=function(t){if(!t||!t.state)return -2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state?(2&(n=t.state).wrap)==0?-2:((n.head=e).done=!1,0):-2},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:y(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,u,h,c,d){var p,f,g,m,y,v,_,x,b,w=d.bits,S=0,k=0,M=0,C=0,T=0,I=0,A=0,D=0,L=0,$=0,P=null,O=0,E=new r.Buf16(16),N=new r.Buf16(16),R=null,z=0;for(S=0;S<=15;S++)E[S]=0;for(k=0;k<l;k++)E[e[n+k]]++;for(T=w,C=15;1<=C&&0===E[C];C--);if(C<T&&(T=C),0===C)return u[h++]=0x1400000,u[h++]=0x1400000,d.bits=1,0;for(M=1;M<C&&0===E[M];M++);for(T<M&&(T=M),S=D=1;S<=15;S++)if(D<<=1,(D-=E[S])<0)return -1;if(0<D&&(0===t||1!==C))return -1;for(N[1]=0,S=1;S<15;S++)N[S+1]=N[S]+E[S];for(k=0;k<l;k++)0!==e[n+k]&&(c[N[e[n+k]]++]=k);if(v=0===t?(P=R=c,19):1===t?(P=i,O-=257,R=o,z-=257,256):(P=a,R=s,-1),S=M,y=h,A=k=$=0,g=-1,m=(L=1<<(I=T))-1,1===t&&852<L||2===t&&592<L)return 1;for(;;){for(_=S-A,b=c[k]<v?(x=0,c[k]):c[k]>v?(x=R[z+c[k]],P[O+c[k]]):(x=96,0),p=1<<S-A,M=f=1<<I;u[y+($>>A)+(f-=p)]=_<<24|x<<16|b|0,0!==f;);for(p=1<<S-1;$&p;)p>>=1;if(0!==p?($&=p-1,$+=p):$=0,k++,0==--E[S]){if(S===C)break;S=e[n+c[k]]}if(T<S&&($&m)!==g){for(0===A&&(A=T),y+=M,D=1<<(I=S-A);I+A<C&&!((D-=E[I+A])<=0);)I++,D<<=1;if(L+=1<<I,1===t&&852<L||2===t&&592<L)return 1;u[g=$&m]=T<<24|I<<16|y-h|0}}return 0!==$&&(u[y+$]=S-A<<24|4194304),d.bits=T,0}},{"../utils/common":41}],51:[function(t,e,n){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){var r=t("../utils/common");function i(t){for(var e=t.length;0<=--e;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=Array(576);i(u);var h=Array(60);i(h);var c=Array(512);i(c);var d=Array(256);i(d);var p=Array(29);i(p);var f,g,m,y=Array(30);function v(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function x(t){return t<256?c[t]:c[256+(t>>>7)]}function b(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function w(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function S(t,e,n){w(t,n[2*e],n[2*e+1])}function k(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function M(t,e,n){var r,i,o=Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=k(o[s]++,s))}}function C(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8<t.bi_valid?b(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function I(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function A(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&I(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!I(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function D(t,e,n){var r,i,s,l,u=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===r?S(t,i,e):(S(t,(s=d[i])+256+1,e),0!==(l=o[s])&&w(t,i-=p[s],l),S(t,s=x(--r),n),0!==(l=a[s])&&w(t,r-=y[s],l)),u<t.last_lit;);S(t,256,e)}function L(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)A(t,o,n);for(i=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,A(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,u=e.max_code,h=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)f<(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)&&(o=f,g++),l[2*r+1]=o,u<r||(t.bl_count[o]++,a=0,p<=r&&(a=d[r-p]),s=l[2*r],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(h[2*r+1]+a)));if(0!==g){do{for(o=f-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[f]--,g-=2}while(0<g);for(o=f;0!==o;o--)for(r=t.bl_count[o];0!==r;)u<(i=t.heap[--n])||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),M(o,u,t.bl_count)}function $(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function P(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)for(;S(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(S(t,i,t.bl_tree),s--),S(t,16,t.bl_tree),w(t,s-3,2)):s<=10?(S(t,17,t.bl_tree),w(t,s-3,3)):(S(t,18,t.bl_tree),w(t,s-11,7));o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(y);var O=!1;function E(t,e,n,i){w(t,0+ +!!i,3),T(t),b(t,n),b(t,~n),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}n._tr_init=function(t){O||(function(){var t,e,n,r,i,l=Array(16);for(r=n=0;r<28;r++)for(p[r]=n,t=0;t<1<<o[r];t++)d[n++]=r;for(d[n-1]=r,r=i=0;r<16;r++)for(y[r]=i,t=0;t<1<<a[r];t++)c[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,t=0;t<1<<a[r]-7;t++)c[256+i++]=r;for(e=0;e<=15;e++)l[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,l[8]++;for(;t<=255;)u[2*t+1]=9,t++,l[9]++;for(;t<=279;)u[2*t+1]=7,t++,l[7]++;for(;t<=287;)u[2*t+1]=8,t++,l[8]++;for(M(u,287,l),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=k(t,5);f=new v(u,o,257,286,15),g=new v(h,a,0,30,15),m=new v([],s,0,19,7)}(),O=!0),t.l_desc=new _(t.dyn_ltree,f),t.d_desc=new _(t.dyn_dtree,g),t.bl_desc=new _(t.bl_tree,m),t.bi_buf=0,t.bi_valid=0,C(t)},n._tr_stored_block=E,n._tr_flush_block=function(t,e,n,r){var i,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=0xf3ffc07f;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),L(t,t.l_desc),L(t,t.d_desc),a=function(t){var e;for($(t,t.dyn_ltree,t.l_desc.max_code),$(t,t.dyn_dtree,t.d_desc.max_code),L(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?E(t,e,n,r):4===t.strategy||o===i?(w(t,2+ +!!r,3),D(t,u,h)):(w(t,4+ +!!r,3),function(t,e,n,r){var i;for(w(t,e-257,5),w(t,n-1,5),w(t,r-4,4),i=0;i<r;i++)w(t,t.bl_tree[2*l[i]+1],3);P(t,t.dyn_ltree,e-1),P(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),D(t,t.dyn_ltree,t.dyn_dtree)),C(t),r&&T(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(d[n]+256+1)]++,t.dyn_dtree[2*x(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){w(t,2,3),S(t,256,u),16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,n){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){(function(t){!function(t,e){if(!t.setImmediate){var n,r,i,o,a=1,s={},l=!1,u=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"===({}).toString.call(t.process)?function(t){process.nextTick(function(){d(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)}:(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return s[a]=i,n(a),a++},h.clearImmediate=c}function c(t){delete s[t]}function d(t){if(l)setTimeout(d,0,t);else{var n=s[t];if(n){l=!0;try{var r=n.callback,i=n.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(e,i)}}finally{c(t),l=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))}}(typeof self>"u"?void 0===t?this:t:self)}).call(this,"u">typeof h?h:"u">typeof self?self:"u">typeof window?window:{})},{}]},{},[10])(10)),(f=d.exports)&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default"))?f.default:f;var f,g,m,y={},v={};function _(){return m||(m=1,function(t){let e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=RegExp("^"+n+"$");t.isExist=function(t){return"u">typeof t},t.isEmptyObject=function(t){return 0===Object.keys(t).length},t.merge=function(t,e,n){if(e){let r=Object.keys(e),i=r.length;for(let o=0;o<i;o++)"strict"===n?t[r[o]]=[e[r[o]]]:t[r[o]]=e[r[o]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(t){let e=r.exec(t);return!(null===e||typeof e>"u")},t.getAllMatches=function(t,e){let n=[],r=e.exec(t);for(;r;){let i=[];i.startIndex=e.lastIndex-r[0].length;let o=r.length;for(let t=0;t<o;t++)i.push(r[t]);n.push(i),r=e.exec(t)}return n},t.nameRegexp=n,t.DANGEROUS_PROPERTY_NAMES=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],t.criticalProperties=["__proto__","constructor","prototype"]}(v)),v}function x(){if(b)return y;b=1;let t=_(),e={allowBooleanAttributes:!1,unpairedTags:[]};function n(t){return" "===t||" "===t||t===`
|
|
12
|
+
`||"\r"===t}function r(t,e){let n=e;for(;e<t.length;e++)if("?"==t[e]||" "==t[e]){let r=t.substr(n,e-n);if(e>5&&"xml"===r)return s("InvalidXml","XML declaration allowed only at the start of the document.",l(t,e));if("?"!=t[e]||">"!=t[e+1])continue;e++;break}return e}function i(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&0==--n)break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7]){for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}}return e}y.validate=function(o,u){u=Object.assign({},e,u);let h=[],c=!1,d=!1;"\uFEFF"===o[0]&&(o=o.substr(1));for(let e=0;e<o.length;e++)if("<"===o[e]&&"?"===o[e+1]){if(e+=2,(e=r(o,e)).err)return e}else if("<"===o[e]){let f=e;if("!"===o[++e]){e=i(o,e);continue}{var p;let g=!1;"/"===o[e]&&(g=!0,e++);let m="";for(;e<o.length&&">"!==o[e]&&" "!==o[e]&&" "!==o[e]&&o[e]!==`
|
|
13
|
+
`&&"\r"!==o[e];e++)m+=o[e];if("/"===(m=m.trim())[m.length-1]&&(m=m.substring(0,m.length-1),e--),p=m,!t.isName(p)){let t;return s("InvalidTag",0===m.trim().length?"Invalid space after '<'.":"Tag '"+m+"' is an invalid name.",l(o,e))}let y=function(t,e){let n="",r="",i=!1;for(;e<t.length;e++){if('"'===t[e]||"'"===t[e])""===r?r=t[e]:r!==t[e]||(r="");else if(">"===t[e]&&""===r){i=!0;break}n+=t[e]}return""===r&&{value:n,index:e,tagClosed:i}}(o,e);if(!1===y)return s("InvalidAttr","Attributes for '"+m+"' have open quote.",l(o,e));let v=y.value;if(e=y.index,"/"===v[v.length-1]){let t=e-v.length,n=a(v=v.substring(0,v.length-1),u);if(!0!==n)return s(n.err.code,n.err.msg,l(o,t+n.err.line));c=!0}else if(g)if(!y.tagClosed)return s("InvalidTag","Closing tag '"+m+"' doesn't have proper closing.",l(o,e));else{if(v.trim().length>0)return s("InvalidTag","Closing tag '"+m+"' can't have attributes or invalid starting.",l(o,f));if(0===h.length)return s("InvalidTag","Closing tag '"+m+"' has not been opened.",l(o,f));{let t=h.pop();if(m!==t.tagName){let e=l(o,t.tagStartPos);return s("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+e.line+", col "+e.col+") instead of closing tag '"+m+"'.",l(o,f))}0==h.length&&(d=!0)}}else{let t=a(v,u);if(!0!==t)return s(t.err.code,t.err.msg,l(o,e-v.length+t.err.line));if(!0===d)return s("InvalidXml","Multiple possible root nodes found.",l(o,e));-1!==u.unpairedTags.indexOf(m)||h.push({tagName:m,tagStartPos:f}),c=!0}for(e++;e<o.length;e++)if("<"===o[e])if("!"===o[e+1]){e=i(o,++e);continue}else if("?"===o[e+1]){if((e=r(o,++e)).err)return e}else break;else if("&"===o[e]){let t=function(t,e){if(";"===t[++e])return -1;if("#"===t[e]){var n=++e;let r=/\d/;for("x"===t[n]&&(n++,r=/[\da-fA-F]/);n<t.length;n++){if(";"===t[n])return n;if(!t[n].match(r))break}return -1}let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(";"===t[e])break;return -1}return e}(o,e);if(-1==t)return s("InvalidChar","char '&' is not expected.",l(o,e));e=t}else if(!0===d&&!n(o[e]))return s("InvalidXml","Extra text at the end",l(o,e));"<"===o[e]&&e--}}else{if(n(o[e]))continue;return s("InvalidChar","char '"+o[e]+"' is not expected.",l(o,e))}return c?1==h.length?s("InvalidTag","Unclosed tag '"+h[0].tagName+"'.",l(o,h[0].tagStartPos)):!(h.length>0)||s("InvalidXml","Invalid '"+JSON.stringify(h.map(t=>t.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):s("InvalidXml","Start tag expected.",1)};let o=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function a(e,n){let r=t.getAllMatches(e,o),i={};for(let e=0;e<r.length;e++){var a;if(0===r[e][1].length)return s("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",u(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return s("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",u(r[e]));if(void 0===r[e][3]&&!n.allowBooleanAttributes)return s("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",u(r[e]));let o=r[e][2];if(a=o,!t.isName(a))return s("InvalidAttr","Attribute '"+o+"' is an invalid name.",u(r[e]));if(i.hasOwnProperty(o))return s("InvalidAttr","Attribute '"+o+"' is repeated.",u(r[e]));i[o]=1}return!0}function s(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function l(t,e){let n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function u(t){return t.startIndex+t[1].length}return y}var b,w,S={};function k(){return $?L:($=1,L=function(t){return"function"==typeof t?t:Array.isArray(t)?e=>{for(let n of t)if("string"==typeof n&&e===n||n instanceof RegExp&&n.test(e))return!0}:()=>!1})}var M,C,T,I,A,D,L,$,P,O,E,N={},R=function(){if(ro)return ri;ro=1;let t=x();return ri={XMLParser:function(){if(n9)return n7;n9=1;let{buildOptions:t}=function(){if(w)return S;w=1;let{DANGEROUS_PROPERTY_NAMES:t,criticalProperties:e}=_(),n=e=>t.includes(e)?"__"+e:e,r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};return S.buildOptions=function(i){let o=Object.assign({},r,i);for(let{value:n,name:r}of[{value:o.attributeNamePrefix,name:"attributeNamePrefix"},{value:o.attributesGroupName,name:"attributesGroupName"},{value:o.textNodeName,name:"textNodeName"},{value:o.cdataPropName,name:"cdataPropName"},{value:o.commentPropName,name:"commentPropName"}])n&&function(n,r){if("string"!=typeof n)return;let i=n.toLowerCase();if(t.some(t=>i===t.toLowerCase())||e.some(t=>i===t.toLowerCase()))throw Error(`[SECURITY] Invalid ${r}: "${n}" is a reserved JavaScript keyword that could cause prototype pollution`)}(n,r);return null===o.onDangerousProperty&&(o.onDangerousProperty=n),o.processEntities=function t(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:t(!0)}(o.processEntities),o},S.defaultOptions=r,S}(),e=function(){if(O)return P;O=1;let t=_(),e=C?M:(C=1,M=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}),n=function(){if(I)return T;I=1;let t=_(),e=(t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e};function n(t,e,n){for(let r=0;r<e.length;r++)if(e[r]!==t[n+r+1])return!1;return!0}function r(e){if(t.isName(e))return e;throw Error(`Invalid entity name ${e}`)}return T=class{constructor(t){this.suppressValidationErr=!t,this.options=t||{}}readDocType(t,e){let r=Object.create(null),i=0;if("O"===t[e+3]&&"C"===t[e+4]&&"T"===t[e+5]&&"Y"===t[e+6]&&"P"===t[e+7]&&"E"===t[e+8]){e+=9;let o=1,a=!1,s=!1,l="";for(;e<t.length;e++)if("<"!==t[e]||s)if(">"===t[e]){if(s?"-"===t[e-1]&&"-"===t[e-2]&&(s=!1,o--):o--,0===o)break}else"["===t[e]?a=!0:t[e];else{if(a&&n(t,"!ENTITY",e)){let n,o;if(e+=7,[n,o,e]=this.readEntityExp(t,e+1,this.suppressValidationErr),-1===o.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);let t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r[n]={regx:RegExp(`&${t};`,"g"),val:o},i++}}else if(a&&n(t,"!ELEMENT",e)){e+=8;let{index:n}=this.readElementExp(t,e+1);e=n}else if(a&&n(t,"!ATTLIST",e))e+=8;else if(a&&n(t,"!NOTATION",e)){e+=9;let{index:n}=this.readNotationExp(t,e+1,this.suppressValidationErr);e=n}else if(n(t,"!--",e))s=!0;else throw Error("Invalid DOCTYPE");o++}if(0!==o)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}readEntityExp(t,n){n=e(t,n);let i="";for(;n<t.length&&!/\s/.test(t[n])&&'"'!==t[n]&&"'"!==t[n];)i+=t[n],n++;if(r(i),n=e(t,n),!this.suppressValidationErr){if("SYSTEM"===t.substring(n,n+6).toUpperCase())throw Error("External entities are not supported");if("%"===t[n])throw Error("Parameter entities are not supported")}let o="";if([n,o]=this.readIdentifierVal(t,n,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&o.length>this.options.maxEntitySize)throw Error(`Entity "${i}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,o,--n]}readNotationExp(t,n){n=e(t,n);let i="";for(;n<t.length&&!/\s/.test(t[n]);)i+=t[n],n++;this.suppressValidationErr||r(i),n=e(t,n);let o=t.substring(n,n+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==o&&"PUBLIC"!==o)throw Error(`Expected SYSTEM or PUBLIC, found "${o}"`);n+=o.length,n=e(t,n);let a=null,s=null;if("PUBLIC"===o)[n,a]=this.readIdentifierVal(t,n,"publicIdentifier"),n=e(t,n),('"'===t[n]||"'"===t[n])&&([n,s]=this.readIdentifierVal(t,n,"systemIdentifier"));else if("SYSTEM"===o&&([n,s]=this.readIdentifierVal(t,n,"systemIdentifier"),!this.suppressValidationErr&&!s))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:a,systemIdentifier:s,index:--n}}readIdentifierVal(t,e,n){let r="",i=t[e];if('"'!==i&&"'"!==i)throw Error(`Expected quoted string, found "${i}"`);for(e++;e<t.length&&t[e]!==i;)r+=t[e],e++;if(t[e]!==i)throw Error(`Unterminated ${n} value`);return[++e,r]}readElementExp(r,i){i=e(r,i);let o="";for(;i<r.length&&!/\s/.test(r[i]);)o+=r[i],i++;if(!this.suppressValidationErr&&!t.isName(o))throw Error(`Invalid element name: "${o}"`);i=e(r,i);let a="";if("E"===r[i]&&n(r,"MPTY",i))i+=4;else if("A"===r[i]&&n(r,"NY",i))i+=2;else if("("===r[i]){for(i++;i<r.length&&")"!==r[i];)a+=r[i],i++;if(")"!==r[i])throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${r[i]}"`);return{elementName:o,contentModel:a.trim(),index:i}}readAttlistExp(t,n){n=e(t,n);let i="";for(;n<t.length&&!/\s/.test(t[n]);)i+=t[n],n++;r(i),n=e(t,n);let o="";for(;n<t.length&&!/\s/.test(t[n]);)o+=t[n],n++;if(!r(o))throw Error(`Invalid attribute name: "${o}"`);n=e(t,n);let a="";if("NOTATION"===t.substring(n,n+8).toUpperCase()){if(a="NOTATION",n+=8,n=e(t,n),"("!==t[n])throw Error(`Expected '(', found "${t[n]}"`);n++;let i=[];for(;n<t.length&&")"!==t[n];){let o="";for(;n<t.length&&"|"!==t[n]&&")"!==t[n];)o+=t[n],n++;if(!r(o=o.trim()))throw Error(`Invalid notation name: "${o}"`);i.push(o),"|"===t[n]&&(n=e(t,++n))}if(")"!==t[n])throw Error("Unterminated list of notations");n++,a+=" ("+i.join("|")+")"}else{for(;n<t.length&&!/\s/.test(t[n]);)a+=t[n],n++;if(!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(a.toUpperCase()))throw Error(`Invalid attribute type: "${a}"`)}n=e(t,n);let s="";return"#REQUIRED"===t.substring(n,n+8).toUpperCase()?(s="#REQUIRED",n+=8):"#IMPLIED"===t.substring(n,n+7).toUpperCase()?(s="#IMPLIED",n+=7):[n,s]=this.readIdentifierVal(t,n,"ATTLIST"),{elementName:i,attributeName:o,attributeType:a,defaultValue:s,index:n}}}}(),r=function(){if(D)return A;D=1;let t=/^[-+]?0x[a-fA-F0-9]+$/,e=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};return A=function(r,i={}){if(i=Object.assign({},n,i),!r||"string"!=typeof r)return r;let o=r.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return r;if("0"===r)return 0;if(i.hex&&t.test(o)){var a,s=o,l=16;if(parseInt)return parseInt(s,16);if(Number.parseInt)return Number.parseInt(s,l);if(window&&window.parseInt)return window.parseInt(s,l);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}if(-1!==o.search(/[eE]/)){let t=o.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(!t)return r;if(i.leadingZeros)o=(t[1]||"")+t[3];else if("0"!==t[2]||"."!==t[3][0])return r;return i.eNotation?Number(o):r}{let t=e.exec(o);if(!t)return r;{let e=t[1],n=t[2],s=((a=t[3])&&-1!==a.indexOf(".")&&("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1))),a);if(!i.leadingZeros&&n.length>0&&e&&"."!==o[2]||!i.leadingZeros&&n.length>0&&!e&&"."!==o[1])return r;if(i.leadingZeros&&n===r)return 0;{let t=Number(o),a=""+t;return -1!==a.search(/[eE]/)?i.eNotation?t:r:-1!==o.indexOf(".")?"0"===a&&""===s||a===s||e&&a==="-"+s?t:r:n?s===a||e+s===a?t:r:o===a||o===e+a?t:r}}}}}(),i=k();function o(t){let e=Object.keys(t);for(let n=0;n<e.length;n++){let r=e[n],i=r.replace(/[.\-+*:]/g,"\\.");this.lastEntities[r]={regex:RegExp("&"+i+";","g"),val:t[r]}}}function a(t,e,n,r,i,o,a){if(void 0!==t&&(this.options.trimValues&&!r&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,n));let r=this.options.tagValueProcessor(e,t,n,i,o);return null==r?t:typeof r!=typeof t||r!==t?r:this.options.trimValues||t.trim()===t?v(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function s(t){if(this.options.removeNSPrefix){let e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}let l=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function u(e,n,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){let i=t.getAllMatches(e,l),o=i.length,a={};for(let e=0;e<o;e++){let o=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(o,n))continue;let s=i[e][4],l=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),l=function(e,n){if(t.criticalProperties.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return t.DANGEROUS_PROPERTY_NAMES.includes(e)?n.onDangerousProperty(e):e}(l,this.options),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s,r,n);let t=this.options.attributeValueProcessor(o,s,n);null==t?a[l]=s:typeof t!=typeof s||t!==s?a[l]=t:a[l]=v(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[l]=!0)}if(Object.keys(a).length){if(this.options.attributesGroupName){let t={};return t[this.options.attributesGroupName]=a,t}return a}}}let h=function(t){t=t.replace(/\r\n?/g,`
|
|
14
|
+
`);let r=new e("!xml"),i=r,o="",a="";this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new n(this.options.processEntities);for(let n=0;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){let e=g(t,">",n,"Closing Tag is not closed."),r=t.substring(n+2,e).trim();if(this.options.removeNSPrefix){let t=r.indexOf(":");-1!==t&&(r=r.substr(t+1))}this.options.transformTagName&&(r=this.options.transformTagName(r)),i&&(o=this.saveTextToParentTag(o,i,a));let s=a.substring(a.lastIndexOf(".")+1);if(r&&-1!==this.options.unpairedTags.indexOf(r))throw Error(`Unpaired tag can not be used as closing tag: </${r}>`);let l=0;s&&-1!==this.options.unpairedTags.indexOf(s)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),i=this.tagsNodeStack.pop(),o="",n=e}else if("?"===t[n+1]){let r=m(t,n,!1,"?>");if(!r)throw Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,i,a),!(this.options.ignoreDeclaration&&"?xml"===r.tagName||this.options.ignorePiTags)){let t=new e(r.tagName);t.add(this.options.textNodeName,""),r.tagName!==r.tagExp&&r.attrExpPresent&&(t[":@"]=this.buildAttributesMap(r.tagExp,a,r.tagName)),this.addChild(i,t,a,n)}n=r.closeIndex+1}else if("!--"===t.substr(n+1,3)){let e=g(t,"--\x3e",n+4,"Comment is not closed.");if(this.options.commentPropName){let r=t.substring(n+4,e-2);o=this.saveTextToParentTag(o,i,a),i.add(this.options.commentPropName,[{[this.options.textNodeName]:r}])}n=e}else if("!D"===t.substr(n+1,2)){let e=s.readDocType(t,n);this.docTypeEntities=e.entities,n=e.i}else if("!["===t.substr(n+1,2)){let e=g(t,"]]>",n,"CDATA is not closed.")-2,r=t.substring(n+9,e);o=this.saveTextToParentTag(o,i,a);let s=this.parseTextData(r,i.tagname,a,!0,!1,!0,!0);null==s&&(s=""),this.options.cdataPropName?i.add(this.options.cdataPropName,[{[this.options.textNodeName]:r}]):i.add(this.options.textNodeName,s),n=e+2}else{let s=m(t,n,this.options.removeNSPrefix),l=s.tagName,u=s.rawTagName,h=s.tagExp,c=s.attrExpPresent,d=s.closeIndex;if(this.options.transformTagName){let t=this.options.transformTagName(l);h===l&&(h=t),l=t}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName||l===this.options.textNodeName||l===this.options.attributesGroupName))throw Error(`Invalid tag name: ${l}`);i&&o&&"!xml"!==i.tagname&&(o=this.saveTextToParentTag(o,i,a,!1));let p=i;p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(i=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),l!==r.tagname&&(a+=a?"."+l:l);let f=n;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,a,l)){let r="";if(h.length>0&&h.lastIndexOf("/")===h.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),h=l):h=h.substr(0,h.length-1),n=s.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))n=s.closeIndex;else{let e=this.readStopNodeData(t,u,d+1);if(!e)throw Error(`Unexpected end of ${u}`);n=e.i,r=e.tagContent}let o=new e(l);l!==h&&c&&(o[":@"]=this.buildAttributesMap(h,a,l)),r&&(r=this.parseTextData(r,l,a,!0,c,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),o.add(this.options.textNodeName,r),this.addChild(i,o,a,f)}else{if(h.length>0&&h.lastIndexOf("/")===h.length-1){if("/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),h=l):h=h.substr(0,h.length-1),this.options.transformTagName){let t=this.options.transformTagName(l);h===l&&(h=t),l=t}let t=new e(l);l!==h&&c&&(t[":@"]=this.buildAttributesMap(h,a,l)),this.addChild(i,t,a,f),a=a.substr(0,a.lastIndexOf("."))}else if(-1!==this.options.unpairedTags.indexOf(l)){let t=new e(l);l!==h&&c&&(t[":@"]=this.buildAttributesMap(h,a)),this.addChild(i,t,a,f),a=a.substr(0,a.lastIndexOf(".")),n=s.closeIndex;continue}else{let t=new e(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(i),l!==h&&c&&(t[":@"]=this.buildAttributesMap(h,a,l)),this.addChild(i,t,a),i=t}o="",n=d}}else o+=t[n];return r.child};function c(t,e,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.updateTag(e.tagname,n,e[":@"]);!1===i||("string"==typeof i&&(e.tagname=i),t.addChild(e,r))}let d=function(t,e,n){if(-1===t.indexOf("&"))return t;let r=this.options.processEntities;if(!r.enabled||r.allowedTags&&!r.allowedTags.includes(e)||r.tagFilter&&!r.tagFilter(e,n))return t;for(let e in this.docTypeEntities){let n=this.docTypeEntities[e],i=t.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions)throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);let e=t.length;if(t=t.replace(n.regx,n.val),r.maxExpandedLength&&(this.currentExpandedLength+=t.length-e,this.currentExpandedLength>r.maxExpandedLength))throw Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${r.maxExpandedLength}`)}}if(-1===t.indexOf("&"))return t;for(let e of Object.keys(this.lastEntities)){let n=this.lastEntities[e],i=t.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);t=t.replace(n.regex,n.val)}if(-1===t.indexOf("&"))return t;if(this.options.htmlEntities)for(let e of Object.keys(this.htmlEntities)){let n=this.htmlEntities[e],i=t.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);t=t.replace(n.regex,n.val)}return t=t.replace(this.ampEntity.regex,this.ampEntity.val)};function p(t,e,n,r){return t&&(void 0===r&&(r=0===e.child.length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,r))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function f(t,e,n,r){return!!(e&&e.has(r)||t&&t.has(n))}function g(t,e,n,r){let i=t.indexOf(e,n);if(-1===i)throw Error(r);return i+e.length-1}function m(t,e,n,r=">"){let i=function(t,e,n=">"){let r,i="";for(let o=e;o<t.length;o++){let e=t[o];if(r)e===r&&(r="");else if('"'===e||"'"===e)r=e;else if(e===n[0]){if(!n[1])return{data:i,index:o};else if(t[o+1]===n[1])return{data:i,index:o}}else" "===e&&(e=" ");i+=e}}(t,e+1,r);if(!i)return;let o=i.data,a=i.index,s=o.search(/\s/),l=o,u=!0;-1!==s&&(l=o.substring(0,s),o=o.substring(s+1).trimStart());let h=l;if(n){let t=l.indexOf(":");-1!==t&&(u=(l=l.substr(t+1))!==i.data.substr(t+1))}return{tagName:l,tagExp:o,closeIndex:a,attrExpPresent:u,rawTagName:h}}function y(t,e,n){let r=n,i=1;for(;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){let o=g(t,">",n,`${e} is not closed`);if(t.substring(n+2,o).trim()===e&&0==--i)return{tagContent:t.substring(r,n),i:o};n=o}else if("?"===t[n+1])n=g(t,"?>",n+1,"StopNode is not closed.");else if("!--"===t.substr(n+1,3))n=g(t,"--\x3e",n+3,"StopNode is not closed.");else if("!["===t.substr(n+1,2))n=g(t,"]]>",n,"StopNode is not closed.")-2;else{let r=m(t,n,">");r&&((r&&r.tagName)===e&&"/"!==r.tagExp[r.tagExp.length-1]&&i++,n=r.closeIndex)}}function v(e,n,i){if(!n||"string"!=typeof e)return t.isExist(e)?e:"";{let t=e.trim();return"true"===t||"false"!==t&&r(e,i)}}function x(t,e,n){let r=Number.parseInt(t,e);return r>=0&&r<=1114111?String.fromCodePoint(r):n+t+";"}return P=class{constructor(t){if(this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>x(e,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>x(e,16,"&#x")}},this.addExternalEntities=o,this.parseXml=h,this.parseTextData=a,this.resolveNameSpace=s,this.buildAttributesMap=u,this.isItStopNode=f,this.replaceEntitiesValue=d,this.readStopNodeData=y,this.saveTextToParentTag=p,this.addChild=c,this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let t=0;t<this.options.stopNodes.length;t++){let e=this.options.stopNodes[t];"string"==typeof e&&(e.startsWith("*.")?this.stopNodesWildcard.add(e.substring(2)):this.stopNodesExact.add(e))}}}}}(),{prettify:n}=(E||(E=1,N.prettify=function(t,e){return function t(e,n,r){let i,o={};for(let a=0;a<e.length;a++){let s=e[a],l=function(t){let e=Object.keys(t);for(let t=0;t<e.length;t++){let n=e[t];if(":@"!==n)return n}}(s),u="";if(u=void 0===r?l:r+"."+l,l===n.textNodeName)void 0===i?i=s[l]:i+=""+s[l];else{if(void 0===l)continue;if(s[l]){let e=t(s[l],n,u),r=function(t,e){let{textNodeName:n}=e,r=Object.keys(t).length;return!!(0===r||1===r&&(t[n]||"boolean"==typeof t[n]||0===t[n]))}(e,n);s[":@"]?function(t,e,n,r){if(e){let i=Object.keys(e),o=i.length;for(let a=0;a<o;a++){let o=i[a];r.isArray(o,n+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}(e,s[":@"],u,n):1!==Object.keys(e).length||void 0===e[n.textNodeName]||n.alwaysCreateTextNode?0===Object.keys(e).length&&(n.alwaysCreateTextNode?e[n.textNodeName]="":e=""):e=e[n.textNodeName],void 0!==o[l]&&o.hasOwnProperty(l)?(Array.isArray(o[l])||(o[l]=[o[l]]),o[l].push(e)):n.isArray(l,u,r)?o[l]=[e]:o[l]=e}}}return"string"==typeof i?i.length>0&&(o[n.textNodeName]=i):void 0!==i&&(o[n.textNodeName]=i),o}(t,e)}),N),r=x();return n7=class{constructor(e){this.externalEntities={},this.options=t(e)}parse(t,i){if("string"!=typeof t)if(t.toString)t=t.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(i){!0===i&&(i={});let e=r.validate(t,i);if(!0!==e)throw Error(`${e.err.msg}:${e.err.line}:${e.err.col}`)}let o=new e(this.options);o.addExternalEntities(this.externalEntities);let a=o.parseXml(t);return this.options.preserveOrder||void 0===a?a:n(a,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===e)throw Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}}(),XMLValidator:t,XMLBuilder:function(){if(rr)return rn;rr=1;let t=function(){if(re)return rt;re=1;let t=`
|
|
15
|
+
`;function e(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let o=e.attributeValueProcessor(i,t[i]);!0===(o=n(o,e))&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${o}"`}return r}function n(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.entities.length;n++){let r=e.entities[n];t=t.replace(r.regex,r.val)}return t}return rt=function(r,i){let o="";return i.format&&i.indentBy.length>0&&(o=t),function t(r,i,o,a){let s="",l=!1;if(!Array.isArray(r))return null!=r?n(r.toString(),i):"";for(let u=0;u<r.length;u++){let h=r[u],c=function(t){let e=Object.keys(t);for(let n=0;n<e.length;n++){let r=e[n];if(Object.prototype.hasOwnProperty.call(t,r)&&":@"!==r)return r}}(h);if(void 0===c)continue;let d="";if(d=0===o.length?c:`${o}.${c}`,c===i.textNodeName){let t=h[c];(function(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let r in e.stopNodes)if(e.stopNodes[r]===t||e.stopNodes[r]==="*."+n)return!0;return!1})(d,i)||(t=n(t=i.tagValueProcessor(c,t),i)),l&&(s+=a),s+=t,l=!1;continue}if(c===i.cdataPropName){l&&(s+=a),s+=`<![CDATA[${h[c][0][i.textNodeName]}]]>`,l=!1;continue}if(c===i.commentPropName){s+=a+`<!--${h[c][0][i.textNodeName]}-->`,l=!0;continue}else if("?"===c[0]){let t=e(h[":@"],i),n="?xml"===c?"":a,r=h[c][0][i.textNodeName];r=0!==r.length?" "+r:"",s+=n+`<${c}${r}${t}?>`,l=!0;continue}let p=a;""!==p&&(p+=i.indentBy);let f=e(h[":@"],i),g=a+`<${c}${f}`,m=t(h[c],i,d,p);-1!==i.unpairedTags.indexOf(c)?i.suppressUnpairedNode?s+=g+">":s+=g+"/>":(!m||0===m.length)&&i.suppressEmptyNode?s+=g+"/>":m&&m.endsWith(">")?s+=g+`>${m}${a}</${c}>`:(s+=g+">",m&&""!==a&&(m.includes("/>")||m.includes("</"))?s+=a+i.indentBy+m+a:s+=m,s+=`</${c}>`),l=!0}return s}(r,i,"",o)}}(),e=k(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function r(t){this.options=Object.assign({},n,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=e(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=i,this.options.format?(this.indentate=o,this.tagEndChar=`>
|
|
16
|
+
`,this.newLine=`
|
|
17
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function i(t,e,n,r){let i=this.j2x(t,n+1,r.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,n):this.buildObjectNode(i.val,e,i.attrStr,n)}function o(t){return this.options.indentBy.repeat(t)}function a(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName&&t.substr(this.attrPrefixLen)}return r.prototype.build=function(e){return this.options.preserveOrder?t(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},r.prototype.j2x=function(t,e,n){let r="",i="",o=n.join(".");for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(i+="");else if(null===t[a])this.isAttribute(a)||a===this.options.cdataPropName?i+="":"?"===a[0]?i+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)i+=this.buildTextValNode(t[a],a,"",e);else if("object"!=typeof t[a]){let n=this.isAttribute(a);if(n&&!this.ignoreAttributesFn(n,o))r+=this.buildAttrPairStr(n,""+t[a]);else if(!n)if(a===this.options.textNodeName){let e=this.options.tagValueProcessor(a,""+t[a]);i+=this.replaceEntitiesValue(e)}else i+=this.buildTextValNode(t[a],a,"",e)}else if(Array.isArray(t[a])){let r=t[a].length,o="",s="";for(let l=0;l<r;l++){let r=t[a][l];if(!(typeof r>"u"))if(null===r)"?"===a[0]?i+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof r)if(this.options.oneListGroup){let t=this.j2x(r,e+1,n.concat(a));o+=t.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(s+=t.attrStr)}else o+=this.processTextOrObjNode(r,a,e,n);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(a,r);o+=t=this.replaceEntitiesValue(t)}else o+=this.buildTextValNode(r,a,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,a,s,e)),i+=o}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let e=Object.keys(t[a]),n=e.length;for(let i=0;i<n;i++)r+=this.buildAttrPairStr(e[i],""+t[a][e[i]])}else i+=this.processTextOrObjNode(t[a],a,e,n);return{attrStr:r,val:i}},r.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},r.prototype.buildObjectNode=function(t,e,n,r){if(""===t)return"?"===e[0]?this.indentate(r)+"<"+e+n+"?"+this.tagEndChar:this.indentate(r)+"<"+e+n+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),(n||""===n)&&-1===t.indexOf("<")?this.indentate(r)+"<"+e+n+o+">"+t+i:!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(r)+`<!--${t}-->`+this.newLine:this.indentate(r)+"<"+e+n+o+this.tagEndChar+t+this.indentate(r)+i}},r.prototype.closeTag=function(t){let e="";return -1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},r.prototype.buildTextValNode=function(t,e,n,r){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(r)+`<!--${t}-->`+this.newLine;if("?"===e[0])return this.indentate(r)+"<"+e+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return""===(i=this.replaceEntitiesValue(i))?this.indentate(r)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(r)+"<"+e+n+">"+i+"</"+e+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let n=this.options.entities[e];t=t.replace(n.regex,n.val)}return t},rn=r}()}}();let z=new Set(["a:p","a:r","a:br","a:fld","a:tc","a:tr","a:gridCol","p:sp","p:pic","p:graphicFrame","p:grpSp","p:cxnSp","p:sldId","p:sldLayoutId","p:sldMasterId","a:gs","Relationship","a:ext","a:effectLst","a:lstStyle","a:lvl1pPr","a:lvl2pPr","a:lvl3pPr","a:lvl4pPr","a:lvl5pPr","a:lvl6pPr","a:lvl7pPr","a:lvl8pPr","a:lvl9pPr","c:ser","c:pt","c:v","a:gd","a:path","a:moveTo","a:lnTo","a:cubicBezTo","a:quadBezTo","a:arcTo","a:font","a:hlinkClick"]),B=new R.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@_",isArray:t=>z.has(t),parseTagValue:!1,trimValues:!1,textNodeName:"#text"});class F{constructor(){u(this,"zip")}async load(t){this.zip=await p.loadAsync(t)}getFileCaseInsensitive(t){let e=this.zip.file(t);if(e)return e;let n=t.toLowerCase(),r=Object.keys(this.zip.files).find(t=>t.toLowerCase()===n);return r?this.zip.file(r):null}async getXml(t){let e=this.getFileCaseInsensitive(t);if(!e)return null;let n=await e.async("text");try{return B.parse(n)}catch(e){return console.warn(`[pptx] Failed to parse XML at ${t}:`,e),null}}async getText(t){let e=this.getFileCaseInsensitive(t);return e?e.async("text"):null}async getBase64(t){let e=this.getFileCaseInsensitive(t);return e?e.async("base64"):null}async getUint8Array(t){let e=this.getFileCaseInsensitive(t);return e?e.async("uint8array"):null}fileExists(t){return null!==this.getFileCaseInsensitive(t)}getFileNames(){let t=[];return this.zip.forEach(e=>t.push(e)),t}}function V(t,e){if(!t)return;let n=t[e];return Array.isArray(n)&&"a:p"!==e&&"a:r"!==e&&"a:br"!==e&&"a:fld"!==e&&"a:tc"!==e&&"p:sp"!==e&&"a:gridCol"!==e&&"p:pic"!==e&&"p:grpSp"!==e&&"p:cxnSp"!==e&&"p:graphicFrame"!==e&&"a:gs"!==e&&"Relationship"!==e&&"c:ser"!==e&&"c:pt"!==e&&"c:v"!==e?n[0]:n}function W(t,e){if(t&&(Array.isArray(t)&&(t=t[0]),t))return t[`@_${e}`]}function H(t,e){if(!t)return[];let n=t[e];return n?Array.isArray(n)?n:[n]:[]}function G(t){let e={};if(!t)return e;for(let n of H(null==t?void 0:t.Relationships,"Relationship"))e[n["@_Id"]]=n["@_Target"];return e}function j(t){let e=new Map;return t&&[...t.matchAll(/<p:cNvPr[^>]*?id="([^"]+)"/g)].forEach((t,n)=>e.set(t[1],n)),e}function U(t,e){if(e.startsWith("/"))return e.slice(1);let n=t.replace(/\\/g,"/").split("/").filter(Boolean),r=e.replace(/\\/g,"/").split("/").filter(Boolean),i=[...n];for(let t of r)".."===t?i.pop():"."!==t&&i.push(t);return i.join("/")}function Z(t){return Math.round(t/9525*100)/100}function X(t){return Math.round(t/100*(96/72)*100)/100}async function Y(t){var e,n;let r=await t.getXml("ppt/presentation.xml"),i=G(await t.getXml("ppt/_rels/presentation.xml.rels")),o=null==(e=null==r?void 0:r["p:presentation"])?void 0:e["p:sldSz"],a=Z(parseInt(W(o,"cx")||"9144000")),s=Z(parseInt(W(o,"cy")||"6858000")),l=H(null==(n=null==r?void 0:r["p:presentation"])?void 0:n["p:sldIdLst"],"p:sldId").map(t=>{let e=W(t,"r:id"),n=i[e];return n?{rId:e,path:`ppt/${n}`}:null}).filter(Boolean),u=null;for(let[,t]of Object.entries(i))if(t.includes("theme")){u=`ppt/${t}`;break}return{width:a,height:s,slideRefs:l,themeRef:u}}let q=["dk1","dk2","lt1","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];async function Q(t,e){var n;let r={colorScheme:{},colorMap:{tx1:"dk1",tx2:"dk2",bg1:"lt1",bg2:"lt2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},fontScheme:{majorFont:"Calibri",minorFont:"Calibri"}};if(!e)return r;let i=await t.getXml(e);if(!i)return r;let o=null==(n=i["a:theme"])?void 0:n["a:themeElements"],a=V(o,"a:clrScheme"),s={};if(a)for(let t of q){let e=a[`a:${t}`];e&&(e["a:srgbClr"]?s[t]=W(e["a:srgbClr"],"val")||"000000":e["a:sysClr"]&&(s[t]=W(e["a:sysClr"],"lastClr")||W(e["a:sysClr"],"val")||"000000"))}let l=V(o,"a:fontScheme"),u="Calibri",h="Calibri";if(l){let t=V(V(l,"a:majorFont"),"a:latin"),e=V(V(l,"a:minorFont"),"a:latin");u=W(t,"typeface")||"Calibri",h=W(e,"typeface")||"Calibri"}return{colorScheme:s,colorMap:r.colorMap,fontScheme:{majorFont:u,minorFont:h}}}let K={black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF",silver:"C0C0C0",gray:"808080",maroon:"800000",olive:"808000",purple:"800080",teal:"008080",navy:"000080",orange:"FFA500",darkRed:"8B0000",darkGreen:"006400",darkBlue:"00008B",ltGray:"D3D3D3",dkGray:"A9A9A9"};function J(t,e){if(!t)return{color:"#000000",opacity:1};let n="000000",r=1;if(t["a:srgbClr"]){let e=t["a:srgbClr"];n="object"==typeof e?e["@_val"]:e,r=tt(e)}else if(t["a:schemeClr"]){let i=t["a:schemeClr"];n=te("object"==typeof i?i["@_val"]:i,e),r=tt(i),n=function(t,e){if(!e||"object"!=typeof e)return t;let n=parseInt(t.substring(0,2),16),[r,i,o]=function(t,e,n){t/=255;let r=Math.max(t,e/=255,n/=255),i=Math.min(t,e,n),o=0,a=0,s=(r+i)/2;if(r!==i){let l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case t:o=((e-n)/l+6*(e<n))/6;break;case e:o=((n-t)/l+2)/6;break;case n:o=((t-e)/l+4)/6}}return[o,a,s]}(n,parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16));if(e["a:lumMod"]&&(o*=parseInt(e["a:lumMod"]["@_val"]??e["a:lumMod"])/1e5),e["a:lumOff"]&&(o+=parseInt(e["a:lumOff"]["@_val"]??e["a:lumOff"])/1e5),e["a:tint"]){let t=parseInt(e["a:tint"]["@_val"]??e["a:tint"])/1e5;o+=(1-o)*(1-t)}e["a:shade"]&&(o*=parseInt(e["a:shade"]["@_val"]??e["a:shade"])/1e5),e["a:satMod"]&&(i*=parseInt(e["a:satMod"]["@_val"]??e["a:satMod"])/1e5),o=Math.max(0,Math.min(1,o));let a=tr(r,i=Math.max(0,Math.min(1,i)),o);return tn(a[0])+tn(a[1])+tn(a[2])}(n,i)}else if(t["a:prstClr"]){let e=t["a:prstClr"];n=K["object"==typeof e?e["@_val"]:e]||"000000",r=tt(e)}else if(t["a:scrgbClr"]){let e=t["a:scrgbClr"],i=Math.round(parseInt(e["@_r"])/1e5*255),o=Math.round(parseInt(e["@_g"])/1e5*255),a=Math.round(parseInt(e["@_b"])/1e5*255);n=tn(i)+tn(o)+tn(a),r=tt(e)}else if(t["a:hslClr"]){let e=t["a:hslClr"],i=parseInt(e["@_hue"])/6e4,o=tr(i,parseInt(e["@_sat"])/1e5,parseInt(e["@_lum"])/1e5);n=tn(o[0])+tn(o[1])+tn(o[2]),r=tt(e)}return{color:`#${n}`,opacity:r}}function tt(t){return t&&"object"==typeof t&&t["a:alpha"]?parseInt(t["a:alpha"]["@_val"]??t["a:alpha"])/1e5:1}function te(t,e){let n=e.colorMap[t]||t;return e.colorScheme[n]||e.colorScheme[t]||"000000"}function tn(t){let e=Math.max(0,Math.min(255,Math.round(t))).toString(16);return e.length<2?"0"+e:e}function tr(t,e,n){if(0===e){let t=Math.round(255*n);return[t,t,t]}let r=(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;return[Math.round(255*r(o,i,t+1/3)),Math.round(255*r(o,i,t)),Math.round(255*r(o,i,t-1/3))]}function ti(t,e){if(!t)return{type:"none"};let n=V(t,"a:solidFill");if(n){let{color:t,opacity:r}=J(n,e);return{type:"solid",color:t,opacity:r}}let r=V(t,"a:gradFill");if(r){let t=H(V(r,"a:gsLst"),"a:gs").map(t=>{let n=parseInt(W(t,"pos")||"0")/1e3,{color:r,opacity:i}=J(t,e);return{position:n,color:r,opacity:i}});if(0===t.length)return{type:"none"};let n=V(r,"a:path");if(n){let e=W(n,"path")||"circle",r=V(n,"a:fillToRect");return{type:"gradient",gradientType:"rect"===e?"rect":"radial",stops:t,center:r?{l:parseInt(W(r,"l")||"0")/1e3,t:parseInt(W(r,"t")||"0")/1e3,r:parseInt(W(r,"r")||"0")/1e3,b:parseInt(W(r,"b")||"0")/1e3}:void 0}}let i=V(r,"a:lin");return{type:"gradient",gradientType:"linear",angle:i?parseInt(W(i,"ang")||"0")/6e4:0,stops:t}}let i=V(t,"a:pattFill");if(i){let t=W(i,"prst")||"pct5";return{type:"pattern",preset:t,fgColor:J(V(i,"a:fgClr"),e).color,bgColor:J(V(i,"a:bgClr"),e).color}}return V(t,"a:noFill"),{type:"none"}}async function to(t,e,n,r,i){if(!t)return{type:"none"};let o=V(t,"a:blipFill");if(o){let t=await ta(o,n,r,i);if(t)return{type:"image",src:t,stretch:!!V(o,"a:stretch")}}return ti(t,e)}async function ta(t,e,n,r){var i;let o=V(t,"a:blip");if(!o)return console.warn("[pptx] blipFill: no a:blip child",t),"";let a=W(o,"r:embed")||W(o,"r:link")||W(o,"embed")||W(o,"link");if(!a){let t=V(o,"a:extLst");if(t)for(let e of H(t,"a:ext")){let t=V(e,"asvg:svgBlip")||V(e,"svgBlip");if(t&&(a=W(t,"r:embed")||W(t,"r:link")||W(t,"embed")||W(t,"link")))break}}if(!a)return console.warn("[pptx] blipFill: no r:embed/r:link attr on blip or svgBlip",o),"";if(!e[a])return console.warn(`[pptx] blipFill: rId '${a}' not in rels map`,e),"";let s=e[a],l=U(r,s);console.debug(`[pptx] image: rId=${a} target=${s} basePath=${r} => ${l}`);let u={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",bmp:"image/bmp",emf:"image/x-emf",wmf:"image/x-wmf",tiff:"image/tiff",tif:"image/tiff"}[(null==(i=l.split(".").pop())?void 0:i.toLowerCase())||"png"]||"image/png",h=await n.getUint8Array(l);if(!h)return console.warn(`[pptx] image: getUint8Array returned null for path '${l}'`),"";if(typeof URL>"u"||!URL.createObjectURL){let t=await n.getBase64(l);return`data:${u};base64,${t}`}let c=new Blob([h.buffer],{type:u});return URL.createObjectURL(c)}function ts(t,e){if(!t)return null;let n=Z(parseInt(W(t,"w")||"0"));if(n<=0)return null;let r=V(t,"a:solidFill"),i="#000000";return r&&(i=J(r,e).color),{width:n,color:i,dash:W(V(t,"a:prstDash"),"val")||"solid"}}function tl(t,e,n,r){if(!t)return null;let i=V(t,"a:bodyPr")||{},o="none";void 0!==V(i,"a:spAutoFit")&&(o="autofit"),void 0!==V(i,"a:normAutofit")&&(o="normAutofit");let a={vertAlign:W(i,"anchor")||"top",wrap:"none"!==W(i,"wrap"),lIns:Z(parseInt(W(i,"lIns")||"91440")),tIns:Z(parseInt(W(i,"tIns")||"45720")),rIns:Z(parseInt(W(i,"rIns")||"91440")),bIns:Z(parseInt(W(i,"bIns")||"45720")),autofit:o},s=th(n,tu(V(t,"a:lstStyle"),e,r));return{paragraphs:H(t,"a:p").map(t=>(function(t,e,n,r){var i,o,a,s,l,u,h;let c=V(t,"a:pPr")||{},d=parseInt(W(c,"lvl")||"0"),p=n[d]||{},f=V(c,"a:defRPr"),g=f?tg(f,e,r):null,m=tp(p.rPr||null,g,e),y=td(c,e),v={align:y.align??(null==(i=p.pPr)?void 0:i.align)??"left",indent:y.indent??(null==(o=p.pPr)?void 0:o.indent)??0,marginLeft:y.marginLeft??(null==(a=p.pPr)?void 0:a.marginLeft)??0,lineSpacing:y.lineSpacing??(null==(s=p.pPr)?void 0:s.lineSpacing)??null,spaceBefore:y.spaceBefore??(null==(l=p.pPr)?void 0:l.spaceBefore)??0,spaceAfter:y.spaceAfter??(null==(u=p.pPr)?void 0:u.spaceAfter)??0,bullet:y.bullet??(null==(h=p.pPr)?void 0:h.bullet)??null,level:d},_=[];for(let n of[...H(t,"a:r").map(t=>{var e;return{kind:"r",node:t,order:t["@_order"]??(null==(e=t.attrs)?void 0:e.order)??1/0}}),...H(t,"a:br").map(t=>{var e;return{kind:"br",node:t,order:t["@_order"]??(null==(e=t.attrs)?void 0:e.order)??1/0}}),...H(t,"a:fld").map(t=>{var e;return{kind:"fld",node:t,order:t["@_order"]??(null==(e=t.attrs)?void 0:e.order)??1/0}})].sort((t,e)=>t.order-e.order))if("r"===n.kind){let t=n.node,i=V(t,"a:rPr"),o=i?tg(i,e,r):null;_.push({type:"text",text:t["a:t"]??"",props:tp(m,o,e)})}else if("br"===n.kind){let t=V(n.node,"a:rPr");_.push({type:"break",text:"",props:tp(m,t?tg(t,e):null,e)})}else if("fld"===n.kind){let t=n.node,r=V(t,"a:rPr");_.push({type:"field",text:t["a:t"]??W(t,"type")??"",props:tp(m,r?tg(r,e):null,e)})}return 0===_.length&&_.push({type:"text",text:"",props:m||tf(e)}),{runs:_,props:v}})(t,e,s,r)),bodyProps:a,listStyle:s}}function tu(t,e,n){if(!t)return{};let r={};for(let i=1;i<=9;i++){let o=V(t,`a:lvl${i}pPr`);if(o){let t=td(o,e),a=V(o,"a:defRPr"),s=a?tg(a,e,n):void 0;r[i-1]={pPr:t,rPr:s}}}return r}function th(...t){let e={};for(let n of t)if(n)for(let t of Object.keys(n)){let r=parseInt(t);e[r]||(e[r]={}),n[r].pPr&&(e[r].pPr={...e[r].pPr,...tc(n[r].pPr)}),n[r].rPr&&(e[r].rPr={...e[r].rPr,...tc(n[r].rPr)})}return e}function tc(t){let e={};for(let n of Object.keys(t))null!==t[n]&&void 0!==t[n]&&(e[n]=t[n]);return e}function td(t,e){var n;let r={};if(!t)return r;let i=W(t,"algn");i&&(r.align="ctr"===(n=i)||"center"===n?"center":"r"===n||"right"===n?"right":"just"===n||"justify"===n?"justify":"left");let o=W(t,"indent");o&&(r.indent=Z(parseInt(o)));let a=W(t,"marL");a&&(r.marginLeft=Z(parseInt(a)));let s=function(t){if(!t)return null;let e=V(t,"a:spcPct");if(e)return parseInt(W(e,"val")||"100000")/1e5;let n=V(t,"a:spcPts");return n?X(parseInt(W(n,"val")||"0")):null}(V(t,"a:lnSpc"));null!==s&&(r.lineSpacing=s);let l=tm(V(t,"a:spcBef"));0!==l&&(r.spaceBefore=l);let u=tm(V(t,"a:spcAft"));0!==u&&(r.spaceAfter=u);let h=function(t,e){if(!t||V(t,"a:buNone"))return null;let n=V(t,"a:buChar");if(n){let r=V(t,"a:buClr"),i=V(t,"a:buSzPct"),o=V(t,"a:buFont");return{type:"char",char:W(n,"char")||"•",color:r?J(r,e).color:void 0,fontSize:i?parseInt(W(i,"val")||"100000")/1e3:void 0,fontFamily:o&&W(o,"typeface")||void 0}}let r=V(t,"a:buAutoNum");if(r){let n=V(t,"a:buClr");return{type:"autoNum",autoNumType:W(r,"type")||"arabicPeriod",startAt:parseInt(W(r,"startAt")||"1"),color:n?J(n,e).color:void 0}}return null}(t,e);return null!==h&&(r.bullet=h),r}function tp(t,e,n){let r=tf(n);return t||e?t?e?{fontFamily:e.fontFamily??t.fontFamily??r.fontFamily,fontSize:e.fontSize??t.fontSize??r.fontSize,bold:e.bold??t.bold??r.bold,italic:e.italic??t.italic??r.italic,underline:e.underline??t.underline??r.underline,strikethrough:e.strikethrough??t.strikethrough??r.strikethrough,color:e.color??t.color??r.color,highlight:e.highlight??t.highlight??r.highlight,baseline:e.baseline??t.baseline??r.baseline,hyperlink:e.hyperlink??t.hyperlink??r.hyperlink}:{...r,...t}:{...r,...e}:r}function tf(t){let e=t.colorMap.tx1||"tx1",n=t.colorScheme[e]||t.colorScheme.tx1||"000000";return{fontFamily:null,fontSize:X(1800),bold:!1,italic:!1,underline:!1,strikethrough:!1,color:`#${n}`,highlight:null}}function tg(t,e,n){let r,i=null,o=V(t,"a:solidFill");o&&(i=J(o,e).color);let a=W(V(t,"a:latin"),"typeface")||W(V(t,"a:ea"),"typeface")||null;a&&(a.startsWith("+mj")?a=e.fontScheme.majorFont||a:a.startsWith("+mn")&&(a=e.fontScheme.minorFont||a),!a||a.includes("sans-serif")||a.includes("serif")||(a=`${a}, sans-serif`));let s=W(t,"sz"),l=s?X(parseInt(s)):null,u=W(t,"baseline"),h=u?parseInt(u)/1e3:void 0,c=V(t,"a:hlinkClick");if(c&&n){let t=W(c,"r:id")||W(c,"r:id");t&&n[t]&&(r=n[t])}return{fontFamily:a,fontSize:l,bold:"1"===W(t,"b"),italic:"1"===W(t,"i"),underline:"sng"===W(t,"u")||"true"===W(t,"u"),strikethrough:"sngStrike"===W(t,"strike"),color:i,highlight:null,baseline:h,hyperlink:r}}function tm(t){if(!t)return 0;let e=V(t,"a:spcPts");return e?X(parseInt(W(e,"val")||"0")):0}let ty=0;function tv(t,e){if(!t)return ty++;let n=W(V(V(t,"p:nvSpPr")||V(t,"p:nvPicPr")||V(t,"p:nvGrpSpPr")||V(t,"p:nvGraphicFramePr")||V(t,"p:nvCxnSpPr"),"p:cNvPr"),"id");return n&&e.orderMap&&e.orderMap.has(n)?e.orderMap.get(n):ty++}async function t_(t,e,n){let r=[];if(!(null!=n&&n.skipSp))for(let n of H(t,"p:sp")){let t=await tb(n,e,tv(n,e));t&&r.push(t)}for(let n of H(t,"p:pic")){let t=await tS(n,e,tv(n,e));t&&r.push(t)}for(let n of H(t,"p:cxnSp")){let t=await tw(n,e,tv(n,e));t&&r.push(t)}for(let n of H(t,"p:graphicFrame")){let t=await tk(n,e,tv(n,e));t&&r.push(t)}for(let n of H(t,"p:grpSp")){let t=await tM(n,e,tv(n,e));t&&r.push(t)}return r.sort((t,e)=>t.order-e.order),r}function tx(t){let e=V(t,"a:off"),n=V(t,"a:ext");return{offset:{x:Z(parseInt(W(e,"x")||"0")),y:Z(parseInt(W(e,"y")||"0"))},size:{w:Z(parseInt(W(n,"cx")||"0")),h:Z(parseInt(W(n,"cy")||"0"))},rotate:parseInt(W(t,"rot")||"0")/6e4,flipH:"1"===W(t,"flipH"),flipV:"1"===W(t,"flipV")}}async function tb(t,e,n){let r=V(t,"p:spPr")||{},i=V(r,"a:xfrm");if(!i)return null;let o=tx(i),a=V(r,"a:prstGeom"),s=V(r,"a:custGeom"),l=W(a,"prst")||(s?"__custom__":"rect"),u=ti(r,e.theme),h=ts(V(r,"a:ln"),e.theme),c=tl(V(t,"p:txBody"),e.theme,void 0,e.rels),d=tC(V(r,"a:effectLst")),p=V(t,"p:nvSpPr"),f=V(p,"p:cNvSpPr"),g=V(p,"p:nvPr"),m=V(g,"p:ph"),y="1"===W(f,"txBox"),v=W(m,"type"),_=W(m,"idx"),x=s?function(t,e,n){if(!t)return null;let r=V(t,"a:pathLst");if(!r)return null;let i=[];for(let t of H(r,"a:path")){let r=parseInt(W(t,"w")||String(12700*e))||12700*e,o=parseInt(W(t,"h")||String(12700*n))||12700*n,a=e/r,s=n/o,l=t=>(parseFloat(t)*a).toFixed(2),u=t=>(parseFloat(t)*s).toFixed(2),h=t=>`${l(W(t,"x")||"0")},${u(W(t,"y")||"0")}`,c=[],d=0;for(let e of H(t,"a:moveTo")){let t=V(e,"a:pt");c.push({idx:d++,fn:()=>`M${h(t)} `})}for(let e of H(t,"a:lnTo")){let t=V(e,"a:pt");c.push({idx:d++,fn:()=>`L${h(t)} `})}for(let e of H(t,"a:cubicBezTo")){let t=H(e,"a:pt");t.length>=3&&c.push({idx:d++,fn:()=>`C${h(t[0])} ${h(t[1])} ${h(t[2])} `})}for(let e of H(t,"a:quadBezTo")){let t=H(e,"a:pt");t.length>=2&&c.push({idx:d++,fn:()=>`Q${h(t[0])} ${h(t[1])} `})}let p=!!V(t,"a:close"),f=c.map(t=>t.fn()).join("")+(p?"Z":"");f&&i.push(f.trim())}return i.join(" ")||null}(s,o.size.w,o.size.h):null;return y||v?{type:"shape",presetGeom:"rect",...o,order:n,fill:u,border:h,effectProps:d,phType:v,phIdx:_,textBody:c||{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:9.6,tIns:4.8,rIns:9.6,bIns:4.8}}}:{type:"shape",...o,order:n,presetGeom:l,custGeomPath:x||void 0,fill:u,border:h,textBody:c,effectProps:d,phType:v,phIdx:_}}async function tw(t,e,n){let r=V(t,"p:spPr")||{},i=V(r,"a:xfrm");if(!i)return null;let o=tx(i),a=W(V(r,"a:prstGeom"),"prst")||"straightConnector1",s=ti(r,e.theme),l=ts(V(r,"a:ln"),e.theme);return{type:"shape",...o,order:n,presetGeom:a,fill:s,border:l,textBody:null}}async function tS(t,e,n){let r=V(t,"p:spPr")||{},i=V(r,"a:xfrm");if(!i)return null;let o=tx(i),a=V(t,"p:blipFill"),s=await ta(a,e.rels,e.zip,e.slideBasePath),l=V(a,"a:srcRect"),u=l?{top:parseInt(W(l,"t")||"0")/1e3,right:parseInt(W(l,"r")||"0")/1e3,bottom:parseInt(W(l,"b")||"0")/1e3,left:parseInt(W(l,"l")||"0")/1e3}:null,h=W(V(r,"a:prstGeom"),"prst"),c=tC(V(r,"a:effectLst")),d=V(t,"p:nvPicPr"),p=V(d,"p:nvPr"),f=V(p,"p:ph"),g=W(f,"type"),m=W(f,"idx");return{type:"picture",...o,order:n,src:s,srcRect:u,clipGeom:h||void 0,effectProps:c,phType:g,phIdx:m}}async function tk(t,e,r){var i,o;let a=V(t,"p:xfrm");if(!a)return null;let s=tx(a),l=V(t,"p:nvGraphicFramePr"),u=V(l,"p:nvPr"),h=V(u,"p:ph"),c=W(h,"type"),d=W(h,"idx"),p=V(t,"a:graphic"),f=V(p,"a:graphicData");if(!f)return null;let g=V(f,"c:chart");if(g){let t=W(g,"r:id");if(t){let{parseChart:i}=await n.e("351").then(n.bind(n,104)),o=await i(e.zip,t,e.rels,e.slideBasePath);if(o)return{type:"chart",...s,order:r,chartData:o}}}let m=V(f,"a:tbl");if(!m)return null;let y=H(V(m,"a:tblGrid"),"a:gridCol").map(t=>Z(parseInt(W(t,"w")||"0"))),v=y.length,_=V(m,"a:tblPr")||{},x=ti(_,e.theme),b="1"===W(_,"firstRow"),w="1"===W(_,"lastRow"),S="1"===W(_,"firstCol"),k="1"===W(_,"lastCol"),M="1"===W(_,"bandRow"),C="1"===W(_,"bandCol"),T=V(_,"a:tableStyleId"),I=(T&&(o=T)?"string"==typeof o?o:void 0!==o["#text"]?String(o["#text"]):"":"")||"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}",A=null==(i=e.tableStyles)?void 0:i[I],D=H(m,"a:tr"),L=D.length,$=D.map((t,n)=>({height:Z(parseInt(W(t,"h")||"0")),cells:H(t,"a:tc").map((t,r)=>{let i,o,a=V(t,"a:tcPr")||{},s={};if(A){let t=t=>{t&&(void 0!==t.fill&&(i=t.fill),t.borders&&(void 0!==t.borders.top&&(s.top=t.borders.top),void 0!==t.borders.bottom&&(s.bottom=t.borders.bottom),void 0!==t.borders.left&&(s.left=t.borders.left),void 0!==t.borders.right&&(s.right=t.borders.right)))};t(A.wholeTbl),M&&t((b&&n>0?n+1:n)%2==0?A.band1H:A.band2H),C&&t((S&&r>0?r+1:r)%2==0?A.band1V:A.band2V),S&&0===r&&t(A.firstCol),k&&r===v-1&&t(A.lastCol),b&&0===n&&t(A.firstRow),w&&n===L-1&&t(A.lastRow)}o=V(a,"a:solidFill")||V(a,"a:gradFill")||V(a,"a:noFill")||V(a,"a:pattFill")?ti(a,e.theme):i?ti(i,e.theme):{type:"none"};let l=t=>{let n=V(a,`a:ln${t}`);if(n)return ts(n,e.theme);let r=s[({T:"top",R:"right",B:"bottom",L:"left"})[t]];return r?ts(r,e.theme):null},u=Z(parseInt(W(a,"marL")||"91440")),h=Z(parseInt(W(a,"marR")||"91440")),c=Z(parseInt(W(a,"marT")||"45720")),d=Z(parseInt(W(a,"marB")||"45720")),p=W(a,"anchor")||"top",f=tl(V(t,"a:txBody"),e.theme);return{textBody:f?{...f,bodyProps:{...f.bodyProps,lIns:0,tIns:0,rIns:0,bIns:0}}:{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:0,tIns:0,rIns:0,bIns:0}},fill:o,borders:{top:l("T"),right:l("R"),bottom:l("B"),left:l("L")},margins:{left:u,right:h,top:c,bottom:d},anchor:"ctr"===p?"middle":"b"===p?"bottom":"top",gridSpan:parseInt(W(t,"gridSpan")||"1"),rowSpan:parseInt(W(t,"rowSpan")||"1"),hMerge:"1"===W(t,"hMerge")||"true"===W(t,"hMerge"),vMerge:"1"===W(t,"vMerge")||"true"===W(t,"vMerge")}})}));return{type:"table",...s,order:r,colWidths:y,rows:$,tableFill:x,phType:c,phIdx:d}}async function tM(t,e,n){let r=V(t,"p:grpSpPr")||{},i=V(r,"a:xfrm");if(!i)return null;let o=tx(i),a=V(i,"a:chOff"),s=V(i,"a:chExt"),l={x:Z(parseInt(W(a,"x")||"0")),y:Z(parseInt(W(a,"y")||"0"))},u={w:Z(parseInt(W(s,"cx")||"0")),h:Z(parseInt(W(s,"cy")||"0"))},h=await t_(t,e);return{type:"group",...o,order:n,childOffset:l,childExtent:u,children:h}}function tC(t){if(!t)return;let e=V(t,"a:outerShdw");if(!e)return;let n=parseInt(W(e,"blurRad")||"0"),r=parseInt(W(e,"dist")||"0"),i=parseInt(W(e,"dir")||"0")/6e4*Math.PI/180,o=r/12700*Math.cos(i),a=r/12700*Math.sin(i),s="#000000",l=.5,u=e["a:srgbClr"];if(u){s="#"+("object"==typeof u?u["@_val"]:u);let t=u["a:alpha"];t&&(l=parseInt(t["@_val"]||"50000")/1e5)}return{shadow:{blur:n/12700,dx:o,dy:a,color:s,opacity:l}}}async function tT(t,e,n,r,i,o,a){let s=await t.getXml(e),l=e.substring(0,e.lastIndexOf("/")),u=e.substring(e.lastIndexOf("/")+1),h=`${l}/_rels/${u}.rels`,c=G(await t.getXml(h)),d=V(null==s?void 0:s["p:sld"],"p:cSld"),p=V(d,"p:spTree"),f=null;for(let t of Object.values(c))if(t.includes("slideLayout")){f=U(l,t);break}let g=f?i.get(f)??null:null,m=null!=g&&g.masterPath?o.get(g.masterPath)??null:null,y=await t$(d,r,c,t,l);"none"===y.type&&g&&(y=g.background),"none"===y.type&&m&&(y=m.background),"none"===y.type&&(y={type:"solid",color:`#${te("bg1",r)}`,opacity:1});let v=j(await t.getText(e)||""),_=await tI(p,{theme:r,rels:c,zip:t,slideBasePath:l,orderMap:v,tableStyles:a},g,m),x=[],b=0;if(m)for(let t of m.nodes)x.push({...t,order:b++});if(g)for(let t of g.nodes)x.push({...t,order:b++});for(let t of _)x.push({...t,order:b++});return{index:n,background:y,nodes:x}}async function tI(t,e,n,r){if(!t)return[];let i=[],o=0;for(let a of H(t,"p:sp")){let t=await tA(a,e,o++,n,r);t&&i.push(t)}for(let n of(await t_(t,e,{skipSp:!0})))i.push({...n,order:o++});return i}async function tA(t,e,n,r,i){let o=V(t,"p:nvSpPr"),a=V(o,"p:nvPr"),s=V(a,"p:ph"),l=W(s,"type"),u=W(s,"idx"),h=V(t,"p:spPr"),c=h&&"object"==typeof h,d=c?V(h,"a:xfrm"):null,p=s?tD(l,u,r,i):null,f={x:0,y:0},g={w:0,h:0},m=0,y=!1,v=!1;if(d){let t=V(d,"a:off"),e=V(d,"a:ext");f={x:Z(parseInt(W(t,"x")||"0")),y:Z(parseInt(W(t,"y")||"0"))},g={w:Z(parseInt(W(e,"cx")||"0")),h:Z(parseInt(W(e,"cy")||"0"))},m=parseInt(W(d,"rot")||"0")/6e4,y="1"===W(d,"flipH"),v="1"===W(d,"flipV")}else if(p)f={...p.offset},g={...p.size},m=p.rotate,y=p.flipH,v=p.flipV;else{if(!s)return console.log("Returning null because no xfrm, not resolved, not ph."),null;let t="title"===l||"ctrTitle"===l;f={x:30,y:t?20:100},g={w:900,h:t?80:400}}if(0===g.w&&0===g.h)return console.log("Skipping because size.w=0 and size.h=0"),null;let _=h&&void 0!==V(h,"a:solidFill"),x=h&&void 0!==V(h,"a:noFill"),b=h&&void 0!==V(h,"a:gradFill"),w=h&&void 0!==V(h,"a:pattFill"),S=h&&void 0!==V(h,"a:blipFill"),k=c&&(_||x||b||w||S)?ti(h,e.theme):p&&"shape"===p.type?p.fill:{type:"none"},M=c&&V(h,"a:ln")?ts(V(h,"a:ln"),e.theme):p&&"shape"===p.type?p.border:null,C=null;i&&i.txStyles&&(C="title"===l||"ctrTitle"===l?i.txStyles.titleStyle:"body"===l?i.txStyles.bodyStyle:i.txStyles.otherStyle);let T=s?tD(l,u,null,i):null,I=(null==T?void 0:T.type)==="shape"&&T.textBody?T.textBody.listStyle:null,A=s?tD(l,u,r,null):null,D=th(C,I,(null==A?void 0:A.type)==="shape"&&A.textBody?A.textBody.listStyle:null),L=tl(V(t,"p:txBody"),e.theme,D,e.rels),$="1"===W(V(o,"p:cNvSpPr"),"txBox"),P=c?V(h,"a:prstGeom"):null;return{type:"shape",presetGeom:P?W(P,"prst")||"rect":p&&"shape"===p.type?p.presetGeom:"rect",offset:f,size:g,rotate:m,flipH:y,flipV:v,order:n,fill:k,border:M,textBody:L||($||s?{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:9.6,tIns:4.8,rIns:9.6,bIns:4.8}}:null)}}function tD(t,e,n,r){if(n){let r=tL(n.placeholders,t,e);if(r)return r.node}if(r){let n=tL(r.placeholders,t,e);if(n)return n.node}return null}function tL(t,e,n){if(e){let n=t.find(t=>t.type===e);if(n)return n}if(n){let e=t.find(t=>t.idx===n);if(e)return e}return null}async function t$(t,e,n,r,i){let o=V(t,"p:bg");if(!o)return{type:"none"};let a=V(o,"p:bgPr");if(a)return to(a,e,n,r,i);let s=V(o,"p:bgRef");if(s){let{color:t}=J(s,e);return{type:"solid",color:t,opacity:1}}return{type:"none"}}async function tP(t,e,n){let r=await t.getXml(e),i=e.substring(0,e.lastIndexOf("/")),o=e.substring(e.lastIndexOf("/")+1),a=`${i}/_rels/${o}.rels`,s=G(await t.getXml(a)),l=V(null==r?void 0:r["p:sldLayout"],"p:cSld"),u=V(l,"p:spTree"),h=await tE(l,n,s,t,i),c=j(await t.getText(e)||""),d=await t_(u,{theme:n,rels:s,zip:t,slideBasePath:i,orderMap:c}),p=[],f=[];for(let t of d)(t.phType||t.phIdx)&&p.push({type:t.phType,idx:t.phIdx,node:t});let g=new Set(p.map(t=>t.node));for(let t of d)g.has(t)||f.push(t);let m=null;for(let t of Object.values(s))if(t.includes("slideMaster")){m=U(i,t);break}return{path:e,background:h,nodes:f,placeholders:p,masterPath:m}}async function tO(t,e,n){let r=await t.getXml(e),i=e.substring(0,e.lastIndexOf("/")),o=e.substring(e.lastIndexOf("/")+1),a=`${i}/_rels/${o}.rels`,s=G(await t.getXml(a)),l=null==r?void 0:r["p:sldMaster"],u=V(l,"p:cSld"),h=V(u,"p:spTree"),c=await tE(u,n,s,t,i),d=j(await t.getText(e)||""),p=await t_(h,{theme:n,rels:s,zip:t,slideBasePath:i,orderMap:d}),f=[],g=[];for(let t of p)(t.phType||t.phIdx)&&f.push({type:t.phType,idx:t.phIdx,node:t});let m=new Set(f.map(t=>t.node));for(let t of p)m.has(t)||g.push(t);let y=V(l,"p:txStyles"),v=V(y,"p:titleStyle"),_=V(y,"p:bodyStyle"),x=V(y,"p:otherStyle");return{path:e,background:c,nodes:g,placeholders:f,txStyles:{titleStyle:v?tu(v,n,s):null,bodyStyle:_?tu(_,n,s):null,otherStyle:x?tu(x,n,s):null}}}async function tE(t,e,n,r,i){let o=V(t,"p:bg");if(!o)return{type:"none"};let a=V(o,"p:bgPr");if(a)return to(a,e,n,r,i);let s=V(o,"p:bgRef");if(s){let{color:t}=J(s,e);return{type:"solid",color:t,opacity:1}}return{type:"none"}}function tN(t){let e,n;if(!t)return;let r=V(t,"a:tcStyle");if(!r)return;if(r["a:solidFill"])e={"a:solidFill":r["a:solidFill"]};else if(r["a:gradFill"])e={"a:gradFill":r["a:gradFill"]};else if(r["a:pattFill"])e={"a:pattFill":r["a:pattFill"]};else if(r["a:noFill"])e={"a:noFill":r["a:noFill"]};else if(r["a:fillRef"])e={"a:solidFill":r["a:fillRef"]};else if(V(r,"a:fill")){let t=V(r,"a:fill");t["a:solidFill"]?e={"a:solidFill":t["a:solidFill"]}:t["a:gradFill"]?e={"a:gradFill":t["a:gradFill"]}:t["a:pattFill"]?e={"a:pattFill":t["a:pattFill"]}:t["a:noFill"]?e={"a:noFill":t["a:noFill"]}:t["a:fillRef"]&&(e={"a:solidFill":t["a:fillRef"]})}let i=V(r,"a:tcBdr");return i&&(n={},V(i,"a:top")&&(n.top=V(V(i,"a:top"),"a:ln")),V(i,"a:bottom")&&(n.bottom=V(V(i,"a:bottom"),"a:ln")),V(i,"a:left")&&(n.left=V(V(i,"a:left"),"a:ln")),V(i,"a:right")&&(n.right=V(V(i,"a:right"),"a:ln")),V(i,"a:insideH")&&(n.insideH=V(V(i,"a:insideH"),"a:ln")),V(i,"a:insideV")&&(n.insideV=V(V(i,"a:insideV"),"a:ln"))),{fill:e,borders:n}}async function tR(t){let e={},n=await t.getXml("ppt/tableStyles.xml");if(!n)return e;let r=V(n,"a:tblStyleLst");if(!r)return e;for(let t of H(r,"a:tblStyle")){let n=W(t,"styleId");n&&(e[n]={styleId:n,name:W(t,"styleName")||"",wholeTbl:tN(V(t,"a:wholeTbl")),band1H:tN(V(t,"a:band1H")),band2H:tN(V(t,"a:band2H")),band1V:tN(V(t,"a:band1V")),band2V:tN(V(t,"a:band2V")),firstRow:tN(V(t,"a:firstRow")),lastRow:tN(V(t,"a:lastRow")),firstCol:tN(V(t,"a:firstCol")),lastCol:tN(V(t,"a:lastCol"))})}return e}async function tz(t){let e=new F;await e.load(t);let n=await Y(e),r=await Q(e,n.themeRef),i=await e.getXml("ppt/slideMasters/slideMaster1.xml");i&&(r=function(t,e){var n;let r=null==(n=null==t?void 0:t["p:sldMaster"])?void 0:n["p:clrMap"];if(!r)return e;let i={...e.colorMap};for(let t of["tx1","tx2","bg1","bg2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"]){let e=W(r,t);e&&(i[t]=e)}return{...e,colorMap:i}}(i,r));let o=new Map,a=new Map,s=new Set;for(let t of n.slideRefs){let n=t.path.substring(0,t.path.lastIndexOf("/")),r=t.path.substring(t.path.lastIndexOf("/")+1),i=`${n}/_rels/${r}.rels`;for(let t of Object.values(G(await e.getXml(i))))t.includes("slideLayout")&&s.add(U(n,t))}for(let t of e.getFileNames())t.match(/^ppt\/slideLayouts\/slideLayout\d+\.xml$/)&&s.add(t);for(let t of s)try{let n=await tP(e,t,r);if(o.set(t,n),n.masterPath&&!a.has(n.masterPath)){let t=await tO(e,n.masterPath,r);a.set(n.masterPath,t)}}catch(e){console.warn(`Failed to parse layout ${t}:`,e)}let l=await tR(e),u=await Promise.all(n.slideRefs.map((t,n)=>tT(e,t.path,n,r,o,a,l)));return u.forEach((t,e)=>{console.debug(`[pptx] slide ${e+1}: ${t.nodes.length} nodes, bg=${t.background.type}`,t)}),console.debug(`[pptx] presentation: ${n.width}x${n.height}px, ${u.length} slides`),{width:n.width,height:n.height,slides:u,theme:r}}let tB={pct5:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="1" fill="{fg}"/>
|
|
18
|
+
<circle cx="6" cy="6" r="1" fill="{fg}"/>`,pct10:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="1.5" fill="{fg}"/>
|
|
19
|
+
<circle cx="6" cy="6" r="1.5" fill="{fg}"/>`,pct20:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="2" fill="{fg}"/>
|
|
20
|
+
<circle cx="6" cy="6" r="2" fill="{fg}"/>`,pct25:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="2.5" fill="{fg}"/>
|
|
21
|
+
<circle cx="6" cy="6" r="2.5" fill="{fg}"/>`,pct50:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="3" fill="{fg}"/>
|
|
22
|
+
<circle cx="6" cy="6" r="3" fill="{fg}"/>`,pct75:`<rect width="8" height="8" fill="{fg}"/><circle cx="2" cy="2" r="2.5" fill="{bg}"/>
|
|
23
|
+
<circle cx="6" cy="6" r="2.5" fill="{bg}"/>`,pct90:`<rect width="8" height="8" fill="{fg}"/><circle cx="2" cy="2" r="1.5" fill="{bg}"/>
|
|
24
|
+
<circle cx="6" cy="6" r="1.5" fill="{bg}"/>`,hStripe:'<rect width="8" height="8" fill="{bg}"/><rect width="8" height="4" fill="{fg}"/>',vStripe:'<rect width="8" height="8" fill="{bg}"/><rect width="4" height="8" fill="{fg}"/>',lightUpwardDiagonal:'<rect width="8" height="8" fill="{bg}"/><path d="M-2,10 L10,-2" stroke="{fg}" stroke-width="2"/>',lightDownwardDiagonal:'<rect width="8" height="8" fill="{bg}"/><path d="M-2,-2 L10,10" stroke="{fg}" stroke-width="2"/>',diagStripe:'<rect width="16" height="16" fill="{bg}"/><path d="M-4,20 L20,-4 M12,28 L28,12 M-12,4 L4,-12" stroke="{fg}" stroke-width="4"/>',cross:'<rect width="8" height="8" fill="{bg}"/><path d="M0,4 L8,4 M4,0 L4,8" stroke="{fg}" stroke-width="1"/>',diagCross:'<rect width="8" height="8" fill="{bg}"/><path d="M-2,-2 L10,10 M-2,10 L10,-2" stroke="{fg}" stroke-width="1"/>',checker:'<rect width="16" height="16" fill="{bg}"/><rect width="8" height="8" fill="{fg}"/><rect x="8" y="8" width="8" height="8" fill="{fg}"/>',wave:'<rect width="16" height="16" fill="{bg}"/><path d="M0,8 Q4,4 8,8 T16,8" fill="none" stroke="{fg}" stroke-width="2"/>',zigZag:'<rect width="16" height="16" fill="{bg}"/><path d="M0,12 L8,4 L16,12" fill="none" stroke="{fg}" stroke-width="2"/>'},tF=tB.pct10;function tV(t){switch(t.type){case"solid":return{backgroundColor:t.opacity<1?function(t,e){let n=t.replace("#",""),r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return`rgba(${r}, ${i}, ${o}, ${e})`}(t.color,t.opacity):t.color};case"gradient":{let e=t.stops.map(t=>`${t.color} ${t.position}%`).join(", ");if("radial"===t.gradientType||"rect"===t.gradientType){let n=t.center||{l:.5,t:.5,r:.5,b:.5},r=(n.l+(1-n.r))/2*100,i=(n.t+(1-n.b))/2*100;return{background:`radial-gradient(ellipse at ${r}% ${i}%, ${e})`}}return{background:`linear-gradient(${(270-(t.angle||0))%360}deg, ${e})`}}case"pattern":return{backgroundImage:`url("${function(t,e,n){let r=tB[t]||tF,i=r.includes('width="16"')?16:8,o=`
|
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${i}">
|
|
26
|
+
${r.replace(/\{fg\}/g,e).replace(/\{bg\}/g,n)}
|
|
27
|
+
</svg>
|
|
28
|
+
`.trim();return`data:image/svg+xml;base64,${btoa(o)}`}(t.preset,t.fgColor,t.bgColor)}")`,backgroundRepeat:"repeat"};case"image":return{backgroundImage:`url(${t.src})`,backgroundSize:t.stretch?"cover":"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"};case"none":return{}}}function tW({textBody:t,width:e,height:n}){let{bodyProps:r,paragraphs:i}=t,s={width:e?`${e}px`:"100%",height:n?`${n}px`:"100%",paddingLeft:`${r.lIns}px`,paddingTop:`${r.tIns}px`,paddingRight:`${r.rIns}px`,paddingBottom:`${r.bIns}px`,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"};"middle"===r.vertAlign?s.justifyContent="center":"bottom"===r.vertAlign&&(s.justifyContent="flex-end"),r.wrap||(s.whiteSpace="nowrap");let l={},u=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{if("normAutofit"===r.autofit&&n&&u.current){let t=u.current;t.style.setProperty("--font-scale","1");let e=1,r=20;for(;t.scrollHeight>n&&e>.1&&r>0;)e-=.05,t.style.setProperty("--font-scale",e.toString()),r--}},[r.autofit,n,t,e]),(0,o.jsx)("div",{ref:u,style:{...s,"--font-scale":"1"},children:i.map((t,e)=>{var n,r,i;let a=t.props.level??0,s=18*a,u={margin:0,textAlign:t.props.align,paddingLeft:t.props.marginLeft?`${t.props.marginLeft}px`:s?`${s}px`:void 0,textIndent:t.props.indent?`${t.props.indent}px`:void 0,marginTop:t.props.spaceBefore?`calc(var(--font-scale, 1) * ${t.props.spaceBefore}px)`:void 0,marginBottom:t.props.spaceAfter?`calc(var(--font-scale, 1) * ${t.props.spaceAfter}px)`:void 0};null!==t.props.lineSpacing&&void 0!==t.props.lineSpacing&&(u.lineHeight=t.props.lineSpacing<=5?t.props.lineSpacing:`calc(var(--font-scale, 1) * ${t.props.lineSpacing}px)`);let h=t.runs.some(t=>t.text.length>0),c=null;if(t.props.bullet&&h){let e=t.props.bullet;if("char"===e.type)c=e.char||"•";else if("autoNum"===e.type){Object.keys(l).forEach(t=>{Number(t)>a&&delete l[Number(t)]});let t=(l[a]||(e.startAt??1)-1)+1;l[a]=t,c=function(t,e){let n=e.includes("alpha"),r=e.includes("Lc"),i=e.includes("roman"),o=t.toString();return n?o=String.fromCharCode((r?97:65)+(t-1)%26):i&&(o=function(t){let e={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},n="";for(let r of Object.keys(e)){let i=Math.floor(t/e[r]);t-=i*e[r],n+=r.repeat(i)}return n||"0"}(t),r&&(o=o.toLowerCase())),e.includes("ParenBoth")?`(${o})`:e.includes("ParenR")?`${o})`:`${o}.`}(t,e.autoNumType||"arabicPeriod")}}let d={display:"inline-block",width:t.props.indent?`${Math.abs(t.props.indent)}px`:"1.2em",textAlign:"left",color:(null==(n=t.props.bullet)?void 0:n.color)??void 0,fontSize:null!=(r=t.props.bullet)&&r.fontSize?`calc(var(--font-scale, 1) * ${t.props.bullet.fontSize}px)`:void 0,fontFamily:(null==(i=t.props.bullet)?void 0:i.fontFamily)??void 0};return(0,o.jsxs)("p",{style:u,children:[c&&h&&(0,o.jsx)("span",{style:d,children:c}),t.runs.map((t,e)=>(0,o.jsx)(tH,{run:t},e)),!h&&(0,o.jsx)("span",{children:"\xa0"})]},e)})})}function tH({run:t}){if("break"===t.type)return(0,o.jsx)("br",{});let e=t.props,n={};e.fontFamily&&(n.fontFamily=e.fontFamily),e.fontSize&&(n.fontSize=`calc(var(--font-scale, 1) * ${e.fontSize}px)`),e.bold&&(n.fontWeight="bold"),e.italic&&(n.fontStyle="italic"),e.color&&(n.color=e.color),e.highlight&&(n.backgroundColor=e.highlight);let r=[];e.underline&&r.push("underline"),e.strikethrough&&r.push("line-through"),r.length&&(n.textDecoration=r.join(" ")),e.baseline&&e.baseline>0?(n.verticalAlign="super",n.fontSize=`calc(var(--font-scale, 1) * ${(e.fontSize??12)*.65}px)`):e.baseline&&e.baseline<0&&(n.verticalAlign="sub",n.fontSize=`calc(var(--font-scale, 1) * ${(e.fontSize??12)*.65}px)`);let i=(0,o.jsx)("span",{style:n,children:t.text});return e.hyperlink?(0,o.jsx)("a",{href:e.hyperlink,target:"_blank",rel:"noopener noreferrer",style:{color:e.color??"#0563C1",textDecoration:"underline"},children:i}):i}function tG(t,e,n,r){let i=t/2,o=e/2,a=t/2,s=e/2,l=[];for(let t=0;t<2*n;t++){let e=t*Math.PI/n-Math.PI/2,u=t%2==0?1:r;l.push(`${i+a*u*Math.cos(e)},${o+s*u*Math.sin(e)}`)}return`M${l.join(" L")} Z`}function tj(t,e,n){let r=t/2,i=e/2,o=[];for(let a=0;a<n;a++){let s=2*a*Math.PI/n-Math.PI/2;o.push(`${r+t/2*Math.cos(s)},${i+e/2*Math.sin(s)}`)}return`M${o.join(" L")} Z`}let tU={rect:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`,roundRect:(t,e)=>{let n=.1*Math.min(t,e);return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} L0,${n} Q0,0 ${n},0 Z`},snip1Rect:(t,e)=>{let n=.2*Math.min(t,e);return`M0,0 L${t-n},0 L${t},${n} L${t},${e} L0,${e} Z`},snip2SameRect:(t,e)=>{let n=.2*Math.min(t,e);return`M0,0 L${t-n},0 L${t},${n} L${t},${e} L${n},${e} L0,${e-n} Z`},snipRoundRect:(t,e)=>{let n=.15*Math.min(t,e);return`M0,0 L${t-n},0 L${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} Z`},round1Rect:(t,e)=>{let n=.2*Math.min(t,e);return`M0,0 L${t},0 L${t},${e-n} Q${t},${e} ${t-n},${e} L0,${e} Z`},round2DiagRect:(t,e)=>{let n=.15*Math.min(t,e);return`M${n},0 L${t},0 L${t},${e-n} Q${t},${e} ${t-n},${e} L0,${e} L0,${n} Q0,0 ${n},0 Z`},triangle:(t,e)=>`M${t/2},0 L${t},${e} L0,${e} Z`,rtTriangle:(t,e)=>`M0,0 L${t},${e} L0,${e} Z`,isocelesTrapezoid:(t,e)=>`M${.2*t},0 L${.8*t},0 L${t},${e} L0,${e} Z`,trapezoid:(t,e)=>`M${.15*t},0 L${.85*t},0 L${t},${e} L0,${e} Z`,ellipse:(t,e)=>{let n=t/2,r=e/2;return`M${n},0 A${n},${r} 0 1,1 ${n},${e} A${n},${r} 0 1,1 ${n},0 Z`},flowChartConnector:(t,e)=>{let n=t/2,r=e/2;return`M${n},0 A${n},${r} 0 1,1 ${n},${e} A${n},${r} 0 1,1 ${n},0 Z`},diamond:(t,e)=>`M${t/2},0 L${t},${e/2} L${t/2},${e} L0,${e/2} Z`,parallelogram:(t,e)=>`M${.2*t},0 L${t},0 L${.8*t},${e} L0,${e} Z`,pentagon:(t,e)=>tj(t,e,5),hexagon:(t,e)=>tj(t,e,6),heptagon:(t,e)=>tj(t,e,7),octagon:(t,e)=>{let n=.29*t;return`M${n},0 L${t-n},0 L${t},${n} L${t},${e-n} L${t-n},${e} L${n},${e} L0,${e-n} L0,${n} Z`},decagon:(t,e)=>tj(t,e,10),dodecagon:(t,e)=>tj(t,e,12),pie:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r},${i} L${r+n},${i} A${n},${n} 0 1,1 ${r},${i-n} Z`},star4:(t,e)=>tG(t,e,4,.38),star5:(t,e)=>tG(t,e,5,.38),star6:(t,e)=>tG(t,e,6,.5),star7:(t,e)=>tG(t,e,7,.42),star8:(t,e)=>tG(t,e,8,.38),star10:(t,e)=>tG(t,e,10,.38),star12:(t,e)=>tG(t,e,12,.47),star16:(t,e)=>tG(t,e,16,.47),star24:(t,e)=>tG(t,e,24,.6),star32:(t,e)=>tG(t,e,32,.65),irregularSeal1:(t,e)=>tG(t,e,8,.3),irregularSeal2:(t,e)=>tG(t,e,10,.35),rightArrow:(t,e)=>`M0,${.25*e} L${.6*t},${.25*e} L${.6*t},0 L${t},${e/2} L${.6*t},${e} L${.6*t},${.75*e} L0,${.75*e} Z`,leftArrow:(t,e)=>`M${t},${.25*e} L${.4*t},${.25*e} L${.4*t},0 L0,${e/2} L${.4*t},${e} L${.4*t},${.75*e} L${t},${.75*e} Z`,upArrow:(t,e)=>`M${.25*t},${e} L${.25*t},${.4*e} L0,${.4*e} L${t/2},0 L${t},${.4*e} L${.75*t},${.4*e} L${.75*t},${e} Z`,downArrow:(t,e)=>`M${.25*t},0 L${.75*t},0 L${.75*t},${.6*e} L${t},${.6*e} L${t/2},${e} L0,${.6*e} L${.25*t},${.6*e} Z`,leftRightArrow:(t,e)=>`M0,${e/2} L${.3*t},0 L${.3*t},${.25*e} L${.7*t},${.25*e} L${.7*t},0 L${t},${e/2} L${.7*t},${e} L${.7*t},${.75*e} L${.3*t},${.75*e} L${.3*t},${e} Z`,upDownArrow:(t,e)=>`M${t/2},0 L${t},${.3*e} L${.75*t},${.3*e} L${.75*t},${.7*e} L${t},${.7*e} L${t/2},${e} L0,${.7*e} L${.25*t},${.7*e} L${.25*t},${.3*e} L0,${.3*e} Z`,quadArrow:(t,e)=>{let n=.35*t,r=.25*t;return`M${t/2},0 L${t/2+r},${n} L${t/2+r/2},${n} L${t/2+r/2},${t/2-r/2} L${t-n},${t/2-r/2} L${t-n},${t/2-r} L${t},${t/2} L${t-n},${t/2+r} L${t-n},${t/2+r/2} L${t/2+r/2},${t/2+r/2} L${t/2+r/2},${e-n} L${t/2+r},${e-n} L${t/2},${e} L${t/2-r},${e-n} L${t/2-r/2},${e-n} L${t/2-r/2},${t/2+r/2} L${n},${t/2+r/2} L${n},${t/2+r} L0,${t/2} L${n},${t/2-r} L${n},${t/2-r/2} L${t/2-r/2},${t/2-r/2} L${t/2-r/2},${n} L${t/2-r},${n} Z`},notchedRightArrow:(t,e)=>`M0,${.25*e} L${.7*t},${.25*e} L${.7*t},0 L${t},${e/2} L${.7*t},${e} L${.7*t},${.75*e} L0,${.75*e} L${.2*t},${e/2} Z`,homePlate:(t,e)=>`M0,0 L${.75*t},0 L${t},${e/2} L${.75*t},${e} L0,${e} Z`,chevron:(t,e)=>`M0,0 L${.75*t},0 L${t},${e/2} L${.75*t},${e} L0,${e} L${.25*t},${e/2} Z`,stripedRightArrow:(t,e)=>`M0,${.25*e} L${.25*t},${.25*e} L${.25*t},0 L${t},${e/2} L${.25*t},${e} L${.25*t},${.75*e} L0,${.75*e} Z`,bentUpArrow:(t,e)=>`M0,${e} L0,${.35*e} L${.5*t},${.35*e} L${.5*t},0 L${.65*t},0 L${.65*t},${.35*e} L${t},${.35*e} L${.75*t},${.1*e} L${+t},${.6*e} L${.75*t},${.85*e} L${t},${.35*e} L${.65*t},${.35*e} L${.65*t},${e} Z`,wedgeRectCallout:(t,e)=>`M0,0 L${t},0 L${t},${.7*e} L${.35*t},${.7*e} L${.2*t},${e} L${.3*t},${.7*e} L0,${.7*e} Z`,wedgeRoundRectCallout:(t,e)=>{let n=.08*Math.min(t,e);return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${.7*e-n} Q${t},${.7*e} ${t-n},${.7*e} L${.35*t},${.7*e} L${.2*t},${e} L${.3*t},${.7*e} L${n},${.7*e} Q0,${.7*e} 0,${.7*e-n} L0,${n} Q0,0 ${n},0 Z`},wedgeEllipseCallout:(t,e)=>{let n=t/2,r=.35*e;return`M${n},0 A${n},${r} 0 1,1 ${.35*t},${2*r} L${.2*t},${e} L${.45*t},${2*r} A${n},${r} 0 0,1 ${n},0 Z`},cloudCallout:(t,e)=>`M${.25*t},${.75*e} Q0,${.75*e} 0,${.55*e} Q0,${.35*e} ${.2*t},${.3*e} Q${.15*t},0 ${t/2},${.15*e} Q${.85*t},0 ${.8*t},${.3*e} Q${t},${.35*e} ${t},${.55*e} Q${t},${.75*e} ${.75*t},${.75*e} L${.4*t},${.75*e} L${.2*t},${e} L${.35*t},${.75*e} Z`,borderCallout1:(t,e)=>`M0,0 L${t},0 L${t},${e} L${.35*t},${e} L${.1*t},${1.2*e} L${.3*t},${e} L0,${e} Z`,borderCallout2:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} L${.1*t},${1.3*e} Z`,flowChartProcess:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`,flowChartDecision:(t,e)=>`M${t/2},0 L${t},${e/2} L${t/2},${e} L0,${e/2} Z`,flowChartInputOutput:(t,e)=>`M${.15*t},0 L${t},0 L${.85*t},${e} L0,${e} Z`,flowChartTerminator:(t,e)=>{let n=e/2;return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${n} Q0,0 ${n},0 Z`},flowChartPredefinedProcess:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z M${.1*t},0 L${.1*t},${e} M${.9*t},0 L${.9*t},${e}`,flowChartManualInput:(t,e)=>`M0,${.3*e} L${t},0 L${t},${e} L0,${e} Z`,flowChartManualOperation:(t,e)=>`M0,0 L${t},0 L${.85*t},${e} L${.15*t},${e} Z`,flowChartDelay:(t,e)=>{let n=e/2;return`M0,0 L${t-n},0 Q${t},0 ${t},${n} Q${t},${e} ${t-n},${e} L0,${e} Z`},flowChartDocument:(t,e)=>`M0,0 L${t},0 L${t},${.75*e} Q${.75*t},${e} ${t/2},${.85*e} Q${.25*t},${.7*e} 0,${.85*e} Z`,flowChartMultidocument:(t,e)=>`M${.05*t},${.1*e} L${t},${.1*e} L${t},${.8*e} Q${.8*t},${.9*e} ${t/2+.05*t},${.75*e} Q${.3*t},${.6*e} ${.05*t},${.75*e} Z`,flowChartAlternateProcess:(t,e)=>{let n=.2*Math.min(t,e);return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} L0,${n} Q0,0 ${n},0 Z`},flowChartOfflineStorage:(t,e)=>`M0,0 L${t},0 L${t/2},${e} Z`,flowChartOnlineStorage:(t,e)=>{let n=e/2;return`M${n},0 A${n},${n} 0 0,0 ${n},${e} L${t},${e} A${n},${n} 0 0,0 ${t},0 Z`},flowChartExtract:(t,e)=>`M${t/2},0 L${t},${e} L0,${e} Z`,flowChartMerge:(t,e)=>`M0,0 L${t},0 L${t/2},${e} Z`,flowChartCollate:(t,e)=>`M0,0 L${t},0 L${t/2},${e/2} L${t},${e} L0,${e} L${t/2},${e/2} Z`,flowChartSort:(t,e)=>`M${t/2},0 L${t},${e/2} L${t/2},${e} L0,${e/2} Z M0,${e/2} L${t},${e/2}`,flowChartSummingJunction:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r+n},${i} A${n},${n} 0 1,1 ${r-n},${i} A${n},${n} 0 0,1 ${r+n},${i} Z M${r-.7*n},${i-.7*n} L${r+.7*n},${i+.7*n} M${r+.7*n},${i-.7*n} L${r-.7*n},${i+.7*n}`},flowChartDatabase:(t,e)=>{let n=.1*e;return`M0,${n} Q0,0 ${t/2},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t/2},${e} Q0,${e} 0,${e-n} Z M0,${n} Q0,${2*n} ${t/2},${2*n} Q${t},${2*n} ${t},${n}`},cube:(t,e)=>{let n=.2*Math.min(t,e);return`M${n},0 L${t},0 L${t},${e-n} L${t-n},${e} L0,${e} L0,${n} Z M${n},0 L0,${n} M${t},0 L${n},0 L0,${n} M${t},${e-n} L${t-n},${e}`},bevel:(t,e)=>{let n=.12*Math.min(t,e);return`M${n},0 L${t-n},0 L${t},${n} L${t},${e-n} L${t-n},${e} L${n},${e} L0,${e-n} L0,${n} Z`},plaque:(t,e)=>{let n=.15*Math.min(t,e);return`M0,${n} Q0,0 ${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} Z M${n},0 Q${n},${n} 0,${n} M${t-n},0 Q${t-n},${n} ${t},${n} M${t},${e-n} Q${t-n},${e-n} ${t-n},${e} M0,${e-n} Q${n},${e-n} ${n},${e}`},can:(t,e)=>{let n=.1*e;return`M0,${n} Q0,0 ${t/2},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t/2},${e} Q0,${e} 0,${e-n} Z M0,${n} Q0,${2*n} ${t/2},${2*n} Q${t},${2*n} ${t},${n}`},folderCorner:(t,e)=>`M0,0 L${.4*t},0 L${.5*t},${.15*e} L${t},${.15*e} L${t},${e} L0,${e} Z`,noSmoking:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r+n},${i} A${n},${n} 0 1,1 ${r-n},${i} A${n},${n} 0 0,1 ${r+n},${i} Z M${r-.65*n},${i-.35*n} L${r+.65*n},${i+.35*n}`},smileyFace:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r+n},${i} A${n},${n} 0 1,1 ${r-n},${i} A${n},${n} 0 0,1 ${r+n},${i} Z M${r-.3*n},${i-.2*n} A${.05*n},${.05*n} 0 1,1 ${r-.3*n-.1},${i-.2*n} M${r+.3*n},${i-.2*n} A${.05*n},${.05*n} 0 1,1 ${r+.3*n-.1},${i-.2*n} M${r-.35*n},${i+.1*n} Q${r},${i+.5*n} ${r+.35*n},${i+.1*n}`},heart:(t,e)=>`M${t/2},${.25*e} C${t/2},${.03*e} ${.85*t},-${.05*e} ${t},${.25*e} C${1.1*t},${.5*e} ${t/2},${.85*e} ${t/2},${e} C${t/2},${.85*e} -${.1*t},${.5*e} 0,${.25*e} C${.15*t},-${.05*e} ${t/2},${.03*e} ${t/2},${.25*e} Z`,lightningBolt:(t,e)=>`M${.55*t},0 L${.2*t},${.5*e} L${.45*t},${.5*e} L${.45*t},${e} L${.8*t},${.5*e} L${.55*t},${.5*e} Z`,moon:(t,e)=>`M${.5*t},0 A${.5*t},${.5*e} 0 1,1 ${.5*t},${e} A${.3*t},${.4*e} 0 1,0 ${.5*t},0 Z`,sun:(t,e)=>{let n=t/2,r=e/2,i=.25*Math.min(t,e),o=`M${n+i},${r} A${i},${i} 0 1,1 ${n-i},${r} A${i},${i} 0 0,1 ${n+i},${r} Z`;for(let t=0;t<8;t++){let e=t*Math.PI/4,a=1.4*i,s=1.7*i;o+=` M${n+a*Math.cos(e)},${r+a*Math.sin(e)} L${n+s*Math.cos(e)},${r+s*Math.sin(e)}`}return o},donut:(t,e)=>{let n=t/2,r=e/2,i=.5*n,o=.5*r;return`M${2*n},${r} A${n},${r} 0 1,1 0,${r} A${n},${r} 0 0,1 ${2*n},${r} Z M${n+i},${r} A${i},${o} 0 1,0 ${n-i},${r} A${i},${o} 0 0,0 ${n+i},${r} Z`},ribbon:(t,e)=>`M0,${.15*e} L${.15*t},0 L${.15*t},${.85*e} L0,${e} L${.15*t},${.7*e} L${.85*t},${.7*e} L${t},${e} L${.85*t},${.85*e} L${.85*t},0 L${t},${.15*e} L${.85*t},${.3*e} L${.15*t},${.3*e} Z`,ribbon2:(t,e)=>`M0,${.15*e} L${.15*t},${.15*e} L${.15*t},0 L${.85*t},0 L${.85*t},${.15*e} L${t},${.15*e} L${.9*t},${.5*e} L${t},${.85*e} L${.85*t},${.85*e} L${.85*t},${e} L${.15*t},${e} L${.15*t},${.85*e} L0,${.85*e} L${.1*t},${.5*e} Z`,ellipseRibbon:(t,e)=>`M0,${.3*e} Q${t/2},0 ${t},${.3*e} L${t},${e} L${.85*t},${.7*e} L${.15*t},${.7*e} L0,${e} Z`,wave:(t,e)=>`M0,${.35*e} Q${.25*t},0 ${.5*t},${.3*e} Q${.75*t},${.6*e} ${t},${.3*e} L${t},${.7*e} Q${.75*t},${.4*e} ${.5*t},${.7*e} Q${.25*t},${e} 0,${.65*e} Z`,doubleWave:(t,e)=>`M0,${.35*e} Q${.125*t},0 ${.25*t},${.3*e} Q${.375*t},${.6*e} ${.5*t},${.3*e} Q${.625*t},0 ${.75*t},${.3*e} Q${.875*t},${.6*e} ${t},${.3*e} L${t},${.7*e} Q${.875*t},${.4*e} ${.75*t},${.7*e} Q${.625*t},${e} ${.5*t},${.7*e} Q${.375*t},${.4*e} ${.25*t},${.7*e} Q${.125*t},${e} 0,${.65*e} Z`,mathPlus:(t,e)=>{let n=t/3;return`M${n},0 L${t-n},0 L${t-n},${n} L${t},${n} L${t},${e-n} L${t-n},${e-n} L${t-n},${e} L${n},${e} L${n},${e-n} L0,${e-n} L0,${n} L${n},${n} Z`},mathMinus:(t,e)=>`M0,${e/3} L${t},${e/3} L${t},${2*e/3} L0,${2*e/3} Z`,mathMultiply:(t,e)=>{let n=.25*t;return`M${n},0 L${t/2},${e/2-n} L${t-n},0 L${t},${n} L${t/2+n},${e/2} L${t},${e-n} L${t-n},${e} L${t/2},${e/2+n} L${n},${e} L0,${e-n} L${t/2-n},${e/2} L0,${n} Z`},mathDivide:(t,e)=>`M${.3*t},${.5*e-.05*e} L${.7*t},${.5*e-.05*e} L${.7*t},${.5*e+.05*e} L${.3*t},${.5*e+.05*e} Z M${t/2-.06*t},${.1*e} A${.06*t},${.1*e} 0 1,0 ${t/2+.06*t},${.1*e} A${.06*t},${.1*e} 0 0,0 ${t/2-.06*t},${.1*e} Z M${t/2-.06*t},${.9*e} A${.06*t},${.1*e} 0 1,0 ${t/2+.06*t},${.9*e} A${.06*t},${.1*e} 0 0,0 ${t/2-.06*t},${.9*e} Z`,mathEqual:(t,e)=>{let n=.12*e;return`M0,${e/2-n-.1*e} L${t},${e/2-n-.1*e} L${t},${e/2-n} L0,${e/2-n} Z M0,${e/2+n} L${t},${e/2+n} L${t},${e/2+n+.1*e} L0,${e/2+n+.1*e} Z`},mathNotEqual:(t,e)=>{let n=.1*e;return`M0,${e/2-n-.08*e} L${t},${e/2-n-.08*e} L${t},${e/2-n} L0,${e/2-n} Z M0,${e/2+n} L${t},${e/2+n} L${t},${e/2+n+.08*e} L0,${e/2+n+.08*e} Z M${.3*t},0 L${.7*t},${e}`},line:(t,e)=>`M0,${e/2} L${t},${e/2}`,straightConnector1:(t,e)=>`M0,${e/2} L${t},${e/2}`,bentConnector2:(t,e)=>`M0,0 L${t},${e}`,bentConnector3:(t,e)=>`M0,0 L${t/2},0 L${t/2},${e} L${t},${e}`,bentConnector4:(t,e)=>`M0,0 L${.33*t},0 L${.33*t},${e} L${.67*t},${e} L${.67*t},0 L${t},0`,bentConnector5:(t,e)=>`M0,0 L0,${e/2} L${t},${e/2} L${t},${e}`,curvedConnector2:(t,e)=>`M0,0 Q${t},0 ${t},${e}`,curvedConnector3:(t,e)=>`M0,0 C${t/2},0 ${t/2},${e} ${t},${e}`,curvedConnector4:(t,e)=>`M0,0 C${.33*t},0 ${.33*t},${e} ${.67*t},${e} S${t},0 ${t},0`,curvedConnector5:(t,e)=>`M0,0 C0,${e/3} ${t},${e/3} ${t},${e/2} C${t},${2*e/3} 0,${2*e/3} 0,${e}`,accentCallout1:(t,e)=>`M0,0 L${t},0 L${t},${.7*e} L${.35*t},${.7*e} L${.2*t},${e} L${.3*t},${.7*e} L0,${.7*e} Z`,leftBrace:(t,e)=>`M${t},${.1*e} Q${.6*t},${.1*e} ${.5*t},${.25*e} Q${.4*t},${.4*e} 0,${e/2} Q${.4*t},${.6*e} ${.5*t},${.75*e} Q${.6*t},${.9*e} ${t},${.9*e}`,rightBrace:(t,e)=>`M0,${.1*e} Q${.4*t},${.1*e} ${.5*t},${.25*e} Q${.6*t},${.4*e} ${t},${e/2} Q${.6*t},${.6*e} ${.5*t},${.75*e} Q${.4*t},${.9*e} 0,${.9*e}`,leftBracket:(t,e)=>`M${t},0 L${.3*t},0 L${.3*t},${e} L${t},${e}`,rightBracket:(t,e)=>`M0,0 L${.7*t},0 L${.7*t},${e} L0,${e}`,leftRightBrace:(t,e)=>{let n=t/2;return`M0,${.1*e} Q${.4*n},${.1*e} ${.5*n},${.25*e} Q${.6*n},${.4*e} ${n},${e/2} Q${.6*n},${.6*e} ${.5*n},${.75*e} Q${.4*n},${.9*e} 0,${.9*e} M${t},${.1*e} Q${t-.4*n},${.1*e} ${t-.5*n},${.25*e} Q${t-.6*n},${.4*e} ${n},${e/2} Q${t-.6*n},${.6*e} ${t-.5*n},${.75*e} Q${t-.4*n},${.9*e} ${t},${.9*e}`}},tZ=0;function tX({node:t}){var e;let{size:n,fill:r,border:i,textBody:s,presetGeom:l}=t,u=n.w,h=n.h,c=(0,a.useMemo)(()=>`shape-${tZ++}`,[]),d=tU[l],p=["line","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5"].includes(l);if(!t.custGeomPath&&"rect"===l&&"none"===r.type&&!i&&s)return(0,o.jsx)(tW,{textBody:s,width:u,height:h});let f=t.custGeomPath||(d?d(u,h):`M0,0 L${u},0 L${u},${h} L0,${h} Z`),g="gradient"===r.type,m=g?`grad-${c}`:"";if(!p&&("image"===r.type||"pattern"===r.type)){let t=tV(r);return(0,o.jsxs)("div",{style:{position:"relative",width:u,height:h},children:[(0,o.jsx)("div",{style:{position:"absolute",inset:0,...t,clipPath:`path('${f}')`}}),i&&(0,o.jsx)("svg",{width:u,height:h,viewBox:`0 0 ${u} ${h}`,style:{position:"absolute",inset:0},children:(0,o.jsx)("path",{d:f,fill:"none",stroke:i.color,strokeWidth:i.width,strokeDasharray:tY(i.dash)})}),s&&(0,o.jsx)("div",{style:{position:"absolute",inset:0,overflow:"hidden"},children:(0,o.jsx)(tW,{textBody:s,width:u,height:h})})]})}let y="gradient"===r.type?`url(#${m})`:"solid"===(e=r).type?e.color:"transparent",v="solid"===r.type?r.opacity:1;return(0,o.jsxs)("div",{style:{position:"relative",width:u,height:h},children:[(0,o.jsxs)("svg",{width:u,height:h,viewBox:`0 0 ${u} ${h}`,style:{position:"absolute",inset:0},overflow:"visible",children:[g&&(()=>{if("gradient"!==r.type)return null;if("radial"===r.gradientType||"rect"===r.gradientType){let t=r.center||{l:.5,t:.5,r:.5,b:.5},e=(t.l+(1-t.r))/2*100,n=(t.t+(1-t.b))/2*100;return(0,o.jsx)("defs",{children:(0,o.jsx)("radialGradient",{id:m,cx:`${e}%`,cy:`${n}%`,r:"70.7%",children:r.stops.map((t,e)=>(0,o.jsx)("stop",{offset:`${t.position}%`,stopColor:t.color,stopOpacity:t.opacity},e))})})}let t=(270-(r.angle||0))%360*Math.PI/180,e=50-50*Math.cos(t),n=50-50*Math.sin(t),i=50+50*Math.cos(t),a=50+50*Math.sin(t);return(0,o.jsx)("defs",{children:(0,o.jsx)("linearGradient",{id:m,x1:`${e}%`,y1:`${n}%`,x2:`${i}%`,y2:`${a}%`,children:r.stops.map((t,e)=>(0,o.jsx)("stop",{offset:`${t.position}%`,stopColor:t.color,stopOpacity:t.opacity},e))})})})(),(0,o.jsx)("path",{d:f,fill:p?"none":y,fillOpacity:p?0:v,stroke:i?i.color:"none",strokeWidth:(null==i?void 0:i.width)||0,strokeDasharray:tY(null==i?void 0:i.dash)})]}),s&&(0,o.jsx)("div",{style:{position:"absolute",inset:0,overflow:"hidden"},children:(0,o.jsx)(tW,{textBody:s,width:u,height:h})})]})}function tY(t){if(!(!t||"solid"===t)){if("dash"===t)return"8,4";if("dot"===t)return"2,2";if("lgDash"===t)return"12,4";if("dashDot"===t)return"8,4,2,4";if("lgDashDot"===t)return"12,4,2,4";if("lgDashDotDot"===t)return"12,4,2,4,2,4";if("sysDash"===t)return"6,2";if("sysDot"===t)return"2,2";if("sysDashDot"===t)return"6,2,2,2";if("sysDashDotDot"===t)return"6,2,2,2,2,2"}}function tq({node:t}){let{size:e,src:n,srcRect:r}=t,i={width:`${e.w}px`,height:`${e.h}px`,display:"block"};return r&&(i.clipPath=`inset(${r.top}% ${r.right}% ${r.bottom}% ${r.left}%)`),n?(0,o.jsx)("img",{src:n,alt:"",style:i,draggable:!1}):(0,o.jsx)("div",{style:{...i,backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",color:"#999",fontSize:"12px"},children:"Image not found"})}function tQ({node:t}){let{size:e,colWidths:n,rows:r,tableFill:i}=t,a=i&&"none"!==i.type?tV(i):{};return(0,o.jsx)("div",{style:{width:e.w,minHeight:e.h,...a},children:(0,o.jsxs)("table",{style:{width:`${e.w}px`,borderCollapse:"collapse",tableLayout:"fixed"},children:[(0,o.jsx)("colgroup",{children:n.map((t,e)=>(0,o.jsx)("col",{style:{width:`${t}px`}},e))}),(0,o.jsx)("tbody",{children:r.map((t,e)=>(0,o.jsx)("tr",{style:{height:`${t.height}px`},children:t.cells.map((n,i)=>{if(n.hMerge||n.vMerge)return null;let a=t=>{if(!t||0===t.width)return"none";let e=t.dash&&"solid"!==t.dash?"dashed":"solid";return`${t.width}px ${e} ${t.color}`},s="none"!==n.fill.type?tV(n.fill):{},l="middle"===n.anchor?"middle":"bottom"===n.anchor?"bottom":"top",u=n.rowSpan>1?r.slice(e,e+n.rowSpan).reduce((t,e)=>t+e.height,0):t.height,h=Math.max(0,u-n.margins.top-n.margins.bottom);return(0,o.jsx)("td",{colSpan:n.gridSpan>1?n.gridSpan:void 0,rowSpan:n.rowSpan>1?n.rowSpan:void 0,style:{height:`${u}px`,maxHeight:`${u}px`,...s,borderTop:a(n.borders.top),borderRight:a(n.borders.right),borderBottom:a(n.borders.bottom),borderLeft:a(n.borders.left),paddingTop:`${n.margins.top}px`,paddingBottom:`${n.margins.bottom}px`,paddingLeft:`${n.margins.left}px`,paddingRight:`${n.margins.right}px`,verticalAlign:l,boxSizing:"border-box"},children:(0,o.jsx)(tW,{textBody:n.textBody,width:void 0,height:h})},i)})},e))})]})})}function tK({node:t}){let{size:e,childOffset:n,childExtent:r,children:i}=t,a=r.w>0?e.w/r.w:1,s=r.h>0?e.h/r.h:1;return(0,o.jsx)("div",{style:{width:`${e.w}px`,height:`${e.h}px`,position:"relative",overflow:"hidden"},children:(0,o.jsx)("div",{style:{position:"absolute",left:`${-n.x*a}px`,top:`${-n.y*s}px`,transform:`scale(${a}, ${s})`,transformOrigin:"0 0"},children:i.map((t,e)=>(0,o.jsx)(bM,{node:t},e))})})}var tJ=function(t,e){return(tJ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function t0(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}tJ(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var t1=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},t2=new function(){this.browser=new t1,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(t2.wxa=!0,t2.touchEventsSupported=!0):typeof document>"u"&&"u">typeof self?t2.worker=!0:!t2.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(t2.node=!0,t2.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,t2);var t5="sans-serif",t3="12px "+t5,t4=function(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),t6={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!n6){var n=t6.createCanvas();n6=n&&n.getContext("2d")}if(n6)return n8!==e&&(n8=n6.font=e||t3),n6.measureText(t);t=t||"",e=e||t3;var r=/((?:\d+)?\.?\d*)px/.exec(e),i=r&&+r[1]||12,o=0;if(e.indexOf("mono")>=0)o=i*t.length;else for(var a=0;a<t.length;a++){var s=t4[t[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},t8=e_(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),t7=e_(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),t9=Object.prototype.toString,et=Array.prototype,ee=et.forEach,en=et.filter,er=et.slice,ei=et.map,eo=(function(){}).constructor,ea=eo?eo.prototype:null,es="__proto__",el=2311;function eu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function eh(t){if(null==t||"object"!=typeof t)return t;var e=t,n=t9.call(t);if("[object Array]"===n){if(!t[eB]){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=eh(t[r])}}else if(t7[n]){if(!t[eB]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!t8[n]&&!t[eB]&&!e$(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==es&&(e[a]=eh(t[a]));return e}function ec(t,e,n){if(!eA(e)||!eA(t))return n?eh(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==es){var i=t[r],o=e[r];!(eA(o)&&eA(i))||ek(o)||ek(i)||e$(o)||e$(i)||eD(o)||eD(i)||o[eB]||i[eB]?!n&&r in t||(t[r]=eh(e[r])):ec(i,o,n)}return t}function ed(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==es&&(t[n]=e[n]);return t}function ep(t,e,n){for(var r=eb(e),i=0,o=r.length;i<o;i++){var a=r[i];null==t[a]&&(t[a]=e[a])}return t}function ef(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return -1}function eg(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&null==t[o]&&(t[o]=e[o])}else ep(t,e)}function em(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function ey(t,e,n){if(t&&e)if(t.forEach&&t.forEach===ee)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function ev(t,e,n){if(!t)return[];if(!e)return eE(t);if(t.map&&t.map===ei)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function e_(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function ex(t,e,n){if(!t)return[];if(!e)return eE(t);if(t.filter&&t.filter===en)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function eb(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var ew=ea&&eM(ea.bind)?ea.call.bind(ea.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(er.call(arguments)))}};function eS(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(er.call(arguments)))}}function ek(t){return Array.isArray?Array.isArray(t):"[object Array]"===t9.call(t)}function eM(t){return"function"==typeof t}function eC(t){return"string"==typeof t}function eT(t){return"[object String]"===t9.call(t)}function eI(t){return"number"==typeof t}function eA(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function eD(t){return!!t8[t9.call(t)]}function eL(t){return!!t7[t9.call(t)]}function e$(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function eP(t){return null!=t.colorStops}function eO(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function eE(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return er.apply(t,e)}function eN(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function eR(t,e){if(!t)throw Error(e)}function ez(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var eB="__ec_primitive__",eF=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return eb(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),eV="function"==typeof Map,eW=function(){function t(e){var n=ek(e);this.data=eV?new Map:new eF;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&ey(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,r){t.call(e,n,r)})},t.prototype.keys=function(){var t=this.data.keys();return eV?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function eH(t){return new eW(t)}function eG(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&ed(n,e),n}function ej(t,e){return t.hasOwnProperty(e)}function eU(){}var eZ=180/Math.PI;function eX(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function eY(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function eq(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function eQ(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var eK=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function eJ(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function e0(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function e1(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function e2(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var e5=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},e3=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new e5(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new e5(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new e5(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new e5(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new e5(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new e5(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),e4=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!(i&&i.filter&&null!=l.query&&!i.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!(i&&i.filter&&null!=u.query&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),e6=Math.log(2);function e8(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/e6);return t[n][l]}for(var u=r|1<<n,h=n+1;r&1<<h;)h++;for(var c=0,d=0,p=0;d<s;d++){var f=1<<d;f&i||(c+=(p%2?-1:1)*t[n][d]*e8(t,e-1,h,u,i|f,o),p++)}return o[a]=c,c}function e7(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=e8(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*e8(n,7,+(0===a),1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var e9="___zrEVENTSAVED",nt=[];function ne(t,e,n,r,i){if(e.getBoundingClientRect&&t2.domSupported&&!nn(e)){var o=e[e9]||(e[e9]={}),a=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?e7(s,a):e7(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){ey(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),o,i);if(a)return a(t,n,r),!0}return!1}function nn(t){return"CANVAS"===t.nodeName.toUpperCase()}var nr=/([&<>"'])/g,ni={"&":"&","<":"<",">":">",'"':""","'":"'"};function no(t){return null==t?"":(t+"").replace(nr,function(t,e){return ni[e]})}var na=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ns=[],nl=t2.browser.firefox&&39>+t2.browser.version.split(".")[0];function nu(t,e,n,r){return n=n||{},r?nh(t,e,n):nl&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):nh(t,e,n),n}function nh(t,e,n){if(t2.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(nn(t)){var o=t.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}if(ne(ns,t,r,i)){n.zrX=ns[0],n.zrY=ns[1];return}}n.zrX=n.zrY=0}function nc(t){return t||window.event}function nd(t,e,n){if(null!=(e=nc(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&nu(t,i,e,n)}else{nu(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;return null==n||null==r?e:3*Math.abs(0!==r?r:n)*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&na.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var np=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},nf=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=nu(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in nm)if(nm.hasOwnProperty(e)){var n=nm[e](this._track,t);if(n)return n}},t}();function ng(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var nm={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=ng(r)/ng(i);isFinite(o)||(o=1),e.pinchScale=o;var a=[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ny(){return[1,0,0,1,0,0]}function nv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function n_(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function nx(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function nb(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function nw(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=i*c+s*h,t[1]=-i*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-r[0])+h*(u-r[1])+r[0],t[5]=c*(u-r[1])-h*(a-r[0])+r[1],t}function nS(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var nk=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),nM=Math.min,nC=Math.max,nT=Math.abs,nI=["x","y"],nA=["width","height"],nD=new nk,nL=new nk,n$=new nk,nP=new nk,nO=nW(),nE=nO.minTv,nN=nO.maxTv,nR=[0,0],nz=function(){function t(e,n,r,i){t.set(this,e,n,r,i)}return t.set=function(t,e,n,r,i){return r<0&&(e+=r,r=-r),i<0&&(n+=i,i=-i),t.x=e,t.y=n,t.width=r,t.height=i,t},t.prototype.union=function(t){var e=nM(t.x,this.x),n=nM(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nC(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=nC(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e,n,r,i=t.width/this.width,o=t.height/this.height,a=ny();return nb(a,a,[-this.x,-this.y]),n=(e=[i,o])[0],r=e[1],a[0]=a[0]*n,a[1]=a[1]*r,a[2]=a[2]*n,a[3]=a[3]*r,a[4]=a[4]*n,a[5]=a[5]*r,nb(a,a,[t.x,t.y]),a},t.prototype.intersect=function(e,n,r){return t.intersect(this,e,n,r)},t.intersect=function(e,n,r,i){r&&nk.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(nB,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(nF,n.x,n.y,n.width,n.height));var s=!!r;nO.reset(i,s);var l=nO.touchThreshold,u=e.x+l,h=e.x+e.width-l,c=e.y+l,d=e.y+e.height-l,p=n.x+l,f=n.x+n.width-l,g=n.y+l,m=n.y+n.height-l;if(u>h||c>d||p>f||g>m)return!1;var y=!(h<p||f<u||d<g||m<c);return(s||o)&&(nR[0]=1/0,nR[1]=0,nV(u,h,p,f,0,s,o,a),nV(c,d,g,m,1,s,o,a),s&&nk.copy(r,y?nO.useDir?nO.dirMinTv:nE:nN)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}nD.x=n$.x=n.x,nD.y=nP.y=n.y,nL.x=nP.x=n.x+n.width,nL.y=n$.y=n.y+n.height,nD.transform(r),nP.transform(r),nL.transform(r),n$.transform(r),e.x=nM(nD.x,nL.x,n$.x,nP.x),e.y=nM(nD.y,nL.y,n$.y,nP.y);var l=nC(nD.x,nL.x,n$.x,nP.x),u=nC(nD.y,nL.y,n$.y,nP.y);e.width=l-e.x,e.height=u-e.y},t}(),nB=new nz(0,0,0,0),nF=new nz(0,0,0,0);function nV(t,e,n,r,i,o,a,s){var l=nT(e-n),u=nT(r-t),h=nM(l,u),c=nI[i],d=nI[1-i],p=nA[i];e<n||r<t?l<u?(o&&(nN[c]=-l),s&&(a[c]=e,a[p]=0)):(o&&(nN[c]=u),s&&(a[c]=t,a[p]=0)):(a&&(a[c]=nC(t,n),a[p]=nM(e,r)-a[c]),o&&(h<nR[0]||nO.useDir)&&(nR[0]=nM(h,nR[0]),(l<u||!nO.bidirectional)&&(nE[c]=l,nE[d]=0,nO.useDir&&nO.calcDirMTV()),(l>=u||!nO.bidirectional)&&(nE[c]=-u,nE[d]=0,nO.useDir&&nO.calcDirMTV())))}function nW(){var t=0,e=new nk,n=new nk,r={minTv:new nk,maxTv:new nk,useDir:!1,dirMinTv:new nk,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){r.touchThreshold=0,i&&null!=i.touchThreshold&&(r.touchThreshold=nC(0,i.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&null!=i.direction&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),t=i.direction,r.bidirectional=null==i.bidirectional||!!i.bidirectional,r.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),h=l*o.y+u*o.x;if(i(h)){i(o.x)&&i(o.y)&&a.set(0,0);return}if(n.x=s*u/h,n.y=s*l/h,i(n.x)&&i(n.y))return void a.set(0,0);(r.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function i(t){return 1e-10>nT(t)}return r}var nH="silent";function nG(){np(this.event)}var nj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return t0(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(e4),nU=function(t,e){this.x=t,this.y=e},nZ=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nX=new nz(0,0,0,0),nY=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new nU(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new nj,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new e3(a),a}return t0(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(ey(nZ,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=nQ(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new nU(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new nU(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!(r&&r.silent)){for(var i,o="on"+e,a={type:e,event:n,target:(i=t).target,topTarget:i.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:nG};r&&(r[o]&&(a.cancelBubble=!!r[o].call(r,a)),r.trigger(e,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new nU(t,e);if(nq(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new nz(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var h=r[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(nX.copy(h.getBoundingRect()),h.transform&&nX.applyTransform(h.transform),nX.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=c)if(nq(o,i,t+p*Math.cos(f),e+p*Math.sin(f),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new nf);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new nU;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(e4);function nq(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||nH}return!1}(a,n,r))&&(e.topTarget||(e.topTarget=a),s!==nH)){e.target=a;break}}}function nQ(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}function nK(t,e,n,r){var i=e+1;if(i===n)return 1;if(0>r(t[i++],t[e])){for(;i<n&&0>r(t[i],t[i-1]);)i++;var o=t,a=e,s=i;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function nJ(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)0>i(a,t[o=s+l>>>1])?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function n0(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&0>=o(t,e[n+i-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function n1(t,e,n,r,i,o){var a=0,s=0,l=1;if(0>o(t,e[n+i])){for(s=i+1;l<s&&0>o(t,e[n+i-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var h=a+(l-a>>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function n2(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<32){o=nK(t,n,r,e),nJ(t,n,r,n+o,e);return}var a=function(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],h=n[s+1],c=r[s+1];r[s]=u+c,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var d=n1(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=n0(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,h=o,c=n;if(t[c++]=t[h++],0==--s){for(l=0;l<r;l++)t[c+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u];return}for(var d,p,f,g=i;;){d=0,p=0,f=!1;do if(0>e(t[h],a[u])){if(t[c++]=t[h++],p++,d=0,0==--s){f=!0;break}}else if(t[c++]=a[u++],d++,p=0,1==--r){f=!0;break}while((d|p)<g);if(f)break;do{if(0!==(d=n1(t[h],a,u,r,0,e))){for(l=0;l<d;l++)t[c+l]=a[u+l];if(c+=d,u+=d,(r-=d)<=1){f=!0;break}}if(t[c++]=t[h++],0==--s){f=!0;break}if(0!==(p=n0(a[u],t,h,s,0,e))){for(l=0;l<p;l++)t[c+l]=t[h+l];if(c+=p,h+=p,0==(s-=p)){f=!0;break}}if(t[c++]=a[u++],1==--r){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else{if(0===r)throw Error();for(l=0;l<r;l++)t[c+l]=a[u+l]}}(l,u,h,c):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,h=s-1,c=o+s-1,d=0,p=0;if(t[c--]=t[u--],0==--r){for(d=c-(s-1),l=0;l<s;l++)t[d+l]=a[l];return}if(1===s){for(c-=r,u-=r,p=c+1,d=u+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h];return}for(var f=i;;){var g=0,m=0,y=!1;do if(0>e(a[h],t[u])){if(t[c--]=t[u--],g++,m=0,0==--r){y=!0;break}}else if(t[c--]=a[h--],m++,g=0,1==--s){y=!0;break}while((g|m)<f);if(y)break;do{if(0!=(g=r-n1(a[h],t,n,r,r-1,e))){for(c-=g,u-=g,r-=g,p=c+1,d=u+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===r){y=!0;break}}if(t[c--]=a[h--],1==--s){y=!0;break}if(0!=(m=s-n0(t[u],a,0,s,s-1,e))){for(c-=m,h-=m,s-=m,p=c+1,d=h+1,l=0;l<m;l++)t[p+l]=a[d+l];if(s<=1){y=!0;break}}if(t[c--]=t[u--],0==--r){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(c-=r,u-=r,p=c+1,d=u+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw Error();for(d=c-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}(l,u,h,c))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=nK(t,n,r,e))<s){var l=i;l>s&&(l=s),nJ(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}ey(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){nY.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=nQ(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||eQ(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var n5=!1;function n3(){n5||(n5=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function n4(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var n6,n8,n7,n9,rt,re,rn,rr,ri,ro,ra,rs=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=n4}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,n2(n,n4)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),i=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(i||r)){if(a||(a=t.__clipPaths=[]),i)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=r,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var d=h[c];t.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else isNaN(t.z)&&(n3(),t.z=0),isNaN(t.z2)&&(n3(),t.z2=0),isNaN(t.zlevel)&&(n3(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var r=ef(this._roots,t);r>=0&&this._roots.splice(r,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();ra=t2.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var rl={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-rl.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*rl.bounceIn(2*t):.5*rl.bounceOut(2*t-1)+.5}},ru=Math.pow,rh=Math.sqrt,rc=rh(3),rd=1/3,rp=eX(),rf=eX(),rg=eX();function rm(t){return t>-1e-8&&t<1e-8}function ry(t){return t>1e-8||t<-1e-8}function rv(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function r_(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function rx(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(rm(h)&&rm(c))if(rm(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=c*c-4*h*d;if(rm(g)){var m=c/h,f=-s/a+m,y=-m/2;f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var v=rh(g),_=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v),f=(-s-((_=_<0?-ru(-_,rd):ru(_,rd))+(x=x<0?-ru(-x,rd):ru(x,rd))))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var b=Math.acos((2*h*s-3*a*c)/(2*rh(h*h*h)))/3,w=rh(h),S=Math.cos(b),f=(-s-2*w*S)/(3*a),y=(-s+w*(S+rc*Math.sin(b)))/(3*a),k=(-s+w*(S-rc*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y),k>=0&&k<=1&&(o[p++]=k)}}return p}function rb(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(rm(a)){if(ry(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(rm(h))i[0]=-o/(2*a);else if(h>0){var c=rh(h),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function rw(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,h=(l-s)*i+s,c=(h-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=r}function rS(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function rk(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function rM(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function rC(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}var rT=/cubic-bezier\(([0-9,\.e ]+)\)/;function rI(t){var e=t&&rT.exec(t);if(e){var n=e[1].split(","),r=+ez(n[0]),i=+ez(n[1]),o=+ez(n[2]),a=+ez(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:rx(0,r,o,1,t,s)&&rv(0,i,a,1,s[0])}}}var rA=function(){function t(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||eU,this.ondestroy=t.ondestroy||eU,this.onrestart=t.onrestart||eU,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i)if(!this.loop)return!0;else this._startTime=t-r%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=eM(t)?t:rl[t]||rI(t)},t}(),rD=function(t){this.value=t},rL=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new rD(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),r$=function(){function t(t){this._list=new rL,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new rD(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),rP={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 rO(t){return(t=Math.round(t))<0?0:t>255?255:t}function rE(t){return t<0?0:t>1?1:t}function rN(t){return t.length&&"%"===t.charAt(t.length-1)?rO(parseFloat(t)/100*255):rO(parseInt(t,10))}function rR(t){return t.length&&"%"===t.charAt(t.length-1)?rE(parseFloat(t)/100):rE(parseFloat(t))}function rz(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function rB(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function rF(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var rV=new r$(20),rW=null;function rH(t,e){rW&&rF(rW,e),rW=rV.put(t,rW||e.slice())}function rG(t,e){if(t){e=e||[];var n=rV.get(t);if(n)return rF(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in rP)return rF(e,rP[r]),rH(t,e),e;var i=r.length;if("#"===r.charAt(0)){if(4===i||5===i){var o=parseInt(r.slice(1,4),16);return o>=0&&o<=4095?(rB(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(r.slice(4),16)/15:1),rH(t,e),e):void rB(e,0,0,0,1)}if(7===i||9===i){var o=parseInt(r.slice(1,7),16);return o>=0&&o<=0xffffff?(rB(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(r.slice(7),16)/255:1),rH(t,e),e):void rB(e,0,0,0,1)}return}var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?rB(e,+u[0],+u[1],+u[2],1):rB(e,0,0,0,1);h=rR(u.pop());case"rgb":if(u.length>=3)return rB(e,rN(u[0]),rN(u[1]),rN(u[2]),3===u.length?h:rR(u[3])),rH(t,e),e;rB(e,0,0,0,1);return;case"hsla":if(4!==u.length)return void rB(e,0,0,0,1);return u[3]=rR(u[3]),rj(u,e),rH(t,e),e;case"hsl":if(3!==u.length)return void rB(e,0,0,0,1);return rj(u,e),rH(t,e),e;default:return}}rB(e,0,0,0,1)}}function rj(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=rR(t[1]),i=rR(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return rB(e=e||[],rO(255*rz(a,o,n+1/3)),rO(255*rz(a,o,n)),rO(255*rz(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function rU(t,e){var n=rG(t);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-e)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return rX(n,4===n.length?"rgba":"rgb")}}function rZ(t,e,n,r){var i=rG(t);if(t)return i=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-r)/6+l/2)/l,c=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-c:i===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(i),null!=n&&(i[1]=rR(eM(n)?n(i[1]):n)),null!=r&&(i[2]=rR(eM(r)?r(i[2]):r)),rX(rj(i),"rgba")}function rX(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function rY(t,e){var n=rG(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var rq=new r$(100);function rQ(t){if(eC(t)){var e=rq.get(t);return e||(e=rU(t,-.1),rq.put(t,e)),e}if(eP(t)){var n=ed({},t);return n.colorStops=ev(t.colorStops,function(t){return{offset:t.offset,color:rU(t.color,-.1)}}),n}return t}var rK=Math.round;function rJ(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=rG(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:e??1}}function r0(t){return t<1e-4&&t>-1e-4}function r1(t){return rK(1e3*t)/1e3}function r2(t){return rK(1e4*t)/1e4}var r5={left:"start",right:"end",center:"middle",middle:"middle"};function r3(t){return t&&!!t.image}function r4(t){return r3(t)||t&&!!t.svgElement}function r6(t){return"linear"===t.type}function r8(t){return"radial"===t.type}function r7(t){return t&&("linear"===t.type||"radial"===t.type)}function r9(t){return"url(#"+t+")"}function it(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function ie(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*eZ,i=t.scaleX??1,o=t.scaleY??1,a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(1!==i||1!==o)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+rK(a*eZ)+"deg, "+rK(s*eZ)+"deg)"),l.join(" ")}var ir=t2.hasGlobalWindow&&eM(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"u">typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},ii=Array.prototype.slice;function io(t,e,n,r){for(var i,o=e.length,a=0;a<o;a++)t[a]=(i=e[a],(n[a]-i)*r+i);return t}function ia(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function is(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function il(t){if(em(t)){var e=t.length;if(em(t[0])){for(var n=[],r=0;r<e;r++)n.push(ii.call(t[r]));return n}return ii.call(t)}return t}function iu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function ih(t){return 4===t||5===t}function ic(t){return 1===t||2===t}var id=[0,0,0,0],ip=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(em(e)){var l=em(e&&e[0])?2:1;a=l,(1!==l||eI(e[0]))&&(2!==l||eI(e[0][0]))||(o=!0)}else if(eI(e)&&e==e)a=0;else if(eC(e))if(isNaN(+e)){var u=rG(e);u&&(s=u,a=3)}else a=0;else if(eP(e)){var h=ed({},s);h.colorStops=ev(e.colorStops,function(t){return{offset:t.offset,color:rG(t.color)}}),r6(e)?a=4:r8(e)&&(a=5),s=h}0===i?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=eM(n)?n:rl[n]||rI(n)),r.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=ic(r),l=ih(r),u=0;u<i;u++){var h=n[u],c=h.value,d=o.value;h.percent=h.time/t,a||(s&&u!==i-1?function(t,e,n){if(!(!t.push||!e.push)){var r=t.length,i=e.length;if(r!==i)if(r>i)t.length=i;else for(var o=r;o<i;o++)t.push(1===n?e[o]:ii.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(c,d,r):l&&function(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}(c.colorStops,d.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=ia([],n[u].value,p,-1):ic(r)&&(n[u].additiveValue=1===r?ia([],n[u].value,p,-1):is([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,d=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var f=i.percent-r.percent,g=0===f?1:p((e-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:c?id:t[h];if((ic(s)||c)&&!m&&(m=this._additiveValue=[]),this.discrete)t[h]=g<1?r.rawValue:i.rawValue;else if(ic(s))1===s?io(m,r[a],i[a],g):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(n[a][l]-s)*r+s)}}(m,r[a],i[a],g);else if(ih(s)){var y,v,_,x,b,w=r[a],S=i[a],k=4===s;t[h]={type:k?"linear":"radial",x:(y=w.x,(S.x-y)*g+y),y:(v=w.y,(S.y-v)*g+v),colorStops:ev(w.colorStops,function(t,e){var n,r=S.colorStops[e];return{offset:(n=t.offset,(r.offset-n)*g+n),color:iu(io([],t.color,r.color,g))}}),global:S.global},k?(t[h].x2=(_=w.x2,(S.x2-_)*g+_),t[h].y2=(x=w.y2,(S.y2-x)*g+x)):t[h].r=(b=w.r,(S.r-b)*g+b)}else if(c)io(m,r[a],i[a],g),o||(t[h]=iu(m));else{var M,C=(M=r[a],(i[a]-M)*g+M);o?this._additiveValue=C:t[h]=C}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(rG(t[n],id),ia(id,id,r,1),t[n]=iu(id)):1===e?ia(t[n],t[n],r,1):2===e&&is(t[n],t[n],r,1)},t}(),ig=function(){function t(t,e,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r)return void eu("Can' use additive animation on looped animation.");this._additiveAnimators=r,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,eb(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new ip(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=iu(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,il(l),r),this._trackKeys.push(a)}s.addKeyframe(t,il(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new rA({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return ev(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=il(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||eb(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function im(){return new Date().getTime()}var iy=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return t0(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=im()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ra(function e(){t._running&&(ra(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=im(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=im(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=im()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new ig(t,e.loop);return this.addAnimator(n),n},e}(e4),iv=t2.domSupported,i_=(cM={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},cC=ev(ck=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return cM.hasOwnProperty(e)?e:t}),{mouse:ck,touch:["touchstart","touchend","touchmove"],pointer:cC}),ix={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ib=!1;function iw(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iS(t){t&&(t.zrByTouch=!0)}function ik(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var iM=function(t,e){this.stopPropagation=eU,this.stopImmediatePropagation=eU,this.preventDefault=eU,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},iC={mousedown:function(t){t=nd(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=nd(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=nd(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){ik(this,(t=nd(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ib=!0,t=nd(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ib||(t=nd(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iS(t=nd(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iC.mousemove.call(this,t),iC.mousedown.call(this,t)},touchmove:function(t){iS(t=nd(this.dom,t)),this.handler.processGesture(t,"change"),iC.mousemove.call(this,t)},touchend:function(t){iS(t=nd(this.dom,t)),this.handler.processGesture(t,"end"),iC.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&iC.click.call(this,t)},pointerdown:function(t){iC.mousedown.call(this,t)},pointermove:function(t){iw(t)||iC.mousemove.call(this,t)},pointerup:function(t){iC.mouseup.call(this,t)},pointerout:function(t){iw(t)||iC.mouseout.call(this,t)}};ey(["click","dblclick","contextmenu"],function(t){iC[t]=function(e){e=nd(this.dom,e),this.trigger(t,e)}});var iT={pointermove:function(t){iw(t)||iT.mousemove.call(this,t)},pointerup:function(t){iT.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iI(t,e,n,r){var i;t.mounted[e]=n,t.listenerOpts[e]=r,i=t.domTarget,i.addEventListener(e,n,r)}function iA(t){var e,n,r,i=t.mounted;for(var o in i)i.hasOwnProperty(o)&&(e=t.domTarget,n=i[o],r=t.listenerOpts[o],e.removeEventListener(o,n,r));t.mounted={}}var iD=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},iL=function(t){function e(e,n){var r,i,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new iD(e,iC),iv&&(o._globalHandlerScope=new iD(document,iT)),i=(r=o._localHandlerScope).domHandlers,t2.pointerEventsSupported?ey(i_.pointer,function(t){iI(r,t,function(e){i[t].call(o,e)})}):(t2.touchEventsSupported&&ey(i_.touch,function(t){iI(r,t,function(e){i[t].call(o,e),r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),ey(i_.mouse,function(t){iI(r,t,function(e){e=nc(e),r.touching||i[t].call(o,e)})})),o}return t0(e,t),e.prototype.dispose=function(){iA(this._localHandlerScope),iv&&iA(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,iv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){t2.pointerEventsSupported?ey(ix.pointer,n):t2.touchEventsSupported||ey(ix.mouse,n);function n(n){iI(e,n,function(r){var i;ik(t,(r=nc(r)).target)||(i=r,r=nd(t.dom,new iM(t,i),!0),e.domHandlers[n].call(t,r))},{capture:!0})}}(this,e):iA(e)}},e}(e4),i$=1;t2.hasGlobalWindow&&(i$=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var iP=i$,iO="#333",iE="#ccc";function iN(t){return t>5e-5||t<-5e-5}var iR=[],iz=[],iB=ny(),iF=Math.abs,iV=function(){var t;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 iN(this.rotation)||iN(this.x)||iN(this.y)||iN(this.scaleX-1)||iN(this.scaleY-1)||iN(this.skewX)||iN(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(nv(n),this.invTransform=null);return}n=n||ny(),e?this.getLocalTransform(n):nv(n),t&&(e?nx(n,t,n):n_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(iR);var n=iR[0]<0?-1:1,r=iR[1]<0?-1:1,i=((iR[0]-n)*e+n)/iR[0]||0,o=((iR[1]-r)*e+r)/iR[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ny(),nS(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ny(),nx(iz,t.invTransform,e),e=iz);var n=this.originX,r=this.originY;(n||r)&&(iB[4]=n,iB[5]=r,nx(iz,e,iB),iz[4]-=n,iz[5]-=r,e=iz),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&e0(n,n,r),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&e0(n,n,r),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&iF(t[0]-1)>1e-10&&iF(t[3]-1)>1e-10?Math.sqrt(iF(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){iH(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;e[4]=-p*i-c*f*o,e[5]=-f*o-d*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=c*o,l&&nw(e,e,l),e[4]+=n+u,e[5]+=r+h,e},e.initDefaultProps=void((t=e.prototype).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}(),iW=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iH(t,e){for(var n=0;n<iW.length;n++){var r=iW[n];t[r]=e[r]}}function iG(t){cA||(cA=new r$(100)),t=t||t3;var e=cA.get(t);return e||(e={font:t,strWidthCache:new r$(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:t6.measureText("国",t).width,asciiCharWidth:t6.measureText("a",t).width},cA.put(t,e)),e}var ij=0;function iU(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(ij>=5)){t=t||t3;for(var e=[],n=+new Date,r=0;r<=127;r++)e[r]=t6.measureText(String.fromCharCode(r),t).width;var i=+new Date-n;return i>16?ij=5:i>2&&ij++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function iZ(t,e){var n=t.strWidthCache,r=n.get(e);return null==r&&(r=t6.measureText(e,t.font).width,n.put(e,r)),r}function iX(t,e,n,r){var i=iZ(iG(e),t),o=iK(e);return new nz(iq(0,i,n),iQ(0,o,r),i,o)}function iY(t,e,n,r){var i=((t||"")+"").split(`
|
|
29
|
+
`);if(1===i.length)return iX(i[0],e,n,r);for(var o=new nz(0,0,0,0),a=0;a<i.length;a++){var s=iX(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function iq(t,e,n,r){return"right"===n?r?t+=e:t-=e:"center"===n&&(r?t+=e/2:t-=e/2),t}function iQ(t,e,n,r){return"middle"===n?r?t+=e/2:t-=e/2:"bottom"===n&&(r?t+=e:t-=e),t}function iK(t){return iG(t).stWideCharWidth}function iJ(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i0(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(r instanceof Array)l+=iJ(r[0],n.width),u+=iJ(r[1],n.height),h=null,c=null;else switch(r){case"left":l-=i,u+=s,h="right",c="middle";break;case"right":l+=i+a,u+=s,c="middle";break;case"top":l+=a/2,u-=i,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+i,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=a-i,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=i,h="center";break;case"insideBottom":l+=a/2,u+=o-i,h="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=o-i,c="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var i1="__zr_normal__",i2=iW.concat(["ignore"]),i5=e_(iW,function(t,e){return t[e]=!0,t},{ignore:!1}),i3={},i4=new nz(0,0,0,0),i6=[],i8=function(){function t(t){this.id=el++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;i.copyTransform(e);var u=null!=n.position,h=n.autoOverflowArea,c=void 0;if((h||u)&&(c=i4,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(i3,n,c):i0(i3,n,c),i.x=i3.x,i.y=i3.y,o=i3.align,a=i3.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*c.width,f=.5*c.height):(p=iJ(d[0],c.width),f=iJ(d[1],c.height)),l=!0,i.originX=-i.x+p+(r?0:c.x),i.originY=-i.y+f+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],l||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=m.overflowRect=m.overflowRect||new nz(0,0,0,0);i.getLocalTransform(i6),nS(i6,i6),nz.copy(y,c),y.applyTransform(i6)}else m.overflowRect=null;var v=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=void 0,x=void 0,b=void 0;v&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,(null==_||"auto"===_)&&(_=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(_),b=!0)):(_=n.outsideFill,x=n.outsideStroke,(null==_||"auto"===_)&&(_=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(_),b=!0)),((_=_||"#000")!==m.fill||x!==m.stroke||b!==m.autoStroke||o!==m.align||a!==m.verticalAlign)&&(s=!0,m.fill=_,m.stroke=x,m.autoStroke=b,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?iE:iO},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&rG(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+255*!i*(1-r);return n[3]=1,rX(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},ed(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(eA(t))for(var n=eb(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==i1)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,i2)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(i1,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===i1;if(!(!this.hasState()&&i)){var o=this.currentStates,a=this.stateTransition;if(!(ef(o,t)>=0&&(e||1===o.length))){if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),!s&&!i)return void eu("State "+t+" not exists.");i||this.saveCurrentToNormalState(s);var s,l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a){for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var h=r[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=ef(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=ef(r,t),o=ef(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];ed(n,i),i.textConfig&&ed(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=ed({},r?this.textConfig:n.textConfig),ed(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<i2.length;u++){var h=i2[u],c=i&&i5[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(var u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new iV,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),ed(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=new ig(t?this[t]:this,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var e=r.animators,n=ef(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){i7(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){i7(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=i7(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,r,i){Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function i7(t,e,n,r,i){var o=[];!function t(e,n,r,i,o,a,s,l){for(var u=eb(i),h=o.duration,c=o.delay,d=o.additive,p=o.setToFinal,f=!eA(a),g=e.animators,m=[],y=0;y<u.length;y++){var v=u[y],_=i[v];if(null!=_&&null!=r[v]&&(f||a[v]))if(!eA(_)||em(_)||eP(_))m.push(v);else{if(n){l||(r[v]=_,e.updateDuringAnimation(n));continue}t(e,v,r[v],_,o,a&&a[v],s,l)}else l||(r[v]=_,e.updateDuringAnimation(n),m.push(v))}var x=m.length;if(!d&&x)for(var b=0;b<g.length;b++){var w=g[b];if(w.targetName===n&&w.stopTracks(m)){var S=ef(g,w);g.splice(S,1)}}if(o.force||(x=(m=ex(m,function(t){var e,n;return!((e=i[t])===(n=r[t])||em(e)&&em(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,n))})).length),x>0||o.force&&!s.length){var k=void 0,M=void 0,C=void 0;if(l){M={},p&&(k={});for(var b=0;b<x;b++){var v=m[b];M[v]=r[v],p?k[v]=i[v]:r[v]=i[v]}}else if(p){C={};for(var b=0;b<x;b++){var v=m[b];C[v]=il(r[v]),function(t,e,n){if(em(e[n]))if(em(t[n])||(t[n]=[]),eL(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),i9(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(em(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?i9(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else i9(o,i,a);o.length=i.length}else t[n]=e[n]}(r,i,v)}}var w=new ig(r,!1,!1,d?ex(g,function(t){return t.targetName===n}):null);w.targetName=n,o.scope&&(w.scope=o.scope),p&&k&&w.whenWithKeys(0,k,m),C&&w.whenWithKeys(0,C,m),w.whenWithKeys(h??500,l?M:i,m).delay(c||0),e.addAnimator(w,n),s.push(w)}}(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var p=o[d];h&&p.done(h),c&&p.aborted(c),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function i9(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}eg(i8,e4),eg(i8,iV);var ot=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t0(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=ef(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=ef(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new nz(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!(a.ignore||a.invisible)){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(nz.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(i8);ot.prototype.type="group";var oe={},on={},or=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new rs,o=n.renderer||"canvas";oe[o]||(o=eb(oe)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new oe[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=t2.node||t2.worker||s?null:new iL(a.getViewportRoot(),a.root),h=n.useCoarsePointer;(null==h||"auto"===h?t2.touchEventsSupported:!!h)&&(l=n.pointerSize??44),this.handler=new nY(i,a,u,a.root,l),this.animation=new iy({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>rY(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=rY(e[i].color,1);return(n/=r)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=im();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=im();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ot&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete on[t])},t}();function oi(t,e){var n=new or(el++,t,e);return on[n.id]=n,n}var oo=Math.min,oa=Math.max,os=Math.abs;function ol(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}var ou=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return oh(t,e,n)};function oh(t,e,n){return eC(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function oc(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function od(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,n,r,i,o,a=1,s=0;s<15;s++,a*=10)if(Math.round(t*a)/a===t)return s}return r=(n=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(n+1):0,i=n>0?n:e.length,Math.max(0,((o=e.indexOf("."))<0?0:i-1-o)-r)}function op(t){var e=2*Math.PI;return(t%e+e)%e}function of(t){return t>-1e-4&&t<1e-4}var og=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function om(t){if(t instanceof Date)return t;if(eC(t)){var e=og.exec(t);if(!e)return new Date(NaN);if(!e[8])return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0);var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(null==t?NaN:Math.round(t))}function oy(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ov(t,e){var n=oy(t),r=Math.pow(10,n),i=t/r;return t=(i<1.5?1:i<2.5?2:i<4?3:i<7?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function o_(t){var e=parseFloat(t);return e==t&&(0!==e||!eC(t)||0>=t.indexOf("x"))?e:NaN}function ox(){return Math.round(9*Math.random())}function ob(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}var ow={},oS="u">typeof console&&console.warn&&console.log;function ok(t,e){!function(t,e,n){if(oS){if(n){if(ow[e])return;ow[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function oM(t){throw Error(t)}var oC="series\0";function oT(t){return t instanceof Array?t:null==t?[]:[t]}function oI(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var oA=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function oD(t){return!eA(t)||ek(t)||t instanceof Date?t:t.value}function oL(t,e,n){var r=oP(e[t],null),i=oP(n[t],null);return null!=r&&null!=i&&r===i}function o$(t){return oP(t,"")}function oP(t,e){return null==t?e:eC(t)?t:eI(t)||eT(t)?t+"":e}function oO(t){var e=t.name;return!!(e&&e.indexOf(oC))}function oE(t){return t&&null!=t.id&&0===o$(t.id).indexOf("\0_ec_\0")}function oN(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?ek(e.dataIndex)?ev(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?ek(e.name)?ev(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function oR(){var t="__ec_inner_"+oz++;return function(e){return e[t]||(e[t]={})}}var oz=ox();function oB(t,e,n){var r=oF(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(e,r){var i=oW(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function oF(t,e){if(eC(t)){var n,r={};r[t+"Index"]=0,n=r}else n=t;var i=eH(),o={},a=!1;return ey(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n){o[n]=t;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>ef(e.includeMainTypes,s)||(a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var oV={useDefault:!0,enableAll:!1,enableNone:!1};function oW(t,e,n,r){r=r||oV;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===i||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=r.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s}function oH(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var oG="___EC__COMPONENT__CONTAINER___",oj="___EC__EXTENDED_CLASS___";function oU(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function oZ(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return eM(e=r)&&/^class\s/.test(Function.prototype.toString.call(e))?n=function(t){function e(){return t.apply(this,arguments)||this}return t0(e,t),e}(r):function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(n=function(){(t.$constructor||r).apply(this,arguments)},this),ed(n.prototype,t),n[oj]=!0,n.extend=this.extend,n.superCall=oq,n.superApply=oQ,n.superClass=r,n}}function oX(t,e){t.extend=e.extend}var oY=Math.round(10*Math.random());function oq(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function oQ(t,e,n){return this.superClass.prototype[e].apply(t,n)}function oK(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){eR(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=n;var r,i,o=oU(n);o.sub?o.sub!==oG&&(((i=e[(r=o).main])&&i[oG]||((i=e[r.main]={})[oG]=!0),i)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[oG]&&(i=n?i[n]:null),r&&!i)throw Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=oU(t),r=[],i=e[n.main];return i&&i[oG]?ey(i,function(t,e){e!==oG&&r.push(t)}):r.push(i),r},t.hasClass=function(t){return!!e[oU(t).main]},t.getAllClassMainTypes=function(){var t=[];return ey(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[oU(t).main];return n&&n[oG]}}function oJ(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&ef(r,s)>=0||i&&0>ef(i,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var o0=oJ([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o1=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o0(this,t,e)},t}(),o2=new r$(50);function o5(t,e,n,r,i){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=o2.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?o4(e=o.image)||o.pending.push(a):((e=t6.loadImage(t,o3,o3)).__zrImageSrc=t,o2.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function o3(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function o4(t){return t&&t.width&&t.height}var o6=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function o8(t,e,n,r){var i=ed({},r=r||{});n=n??"...",i.maxIterations=r.maxIterations??2;var o=i.minChar=r.minChar??0,a=i.fontMeasureInfo=iG(e),s=a.asciiCharWidth;i.placeholder=r.placeholder??"";for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var h=iZ(a,n);return h>l&&(n="",h=0),l=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=l,i.containerWidth=t,i}function o7(t,e,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r){t.textLine="",t.isTruncated=!1;return}var a=iZ(o,e);if(a<=r){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=i||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n){for(var r=0,i=0,o=t.length;i<o&&r<e;i++)r+=iU(n,t.charCodeAt(i));return i}(e,i,o):a>0?Math.floor(e.length*i/a):0;a=iZ(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}var o9=function(){},at=function(t){this.tokens=[],t&&(this.tokens=t)},ae=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function an(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,h=l.font||n.font,c=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=iJ(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=e.split(`
|
|
30
|
+
`),c=!0),r.accumWidth=f}else{var g=ai(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split(`
|
|
31
|
+
`));for(var m=iG(h),y=0;y<o.length;y++){var v=o[y],_=new o9;if(_.styleName=i,_.text=v,_.isLineHolder=!v&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[y]:iZ(m,v),y||c)u.push(new at([_]));else{var x=(u[u.length-1]||(u[0]=new at)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(v||!b||s)&&x.push(_)}}}var ar=e_(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function ai(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,h=0,c=iG(e),d=0;d<t.length;d++){var p=t.charAt(d);if(p===`
|
|
32
|
+
`){l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0;continue}var f=iU(c,p.charCodeAt(0)),g=!r&&!function(t){var e;return!((e=t.charCodeAt(0))>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303)||!!ar[t]}(p);if(o.length?h+f>n:i+h+f>n){h?(s||l)&&(g?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):g?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f));continue}h+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p)}return l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:a}}function ao(t,e,n,r,i,o){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;nz.set(aa,iq(n,a,i),iQ(r,s,o),a,s),nz.intersect(e,aa,null,as);var l=as.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=iq(l.x,l.width,i,!0),t.baseY=iQ(l.y,l.height,o,!0)}}var aa=new nz(0,0,0,0),as={outIntersectRect:{},clamp:!0};function al(t){return null!=t?t+="":t=""}function au(t,e,n,r){var i=new nz(iq(t.x||0,e,t.textAlign),iQ(t.y||0,n,t.textBaseline),e,n),o=r??(ah(t)?t.lineWidth:0);return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function ah(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var ac="__zr_style_"+Math.round(10*Math.random()),ad={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ap={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ad[ac]=!0;var af=["z","z2","invisible"],ag=["invisible"],am=function(t){var e;function n(e){return t.call(this,e)||this}return t0(n,t),n.prototype._init=function(e){for(var n=eb(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,r){var i,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,o=t,a=e,ay.copy(i.getBoundingRect()),i.transform&&ay.applyTransform(i.transform),av.width=o,av.height=a,!ay.intersect(av))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new nz(0,0,0,0)),e?nz.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new nz(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:ed(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return eG(ad,t)},n.prototype.useStyle=function(t){t[ac]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[ac]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,af)},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=eb(u),c=0;c<h.length;c++){var d=h[c];d in s&&(s[d]=s[d],this.style[d]=u[d])}for(var p=eb(s),c=0;c<p.length;c++){var d=p[c];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?ag:af,c=0;c<f.length;c++){var d=f[c];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(t,e){return ed(t,e),t},n.prototype.getAnimationStyleProps=function(){return ap},n.initDefaultProps=void((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),n}(i8),ay=new nz(0,0,0,0),av=new nz(0,0,0,0),a_=Math.min,ax=Math.max,ab=Math.sin,aw=Math.cos,aS=2*Math.PI,ak=eX(),aM=eX(),aC=eX();function aT(t,e,n,r,i,o){i[0]=a_(t,n),i[1]=a_(e,r),o[0]=ax(t,n),o[1]=ax(e,r)}var aI=[],aA=[],aD={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},aL=[],a$=[],aP=[],aO=[],aE=[],aN=[],aR=Math.min,az=Math.max,aB=Math.cos,aF=Math.sin,aV=Math.abs,aW=Math.PI,aH=2*aW,aG="u">typeof Float32Array,aj=[];function aU(t){return Math.round(t/aW*1e8)/1e8%2*aW}function aZ(t,e){var n=aU(t[0]);n<0&&(n+=aH);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=aH?i=n+aH:e&&n-i>=aH?i=n-aH:!e&&n>i?i=n+(aH-aU(n-i)):e&&n<i&&(i=n-(aH-aU(i-n))),t[0]=n,t[1]=i}var aX=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=aV(n/iP/t)||0,this._uy=aV(n/iP/e)||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,e){return this._drawPendingPt(),this.addData(aD.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=aV(t-this._xi),r=aV(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(aD.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(aD.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(aD.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),aj[0]=r,aj[1]=i,aZ(aj,o),r=aj[0];var a=(i=aj[1])-r;return this.addData(aD.A,t,e,n,n,r,a,0,+!o),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=aB(i)*n+t,this._yi=aF(i)*n+e,this},e.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},e.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(aD.R,t,e,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(aD.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,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){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&aG&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();var o=this.data;if(aG&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(r+n),r>0&&o))for(var a=0;a<r;a++)this.data[a]=o[a];for(var i=0;i<e;i++)for(var s=t[i].data,a=0;a<s.length;a++)this.data[r++]=s[a];this._len=r}},e.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,aG&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){aP[0]=aP[1]=aE[0]=aE[1]=Number.MAX_VALUE,aO[0]=aO[1]=aN[0]=aN[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case aD.M:n=i=e[t++],r=o=e[t++],aE[0]=i,aE[1]=o,aN[0]=i,aN[1]=o;break;case aD.L:aT(n,r,e[t],e[t+1],aE,aN),n=e[t++],r=e[t++];break;case aD.C:(function(t,e,n,r,i,o,a,s,l,u){var h=rb(t,n,i,a,aI);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<h;c++){var d=rv(t,n,i,a,aI[c]);l[0]=a_(d,l[0]),u[0]=ax(d,u[0])}h=rb(e,r,o,s,aA);for(var c=0;c<h;c++){var p=rv(e,r,o,s,aA[c]);l[1]=a_(p,l[1]),u[1]=ax(p,u[1])}l[0]=a_(t,l[0]),u[0]=ax(t,u[0]),l[0]=a_(a,l[0]),u[0]=ax(a,u[0]),l[1]=a_(e,l[1]),u[1]=ax(e,u[1]),l[1]=a_(s,l[1]),u[1]=ax(s,u[1])})(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],aE,aN),n=e[t++],r=e[t++];break;case aD.Q:(function(t,e,n,r,i,o,a,s){var l=ax(a_(rM(t,n,i),1),0),u=ax(a_(rM(e,r,o),1),0),h=rS(t,n,i,l),c=rS(e,r,o,u);a[0]=a_(t,i,h),a[1]=a_(e,o,c),s[0]=ax(t,i,h),s[1]=ax(e,o,c)})(n,r,e[t++],e[t++],e[t],e[t+1],aE,aN),n=e[t++],r=e[t++];break;case aD.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(i=aB(d)*h+l,o=aF(d)*c+u),function(t,e,n,r,i,o,a,s,l){var u=Math.abs(i-o);if(u%aS<1e-4&&u>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(ak[0]=aw(i)*n+t,ak[1]=ab(i)*r+e,aM[0]=aw(o)*n+t,aM[1]=ab(o)*r+e,e1(s,ak,aM),e2(l,ak,aM),(i%=aS)<0&&(i+=aS),(o%=aS)<0&&(o+=aS),i>o&&!a?o+=aS:i<o&&a&&(i+=aS),a){var h=o;o=i,i=h}for(var c=0;c<o;c+=Math.PI/2)c>i&&(aC[0]=aw(c)*n+t,aC[1]=ab(c)*r+e,e1(s,aC,s),e2(l,aC,l))}(l,u,h,c,d,p,f,aE,aN),n=aB(p)*h+l,r=aF(p)*c+u;break;case aD.R:aT(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],aE,aN);break;case aD.Z:n=i,r=o}e1(aP,aP,aE),e2(aO,aO,aN)}return 0===t&&(aP[0]=aP[1]=aO[0]=aO[1]=0),new nz(aP[0],aP[1],aO[0]-aP[0],aO[1]-aP[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var d=t[c++],p=1===c;p&&(i=t[c],o=t[c+1],a=i,s=o);var f=-1;switch(d){case aD.M:i=a=t[c++],o=s=t[c++];break;case aD.L:var g=t[c++],m=t[c++],y=g-i,v=m-o;(aV(y)>n||aV(v)>r||c===e-1)&&(f=Math.sqrt(y*y+v*v),i=g,o=m);break;case aD.C:var _=t[c++],x=t[c++],g=t[c++],m=t[c++],b=t[c++],w=t[c++];f=function(t,e,n,r,i,o,a,s,l){for(var u=t,h=e,c=0,d=1;d<=10;d++){var p=.1*d,f=rv(t,n,i,a,p),g=rv(e,r,o,s,p),m=f-u,y=g-h;c+=Math.sqrt(m*m+y*y),u=f,h=g}return c}(i,o,_,x,g,m,b,w,10),i=b,o=w;break;case aD.Q:var _=t[c++],x=t[c++],g=t[c++],m=t[c++];f=function(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,d=rS(t,n,i,c),p=rS(e,r,o,c),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(i,o,_,x,g,m,10),i=g,o=m;break;case aD.A:var S=t[c++],k=t[c++],M=t[c++],C=t[c++],T=t[c++],I=t[c++],A=I+T;c+=1,p&&(a=aB(T)*M+S,s=aF(T)*C+k),f=az(M,C)*aR(aH,Math.abs(I)),i=aB(A)*M+S,o=aF(A)*C+k;break;case aD.R:a=i=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case aD.Z:var y=a-i,v=s-o;f=Math.sqrt(y*y+v*v),i=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,h,c,d=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,y=0,v=0,_=0;if(!(m&&(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,!(u=e*this._pathLen))))t:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(i=d[x],o=d[x+1],n=i,r=o),b!==aD.L&&_>0&&(t.lineTo(h,c),_=0),b){case aD.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case aD.L:a=d[x++],s=d[x++];var S=aV(a-i),k=aV(s-o);if(S>p||k>f){if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}y+=M}t.lineTo(a,s),i=a,o=s,_=0}else{var T=S*S+k*k;T>_&&(h=a,c=s,_=T)}break;case aD.C:var I=d[x++],A=d[x++],D=d[x++],L=d[x++],$=d[x++],P=d[x++];if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;rw(i,I,D,$,C,aL),rw(o,A,L,P,C,a$),t.bezierCurveTo(aL[1],a$[1],aL[2],a$[2],aL[3],a$[3]);break t}y+=M}t.bezierCurveTo(I,A,D,L,$,P),i=$,o=P;break;case aD.Q:var I=d[x++],A=d[x++],D=d[x++],L=d[x++];if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;rC(i,I,D,C,aL),rC(o,A,L,C,a$),t.quadraticCurveTo(aL[1],a$[1],aL[2],a$[2]);break t}y+=M}t.quadraticCurveTo(I,A,D,L),i=D,o=L;break;case aD.A:var O=d[x++],E=d[x++],N=d[x++],R=d[x++],z=d[x++],B=d[x++],F=d[x++],V=!d[x++],W=N>R?N:R,H=aV(N-R)>.001,G=z+B,j=!1;if(m){var M=l[v++];y+M>u&&(G=z+B*(u-y)/M,j=!0),y+=M}if(H&&t.ellipse?t.ellipse(O,E,N,R,F,z,G,V):t.arc(O,E,W,z,G,V),j)break t;w&&(n=aB(z)*N+O,r=aF(z)*R+E),i=aB(G)*N+O,o=aF(G)*R+E;break;case aD.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var U=d[x++],Z=d[x++];if(m){var M=l[v++];if(y+M>u){var X=u-y;t.moveTo(a,s),t.lineTo(a+aR(X,U),s),(X-=U)>0&&t.lineTo(a+U,s+aR(X,Z)),(X-=Z)>0&&t.lineTo(a+az(U-X,0),s+Z),(X-=U)>0&&t.lineTo(a,s+az(Z-X,0));break t}y+=M}t.rect(a,s,U,Z);break;case aD.Z:if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}y+=M}t.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=aD,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function aY(t,e,n,r,i,o,a){if(0===i)return!1;var s=0,l=t;if(a>e+i&&a>r+i||a<e-i&&a<r-i||o>t+i&&o>n+i||o<t-i&&o<n-i)return!1;if(t===n)return Math.abs(o-t)<=i/2;s=(e-r)/(t-n);var u=s*o-a+(l=(t*r-n*e)/(t-n));return u*u/(s*s+1)<=i/2*i/2}var aq=2*Math.PI;function aQ(t){return(t%=aq)<0&&(t+=aq),t}var aK=2*Math.PI;function aJ(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r||r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;(1===a||0===a)&&(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var a0=aX.CMD,a1=2*Math.PI,a2=[-1,-1,-1],a5=[-1,-1];function a3(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,d=0,p=0,f=0;f<l;){var g,m,y,v,_,x,b,w,S,k,M,C,T,I,A=s[f++],D=1===f;switch(A===a0.M&&f>1&&(n||(u+=aJ(h,c,d,p,r,i))),D&&(h=s[f],c=s[f+1],d=h,p=c),A){case a0.M:d=s[f++],p=s[f++],h=d,c=p;break;case a0.L:if(n){if(aY(h,c,s[f],s[f+1],e,r,i))return!0}else u+=aJ(h,c,s[f],s[f+1],r,i)||0;h=s[f++],c=s[f++];break;case a0.C:if(n){if(g=h,m=c,y=s[f++],v=s[f++],_=s[f++],x=s[f++],b=s[f],w=s[f+1],0!==e&&(!(i>m+e)||!(i>v+e)||!(i>x+e)||!(i>w+e))&&(!(i<m-e)||!(i<v-e)||!(i<x-e)||!(i<w-e))&&(!(r>g+e)||!(r>y+e)||!(r>_+e)||!(r>b+e))&&(!(r<g-e)||!(r<y-e)||!(r<_-e)||!(r<b-e))&&function(t,e,n,r,i,o,a,s,l,u,h){var c,d,p,f,g,m=.005,y=1/0;rp[0]=l,rp[1]=u;for(var v=0;v<1;v+=.05)rf[0]=rv(t,n,i,a,v),rf[1]=rv(e,r,o,s,v),(f=eK(rp,rf))<y&&(c=v,y=f);y=1/0;for(var _=0;_<32&&!(m<1e-4);_++)d=c-m,p=c+m,rf[0]=rv(t,n,i,a,d),rf[1]=rv(e,r,o,s,d),f=eK(rf,rp),d>=0&&f<y?(c=d,y=f):(rg[0]=rv(t,n,i,a,p),rg[1]=rv(e,r,o,s,p),g=eK(rg,rp),p<=1&&g<y?(c=p,y=g):m*=.5);return rh(y)}(g,m,y,v,_,x,b,w,r,i)<=e/2)return!0}else u+=function(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var h=rx(e,r,o,s,u,a2);if(0===h)return 0;for(var c=0,d=-1,p=void 0,f=void 0,g=0;g<h;g++){var m=a2[g],y=0===m||1===m?.5:1;rv(t,n,i,a,m)<l||(d<0&&(d=rb(e,r,o,s,a5),a5[1]<a5[0]&&d>1&&function(){var t=a5[0];a5[0]=a5[1],a5[1]=t}(),p=rv(e,r,o,s,a5[0]),d>1&&(f=rv(e,r,o,s,a5[1]))),2===d?m<a5[0]?c+=p<e?y:-y:m<a5[1]?c+=f<p?y:-y:c+=s<f?y:-y:m<a5[0]?c+=p<e?y:-y:c+=s<p?y:-y)}return c}(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;h=s[f++],c=s[f++];break;case a0.Q:if(n){if(S=h,k=c,M=s[f++],C=s[f++],T=s[f],I=s[f+1],0!==e&&(!(i>k+e)||!(i>C+e)||!(i>I+e))&&(!(i<k-e)||!(i<C-e)||!(i<I-e))&&(!(r>S+e)||!(r>M+e)||!(r>T+e))&&(!(r<S-e)||!(r<M-e)||!(r<T-e))&&function(t,e,n,r,i,o,a,s,l){var u,h=.005,c=1/0;rp[0]=a,rp[1]=s;for(var d=0;d<1;d+=.05){rf[0]=rS(t,n,i,d),rf[1]=rS(e,r,o,d);var p=eK(rp,rf);p<c&&(u=d,c=p)}c=1/0;for(var f=0;f<32&&!(h<1e-4);f++){var g=u-h,m=u+h;rf[0]=rS(t,n,i,g),rf[1]=rS(e,r,o,g);var p=eK(rf,rp);if(g>=0&&p<c)u=g,c=p;else{rg[0]=rS(t,n,i,m),rg[1]=rS(e,r,o,m);var y=eK(rg,rp);m<=1&&y<c?(u=m,c=y):h*=.5}}return rh(c)}(S,k,M,C,T,I,r,i)<=e/2)return!0}else u+=function(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(rm(o)){if(ry(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(rm(h)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(h>0){var c=rh(h),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,r,o,s,a2);if(0===l)return 0;var u=rM(e,r,o);if(u>=0&&u<=1){for(var h=0,c=rS(e,r,o,u),d=0;d<l;d++){var p=0===a2[d]||1===a2[d]?.5:1,f=rS(t,n,i,a2[d]);f<a||(a2[d]<u?h+=c<e?p:-p:h+=o<c?p:-p)}return h}var p=0===a2[0]||1===a2[0]?.5:1,f=rS(t,n,i,a2[0]);return f<a?0:o<e?p:-p}(h,c,s[f++],s[f++],s[f],s[f+1],r,i)||0;h=s[f++],c=s[f++];break;case a0.A:var L=s[f++],$=s[f++],P=s[f++],O=s[f++],E=s[f++],N=s[f++];f+=1;var R=!!(1-s[f++]);o=Math.cos(E)*P+L,a=Math.sin(E)*O+$,D?(d=o,p=a):u+=aJ(h,c,o,a,r,i);var z=(r-L)*O/P+L;if(n){if(function(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=Math.sqrt((s-=t)*s+(l-=e)*l);if(u-a>n||u+a<n)return!1;if(Math.abs(r-i)%aK<1e-4)return!0;if(o){var h=r;r=aQ(i),i=aQ(h)}else r=aQ(r),i=aQ(i);r>i&&(i+=aK);var c=Math.atan2(l,s);return c<0&&(c+=aK),c>=r&&c<=i||c+aK>=r&&c+aK<=i}(L,$,O,E,E+N,R,e,z,i))return!0}else u+=function(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);a2[0]=-l,a2[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=a1-1e-4){r=0,i=a1;var h=o?1:-1;return a>=a2[0]+t&&a<=a2[1]+t?h:0}if(r>i){var c=r;r=i,i=c}r<0&&(r+=a1,i+=a1);for(var d=0,p=0;p<2;p++){var f=a2[p];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;g<0&&(g=a1+g),(g>=r&&g<=i||g+a1>=r&&g+a1<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),d+=h)}}return d}(L,$,O,E,E+N,R,z,i);h=Math.cos(E+N)*P+L,c=Math.sin(E+N)*O+$;break;case a0.R:d=h=s[f++],p=c=s[f++];var B=s[f++],F=s[f++];if(o=d+B,a=p+F,n){if(aY(d,p,o,p,e,r,i)||aY(o,p,o,a,e,r,i)||aY(o,a,d,a,e,r,i)||aY(d,a,d,p,e,r,i))return!0}else u+=aJ(o,p,o,a,r,i),u+=aJ(d,a,d,p,r,i);break;case a0.Z:if(n){if(aY(h,c,d,p,e,r,i))return!0}else u+=aJ(h,c,d,p,r,i);h=d,c=p}}return n||1e-4>Math.abs(c-p)||(u+=aJ(h,c,d,p,r,i)||0),0!==u}var a4=ep({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ad),a6={style:ep({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ap.style)},a8=iW.concat(["invisible","culling","z","z2","zlevel","parent"]),a7=function(t){var e;function n(e){return t.call(this,e)||this}return t0(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<a8.length;++s)i[a8[s]]=this[a8[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=eb(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?ed(this.style,a):this.useStyle(a):"shape"===o?ed(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(eC(t)){var e=rY(t,0);return e>.5?iO:e>.2?"#eee":iE}else if(t)return iE}return iO},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(eC(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>rY(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new aX(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;this.hasFill()||(s=Math.max(s,this.strokeContainThreshold??4)),a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),a3(o,a/s,!0,t,e)))return!0}if(this.hasFill())return a3(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:ed(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return eG(a4,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=ed({},this.shape))},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=ed({},r.shape),ed(s,n.shape)):(s=ed({},i?this.shape:r.shape),ed(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=ed({},this.shape);for(var u={},h=eb(s),c=0;c<h.length;c++){var d=h[c];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return a6},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var e=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return t0(n,e),n.prototype.getDefaultStyle=function(){return eh(t.style)},n.prototype.getDefaultShape=function(){return eh(t.shape)},n}(n);for(var r in t)"function"==typeof t[r]&&(e.prototype[r]=t[r]);return e},n.initDefaultProps=void((e=n.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),n}(am),a9=ep({strokeFirst:!0,font:t3,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a4),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.hasStroke=function(){return ah(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return eG(a9,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=al((t=this.style).text),n=t.font,au(t,iZ(iG(n),e),iK(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(am);st.prototype.type="tspan";var se=ep({x:0,y:0},ad),sn={style:ep({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ap.style)},sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.createStyle=function(t){return eG(se,t)},e.prototype._getSize=function(t){var e,n=this.style,r=n[t];if(null!=r)return r;var i=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return sn},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new nz(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(am);sr.prototype.type="image";var si=Math.round;function so(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(si(2*r)===si(2*i)&&(t.x1=t.x2=ss(r,s,!0)),si(2*o)===si(2*a)&&(t.y1=t.y2=ss(o,s,!0))),t}}function sa(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=ss(r,s,!0),t.y=ss(i,s,!0),t.width=Math.max(ss(r+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(ss(i+a,s,!1)-t.y,+(0!==a))),t}}function ss(t,e,n){if(!e)return t;var r=si(2*t);return(r+si(e))%2==0?r/2:(r+(n?1:-1))/2}var sl=function(){this.x=0,this.y=0,this.width=0,this.height=0},su={},sh=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new sl},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,r,i,o,a,s,l,u,h,c,d,p,f,g,m,y=sa(su,e,this.style);n=y.x,r=y.y,i=y.width,o=y.height,y.r=e.r,e=y}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?(d=(a=e).x,p=a.y,f=a.width,g=a.height,m=a.r,f<0&&(d+=f,f=-f),g<0&&(p+=g,g=-g),"number"==typeof m?l=u=h=c=m:m instanceof Array?1===m.length?l=u=h=c=m[0]:2===m.length?(l=h=m[0],u=c=m[1]):3===m.length?(l=m[0],u=c=m[1],h=m[2]):(l=m[0],u=m[1],h=m[2],c=m[3]):l=u=h=c=0,l+u>f&&(s=l+u,l*=f/s,u*=f/s),h+c>f&&(s=h+c,h*=f/s,c*=f/s),u+h>g&&(s=u+h,u*=g/s,h*=g/s),l+c>g&&(s=l+c,l*=g/s,c*=g/s),t.moveTo(d+l,p),t.lineTo(d+f-u,p),0!==u&&t.arc(d+f-u,p+u,u,-Math.PI/2,0),t.lineTo(d+f,p+g-h),0!==h&&t.arc(d+f-h,p+g-h,h,0,Math.PI/2),t.lineTo(d+c,p+g),0!==c&&t.arc(d+c,p+g-c,c,Math.PI/2,Math.PI),t.lineTo(d,p+l),0!==l&&t.arc(d+l,p+l,l,Math.PI,1.5*Math.PI)):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(a7);sh.prototype.type="rect";var sc={fill:"#000"},sd={},sp={style:ep({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},ap.style)},sf=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=sc,n.attr(e),n}return t0(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,sb(t=this.style),ey(t.rich,sb),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new nz(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||sc},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return ed(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=eb(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},ed(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return sp},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||t3,n=t.padding,r=this._defaultStyle,i=t.x||0,o=t.y||0,a=t.align||r.align||"left",s=t.verticalAlign||r.verticalAlign||"top";ao(sd,r.overflowRect,i,o,a,s),i=sd.baseX,o=sd.baseY;var l=function(t,e,n,r){var i,o,a=al(t),s=e.overflow,l=e.padding,u=l?l[1]+l[3]:0,h=l?l[0]+l[2]:0,c=e.font,d=iK(c),p=(i=e.lineHeight,i??d),f="truncate"===e.lineOverflow,g=!1,m=e.width;null==m&&null!=n&&(m=n-u);var y=e.height;null==y&&null!=r&&(y=r-h);var v=(o=null!=m&&("break"===s||"breakAll"===s)?a?ai(a,e.font,m,"breakAll"===s,0).lines:[]:a?a.split(`
|
|
33
|
+
`):[]).length*p;if(null==y&&(y=v),v>y&&f){var _=Math.floor(y/p);g=g||o.length>_,v=(o=o.slice(0,_)).length*p}if(a&&"truncate"===s&&null!=m)for(var x=o8(m,c,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<o.length;w++)o7(b,o[w],x),o[w]=b.textLine,g=g||b.isTruncated;for(var S=y,k=0,M=iG(c),w=0;w<o.length;w++)k=Math.max(iZ(M,o[w]),k);null==m&&(m=k);var C=m;return S+=h,{lines:o,height:y,outerWidth:C+=u,outerHeight:S,lineHeight:p,calculatedLineHeight:d,contentWidth:k,contentHeight:v,width:m,isTruncated:g}}(sM(t),t,sd.outerWidth,sd.outerHeight),u=sC(t),h=!!t.backgroundColor,c=l.outerHeight,d=l.outerWidth,p=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=i,m=iQ(o,l.contentHeight,s);if(u||n){var y=iq(i,d,a),v=iQ(o,c,s);u&&this._renderBackground(t,t,y,v,d,c)}m+=f/2,n&&(g=sk(i,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2]));for(var _=0,x=!1,b=!1,w=sS("fill"in t?t.fill:(b=!0,r.fill)),S=sw("stroke"in t?t.stroke:h||r.autoStroke&&!b?null:(_=2,x=!0,r.stroke)),k=t.textShadowBlur>0,M=0;M<p.length;M++){var C=this._getOrCreateChild(st),T=C.createStyle();C.useStyle(T),T.text=p[M],T.x=g,T.y=m,T.textAlign=a,T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,k&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=S,T.fill=w,S&&(T.lineWidth=t.lineWidth||_,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,s_(T,t),m+=f,C.setBoundingRect(au(T,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,r=t.verticalAlign||e.verticalAlign,i=t.x||0,o=t.y||0;ao(sd,e.overflowRect,i,o,n,r),i=sd.baseX,o=sd.baseY;var a=function(t,e,n,r,i){var o,a,s,l,u=new ae,h=al(t);if(!h)return u;var c=e.padding,d=c?c[1]+c[3]:0,p=c?c[0]+c[2]:0,f=e.width;null==f&&null!=n&&(f=n-d);var g=e.height;null==g&&null!=r&&(g=r-p);for(var m,y=e.overflow,v=("break"===y||"breakAll"===y)&&null!=f?{width:f,accumWidth:0,breakAll:"breakAll"===y}:null,_=o6.lastIndex=0;null!=(m=o6.exec(h));){var x=m.index;x>_&&an(u,h.substring(_,x),e,v),an(u,m[2],e,v,m[1]),_=o6.lastIndex}_<h.length&&an(u,h.substring(_,h.length),e,v);var b=[],w=0,S=0,k="truncate"===y,M="truncate"===e.lineOverflow,C={};function T(t,e,n){t.width=e,t.lineHeight=n,w+=n,S=Math.max(S,e)}t:for(var I=0;I<u.lines.length;I++){for(var A=u.lines[I],D=0,L=0,$=0;$<A.tokens.length;$++){var P,O,E,N,R,z=A.tokens[$],B=z.styleName&&e.rich[z.styleName]||{},F=z.textPadding=B.padding,V=F?F[1]+F[3]:0,W=z.font=B.font||e.font;z.contentHeight=iK(W);var H=(P=B.height,O=z.contentHeight,P??O);if(z.innerHeight=H,F&&(H+=F[0]+F[2]),z.height=H,z.lineHeight=(E=B.lineHeight,N=e.lineHeight,R=H,E??N??R),z.align=B&&B.align||i,z.verticalAlign=B&&B.verticalAlign||"middle",M&&null!=g&&w+z.lineHeight>g){var G=u.lines.length;$>0?(A.tokens=A.tokens.slice(0,$),T(A,L,D),u.lines=u.lines.slice(0,I+1)):u.lines=u.lines.slice(0,I),u.isTruncated=u.isTruncated||u.lines.length<G;break t}var j=B.width,U=null==j||"auto"===j;if("string"==typeof j&&"%"===j.charAt(j.length-1))z.percentWidth=j,b.push(z),z.contentWidth=iZ(iG(W),z.text);else{if(U){var Z=B.backgroundColor,X=Z&&Z.image;X&&o4(X=function(t){if("string"!=typeof t)return t;var e=o2.get(t);return e&&e.image}(X))&&(z.width=Math.max(z.width,X.width*H/X.height))}var Y=k&&null!=f?f-L:null;null!=Y&&Y<z.width?!U||Y<V?(z.text="",z.width=z.contentWidth=0):(function(t,e,n,r,i,o){if(!n){t.text="",t.isTruncated=!1;return}var a=(e+"").split(`
|
|
34
|
+
`);o=o8(n,r,i,o);for(var s=!1,l={},u=0,h=a.length;u<h;u++)o7(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join(`
|
|
35
|
+
`),t.isTruncated=s}(C,z.text,Y-V,W,e.ellipsis,{minChar:e.truncateMinChar}),z.text=C.text,u.isTruncated=u.isTruncated||C.isTruncated,z.width=z.contentWidth=iZ(iG(W),z.text)):z.contentWidth=iZ(iG(W),z.text)}z.width+=V,L+=z.width,B&&(D=Math.max(D,z.lineHeight))}T(A,L,D)}o=f,a=S,u.outerWidth=u.width=o??a,s=g,l=w,u.outerHeight=u.height=s??l,u.contentHeight=w,u.contentWidth=S,u.outerWidth+=d,u.outerHeight+=p;for(var I=0;I<b.length;I++){var z=b[I],q=z.percentWidth;z.width=parseInt(q,10)/100*u.width}return u}(sM(t),t,sd.outerWidth,sd.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,h=t.padding;this.isTruncated=!!a.isTruncated;var c=iq(i,l,n),d=iQ(o,u,r),p=c,f=d;h&&(p+=h[3],f+=h[0]);var g=p+s;sC(t)&&this._renderBackground(t,t,c,d,l,u);for(var m=!!t.backgroundColor,y=0;y<a.lines.length;y++){for(var v=a.lines[y],_=v.tokens,x=_.length,b=v.lineHeight,w=v.width,S=0,k=p,M=g,C=x-1,T=void 0;S<x&&(!(T=_[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,k,"left",m),w-=T.width,k+=T.width,S++;for(;C>=0&&"right"===(T=_[C]).align;)this._placeToken(T,t,b,f,M,"right",m),w-=T.width,M-=T.width,C--;for(k+=(s-(k-p)-(g-M)-w)/2;S<=C;)T=_[S],this._placeToken(T,t,b,f,k+T.width/2,"center",m),k+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s,l,u,h,c,d,p,f=e.rich[t.styleName]||{};f.text=t.text;var g=t.verticalAlign,m=r+n/2;"top"===g?m=r+t.height/2:"bottom"===g&&(m=r+n-t.height/2),!t.isLineHolder&&sC(f)&&this._renderBackground(f,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,m-t.height/2,t.width,t.height);var y=!!f.backgroundColor,v=t.textPadding;v&&(i=sk(i,o,v),m-=t.height/2-v[0]-t.innerHeight/2);var _=this._getOrCreateChild(st),x=_.createStyle();_.useStyle(x);var b=this._defaultStyle,w=!1,S=0,k=!1,M=sS("fill"in f?f.fill:"fill"in e?e.fill:(w=!0,b.fill)),C=sw("stroke"in f?f.stroke:"stroke"in e?e.stroke:y||a||b.autoStroke&&!w?null:(S=2,k=!0,b.stroke)),T=f.textShadowBlur>0||e.textShadowBlur>0;x.text=t.text,x.x=i,x.y=m,T&&(x.shadowBlur=f.textShadowBlur||e.textShadowBlur||0,x.shadowColor=f.textShadowColor||e.textShadowColor||"transparent",x.shadowOffsetX=f.textShadowOffsetX||e.textShadowOffsetX||0,x.shadowOffsetY=f.textShadowOffsetY||e.textShadowOffsetY||0),x.textAlign=o,x.textBaseline="middle",x.font=t.font||t3,s=f.opacity,l=e.opacity,x.opacity=s??l??1,s_(x,f),C&&(u=f.lineWidth,h=e.lineWidth,c=S,x.lineWidth=u??h??c,d=f.lineDash,p=e.lineDash,x.lineDash=d??p,x.lineDashOffset=e.lineDashOffset||0,x.stroke=C),M&&(x.fill=M),_.setBoundingRect(au(x,t.contentWidth,t.contentHeight,k?0:null))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,d=t.borderColor,p=h&&h.image,f=h&&!p,g=t.borderRadius,m=this;if(f||t.lineHeight||c&&d){(l=this._getOrCreateChild(sh)).useStyle(l.createStyle()),l.style.fill=null;var y=l.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=g,l.dirtyShape()}if(f){var v=l.style;v.fill=h||null,v.fillOpacity=t.fillOpacity??1}else if(p){(u=this._getOrCreateChild(sr)).onload=function(){m.dirtyStyle()};var _=u.style;_.image=h.image,_.x=n,_.y=r,_.width=i,_.height=o}if(c&&d){var v=l.style;v.lineWidth=c,v.stroke=d,v.strokeOpacity=t.strokeOpacity??1,v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var x=(l||u).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,a=t.opacity,s=e.opacity,x.opacity=a??s??1},e.makeFont=function(t){var e="";return sx(t)&&(e=[t.fontStyle,t.fontWeight,sv(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ez(e)||t.textFont||t.font},e}(am),sg={left:!0,right:1,center:1},sm={top:1,bottom:1,middle:1},sy=["fontStyle","fontWeight","fontSize","fontFamily"];function sv(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function s_(t,e){for(var n=0;n<sy.length;n++){var r=sy[n],i=e[r];null!=i&&(t[r]=i)}}function sx(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function sb(t){if(t){t.font=sf.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||sg[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||sm[n]?n:"top",t.padding&&(t.padding=eN(t.padding))}}function sw(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function sS(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function sk(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sM(t){var e=t.text;return null!=e&&(e+=""),e}function sC(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var sT=oR(),sI=function(t,e,n,r){if(r){var i=sT(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=sT(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"})}},sA=1,sD={},sL=oR(),s$=oR(),sP=["emphasis","blur","select"],sO=["normal","emphasis","blur","select"],sE="highlight",sN="downplay",sR="select",sz="unselect",sB="toggleSelect",sF="selectchanged";function sV(t){return null!=t&&"none"!==t}function sW(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function sH(t){sW(t,"emphasis",2)}function sG(t){2===t.hoverState&&sW(t,"normal",0)}function sj(t){sW(t,"blur",1)}function sU(t){1===t.hoverState&&sW(t,"normal",0)}function sZ(t){t.selected=!0}function sX(t){t.selected=!1}function sY(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function sq(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function sQ(t,e){var n,r,i,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&ef(n,"select")>=0,o=!1;if(t instanceof a7){var a=sL(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(sV(s)||sV(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=ed({},r),(u=ed({},u)).fill=s):!sV(u.fill)&&sV(s)?(o=!0,r=ed({},r),(u=ed({},u)).fill=rQ(s)):!sV(u.stroke)&&sV(l)&&(o||(r=ed({},r),u=ed({},u)),u.stroke=rQ(l)),r.style=u}}if(r&&null==r.z2){o||(r=ed({},r));var h=t.z2EmphasisLift;r.z2=t.z2+(h??10)}return r}(this,0,e,s);if("blur"===t)return n=s,r=ef(this.currentStates,t)>=0,i=this.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=ed({},n),a=ed({opacity:r?i:.1*o.opacity},a),n.style=a),n;if("select"===t){var l=s;if(l&&null==l.z2){l=ed({},l);var u=this.z2SelectLift;l.z2=this.z2+(u??9)}return l}}return s}function sK(t){t.stateProxy=sQ;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sQ),n&&(n.stateProxy=sQ)}function sJ(t,e){s5(t,e)||t.__highByOuter||sY(t,sH)}function s0(t,e){s5(t,e)||t.__highByOuter||sY(t,sG)}function s1(t,e){t.__highByOuter|=1<<(e||0),sY(t,sH)}function s2(t,e){(t.__highByOuter&=~(1<<(e||0)))||sY(t,sG)}function s5(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function s3(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=s$(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);a||r.push(s),o.isBlured&&(s.group.traverse(function(t){sU(t)}),a&&n.push(i)),o.isBlured=!1}),ey(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function s4(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&sY(r,sU)}}if(n=n||"coordinateSystem",null!=t&&!(!e||"none"===e)){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(t){var i=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!h||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&i&&"self"===e||sj(t)}),em(e))o(t.getData(),e);else if(eA(e))for(var c=eb(e),d=0;d<c.length;d++)o(t.getData(c[d]),e[c[d]]);l.push(t),s$(t).isBlured=!0}}),i.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function s6(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){s$(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){sj(t)})}}}function s8(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===sT(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function s7(t){ey(t.getAllData(),function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?sY(e,sZ):sY(e,sX)})})}function s9(t,e,n){var r,i,o,a;li(t,!0),sY(t,sK),r=t,i=e,o=n,a=sT(r),null!=i?(a.focus=i,a.blurScope=o):a.focus&&(a.focus=null)}function lt(t,e,n,r){r?li(t,!1):s9(t,e,n)}var le=["emphasis","blur","select"],ln={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function lr(t,e,n,r){n=n||"itemStyle";for(var i=0;i<le.length;i++){var o=le[i],a=e.getModel([o,n]);t.ensureState(o).style=a[ln[n]]()}}function li(t,e){var n=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n)}function lo(t){return!!(t&&t.__highDownDispatcher)}function la(t){var e=t.type;return e===sR||e===sz||e===sB}function ls(t){var e=t.type;return e===sE||e===sN}var ll=aX.CMD,lu=[[],[],[]],lh=Math.sqrt,lc=Math.atan2,ld=Math.sqrt,lp=Math.sin,lf=Math.cos,lg=Math.PI;function lm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ly(t,e){return(t[0]*e[0]+t[1]*e[1])/(lm(t)*lm(e))}function lv(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ly(t,e))}function l_(t,e,n,r,i,o,a,s,l,u,h){var c=lg/180*l,d=lf(c)*(t-n)/2+lp(c)*(e-r)/2,p=-1*lp(c)*(t-n)/2+lf(c)*(e-r)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=ld(f),s*=ld(f));var g=(i===o?-1:1)*ld((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,y=-(g*s)*d/a,v=(t+n)/2+lf(c)*m-lp(c)*y,_=(e+r)/2+lp(c)*m+lf(c)*y,x=lv([1,0],[(d-m)/a,(p-y)/s]),b=[(d-m)/a,(p-y)/s],w=[(-1*d-m)/a,(-1*p-y)/s],S=lv(b,w);if(-1>=ly(b,w)&&(S=lg),ly(b,w)>=1&&(S=0),S<0){var k=Math.round(S/lg*1e6)/1e6;S=2*lg+k%2*lg}h.addData(u,v,_,a,s,x,S,c,o)}var lx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,lw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.applyTransform=function(t){},e}(a7);function lS(t){return null!=t.setData}function lk(t,e){var n=function(t){var e=new aX;if(!t)return e;var n,r=0,i=0,o=0,a=0,s=aX.CMD,l=t.match(lx);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),d=void 0,p=h.match(lb)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,k=r,M=i,C=void 0,T=void 0;switch(c){case"l":r+=p[m++],i+=p[m++],d=s.L,e.addData(d,r,i);break;case"L":r=p[m++],i=p[m++],d=s.L,e.addData(d,r,i);break;case"m":r+=p[m++],i+=p[m++],d=s.M,e.addData(d,r,i),o=r,a=i,c="l";break;case"M":r=p[m++],i=p[m++],d=s.M,e.addData(d,r,i),o=r,a=i,c="L";break;case"h":r+=p[m++],d=s.L,e.addData(d,r,i);break;case"H":r=p[m++],d=s.L,e.addData(d,r,i);break;case"v":i+=p[m++],d=s.L,e.addData(d,r,i);break;case"V":i=p[m++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":y=r,v=i,C=e.len(),T=e.data,n===s.C&&(y+=r-T[C-4],v+=i-T[C-3]),d=s.C,k=p[m++],M=p[m++],r=p[m++],i=p[m++],e.addData(d,y,v,k,M,r,i);break;case"s":y=r,v=i,C=e.len(),T=e.data,n===s.C&&(y+=r-T[C-4],v+=i-T[C-3]),d=s.C,k=r+p[m++],M=i+p[m++],r+=p[m++],i+=p[m++],e.addData(d,y,v,k,M,r,i);break;case"Q":k=p[m++],M=p[m++],r=p[m++],i=p[m++],d=s.Q,e.addData(d,k,M,r,i);break;case"q":k=p[m++]+r,M=p[m++]+i,r+=p[m++],i+=p[m++],d=s.Q,e.addData(d,k,M,r,i);break;case"T":y=r,v=i,C=e.len(),T=e.data,n===s.Q&&(y+=r-T[C-4],v+=i-T[C-3]),r=p[m++],i=p[m++],d=s.Q,e.addData(d,y,v,r,i);break;case"t":y=r,v=i,C=e.len(),T=e.data,n===s.Q&&(y+=r-T[C-4],v+=i-T[C-3]),r+=p[m++],i+=p[m++],d=s.Q,e.addData(d,y,v,r,i);break;case"A":_=p[m++],x=p[m++],b=p[m++],w=p[m++],S=p[m++],k=r,M=i,r=p[m++],l_(k,M,r,i=p[m++],w,S,_,x,b,d=s.A,e);break;case"a":_=p[m++],x=p[m++],b=p[m++],w=p[m++],S=p[m++],k=r,M=i,r+=p[m++],l_(k,M,r,i+=p[m++],w,S,_,x,b,d=s.A,e)}}("z"===c||"Z"===c)&&(d=s.Z,e.addData(d),r=o,i=a),n=d}return e.toStatic(),e}(t),r=ed({},e);return r.buildPath=function(t){var e=lS(t);if(e&&t.canSave()){t.appendPath(n);var r=t.getContext();r&&t.rebuildPath(r,1)}else{var r=e?t.getContext():t;r&&n.rebuildPath(r,1)}},r.applyTransform=function(t){(function(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),h=ll.M,c=ll.C,d=ll.L,p=ll.R,f=ll.A,g=ll.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case h:case d:r=1;break;case c:r=3;break;case g:r=2;break;case f:var m=e[4],y=e[5],v=lh(e[0]*e[0]+e[1]*e[1]),_=lh(e[2]*e[2]+e[3]*e[3]),x=lc(-e[1]/_,e[0]/v);l[i]*=v,l[i++]+=m,l[i]*=_,l[i++]+=y,l[i++]*=v,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],e0(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],e0(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=lu[a];b[0]=l[i++],b[1]=l[i++],e0(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}})(n,t),this.dirtyShape()},r}var lM=function(){this.cx=0,this.cy=0,this.r=0},lC=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new lM},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(a7);lC.prototype.type="circle";var lT=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},lI=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new lT},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=e.rx,o=e.ry,a=.5522848*i,s=.5522848*o;t.moveTo(n-i,r),t.bezierCurveTo(n-i,r-s,n-a,r-o,n,r-o),t.bezierCurveTo(n+a,r-o,n+i,r-s,n+i,r),t.bezierCurveTo(n+i,r+s,n+a,r+o,n,r+o),t.bezierCurveTo(n-a,r+o,n-i,r+s,n-i,r),t.closePath()},e}(a7);lI.prototype.type="ellipse";var lA=Math.PI,lD=2*lA,lL=Math.sin,l$=Math.cos,lP=Math.acos,lO=Math.atan2,lE=Math.abs,lN=Math.sqrt,lR=Math.max,lz=Math.min;function lB(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/lN(s*s+l*l),h=u*l,c=-u*s,d=t+h,p=e+c,f=n+h,g=r+c,m=(d+f)/2,y=(p+g)/2,v=f-d,_=g-p,x=v*v+_*_,b=i-o,w=d*g-f*p,S=(_<0?-1:1)*lN(lR(0,b*b*x-w*w)),k=(w*_-v*S)/x,M=(-w*v-_*S)/x,C=(w*_+v*S)/x,T=(-w*v+_*S)/x,I=k-m,A=M-y,D=C-m,L=T-y;return I*I+A*A>D*D+L*L&&(k=C,M=T),{cx:k,cy:M,x0:-h,y0:-c,x1:k*(i/b-1),y1:M*(i/b-1)}}var lF=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},lV=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new lF},e.prototype.buildPath=function(t,e){!function(t,e){var n,r=lR(e.r,0),i=lR(e.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,d=!!e.clockwise,p=lE(u-l),f=p>lD&&p%lD;if(f>1e-4&&(p=f),r>1e-4)if(p>lD-1e-4)t.moveTo(h+r*l$(l),c+r*lL(l)),t.arc(h,c,r,l,u,!d),i>1e-4&&(t.moveTo(h+i*l$(u),c+i*lL(u)),t.arc(h,c,i,u,l,d));else{var g=void 0,m=void 0,y=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,k=void 0,M=void 0,C=void 0,T=void 0,I=void 0,A=void 0,D=void 0,L=r*l$(l),$=r*lL(l),P=i*l$(u),O=i*lL(u),E=p>1e-4;if(E){var N=e.cornerRadius;N&&(g=(n=function(t){var e;if(ek(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],m=n[1],y=n[2],v=n[3]);var R=lE(r-i)/2;if(_=lz(R,y),x=lz(R,v),b=lz(R,g),w=lz(R,m),M=S=lR(_,x),C=k=lR(b,w),(S>1e-4||k>1e-4)&&(T=r*l$(u),I=r*lL(u),A=i*l$(l),D=i*lL(l),p<lA)){var z=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=a-i,c=s-o,d=c*l-h*u;if(!(d*d<1e-4))return d=(h*(e-o)-c*(t-i))/d,[t+d*l,e+d*u]}(L,$,A,D,T,I,P,O);if(z){var B=L-z[0],F=$-z[1],V=T-z[0],W=I-z[1],H=1/lL(lP((B*V+F*W)/(lN(B*B+F*F)*lN(V*V+W*W)))/2),G=lN(z[0]*z[0]+z[1]*z[1]);M=lz(S,(r-G)/(H+1)),C=lz(k,(i-G)/(H-1))}}}if(E)if(M>1e-4){var j=lz(y,M),U=lz(v,M),Z=lB(A,D,L,$,r,j,d),X=lB(T,I,P,O,r,U,d);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),M<S&&j===U?t.arc(h+Z.cx,c+Z.cy,M,lO(Z.y0,Z.x0),lO(X.y0,X.x0),!d):(j>0&&t.arc(h+Z.cx,c+Z.cy,j,lO(Z.y0,Z.x0),lO(Z.y1,Z.x1),!d),t.arc(h,c,r,lO(Z.cy+Z.y1,Z.cx+Z.x1),lO(X.cy+X.y1,X.cx+X.x1),!d),U>0&&t.arc(h+X.cx,c+X.cy,U,lO(X.y1,X.x1),lO(X.y0,X.x0),!d))}else t.moveTo(h+L,c+$),t.arc(h,c,r,l,u,!d);else t.moveTo(h+L,c+$);if(i>1e-4&&E)if(C>1e-4){var j=lz(g,C),U=lz(m,C),Z=lB(P,O,T,I,i,-U,d),X=lB(L,$,A,D,i,-j,d);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),C<k&&j===U?t.arc(h+Z.cx,c+Z.cy,C,lO(Z.y0,Z.x0),lO(X.y0,X.x0),!d):(U>0&&t.arc(h+Z.cx,c+Z.cy,U,lO(Z.y0,Z.x0),lO(Z.y1,Z.x1),!d),t.arc(h,c,i,lO(Z.cy+Z.y1,Z.cx+Z.x1),lO(X.cy+X.y1,X.cx+X.x1),d),j>0&&t.arc(h+X.cx,c+X.cy,j,lO(X.y1,X.x1),lO(X.y0,X.x0),!d))}else t.lineTo(h+P,c+O),t.arc(h,c,i,u,l,d);else t.lineTo(h+P,c+O)}else t.moveTo(h,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(a7);lV.prototype.type="sector";var lW=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},lH=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new lW},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(a7);function lG(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],h=[],c=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)e1(a,a,t[d]),e2(s,s,t[d]);e1(a,a,r[0]),e2(s,s,r[1])}for(var d=0,p=t.length;d<p;d++){var f,g,m,y=t[d];if(n)i=t[d?d-1:p-1],o=t[(d+1)%p];else if(0===d||d===p-1){l.push([(f=t[d])[0],f[1]]);continue}else i=t[d-1],o=t[d+1];g=o,m=i,u[0]=g[0]-m[0],u[1]=g[1]-m[1],eq(u,u,e);var v=eQ(y,i),_=eQ(y,o),x=v+_;0!==x&&(v/=x,_/=x),eq(h,u,-v),eq(c,u,_);var b=eY([],y,h),w=eY([],y,c);r&&(e2(b,b,a),e1(b,b,s),e2(w,w,a),e1(w,w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}lH.prototype.type="ring";var lj=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},lU=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new lj},e.prototype.buildPath=function(t,e){lG(t,e,!0)},e}(a7);lU.prototype.type="polygon";var lZ=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},lX=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lZ},e.prototype.buildPath=function(t,e){lG(t,e,!1)},e}(a7);lX.prototype.type="polyline";var lY={},lq=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},lQ=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lq},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,r,i,o,a=so(lY,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(a7);lQ.prototype.type="line";var lK=[],lJ=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function l0(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?r_:rv)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?r_:rv)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?rk:rS)(t.x1,t.cpx1,t.x2,e),(n?rk:rS)(t.y1,t.cpy1,t.y2,e)]}var l1=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lJ},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,r),null==l||null==u?(h<1&&(rC(n,a,i,h,lK),a=lK[1],i=lK[2],rC(r,s,o,h,lK),s=lK[1],o=lK[2]),t.quadraticCurveTo(a,s,i,o)):(h<1&&(rw(n,a,l,i,h,lK),a=lK[1],l=lK[2],i=lK[3],rw(r,s,u,o,h,lK),s=lK[1],u=lK[2],o=lK[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return l0(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e,n=l0(this.shape,t,!0),r=Math.sqrt((e=n)[0]*e[0]+e[1]*e[1]);return 0===r?(n[0]=0,n[1]=0):(n[0]=n[0]/r,n[1]=n[1]/r),n},e}(a7);l1.prototype.type="bezier-curve";var l2=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},l5=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l2},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(a7);l5.prototype.type="arc";var l3=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return t0(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),a7.prototype.getBoundingRect.call(this)},e}(a7),l4=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),l6=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=e??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type="linear",s.global=a||!1,s}return t0(e,t),e}(l4),l8=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=e??.5,a.y=n??.5,a.r=r??.5,a.type="radial",a.global=o||!1,a}return t0(e,t),e}(l4),l7=Math.min,l9=Math.max,ut=Math.abs,ue=[0,0],un=[0,0],ur=nW(),ui=ur.minTv,uo=ur.maxTv,ua=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new nk;for(var n=0;n<2;n++)this._axes[n]=new nk;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);nk.sub(r[0],n[1],n[0]),nk.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var r=!0,i=!e;return e&&nk.set(e,0,0),ur.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(r=!1,i)||i||ur.negativeSize||nk.copy(e,r?ur.useDir?ur.dirMinTv:ui:uo),r},t.prototype._intersectCheckOneSide=function(t,e,n,r){for(var i=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ue),t._getProjMinMaxOnAxis(o,e._corners,un),ur.negativeSize||ue[1]<un[0]||ue[0]>un[1]){if(i=!1,ur.negativeSize||n)return i;var s=ut(un[0]-ue[1]),l=ut(ue[0]-un[1]);l7(s,l)>uo.len()&&(s<l?nk.scale(uo,a,-s*r):nk.scale(uo,a,l*r))}else if(!n){var s=ut(un[0]-ue[1]),l=ut(ue[0]-un[1]);(ur.useDir||l7(s,l)<ui.len())&&((s<l||!ur.bidirectional)&&(nk.scale(ui,a,s*r),ur.useDir&&ur.calcDirMTV()),(s>=l||!ur.bidirectional)&&(nk.scale(ui,a,-l*r),ur.useDir&&ur.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=l7(u,a),s=l9(u,s)}n[0]=a+ur.touchThreshold,n[1]=s-ur.touchThreshold,ur.negativeSize=n[1]<n[0]},t}(),us=[],ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t0(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new nz(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(us)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(t,e))return!0}return!1},e}(am),uu=oR();function uh(t,e,n,r,i,o,a){var s,l=!1;eM(i)?(a=o,o=i,i=null):eA(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=function(t,e,n,r,i){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var u=void 0,h=void 0,c=void 0;return r?(u=r.duration??200,h=r.easing??"cubicOut",c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),eM(c)&&(c=c(n,i)),eM(u)&&(u=u(n)),{duration:u||0,delay:c,easing:h}}(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function uc(t,e,n,r,i,o){uh("update",t,e,n,r,i,o)}function ud(t,e,n,r,i,o){uh("enter",t,e,n,r,i,o)}function up(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function uf(t,e,n,r,i,o){up(t)||uh("leave",t,e,n,r,i,o)}function ug(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),uf(t,{style:{opacity:0}},e,n,r)}function um(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ug(t,e,n,r)}):ug(t,e,n,r)}function uy(t){uu(t).oldStyle=t.style}var uv={},u_=["x","y"],ux=["width","height"],ub=function(t,e){var n=lk(t,e),r=lw;function i(t){var e=r.call(this,t)||this;return e.applyTransform=n.applyTransform,e.buildPath=n.buildPath,e}return t0(i,r),i};function uw(t,e){uv[t]=e}function uS(t,e,n,r){var i=new lw(lk(t,e));return n&&("center"===r&&(n=uM(n,i.getBoundingRect())),uC(i,n)),i}function uk(t,e,n){var r=new sr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(uM(e,i))}}});return r}function uM(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}function uC(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function uT(t,e){return so(t,t,{lineWidth:e}),t}function uI(t,e,n){return e&&!em(e)&&(e=iV.getLocalTransform(e)),n&&(e=nS([],e)),e0([],t,e)}function uA(t,e,n){if(t&&e){var r,i=(r={},t.traverse(function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),uc(t,r,n,sT(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=eh(t.shape)),e}}function uD(t,e,n){var r=ed({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),ep(i,n),new sr(r)):uS(t.replace("path://",""),r,n,"center")}function uL(t,e,n,r,i,o,a,s){var l,u=n-t,h=r-e,c=a-i,d=s-o,p=c*h-u*d;if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,m=(f*h-u*g)/p;if(m<0||m>1)return!1;var y=(f*d-c*g)/p;return!(y<0||y>1)}function u$(t,e,n,r,i){return null==e||(eI(e)?uP[0]=uP[1]=uP[2]=uP[3]=e:(uP[0]=e[0],uP[1]=e[1],uP[2]=e[2],uP[3]=e[3]),r&&(uP[0]=oa(0,uP[0]),uP[1]=oa(0,uP[1]),uP[2]=oa(0,uP[2]),uP[3]=oa(0,uP[3])),n&&(uP[0]=-uP[0],uP[1]=-uP[1],uP[2]=-uP[2],uP[3]=-uP[3]),uO(t,uP,"x","width",3,1,i&&i[0]||0),uO(t,uP,"y","height",0,2,i&&i[1]||0)),t}var uP=[0,0,0,0];function uO(t,e,n,r,i,o,a){var s=e[o]+e[i],l=t[r];t[r]+=s,a=oa(0,oo(a,l)),t[r]<a?(t[r]=a,t[n]+=e[i]>=0?-e[i]:e[o]>=0?l+e[o]:os(s)>1e-8?(l-a)*e[i]/s:0):t[n]-=e[i]}function uE(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=eC(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&ey(eb(l),function(t){ej(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=sT(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:ep({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function uN(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function uR(t,e){if(t)if(ek(t))for(var n=0;n<t.length;n++)uN(t[n],e);else uN(t,e)}function uz(t){return!t||os(t[1])<uB&&os(t[2])<uB||os(t[0])<uB&&os(t[3])<uB}var uB=1e-5;function uF(t,e){return t?nz.copy(t,e):e.clone()}function uV(t,e){return e?n_(t||ny(),e):void 0}function uW(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function uH(t,e,n){!function t(e,n,r,i){if(e.ignoreModelZ)return i;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=oa(t(s[l],n,r,i),i);else e.z=n,e.zlevel=r,i=oa(e.z2||0,i);if(o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}(t,e,n,-1/0)}uw("circle",lC),uw("ellipse",lI),uw("sector",lV),uw("ring",lH),uw("polygon",lU),uw("polyline",lX),uw("rect",sh),uw("line",lQ),uw("bezierCurve",l1),uw("arc",l5);let uG=Object.freeze(Object.defineProperty({__proto__:null,Arc:l5,BezierCurve:l1,BoundingRect:nz,Circle:lC,CompoundPath:l3,Ellipse:lI,Group:ot,Image:sr,IncrementalDisplayable:ul,Line:lQ,LinearGradient:l6,OrientedBoundingRect:ua,Path:a7,Point:nk,Polygon:lU,Polyline:lX,RadialGradient:l8,Rect:sh,Ring:lH,Sector:lV,Text:sf,WH:ux,XY:u_,applyTransform:uI,calcZ2Range:function(t){var e=-1/0,n=1/0;function r(t){if(!(!t||t.isGroup)){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)i(t.states[e[n]]);i(t)}}function i(t){if(t){var r=t.z2;r>e&&(e=r),r<n&&(n=r)}}return uN(t,function(t){r(t),r(t.getTextContent()),r(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}},clipPointsByRect:function(t,e){return ev(t,function(t){var n=t[0];n=oo(n=oa(n,e.x),e.x+e.width);var r=t[1];return[n,r=oo(r=oa(r,e.y),e.y+e.height)]})},clipRectByRect:function(t,e){var n=oa(t.x,e.x),r=oo(t.x+t.width,e.x+e.width),i=oa(t.y,e.y),o=oo(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:uD,ensureCopyRect:uF,ensureCopyTransform:uV,expandOrShrinkRect:u$,extendPath:function(t,e){return ub(t,e)},extendShape:function(t){return a7.extend(t)},getShapeClass:function(t){if(uv.hasOwnProperty(t))return uv[t]},getTransform:function(t,e){for(var n=nv([]);t&&t!==e;)nx(n,t.getLocalTransform(),n),t=t.parent;return n},groupTransition:uA,initProps:ud,isBoundingRectAxisAligned:uz,isElementRemoved:up,lineLineIntersect:uL,linePolygonIntersect:function(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(uL(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:uk,makePath:uS,mergePath:function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new a7(e);return a.createPathProxy(),a.buildPath=function(t){if(lS(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a},registerShape:uw,removeElement:uf,removeElementWithFadeOut:um,resizePath:uC,retrieveZInfo:uW,setTooltipConfig:uE,subPixelOptimize:ss,subPixelOptimizeLine:uT,subPixelOptimizeRect:function(t,e){return sa(t,t,e),t},transformDirection:function(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:os(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:os(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return os((o=uI(o,e,n))[0])>os(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},traverseElements:uR,traverseUpdateZ:uH,updateProps:uc},Symbol.toStringTag,{value:"Module"}));var uj={};function uU(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=eM(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<sP.length;u++){var h,c,d=sP[u],p=e[d];l[d]=(h=i?i.getFormattedLabel(o,d,null,a,p&&p.get("formatter")):null,c=r,h??c)}return l}function uZ(t,e,n,r){n=n||uj;for(var i=t instanceof sf,o=!1,a=0;a<sO.length;a++){var s=e[sO[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new sf,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=uU(n,e),h=e.normal,c=!!h.getShallow("show"),d=uY(h,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(uq(h,n,!1));for(var a=0;a<sP.length;a++){var p=sP[a],s=e[p];if(s){var f,g=l.ensureState(p),m=(f=s.getShallow("show"),!!(f??c));m!==c&&(g.ignore=!m),g.style=uY(s,r&&r[p],n,!0,!i),g.style.text=u[p],i||(t.ensureState(p).textConfig=uq(s,n,!0))}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),n.enableTextSetter&&(u1(l).setLabelText=function(t){var r=uU(n,e,t);!function(t,e){for(var n=0;n<sP.length;n++){var r=sP[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(l,r)})}else l&&(l.ignore=!0);t.dirty()}function uX(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<sP.length;r++){var i=sP[r];n[i]=t.getModel([i,e])}return n}function uY(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||uj;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||uj).rich;if(n){e=e||{};for(var r=eb(n),i=0;i<r.length;i++)e[r[i]]=1}t=t.parentModel}return e}(e);if(l){o={};var u,h,c="richInheritPlainLabel",d=(u=e.get(c),h=a?a.get(c):void 0,u??h);for(var p in l)if(l.hasOwnProperty(p)){var f=e.getModel(["rich",p]);u0(o[p]={},f,s,e,d,n,r,i,!1,!0)}}o&&(t.rich=o);var g=e.get("overflow");g&&(t.overflow=g);var m=e.get("lineOverflow");m&&(t.lineOverflow=m);var y=e.get("minMargin");if(null!=y)t.margin=[y=eI(y)?y/2:0,y,y,y],t.__marginType=u2.minMargin;else{var v=e.get("textMargin");null!=v&&(t.margin=eN(v),t.__marginType=u2.textMargin)}u0(t,e,s,null,null,n,r,i,!0,!1)}(o,t,n,r,i),e&&ed(o,e),o}function uq(t,e,n){e=e||{};var r,i,o,a={},s=t.getShallow("rotate"),l=(r=t.getShallow("distance"),i=n?null:5,r??i),u=t.getShallow("offset");return"outside"===(o=t.getShallow("position")||(n?null:"inside"))&&(o=e.defaultOutsidePosition||"top"),null!=o&&(a.position=o),null!=u&&(a.offset=u),null!=s&&(a.rotation=s*=Math.PI/180),null!=l&&(a.distance=l),a.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(a.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(a.layoutRect=e.layoutRect),a}var uQ=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],uK=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],uJ=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function u0(t,e,n,r,i,o,a,s,l,u){n=!a&&n||uj;var h=o&&o.inheritColor,c=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=(v=e.getShallow("opacity"),_=n.opacity,v??_);("inherit"===c||"auto"===c)&&(c=h||null),("inherit"===d||"auto"===d)&&(d=h||null),s||(c=c||n.color,d=d||n.textBorderColor),null!=c&&(t.fill=c),null!=d&&(t.stroke=d);var f=(x=e.getShallow("textBorderWidth"),b=n.textBorderWidth,x??b);null!=f&&(t.lineWidth=f);var g=(w=e.getShallow("textBorderType"),S=n.textBorderType,w??S);null!=g&&(t.lineDash=g);var m=(k=e.getShallow("textBorderDashOffset"),M=n.textBorderDashOffset,k??M);null!=m&&(t.lineDashOffset=m),a||null!=p||u||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null!=t.fill||!o.inheritColor||(t.fill=o.inheritColor);for(var y=0;y<uQ.length;y++){var v,_,x,b,w,S,k,M,C,T,I,A,D,L=uQ[y],$=!1!==i&&r?(C=e.getShallow(L),T=r.getShallow(L),I=n[L],C??T??I):(A=e.getShallow(L),D=n[L],A??D);null!=$&&(t[L]=$)}for(var y=0;y<uK.length;y++){var L=uK[y],$=e.getShallow(L);null!=$&&(t[L]=$)}if(null==t.verticalAlign){var P=e.getShallow("baseline");null!=P&&(t.verticalAlign=P)}if(!l||!o.disableBox){for(var y=0;y<uJ.length;y++){var L=uJ[y],$=e.getShallow(L);null!=$&&(t[L]=$)}var O=e.getShallow("borderType");null!=O&&(t.borderDash=O),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&h&&(t.backgroundColor=h),("auto"===t.borderColor||"inherit"===t.borderColor)&&h&&(t.borderColor=h)}}var u1=oR(),u2={minMargin:1,textMargin:2},u5=["textStyle","color"],u3=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],u4=new sf,u6=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(u5):null)},t.prototype.getFont=function(){var t,e,n;return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(e=this.ecModel)&&e.getModel("textStyle"),ez([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<u3.length;n++)e[u3[n]]=this.getShallow(u3[n]);return u4.useStyle(e),u4.update(),u4.getBoundingRect()},t}(),u8=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],u7=oJ(u8),u9=function(){function t(){}return t.prototype.getLineStyle=function(t){return u7(this,t)},t}(),ht=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],he=oJ(ht),hn=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return he(this,t,e)},t}(),hr=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){ec(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(eh(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!t2.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&!(t[r]&&null==(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();oZ(hr),cT=["__\0is_clz",oY++].join("_"),hr.prototype[cT]=!0,hr.isInstance=function(t){return!!(t&&t[cT])},eg(hr,u9),eg(hr,hn),eg(hr,o1),eg(hr,u6);var hi=Math.round(10*Math.random());function ho(t){return[t||"",hi++].join("_")}function ha(t,e){return ec(ec({},t,!0),e,!0)}var hs={},hl={},hu=t2.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function hh(t,e){hl[t=t.toUpperCase()]=new hr(e),hs[t]=e}hh("EN",{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:". "}}}}),hh("ZH",{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 hc={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},hd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},hp="{yyyy}-{MM}-{dd}",hf={year:"{yyyy}",month:"{yyyy}-{MM}",day:hp,hour:hp+" "+hd.hour,minute:hp+" "+hd.minute,second:hp+" "+hd.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},hg=["year","month","day","hour","minute","second","millisecond"],hm=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hy(t,e){return t+="","0000".substr(0,e-t.length)+t}function hv(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function h_(t,e,n,r){var i=om(t),o=i[hw(n)](),a=i[hS(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[hk(n)](),u=i["get"+(n?"UTC":"")+"Day"](),h=i[hM(n)](),c=(h-1)%12+1,d=i[hC(n)](),p=i[hT(n)](),f=i[hI(n)](),g=h>=12?"pm":"am",m=g.toUpperCase(),y=(r instanceof hr?r:hl[r||hu]||hl.EN).getModel("time"),v=y.get("month"),_=y.get("monthAbbr"),x=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,hy(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,hy(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hy(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hy(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,hy(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,hy(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hy(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,hy(f,3)).replace(/{S}/g,f+"")}function hx(t,e){var n=om(t),r=n[hS(e)]()+1,i=n[hk(e)](),o=n[hM(e)](),a=n[hC(e)](),s=n[hT(e)](),l=0===n[hI(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,d=c&&1===i;return d&&1===r?"year":d?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function hb(t,e,n){switch(e){case"year":t[hA(n)](0);case"month":t[hD(n)](1);case"day":t[hL(n)](0);case"hour":t[h$(n)](0);case"minute":t[hP(n)](0);case"second":t[hO(n)](0)}return t}function hw(t){return t?"getUTCFullYear":"getFullYear"}function hS(t){return t?"getUTCMonth":"getMonth"}function hk(t){return t?"getUTCDate":"getDate"}function hM(t){return t?"getUTCHours":"getHours"}function hC(t){return t?"getUTCMinutes":"getMinutes"}function hT(t){return t?"getUTCSeconds":"getSeconds"}function hI(t){return t?"getUTCMilliseconds":"getMilliseconds"}function hA(t){return t?"setUTCMonth":"setMonth"}function hD(t){return t?"setUTCDate":"setDate"}function hL(t){return t?"setUTCHours":"setHours"}function h$(t){return t?"setUTCMinutes":"setMinutes"}function hP(t){return t?"setUTCSeconds":"setSeconds"}function hO(t){return t?"setUTCMilliseconds":"setMilliseconds"}function hE(t){if(isNaN(o_(t)))return eC(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function hN(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function hR(t,e,n){function r(t){return t&&ez(t)?t:"-"}function i(t){return!!(null!=t&&!isNaN(t)&&isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?om(t):t;if(!isNaN(+s))return h_(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return eT(t)?r(t):eI(t)&&i(t)?t+"":"-";var l=o_(t);return i(l)?hE(l):eT(t)?r(t):"boolean"==typeof t?t+"":"-"}var hz=["a","b","c","d","e","f","g"],hB=function(t,e){return"{"+t+(e??"")+"}"};function hF(t,e,n){ek(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=hz[o];t=t.replace(hB(a),hB(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(hB(hz[l],s),n?no(u):u)}return t}function hV(t,e){return e=e||"transparent",eC(t)?t:eA(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function hW(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var hH={},hG={},hj=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){this._nonSeriesBoxMasterList=n(hH,!0),this._normalMasterList=n(hG,!1);function n(n,r){var i=[];return ey(n,function(n,r){var o=n.create(t,e);i=i.concat(o||[])}),i}},t.prototype.update=function(t,e){ey(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){hH[t]=e;return}hG[t]=e},t.get=function(t){return hG[t]||hH[t]},t}(),hU={coord:1,coord2:2},hZ=eH(),hX={none:0,dataCoordSys:1,boxCoordSys:2},hY=["left","right","top","bottom","width","height"],hq=[["width","left","right"],["height","top","bottom"]];function hQ(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(h=o+g)>r||l.newline?(o=0,h=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(c=a+m)>i||l.newline?(o+=s+n,a=0,c=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function hK(t,e,n){n=eN(n||0);var r=e.width,i=e.height,o=ou(t.left,r),a=ou(t.top,i),s=ou(t.right,r),l=ou(t.bottom,i),u=ou(t.width,r),h=ou(t.height,i),c=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(h)&&(h=i-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>r/i?u=.8*r:h=.8*i),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-h-c),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(t.top||t.bottom){case"middle":case"center":a=i/2-h/2-n[0];break;case"bottom":a=i-h-c}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(h)&&(h=i-c-a-(l||0));var f=new nz((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return f.margin=n,f}eS(hQ,"vertical"),eS(hQ,"horizontal");var hJ={rect:1,point:2};function h0(t,e,n){var r,i,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=hU.coord;if(null==e){var r=hZ.get(t.type);r&&r.getCoord2&&(n=hU.coord2,e=r.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,h=l.from;if(s.dataToLayout){o=hJ.rect,a=h;var c=s.dataToLayout(u);r=c.contentRect||c.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=hJ.point,a=h,i=s.dataToPoint(u))}return null==o&&(o=hJ.rect),o===hJ.rect&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:a}}function h1(t){var e=t.layoutMode||t.constructor.layoutMode;return eA(e)?e:e?{type:e}:null}function h2(t,e,n){var r=n&&n.ignoreSize;ek(r)||(r=[r,r]);var i=a(hq[0],0),o=a(hq[1],1);function a(n,i){var o={},a=0,l={},u=0;if(ey(n,function(e){l[e]=t[e]}),ey(n,function(t){ej(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),r[i])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2===u||!a)return l;if(a>=2)return o;for(var h=0;h<n.length;h++){var c=n[h];if(!ej(o,c)&&ej(t,c)){o[c]=t[c];break}}return o}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){ey(t,function(t){e[t]=n[t]})}l(hq[0],t,i),l(hq[1],t,o)}function h5(t){var e,n;return e={},(n=t)&&e&&ey(hY,function(t){ej(n,t)&&(e[t]=n[t])}),e}var h3=oR(),h4=function(t){var e;function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=ho("ec_cpt_model"),i}return t0(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=h1(this),r=n?h5(t):{};ec(t,e.getTheme().get(this.mainType)),ec(t,this.getDefaultOption()),n&&h2(t,r,n)},n.prototype.mergeOption=function(t,e){ec(this.option,t,!0);var n=h1(this);n&&h2(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oj]))return t.defaultOption;var e=h3(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=ec(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return oW(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.getShallow("left",!1),top:this.getShallow("top",!1),right:this.getShallow("right",!1),bottom:this.getShallow("bottom",!1),width:this.getShallow("width",!1),height:this.getShallow("height",!1)}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(hr);oX(h4,hr),oK(h4),cI={},h4.registerSubTypeDefaulter=function(t,e){cI[oU(t).main]=e},h4.determineSubType=function(t,e){var n=e.type;if(!n){var r=oU(t).main;h4.hasSubTypes(t)&&cI[r]&&(n=cI[r](e))}return n};var h6=function(t){var e=[];return ey(h4.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ev(e,function(t){return oU(t).main}),"dataset"!==t&&0>=ef(e,"dataset")&&e.unshift("dataset"),e};function h8(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}h4.topologicalTravel=function(t,e,n,r){if(t.length){var i,o,a,s=(o={},a=[],ey(i=e,function(t){var e,n,r,s=h8(o,t),l=(e=s.originalDeps=h6(t),n=i,r=[],ey(e,function(t){ef(n,t)>=0&&r.push(t)}),r);s.entryCount=l.length,0===s.entryCount&&a.push(t),ey(l,function(e){0>ef(s.predecessor,e)&&s.predecessor.push(e);var n=h8(o,e);0>ef(n.successor,e)&&n.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,u=s.noEntryList,h={};for(ey(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],p=!!h[c];p&&(n.call(r,c,d.originalDeps.slice()),delete h[c]),ey(d.successor,p?g:f)}ey(h,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,f(t)}};var h7={color:{},darkColor:{},size:{}},h9=h7.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var ct in ed(h9,{primary:h9.neutral80,secondary:h9.neutral70,tertiary:h9.neutral60,quaternary:h9.neutral50,disabled:h9.neutral20,border:h9.neutral30,borderTint:h9.neutral20,borderShade:h9.neutral40,background:h9.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:h9.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:h9.neutral70,axisLineTint:h9.neutral40,axisTick:h9.neutral70,axisTickMinor:h9.neutral60,axisLabel:h9.neutral70,axisSplitLine:h9.neutral15,axisMinorSplitLine:h9.neutral05}),h9)if(h9.hasOwnProperty(ct)){var ce=h9[ct];"theme"===ct?h7.darkColor.theme=h9.theme.slice():"highlight"===ct?h7.darkColor.highlight="rgba(255,231,130,0.4)":0===ct.indexOf("accent")?h7.darkColor[ct]=rZ(ce,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):h7.darkColor[ct]=rZ(ce,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}h7.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var cn="";"u">typeof navigator&&(cn=navigator.platform||"");var cr="rgba(0, 0, 0, 0.2)",ci=h7.color.theme[0],co=rZ(ci,null,null,.9);let ca={darkMode:"auto",colorBy:"series",color:h7.color.theme,gradientColor:[co,ci],aria:{decal:{decals:[{color:cr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cn.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 cs=eH(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),cl="original",cu="arrayRows",ch="objectRows",cc="keyedColumns",cd="typedArray",cp="unknown",cf="column",cg={Must:1,Might:2,Not:3},cm=oR();function cy(t,e,n){var r={},i=c_(e);if(!i||!t)return r;var o,a,s=[],l=[],u=cm(e.ecModel).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;ey(t=t.slice(),function(e,n){var i=eA(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]});var c=u.get(h)||u.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function p(t){var e=t.dimsDef;return e?e.length:1}return ey(t,function(t,e){var n=t.name,i=p(t);if(null==o){var a=c.valueWayDim;d(r[n],a,i),d(l,a,i),c.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{var a=c.categoryWayDim;d(r[n],a,i),d(l,a,i),c.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function cv(t,e,n){var r={};if(!c_(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;(o===ch||o===cc)&&ey(a,function(t,e){(eA(t)?t.name:t)==="name"&&(i=e)});var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var h=cb(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(h);var c=h===cg.Not;if(c&&null==t.v&&l!==i&&(t.v=l),null!=t.n&&t.n!==t.v&&(c||s[t.n]!==cg.Not)||(t.n=l),d(t)&&s[t.n]!==cg.Not)return t;c||(h===cg.Might&&null==r.v&&l!==i&&(r.v=l),(null==r.n||r.n===r.v)&&(r.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(s){r.value=[s.v];var l=i??s.n;r.itemName=[l],r.seriesName=[l]}return r}function c_(t){if(!t.get("data",!0))return oW(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},oV).models[0]}function cx(t,e){return cb(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function cb(t,e,n,r,i,o){var a,s,l;if(eL(t))return cg.Not;if(r){var u=r[o];eA(u)?(a=u.name,s=u.type):eC(u)&&(a=u)}if(null!=s)return"ordinal"===s?cg.Must:cg.Not;if(e===cu)if("row"===n){for(var h=t[o],c=0;c<(h||[]).length&&c<5;c++)if(null!=(l=g(h[i+c])))return l}else for(var c=0;c<t.length&&c<5;c++){var d=t[i+c];if(d&&null!=(l=g(d[o])))return l}else if(e===ch){if(!a)return cg.Not;for(var c=0;c<t.length&&c<5;c++){var p=t[c];if(p&&null!=(l=g(p[a])))return l}}else if(e===cc){if(!a)return cg.Not;var h=t[a];if(!h||eL(h))return cg.Not;for(var c=0;c<h.length&&c<5;c++)if(null!=(l=g(h[c])))return l}else if(e===cl)for(var c=0;c<t.length&&c<5;c++){var p=t[c],f=oD(p);if(!ek(f))return cg.Not;if(null!=(l=g(f[o])))return l}function g(t){var e=eC(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?cg.Might:cg.Not:e&&"-"!==t?cg.Must:void 0}return cg.Not}var cw=eH(),cS=oR();oR();var ck,cM,cC,cT,cI,cA,cD,cL,c$,cP,cO=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){return function(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var h=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if(!(!(h=h||n)||!h.length)){var c=h[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%h.length,c}}(this,cS,oT(this.get("color",!0)),this.get("colorLayer",!0),t,e,n)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=cS)(t).paletteIdx=0,e(t).paletteNameMap={}},t}(),cE="\0_ec_inner",cN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new hr(r),this._locale=new hr(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=cB(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,cB(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):cP(this,i),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&ey(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=eH(),s=e&&e.replaceMergeMainTypeMap;cm(this).datasetMap=eH(),ey(t,function(t,e){null!=t&&(h4.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?eh(t):ec(n[e],t,!0))}),s&&s.each(function(t,e){h4.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),h4.topologicalTravel(o,h4.getAllClassMainTypes(),function(e){var o=function(t,e,n){var r=cw.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,oT(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=(w=a,S=o,k="normalMerge"===l,M="replaceMerge"===l,C="replaceAll"===l,w=w||[],S=(S||[]).slice(),T=eH(),ey(S,function(t,e){if(!eA(t)){S[e]=null;return}}),I=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||oE(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(w,T,l),(k||M)&&(h=I,c=w,d=T,ey(p=S,function(t,e){if(!(!t||null==t.id)){var n=o$(t.id),r=d.get(n);if(null!=r){var i=h[r];eR(!i.newOption,'Duplicated option on id "'+n+'".'),i.newOption=t,i.existing=c[r],p[e]=null}}})),k&&(f=I,ey(g=S,function(t,e){if(!(!t||null==t.name))for(var n=0;n<f.length;n++){var r=f[n].existing;if(!f[n].newOption&&r&&(null==r.id||null==t.id)&&!oE(t)&&!oE(r)&&oL("name",r,t)){f[n].newOption=t,g[e]=null;return}}})),k||M?(m=I,y=S,v=M,ey(y,function(t){if(t){for(var e,n=0;(e=m[n])&&(e.newOption||oE(e.existing)||e.existing&&null!=t.id&&!oL("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=v):m.push({newOption:t,brandNew:v,existing:null,keyInfo:null}),n++}})):C&&(_=I,ey(S,function(t){_.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),x=I,b=eH(),ey(x,function(t){var e=t.existing;e&&b.set(e.id,t)}),ey(x,function(t){var e=t.newOption;eR(!e||null==e.id||!b.get(e.id)||b.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&b.set(e.id,t),t.keyInfo||(t.keyInfo={})}),ey(x,function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(eA(r)){if(i.name=null!=r.name?o$(r.name):n?n.name:oC+e,n)i.id=o$(n.id);else if(null!=r.id)i.id=o$(r.id);else{var o=0;do i.id="\0"+i.name+"\0"+o++;while(b.get(i.id))}b.set(i.id,t)}}),I);ey(u,function(t){var n,r,i,o,a=t.newOption;eA(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,r=a,i=t.existing,o=h4,r.type?r.type:i?i.subType:o.determineSubType(n,r)))}),n[e]=null,r.set(e,null),i.set(e,0);var h,c,d,p,f,g,m,y,v,_,x,b,w,S,k,M,C,T,I,A,D=[],L=[],$=0;ey(u,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=h4.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(A)return;A=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=ed({componentIndex:n},t.keyInfo);ed(r=new a(i,this,this,s),s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(D.push(r.option),L.push(r),$++):(D.push(void 0),L.push(void 0))},this),n[e]=D,r.set(e,L),i.set(e,$),"series"===e&&cL(this)},this),this._seriesIndices||cL(this)},e.prototype.getOption=function(){var t=eh(this.option);return ey(t,function(e,n){if(h4.hasClass(n)){for(var r=oT(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!oE(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[cE],t},e.prototype.setTheme=function(t){this._theme=new hr(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},e.prototype.queryComponents=function(t){var e,n=t.mainType;if(!n)return[];var r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(n);return a&&a.length?(null!=r?(e=[],ey(oT(r),function(t){a[t]&&e.push(a[t])})):e=null!=i?cR("id",i,a):null!=o?cR("name",o,a):ex(a,function(t){return!!t}),cz(e,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(e=a,n=s+"Index",r=s+"Id",i=s+"Name",e&&(null!=e[n]||null!=e[r]||null!=e[i])?{mainType:s,index:e[n],id:e[r],name:e[i]}:null);return o=cz(l?this.queryComponents(l):ex(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?ex(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(eM(t))r.each(function(n,r){for(var i=0;n&&i<n.length;i++){var o=n[i];o&&t.call(e,r,o,o.componentIndex)}});else for(var i=eC(t)?r.get(t):eA(t)?this.findComponents(t):null,o=0;i&&o<i.length;o++){var a=i[o];a&&e.call(n,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=oP(t,null);return ex(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ex(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return ex(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){c$(this),ey(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},e.prototype.eachRawSeries=function(t,e){ey(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){c$(this),ey(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return ey(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return c$(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){c$(this);var n=[];ey(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=eH(n)},e.prototype.restoreData=function(t){cL(this);var e=this._componentsMap,n=[];e.each(function(t,e){h4.hasClass(e)&&n.push(e)}),h4.topologicalTravel(n,h4.getAllClassMainTypes(),function(n){ey(e.get(n),function(e){e&&("series"!==n||!function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t))&&e.restoreData()})})},e.internalField=void(cL=function(t){var e=t._seriesIndices=[];ey(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=eH(e)},c$=function(t){},cP=function(t,e){t.option={},t.option[cE]=1,t._componentsMap=eH({series:[]}),t._componentsCount=eH();var n,r,i,o=e.aria;eA(o)&&null==o.enabled&&(o.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,ey(r,function(t,e){"colorLayer"===e&&i||"color"===e&&n.color||h4.hasClass(e)||("object"==typeof t?n[e]=n[e]?ec(n[e],t,!1):eh(t):null==n[e]&&(n[e]=t))}),ec(e,ca,!1),t._mergeOption(e,null)}),e}(hr);function cR(t,e,n){if(ek(e)){var r=eH();return ey(e,function(t){null!=t&&null!=oP(t,null)&&r.set(t,!0)}),ex(n,function(e){return e&&r.get(e[t])})}var i=oP(e,null);return ex(n,function(e){return e&&null!=i&&e[t]===i})}function cz(t,e){return e.hasOwnProperty("subType")?ex(t,function(t){return t&&t.subType===e.subType}):t}function cB(t){var e=eH();return t&&ey(oT(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}eg(cN,cO);var cF=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cV=function(t){ey(cF,function(e){this[e]=ew(t[e],t)},this)},cW=/^(min|max)?(.+)$/,cH=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(ey(oT(t.series),function(t){t&&t.data&&eL(t.data)&&(t.data[eB]=!0)}),ey(oT(t.dataset),function(t){t&&t.source&&eL(t.source)&&(t.source[eB]=!0)})),t=eh(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);function d(t){ey(e,function(e){e(t,n)})}return a?(i=a).timeline||(i.timeline=s):((c||h)&&(t.options=t.media=null),i=t),h&&ek(u)&&ey(u,function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))}),d(i),ey(l,function(t){return d(t)}),ey(o,function(t){return d(t.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],eh(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=eh(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u<h;u++)(function(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return ey(t,function(t,e){var n=e.match(cW);if(!(!n||!n[1]||!n[2])){var o,a,s,l=n[1];o=r[n[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(i=!1)}}),i})(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=ev(s,function(t){return eh(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),cG=eA,cj=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cU(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=cj.length;n<r;n++){var i=cj[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?ec(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?ec(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function cZ(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,ep(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function cX(t){cZ(t,"itemStyle"),cZ(t,"lineStyle"),cZ(t,"areaStyle"),cZ(t,"label"),cZ(t,"labelLine"),cZ(t,"upperLabel"),cZ(t,"edgeLabel")}function cY(t,e){var n=cG(t)&&t[e],r=cG(n)&&n.textStyle;if(r)for(var i=0,o=oA.length;i<o;i++){var a=oA[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function cq(t){t&&(cX(t),cY(t,"label"),t.emphasis&&cY(t.emphasis,"label"))}function cQ(t){return ek(t)?t:t?[t]:[]}function cK(t){return(ek(t)?t[0]:t)||{}}function cJ(t){t&&ey(c0,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var c0=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],c1=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c2=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function c5(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<c2.length;n++){var r=c2[n][1],i=c2[n][0];null!=e[r]&&(e[i]=e[r])}}function c3(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function c4(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function c6(t,e){var n;ey(cQ(t.series),function(t){cG(t)&&function(t){if(cG(t)){cU(t),cX(t),cY(t,"label"),cY(t,"upperLabel"),cY(t,"edgeLabel"),t.emphasis&&(cY(t.emphasis,"label"),cY(t.emphasis,"upperLabel"),cY(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(cU(e),cq(e));var n=t.markLine;n&&(cU(n),cq(n));var r=t.markArea;r&&cq(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!eL(o))for(var a=0;a<o.length;a++)cq(o[a]);ey(t.categories,function(t){cX(t)})}if(i&&!eL(i))for(var a=0;a<i.length;a++)cq(i[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)cq(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)ek(l[a])?(cq(l[a][0]),cq(l[a][1])):cq(l[a]);"gauge"===t.type?(cY(t,"axisLabel"),cY(t,"title"),cY(t,"detail")):"treemap"===t.type?(cZ(t.breadcrumb,"itemStyle"),ey(t.levels,function(t){cX(t)})):"tree"===t.type&&cX(t.leaves)}}(t)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ey(n,function(e){ey(cQ(t[e]),function(t){t&&(cY(t,"axisLabel"),cY(t.axisPointer,"label"))})}),ey(cQ(t.parallel),function(t){var e=t&&t.parallelAxisDefault;cY(e,"axisLabel"),cY(e&&e.axisPointer,"label")}),ey(cQ(t.calendar),function(t){cZ(t,"itemStyle"),cY(t,"dayLabel"),cY(t,"monthLabel"),cY(t,"yearLabel")}),ey(cQ(t.radar),function(t){cY(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),ey(cQ(t.geo),function(t){cG(t)&&(cq(t),ey(cQ(t.regions),function(t){cq(t)}))}),ey(cQ(t.timeline),function(t){cq(t),cZ(t,"label"),cZ(t,"itemStyle"),cZ(t,"controlStyle",!0);var e=t.data;ek(e)&&ey(e,function(t){eA(t)&&(cZ(t,"label"),cZ(t,"itemStyle"))})}),ey(cQ(t.toolbox),function(t){cZ(t,"iconStyle"),ey(t.feature,function(t){cZ(t,"iconStyle")})}),cY(cK(t.axisPointer),"label"),cY(cK(t.tooltip).axisPointer,"label"),t.series=oT(t.series),ey(t.series,function(t){if(eA(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),c3(t.label);var n=t.data;if(n&&!eL(n))for(var r=0;r<n.length;r++)c3(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=i&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];null==a[o[s]]&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){c5(t),c5(t.backgroundStyle),c5(t.emphasis);var n=t.data;if(n&&!eL(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(c5(n[r]),c5(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),c4(t),function t(e,n){if(e)for(var r=0;r<e.length;r++)n(e[r]),e[r]&&t(e[r].children,n)}(t.data,c4)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ep(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),cJ(t)}}),t.dataRange&&(t.visualMap=t.dataRange),ey(c1,function(e){var n=t[e];n&&(ek(n)||(n=[n]),ey(n,function(t){cJ(t)}))})}var c8=function(t){this.data=t.data||(t.sourceFormat===cc?{}:[]),this.sourceFormat=t.sourceFormat||cp,this.seriesLayoutBy=t.seriesLayoutBy||cf,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&cx(this,n)===cg.Must&&(r.type="ordinal")}};function c7(t){return t instanceof c8}function c9(t,e,n){n=n||de(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:dn(i),startIndex:a,dimensionsDetectedCount:o};if(e===cu)"auto"===r||null==r?dr(function(t){null!=t&&"-"!==t&&(eC(t)?null==a&&(a=1):a=0)},n,t,10):a=eI(r)?r:+!!r,i||1!==a||(i=[],dr(function(t,e){i[e]=null!=t?t+"":""},n,t,1/0)),o=i?i.length:"row"===n?t.length:t[0]?t[0].length:null;else if(e===ch)i||(i=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return eb(e)}(t));else if(e===cc)i||(i=[],ey(t,function(t,e){i.push(e)}));else if(e===cl){var s=oD(t[0]);o=ek(s)&&s.length||1}return{startIndex:a,dimensionsDefine:dn(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new c8({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:eh(e)})}function dt(t){return new c8({data:t,sourceFormat:eL(t)?cd:cl})}function de(t){var e=cp;if(eL(t))e=cd;else if(ek(t)){0===t.length&&(e=cu);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(ek(i)||eL(i)){e=cu;break}else if(eA(i)){e=ch;break}}}}else if(eA(t)){for(var o in t)if(ej(t,o)&&em(t[o])){e=cc;break}}return e}function dn(t){if(t){var e=eH();return ev(t,function(t,n){var r={name:(t=eA(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r})}}function dr(t,e,n,r){if("row"===e)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)t(o[i],i)}function di(t){var e=t.sourceFormat;return e===ch||e===cc}var da,ds,dl,du,dh,dc,dd=function(){var t;function e(t,e){var n=c7(t)?t:dt(t);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===cd&&(this._offset=0,this._dimSize=e,this._data=r),dc(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){dc=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;(ed(t,dh[dx(a,s)]),a===cd)?(t.getItem=e,t.count=r,t.fillStorage=n):(t.getItem=ew(dg[dx(a,s)],null,i,l,u),t.count=ew(dy[dx(a,s)],null,i,l,u))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],d=0;d<h;d++){var p=i[d*o+a];c[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[cu+"_"+cf]={pure:!0,appendData:i},t[cu+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ch]={pure:!0,appendData:i},t[cc]={pure:!0,appendData:function(t){var e=this._data;ey(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},t[cl]={appendData:i},t[cd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},dh=t}(),e}(),dp=function(t){ek(t)||ok("series.data or dataset.source must be an array.")},df=((da={})[cu+"_"+cf]=dp,da[cu+"_row"]=dp,da[ch]=dp,da[cc]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&ok("dimension name must not be null/undefined.")},da[cl]=dp,function(t,e,n,r){return t[r]}),dg=((ds={})[cu+"_"+cf]=function(t,e,n,r){return t[r+e]},ds[cu+"_row"]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[r]:null}return o},ds[ch]=df,ds[cc]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[r]:null}return o},ds[cl]=df,ds),dm=function(t,e,n){return t.length},dy=((dl={})[cu+"_"+cf]=function(t,e,n){return Math.max(0,t.length-e)},dl[cu+"_row"]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},dl[ch]=dm,dl[cc]=function(t,e,n){var r=n[0].name,i=null!=r?t[r]:null;return i?i.length:0},dl[cl]=dm,dl),dv=function(t,e,n){return t[e]},d_=((du={})[cu]=dv,du[ch]=function(t,e,n){return t[n]},du[cc]=dv,du[cl]=function(t,e,n){var r=oD(t);return r instanceof Array?r[e]:r},du[cd]=dv,du);function dx(t,e){return t===cu?t+"_"+e:t}function db(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return d_[o](r,a,s)}var l=r;return o===cl&&(l=oD(r)),l}}}var dw=/\{@(.+?)\}/g,dS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,d=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return(o&&(s.value=o.interpolatedValue),null!=r&&ek(s.value)&&(s.value=s.value[r]),i||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),eM(i))?(s.status=e,s.dimensionIndex=r,i(s)):eC(i)?hF(i,s).replace(dw,function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=db(a,t,i);if(o&&ek(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return db(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function dk(t){var e,n;return eA(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function dM(t){return new dC(t)}var dC=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n,r,i,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(r=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,h=((n=t&&t.modBy)>=1||(n=1),n),c=t&&t.modDataCount||0;(l!==h||u!==c)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,i=this._doReset(a)),this._modBy=h,this._modDataCount=c;var d=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(i||p<f)){var g=this._progress;if(ek(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,h,c);else this._doProgress(g,p,f,h,c)}this._dueIndex=f;var y=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){dT.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:dT.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),ek(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n,r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),dT=function(){var t,e,n,r,i,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=Math.ceil((r=c)/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function dI(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||eI(t)||null==t||"-"===t||(t=+om(t)),null==t||""===t?NaN:Number(t))}eH({number:function(t){return parseFloat(t)},time:function(t){return+om(t)},trim:function(t){return eC(t)?ez(t):t}});var dA=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=eI(t)?t:o_(t),r=eI(e)?e:o_(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=eC(t),s=eC(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),dD=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return dI(t,e)},t}();function dL(t){return dN(t.sourceFormat)||oM(""),t.data}function d$(t){var e=t.sourceFormat,n=t.data;if(dN(e)||oM(""),e===cu){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(e===ch){for(var r=[],i=0,o=n.length;i<o;i++)r.push(ed({},n[i]));return r}}function dP(t,e,n){if(null!=n){if(eI(n)||!isNaN(n)&&!ej(e,n))return t[n];if(ej(e,n))return e[n]}}function dO(t){return eh(t)}var dE=eH();function dN(t){return t===cu||t===ch}var dR,dz="undefined",dB=typeof Uint32Array===dz?Array:Uint32Array,dF=typeof Uint16Array===dz?Array:Uint16Array,dV=typeof Int32Array===dz?Array:Int32Array,dW=typeof Float64Array===dz?Array:Float64Array,dH={float:dW,int:dV,ordinal:Array,number:Array,time:dW};function dG(t){return t>65535?dB:dF}function dj(){return[1/0,-1/0]}function dU(t,e,n,r,i){var o=dH[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var dZ=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=eH()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=dR[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],di(r),this._dimensions=ev(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new dH[e||"float"](this._rawCount),this._rawExtent[i]=dj(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=dj());for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];dU(n,l,u.type,s,!0)}for(var h=[],c=a;c<s;c++)for(var d=c-a,p=0;p<i;p++){var u=r[p],f=dR.arrayRows.call(this,t[d]||h,u.property,d,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=ev(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=dj()),dU(i,u,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var c=[],d=t;d<e;d++){c=r.getItem(d,c);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(c,l[p],d,p);f[d]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;for(var i=0,o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return -1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{var n=dG(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=dG(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],h=n._chunks,c=0;c<r;c++){var d=void 0,p=n.getRawIndex(c);if(0===s)d=e(c);else if(1===s)d=e(h[u][p],c);else{for(var f=0;f<s;f++)a[f]=h[t[f]][p];a[f]=c,d=e.apply(null,a)}d&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=eb(t),i=r.length;if(!i)return this;var o=e.count(),a=new(dG(e._rawCount))(o),s=0,l=r[0],u=t[l][0],h=t[l][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(1===i){for(var f=c[r[0]],g=0;g<n;g++){var m=f[g];(m>=u&&m<=h||isNaN(m))&&(a[s++]=p),p++}d=!0}else if(2===i){for(var f=c[r[0]],y=c[r[1]],v=t[r[1]][0],_=t[r[1]][1],g=0;g<n;g++){var m=f[g],x=y[g];(m>=u&&m<=h||isNaN(m))&&(x>=v&&x<=_||isNaN(x))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===i)for(var g=0;g<o;g++){var b=e.getRawIndex(g),m=c[r[0]][b];(m>=u&&m<=h||isNaN(m))&&(a[s++]=b)}else for(var g=0;g<o;g++){for(var w=!0,b=e.getRawIndex(g),S=0;S<i;S++){var k=r[S],m=c[k][b];(m<t[k][0]||m>t[k][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=dj();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),d=0;d<o;d++)s[d]=r[e[d]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var u=0;u<p.length;u++){var f=e[u],g=p[u],m=l[f],y=r[f];y&&(y[c]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(dG(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=this.getRawIndex(y),_=a[v];isNaN(_)||(m+=_)}m/=f-p;var x=d,b=Math.min(d+u,s),w=d-1,S=a[h];n=-1,i=x;for(var k=-1,M=0,y=x;y<b;y++){var v=this.getRawIndex(y),_=a[v];if(isNaN(_)){M++,k<0&&(k=v);continue}(r=Math.abs((w-g)*(_-S)-(w-y)*(m-S)))>n&&(n=r,i=v)}M>0&&M<b-x&&(c[l++]=Math.min(k,i),i=Math.max(k,i)),c[l++]=i,h=i}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),o=r[t],a=this.count(),s=new(dG(this._rawCount))(2*Math.ceil(a/i)),l=0,u=0;u<a;u+=i){var h=u,c=o[this.getRawIndex(h)],d=u,p=o[this.getRawIndex(d)],f=i;u+i>a&&(f=a-u);for(var g=0;g<f;g++){var m=o[this.getRawIndex(u+g)];m<c&&(c=m,h=u+g),m>p&&(p=m,d=u+g)}var y=this.getRawIndex(h),v=this.getRawIndex(d);h<d?(s[l++]=y,s[l++]=v):(s[l++]=v,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=i._rawExtent[t]=dj(),c=new(dG(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(a.length=s=u-p);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),c[d++]=y}return i._count=d,i._indices=c,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=dj();if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();r=n;for(var o=r[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&e_(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=eh(this._extent),t._rawExtent=eh(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return dI(t[r],this._dimensions[r])}dR={arrayRows:t,objectRows:function(t,e,n,r){return dI(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return dI(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),dX=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(dY(n)){var o,a,s,l,u,h,c=void 0,d=void 0,p=void 0;if(i){var f=r[0];f.prepareSource(),c=(p=f.getSource()).data,d=p.sourceFormat,e=[f._getVersionSign()]}else d=eL(c=n.get("data",!0))?cd:cl,e=[];var g=this._getSourceMetaRawOption()||{},m=p&&p.metaRawOption||{},y=(o=g.seriesLayoutBy,a=m.seriesLayoutBy,(o??a)||null),v=(s=g.sourceHeader,l=m.sourceHeader,s??l),_=(u=g.dimensions,h=m.dimensions,u??h);t=y!==m.seriesLayoutBy||!!v!=!!m.sourceHeader||_?[c9(c,{seriesLayoutBy:y,sourceHeader:v,dimensions:_},d)]:[]}else if(i){var x=this._applyTransform(r);t=x.sourceList,e=x.upstreamSignList}else t=[c9(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);null!=i&&1!==t.length&&dq("");var o,a=[],s=[];return ey(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||dq(""),a.push(e),s.push(t._getVersionSign())}),r?o=function(t,e,n){var r=oT(t),i=r.length;i||oM("");for(var o=0;o<i;o++)e=function(t,e,n,r){e.length||oM(""),eA(t)||oM("");var i=t.type,o=dE.get(i);o||oM("");var a=ev(e,function(t){return function(t,e){var n=new dD,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==cf&&oM("");var a=[],s={},l=t.dimensionsDefine;if(l)ey(l,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};a.push(r),null!=n&&(ej(s,n)&&oM(""),s[n]=r)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=dg[dx(i,cf)];e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,a,t)},n.getRawData=ew(dL,null,t)),n.cloneRawData=ew(d$,null,t),n.count=ew(dy[dx(i,cf)],null,r,o,a);var c=d_[i];n.retrieveValue=function(t,e){return d(h(r,o,a,t),e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];if(n)return c(t,e,n.name)}};return n.getDimensionInfo=ew(dP,null,a,s),n.cloneAllDimensionInfo=ew(dO,null,a),n}(t,o)});return ev(oT(o.transform({upstream:a[0],upstreamList:a,config:eh(t.config)})),function(t,n){eA(t)||oM(""),t.data||oM(""),dN(de(t.data))||oM("");var r,i=e[0];if(i&&0===n&&!t.dimensions){var o=i.startIndex;o&&(t.data=i.data.slice(0,o).concat(t.data)),r={seriesLayoutBy:cf,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:cf,sourceHeader:0,dimensions:t.dimensions};return c9(t.data,r,null)})}(r[o],e,0,0),o!==i-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:n.componentIndex}):null!=i&&(o=[new c8({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:eh(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];dY(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new dZ).initData(new dd(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(dY(t)){var e=c_(t);return e?[e.getSourceManager()]:[]}return ev(t.get("transform",!0)||t.get("fromTransformResult",!0)?oW(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},oV).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;return dY(r)?(t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function dY(t){return"series"===t.mainType}function dq(t){throw Error(t)}function dQ(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+no(e+"")+"px"}function dK(t,e){var n=t.color||h7.color.tertiary,r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||h7.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+no(r+"")+"px;color:"+no(n)+";font-weight:"+no(i+""),valueStyle:"font-size:"+no(a+"")+"px;color:"+no(o)+";font-weight:"+no(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var dJ=[0,10,20,30],d0=["",`
|
|
36
|
+
`,`
|
|
37
|
+
|
|
38
|
+
`,`
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
`];function d1(t,e){return e.type=t,e}function d2(t){return"section"===t.type}function d5(t,e,n,r){var i,o=e.noHeader,a={html:dJ[i=function t(e){if(d2(e)){var n=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return ey(e.blocks,function(e){var r=t(e);r>=n&&(n=r+ +(i&&(!r||d2(e)&&!e.noHeader)))}),n}return 0}(e)],richText:d0[i]},s=[],l=e.blocks||[];eR(!l||ek(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(ej(h,u)){var c=new dA(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}ey(l,function(n,i){var o=e.valueFormatter,l=(d2(n)?d5:d3)(o?ed(ed({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):d6(r,s.join(""),o?n:a.html);if(o)return d;var p=hR(e.header,"ordinal",t.useUTC),f=dK(r,t.renderMode).nameStyle,g=dQ(r);return"richText"===t.renderMode?d8(t,p,f)+a.richText+d:d6(r,'<div style="'+f+";"+g+';">'+no(p)+"</div>"+d,n)}function d3(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return ev(t=ek(t)?t:[t],function(t,e){return hR(t,ek(b)?b[e]:b,u)})};if(!(o&&a)){var c,d,p,f,g,m,y,v,_=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||h7.color.secondary,i),x=o?"":hR(l,"ordinal",u),b=e.valueType,w=a?[]:h(e.value,e.dataIndex),S=!s||!o,k=!s&&o,M=dK(r,i),C=M.nameStyle,T=M.valueStyle;return"richText"===i?(s?"":_)+(o?"":d8(t,x,C))+(a?"":(c=t,d=w,p=S,f=k,g=[T],p&&g.push({padding:[0,0,0,f?10:20],align:"right"}),c.markupStyleCreator.wrapRichTextStyle(ek(d)?d.join(" "):d,g))):d6(r,(s?"":_)+(o?"":'<span style="'+C+";"+(s?"":"margin-left:2px")+'">'+no(x)+"</span>")+(a?"":(m=w,y=S,v=k,'<span style="'+(y?"float:right;margin-left:"+(v?"10px":"20px"):"")+";"+T+'">'+ev(m=ek(m)?m:[m],function(t){return no(t)}).join(" ")+"</span>")),n)}}function d4(t,e,n,r,i,o){if(t)return(d2(t)?d5:d3)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function d6(t,e,n){return'<div style="margin: '+n+"px 0 0;"+dQ(t)+';">'+e+'<div style="clear:both"></div></div>'}function d8(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function d7(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var d9=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ox()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r,i,o,a,s,l,u="richText"===n?this._generateStyleName():null,h=(a=(o=eC(r={color:e,type:t,renderMode:n,markerId:u})?{color:r,extraCssText:i}:r||{}).color,s=o.type,i=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+no(a)+";"+(i||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+no(a)+";"+(i||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return eC(h)?h:(this.richTextStyles[u]=h.style,h.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};ek(e)?ey(e,function(t){return ed(n,t)}):ed(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}(),pt=oR();function pe(t,e){return t.getName(e)||t.getId(e)}var pn=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t0(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=dM({count:pi,reset:po}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(pt(this).sourceManager=new dX(this)).prepareSource();var r=this.getInitialData(t,n);ps(r,this),this.dataTask.context.data=r,pt(this).dataBeforeProcessed=r,pr(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=h1(this),r=n?h5(t):{},i=this.subType;h4.hasClass(i)&&(i+="Series"),ec(t,e.getTheme().get(this.subType)),ec(t,this.getDefaultOption()),oI(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&h2(t,r,n)},n.prototype.mergeOption=function(t,e){t=ec(this.option,t,!0),this.fillDataTextStyle(t.data);var n=h1(this);n&&h2(this.option,t,n);var r=pt(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);ps(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,pt(this).dataBeforeProcessed=i,pr(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(t){if(t&&!eL(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&oI(t[n],"label",e)},n.prototype.getInitialData=function(t,e){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=pu(this);if(!e)return pt(this).data;var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=pu(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}pt(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return eH(t)},n.prototype.getSourceManager=function(){return pt(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return pt(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.indicesOfNearest=function(t,e,n,r){var i=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==r&&(r=1/0);var l=[],u=1/0,h=-1,c=0;return i.each(e,function(t,e){var n=s-a.dataToCoord(t),i=Math.abs(n);i<=r&&((i<u||i===u&&n>=0&&h<0)&&(u=i,h=n,c=0),n===h&&(l[c++]=e))}),l.length=c,l},n.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),d=ek(c),p=hV(o.getData().getItemVisual(a,"style")[o.visualDrawType]);if(h>1||d&&!h){var f=function(t,e,n,r,i){var o=e.getData(),a=e_(t,function(t,e,n){var r=o.getDimensionInfo(n);return t=t||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(d1("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?ey(r,function(t){h(db(o,n,t),t)}):ey(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);i=e=db(l,a,u[0]),n=g.type}else i=e=d?c[0]:c;var m=oO(o),y=m&&o.name||"",v=l.getName(a),_=s?y:v;return d1("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[d1("nameValue",{markerType:"item",markerColor:p,name:_,noName:!ez(_),value:e,valueType:n,dataIndex:a})].concat(r||[])})}({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(t2.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=cO.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=pe(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=eb(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[pe(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(!(!o||!a)){if("series"===o)i.selectedMap="all";else if("multiple"===o){eA(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l],h=pe(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=pe(t,c);(n={})[h]=!0,i.selectedMap=n,this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return h4.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(h4);function pr(t){var e,n,r,i=t.name;oO(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),r=[],ey(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")||i))}function pi(t){return t.model.getRawData().count()}function po(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),pa}function pa(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ps(t,e){ey(function(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,eS(pl,e))})}function pl(t,e){var n=pu(t);return n&&n.setOutputEnd((e||this).count()),e}function pu(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}eg(pn,dS),eg(pn,cO),oX(pn,h4);var ph=function(){function t(){this.group=new ot,this.uid=ho("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function pc(){var t=oR();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}oZ(ph),oK(ph);var pd=oR(),pp=pc(),pf=function(){function t(){this.group=new ot,this.uid=ho("viewChart"),this.renderTask=dM({plan:py,reset:pv}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&pm(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&pm(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){uR(this.group,t)},t.markUpdateMethod=function(t,e){pd(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function pg(t,e,n){t&&lo(t)&&("emphasis"===e?s1:s2)(t,n)}function pm(t,e,n){var r,i,o=oN(t,e),a=e&&null!=e.highlightKey?(null==(i=sD[r=e.highlightKey])&&sA<=32&&(i=sD[r]=sA++),i):null;null!=o?ey(oT(o),function(e){pg(t.getItemGraphicEl(e),n,a)}):t.eachItemGraphicEl(function(t){pg(t,n,a)})}function py(t){return pp(t.model)}function pv(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&pd(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),p_[l]}oZ(pf,["dispose"]),oK(pf);var p_={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},px="\0__throttleOriginMethod",pb="\0__throttleRate",pw="\0__throttleType";function pS(t,e,n){var r,i,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=new Date().getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(h),f?h=setTimeout(c,p):i>=0?c():h=setTimeout(c,-i),l=r};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function pk(t,e,n,r){var i=t[e];if(i){var o=i[px]||i,a=i[pw];if(i[pb]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=pS(o,n,"debounce"===r))[px]=o,i[pw]=r,i[pb]=n}return i}}function pM(t,e){var n=t[e];n&&n[px]&&(n.clear&&n.clear(),t[e]=n[px])}var pC=oR(),pT={itemStyle:oJ(ht,!0),lineStyle:oJ(u8,!0)},pI={lineStyle:"stroke",itemStyle:"fill"};function pA(t,e){return t.visualStyleMapper||pT[e]||(console.warn("Unknown style type '"+e+"'."),pT.itemStyle)}function pD(t,e){return t.visualDrawType||pI[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var pL=new hr,p$=Math.PI,pP=function(){function t(t,e,n,r){this._stageTaskMap=eH(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount,a=null!=o?Math.ceil(o/i):null;return{step:i,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=eH();t.eachSeries(function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;ey(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{});eR(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}ey(t,function(t,s){if(!(r.visualType&&r.visualType!==t.visualType)){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(t){a(r,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,r.block);d.each(function(t){t.perform(p)}),h.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=eH(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||dM({plan:pz,reset:pB,count:pW}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||dM({reset:pO});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=eH(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,dM({reset:pE,onDirty:pR})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,i._pipe(t,n)}eR(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(h=!1,ey(n.getSeries(),d)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);r.head||(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return eM(t)&&(t={overallReset:t,seriesType:function(t){pH=null;try{t(pG,pj)}catch{}return pH}(t)}),t.uid=ho("stageHandler"),e&&(t.visualType=e),t},t}();function pO(t){t.overallReset(t.ecModel,t.api,t.payload)}function pE(t){return t.overallProgress&&pN}function pN(){this.agent.dirty(),this.getDownstream().dirty()}function pR(){this.agent&&this.agent.dirty()}function pz(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function pB(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=oT(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ev(e,function(t,e){return pV(e)}):pF}var pF=pV(0);function pV(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function pW(t){return t.data.count()}var pH,pG={},pj={};function pU(t,e){for(var n in e.prototype)t[n]=eU}pU(pG,cN),pU(pj,cV),pG.eachSeriesByType=pG.eachRawSeriesByType=function(t){pH=t},pG.eachComponent=function(t){"series"===t.mainType&&t.subType&&(pH=t.subType)};var pZ=h7.darkColor,pX=pZ.background,pY=function(){return{axisLine:{lineStyle:{color:pZ.axisLine}},splitLine:{lineStyle:{color:pZ.axisSplitLine}},splitArea:{areaStyle:{color:[pZ.backgroundTint,pZ.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:pZ.axisMinorSplitLine}},axisLabel:{color:pZ.axisLabel},axisName:{}}},pq={label:{color:pZ.secondary},itemStyle:{borderColor:pZ.borderTint},dividerLineStyle:{color:pZ.border}},pQ={darkMode:!0,color:pZ.theme,backgroundColor:pX,axisPointer:{lineStyle:{color:pZ.border},crossStyle:{color:pZ.borderShade},label:{color:pZ.tertiary}},legend:{textStyle:{color:pZ.secondary},pageTextStyle:{color:pZ.tertiary}},textStyle:{color:pZ.secondary},title:{textStyle:{color:pZ.primary},subtextStyle:{color:pZ.quaternary}},toolbox:{iconStyle:{borderColor:pZ.accent50}},tooltip:{backgroundColor:pZ.neutral20,defaultBorderColor:pZ.border,textStyle:{color:pZ.tertiary}},dataZoom:{borderColor:pZ.accent10,textStyle:{color:pZ.tertiary},brushStyle:{color:pZ.backgroundTint},handleStyle:{color:pZ.neutral00,borderColor:pZ.accent20},moveHandleStyle:{color:pZ.accent40},emphasis:{handleStyle:{borderColor:pZ.accent50}},dataBackground:{lineStyle:{color:pZ.accent30},areaStyle:{color:pZ.accent20}},selectedDataBackground:{lineStyle:{color:pZ.accent50},areaStyle:{color:pZ.accent30}}},visualMap:{textStyle:{color:pZ.secondary},handleStyle:{borderColor:pZ.neutral30}},timeline:{lineStyle:{color:pZ.accent10},label:{color:pZ.tertiary},controlStyle:{color:pZ.accent30,borderColor:pZ.accent30}},calendar:{itemStyle:{color:pZ.neutral00,borderColor:pZ.neutral20},dayLabel:{color:pZ.tertiary},monthLabel:{color:pZ.secondary},yearLabel:{color:pZ.secondary}},matrix:{x:pq,y:pq,backgroundColor:{borderColor:pZ.axisLine},body:{itemStyle:{borderColor:pZ.borderTint}}},timeAxis:pY(),logAxis:pY(),valueAxis:pY(),categoryAxis:pY(),line:{symbol:"circle"},graph:{color:pZ.theme},gauge:{title:{color:pZ.secondary},axisLine:{lineStyle:{color:[[1,pZ.neutral05]]}},axisLabel:{color:pZ.axisLabel},detail:{color:pZ.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:pZ.background}},radar:((fH=pY()).axisName={color:pZ.axisLabel},fH.axisLine.lineStyle.color=pZ.neutral20,fH),treemap:{breadcrumb:{itemStyle:{color:pZ.neutral20,textStyle:{color:pZ.secondary}},emphasis:{itemStyle:{color:pZ.neutral30}}}},sunburst:{itemStyle:{borderColor:pZ.background}},map:{itemStyle:{borderColor:pZ.border,areaColor:pZ.neutral10},label:{color:pZ.tertiary},emphasis:{label:{color:pZ.primary},itemStyle:{areaColor:pZ.highlight}},select:{label:{color:pZ.primary},itemStyle:{areaColor:pZ.highlight}}},geo:{itemStyle:{borderColor:pZ.border,areaColor:pZ.neutral10},emphasis:{label:{color:pZ.primary},itemStyle:{areaColor:pZ.highlight}},select:{label:{color:pZ.primary},itemStyle:{color:pZ.highlight}}}};pQ.categoryAxis.splitLine.show=!1;var pK=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(eC(t)){var i=oU(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};ey(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=i.lastIndexOf(u);if(h>0&&h===i.length-u.length){var c=i.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),pJ=["symbol","symbolSize","symbolRotate","symbolOffset"],p0=pJ.concat(["symbolKeepAspect"]);function p1(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=oN(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:ek(u)?l.getName(u[0]):l.getName(u),selected:eC(r)?r:ed({},r)})}})}function p2(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var p5=Math.round(9*Math.random()),p3="function"==typeof Object.defineProperty,p4=function(){function t(){this._id="__ec_inner_"+p5++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return p3?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),p6=a7.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),p8=a7.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),p7=a7.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*p,l+s+d*p,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-h+c*p,l+s+d*p,n-h,l+s),t.closePath()}}),p9=a7.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),ft={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},fe={};ey({line:lQ,rect:sh,roundRect:sh,square:sh,circle:lC,diamond:p8,pin:p7,arrow:p9,triangle:p6},function(t,e){fe[e]=new t});var fn=a7.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=i0(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=fe[r];i||(i=fe[r="rect"]),ft[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function fr(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||h7.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function fi(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?uk(t.slice(8),new nz(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?uS(t.slice(7),{},new nz(e,n,r,i),a?"center":"cover"):new fn({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=fr,o&&s.setColor(o),s}function fo(t,e){if(null!=t){var n,r;return ek(t)||(t=[t,t]),[ou(t[0],e[0])||0,ou((n=t[1],r=t[0],n??r),e[1])||0]}}function fa(t){return isFinite(t)}function fs(t,e,n){for(var r,i,o,a,s,l,u,h,c,d,p="radial"===e.type?(o=Math.min(r=n.width,i=n.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=fa(a)?a:.5,s=fa(s)?s:.5,l=l>=0&&fa(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,c=null==e.y?0:e.y,d=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,h=h*n.width+n.x,c=c*n.height+n.y,d=d*n.height+n.y),u=fa(u)?u:0,h=fa(h)?h:1,c=fa(c)?c:0,d=fa(d)?d:0,t.createLinearGradient(u,c,h,d)),f=e.colorStops,g=0;g<f.length;g++)p.addColorStop(f[g].offset,f[g].color);return p}function fl(t){return parseInt(t,10)}function fu(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||fl(s[r])||fl(t.style[r]))-(fl(s[o])||0)-(fl(s[a])||0)|0}function fh(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:eI(e)?[e]:ek(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=ev(i,function(t){return t/a}),o/=a)}return[i,o]}var fc=new aX(!0);function fd(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function fp(t){return"string"==typeof t&&"none"!==t}function ff(t){var e=t.fill;return null!=e&&"none"!==e}function fg(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function fm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function fy(t,e,n){var r=o5(e.image,e.__image,n);if(o4(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*eZ),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var fv=["shadowBlur","shadowOffsetX","shadowOffsetY"],f_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fx(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){fS(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ad.opacity:a}(r||e.blend!==n.blend)&&(o||(fS(t,i),o=!0),t.globalCompositeOperation=e.blend||ad.blend);for(var s=0;s<fv.length;s++){var l=fv[s];(r||e[l]!==n[l])&&(o||(fS(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(fS(t,i),o=!0),t.shadowColor=e.shadowColor||ad.shadowColor),o}function fb(t,e,n,r,i){var o=fk(e,i.inHover),a=r?null:n&&fk(n,i.inHover)||{};if(o===a)return!1;var s=fx(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(fS(t,i),s=!0),fp(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(fS(t,i),s=!0),fp(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(fS(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(fS(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<f_.length;u++){var h=f_[u],c=h[0];(r||o[c]!==a[c])&&(s||(fS(t,i),s=!0),t[c]=o[c]||h[1])}return s}function fw(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function fS(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function fk(t,e){return e&&t.__hoverStyle||t.style}var fM=new p4,fC=new r$(100),fT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fI(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&fM.delete(t);var o=fM.get(t);if(o)return o;var a=ep(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[n],o=!0,s=0;s<fT.length;++s){var l=a[fT[s]];if(null!=l&&!ek(l)&&!eC(l)&&!eI(l)&&"boolean"!=typeof l){o=!1;break}e.push(l)}if(o){h=e.join(",")+(i?"-svg":"");var u=fC.get(h);u&&(i?t.svgElement=u:t.image=u)}var h,c,d=function t(e){if(!e||0===e.length)return[[0,0]];if(eI(e)){var n=Math.ceil(e);return[[n,n]]}for(var r=!0,i=0;i<e.length;++i)if(!eI(e[i])){r=!1;break}if(r)return t([e]);for(var o=[],i=0;i<e.length;++i)if(eI(e[i])){var n=Math.ceil(e[i]);o.push([n,n])}else{var n=ev(e[i],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(eI(t)){var e=Math.ceil(t);return[e,e]}var n=ev(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(eC(e))return[[e]];for(var n=!0,r=0;r<e.length;++r)if(!eC(e[r])){n=!1;break}if(n)return t([e]);for(var i=[],r=0;r<e.length;++r)eC(e[r])?i.push([e[r]]):i.push(e[r]);return i}(a.symbol),g=ev(d,function(t){return fA(t)}),m=fA(p),y=!i&&t6.createCanvas(),v=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=ob(t,g[e]);for(var r=1,e=0,n=f.length;e<n;++e)r=ob(r,f[e].length);t*=r;var i=m*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();y&&(y.width=_.width*n,y.height=_.height*n,c=y.getContext("2d")),function(){c&&(c.clearRect(0,0,y.width,y.height),a.backgroundColor&&(c.fillStyle=a.backgroundColor,c.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var o=-m,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var h=l/2%f.length,g=0,x=0,b=0;g<2*_.width;){for(var w=0,e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2==0){var S=(1-a.symbolSize)*.5,k=g+d[u][x]*S,M=o+p[s]*S,C=d[u][x]*a.symbolSize,T=p[s]*a.symbolSize,I=b/2%f[h].length;!function(t,e,o,s,l){var u=i?1:n,h=fi(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(h);d&&v.children.push(d)}else!function t(e,n,r,i){var o,a,s,l,u,h=n.transform;if(!n.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){n.__dirty&=-2,n.__isRendered=!1;return}var c=n.__clipPaths,d=r.prevElClipPaths,p=!1,f=!1;if((!d||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(c,d))&&(d&&d.length&&(fS(e,r),e.restore(),f=p=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),c&&c.length&&(fS(e,r),e.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),fw(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(c,e,r),p=!0),r.prevElClipPaths=c),r.allClipped){n.__isRendered=!1;return}n.beforeBrush&&n.beforeBrush(),n.innerBeforeBrush();var g=r.prevEl;g||(f=p=!0);var m=n instanceof a7&&n.autoBatch&&(a=ff(o=n.style),s=fd(o),!(o.lineDash||!(+a^+s)||a&&"string"!=typeof o.fill||s&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1));p||(l=g.transform,h&&l?h[0]!==l[0]||h[1]!==l[1]||h[2]!==l[2]||h[3]!==l[3]||h[4]!==l[4]||h[5]!==l[5]:!(!h&&!l))?(fS(e,r),fw(e,n)):m||fS(e,r);var y=fk(n,r.inHover);n instanceof a7?(1!==r.lastDrawType&&(f=!0,r.lastDrawType=1),fb(e,n,g,f,r),m&&(r.batchFill||r.batchStroke)||e.beginPath(),function(t,e,n,r){var i,o,a,s=fd(n),l=ff(n),u=n.strokePercent,h=u<1,c=!e.path;(!e.silent||h)&&c&&e.createPathProxy();var d=e.path||fc,p=e.__dirty;if(!r){var f=n.fill,g=n.stroke,m=l&&!!f.colorStops,y=s&&!!g.colorStops,v=l&&!!f.image,_=s&&!!g.image,x=void 0,b=void 0,w=void 0,S=void 0,k=void 0;(m||y)&&(k=e.getBoundingRect()),m&&(x=p?fs(t,f,k):e.__canvasFillGradient,e.__canvasFillGradient=x),y&&(b=p?fs(t,g,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(w=p||!e.__canvasFillPattern?fy(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=w),_&&(S=p||!e.__canvasStrokePattern?fy(t,g,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),m?t.fillStyle=x:v&&(w?t.fillStyle=w:l=!1),y?t.strokeStyle=b:_&&(S?t.strokeStyle=S:s=!1)}var M=e.getGlobalScale();d.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=(a=fh(e))[0],o=a[1]);var C=!0;(c||4&p)&&(d.setDPR(t.dpr),h?d.setContext(null):(d.setContext(t),C=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),C&&d.rebuildPath(t,h?u:1),i&&(t.setLineDash(i),t.lineDashOffset=o),r||(n.strokeFirst?(s&&fm(t,n),l&&fg(t,n)):(l&&fg(t,n),s&&fm(t,n))),i&&t.setLineDash([])}(e,n,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):n instanceof st?(3!==r.lastDrawType&&(f=!0,r.lastDrawType=3),fb(e,n,g,f,r),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||t3,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=fh(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(fd(n)&&t.strokeText(i,n.x,n.y),ff(n)&&t.fillText(i,n.x,n.y)):(ff(n)&&t.fillText(i,n.x,n.y),fd(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(e,n,y)):n instanceof sr?(2!==r.lastDrawType&&(f=!0,r.lastDrawType=2),u=f,fx(e,fk(n,r.inHover),g&&fk(g,r.inHover),u,r),function(t,e,n){var r=e.__image=o5(n.image,e.__image,e,e.onload);if(!(!r||!o4(r))){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(r,u,h,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,d=s-h;t.drawImage(r,u,h,c,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(e,n,y)):n.getTemporalDisplayables&&(4!==r.lastDrawType&&(f=!0,r.lastDrawType=4),function(e,n,r){var i=n.getDisplayables(),o=n.getTemporalDisplayables();e.save();var a,s,l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(a=n.getCursor(),s=i.length;a<s;a++){var u=i[a];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),t(e,u,l,a===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}for(var h=0,c=o.length;h<c;h++){var u=o[h];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),t(e,u,l,h===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}n.clearTemporalDisplayables(),n.notClear=!0,e.restore()}(e,n,r)),m&&i&&fS(e,r),n.innerAfterBrush(),n.afterBrush&&n.afterBrush(),r.prevEl=n,n.__dirty=0,n.__isRendered=!0}(c,h,{inHover:!1,viewWidth:0,viewHeight:0},!0)}(k,M,C,T,f[h][I])}g+=d[u][x],++b,++x===d[u].length&&(x=0)}++u===d.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}}(),o&&fC.put(h,y||v),t.image=y,t.svgElement=v,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,fM.set(t,s),t.dirty=!1,s}function fA(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var fD=new e4,fL={},f$="__flagInMainProcess",fP="__mainProcessVersion",fO="__pendingUpdate",fE="__needsUpdateStatus",fN=/^[a-zA-Z0-9_]+$/,fR="__connectUpdateStatus";function fz(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void this.id:fF(this,t,e)}}function fB(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return fF(this,t,e)}}function fF(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),e4.prototype[e].apply(t,n)}var fV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e}(e4),fW=fV.prototype;fW.on=fB("on"),fW.off=fB("off");var fH,fG,fj,fU,fZ,fX,fY,fq,fQ,fK,fJ,f0,f1,f2,f5,f3,f4,f6,f8,f7,f9=function(t){function e(e,n,r){var i,o=t.call(this,new pK)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},o._dom=e,o[fP]=1,r.ssr&&(cD=function(t){var e=sT(t),n=e.dataIndex;if(null!=n){var r=eH();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}});var a=o._zr=oi(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:(i=r.useDirtyRect,i??!1),useCoarsePointer:r.useCoarsePointer??"auto",pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=pS(ew(a.flush,a),17),o._updateTheme(n),o._locale=function(t){if(!eC(t))return ec(eh(t),eh(hs.EN),!1);var e=hs[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?eh(e):ec(eh(e),eh(hs.EN),!1)}(r.locale||hu),o._coordSysMgr=new hj;var s=o._api=f3(o);function l(t,e){return t.__prio-e.__prio}return n2(gs,l),n2(go,l),o._scheduler=new pP(o,s,go,gs),o._messageCenter=new fV,o._initEvents(),o.resize=ew(o.resize,o),a.animation.on("frame",o._onframe,o),fJ(a,o),f0(a,o),o[eB]=!0,o}return t0(e,t),e.prototype._onframe=function(){if(!this._disposed){f8(this);var t=this._scheduler;if(this[fO]){var e=this[fO].silent;this[f$]=!0,f7(this);try{fG(this),fZ.update.call(this,null,this[fO].updateParams)}catch(t){throw this[f$]=!1,this[fO]=null,t}this._zr.flush(),this[f$]=!1,this[fO]=null,fQ.call(this,e),fK.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),fY(this,r),t.performVisualTasks(r),f5(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[f$]){if(this._disposed)return void this.id;if(eA(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[f$]=!0,f7(this),!this._model||e){var r,i,o,a=new cH(this._api),s=this._theme,l=this._model=new cN;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},ga);var u={seriesTransition:o,optionChanged:!0};if(n)this[fO]={silent:r,updateParams:u},this[f$]=!1,this.getZr().wakeUp();else{try{fG(this),fZ.update.call(this,null,u)}catch(t){throw this[fO]=null,this[f$]=!1,t}this._ssr||this._zr.flush(),this[fO]=null,this[f$]=!1,fQ.call(this,r),fK.call(this,r)}}},e.prototype.setTheme=function(t,e){if(!this[f$]){if(this._disposed)return void this.id;var n=this._model;if(n){var r=e&&e.silent,i=null;this[fO]&&(null==r&&(r=this[fO].silent),i=this[fO].updateParams,this[fO]=null),this[f$]=!0,f7(this);try{this._updateTheme(t),n.setTheme(this._theme),fG(this),fZ.update.call(this,{type:"setTheme"},i)}catch(t){throw this[f$]=!1,t}this[f$]=!1,fQ.call(this,r),fK.call(this,r)}}},e.prototype._updateTheme=function(t){eC(t)&&(t=gl[t]),t&&((t=eh(t))&&c6(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||t2.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return ey(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;ey(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ey(r,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(!gc[n])return this.getDataURL(t);var a=o,s=o,l=-o,u=-o,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();ey(gh,function(o,c){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(eh(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),h.push({dom:d,left:p.left,top:p.top})}}),a*=c,s*=c,l*=c,u*=c;var d=l-a,p=u-s,f=t6.createCanvas(),g=oi(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),!e)return t.connectedBackgroundColor&&g.add(new sh({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),ey(h,function(t){var e=new sr({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"));var m="";return ey(h,function(t){var e=t.left-a,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,n){return fX(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return fX(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return fX(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void this.id:(ey(oB(this._model,t),function(t,r){r.indexOf("Models")>=0&&ey(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=oB(this._model,t,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(r,i,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;ey(ge,function(t){var e=function(e){var r,i=n.getModel(),o=e.target;if("globalout"===t?r={}:o&&p2(o,function(t){var e=sT(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=ed({},e.eventData),!0},!0),r){var a=r.componentType,s=r.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=r.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];r.event=e,r.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:l,view:u},n.trigger(t,r)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)});var r=this._messageCenter;ey(gi,function(t,e){r.on(e,function(t){n.trigger(e,t)})}),t=this,e=this._api,r.on("selectchanged",function(n){var r=e.getModel();n.isFromClick?(p1("map","selectchanged",t,r,n),p1("pie","selectchanged",t,r,n)):"select"===n.fromAction?(p1("map","selected",t,r,n),p1("pie","selected",t,r,n)):"unselect"===n.fromAction&&(p1("map","unselected",t,r,n),p1("pie","unselected",t,r,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed)return void this.id;this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&oH(this.getDom(),gp,"");var t=this._api,e=this._model;ey(this._componentsViews,function(n){n.dispose(e,t)}),ey(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete gh[this.id]},e.prototype.resize=function(t){if(!this[f$]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[fO]&&(null==r&&(r=this[fO].silent),n=!0,this[fO]=null),this[f$]=!0,f7(this);try{n&&fG(this),fZ.update.call(this,{type:"resize",animation:ed({duration:0},t&&t.animation)})}catch(t){throw this[f$]=!1,t}this[f$]=!1,fQ.call(this,r),fK.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(eA(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),gu[t]){var n=gu[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){if(this._disposed)return void this.id;this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var e=ed({},t);return e.type=gr[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if(eA(e)||(e={silent:!!e}),gn[t.type]&&this._model){if(this[f$])return void this._pendingActions.push(t);var n=e.silent;fq.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&t2.browser.weChat&&this._throttledZrFlush(),fQ.call(this,n),fK.call(this,n)}},e.prototype.updateLabelLayout=function(){fD.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"===i||"blur"===i||"select"===i||e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=uW(t);e.eachRendered(function(t){return uH(t,n.z,n.zlevel),!0})}}function r(t,e){e.eachRendered(function(t){if(!up(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function i(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!up(t)){if(t instanceof a7&&((n=sL(t)).normalFill=t.style.fill,n.normalStroke=t.style.stroke,n.selectFill=(r=t.states.select||{}).style&&r.style.fill||null,n.selectStroke=r.style&&r.style.stroke||null),t.__dirty){var n,r,o=t.prevStates;o&&t.useStates(o)}if(i){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}fG=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),fj(t,!0),fj(t,!1),e.plan()},fj=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!l&&o[u];if(!h){var c=oU(t.type);(h=new(e?ph.getClass(c.main,c.sub):pf.getClass(c.sub))).init(n,s),o[u]=h,i.push(h),a.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(h,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(var l=0;l<i.length;){var h=i[l];h.__alive?l++:(e||h.renderTask.dispose(),a.remove(h.group),h.dispose(n,s),i.splice(l,1),o[h.__id]===h&&delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}},fU=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),!r)return void ey([].concat(t._componentsViews).concat(t._chartsViews),h);var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;function h(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}null!=u&&(l=eH(),ey(oT(u),function(t){var e=oP(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!(l&&null!=l.get(e.id)))if(ls(n))if(e instanceof pn)n.type!==sE||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=oN(i,e);o=(ek(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=sT(a);s4(r,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&s4(r,h,c,n)}}}(e,n,t._api);else{var r=s8(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===sE&&i&&!n.notBlur&&s6(e.mainType,e.componentIndex,t._api),o&&ey(o,function(t){n.type===sE?s1(t):s2(t)})}else la(n)&&e instanceof pn&&(function(t,e,n){if(la(e)){var r=e.dataType,i=oN(t.getData(r),e);ek(i)||(i=[i]),t[e.type===sB?"toggleSelect":e.type===sR?"select":"unselect"](i,r)}}(e,n,t._api),s7(e),f6(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)},fZ={prepareAndUpdate:function(t){fG(this),fZ.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),fY(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e);var l=r.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=r.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),f1(this,r,i,e,n),fD.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=eH();r.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),f5(this,r,i,e,{},a),fD.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),pf.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),f1(this,n,this._api,e,{}),fD.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(t){t.getData().clearAllVisual()}),pf.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),fD.trigger("afterupdate",r,this._api))},updateLayout:function(t){fZ.update.call(this,t)}},fX=function(t,e,n,r,i){if(t._disposed)return void t.id;for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=oB(a,n),u=0;u<s.length;u++){var h=s[u];if(h[e]&&null!=(o=h[e](a,l,r,i)))return o}},fY=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},fq=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=gn[i],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&oU(s[0]);this[f$]=!0,f7(this);var h=[t],c=!1;t.batch&&(c=!0,h=ev(t.batch,function(e){return(e=ep(ed({},e),t)).batch=null,e}));var d,p=[],f=[],g=a.nonRefinedEventType,m=la(t),y=ls(t);if(y&&s3(this._api),ey(h,function(e){var i=a.action(e,r,n._api);if(a.refineEvent?f.push(i):d=i,(d=d||ed({},e)).type=g,p.push(d),y){var o=oF(t),s=o.queryOptionMap;fU(n,l,e,o.mainTypeSpecified?s.keys()[0]:"series"),f6(n)}else m?(fU(n,l,e,"series"),f6(n)):u&&fU(n,l,e,u.main,u.sub)}),"none"!==l&&!y&&!m&&!u)try{this[fO]?(fG(this),fZ.update.call(this,t),this[fO]=null):fZ[l].call(this,t)}catch(t){throw this[f$]=!1,t}if(d=c?{type:g,escapeConnect:o,batch:p}:p[0],this[f$]=!1,!e){var v=void 0;if(a.refineEvent){var _=a.refineEvent(f,t,r,this._api).eventContent;eR(eA(_)),(v=ep({type:a.refinedEventType},_)).fromAction=t.type,v.fromActionPayload=t,v.escapeConnect=!0}var x=this._messageCenter;x.trigger(d.type,d),v&&x.trigger(v.type,v)}},fQ=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();fq.call(this,n,t)}},fK=function(t){t||this.trigger("updated")},fJ=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[fO]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},f0=function(t,e){t.on("mouseover",function(t){var n,r,i,o,a,s=p2(t.target,lo);s&&(n=e._api,o=(i=s8((r=sT(s)).componentMainType,r.componentIndex,r.componentHighDownName,n)).dispatchers,a=i.focusSelf,o?(a&&s6(r.componentMainType,r.componentIndex,n),ey(o,function(e){return sJ(e,t)})):(s4(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&s6(r.componentMainType,r.componentIndex,n),sJ(s,t)),f6(e))}).on("mouseout",function(t){var n,r,i,o=p2(t.target,lo);o&&(s3(n=e._api),(i=s8((r=sT(o)).componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers)?ey(i,function(e){return s0(e,t)}):s0(o,t),f6(e))}).on("click",function(t){var n=p2(t.target,function(t){return null!=sT(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=sT(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},f1=function(t,e,n,r,i){(function(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);n2(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),ey(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}})(e),f2(t,e,n,r,i),ey(t._chartsViews,function(t){t.__alive=!1}),f5(t,e,n,r,i),ey(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},f2=function(t,e,o,a,s,l){ey(l||t._componentsViews,function(t){var s=t.__model;r(s,t),t.render(s,e,o,a),n(s,t),i(s,t)})},f5=function(t,e,o,a,s,l){var u,h,c,d,p=t._scheduler;s=ed(s||{},{updatedSeries:e.getSeries()}),fD.trigger("series:beforeupdate",e,o,s);var f=!1;e.eachSeries(function(e){var n,i,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var u=s.renderTask;p.updatePayload(u,a),r(e,s),l&&l.get(e.uid)&&u.dirty(),u.perform(p.getPerformArgs(u))&&(f=!0),s.group.silent=!!e.get("silent"),n=e,i=s,o=n.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),s7(e)}),p.unfinished=f||p.unfinished,fD.trigger("series:layoutlabels",e,o,s),fD.trigger("series:transition",e,o,s),e.eachSeries(function(e){var r=t._chartsMap[e.__viewId];n(e,r),i(e,r)}),u=t,h=e,c=u._zr.storage,d=0,c.traverse(function(t){t.isGroup||d++}),!(d>h.get("hoverLayerThreshold"))||t2.node||t2.worker||h.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=u._chartsMap[t.__viewId];e.__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}}),fD.trigger("series:afterupdate",e,o,s)},f6=function(t){t[fE]=!0,t.getZr().wakeUp()},f7=function(t){t[fP]=(t[fP]+1)%1e3},f8=function(t){t[fE]&&(t.getZr().storage.traverse(function(t){up(t)||e(t)}),t[fE]=!1)},f3=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t0(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){s1(e,n),f6(t)},n.prototype.leaveEmphasis=function(e,n){s2(e,n),f6(t)},n.prototype.enterBlur=function(e){sY(e,sj),f6(t)},n.prototype.leaveBlur=function(e){sY(e,sU),f6(t)},n.prototype.enterSelect=function(e){sY(e,sZ),f6(t)},n.prototype.leaveSelect=function(e){sY(e,sX),f6(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[fP]},n}(cV))(t)},f4=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][fR]=e}ey(gr,function(n,r){t._messageCenter.on(r,function(n){if(gc[t.group]&&0!==t[fR]&&(!n||!n.escapeConnect)){var r=t.makeActionFromEvent(n),i=[];ey(gh,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,0),ey(i,function(t){1!==t[fR]&&t.dispatchAction(r)}),e(i,2)}})})}}(),e}(e4),gt=f9.prototype;gt.on=fz("on"),gt.off=fz("off"),gt.one=function(t,e,n){var r=this;this.on.call(this,t,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)},n)};var ge=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],gn={},gr={},gi={},go=[],ga=[],gs=[],gl={},gu={},gh={},gc={},gd=+new Date-0,gp="_echarts_instance_";function gf(t){0>ef(ga,t)&&ga.push(t)}function gg(t,e){gx(go,t,e,2e3)}function gm(t,e){fD.on(t,e)}function gy(t,e,n){function r(t){return t.toLowerCase()}eM(e)&&(n=e,e=""),eA(t)?(i=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,l=e);var i,o,a,s,l=r(l||i),u=o?r(i):l;gn[i]||(eR(fN.test(i)&&fN.test(l)),o&&eR(l!==i),gn[i]={actionType:i,refinedEventType:l,nonRefinedEventType:u,update:a,action:n,refineEvent:o},gi[l]=1,o&&s&&(gi[u]=1),gr[u]=i)}function gv(t,e){gx(gs,t,e,3e3,"visual")}var g_=[];function gx(t,e,n,r,i){if((eM(e)||eA(e))&&(n=e,e=r),!(ef(g_,n)>=0)){g_.push(n);var o=pP.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function gb(t,e,n,r){var i;return{eventContent:{selected:(i=[],n.eachSeries(function(t){ey(t.getAllData(),function(e){e.data;var n=e.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),i.push(o)}})}),i),isFromClick:e.isFromClick||!1}}}function gw(t){return null==t?0:t.length||1}function gS(t){return t}gv(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=pA(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=pD(t,r),l=o[s],u=eM(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||eM(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||eM(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=ed({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}}),gv(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=pA(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){pL.option=n[r];var a=i(pL);ed(t.ensureUniqueItemVisual(e,"style"),a),pL.option.decal&&(t.setItemVisual(e,"decal",pL.option.decal),pL.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),gv(4500,{performRawSeries:!0,overallReset:function(t){var e=eH();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),pC(t).scope=i}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),r={},i=e.getData(),o=pC(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=pD(e,a);i.each(function(t){r[i.getRawIndex(t)]=t}),n.each(function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}}),gv(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<pJ.length;a++){var s=pJ[a],l=t.get(s);eM(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(ed({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=eb(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}}),gv(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(!t.hasSymbolVisual||e.isSeriesFiltered(t)))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<p0.length;r++){var i=p0[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}}),gv(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=fI(n,e))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=fI(i,e))}})}),gf(c6),gg(900,function(t){var e=eH();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;r.push(o)}}),e.each(function(t){var e;0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),ey(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),ey(e=t,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,d,p=a.get(t.stackedDimension,h);if(isNaN(p))return i;s?d=a.getRawIndex(h):c=a.get(t.stackedByDimension,h);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=function(t,e){var n=Math.max(od(t),od(e)),r=t+e;return n>20?r:oc(r,n)}(p,y),f=y;break}}}return r[0]=p,r[1]=f,r})}))})}),gu.default=function(t,e){ep(e=e||{},{text:"loading",textColor:h7.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:h7.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new ot,i=new sh({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var o=new sf({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new sh({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(a),e.showSpinner&&((n=new l5({shape:{startAngle:-p$/2,endAngle:-p$/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*p$/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*p$/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&r?10:0)-r)/2-(e.showSpinner&&r?0:5+r/2)+(e.showSpinner?0:r/2)+(r?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r},gy({type:sE,event:sE,update:sE},eU),gy({type:sN,event:sN,update:sN},eU),gy({type:sR,event:sF,update:sR,action:eU,refineEvent:gb,publishNonRefinedEvent:!0}),gy({type:sz,event:sF,update:sz,action:eU,refineEvent:gb,publishNonRefinedEvent:!0}),gy({type:sB,event:sF,update:sB,action:eU,refineEvent:gb,publishNonRefinedEvent:!0}),gl.default={},gl.dark=pQ;var gk=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||gS,this._newKeyGetter=r||gS,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=Array(t.length),i=Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=gw(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],h=gw(l),c=gw(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),r[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=gw(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=gw(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),gM=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function gC(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var gT=function(t){this.otherDims={},null!=t&&ed(this,t)},gI=oR(),gA={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gD=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=gP(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return this._dimNameMap.get(t)??-1},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=di(this.source),n=!(t>30),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=gA[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gL(t){return t instanceof gD}function g$(t){for(var e=eH(),n=0;n<(t||[]).length;n++){var r=t[n],i=eA(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function gP(t){var e=gI(t);return e.dimNameMap||(e.dimNameMap=g$(t.dimensionsDefine))}var gO,gE,gN,gR,gz,gB,gF,gV=eA,gW=typeof Int32Array>"u"?Array:Int32Array,gH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gG=["_approximateExtent"],gj=function(){function t(t,e){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 n,r=!1;gL(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=eC(h)?new gT({name:h}):h instanceof gT?h:new gT(h),d=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=d,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(d),i[d]=c,null!=l[d]&&(s=!0),c.createInvertedIndices&&(a[d]=[]);var f=u;eI(c.storeDimIndex)&&(f=c.storeDimIndex),0===p.itemName&&(this._nameDimIdx=f),0===p.itemId&&(this._idDimIdx=f),r&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=eH();ey(o,function(t){g.set(i[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);if(r)return r.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(eI(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i,o,a,s,l,u,h,c,d,p,f,g,m=this;if(t instanceof dZ&&(g=t),!g){var y=this.dimensions,v=c7(t)||em(t)?new dd(t,y.length):t;g=new dZ;var _=ev(y,function(t){return{type:m._dimInfos[t].type,property:t}});g.initData(v,_,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(r=this,i=this._schema,a=(o={}).encode={},s=eH(),l=[],u=[],h={},ey(r.dimensions,function(t){var e=r.getDimensionInfo(t),n=e.coordDim;if(n){var i,o=e.coordDimIndex;gC(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(i=e.type)&&"time"!==i&&(l[0]=t),gC(h,n)[o]=r.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}cs.each(function(t,n){var r=gC(a,n),i=e.otherDims[n];null!=i&&!1!==i&&(r[i]=e.name)})}),c=[],d={},s.each(function(t,e){var n=a[e];d[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=ev(c,function(t){return r.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=d,(p=a.label)&&p.length&&(l=p.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new gM(h,i),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&gF(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==cd&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===cl&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);if(!(!this.hasItemOption&&eA(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==r[a]&&null!=u&&(r[a]=oP(u,null));var h=l.id;null==i[a]&&null!=h&&(i[a]=oP(h,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)gF(this,a);gO(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){gV(t)?ed(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=gN(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return gE(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return ek(t)?r.getValues(ev(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n&&n[e];return null==r||isNaN(r)?-1:r},t.prototype.each=function(t,e,n){eM(t)&&(n=e,e=t,t=[]);var r=n||this,i=ev(gR(t),this._getStoreDimIndex,this);this._store.each(i,r?ew(e,r):e)},t.prototype.filterSelf=function(t,e,n){eM(t)&&(n=e,e=t,t=[]);var r=n||this,i=ev(gR(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?ew(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return ey(eb(t),function(r){n[e._getStoreDimIndex(r)]=t[r]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){eM(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=ev(gR(t),this._getStoreDimIndex,this),a=gB(this);return a._store=this._store.map(o,i?ew(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=ev(gR(t),this._getStoreDimIndex,this);this._store.modify(o,i?ew(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=gB(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=gB(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=gB(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new hr(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new gk(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return gE(t,e)},function(t){return gE(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},gV(t)?ed(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t];return(n&&n[e])??this.getVisual(e)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(ek(i=this.getVisual(e))?i=i.slice():gV(i)&&(i=ed({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,gV(e)?ed(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){gV(t)?ed(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?ed(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){sI(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){ey(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ev(this.dimensions,this._getDimInfo,this),this.hostModel)),gz(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];eM(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(eE(arguments)))})},t.internalField=void(gO=function(t){var e=t._invertedIndicesMap;ey(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new gW(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},gN=function(t,e,n){return oP(t._getCategory(e,n),null)},gE=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=gN(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},gR=function(t){return ek(t)||(t=null!=t?[t]:[]),t},gB=function(e){var n=new t(e._schema?e._schema:ev(e.dimensions,e._getDimInfo,e),e.hostModel);return gz(n,e),n},gz=function(t,e){ey(gH.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,ey(gG,function(n){t[n]=eh(e[n])}),t._calculationInfo=ed({},e._calculationInfo)},gF=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=gN(t,i,e)),null==s&&null!=o&&(r[e]=s=gN(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}),t}();function gU(t,e){c7(t)||(t=dt(t));var n,r,i,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=eH(),h=[],c=(n=t,r=s,i=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,r.length,i.length,o||0),ey(r,function(t){var e;eA(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),d=e.canOmitUnusedDimensions&&c>30,p=l===t.dimensionsDefine,f=p?gP(t):g$(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,c));for(var m=eH(g),y=new dV(c),v=0;v<y.length;v++)y[v]=-1;function _(t){var e=y[t];if(e<0){var n=l[t],r=eA(n)?n:{name:n},i=new gT,o=r.name;null!=o&&null!=f.get(o)&&(i.name=i.displayName=o),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var a=h.length;return y[t]=a,i.storeDimIndex=t,h.push(i),i}return h[e]}if(!d)for(var v=0;v<c;v++)_(v);m.each(function(t,e){var n=oT(t).slice();if(1===n.length&&!eC(n[0])&&n[0]<0)return void m.set(e,!1);var r=m.set(e,[]);ey(n,function(t,n){var i=eC(t)?f.get(t):t;null!=i&&i<c&&(r[n]=i,b(_(i),e,n))})});var x=0;function b(t,e,n){null!=cs.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}ey(s,function(t){if(eC(t))i=t,r={};else{var e,n,r,i=(r=t).name,o=r.ordinalMeta;r.ordinalMeta=null,(r=ed({},r)).ordinalMeta=o,e=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var a=m.get(i);if(!1!==a){if(!(a=oT(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;x<c&&null!=_(x).coordDim;)x++;x<c&&a.push(x++)}ey(a,function(t,o){var a=_(t);if(p&&null!=r.type&&(a.type=r.type),b(ep(a,r),i,o),null==a.name&&e){var s=e[o];eA(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}n&&ep(a.otherDims,n)})}});var w=e.generateCoord,S=e.generateCoordCount,k=null!=S;S=w?S||1:0;var M=w||"value";function C(t){null==t.name&&(t.name=t.coordDim)}if(d)ey(h,function(t){C(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;T<c;T++){var I=_(T);null==I.coordDim&&(I.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}(M,u,k),I.coordDimIndex=0,(!w||S<=0)&&(I.isExtraCoord=!0),S--),C(I),null==I.type&&(cx(t,T)===cg.Must||I.isExtraCoord&&(null!=I.otherDims.itemName||null!=I.otherDims.seriesName))&&(I.type="ordinal")}return function(t){for(var e=eH(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(h),new gD({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:d})}var gZ=function(t){this.coordSysDims=[],this.axisMap=eH(),this.categoryAxisMap=eH(),this.coordSysName=t},gX={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",oV).models[0],o=t.getReferringComponents("yAxis",oV).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),gY(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),gY(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",oV).models[0];e.coordSysDims=["single"],n.set("single",i),gY(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",oV).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),gY(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),gY(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();ey(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),gY(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,r){var i=t.getReferringComponents("matrix",oV).models[0];e.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function gY(t){return"category"===t.get("type")}function gq(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gQ(t,e,n){n=n||{};var r,i,o,a,s,l,u,h,c=e.getSourceManager(),d=!1;d=(h=c.getSource()).sourceFormat===cl;var p=function(t){var e=t.get("coordinateSystem"),n=new gZ(e),r=gX[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(i=e.get("coordinateSystem"),o=hj.get(i),p&&p.coordSysDims&&(r=ev(p.coordSysDims,function(t){var e,n={name:t},r=p.axisMap.get(t);return r&&(n.type="category"===(e=r.get("type"))?"ordinal":"time"===e?"time":"float"),n})),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),r),g=n.useEncodeDefaulter,m=eM(g)?g:g?eS(cy,f,e):null,y=gU(h,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:m,canOmitUnusedDimensions:!d}),v=(a=y.dimensions,s=n.createInvertedIndices,p&&ey(a,function(t,e){var n=t.coordDim,r=p.categoryAxisMap.get(n);r&&(null==l&&(l=e),t.ordinalMeta=r.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),_=d?null:c.getSharedDataStore(y),x=function(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;gL(e.schema)?(r=(i=e.schema).dimensions,o=e.store):r=e;var l,u,h,c,d=!!(t&&t.get("stack"));if(ey(r,function(t,e){eC(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;ey(r,function(t){t.coordDim===p&&g++});var m={name:h,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(c,f),y.storeDimIndex=o.ensureCalculationDimension(h,f)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}(e,{schema:y,store:_}),b=new gj(y,e);b.setCalculationInfo(x);var w=null!=v&&function(t){if(t.sourceFormat===cl)return!ek(oD(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(h)?function(t,e,n,r){return r===v?n:this.defaultDimValueGetter(t,e,n,r)}:null;return b.hasItemOption=!1,b.initData(d?h:_,null,w),b}function gK(t){return"interval"===t.type||"log"===t.type}function gJ(t){var e=Math.pow(10,oy(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,oc(n*e)}function g0(t){return od(t)+2}function g1(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function g2(t,e){return t>=e[0]&&t<=e[1]}var g5=function(){function t(){this.normalize=g3,this.scale=g4}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ew(t.normalize,t),this.scale=ew(t.scale,t)):(this.normalize=g3,this.scale=g4)},t}();function g3(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function g4(t,e){return t*(e[1]-e[0])+e[0]}function g6(t,e,n){var r=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/r,Math.log(n?e[1]:Math.max(0,e[1]))/r]}var g8=function(){function t(t){this._calculator=new g5,this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();oK(g8);var g7=0,g9=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++g7,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&ev(r,mt);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!eC(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=eH(this.categories))},t}();function mt(t){return eA(t)&&null!=t.value?t.value:t+""}var me=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new g9({})),ek(r)&&(r=new g9({categories:ev(r,function(t){return eA(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return t0(e,t),e.prototype.parse=function(t){return null==t?NaN:eC(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return g2(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(g8);g8.registerClass(me);var mn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t0(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return g2(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=g0(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;t.breakTicks,n[0]<r[0]&&(t.expandToNicedExtent?o.push({value:oc(r[0]-e,i)}):o.push({value:n[0]}));for(var a=function(t,n){return Math.round((n-t)/e)},s=r[0];s<=r[1];){if(o.push({value:s}),s=oc(s+e,i),this._brkCtx){var l=this._brkCtx.calcNiceTickMultiple(s,a);l>=0&&(s=oc(s+l*e,i))}if(o.length>0&&s===o[o.length-1].value)break;if(o.length>1e4)return[]}var u=o.length?o[o.length-1].value:r[1];return n[1]>u&&(t.expandToNicedExtent?o.push({value:oc(u+e,i)}):o.push({value:n[1]})),t.breakTicks,o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1];if(!(a.break||o.break)){for(var s=0,l=[],u=o.value-a.value,h=u/t,c=g0(h);s<t-1;){var d=oc(a.value+(s+1)*h,c);d>r[0]&&d<r[1]&&l.push(d),s++}n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=od(t.value)||0:"auto"===n&&(n=this._intervalPrecision),hE(oc(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var o,a,s,l,u,h,c,d,p=(s=r,l=i,u=t,c=(h={}).interval=ov(l/u),null!=e&&c<e&&(c=h.interval=e),null!=n&&c>n&&(c=h.interval=n),d=h.intervalPrecision=g0(c),o=h.niceTickExtent=[oc(Math.ceil(s[0]/c)*c,d),oc(Math.floor(s[1]/c)*c,d)],a=s,isFinite(o[0])||(o[0]=a[0]),isFinite(o[1])||(o[1]=a[1]),g1(o,0,a),g1(o,1,a),o[0]>o[1]&&(o[0]=o[1]),h);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval,i=this._intervalPrecision;t.fixMin||(e[0]=oc(Math.floor(e[0]/r)*r,i)),t.fixMax||(e[1]=oc(Math.ceil(e[1]/r)*r,i)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(g8);g8.registerClass(mn);var mr="u">typeof Float32Array,mi=mr?Float32Array:Array;function mo(t){return ek(t)?mr?new Float32Array(t):t:new mi(t)}function ma(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ms(t){return t.dim+t.index}function ml(t,e){var n=[];return e.eachSeriesByType(t,function(t){mc(t)&&n.push(t)}),n}function mu(t){var e,n,r=function(t){var e={};ey(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),i=[];return ey(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),o=n.getExtent();if("category"===n.type)e=n.getBandWidth();else if("value"===n.type||"time"===n.type){var a=r[n.dim+"_"+n.index],s=Math.abs(o[1]-o[0]),l=n.scale.getExtent(),u=Math.abs(l[1]-l[0]);e=a?s/u*a:s}else{var h=t.getData();e=Math.abs(o[1]-o[0])/h.count()}var c=ou(t.get("barWidth"),e),d=ou(t.get("barMaxWidth"),e),p=ou(t.get("barMinWidth")||(md(t)?.5:1),e),f=t.get("barGap"),g=t.get("barCategoryGap"),m=t.get("defaultBarGap");i.push({bandWidth:e,barWidth:c,barMaxWidth:d,barMinWidth:p,barGap:f,barCategoryGap:g,defaultBarGap:m,axisKey:ms(n),stackId:ma(t)})}),e={},ey(i,function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}),n={},ey(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;null==o&&(o=Math.max(35-4*eb(r).length,15)+"%");var a=ou(o,i),s=ou(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s);h=Math.max(h,0),ey(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,l-=r+s*r,u--}else{var r=h;e&&e<r&&(r=Math.min(e,l)),n&&n>r&&(r=n),r!==h&&(t.width=r,l-=r+s*r,u--)}}),h=Math.max(h=(l-a)/(u+(u-1)*s),0);var c,d=0;ey(r,function(t,e){t.width||(t.width=h),c=t,d+=t.width*(1+s)}),c&&(d-=c.width*s);var p=-d/2;ey(r,function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+s)})}),n}function mh(t,e){var n=ml(t,e),r=mu(n);ey(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=ma(t),o=r[ms(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function mc(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function md(t){return t.pipelineContext&&t.pipelineContext.large}var mp=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},mf=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return t0(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return h_(t.value,hf[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(hv(this._minLevelUnit))]||hf.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(eC(n))o=n;else if(eM(n)){var a={time:t.time,level:t.time.level};o=n(t.value,e,a)}else{var s=t.time;if(s){var l=n[s.lowerTimeUnit][s.upperTimeUnit];o=l[Math.min(s.level,l.length-1)]||""}else{var u=hx(t.value,i);o=n[u][u][0]}}return h_(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=[];if(!e)return r;var i=this.getSetting("useUTC"),o=hx(n[1],i);r.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var a=function(t,e,n,r,i,o){for(var a=0,s=[],l=[],u=0,h=0,c=0;c<hm.length;++c){var d,p=hv(hm[c]);if((d=hm[c])===hv(d)&&(!function(t,i,s){var l=[],u=!i.length;if(g=hv(t),m=r[0],y=r[1],hb(new Date(m),g,n).getTime()!==hb(new Date(y),g,n).getTime()){u&&(i=[{value:(v=r[0],_=Math.max(0,ef(hg,t)-1),hb(new Date(v),hg[_],n).getTime())},{value:r[1]}]);for(var h=0;h<i.length-1;h++){var c=i[h].value,d=i[h+1].value;if(c!==d){var p,f,g,m,y,v,_,x,b=void 0,w=void 0,S=void 0,k=!1;switch(t){case"year":b=Math.max(1,Math.round(e/864e5/365)),w=hw(n),S=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":b=(p=e/2592e6)>6?6:p>3?3:p>2?2:1,w=hS(n),S=hA(n);break;case"week":case"half-week":case"day":b=(f=e/864e5)>16?16:f>7.5?7:f>3.5?4:f>1.5?2:1,w=hk(n),S=hD(n);break;case"half-day":case"quarter-day":case"hour":b=(x=e/36e5)>12?12:x>6?6:x>3.5?4:x>2?2:1,w=hM(n),S=hL(n);break;case"minute":b=mm(e,!0),w=hC(n),S=h$(n);break;case"second":b=mm(e,!1),w=hT(n),S=hP(n);break;case"millisecond":b=ov(e),w=hI(n),S=hO(n)}d>=r[0]&&c<=r[1]&&function(t,e,n,i,s,l,u){for(var h,c,d,p=((h=new Date(0))[s](1),c=h.getTime(),h[s](1+t),d=h.getTime()-c,function(t,e){return Math.max(0,Math.round((e-t)/d))}),f=e,g=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(a++>1e4));)if(g[s](g[i]()+t),f=g.getTime(),o){var m=o.calcNiceTickMultiple(f,p);m>0&&(g[s](g[i]()+m*t),f=g.getTime())}u.push({value:f,notAdd:!0})}(b,c,d,w,S,0,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-b})}}for(var h=0;h<l.length;h++)s.push(l[h])}}(hm[c],s[s.length-1]||[],l),p!==(hm[c+1]?hv(hm[c+1]):null))){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],g=0;g<l.length;++g){var m=l[g].value;(0===g||l[g-1].value!==m)&&(f.push(l[g]),m>=r[0]&&m<=r[1]&&u++)}var y=i/e;if(u>1.5*y&&h>y/1.5||(s.push(f),u>y||t===hm[c]))break}l=[]}}for(var v=ex(ev(s,function(t){return ex(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),_=[],x=v.length-1,c=0;c<v.length;++c)for(var b=v[c],w=0;w<b.length;++w){var S=hx(b[w].value,n);_.push({value:b[w].value,time:{level:x-c,upperTimeUnit:S,lowerTimeUnit:S}})}_.sort(function(t,e){return t.value-e.value});for(var k=[],c=0;c<_.length;++c)(0===c||_[c].value!==_[c-1].value)&&k.push(_[c]);return k}(this._minLevelUnit,this._approxInterval,i,n,this._getExtentSpanWithBreaks(),this._brkCtx);r=r.concat(a);var s=hx(n[1],i);r.push({value:n[1],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}}),this.getSetting("useUTC");var l=hg.length-1,u=0;return ey(r,function(t){l=Math.min(l,ef(hg,t.time.upperTimeUnit)),u=Math.max(u,t.time.level)}),r},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._getExtentSpanWithBreaks();this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=mg.length,o=Math.min(mp(mg,this._approxInterval,0,i),i-1);this._interval=mg[o][1],this._intervalPrecision=g0(this._interval),this._minLevelUnit=mg[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return eI(t)?t:+om(t)},e.prototype.contain=function(t){return g2(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(mn),mg=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",31536e6/2],["year",31536e6]];function mm(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}g8.registerClass(mf);var my=Math.floor,mv=Math.ceil,m_=Math.pow,mx=Math.log,mb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new mn,e}return t0(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),ev(i,function(t){var e,i=t.value,a=null,s=m_(o,i);return i===n[0]&&this._fixMin?a=r[0]:i===n[1]&&this._fixMax&&(a=r[1]),null!=a&&(s=oc(s,od(a))),{value:s,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var r=g6(this.base,[e,n]);t.prototype.setExtent.call(this,r[0],r[1])},e.prototype.getExtent=function(){var e,n,r=this.base,i=t.prototype.getExtent.call(this);i[0]=m_(r,i[0]),i[1]=m_(r,i[1]);var o=this._originalScale.getExtent();return this._fixMin&&(i[0]=(e=i[0],oc(e,od(o[0])))),this._fixMax&&(i[1]=(n=i[1],oc(n,od(o[1])))),i},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=g6(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=Math.pow(10,oy(n));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&1>Math.abs(r)&&Math.abs(r)>0;)r*=10;var i=[oc(mv(e[0]/r)*r),oc(my(e[1]/r)*r)];this._interval=r,this._intervalPrecision=g0(r),this._niceExtent=i}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=mx(e)/mx(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=mx(e)/mx(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),m_(this.base,e)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e}(mn);g8.registerClass(mb);var mw=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);null==i&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;eM(o)?this._modelMinNum=mM(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=mM(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(eM(a)?this._modelMaxNum=mM(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=mM(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=ek(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[iJ(l[0],1),iJ(l[1],1)]}},t.prototype.calculate=function(){var t,e,n=this._isOrdinal,r=this._dataMin,i=this._dataMax,o=this._axisDataLen,a=this._boundaryGapInner,s=n?null:i-r||Math.abs(r),l="dataMin"===this._modelMinRaw?r:this._modelMinNum,u="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,h=null!=l,c=null!=u;null==l&&(l=n?o?0:NaN:r-a[0]*s),null==u&&(u=n?o?o-1:NaN:i+a[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var d=(t=l)!=t||(e=u)!=e||n&&!o;this._needCrossZero&&(l>0&&u>0&&!h&&(l=0),l<0&&u<0&&!c&&(u=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,h=!0),null!=f&&(u=f,c=!0),{min:l,max:u,minFixed:h,maxFixed:c,isBlank:d}},t.prototype.modifyDataMinMax=function(t,e){this[mk[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mS[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mS={min:"_determinedMin",max:"_determinedMax"},mk={min:"_dataMin",max:"_dataMax"};function mM(t,e){return null==e?null:e!=e?NaN:t.parse(e)}function mC(t,e){var n,r,i=t.type,o=(n=t.getExtent(),(r=t.rawExtentInfo)||(r=new mw(t,e,n),t.rawExtentInfo=r,r)).calculate();t.setBlank(o.isBlank);var a=o.min,s=o.max,l=e.ecModel;if(l&&"time"===i){var u=ml("bar",l),h=!1;if(ey(u,function(t){h=h||t.getBaseAxis()===e.axis}),h){var c=function(t,e,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=function(t,e,n){if(t&&e)return t[ms(e)]}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;ey(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;ey(a,function(t){l=Math.max(t.offset+t.width,l)});var u=(s=Math.abs(s))+(l=Math.abs(l)),h=e-t,c=h/(1-(s+l)/o)-h;return e+=l/u*c,{min:t-=s/u*c,max:e}}(a,s,e,mu(u));a=c.min,s=c.max}}return{extent:[a,s],fixMin:o.minFixed,fixMax:o.maxFixed}}function mT(t,e){var n=mC(t,e),r=n.extent,i=e.get("splitNumber");t instanceof mb&&(t.base=e.get("logBase"));var o=t.type,a=e.get("interval"),s="interval"===o||"time"===o;t.setBreaksFromOption(mO(e)),t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function mI(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n,r,i,o=eC(e)||eM(e)?e:(n=(n=e)||{},r={},i=!0,ey(hg,function(t){i&&(i=null==n[t])}),ey(hg,function(t,e){var o=n[t];r[t]={};for(var a=null,s=e;s>=0;s--){var l=hg[s],u=eA(o)&&!ek(o)?o[l]:o,h=void 0;ek(u)?a=(h=u.slice())[0]||"":eC(u)?h=[a=u]:(null==a?a=hd[t]:hc[l].test(a)||(a=r[l][l][0]+" "+a),h=[a],i&&(h[1]="{primary|"+a+"}")),r[t][l]=h}}),r);return function(e,n){return t.scale.getFormattedLabel(e,n,o)}}return eC(e)?function(n){var r=t.scale.getLabel(n);return e.replace("{value}",r??"")}:eM(e)?"category"===t.type?function(n,r){return e(mA(t,n),n.value-t.scale.getExtent()[0],null)}:function(n,r){return e(mA(t,n),r,null)}:function(e){return t.scale.getLabel(e)}}function mA(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function mD(t){return t.get("interval")??"auto"}function mL(t){return"category"===t.type&&0===mD(t.getLabelModel())}function m$(t){return"middle"===t||"center"===t}function mP(t){return t.getShallow("show")}function mO(t){if(null!=t.get("breaks",!0))return}var mE=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),mN=[],mR={registerPreprocessor:gf,registerProcessor:gg,registerPostInit:function(t){gm("afterinit",t)},registerPostUpdate:function(t){gm("afterupdate",t)},registerUpdateLifecycle:gm,registerAction:gy,registerCoordinateSystem:function(t,e){hj.register(t,e)},registerLayout:function(t,e){gx(gs,t,e,1e3,"layout")},registerVisual:gv,registerTransform:function(t){var e=(t=eh(t)).type;e||oM("");var n=e.split(":");2!==n.length&&oM("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,dE.set(e,t)},registerLoading:function(t,e){gu[t]=e},registerMap:function(t,e,n){var r=fL.registerMap;r&&r(t,e,n)},registerImpl:function(t,e){fL[t]=e},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:h4,ComponentView:ph,SeriesModel:pn,ChartView:pf,registerComponentModel:function(t){h4.registerClass(t)},registerComponentView:function(t){ph.registerClass(t)},registerSeriesModel:function(t){pn.registerClass(t)},registerChartView:function(t){pf.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){h4.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){oe[t]=e}};function mz(t){if(ek(t))return void ey(t,function(t){mz(t)});ef(mN,t)>=0||(mN.push(t),eM(t)&&(t={install:t}),t.install(mR))}var mB=oR(),mF=oR(),mV={estimate:1,determine:2};function mW(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function mH(t,e){var n=ev(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function mG(t,e,n){var r,i,o=mU(t),a=mD(e),s=n.kind===mV.estimate;if(!s){var l=mX(o,a);if(l)return l}eM(a)?r=mJ(t,a):(i="auto"===a?function(t,e){if(e.kind===mV.estimate){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return mF(t).autoInterval=n,!0}),n}return mF(t).autoInterval??(mF(t).autoInterval=t.calculateCategoryInterval(e))}(t,n):a,r=mK(t,i));var u={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return mY(o,a,u),!0}):mY(o,a,u),u}var mj=mZ("axisTick"),mU=mZ("axisLabel");function mZ(t){return function(e){return mF(e)[t]||(mF(e)[t]={list:[]})}}function mX(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function mY(t,e,n){return t.list.push({key:e,value:n}),n}function mq(t,e,n){return null==mQ(t,e,n)}function mQ(t,e,n){var r=mB(t.model),i=t.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(null!=o&&null!=a&&1>=Math.abs(o-e)&&1>=Math.abs(a-n)&&o>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function mK(t,e,n){var r=mI(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],h=i.count();0!==u&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=mL(t),d=a.get("showMinLabel")||c,p=a.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t,time:void 0,break:void 0})}return p&&f-l!==o[1]&&g(o[1]),s}function mJ(t,e,n){var r=t.scale,i=mI(t),o=[];return ey(r.getTicks(),function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var m0=[0,1],m1=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){var e,n,r,i,o;return e=t||this.scale.getExtent(),n=this._extent,r=Math.log,i=Math.LN10,isFinite(o=Math.min(Math.max(-Math.floor(r(e[1]-e[0])/i)+Math.round(r(os(n[1]-n[0]))/i),0),20))?o:20},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(r.parse(t)),this.onBand&&"ordinal"===r.type&&m2(n=n.slice(),r.count()),ol(t,m0,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&m2(n=n.slice(),r.count());var i=ol(t,n,m0,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=function(t,e,n){var r=t.getTickModel().get("customValues");if(r){var i=t.scale.getExtent();return{ticks:ex(mH(t,r),function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,r,i=mj(t),o=mD(e),a=mX(i,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),eM(o))n=mJ(t,o,!0);else if("auto"===o){var s=mG(t,t.getLabelModel(),mW(mV.determine));r=s.labelCategoryInterval,n=ev(s.labels,function(t){return t.tickValue})}else n=mK(t,r=o,!0);return mY(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:ev(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,r=ev(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;ey(e,function(t){t.coord-=u/2,t.onBand=!0});var h=t.scale.getExtent();a=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a,tickValue:h[1]+1,onBand:!0},e.push(o)}var c=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=oc(t),e=oc(e),c?t>e:t<e}}(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),ev(this.scale.getMinorTicks(t),function(t){return ev(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n,r,i,o,a,s,l,u=t.getLabelModel().get("customValues");if(u){var h=mI(t),c=t.scale.getExtent();return{labels:ev(ex(mH(t,u),function(t){return t>=c[0]&&t<=c[1]}),function(e){var n={value:e};return{formattedLabel:h(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?(n=t,r=e,i=n.getLabelModel(),o=mG(n,i,r),!i.get("show")||n.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=mI(a),{labels:ev(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}(this,t=t||mW(mV.determine)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+ +!!this.onBand;return 0===n&&(n=1),Math.abs(Math.abs(t[1]-t[0]))/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n,r,i=e.kind,o=(r=(n=t).getLabelModel(),{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()}),a=mI(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,u=l.getExtent(),h=l.count();if(u[1]-u[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var d=u[0],p=t.dataToCoord(d+1)-t.dataToCoord(d),f=Math.abs(p*Math.cos(s)),g=Math.abs(p*Math.sin(s)),m=0,y=0;d<=u[1];d+=c){var v=0,_=0,x=iY(a({value:d}),o.font,"center","top");v=1.3*x.width,_=1.3*x.height,m=Math.max(m,v,7),y=Math.max(y,_,7)}var b=m/f,w=y/g;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));return i===mV.estimate?(e.out.noPxChangeTryDetermine.push(ew(mq,null,t,S,h)),S):mQ(t,S,h)??S}(this,t=t||mW(mV.determine))},t}();function m2(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}function m5(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=Math.sqrt(l*l+u*u),c=((i-t)*(l/=h)+(o-e)*(u/=h))/h;c*=h;var d=a[0]=t+c*l,p=a[1]=e+c*u;return Math.sqrt((d-i)*(d-i)+(p-o)*(p-o))}var m3=new nk,m4=new nk,m6=new nk,m8=new nk,m7=new nk,m9=[],yt=new nk;function ye(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function yn(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=eQ(r[0],r[1]),o=eQ(r[1],r[2]);if(!i||!o){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=eJ([],r[1],r[0],a/i),l=eJ([],r[1],r[2],a/o),u=eJ([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var h=1;h<r.length;h++)t.lineTo(r[h][0],r[h][1])}var yr=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function yi(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function yo(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function ya(t){if(t)return yo(t)&&ys(t,t.label,t),t}function ys(t,e,n){var r=e.getComputedTransform();t.transform=uV(t.transform,r);var i=t.localRect=uF(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,h=o.__marginType;null==h&&u&&(a=u,h=u2.textMargin);for(var c=0;c<4;c++)yl[c]=h===u2.minMargin&&l&&null!=l[c]?l[c]:s&&null!=s[c]?s[c]:a?a[c]:0;h===u2.textMargin&&u$(i,yl,!1,!1);var d=t.rect=uF(t.rect,i);return r&&d.applyTransform(r),h===u2.minMargin&&u$(d,yl,!1,!1),t.axisAligned=uz(r),(t.label=t.label||{}).ignore=e.ignore,yi(t,!1),yi(t,!0,2),t}var yl=[0,0,0,0];function yu(t,e){for(var n=0;n<yr.length;n++){var r=yr[n];null==t[r]&&(t[r]=e[r])}return ya(t)}function yh(t){var e=t.obb;return(!e||yo(t,2))&&(t.obb=e=e||new ua,e.fromBoundingRect(t.localRect,t.transform),yi(t,!1,2)),e}function yc(t,e,n,r){return!!t&&!!e&&(!t.label||!t.label.ignore)&&(!e.label||!e.label.ignore)&&!!t.rect.intersect(e.rect,n,r)&&(!!t.axisAligned&&!!e.axisAligned||yh(t).intersect(yh(e),n,r))}var yd=Math.sin,yp=Math.cos,yf=Math.PI,yg=2*Math.PI,ym=180/yf,yy=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=r0(h-yg)||(u?l>=yg:-l>=yg),d=l>0?l%yg:l%yg+yg,p=!1;p=!!c||!r0(h)&&d>=yf==!!u;var f=t+n*yp(o),g=e+r*yd(o);this._start&&this._add("M",f,g);var m=Math.round(i*ym);if(c){var y=1/this._p,v=(u?1:-1)*(yg-y);this._add("A",n,r,m,1,+u,t+n*yp(o+v),e+r*yd(o+v)),y>.01&&this._add("A",n,r,m,0,+u,f,g)}else{var _=t+n*yp(a),x=e+r*yd(a);this._add("A",n,r,m,+p,+u,_,x)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var d=arguments[c];if(isNaN(d)){this._invalid=!0;return}u.push(Math.round(d*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),yv="none",y_=Math.round,yx=["lineCap","miterLimit","lineJoin"],yb=ev(yx,function(t){return"stroke-"+t.toLowerCase()}),yw="http://www.w3.org/2000/svg",yS="http://www.w3.org/1999/xlink",yk="ecmeta_";function yM(t){return document.createElementNS(yw,t)}function yC(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function yT(t,e){var n=(e=e||{}).newline?`
|
|
42
|
+
`:"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?no(a):a||"")+(r?""+n+ev(r,function(e){return t(e)}).join(n)+n:"")+"</"+i+">"}(t)}function yI(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yA(t,e,n,r){return yC("svg","root",{width:t,height:e,xmlns:yw,"xmlns:xlink":yS,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var yD=0,yL={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"},y$="transform-origin",yP={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function yO(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function yE(t){return eC(t)?yL[t]?"cubic-bezier("+yL[t]+")":rI(t)?t:"":""}function yN(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof l3){var s=function(t,e,n){var r,i,o=t.shape.paths,a={};if(ey(o,function(t){var e=yI(n.zrId);e.animation=!0,yN(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=eb(o),u=l.length;if(u){var h=o[i=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(i)>=0&&(r=f)}}}),r){e.d=!1;var s=yO(a,n);return r.replace(i,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var h=i[u],c=[h.getMaxTime()/1e3+"s"],d=yE(h.getClip().easing),p=h.getDelay();d?c.push(d):c.push("linear"),p&&c.push(p/1e3+"s"),h.getLoop()&&c.push("infinite");var f=c.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}for(var g in l){var s=function(i){var o=i[1],a=o.length,s={},l={},u={},h="animation-timing-function";function c(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",p=yE(c.easing),f=c.rawValue;(eC(f)||eI(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var d=0;d<a;d++){var p=o[d],f=p.targetName;f?"shape"===f&&c(p,l):r||c(p,s)}for(var g in s){var m={};iH(m,t),ed(m,s[g]);var y=ie(m),v=s[g][h];u[g]=y?{transform:y}:{},function(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[y$]=n+"px "+r+"px")}(u[g],m),v&&(u[g][h]=v)}var _,x=!0;for(var g in l){u[g]=u[g]||{};var b=!_,v=l[g][h];b&&(_=new aX);var w=_.len();_.reset(),u[g].d=function(t,e,n){var r=ed({},t.shape);ed(r,e),t.buildPath(n,r);var i=new yy;return i.reset(it(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}(t,l[g],_);var S=_.len();if(!b&&w!==S){x=!1;break}v&&(u[g][h]=v)}if(!x)for(var g in u)delete u[g].d;if(!r)for(var d=0;d<a;d++){var p=o[d],f=p.targetName;"style"===f&&c(p,u,function(t){return yP[t]})}for(var k,M=eb(u),C=!0,d=1;d<M.length;d++){var T=M[d-1],I=M[d];if(u[T][y$]!==u[I][y$]){C=!1;break}k=u[T][y$]}if(C&&k){for(var g in u)u[g][y$]&&delete u[g][y$];e[y$]=k}if(ex(M,function(t){return eb(u[t]).length>0}).length)return yO(u,n)+" "+i[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+yD++;n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}function yR(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+yD++,n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var yz=Math.round;function yB(t){return t&&eM(t.toDataURL)}function yF(t,e,n,r){(function(t,e,n,r){var i,o,a=null==e.opacity?1:e.opacity;if(n instanceof sr)return t("opacity",a);if(null!=(i=e.fill)&&i!==yv){var s=rJ(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;l<1&&t("fill-opacity",l)}else t("fill",yv);if(null!=(o=e.stroke)&&o!==yv){var u=rJ(e.stroke);t("stroke",u.color);var h=e.strokeNoScale?n.getLineScale():1,c=h?(e.lineWidth||0)/h:0,d=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,p=e.strokeFirst;if(1!==c&&t("stroke-width",c),p&&t("paint-order",p?"stroke":"fill"),d<1&&t("stroke-opacity",d),e.lineDash){var f=fh(n),g=f[0],m=f[1];g&&(m=y_(m||0),t("stroke-dasharray",g.join(",")),(m||r)&&t("stroke-dashoffset",m))}for(var y=0;y<yx.length;y++){var v=yx[y];if(e[v]!==a4[v]){var _=e[v]||a4[v];_&&t(yb[y],_)}}}})(function(i,o){var a="fill"===i||"stroke"===i;a&&r7(o)?yY(e,t,i,r):a&&r4(o)?yq(n,t,i,r):t[i]=o,a&&r.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var r=t.style;if(r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)){var i,o,a=(i=t.style,o=t.getGlobalScale(),[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),o[0],o[1]].join(",")),s=n.shadowCache,l=s[a];if(!l){var u=t.getGlobalScale(),h=u[0],c=u[1];if(!h||!c)return;var d=r.shadowOffsetX||0,p=r.shadowOffsetY||0,f=r.shadowBlur,g=rJ(r.shadowColor),m=g.opacity,y=g.color;l=n.zrId+"-s"+n.shadowIdx++,n.defs[l]=yC("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[yC("feDropShadow","",{dx:d/h,dy:p/c,stdDeviation:f/2/h+" "+f/2/c,"flood-color":y,"flood-opacity":m})]),s[a]=l}e.filter=r9(l)}}(n,t,r)}function yV(t,e){var n=function(t){if("function"==typeof cD)return cD(t)}(e);n&&(n.each(function(e,n){null!=e&&(t[(yk+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[yk+"silent"]="true"))}function yW(t){return r0(t[0]-1)&&r0(t[1])&&r0(t[2])&&r0(t[3]-1)}function yH(t,e,n){e&&!(r0(e[4])&&r0(e[5])&&yW(e))&&(t.transform=yW(e)?"translate("+yz(1e4*e[4])/1e4+" "+yz(1e4*e[5])/1e4+")":"matrix("+r1(e[0])+","+r1(e[1])+","+r1(e[2])+","+r1(e[3])+","+r2(e[4])+","+r2(e[5])+")")}function yG(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(yz(r[o][0]*n)/n),i.push(yz(r[o][1]*n)/n);e.points=i.join(" ")}function yj(t){return!t.smooth}var yU={circle:[(r=ev(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t[o[0]];null!=a&&(e[o[1]]=yz(a*n)/n)}})],polyline:[yG,yj],polygon:[yG,yj]};function yZ(t,e){var n=t.style,r=t.shape,i=yU[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&it(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var d=c.getVersion(),p=t.__svgPathBuilder;t.__svgPathVersion===d&&p&&l===t.__svgPathStrokePercent||(p||(p=t.__svgPathBuilder=new yy),p.reset(u),c.rebuildPath(p,l),p.generateStr(),t.__svgPathVersion=d,t.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=t.type;var f=Math.pow(10,u);i[0](r,o,f)}return yH(o,t.transform),yF(o,n,t,e),yV(o,t),e.animation&&yN(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};yR(r,e,n)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=i.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=rQ(l))}var u=i.lineWidth;u&&(u/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),yR(r,e,n)}}(t,o,e),yC(s,t.id+"",o)}function yX(t,e){return t instanceof a7?yZ(t,e):t instanceof sr?function(t,e){var n,r=t.style,i=r.image;if(i&&!eC(i)&&((n=i)&&eC(n.src)?i=i.src:yB(i)&&(i=i.toDataURL())),i){var o=r.x||0,a=r.y||0,s={href:i,width:r.width,height:r.height};return o&&(s.x=o),a&&(s.y=a),yH(s,t.transform),yF(s,r,t,e),yV(s,t),e.animation&&yN(t,s,e),yC("image",t.id+"",s)}}(t,e):t instanceof st?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i,o,a,s=n.font||t3,l=n.x||0,u=(i=n.y||0,o=iK(s),"top"===(a=n.textBaseline)?i+=o/2:"bottom"===a&&(i-=o/2),i),h={"dominant-baseline":"central","text-anchor":r5[n.textAlign]||n.textAlign};if(sx(n)){var c="",d=n.fontStyle,p=sv(n.fontSize);if(!parseFloat(p))return;var f=n.fontFamily||t5,g=n.fontWeight;c+="font-size:"+p+";font-family:"+f+";",d&&"normal"!==d&&(c+="font-style:"+d+";"),g&&"normal"!==g&&(c+="font-weight:"+g+";"),h.style=c}else h.style="font: "+s;return r.match(/\s/)&&(h["xml:space"]="preserve"),l&&(h.x=l),u&&(h.y=u),yH(h,t.transform),yF(h,n,t,e),yV(h,t),e.animation&&yN(t,h,e),yC("text",t.id+"",h,void 0,r)}}(t,e):void 0}function yY(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(r6(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!r8(o))return;i="radialGradient",a.cx=o.x??.5,a.cy=o.y??.5,a.r=o.r??.5}for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var c=100*r2(s[u].offset)+"%",d=rJ(s[u].color),p=d.color,f=d.opacity,g={offset:c};g["stop-color"]=p,f<1&&(g["stop-opacity"]=f),l.push(yC("stop",u+"",g))}var m=yT(yC(i,"",a,l)),y=r.gradientCache,v=y[m];v||(v=r.zrId+"-g"+r.gradientIdx++,y[m]=v,a.id=v,r.defs[v]=yC(i,v,a,l)),e[n]=r9(v)}function yq(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,h="repeat-x"===l,c="repeat-y"===l;if(r3(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(eC(g)?f=g:g&&eC(g.src)?f=g.src:yB(g)&&(f=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";eR(d,m),eR(p,m)}else if(null==d||null==p){var y=function(t,e){if(t){var n=t.elm,r=d||e.width,i=p||e.height;"pattern"===t.tag&&(h?(i=1,r/=a.width):c&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},v=o5(f,null,t,function(t){u||y(w,t),y(i,t)});v&&v.width&&v.height&&(d=d||v.width,p=p||v.height)}i=yC("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(i=eh(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){u?_=x=1:h?(x=1,_=s.width/a.width):c?(_=1,x=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==x||isNaN(x)||(s.height=x);var _,x,b=ie(o);b&&(s.patternTransform=b);var w=yC("pattern","",s,[i]),S=yT(w),k=r.patternCache,M=k[S];M||(M=r.zrId+"-p"+r.patternIdx++,k[S]=M,s.id=M,w=r.defs[M]=yC("pattern",M,s,[i])),e[n]=r9(M)}}function yQ(t){return document.createTextNode(t)}function yK(t,e,n){t.insertBefore(e,n)}function yJ(t,e){t.removeChild(e)}function y0(t,e){t.appendChild(e)}function y1(t){return t.parentNode}function y2(t){return t.nextSibling}function y5(t,e){t.textContent=e}var y3=yC("","");function y4(t){return void 0===t}function y6(t){return void 0!==t}function y8(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function y7(t){var e,n=t.children,r=t.tag;if(y6(r)){var i=t.elm=yM(r);if(ve(y3,t),ek(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&y0(i,y7(o))}else y6(t.text)&&!eA(t.text)&&y0(i,yQ(t.text))}else t.elm=yQ(t.text);return t.elm}function y9(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&yK(t,y7(o),e)}}function vt(t,e,n,r){for(;n<=r;++n){var i=e[n];null!=i&&(y6(i.tag)?yJ(y1(i.elm),i.elm):yJ(t,i.elm))}}function ve(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:120!==n.charCodeAt(0)?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS(yS,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}var vn=0,vr=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=vi("refreshHover"),this.configLayer=vi("configLayer"),this.storage=e,this._opts=n=ed({},n),this.root=t,this._id="zr"+vn++,this._oldVNode=yA(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=yM("svg");ve(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(y8(t,e))!function t(e,n){var r=n.elm=e.elm,i=e.children,o=n.children;e!==n&&(ve(e,n),y4(n.text)?y6(i)&&y6(o)?i!==o&&function(e,n,r){for(var i,o,a,s=0,l=0,u=n.length-1,h=n[0],c=n[u],d=r.length-1,p=r[0],f=r[d];s<=u&&l<=d;)null==h?h=n[++s]:null==c?c=n[--u]:null==p?p=r[++l]:null==f?f=r[--d]:y8(h,p)?(t(h,p),h=n[++s],p=r[++l]):y8(c,f)?(t(c,f),c=n[--u],f=r[--d]):y8(h,f)?(t(h,f),yK(e,h.elm,y2(c.elm)),h=n[++s],f=r[--d]):(y8(c,p)?(t(c,p),yK(e,c.elm,h.elm),c=n[--u]):(y4(i)&&(i=function(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}(n,s,u)),y4(o=i[p.key])||(a=n[o]).tag!==p.tag?yK(e,y7(p),h.elm):(t(a,p),n[o]=void 0,yK(e,a.elm,h.elm))),p=r[++l]);(s<=u||l<=d)&&(s>u?y9(e,null==r[d+1]?null:r[d+1].elm,r,l,d):vt(e,n,s,u))}(r,i,o):y6(o)?(y6(e.text)&&y5(r,""),y9(r,null,o,0,o.length-1)):y6(i)?vt(r,i,0,i.length-1):y6(e.text)&&y5(r,""):e.text!==n.text&&(y6(i)&&vt(r,i,0,i.length-1),y5(r,n.text)))}(t,e);else{var n=t.elm,r=y1(n);y7(e),null!==r&&(yK(r,e.elm,y2(n)),vt(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return yX(t,yI(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=yI(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=yC("rect","bg",{width:t,height:e,x:"0",y:"0"}),r7(n))yY({fill:n},i.attrs,"fill",r);else if(r4(n))yq({style:{fill:n},dirty:eU,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=rJ(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=yC("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=ev(eb(i.defs),function(t){return i.defs[t]});if(l.length&&o.push(yC("defs","defs",{},l)),t.animation){var u,h,c,d,p,f,g,m,y=(u=i.cssNodes,h=i.cssAnims,p=" {"+(d=(c={newline:!0}).newline?`
|
|
43
|
+
`:""),f=d+"}",g=ev(eb(u),function(t){return t+p+ev(eb(u[t]),function(e){return e+":"+u[t][e]+";"}).join(d)+f}).join(d),m=ev(eb(h),function(t){return"@keyframes "+t+p+ev(eb(h[t]),function(e){return e+p+ev(eb(h[t][e]),function(n){var r=h[t][e][n];return"d"===n&&(r='path("'+r+'")'),n+":"+r+";"}).join(d)+f}).join(d)+f}).join(d),g||m?["<![CDATA[",g,m,"]]>"].join(d):"");if(y){var v=yC("style","stl",{},[],y);o.push(v)}}return yA(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){var e,n,r;return t=t||{},yT(this.renderToVNode({animation:(e=t.cssAnimation,e??!0),emphasis:(n=t.cssEmphasis,n??!0),willUpdate:!1,compress:!0,useViewBox:(r=t.useViewBox,r??!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,d=c&&c.length||0,p=i&&i.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&!(c&&i&&c[f]===i[f]);f--);for(var g=p-1;g>f;g--)r=a[--s-1];for(var m=f+1;m<d;m++){var y={};!function(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=yC("clipPath",o,a,[yZ(t,n)])}e["clip-path"]=r9(o)}(c[m],y,e);var v=yC("g","clip-g-"+l++,y,[]);(r?r.children:n).push(v),a[s++]=v,r=v}i=c;var _=yX(h,e);_&&(r?r.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=fu(r,0,n),e=fu(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(r4(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=ir(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function vi(t){return function(){}}var vo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return t0(e,t),e.prototype.getInitialData=function(t){return gQ(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new ot,n=fi("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=fi(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?i:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=h7.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);function va(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=db(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(db(t,e,n[a]));return o.join(" ")}}function vs(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ek(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var vl=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return t0(e,t),e.prototype._createSymbol=function(t,e,n,r,i,o){this.removeAll();var a=fi(t,-1,-1,2,2,null,o);a.attr({z2:i??100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=vu,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){s1(this.childAt(0))},e.prototype.downplay=function(){s2(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,h=i&&i.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,c)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};h?d.attr(p):uc(d,p,a,n),uy(d)}if(this._updateCommon(t,n,s,r,i),u){var d=this.childAt(0);if(!h){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,ud(d,p,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,h,c,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,c=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,h=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),h=y.get("disabled"),c=uX(m),d=y.getShallow("scale"),p=m.getShallow("cursor")}var v=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var _=fo(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),p&&f.attr("cursor",p);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof sr){var w=f.style;f.useStyle(ed({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(ed({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var M=i&&i.useNameLabel;uZ(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):va(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*T,C.scaleY=this._sizeY*T,this.setSymbolScale(1),lt(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=sT(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&uf(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();uf(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var n;return ek(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0]},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(ot);function vu(t,e){this.parent.drift(t,e)}function vh(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function vc(t){return null==t||eA(t)||(t={isIgnore:t}),t||{}}function vd(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:uX(e),cursorStyle:e.get("cursor")}}var vp=function(){function t(t){this.group=new ot,this._SymbolCtor=t||vl}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=vc(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=vd(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add(function(r){var i=u(r);if(vh(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}}).update(function(h,c){var d=i.getItemGraphicEl(c),p=u(h);if(!vh(t,p,h,e))return void n.remove(d);var f=t.getItemVisual(h,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,h,s,l)).setPosition(p);else{d.updateData(t,h,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):uc(d,m,r)}n.add(d),t.setItemGraphicEl(h,d)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},r)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vd(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=vc(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(vh(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){uR(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();function vf(t,e,n){var r,i,o,a,s=t.getBaseAxis(),l=t.getOtherAxis(s),u=(r=l,i=n,o=0,a=r.scale.getExtent(),"start"===i?o=a[0]:"end"===i?o=a[1]:eI(i)&&!isNaN(i)?o=i:a[0]>0?o=a[0]:a[1]<0&&(o=a[1]),o),h=s.dim,c=l.dim,d=e.mapDimension(c),p=e.mapDimension(h),f=+("x"===c||"radius"===c),g=ev(t.dimensions,function(t){return e.mapDimension(t)}),m=!1,y=e.getCalculationInfo("stackResultDimension");return gq(e,g[0])&&(m=!0,g[0]=y),gq(e,g[1])&&(m=!0,g[1]=y),{dataDimsForPoint:g,valueStart:u,valueAxisDim:c,baseAxisDim:h,stacked:!!m,valueDim:d,baseDim:p,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function vg(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var vm=Math.min,vy=Math.max;function vv(t,e){return isNaN(t)||isNaN(e)}function v_(t,e,n,r,i,o,a,s,l){for(var u,h,c,d,p,f,g=n,m=0;m<r;m++){var y=e[2*g],v=e[2*g+1];if(g>=i||g<0)break;if(vv(y,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,v),c=y,d=v;else{var _=y-u,x=v-h;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===v&&m<r;)m++,b+=o,g+=o,w=e[2*b],S=e[2*b+1],y=e[2*g],v=e[2*g+1],_=y-u,x=v-h;var k=m+1;if(l)for(;vv(w,S)&&k<r;)k++,b+=o,w=e[2*b],S=e[2*b+1];var M=.5,C=0,T=0,I=void 0,A=void 0;if(k>=r||vv(w,S))p=y,f=v;else{C=w-u,T=S-h;var D=y-u,L=w-y,$=v-h,P=S-v,O=void 0,E=void 0;if("x"===s){O=Math.abs(D),E=Math.abs(L);var N=C>0?1:-1;p=y-N*O*a,f=v,I=y+N*E*a,A=v}else if("y"===s){O=Math.abs($),E=Math.abs(P);var R=T>0?1:-1;p=y,f=v-R*O*a,I=y,A=v+R*E*a}else O=Math.sqrt(D*D+$*$),p=y-C*a*(1-(M=(E=Math.sqrt(L*L+P*P))/(E+O))),f=v-T*a*(1-M),I=y+C*a*M,A=v+T*a*M,I=vm(I,vy(w,y)),A=vm(A,vy(S,v)),I=vy(I,vm(w,y)),A=vy(A,vm(S,v)),C=I-y,T=A-v,p=y-C*O/E,f=v-T*O/E,p=vm(p,vy(u,y)),f=vm(f,vy(h,v)),p=vy(p,vm(u,y)),f=vy(f,vm(h,v)),C=y-p,T=v-f,I=y+C*E/O,A=v+T*E/O}t.bezierCurveTo(c,d,p,f,y,v),c=I,d=A}else t.lineTo(y,v)}u=y,h=v,g+=o}return m}var vx=function(){this.smooth=0,this.smoothConstraint=!0},vb=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return t0(e,t),e.prototype.getDefaultStyle=function(){return{stroke:h7.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new vx},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&vv(n[2*i-2],n[2*i-1]);i--);for(;r<i&&vv(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=v_(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,o=i.data,a=aX.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=void 0;switch(h){case a.M:n=o[u++],r=o[u++];break;case a.L:if(c=o[u++],d=o[u++],(y=s?(t-n)/(c-n):(t-r)/(d-r))<=1&&y>=0){var v=s?(d-r)*y+r:(c-n)*y+n;return s?[t,v]:[v,t]}n=c,r=d;break;case a.C:c=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],m=o[u++];var _=s?rx(n,c,p,g,t,l):rx(r,d,f,m,t,l);if(_>0)for(var x=0;x<_;x++){var b=l[x];if(b<=1&&b>=0){var v=s?rv(r,d,f,m,b):rv(n,c,p,g,b);return s?[t,v]:[v,t]}}n=g,r=m}}},e}(a7),vw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e}(vx),vS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return t0(e,t),e.prototype.getDefaultShape=function(){return new vw},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&vv(n[2*o-2],n[2*o-1]);o--);for(;i<o&&vv(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=v_(t,n,i,o,o,1,e.smooth,a,e.connectNulls);v_(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(a7);function vk(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||0;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new sh({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=eM(i)?function(t){i(t,c)}:null;ud(c,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return c}function vM(t,e,n){var r=t.getArea(),i=oc(r.r0,1),o=oc(r.r,1),a=new lV({shape:{cx:oc(t.cx,1),cy:oc(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,ud(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}function vC(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function vT(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function vI(t,e){var n=vT(t),r=n[0],i=n[1],o=vT(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function vA(t){return eI(t)?t:.5*!!t}function vD(t,e,n,r,i){var o=n.getBaseAxis(),a=+("x"!==o.dim&&"radius"!==o.dim),s=[],l=0,u=[],h=[],c=[],d=[];if(i){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],h[0]=t[l],h[1]=t[l+1],s.push(h[0],h[1]),r){case"end":u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1]);break;case"middle":var f=(h[a]+c[a])/2,g=[];u[a]=g[a]=f,u[1-a]=h[1-a],g[1-a]=c[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function vL(t,e){return[t[2*e],t[2*e+1]]}function v$(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<sP.length;e++)if(t.get([sP[e],"endLabel","show"]))return!0;return!1}function vP(t,e,n,r){if("cartesian2d"!==e.type)return vM(e,n,r);var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=v$(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),h=vk(e,n,r,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var c=h.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=2*d):(c.x-=d,c.width+=2*d)}return l&&l(1,h),h}var vO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.init=function(){var t=new ot,e=new vp;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=ew(this._changePolyState,this)},e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===r.type,h=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),m=!s.isEmpty(),y=s.get("origin"),v=vf(r,o,y),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=mo(2*r),o=0;o<r;o++){var a=vg(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(r,o,v),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&function(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*vl.getSymbolSize(e,a)[+!!t.isHorizontal()]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return ey(o.getViewLabels(),function(t){s[o.scale.getRawOrdinalNumber(t.tickValue)]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,r),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(i.remove(t),S.setItemGraphicEl(e,null))}),x||c.remove(),i.add(f);var k,M=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var C=function(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())){if("cartesian2d"!==e.type)return;for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(!o)return;var l=e.getAxis(i),u=ev(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var d=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=function(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r,i,o,a,s=t*(e.length-1),l=Math.floor(s),u=Math.ceil(s),h=rG(e[l]),c=rG(e[u]),d=s-l;return rX([rO((r=h[0],r+(c[0]-r)*d)),rO((i=h[1],i+(c[1]-i)*d)),rO((o=h[2],o+(c[2]-o)*d)),rE((a=h[3],a+(c[3]-a)*d))],"rgba")}}((n-r)/(e.coord-r),[t.color,e.color]);return{coord:n,color:i}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}else n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}return i}(u,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,m=g-f;if(m<.001)return"transparent";ey(d,function(t){t.offset=(t.coord-f)/m}),d.push({offset:p?d[p-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:c[0]||"transparent"});var y=new l6(0,0,0,0,d,!0);return y[i]=f,y[i+"2"]=g,y}}(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&h.type===r.type&&M===this._step){m&&!p?p=this._newPolygon(l,_):p&&!m&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,hV(C));var T=f.getClipPath();T?ud(T,{shape:vP(this,r,!1,t).shape},t):f.setClipPath(vP(this,r,!0,t)),x&&c.updateData(o,{isIgnore:w,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),vC(this._stackedOnPoints,_)&&vC(this._points,l)||(g?this._doUpdateAnimation(o,_,r,n,M,y,b):(M&&(_&&(_=vD(_,l,r,M,b)),l=vD(l,null,r,M,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:_})))}else x&&c.updateData(o,{isIgnore:w,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,r,k),M&&(_&&(_=vD(_,l,r,M,b)),l=vD(l,null,r,M,b)),d=this._newPolyline(l),m?p=this._newPolygon(l,_):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,hV(C)),f.setClipPath(vP(this,r,!0,t));var I=t.getModel("emphasis"),A=I.get("focus"),D=I.get("blurScope"),L=I.get("disabled");d.useStyle(ep(a.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),lr(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),sT(d).seriesIndex=t.seriesIndex,lt(d,A,D,L);var $=vA(t.get("smooth")),P=t.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:P,connectNulls:b}),p){var O=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(ep(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(E=vA(O.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:E,smoothMonotone:P,connectNulls:b}),lr(p,t,"areaStyle"),sT(p).seriesIndex=t.seriesIndex,lt(p,A,D,L)}var N=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){sT(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=oN(i,r);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))pf.prototype.highlight.call(this,t,e,n,r);else{var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new vl(i,o)).x=l,s.y=u,s.setZ(h,c);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=c,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=oN(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pf.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;sq(this._polyline,t),e&&sq(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new vb({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new vS({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");eM(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=eM(u)?u(null):u;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],c=void 0,d=void 0,p=void 0;if(n)if(i){var f=e.pointToCoord(s);r?(c=n.startAngle,d=n.endAngle,p=-f[1]/180*Math.PI):(c=n.r0,d=n.r,p=f[0])}else r?(c=n.x,d=n.x+n.width,p=t.x):(c=n.y+n.height,d=n.y,p=t.y);var g=d===c?0:(p-c)/(d-c);a&&(g=1-g);var m=eM(u)?u(o):l*g+h,y=t.getSymbolPath(),v=y.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:m}),v&&v.animateFrom({style:{opacity:0}},{duration:300,delay:m}),y.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(v$(t)){var i,o,a,s=t.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var h=this._endLabel;h||((h=this._endLabel=new sf({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(u);c>=0&&(uZ(l,uX(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(t,e,n){return null!=n?vs(s,n):va(s,t)},enableTextSetter:!0},(o=(i=e.getBaseAxis()).isHorizontal(),a=i.inverse,{normal:{align:r.get("align")||(o?a?"right":"left":"center"),verticalAlign:r.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=e.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a=+("x"!==n),s=0,l=-1,u=0;u<o;u++)if(!(isNaN(i=t[2*u+a])||isNaN(t[2*u+1-a]))){if(0===u){r=i;continue}if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}return{range:[s,l],t:(e-r)/(i-r)}}(u,v,b),S=w.range,k=S[1]-S[0],M=void 0;if(k>=1){if(k>1&&!c){var C=vL(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),i&&(M=h.getRawValue(S[0]))}else{var C=l.getPointOn(v,b);C&&s.attr({x:C[0]+_,y:C[1]+x});var T=h.getRawValue(S[0]),I=h.getRawValue(S[1]);i&&(M=function(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(eI(r)){var a,s=(r-(a=n||0))*i+a;return oc(s,o?Math.max(od(n||0),od(r)):e)}if(eC(r))return i<1?n:r;for(var l=[],u=Math.max(n?n.length:0,r.length),h=0;h<u;++h){var c=t.getDimensionInfo(h);if(c&&"ordinal"===c.type)l[h]=(i<1&&n?n:r)[h];else{var d=n&&n[h]?n[h]:0,p=r[h],s=(p-d)*i+d;l[h]=oc(s,o?Math.max(od(d),od(p)):e)}}return l}(n,d,T,I,w.t))}r.lastFrameIndex=S[0]}else{var A=1===t||r.lastFrameIndex>0?S[0]:0,C=vL(u,A);i&&(M=h.getRawValue(A)),s.attr({x:C[0]+_,y:C[1]+x})}if(i){var D=u1(s);"function"==typeof D.setLabelText&&D.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,r,i,o,a,s){for(var l,u=(l=[],e.diff(t).add(function(t){l.push({cmd:"+",idx:t})}).update(function(t,e){l.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){l.push({cmd:"-",idx:t})}).execute(),l),h=[],c=[],d=[],p=[],f=[],g=[],m=[],y=vf(i,e,a),v=t.getLayout("points")||[],_=e.getLayout("points")||[],x=0;x<u.length;x++){var b=u[x],w=!0,S=void 0,k=void 0;switch(b.cmd){case"=":S=2*b.idx,k=2*b.idx1;var M=v[S],C=v[S+1],T=_[k],I=_[k+1];(isNaN(M)||isNaN(C))&&(M=T,C=I),h.push(M,C),c.push(T,I),d.push(n[S],n[S+1]),p.push(r[k],r[k+1]),m.push(e.getRawIndex(b.idx1));break;case"+":var A=b.idx,D=y.dataDimsForPoint,L=i.dataToPoint([e.get(D[0],A),e.get(D[1],A)]);k=2*A,h.push(L[0],L[1]),c.push(_[k],_[k+1]);var $=vg(y,i,e,A);d.push($[0],$[1]),p.push(r[k],r[k+1]),m.push(e.getRawIndex(A));break;case"-":w=!1}w&&(f.push(b),g.push(g.length))}g.sort(function(t,e){return m[t]-m[e]});for(var P=h.length,O=mo(P),E=mo(P),N=mo(P),R=mo(P),z=[],x=0;x<g.length;x++){var B=g[x],F=2*x,V=2*B;O[F]=h[V],O[F+1]=h[V+1],E[F]=c[V],E[F+1]=c[V+1],N[F]=d[V],N[F+1]=d[V+1],R[F]=p[V],R[F+1]=p[V+1],z[x]=f[B]}return{current:O,next:E,stackedOnCurrent:N,stackedOnNext:R,status:z}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),c=h.current,d=h.stackedOnCurrent,p=h.next,f=h.stackedOnNext;if(i&&(d=vD(h.stackedOnCurrent,h.current,n,i,a),c=vD(h.current,null,n,i,a),f=vD(h.stackedOnNext,h.next,n,i,a),p=vD(h.next,null,n,i,a)),vI(c,p)>3e3||l&&vI(d,f)>3e3){s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f}));return}s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:p}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),uc(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:d}),l.stopAnimation(),uc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=h.status,v=0;v<y.length;v++)if("="===y[v].cmd){var _=t.getItemGraphicEl(y[v].idx1);_&&m.push({el:_,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,r=2*m[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(pf);function vE(t,e){return{seriesType:t,plan:pc(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=ev(r.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");gq(n,a[0])&&(a[0]=l),gq(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&mo(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(h,d);f=r.dataToPoint(g,null,l)}else a[0]=u.get(h,d),a[1]=u.get(c,d),f=r.dataToPoint(a,null,l);o?(i[p++]=f[0],i[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",i)}}}}}}var vN={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},vR=function(t){return Math.round(t.length/2)};function vz(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.round(a/(Math.abs(u[1]-u[0])*(h||1)));if(isFinite(c)&&c>1){"lttb"===i?t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/c)):"minmax"===i&&t.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/c));var d=void 0;eC(i)?d=vN[i]:eM(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/c,d,vR))}}}}}var vB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.getInitialData=function(t,e){return gQ(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)ey(r.getAxes(),function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(r.length<2)){if(2===r.length){o[n]=t.toGlobalCoord(t.getExtent()[+!!l]);return}for(var u=void 0,h=void 0,c=1,d=0;d<r.length;d++){var p=r[d].coord,f=d===r.length-1?r[d-1].tickValue+c:r[d].tickValue;if(f===s){h=p;break}if(f<s)u=p;else if(null!=u&&f>s){h=(p+u)/2;break}1===d&&(c=f-r[0].tickValue)}null==h&&(u?u&&(h=r[r.length-1].coord):h=r[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!r.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(pn);pn.registerClass(vB);var vF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.getInitialData=function(){return gQ(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ha(vB.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:h7.color.primary,borderWidth:2}},realtimeSort:!1}),e}(vB),vV=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},vW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return t0(e,t),e.prototype.getDefaultShape=function(){return new vV},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-i)*.5,s=i+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,d=h?u-l<c:l-u<c;d||(l=u-(h?c:-c));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(t.moveTo(p*i+n,f*i+r),t.arc(p*s+n,f*s+r,a,-Math.PI+l,l,!h)):t.moveTo(p*o+n,f*o+r),t.arc(n,r,o,l,u,!h),t.arc(g*s+n,m*s+r,a,u-2*Math.PI,u-Math.PI,!h),0!==i&&t.arc(n,r,i,u,l,h)},e}(a7);function vH(t,e,n){return e*Math.sin(t)*(n?-1:1)}function vG(t,e,n){return e*Math.cos(t)*(n?1:-1)}function vj(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;ek(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ev(r,function(t){return iJ(t,i)})}}var vU=Math.max,vZ=Math.min,vX=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return t0(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){uR(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,c=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);c&&this._enableRealtimeSort(c,a,n);var d=t.get("clip",!0)||c,p=function(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),y=m.get("borderRadius")||0,v=[],_=this._backgroundEls,x=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e,n,r,o=v2[l.type](a,t);if(!o)return null;var s=(e=l,n=i,r=o,new("polar"===e.type?lV:sh)({shape:v9(n,r,e),silent:!0,z2:0}));return s.useStyle(m.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",y):s.setShape("cornerRadius",y),v[t]=s,s}a.diff(s).add(function(e){var n=a.getItemModel(e),r=v2[l.type](a,e,n);if(r&&(g&&w(e),!(!a.hasValue(e)||!v1[l.type](r)))){var s=!1;d&&(s=vY[l.type](p,r));var m=vq[l.type](t,a,e,r,i,h,u.model,!1,f);c&&(m.forceLabelAnimation=!0),v3(m,a,e,n,r,t,i,"polar"===l.type),x?m.attr({shape:r}):c?vQ(c,h,m,r,e,i,!1,!1):ud(m,{shape:r},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}}).update(function(e,n){var r=a.getItemModel(e),S=v2[l.type](a,e,r);if(S){if(g){var k=void 0;0===_.length?k=w(n):((k=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?k.setShape("r",y):k.setShape("cornerRadius",y),v[e]=k);var M=v2[l.type](a,e);uc(k,{shape:v9(i,M,l)},h,e)}var C=s.getItemGraphicEl(n);if(!a.hasValue(e)||!v1[l.type](S))return void o.remove(C);var T=!1;if(d&&(T=vY[l.type](p,S))&&o.remove(C),C&&("sector"===C.type&&f||"sausage"===C.type&&!f)&&(C&&um(C,t,n),C=null),C?uy(C):C=vq[l.type](t,a,e,S,i,h,u.model,!0,f),c&&(C.forceLabelAnimation=!0),b){var I=C.getTextContent();if(I){var A=u1(I);null!=A.prevValue&&(A.prevValue=A.value)}}else v3(C,a,e,r,S,t,i,"polar"===l.type);x?C.attr({shape:S}):c?vQ(c,h,C,S,e,i,!0,b):uc(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=T,o.add(C)}}).remove(function(e){var n=s.getItemGraphicEl(e);n&&um(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new ot);S.removeAll();for(var k=0;k<v.length;++k)S.add(v[k]);o.add(S),this._backgroundEls=v,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),v8(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),v8(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,r,i){if(t){if("polar"===t.type)return vM(t,e,n);if("cartesian2d"===t.type)return vk(t,e,n,void 0,void 0)}return null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=i??NaN,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:ev(r,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){um(e,t,sT(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pf),vY={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=vU(e.x,t.x),s=vZ(e.x+e.width,i),l=vU(e.y,t.y),u=vZ(e.y+e.height,o),h=s<a,c=u<l;return e.x=h&&a>i?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=vZ(e.r,t.r),o=vU(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return a}},vq={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new sh({shape:ed({},r),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[i?"height":"width"]=0),u},polar:function(t,e,n,r,i,o,a,s,l){var u,h,c,d=!i&&l?vW:lV,p=new d({shape:r,z2:1});if(p.name="item",u=v5(i),c=d===vW,p.calculateTextPosition=function(t,e,n){var r=e.position;if(!r||r instanceof Array)return i0(t,e,n);var i=u(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,h=a.r,d=a.r0,p=(h+d)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,y=c?Math.abs(h-d)/2:0,v=Math.cos,_=Math.sin,x=s+h*v(f),b=l+h*_(f),w="left",S="top";switch(i){case"startArc":x=s+(d-o)*v(m),b=l+(d-o)*_(m),w="center",S="top";break;case"insideStartArc":x=s+(d+o)*v(m),b=l+(d+o)*_(m),w="center",S="bottom";break;case"startAngle":x=s+p*v(f)+vH(f,o+y,!1),b=l+p*_(f)+vG(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+p*v(f)+vH(f,-o+y,!1),b=l+p*_(f)+vG(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+p*v(m),b=l+p*_(m),w="center",S="middle";break;case"endArc":x=s+(h+o)*v(m),b=l+(h+o)*_(m),w="center",S="bottom";break;case"insideEndArc":x=s+(h-o)*v(m),b=l+(h-o)*_(m),w="center",S="top";break;case"endAngle":x=s+p*v(g)+vH(g,o+y,!0),b=l+p*_(g)+vG(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+p*v(g)+vH(g,-o+y,!0),b=l+p*_(g)+vG(g,-o+y,!0),w="right",S="middle";break;default:return i0(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t},o){var f=p.shape,g=i?"r":"endAngle",m={};f[g]=i?r.r0:r.startAngle,m[g]=r[g],(s?uc:ud)(p,{shape:m},o)}return p}};function vQ(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?uc:ud)(n,{shape:l},e,i,null),(a?uc:ud)(n,{shape:u},e?t.baseAxis.model:null,i)}function vK(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var vJ=["x","y","width","height"],v0=["cx","cy","r","startAngle","endAngle"],v1={cartesian2d:function(t){return!vK(t,vJ)},polar:function(t){return!vK(t,v0)}},v2={cartesian2d:function(t,e,n){var r,i,o,a=t.getItemLayout(e);if(!a)return null;var s=n?(r=n,i=a,(o=r.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(r.get(["itemStyle","borderWidth"])||0,isNaN(i.width)?Number.MAX_VALUE:Math.abs(i.width),isNaN(i.height)?Number.MAX_VALUE:Math.abs(i.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function v5(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function v3(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,h=vj(r.getModel("itemStyle"),u,!0);ed(u,h),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=uX(r);uZ(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:va(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var m=r.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,r){if(eI(r))return t.setTextConfig({rotation:r});if(ek(e))return t.setTextConfig({rotation:0});var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=(a+s)/2;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-i;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===m?p:m,v5(a),r.get(["label","rotate"]))}!function(t,e,n,r){if(t){var i=u1(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}(g,f,o.getRawValue(n),function(t){return vs(e,t)});var y=r.getModel(["emphasis"]);lt(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),lr(t,r),null!=i.startAngle&&null!=i.endAngle&&i.startAngle===i.endAngle&&(t.style.fill="none",t.style.stroke="none",ey(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var v4=function(){},v6=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return t0(e,t),e.prototype.getDefaultShape=function(){return new v4},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(a7);function v8(t,e,n,r){var i=t.getData(),o=+!!i.getLayout("valueAxisHorizontal"),a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var h=new v6({shape:{points:u},incremental:!!r,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new v6({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(i.getVisual("style")),c.style.stroke=null,sT(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",v7),c.on("mousemove",v7)),n&&n.push(c)}var v7=pS(function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var d=3*h;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);sT(this).dataIndex=e>=0?e:null},30,!1);function v9(t,e,n){if("cartesian2d"===n.type){var r=n.getArea();return{x:t?e.x:r.x,y:t?r.y:e.y,width:t?e.width:r.width,height:t?r.height:e.height}}var r=n.getArea();return{cx:r.cx,cy:r.cy,r0:t?r.r0:e.r0,r:t?r.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var _t=2*Math.PI,_e=Math.PI/180;function _n(t,e,n){e.eachSeriesByType(t,function(t){var e,r,i,o,a,s,l,u=t.getData(),h=u.mapDimension("value"),c=(r=(e=function(t,e){var n,r,i=h0(t,e,{enableLayoutOnlyByCenter:!0}),o=t.getBoxLayoutParams();if(i.type===hJ.point)r=i.refPoint,n=hK(o,{width:e.getWidth(),height:e.getHeight()});else{var a=t.get("center"),s=ek(a)?a:[a,a];n=hK(o,i.refContainer),r=i.boxCoordFrom===hU.coord2?i.refPoint:[ou(s[0],n.width)+n.x,ou(s[1],n.height)+n.y]}return{viewRect:n,center:r}}(t,n)).viewRect,i=e.center,ek(o=t.get("radius"))||(o=[0,o]),a=Math.min(ou(r.width,n.getWidth()),ou(r.height,n.getHeight())),s=ou(o[0],a/2),l=ou(o[1],a/2),{cx:i[0],cy:i[1],r0:s,r:l,viewRect:r}),d=c.cx,p=c.cy,f=c.r,g=c.r0,m=c.viewRect,y=-t.get("startAngle")*_e,v=t.get("endAngle"),_=t.get("padAngle")*_e;v="auto"===v?y-_t:-v*_e;var x=t.get("minAngle")*_e+_,b=0;u.each(h,function(t){!isNaN(t)&&b++});var w=u.getSum(h),S=Math.PI/(w||b)*2,k=t.get("clockwise"),M=t.get("roseType"),C=t.get("stillShowZeroSum"),T=u.getDataExtent(h);T[0]=0;var I=k?1:-1,A=[y,v],D=I*_/2;aZ(A,!k),y=A[0],v=A[1];var L=_r(t);L.startAngle=y,L.endAngle=v,L.clockwise=k,L.cx=d,L.cy=p,L.r=f,L.r0=g;var $=Math.abs(v-y),P=$,O=0,E=y;if(u.setLayout({viewRect:m,r:f}),u.each(h,function(t,e){if(isNaN(t))return void u.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:k,cx:d,cy:p,r0:g,r:M?NaN:f});(n="area"!==M?0===w&&C?S:t*S:$/b)<x?(n=x,P-=x):O+=t;var n,r=E+I*n,i=0,o=0;_>n?o=i=E+I*n/2:(i=E+D,o=r-D),u.setItemLayout(e,{angle:n,startAngle:i,endAngle:o,clockwise:k,cx:d,cy:p,r0:g,r:M?ol(t,T,[g,f]):f}),E=r}),P<_t&&b)if(P<=.001){var N=$/b;u.each(h,function(t,e){if(!isNaN(t)){var n=u.getItemLayout(e);n.angle=N;var r=0,i=0;N<_?i=r=y+I*(e+.5)*N:(r=y+I*e*N+D,i=y+I*(e+1)*N-D),n.startAngle=r,n.endAngle=i}})}else S=P/O,E=y,u.each(h,function(t,e){if(!isNaN(t)){var n=u.getItemLayout(e),r=n.angle===x?x:t*S,i=0,o=0;r<_?o=i=E+I*r/2:(i=E+D,o=E+I*r-D),n.startAngle=i,n.endAngle=o,E+=I*r}})})}var _r=oR(),_i=Math.PI/180;function _o(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var h=t.length,c=0;c<h;c++)if("outer"===t[c].position&&"labelLine"===t[c].labelAlignTo){var d=t[c].label.x-u;t[c].linePoints[1][0]+=d,t[c].label.x=u}(function(t,e,n,r,i){var o=t.length,a=u_[1],s=ux[1];if(o<2)return!1;t.sort(function(t,e){return t.rect[a]-e.rect[a]});for(var l,u=0,h=!1,c=0;c<o;c++){var d=t[c],p=d.rect;(l=p[a]-u)<0&&(p[a]-=l,d.label[a]-=l,h=!0),u=p[a]+p[s]}var f,g,m=t[0],y=t[o-1];function v(){f=m.rect[a]-n,g=r-y.rect[a]-y.rect[s]}function _(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){x(r*n,0,o);var i=r+t;i<0&&b(-i*n,1)}else b(-t*n,1)}}function x(e,n,r){0!==e&&(h=!0);for(var i=n;i<r;i++){var o=t[i],s=o.rect;s[a]+=e,o.label[a]+=e}}function b(e,n){for(var r=[],i=0,l=1;l<o;l++){var u=t[l-1].rect,h=Math.max(t[l].rect[a]-u[a]-u[s],0);r.push(h),i+=h}if(i){var c=Math.min(Math.abs(e)/i,n);if(e>0)for(var l=0;l<o-1;l++){var d=r[l]*c;x(d,0,l+1)}else for(var l=o-1;l>0;l--){var d=r[l-1]*c;x(-d,l,o)}}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),r=0;r<o-1;r++)if(e>0?x(n,0,r+1):x(-n,o-r-1,o),(t-=n)<=0)return}return v(),f<0&&b(-f,.8),g<0&&b(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&w(-f),g<0&&w(g),h})(t,1,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*i,d=r+l.len;u.rB=Math.abs(c)<d?Math.sqrt(h*h/(1-c*c/d/d)):d,u.maxY=h}u.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),h=r+l.len,c=e+(Math.sqrt(Math.abs(h*h*(1-u*u/a)))+l.len2)*i,d=c-l.label.x,p=l.targetTextWidth-d*i;_a(l,p,!0),l.label.x=c}}}function _a(t,e,n){if(null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,h=o.width+(a?0:l);if(e<h||n){if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var c=r.getBoundingRect();r.setStyle("width",Math.ceil(c.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,p=e<h?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",p)}_s(o,r)}}}function _s(t,e){_u.rect=t,ys(_u,e,_l)}var _l={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},_u={};function _h(t){return"center"===t.position}var _c=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new sf;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return t0(e,t),e.prototype.updateData=function(t,e,n,r){var i=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=ed(vj(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))return void this.setShape(l);if(r){this.setShape(l);var u=i.getShallow("animationType");i.ecModel.ssr?(ud(this,{scaleX:0,scaleY:0},i,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===u?(this.shape.r=s.r0,ud(this,{shape:{r:s.r}},i,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),ud(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,e)):(this.shape.endAngle=s.startAngle,uc(this,{shape:{endAngle:s.endAngle}},i,e))}else uy(this),uc(this,{shape:l},i,e);this.useStyle(t.getItemVisual(e,"style")),lr(this,o);var h=(s.startAngle+s.endAngle)/2,c=i.get("selectedOffset"),d=Math.cos(h)*c,p=Math.sin(h)*c,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(i,t,e),this.ensureState("emphasis").shape=ed({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},vj(a.getModel("itemStyle"),s)),ed(this.ensureState("select"),{x:d,y:p,shape:vj(o.getModel(["select","itemStyle"]),s)}),ed(this.ensureState("blur"),{shape:vj(o.getModel(["blur","itemStyle"]),s)});var g=this.getTextGuideLine(),m=this.getTextContent();g&&ed(g.ensureState("select"),{x:d,y:p}),ed(m.ensureState("select"),{x:d,y:p}),lt(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),i=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;uZ(this,uX(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=r.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var h,c=this.getTextGuideLine();c||(c=new lX,this.setTextGuideLine(c)),function(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<sO.length;l++){var u=sO[l],h=e[u],c="normal"===u;if(h){var d,p=h.get("show");if((c?s:(d=i.states[u]&&i.states[u].ignore,d??s))||!(p??a)){var f=c?r:r&&r.states[u];f&&(f.ignore=!0),r&&ye(r,!0,u,h);continue}r||(r=new lX,t.setTextGuideLine(r),c||!s&&a||ye(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),ye(r,!1,u,h)}}if(r){ep(r.style,n),r.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,r.buildPath=yn}}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<sP.length;r++){var i=sP[r];n[i]=t.getModel([i,e])}return n}(r),{stroke:a,opacity:(h=i.get(["lineStyle","opacity"]),h??s??1)})}},e}(lV),_d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t0(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var h=new lV({shape:eh(_r(t))});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add(function(t){var e=new _c(o,t,i);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){um(a.getItemGraphicEl(e),t,e)}).execute(),function(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*_i,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,h=s.x,c=s.y,d=s.height;function p(t){t.ignore=!0}r.each(function(t){var s=r.getItemGraphicEl(t),c=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),m=r.getItemModel(t),y=m.getModel("label"),v=y.get("position")||m.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),b=ou(y.get("edgeDistance"),u),w=y.get("bleedMargin");null==w&&(w=Math.min(u,d)>200?10:2);var S=m.getModel("labelLine"),k=S.get("length");k=ou(k,u);var M=S.get("length2");if(M=ou(M,u),Math.abs(c.endAngle-c.startAngle)<a){ey(f.states,p),f.ignore=!0,g&&(ey(g.states,p),g.ignore=!0);return}if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var C,T,I,A,D=(c.startAngle+c.endAngle)/2,L=Math.cos(D),$=Math.sin(D);e=c.cx,n=c.cy;var P="inside"===v||"inner"===v;if("center"===v)C=c.cx,T=c.cy,A="center";else{var O=(P?(c.r+c.r0)/2*L:c.r*L)+e,E=(P?(c.r+c.r0)/2*$:c.r*$)+n;if(C=O+3*L,T=E+3*$,!P){var N=O+L*(k+l-c.r),R=E+$*(k+l-c.r),z=N+(L<0?-1:1)*M;C="edge"===x?L<0?h+b:h+u-b:z+(L<0?-_:_),T=R,I=[[O,E],[N,R],[z,R]]}A=P?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var B=Math.PI,F=0,V=y.get("rotate");if(eI(V))F=B/180*V;else if("center"===v)F=0;else if("radial"===V||!0===V)F=L<0?-D+B:-D;else if("tangential"===V&&"outside"!==v&&"outer"!==v){var W=Math.atan2(L,$);W<0&&(W=2*B+W),$>0&&(W=B+W),F=W-B}if(o=!!F,f.x=C,f.y=T,f.rotation=F,f.setStyle({verticalAlign:"middle"}),P){f.setStyle({align:A});var H=f.states.select;H&&(H.x+=f.x,H.y+=f.y)}else{var G=new nz(0,0,0,0);_s(G,f),i.push({label:f,labelLine:g,position:v,len:k,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new nk(L,$),linePoints:I,textAlign:A,labelDistance:_,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:G,unconstrainedWidth:G.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;_h(t[d])||(p.x<e?(h=Math.min(h,p.x),l.push(t[d])):(c=Math.max(c,p.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var f=t[d];if(!_h(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;var p=f.label,g=f.linePoints,m=void 0;m="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+i-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?h-a-f.bleedMargin:a+i-c-f.bleedMargin:p.x<e?p.x-a-f.bleedMargin:a+i-p.x-f.bleedMargin,f.targetTextWidth=m,_a(f,m,!1)}}_o(u,e,n,r,1,i,o,a,s,c),_o(l,e,n,r,-1,i,o,a,s,h);for(var d=0;d<t.length;d++){var f=t[d];if(!_h(f)&&f.linePoints){var p=f.label,g=f.linePoints,y="edge"===f.labelAlignTo,v=p.style.padding,_=v?v[1]+v[3]:0,x=p.style.backgroundColor?0:_,b=f.rect.width+x,w=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+i-f.edgeDistance-b-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}(i,e,n,l,u,d,h,c);for(var f=0;f<i.length;f++){var g=i[f],m=g.label,y=g.labelLine,v=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),v&&(ey(m.states,p),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var x=g.linePoints;v||!x?(ey(y.states,p),y.ignore=!0):(function(t,e){if(e<=180&&e>0){e=e/180*Math.PI,m3.fromArray(t[0]),m4.fromArray(t[1]),m6.fromArray(t[2]),nk.sub(m8,m3,m4),nk.sub(m7,m6,m4);var n=m8.len(),r=m7.len();if(!(n<.001||r<.001)&&(m8.scale(1/n),m7.scale(1/r),Math.cos(e)<m8.dot(m7))){var i=m5(m4.x,m4.y,m6.x,m6.y,m3.x,m3.y,m9);yt.fromArray(m9),yt.scaleAndAdd(m7,i/Math.tan(Math.PI-e));var o=m6.x!==m4.x?(yt.x-m4.x)/(m6.x-m4.x):(yt.y-m4.y)/(m6.y-m4.y);if(isNaN(o))return;o<0?nk.copy(yt,m4):o>1&&nk.copy(yt,m6),yt.toArray(t[1])}}}(x,g.minTurnAngle),function(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,m3.fromArray(t[0]),m4.fromArray(t[1]),m6.fromArray(t[2]),nk.sub(m8,m4,m3),nk.sub(m7,m6,m4);var r=m8.len(),i=m7.len();if(!(r<.001||i<.001)&&(m8.scale(1/r),m7.scale(1/i),m8.dot(e)<Math.cos(n))){var o=m5(m4.x,m4.y,m6.x,m6.y,m3.x,m3.y,m9);yt.fromArray(m9);var a=Math.PI/2,s=a+Math.acos(m7.dot(e))-n;if(s>=a)nk.copy(yt,m6);else{yt.scaleAndAdd(m7,o/Math.tan(Math.PI/2-s));var l=m6.x!==m4.x?(yt.x-m4.x)/(m6.x-m4.x):(yt.y-m4.y)/(m6.y-m4.y);if(isNaN(l))return;l<0?nk.copy(yt,m4):l>1&&nk.copy(yt,m6)}yt.toArray(t[1])}}}(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new nk(x[0][0],x[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(pf),_p=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),_f=oR(),_g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _p(ew(this.getData,this),ew(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t,e,n;return t=ek(t={coordDimensions:["value"],encodeDefaulter:eS(cv,this)})&&{coordDimensions:t}||ed({encodeDefine:this.getEncode()},t),(n=new gj(gU(e=this.getSource(),t).dimensions,this)).initData(e,void 0),n},e.prototype.getDataParams=function(e){var n=this.getData(),r=_f(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),i=r.seats=function(t,e){var n=e_(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),i=ev(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,a=ev(i,function(t){return Math.floor(t)}),s=e_(a,function(t,e){return t+e},0),l=ev(i,function(t,e){return t-a[e]});s<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return ev(a,function(t){return t/r})}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){oI(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);i={fullType:_g.type,getCoord2:function(t){return t.getShallow("center")}},hZ.set(i.fullType,{getCoord2:void 0}).getCoord2=i.getCoord2;var _m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return t0(e,t),e.prototype.getInitialData=function(t,e){return gQ(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:h7.color.primary}},universalTransition:{divideShape:"clone"}},e}(pn),_y=function(){},_v=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t0(e,t),e.prototype.getDefaultShape=function(){return new _y},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<r.length;){var h=r[n++],c=r[n++];isNaN(h)||isNaN(c)||u&&!u.contain(h,c)||(a.x=h-i[0]/2,a.y=c-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,h=r[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return(t=n[0],e=n[1],r.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h<n.length;){var c=n[h++],d=n[h++];a=Math.min(c,a),l=Math.max(c,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new nz(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(a7),__=function(){function t(){this.group=new ot}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=(t.endIndex-t.startIndex)*2,r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new _v({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=fi(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=sT(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),_x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=vE("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new __:new vp,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pf),_b={left:0,right:0,top:0,bottom:0},_w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var r=h5(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&e.outerBounds&&h2(e.outerBounds,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&h2(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:_b,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:h7.color.transparent,borderWidth:1,borderColor:h7.color.neutral30},e}(h4),_S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oV).models[0]},e.type="cartesian2dAxis",e}(h4);eg(_S,mE);var _k={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:h7.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:h7.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:h7.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[h7.color.backgroundTint,h7.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:h7.color.neutral00,borderColor:h7.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},_M=ec({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},_k),_C=ec({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:h7.color.axisMinorSplitLine,width:1}}},_k),_T=ec({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_C),_I=ep({logBase:10},_C);let _A={category:_M,value:_C,time:_T,log:_I};var _D={value:1,category:1,time:1,log:1};function _L(t,e,n,r){ey(_D,function(i,o){var a=ec(ec({},_A[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return t0(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=h1(this),r=n?h5(t):{};ec(t,e.getTheme().get(o+"Axis")),ec(t,this.getDefaultOption()),t.type=_$(t),n&&h2(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=g9.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){return{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",_$)}function _$(t){return t.type||(t.data?"category":"value")}var _P=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return ev(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ex(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),_O=["x","y"];function _E(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var _N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=_O,e}return t0(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(!(!_E(t)||!_E(e))){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(!(!a||!s)){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,h=i[0]-n[0]*l,c=i[1]-r[0]*u,d=this._transform=[l,0,0,u,h,c];this._invTransform=nS([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new nz(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return e0(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return e0(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new nz(r,i,o,a)},e}(_P),_R=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return t0(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(m1),_z=Math.PI,_B=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_F=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_V=oR(),_W=oR(),_H=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,r=this.recordMap,i=r[e]||(r[e]=[]);return i[n]||(i[n]={ready:{}})},t}(),_G=ny(),_j=new nz(0,0,0,0),_U=function(t,e,n,r,i,o){if(m$(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&_Z((a={},s=o.transGroup.transform,a.transform=uV(a.transform,s),a.localRect=uF(a.localRect,l),a.rect=uF(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=uz(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),r,i)}else _X(o.labelInfoList,o.dirVec,r,i)};function _Z(t,e,n){var r=new nk;yc(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,n)}}(e,r)}function _X(t,e,n,r){for(var i=nk.dot(r,e)>=0,o=0,a=t.length;o<a;o++){var s=t[i?o:a-1-o];s.label.ignore||_Z(s,n,r)}}var _Y=function(){function t(t,e,n,r){this.group=new ot,this._axisModel=t,this._api=e,this._local={},this._shared=r||new _H(_U),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e,n,r,i,o,a,s=this._axisModel,l=s.getDefaultOption?s.getDefaultOption():{},u=(e=t.axisName,n=s.get("name"),e??n),h=s.get("nameMoveOverlap");(null==h||"auto"===h)&&(r=t.defaultNameMoveOverlap,h=r??!0);var c={raw:t,position:t.position,rotation:t.rotation,nameDirection:t.nameDirection??1,tickDirection:t.tickDirection??1,labelDirection:t.labelDirection??1,labelOffset:t.labelOffset??0,silent:(i=t.silent,i??!0),axisName:u,nameLocation:(o=s.get("nameLocation"),a=l.nameLocation,o??a??"end"),shouldNameMoveOverlap:!!u&&h,optionHideOverlap:s.get(["axisLabel","hideOverlap"]),showMinorTicks:s.get(["minorTick","show"])};this._cfg=c;var d=new ot({x:c.position[0],y:c.position[1],rotation:c.rotation});d.updateTransform(),this._transformGroup=d;var p=this._shared.ensureRecord(s);p.transGroup=this._transformGroup,p.dirVec=new nk(Math.cos(-c.rotation),Math.sin(-c.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),ey(_q,function(r){t[r]&&_Q[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var r,i,o=op(e-t);return of(o)?(i=n>0?"top":"bottom",r="center"):of(o-_z)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<_z?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),_q=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],_Q={axisLine:function(t,e,n,r,i,o,a){var s=r.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=r.axis.getExtent(),u=o.transform,h=[l[0],0],c=[l[1],0],d=h[0]>c[0];u&&(e0(h,h,u),e0(c,c,u));var p=ed({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())null.buildAxisBreakLine(r,i,o,f);else{var g=new lQ(ed({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},f));uT(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var m=r.get(["axisLine","symbol"]);if(null!=m){var y=r.get(["axisLine","symbolSize"]);eC(m)&&(m=[m,m]),(eC(y)||eI(y))&&(y=[y,y]);var v=fo(r.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];ey([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(e,n){if("none"!==m[n]&&null!=m[n]){var r=fi(m[n],-_/2,-x/2,_,x,p.stroke,!0),o=e.r+e.offset,a=d?c:h;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(t,e,n,r,i,o,a,s){_1(e,i,s)&&_K(t,e,n,r,i,o,a,mV.estimate)},axisTickLabelDetermine:function(t,e,n,r,i,o,a,s){_1(e,i,s)&&_K(t,e,n,r,i,o,a,mV.determine);var l,u,h,c=function(t,e,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=i.getTicksCoords(),h=_0(u,n.transform,l,ep(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<h.length;c++)e.add(h[c]);return h}(t,i,o,r);l=t,u=e.labelLayoutList,h=c,l.showMinorTicks||ey(u,function(t){if(t&&t.label.ignore)for(var e=0;e<h.length;e++){var n=h[e],r=_W(n),i=_V(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===i.tickValue)return void _J(n)}}),function(t,e,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=i*a.get("length"),h=ep(l.getLineStyle(),ep(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var d=_0(s[c],n.transform,u,h,"minorticks_"+c),p=0;p<d.length;p++)e.add(d[p])}}(t,i,o,r,t.tickDirection)},axisName:function(t,e,n,r,i,o,a,s){var l=n.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(u){var h,c,d,p,f,g,m,y,v,_,x,b=t.nameLocation,w=t.nameDirection,S=r.getModel("nameTextStyle"),k=r.get("nameGap")||0,M=r.axis.getExtent(),C=r.axis.inverse?-1:1,T=new nk(0,0),I=new nk(0,0);"start"===b?(T.x=M[0]-C*k,I.x=-C):"end"===b?(T.x=M[1]+C*k,I.x=C):(T.x=(M[0]+M[1])/2,T.y=t.labelOffset+w*k,I.y=w);var A=ny();I.transform(nw(A,A,t.rotation));var D=r.get("nameRotate");null!=D&&(D=D*_z/180),m$(b)?_=_Y.innerTextLayout(t.rotation,D??t.rotation,w):(h=t.rotation,c=b,d=D||0,p=M,m=op(d-h),y=p[0]>p[1],v="start"===c&&!y||"start"!==c&&y,of(m-_z/2)?(g=v?"bottom":"top",f="center"):of(m-1.5*_z)?(g=v?"top":"bottom",f="center"):(g="middle",f=m<1.5*_z&&m>_z/2?v?"left":"right":v?"right":"left"),_={rotation:m,textAlign:f,textVerticalAlign:g},null!=(x=t.raw.axisNameAvailableWidth)&&(isFinite(x=Math.abs(x/Math.sin(_.rotation)))||(x=null)));var L=S.getFont(),$=r.get("nameTruncate",!0)||{},P=$.ellipsis,O=eO(t.raw.nameTruncateMaxWidth,$.maxWidth,x),E=s.nameMarginLevel||0,N=new sf({x:T.x,y:T.y,rotation:_.rotation,silent:_Y.isLabelSilent(r),style:uY(S,{text:u,font:L,overflow:"truncate",width:O,ellipsis:P,fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:S.get("align")||_.textAlign,verticalAlign:S.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(uE({el:N,componentModel:r,itemName:u}),N.__fullText=u,N.anid="name",r.get("triggerEvent")){var R=_Y.makeAxisEventDataBase(r);R.targetType="axisName",R.name=u,sT(N).eventData=R}o.add(N),N.updateTransform(),e.nameEl=N;var z=l.nameLayout=ya({label:N,priority:N.z2,defaultAttr:{ignore:N.ignore},marginDefault:m$(b)?_B[E]:_F[E]});if(l.nameLocation=b,i.add(N),N.decomposeTransform(),t.shouldNameMoveOverlap&&z){var B=n.ensureRecord(r);n.resolveAxisNameOverlap(t,n,r,z,I,B)}}}};function _K(t,e,n,r,i,o,a,s){_2(e)||function(t,e,n,r,i,o){var a=i.axis,s=eO(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ot;n.add(l);var u=mW(r);if(!s||a.scale.isBlank())return _5(e,[],l,u);var h=i.getModel("axisLabel"),c=a.getViewLabels(u),d=(eO(t.raw.labelRotate,h.get("rotate"))||0)*_z/180,p=_Y.innerTextLayout(t.rotation,d,t.labelDirection),f=i.getCategories&&i.getCategories(!0),g=[],m=i.get("triggerEvent"),y=1/0,v=-1/0;ey(c,function(t,e){var n,r,s,u,d,_="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,x=t.formattedLabel,b=t.rawLabel,w=h;if(f&&f[_]){var S=f[_];eA(S)&&S.textStyle&&(w=new hr(S.textStyle,h,i.ecModel))}var k=w.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=w.getShallow("align",!0)||p.textAlign,C=(n=w.getShallow("alignMinLabel",!0),n??M),T=(r=w.getShallow("alignMaxLabel",!0),r??M),I=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||p.textVerticalAlign,A=(s=w.getShallow("verticalAlignMinLabel",!0),s??I),D=(u=w.getShallow("verticalAlignMaxLabel",!0),u??I),L=10+((null==(d=t.time)?void 0:d.level)||0);y=Math.min(y,L),v=Math.max(v,L);var $=new sf({x:0,y:0,rotation:0,silent:_Y.isLabelSilent(i),z2:L,style:uY(w,{text:x,align:0===e?C:e===c.length-1?T:M,verticalAlign:0===e?A:e===c.length-1?D:I,fill:eM(k)?k("category"===a.type?b:"value"===a.type?_+"":_,e):k})});$.anid="label_"+_;var P=_V($);if(P.break=t.break,P.tickValue=_,P.layoutRotation=p.rotation,uE({el:$,componentModel:i,itemName:x,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:b,tickIndex:e}}),m){var O,E,N,R,z=_Y.makeAxisEventDataBase(i);z.targetType="axisLabel",z.value=b,z.tickIndex=e,t.break&&(z.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(z.dataIndex=_),sT($).eventData=z,t.break&&(O=i,E=o,N=$,R=t.break,N.on("click",function(t){var e={type:"expandAxisBreak",breaks:[{start:R.parsedBreak.breakOption.start,end:R.parsedBreak.breakOption.end}]};e[O.axis.dim+"AxisIndex"]=O.componentIndex,E.dispatchAction(e)}))}g.push($),l.add($)}),_5(e,ev(g,function(t){return{label:t,priority:_V(t).break?t.z2+(v-y+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}(t,e,i,s,r,a);var l,u,h,c,d,p=e.labelLayoutList;l=t,u=r,h=p,c=o,d=u.get(["axisLabel","margin"]),ey(h,function(t,e){var n=ya(t);if(n){var r=n.label,i=_V(r);n.suggestIgnore=r.ignore,r.ignore=!1,iH(_3,_4),_3.x=u.axis.dataToCoord(i.tickValue),_3.y=l.labelOffset+l.labelDirection*d,_3.rotation=i.layoutRotation,c.add(_3),_3.updateTransform(),c.remove(_3),_3.decomposeTransform(),iH(r,_3),r.markRedraw(),yi(n,!0),ya(n)}}),t.rotation;var f=t.optionHideOverlap;(function(t,e,n){if(!mL(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(r,0,1),a(i,o-1,o-2)}function a(t,r,i){var o=ya(e[r]),a=ya(e[i]);if(!(!o||!a)){if(!1===t||o.suggestIgnore)return void _J(o.label);if(a.suggestIgnore)return void _J(a.label);if(!n){var s=[0,0,0,0];o=yu({marginForce:s},o),a=yu({marginForce:s},a)}yc(o,a,null,{touchThreshold:.1})&&_J(t?a.label:o.label)}}})(r,p,f),f&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return+!!e.suggestIgnore-+!!t.suggestIgnore||e.priority-t.priority});for(var r=0;r<t.length;r++){var i=ya(t[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<e.length;l++)if(yc(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(i)}}}(ex(p,function(t){return t&&!t.label.ignore})),function(t,e,n,r){var i,o=n.axis,a=e.ensureRecord(n),s=[],l=!!t.axisName&&m$(t.nameLocation);ey(r,function(t){var e=ya(t);if(!(!e||e.label.ignore)){s.push(e);var n=a.transGroup;l&&(n.transform?nS(_G,n.transform):nv(_G),e.transform&&nx(_G,_G,e.transform),nz.copy(_j,e.localRect),_j.applyTransform(_G),i?i.union(_j):nz.copy(i=new nz(0,0,0,0),_j))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",h=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-h)-Math.abs(e.label[u]-h)}),l&&i){var c=o.getExtent(),d=Math.min(c[0],c[1]),p=Math.max(c[0],c[1])-d;i.union(new nz(d,0,p,1))}a.stOccupiedRect=i,a.labelInfoList=s}(t,n,r,p)}function _J(t){t&&(t.ignore=!0)}function _0(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(e0(a,a,e),e0(s,s,e));var h=new lQ({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});uT(h.shape,h.style.lineWidth),h.anid=i+"_"+t[l].tickValue,o.push(h);var c=_W(h);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return o}function _1(t,e,n){if(_2(t)){var r=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,o=0;o<r.length;o++)i=i&&r[o]();if(i)return!1}r.length&&(e.remove(t.labelGroup),_5(t,null,null,null))}return!0}function _2(t){return!!t.labelLayoutList}function _5(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}var _3=new sh,_4=new sh;function _6(t,e,n){n=n||{};var r=e.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],h={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,d="x"===l?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=["y"===l?d[h[s]]:u[0],"x"===l?d[h[s]]:u[3]],i.rotation=Math.PI/2*+("x"!==l),i.labelDirection=i.tickDirection=i.nameDirection=({top:-1,bottom:1,left:-1,right:1})[a],i.labelOffset=o?d[h[a]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),eO(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-f:f,i.z2=1,i}function _8(t){var e={xAxisModel:null,yAxisModel:null};return ey(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,oV).models[0];e[r]=o}),e}var _7=[[3,1],[0,2]],_9=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_O,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=eb(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;gK(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(mT(l,s),gK(l)&&(e=a))}i.length&&(e||mT((e=i.pop()).scale,e.model),ey(i,function(t){!function(t,e,n){var r=mn.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,{expandToNicedExtent:!0}),a=i.length-1,s=r.getInterval.call(n),l=mC(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;"log"===t.type&&(u=g6(t.base,u,!0)),t.setBreaksFromOption(mO(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=r.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var p=r.getInterval.call(t),f=u[0],g=u[1];if(h&&c)p=(g-f)/a;else if(h)for(g=u[0]+p*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=gJ(p),g=u[0]+p*a;else if(c)for(f=u[1]-p*a;f>u[0]&&isFinite(f)&&isFinite(u[0]);)p=gJ(p),f=u[1]-p*a;else{t.getTicks().length-1>a&&(p=gJ(p));var m=p*a;(f=oc((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(f=0,g=oc(m)):g>0&&u[1]<=0&&(g=0,f=-oc(m))}var y=(i[0].value-o[0].value)/s,v=(i[a].value-o[a].value)/s;r.setExtent.call(t,f+p*y,g+p*v),r.setInterval.call(t,p),(y||v)&&r.setNiceExtent.call(t,f+p,g-p)}(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};ey(n.x,function(t){xe(n,"y",t,i)}),ey(n.y,function(t){xe(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=h0(t,e),i=this._rect=hK(t.getBoxLayoutParams(),r.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(xr(o,i),!n){var l,u,h,c,d,p,f=(l=i,u=a,h=o,c=s,d=e,p=new _H(xs),ey(h,function(t){return ey(t,function(t){mP(t.model)&&(t.axisBuilder=function(t,e,n,r,i,o){for(var a=_6(t,n),s=!1,l=!1,u=0;u<e.length;u++)gK(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new _Y(n,r,a,i)}(l,u,t.model,d,p,!c))})}),p),g=void 0;if(s)g=xo(i.clone(),"axisLabel",null,i,o,f,r);else{var m=function(t,e,n){var r,i,o,a=t.get("outerBoundsMode",!0);"same"===a?o=e.clone():(null==a||"auto"===a)&&(o=hK(t.get("outerBounds",!0)||_b,n.refContainer));var s,l=t.get("outerBoundsContain",!0);return{outerBoundsRect:o,parsedOuterBoundsContain:null==l||"auto"===l||0>ef(["all","axisLabel"],l)?"all":l,outerBoundsClamp:[oh((r=t.get("outerBoundsClampWidth",!0),r??"25%"),e.width),oh((i=t.get("outerBoundsClampHeight",!0),i??"25%"),e.height)]}}(t,i,r),y=m.outerBoundsRect,v=m.parsedOuterBoundsContain,_=m.outerBoundsClamp;y&&(g=xo(y,v,_,i,o,f,r))}xa(i,o,mV.determine,null,g,r)}ey(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}eA(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",oV).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",oV).models[0],a=t.gridModel,s=this._coordsList;return r?0>ef(s,e=r.coordinateSystem)&&(e=null):i&&o?e=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,r){if(xt(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new _R(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new me({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new mf({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(g8.getClass(e)||mn)}}(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,ey(a.x,function(e,n){ey(a.y,function(i,o){var a="x"+n+"y"+o,s=new _N(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)})})},t.prototype._updateScale=function(t,e){ey(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type){var r=_8(t),i=r.xAxisModel,o=r.yAxisModel;if(xt(i,e)&&xt(o,e)){var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}},this);function n(t,e){var n,r;ey((n=e.dim,r={},ey(t.mapDimensionsAll(n),function(e){r[gq(t,e)?t.getCalculationInfo("stackResultDimension"):e]=!0}),eb(r)),function(n){e.scale.unionExtentFromData(t,n)})}},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return ey(this.getCartesians(),function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);0>ef(e,i)&&e.push(i),0>ef(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(t){!function(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,i=t.isDefaultDataCoordSys;t.allowNotFound;var o=function(t,e){var n=t.getShallow("coordinateSystem"),r=t.getShallow("coordinateSystemUsage",!0),i=hX.none;if(n){var o="series"===t.mainType;null==r&&(r=o?"data":"box"),"data"===r?(i=hX.dataCoordSys,o||(i=hX.none)):"box"===r&&(i=hX.boxCoordSys,o||hH[n]||(i=hX.none))}return{coordSysType:n,kind:i}}(e,0),a=o.kind,s=o.coordSysType;if(i&&a!==hX.dataCoordSys&&(a=hX.dataCoordSys,s=n),a!==hX.none&&s===n){var l=r(n,e);l&&(a===hX.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l)}}({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=_8(t),n=e.xAxisModel,r=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}})}),r},t.dimensions=_O,t}();function xt(t,e){return t.getCoordSysModel()===e}function xe(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)xn(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&xn(o[u])&&!r[h(o[u])]){i=o[u];break}i&&(r[h(i)]=!0)}function h(t){return t.dim+"_"+t.index}}function xn(t){var e,n,r;return t&&"category"!==t.type&&"time"!==t.type&&(n=(e=t.scale.getExtent())[0],r=e[1],!(n>0&&r>0||n<0&&r<0))}function xr(t,e){ey(t.x,function(t){return xi(t,e.x,e.width)}),ey(t.y,function(t){return xi(t,e.y,e.height)})}function xi(t,e,n){var r,i,o=[0,n],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),i=(r=t.getExtent())[0]+r[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function xo(t,e,n,r,i,o,a){xa(r,i,mV.estimate,e,!1,a);var s=[0,0,0,0];u(0),u(1),h(r,0,NaN),h(r,1,NaN);var l=null==function(t,e,n){if(t&&e){for(var r=0,i=t.length;r<i;r++)if(e.call(void 0,t[r],r,t))return t[r]}}(s,function(t){return t>0});return u$(r,s,!0,!0,n),xr(i,r),l;function u(t){ey(i[u_[t]],function(e){if(mP(e.model)){var n=o.ensureRecord(e.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var a=r[i],s=e.scale.normalize(_V(a.label).tickValue);s=1===t?1-s:s,h(a.rect,t,s),h(a.rect,1-t,NaN)}var l=n.nameLayout;if(l){var s=m$(n.nameLocation)?.5:NaN;h(l.rect,t,s),h(l.rect,1-t,NaN)}}})}function h(e,n,r){var i=t[u_[n]]-e[u_[n]],o=e[ux[n]]+e[u_[n]]-(t[ux[n]]+t[u_[n]]);i=c(i,1-r),o=c(o,r);var a=_7[n][0],l=_7[n][1];s[a]=oa(s[a],i),s[l]=oa(s[l],o)}function c(t,e){return t>0&&e==e&&e>1e-4&&(t/=e),t}}function xa(t,e,n,r,i,o){var a=n===mV.determine;ey(e,function(e){return ey(e,function(e){var n,r;mP(e.model)&&(n=e.axisBuilder,r=_6(t,e.model),n.updateCfg(r),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function l(e){s[u_[1-e]]=t[ux[e]]<=.5*o.refContainer[ux[e]]?0:1-e==1?2:1}l(0),l(1),ey(e,function(t,e){return ey(t,function(t){mP(t.model)&&(("all"===r||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var xs=function(t,e,n,r,i,o){var a="x"===n.axis.dim?"y":"x";_U(t,e,n,r,i,o),m$(t.nameLocation)||ey(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&_X(t.labelInfoList,t.dirVec,r,i)})};function xl(t,e){return"all"===t||ek(t)&&ef(t,e)>=0||t===e}function xu(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xc(t)]}function xh(t){return!!t.get(["handle","show"])}function xc(t){return t.type+"||"+t.id}var xd={},xp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=xu(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=xh(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o,a=(o=xu(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new i)).render(t,a,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){xd[t]=e},e.getAxisPointerClass=function(t){return t&&xd[t]},e.type="axis",e}(ph),xf=oR(),xg=["splitArea","splitLine","minorSplitLine","breakArea"],xm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return t0(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new ot,this.group.add(this._axisGroup),mP(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),ey(xg,function(t){e.get([t,"show"])&&xy[t](this,this._axisGroup,e,e.getCoordSysModel(),r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||uA(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i))},e.prototype.remove=function(){xf(this).splitAreaColors=null},e.type="cartesianAxis",e}(xp),xy={splitLine:function(t,e,n,r,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),h=!1!==a.get("showMaxLine");l=ek(l)?l:[l];for(var c=r.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=s.getLineStyle(),v=0;v<f.length;v++){var _=o.toGlobalCoord(f[v].coord);if(!(0===v&&!u||v===f.length-1&&!h)){var x=f[v].tickValue;d?(g[0]=_,g[1]=c.y,m[0]=_,m[1]=c.y+c.height):(g[0]=c.x,g[1]=_,m[0]=c.x+c.width,m[1]=_);var b=p++%l.length,w=new lQ({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:ep({stroke:l[b]},y),silent:!0});uT(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var h=[],c=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var m=new lQ({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:d,silent:!0});uT(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r,i){!function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var h=s.length,c=xf(t).splitAreaColors,d=eH(),p=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){p=(g+(h-1)*f)%h;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=ek(s)?s:[s];for(var f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=m,x=l.y,b=v-_,w=l.height,m=_+b):(_=l.x,x=m,b=l.width,w=v-x,m=x+w);var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new sh({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:ep({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%h}xf(t).splitAreaColors=d}}}(t,e,n,r)},breakArea:function(t,e,n,r,i){n.axis.scale}},xv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.type="xAxis",e}(xm),x_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=xv.type,e}return t0(e,t),e.type="yAxis",e}(xm),xx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return t0(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new sh({shape:t.coordinateSystem.getRect(),style:ep({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ph),xb={offset:0};function xw(t){t.registerComponentView(xx),t.registerComponentModel(_w),t.registerCoordinateSystem("cartesian2d",_9),_L(t,"x",_S,xb),_L(t,"y",_S,xb),t.registerComponentView(xv),t.registerComponentView(x_),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var xS=oR();function xk(t,e,n,r){(function t(e,n){if(!(eA(e)&&eA(n)))return e===n;var r=!0;return ey(n,function(n,i){r=r&&t(e[i],n)}),!!r})(xS(n).lastProp,r)||(xS(n).lastProp=r,e?uc(n,r,t):(n.stopAnimation(),n.attr(r)))}function xM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function xC(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function xT(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)})}function xI(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:mA(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};ey(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)}),eC(a)?o=a.replace("{value}",o):eM(a)&&(o=a(s))}return o}function xA(t,e,n){var r=ny();return nw(r,r,n.rotation),nb(r,r,n.position),uI([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var xD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o,a,s,l,u,h,c,d,p,f,g,m,y,v,_,x,b,w,S,k=n.axis,M=k.grid,C=r.get("type"),T=xL(M,k).getOtherAxis(k).getGlobalExtent(),I=k.toGlobalCoord(k.dataToCoord(e,!0));if(C&&"none"!==C){var A,D,L,$=(D=r.get("type"),L=r.getModel(D+"Style"),"line"===D?(A=L.getLineStyle()).fill=null:"shadow"===D&&((A=L.getAreaStyle()).stroke=null),A),P=x$[C](k,I,T);P.style=$,t.graphicKey=P.type,t.pointer=P}var O=_6(M.getRect(),n);c=_Y.innerTextLayout(O.rotation,0,O.labelDirection),O.labelMargin=r.get(["label","margin"]),d={position:xA(n.axis,e,O),align:c.textAlign,verticalAlign:c.textVerticalAlign},p=xI(r.get("value"),n.axis,n.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),g=eN((f=r.getModel("label")).get("padding")||0),y=iY(p,m=f.getFont()),v=d.position,_=y.width+g[1]+g[3],x=y.height+g[0]+g[2],"right"===(b=d.align)&&(v[0]-=_),"center"===b&&(v[0]-=_/2),"bottom"===(w=d.verticalAlign)&&(v[1]-=x),"middle"===w&&(v[1]-=x/2),o=v,a=_,s=x,u=(l=i).getWidth(),h=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,h)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),(S=f.get("backgroundColor"))&&"auto"!==S||(S=n.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:uY(f,{text:p,font:m,fill:f.getTextColor(),padding:g,backgroundColor:S}),z2:10}},e.prototype.getHandleTransform=function(t,e,n){var r=_6(e.axis.grid.getRect(),e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=xA(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=xL(o,i).getOtherAxis(i).getGlobalExtent(),l=+("x"!==i.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=eS(xk,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new ot,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);xT(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=xu(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=xS(t).pointerEl=new uG[i.type](eh(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=xS(t).labelEl=new sf(eh(e.label));t.add(i),xM(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=xS(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=xS(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),xM(i,r))},t.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){i&&r.remove(i),this._handle=null;return}this._handle||(e=!0,i=this._handle=uD(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){np(t.event)},onmousedown:ew(this._onHandleDragMove,this,0,0),drift:ew(this._onHandleDragMove,this),ondragend:ew(this._onHandleDragEnd,this)}),r.add(i)),xT(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");ek(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,pk(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){xk(this._axisPointerModel,!e&&this._moveAnimation,this._handle,xC(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(xC(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xC(r)),xS(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),pM(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}());function xL(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var x$={line:function(t,e,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],i=[e,n[1]],{x1:r[o=(o=xP(t))||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(t,e,n){var r,i,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[e-a/2,n[0]],i=[a,s],{x:r[o=(o=xP(t))||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function xP(t){return+("x"!==t.dim)}var xO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:h7.color.border,width:1,type:"dashed"},shadowStyle:{color:h7.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:h7.color.neutral00,padding:[5,7,5,7],backgroundColor:h7.color.accent60,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:h7.color.accent40,throttle:40}},e}(h4),xE=oR();function xN(t,e,n){if(!t2.node){var r=e.getZr();xE(r).records||(xE(r).records={}),function(t,e){xE(t).initialized||(xE(t).initialized=!0,n("click",eS(xz,"click")),n("mousemove",eS(xz,"mousemove")),n("globalout",xR));function n(n,r){t.on(n,function(n){var i,o,a,s,l,u,h,c,d=(i=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,i.dispatchAction(t))},pendings:o});ey(xE(t).records,function(t){t&&r(t,n,d.dispatchAction)}),s=d.pendings,l=e,h=s.showTip.length,c=s.hideTip.length,h?u=s.showTip[h-1]:c&&(u=s.hideTip[c-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(r,e),(xE(r).records[t]||(xE(r).records[t]={})).handler=n}}function xR(t,e,n){t.handler("leave",null,n)}function xz(t,e,n,r){e.handler(t,n,r)}function xB(t,e){if(!t2.node){var n=e.getZr();(xE(n).records||{})[t]&&(xE(n).records[t]=null)}}var xF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";xN("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){xB("axisPointer",e)},e.prototype.dispose=function(t,e){xB("axisPointer",e)},e.type="axisPointer",e}(ph);function xV(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=oN(o,t);if(null==a||a<0||ek(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,d=+("x"===h||"radius"===h),p=o.mapDimension(c),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(ev(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var xW=oR();function xH(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t.dispatchAction||ew(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){xX(i)&&(i=xV({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h,c,d,p,f,g,m,y,v,_=xX(i),x=t.axesInfo,b=a.axesInfo,w="leave"===r||xX(i),S={},k={},M={list:[],map:{}},C={showPointer:eS(xj,k),showTooltip:eS(xU,M)};ey(a.coordSysMap,function(t,e){var n=_||t.containPoint(i);ey(a.coordSysAxesInfo[e],function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(x,t);if(!w&&n&&(!x||o)){var a=o&&o.value;null!=a||_||(a=r.pointToData(i)),null!=a&&xG(t,a,C,!1,S)}})});var T={};return ey(b,function(t,e){var n=t.linkGroup;n&&!k[e]&&ey(n.axesInfo,function(e,r){var i=k[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,xZ(e),xZ(t)))),T[t.key]=o}})}),ey(T,function(t,e){xG(b[e],t,C,!0,S)}),s=k,l=b,u=S.axesInfo=[],ey(l,function(t,e){var n=t.axisPointerModel.option,r=s[e];r?(t.useHandle||(n.status="show"),n.value=r.value,n.seriesDataIndices=(r.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,r){if(xX(e)||!t.list.length)return r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(M,i,t,o),h=b,c=0,p=(d=n).getZr(),f="axisPointerLastHighlights",g=xW(p)[f]||{},m=xW(p)[f]={},ey(h,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&ey(n.seriesDataIndices,function(t){m[t.seriesIndex+" | "+t.dataIndex]=t})}),y=[],v=[],ey(g,function(t,e){m[e]||v.push(t)}),ey(m,function(t,e){g[e]||y.push(t)}),v.length&&d.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),y.length&&d.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),S}}function xG(t,e,n,r,i){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,d,p,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],d=Number.MAX_VALUE,p=-1,ey(s.seriesModels,function(t,e){var n,r,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(i,a,l);r=o.dataIndices,n=o.nestestValue}else{if(!(r=t.indicesOfNearest(u,i[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(i[0],r[0])}if(!(null==n||!isFinite(n))){var s=a-n,f=Math.abs(s);f<=d&&((f<d||s>=0&&p<0)&&(d=f,p=s,h=n,c.length=0),ey(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),g=f.payloadBatch,m=f.snapToValue;g[0]&&null==i.seriesIndex&&ed(i,g[0]),!r&&t.snap&&o.containData(m)&&null!=m&&(e=m),n.showPointer(t,e,g),n.showTooltip(t,f,m)}}function xj(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function xU(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=xc(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function xZ(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function xX(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function xY(t){xp.registerAxisPointerClass("CartesianAxisPointer",xD),t.registerComponentModel(xO),t.registerComponentView(xF),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!ek(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){var n,r,i,o,a,s,l,u,h;t.getComponent("axisPointer").coordSysAxesInfo=(r=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},i=t,o=e,a=i.getComponent("tooltip"),l=(s=i.getComponent("axisPointer")).get("link",!0)||[],u=[],ey(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=xc(t.model),n=r.coordSysAxesInfo[e]={};r.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(ey(t.getAxes(),eS(p,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var h="axis"===o.get("trigger"),c="cross"===o.get(["axisPointer","type"]),d=t.getTooltipAxes(o.get(["axisPointer","axis"]));(h||c)&&ey(d.baseAxes,eS(p,!c||"cross",h)),c&&ey(d.otherAxes,eS(p,"cross",!1))}}function p(e,a,h){var c=h.model.getModel("axisPointer",s),d=c.get("show");if(!(!d||"auto"===d&&!e&&!xh(c))){null==a&&(a=c.get("triggerTooltip"));var p=(c=e?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};ey(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=eh(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i&&(l.show=a.get(["label","show"])??!0,!o)){var u=s.lineStyle=a.get("crossStyle");u&&ep(l,u.textStyle)}return t.model.getModel("axisPointer",new hr(s,n,r))}(h,o,s,i,e,a):c).get("snap"),f=c.get("triggerEmphasis"),g=xc(h.model),m=a||p||"category"===h.type,y=r.axesInfo[g]={key:g,axis:h,coordSys:t,axisPointerModel:c,triggerTooltip:a,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:xh(c),seriesModels:[],linkGroup:null};n[g]=y,r.seriesInvolved=r.seriesInvolved||m;var v=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(xl(o[r+"AxisId"],n.id)||xl(o[r+"AxisIndex"],n.componentIndex)||xl(o[r+"AxisName"],n.name))return i}}(l,h);if(null!=v){var _=u[v]||(u[v]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=l[v].mapper,y.linkGroup=_}}}}),n.seriesInvolved&&(h=n,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);e&&e.model&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&ey(h.coordSysAxesInfo[xc(e.model)],function(n){var r=n.axis;e.getAxis(r.dim)===r&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xH)}var xq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:h7.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:h7.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:h7.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:h7.color.tertiary,fontSize:14}},e}(h4);function xQ(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function xK(t){if(t2.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var xJ=xK(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function x0(t,e){if(!t)return e;e=hN(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var x1=x0(xK(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),x2=x0(xJ,"transform"),x5="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(t2.transform3dSupported?"will-change:transform;":"");function x3(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!t2.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=t2.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+x2+":"+a+";":[["top",0],["left",0],[xJ,a]]}function x4(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&ne(nt,a,r,i,!0)&&ne(t,n,nt[0],nt[1])}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var x6=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,t2.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(eC(i)?document.querySelector(i):e$(i)?i:eM(i)&&i(t.getDom()));x4(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;nd(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,n=this._api.getDom(),r=(e=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?e.position:null,i=n.style;"absolute"!==i.position&&"absolute"!==r&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,r,i,o,a,s,l,u,h,c,d,p,f,g,m,y,v,_,x,b,w,S,k,M,C,T,I=this.el,A=I.style,D=this._styleCoord;I.innerHTML?A.cssText=x5+(n=!this._firstShow,r=this._longHide,i=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),p=d7(t,"html"),f=h+"px "+c+"px "+l+"px "+u,o.push("box-shadow:"+f),n&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",m="",y="",i&&(y="opacity"+(m=" "+a/2+"s "+g)+",visibility"+m),r||(m=" "+a+"s "+g,y+=(y.length?",":"")+(t2.transformSupported?""+x2+m:",left"+m+",top"+m)),x1+":"+y)),s&&o.push("background-color:"+s),ey(["width","color","radius"],function(e){var n="border-"+e,r=hN(n),i=t.get(r);null!=i&&o.push(n+":"+i+("color"===e?"":"px"))}),o.push((v=[],_=d.get("fontSize"),(x=d.getTextColor())&&v.push("color:"+x),v.push("font:"+d.getFont()),b=d.get("lineHeight"),w=Math.round(3*_/2),S=b??w,_&&v.push("line-height:"+S+"px"),k=d.get("textShadowColor"),M=d.get("textShadowBlur")||0,C=d.get("textShadowOffsetX")||0,T=d.get("textShadowOffsetY")||0,k&&M&&v.push("text-shadow:"+C+"px "+T+"px "+M+"px "+k),ey(["decoration","align"],function(t){var e=d.get(t);e&&v.push("text-"+t+":"+e)}),v.join(";"))),null!=p&&o.push("padding:"+eN(p).join("px ")+"px"),o.join(";")+";")+x3(D[0],D[1],!0)+"border-color:"+hV(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):A.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(eC(i)&&"item"===n.get("trigger")&&!xQ(n)&&(a=function(t,e,n){if(!eC(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=hV(e);var o,a,s=o="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",h=x2+":";ef(["left","right"],s)>-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,d=l+i,p=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c));u+=";"+s+":-"+Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2)*100)/100+"px";var f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+h+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),eC(t))o.innerHTML=t+a;else if(t){o.innerHTML="",ek(t)||(t=[t]);for(var s=0;s<t.length;s++)e$(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(x4(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;ey(x3(n[0],n[1]),function(t){r[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",t2.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ew(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){t&&n(t),e&&n(e);function n(t){var e=t[e9];e&&(e.clearMarkers&&e.clearMarkers(),delete t[e9])}}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}(),x8=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),bt(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;eA(t)&&oM(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new sf({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:d7(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),ey(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),ey(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=x9(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;bt(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=x7(i.borderWidth||0),a=x9(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ew(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function x7(t){return Math.max(0,t)}function x9(t){var e=x7(t.shadowBlur||0),n=x7(t.shadowOffsetX||0),r=x7(t.shadowOffsetY||0);return{left:x7(e-n),right:x7(e+n),top:x7(e-r),bottom:x7(e+r)}}function bt(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var be=new sh({shape:{x:-1,y:-1,width:2,height:2}}),bn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.init=function(t,e){if(!(t2.node||!e.getDom())){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?t2.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new x8(e):new x6(e,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!(t2.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?pk(this,"_updatePosition",50,"fixRate"):pM(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");xN("itemTooltip",this._api,ew(function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,r){if(!(r.from===this.uid||t2.node||!n.getDom())){var i=bi(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=oF(t).queryOptionMap,i=r.keys()[0];if(!(!i||"series"===i)){var o,a=oW(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=sT(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o))return{componentMainType:i,componentIndex:a.componentIndex,el:o}}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y)be.x=r.x,be.y=r.y,be.update(),sT(be).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:be},i);else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var l=xV(r,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(bi(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s&&"axis"===br([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r,i,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===sT(n).ssrType)return;this._lastDataByCoordSys=null,p2(n,function(t){if(t.tooltipDisabled)return r=i=null,!0;r||i||(null!=sT(t).dataIndex?r=t:null!=sT(t).tooltipConfig&&(i=t))},!0),r?this._showSeriesItemTooltip(t,r,e):i?this._showComponentItemTooltip(t,i,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=ew(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=br([e.tooltipOption],r),a=this._renderMode,s=[],l=d1("section",{blocks:[],noHeader:!0}),u=[],h=new d9;ey(t,function(t){ey(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(!(!e||null==i)){var o=xI(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=d1("section",{header:o,noHeader:!ez(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),ey(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=mA(e.axis,{value:i}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",hV(f.color),a);var g=dk(d.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=br([d],r).get("valueFormatter");c.blocks.push(y?ed({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,d=d4(l,h,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var p="richText"===a?`
|
|
44
|
+
|
|
45
|
+
`:"<br/>",f=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",i[0],i[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=sT(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,h=s.getData(u),c=this._renderMode,d=t.positionDefault,p=br([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new d9;g.marker=m.makeTooltipMarker("item",hV(g.color),c);var y=dk(s.formatTooltip(l,!1,u)),v=p.get("order"),_=p.get("valueFormatter"),x=y.frag,b=x?d4(_?ed({valueFormatter:_},x):x,m,c,v,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=sT(e),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(eC(o)){var s=o;o={content:s,formatter:s},a=!0}a&&r&&o.content&&((o=eh(o)).content=no(o.content));var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=br(l,this._tooltipModel,h?{position:h}:null),d=c.get("content"),p=Math.random()+"",f=new d9;this._showOrMove(c,function(){var n=eh(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,p,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(h)if(eC(h)){var p=t.ecModel.get("useUTC"),f=ek(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;c=h,g&&(c=h_(f.axisValue,c,p)),c=hF(c,n,!0)}else if(eM(h)){var m=ew(function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))},this);this._ticket=r,c=h(n,r,m)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r,i){return"axis"===n||ek(e)?{color:r||i}:ek(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),eM(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),ek(e))n=ou(e[0],s),r=ou(e[1],l);else if(eA(e)){var p=e;p.width=u[0],p.height=u[1];var f=hK(p,{width:s,height:l});n=f.x,r=f.y,h=null,c=null}else if(eC(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+h+a;break;case"left":s=e.x-i-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else{var m,y,v,_,x,b,w,S,k,M,g=(m=n,y=r,v=i,_=s,x=l,b=h?null:20,w=c?null:20,k=(S=v.getSize())[0],M=S[1],null!=b&&(m+k+b+2>_?m-=k+b:m+=b),null!=w&&(y+M+w>x?y-=M+w:y+=w),[m,y]);n=g[0],r=g[1]}if(h&&(n-=bo(h)?u[0]/2:"right"===h?u[0]:0),c&&(r-=bo(c)?u[1]/2:"bottom"===c?u[1]:0),xQ(t)){var C,T,I,A,D,L,$,P,g=(C=n,T=r,I=i,A=s,D=l,$=(L=I.getSize())[0],P=L[1],C=Math.min(C+$,A)-$,T=Math.min(T+P,D)-P,[C=Math.max(C,0),T=Math.max(T,0)]);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&ey(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&ey(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&ey(a,function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),r&&ey(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){t2.node||!e.getDom()||(pM(this,"_updatePosition"),this._tooltipContent.dispose(),xB("itemTooltip",e))},e.type="tooltip",e}(ph);function br(t,e,n){var r,i=e.ecModel;n?(r=new hr(n,i,i),r=new hr(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof hr&&(a=a.get("tooltip",!0)),eC(a)&&(a={formatter:a}),a&&(r=new hr(a,r,i)))}return r}function bi(t,e){return t.dispatchAction||ew(e.dispatchAction,e)}function bo(t){return"center"===t||"middle"===t}var ba=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t0(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:h7.size.m,backgroundColor:h7.color.transparent,borderColor:h7.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:h7.color.primary},subtextStyle:{fontSize:12,color:h7.color.quaternary}},e}(h4),bs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r,i,o=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=(r=t.get("textBaseline"),i=t.get("textVerticalAlign"),r??i),h=new sf({style:uY(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),d=t.get("subtext"),p=new sf({style:uY(s,{text:d,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);h.silent=!f&&!m,p.silent=!g&&!m,f&&h.on("click",function(){hW(f,"_"+t.get("target"))}),g&&p.on("click",function(){hW(g,"_"+t.get("subtarget"))}),sT(h).eventData=sT(p).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,o.add(h),d&&o.add(p);var y=o.getBoundingRect(),v=t.getBoxLayoutParams();v.width=y.width,v.height=y.height;var _=hK(v,h0(t,n).refContainer,t.get("padding"));l||("middle"===(l=t.get("left")||t.get("right"))&&(l="center"),"right"===l?_.x+=_.width:"center"===l&&(_.x+=_.width/2)),u||("center"===(u=t.get("top")||t.get("bottom"))&&(u="middle"),"bottom"===u?_.y+=_.height:"middle"===u&&(_.y+=_.height/2),u=u||"top"),o.x=_.x,o.y=_.y,o.markRedraw();var x={align:l,verticalAlign:u};h.setStyle(x),p.setStyle(x),y=o.getBoundingRect();var b=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var S=new sh({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});o.add(S)}},e.type="title",e}(ph),bl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t0(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),ek(e)&&ey(e,function(t,r){var i;eC(t)&&(t={type:t}),e[r]=ec(t,"all"===(i=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===i?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}e||this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&oO(r)&&e.push(r.name)}),this._availableNames=n;var r=this.get("data")||e,i=eH(),o=ev(r,function(t){return(eC(t)||eI(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new hr(t,this,this.ecModel))},this);this._data=ex(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&ey(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;ey(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;ey(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&ef(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:h7.size.m,align:"auto",backgroundColor:h7.color.transparent,borderColor:h7.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:h7.color.disabled,inactiveBorderColor:h7.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:h7.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:h7.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:h7.color.tertiary,borderWidth:1,borderColor:h7.color.border},emphasis:{selectorLabel:{show:!0,color:h7.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(h4),bu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return t0(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new ot),this.group.add(this._selectorGroup=new ot),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i,o,a=t.get("align"),s=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(a,t,e,n,l,s,u);var h=h0(t,n).refContainer,c=t.getBoxLayoutParams(),d=t.get("padding"),p=hK(c,h,d),f=this.layoutInner(t,a,p,r,l,u),g=hK(ep({width:f.width,height:f.height},c),h,d);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(i=eN(t.get("padding")),(o=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),new sh({shape:{x:f.x-i[3],y:f.y-i[0],width:f.width+i[1]+i[3],height:f.height+i[0]+i[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=eH(),u=e.get("selectedMode"),h=e.get("triggerEvent"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),ey(e.getData(),function(i,o){var a=this,d=i.get("name");if(!this.newlineDisabled&&(""===d||d===`
|
|
46
|
+
`)){var p=new ot;p.newline=!0,s.add(p);return}var f=n.getSeriesByName(d)[0];if(!l.get(d))if(f){var g=f.getData(),m=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),v=g.getVisual("style"),_=this._createItem(f,d,o,i,e,t,m,v,y,u,r);_.on("click",eS(bh,d,null,r,c)).on("mouseover",eS(bd,f.name,null,r,c)).on("mouseout",eS(bp,f.name,null,r,c)),n.ssr&&_.eachChild(function(t){var e=sT(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&_.eachChild(function(t){a.packEventData(t,e,f,o,d)}),l.set(d,!0)}else n.eachRawSeries(function(a){var s=this;if(!l.get(d)&&a.legendVisualProvider){var p=a.legendVisualProvider;if(!p.containName(d))return;var f=p.indexOfName(d),g=p.getItemVisual(f,"style"),m=p.getItemVisual(f,"legendIcon"),y=rG(g.fill);y&&0===y[3]&&(y[3]=.2,g=ed(ed({},g),{fill:rX(y,"rgba")}));var v=this._createItem(a,d,o,i,e,t,{},g,m,u,r);v.on("click",eS(bh,null,d,r,c)).on("mouseover",eS(bd,null,d,r,c)).on("mouseout",eS(bp,null,d,r,c)),n.ssr&&v.eachChild(function(t){var e=sT(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&v.eachChild(function(t){s.packEventData(t,e,a,o,d)}),l.set(d,!0)}},this)},this),i&&this._createSelector(i,e,r,o,a)},e.prototype.packEventData=function(t,e,n,r,i){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};sT(t).eventData=o},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();ey(t,function(t){var r=t.type,i=new sf({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(i),uZ(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),s9(i)})},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,h){var c=t.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),y=r.get("icon"),v=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),ey(t,function(n,r){"inherit"===t[r]&&(t[r]=e[r])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?fI(c,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[h]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",r,a,s,c,f,h),_=new ot,x=r.getModel("textStyle");if(eM(t.getLegendIcon)&&(!y||"inherit"===y))_.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}));else{var b,w,S,k="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(((S=fi(w=(b={itemWidth:d,itemHeight:p,icon:l,iconRotate:k,itemStyle:v.itemStyle,symbolKeepAspect:m}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill=h7.color.neutral00,S.style.lineWidth=2),S))}var M=i.get("formatter"),C=e;eC(M)&&M?C=M.replace("{name}",e??""):eM(M)&&(C=M(e));var T=f?x.getTextColor():r.get("inactiveColor");_.add(new sf({style:uY(x,{text:C,x:"left"===o?d+5:-5,y:p/2,fill:T,align:o,verticalAlign:"middle"},{inheritColor:T})}));var I=new sh({shape:_.getBoundingRect(),style:{fill:"transparent"}}),A=r.getModel("tooltip");return A.get("show")&&uE({el:I,componentModel:i,itemName:e,itemTooltipOption:A.option}),_.add(I),_.eachChild(function(t){t.silent=!0}),I.silent=!u,this.getContentGroup().add(_),s9(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();hQ(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!i)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();hQ("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?c[p]+=l[f]+d:u[p]+=h[f]+d,c[1-p]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+h[f],y[g]=Math.max(l[g],h[g]),y[m]=Math.min(0,h[m]+c[1-p]),y},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ph);function bh(t,e,n,r){bp(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),bd(t,e,n,r)}function bc(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function bd(t,e,n,r){bc(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function bp(t,e,n,r){bc(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function bf(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function bg(t,e,n){var r="allSelect"===t||"inverseSelect"===t,i={},o=[];n.eachComponent({mainType:"legend",query:e},function(n){r?n[t]():n[t](e.name),bm(n,i),o.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(t){ey(i,function(e,n){t[e?"select":"unSelect"](n)}),bm(t,a)}),r?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function bm(t,e){var n=e||{};return ey(t.getData(),function(e){var r=e.get("name");if(r!==`
|
|
47
|
+
`&&""!==r){var i=t.isSelected(r);ej(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function by(t){t.registerComponentModel(bl),t.registerComponentView(bu),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,bf),t.registerSubTypeDefaulter("legend",function(){return"plain"}),t.registerAction("legendToggleSelect","legendselectchanged",eS(bg,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",eS(bg,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",eS(bg,"inverseSelect")),t.registerAction("legendSelect","legendselected",eS(bg,"select")),t.registerAction("legendUnSelect","legendunselected",eS(bg,"unSelect"))}var bv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return t0(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=h5(e);t.prototype.init.call(this,e,n,r),b_(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),b_(this,this.option,e)},e.type="legend.scroll",e.defaultOption=ha(bl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:h7.color.accent50,pageIconInactiveColor:h7.color.accent10,pageIconSize:15,pageTextStyle:{color:h7.color.tertiary},animationDurationUpdate:800}),e}(bl);function b_(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,h2(e,n,{type:"box",ignoreSize:!!i})}var bx=["width","height"],bb=["x","y"],bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t0(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new ot),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ot)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,h=n.get("pageIconSize",!0),c=ek(h)?h:[h,h];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var r=uD(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:ew(l._pageGo,l,t+"DataIndex",n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});r.name=t,u.add(r)}u.add(new sf({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=bx[s],u=bb[s],h=bx[1-s],c=bb[1-s];i&&hQ("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=eh(n);i&&(g[l]=n[l]-p[l]-d);var m=this._layoutContentAndController(t,r,g,s,l,h,c,u);if(i){if("end"===o)f[s]+=m[l]+d;else{var y=p[l]+d;f[s]-=y,m[u]-=y}m[l]+=p[l]+d,f[1-s]+=m[c]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[c]=Math.min(m[c],p[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l,u,h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;hQ(t.get("orient"),h,t.get("itemGap"),r?n.width:null,r?null:n.height),hQ("horizontal",d,t.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[i]>n[i],m=[-p.x,-p.y];e||(m[r]=h[s]);var y=[0,0],v=[-f.x,-f.y],_=(l=t.get("pageButtonGap",!0),u=t.get("itemGap",!0),l??u);g&&("end"===t.get("pageButtonPosition",!0)?v[r]+=n[i]-f[i]:y[r]+=f[i]+_),v[1-r]+=p[o]/2-f[o]/2,h.setPosition(m),c.setPosition(y),d.setPosition(v);var x={x:0,y:0};if(x[i]=g?n[i]:p[i],x[o]=Math.max(p[o],f[o]),x[a]=Math.min(0,f[a]+v[1-r]),c.__rectSize=n[i],g){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-_,0),b[o]=x[o],c.setClipPath(new sh({shape:b})),c.__rectSize=b[i]}else d.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&uc(h,{x:w.contentPosition[0],y:w.contentPosition[1]},g?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;ey(["pagePrev","pageNext"],function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",eC(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=bx[i],a=bb[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[i]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=h;++f)(!(y=v(l[f]))&&m.e>g.s+r||y&&!_(y,g.s))&&(g=m.i>g.i?m:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=y;for(var f=s-1,g=p,m=p,y=null;f>=-1;--f)(!(y=v(l[f]))||!_(m,y.s))&&g.i<m.i&&(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=y;return d;function v(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)}),e??n):0},e.type="legend.scroll",e}(bu);function bS(t){mz(by),t.registerComponentModel(bv),t.registerComponentView(bw),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function bk({node:t}){let e=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var n,r;if(!e.current)return;let i=function(t,e,n){var r=!(n&&n.ssr);if(r){var i=function(t){return gh[t.getAttribute?t.getAttribute(gp):t[gp]]}(t);if(i)return i}var o=new f9(t,null,n);return o.id="ec_"+gd++,gh[o.id]=o,r&&oH(t,gp,o.id),f4(o),fD.trigger("afterinit",o),o}(e.current,0,{renderer:"svg"}),{chartData:o}=t;if(!o)return;let a=o.type;"area"===a&&(a="line"),"unknown"===a&&(a="bar");let s={show:o.hasLegend};"top"===o.legendPos?(s.top=0,s.left="center"):"bottom"===o.legendPos?(s.bottom=0,s.left="center"):"left"===o.legendPos?(s.left=0,s.top="middle",s.orient="vertical"):"right"===o.legendPos&&(s.right=0,s.top="middle",s.orient="vertical");let l={left:"left"===o.legendPos?"20%":"10%",right:"right"===o.legendPos?"20%":"10%",bottom:"bottom"===o.legendPos?"15%":"10%",top:"top"===o.legendPos||o.title?"15%":"10%",containLabel:!0},u={title:o.title?{text:o.title,left:"center",textStyle:{fontSize:14,fontWeight:"normal"}}:void 0,tooltip:{trigger:"axis"},legend:s,grid:l,series:o.series.map(t=>({name:t.name,type:a,data:"pie"===o.type?t.values.map((t,e)=>({value:t,name:o.categories[e]})):t.values,areaStyle:"area"===o.type?{}:void 0,itemStyle:t.color?{color:t.color}:void 0}))};if("pie"!==o.type){let t=(null==(n=o.axes)?void 0:n.x)||{showLabels:!0,showGrid:!1},e=(null==(r=o.axes)?void 0:r.y)||{showLabels:!1,showGrid:!1},i=t=>{var e;if(!t)return;let n="",r="";if((t.includes("$")||t.includes("€")||t.includes("\xa3"))&&(n=(null==(e=t.match(/[$€£]/))?void 0:e[0])||""),t.includes("%")&&(r="%"),n||r)return t=>`${n}${t}${r}`};u.xAxis={type:"category",data:o.categories,name:t.title,nameLocation:"middle",nameGap:25,axisLabel:{show:!1!==t.showLabels,interval:0,rotate:45*(o.categories.length>5),formatter:i(t.formatCode)},splitLine:{show:!0===t.showGrid},axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!1},min:void 0!==t.min?t.min:void 0,max:void 0!==t.max?t.max:void 0},u.yAxis={type:"value",name:e.title,nameLocation:"middle",nameGap:30,axisLabel:{show:!1!==e.showLabels,formatter:i(e.formatCode)},splitLine:{show:!0===e.showGrid},axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!1},min:void 0!==e.min?e.min:void 0,max:void 0!==e.max?e.max:void 0}}else u.tooltip.trigger="item",u.series.forEach(t=>{t.radius="60%",t.center=["50%","50%"],t.label={show:!0,formatter:"{b}: {d}%"}});return i.setOption(u),()=>i.dispose()},[t]),(0,o.jsx)("div",{ref:e,style:{width:"100%",height:"100%"}})}function bM({node:t}){var e;let n=null==(e=t.effectProps)?void 0:e.shadow,r={position:"absolute",left:`${t.offset.x}px`,top:`${t.offset.y}px`,width:`${t.size.w}px`,height:`${t.size.h}px`,zIndex:t.order,overflow:"table"===t.type?"hidden":void 0},i=[];t.rotate&&i.push(`rotate(${t.rotate}deg)`),t.flipH&&i.push("scaleX(-1)"),t.flipV&&i.push("scaleY(-1)"),i.length>0&&(r.transform=i.join(" "),r.transformOrigin="center center"),n&&(r.filter=`drop-shadow(${n.dx.toFixed(1)}px ${n.dy.toFixed(1)}px ${n.blur.toFixed(1)}px ${function(t,e){let n=parseInt(t.slice(1,3),16),r=parseInt(t.slice(3,5),16),i=parseInt(t.slice(5,7),16);return`rgba(${n},${r},${i},${e.toFixed(2)})`}(n.color,n.opacity)})`);let a=null;switch(t.type){case"shape":a=(0,o.jsx)(tX,{node:t});break;case"picture":a=(0,o.jsx)(tq,{node:t});break;case"table":a=(0,o.jsx)(tQ,{node:t});break;case"chart":a=(0,o.jsx)(bk,{node:t});break;case"group":a=(0,o.jsx)(tK,{node:t})}return(0,o.jsx)("div",{style:r,children:a})}function bC({slide:t,width:e,height:n}){let r=tV(t.background);return(0,o.jsx)("div",{style:{width:`${e}px`,height:`${n}px`,position:"relative",overflow:"hidden",...r},children:[...t.nodes].sort((t,e)=>t.order-e.order).map((t,e)=>(0,o.jsx)(bM,{node:t},e))})}function bT({slide:t,slideWidth:e,slideHeight:n,userZoom:r=1,onZoomChange:i}){let s=(0,a.useRef)(null),[l,u]=(0,a.useState)(1);(0,a.useEffect)(()=>{window.myNodes=t.nodes;let r=()=>{if(!s.current)return;let t=s.current.clientWidth-40;u(Math.min(Math.max(.1,t/e),Math.max(.1,(s.current.clientHeight-40)/n)))};r();let i=new ResizeObserver(r);return s.current&&i.observe(s.current),()=>i.disconnect()},[e,n]);let h=l*r,c=(0,a.useCallback)(t=>{if(t.ctrlKey||t.metaKey){t.preventDefault();let e=t.deltaY>0?-.08:.08;null==i||i(Math.max(.25,Math.min(3,r+e)))}},[r,i]);return(0,o.jsx)("div",{ref:s,onWheel:c,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",padding:20,backgroundColor:"#d8dce3"},children:(0,o.jsx)("div",{style:{width:e*h,height:n*h,flexShrink:0,position:"relative",boxShadow:"0 4px 24px rgba(0,0,0,0.22)",backgroundColor:"#fff"},children:(0,o.jsx)("div",{style:{position:"absolute",top:0,left:0,width:e,height:n,transform:`scale(${h})`,transformOrigin:"top left"},children:(0,o.jsx)(bC,{slide:t,width:e,height:n})})})})}function bI({slides:t,slideWidth:e,slideHeight:n,currentIndex:r,onSelect:i}){let a=180/e,s=n*a;return(0,o.jsx)("div",{style:{width:"212px",overflowY:"auto",padding:"12px 16px",backgroundColor:"#f5f5f5",borderRight:"1px solid #ddd",flexShrink:0},children:t.map((t,l)=>(0,o.jsxs)("div",{onClick:()=>i(l),style:{marginBottom:"12px",cursor:"pointer",border:l===r?"2px solid #4285f4":"2px solid transparent",borderRadius:"4px",overflow:"hidden",position:"relative"},children:[(0,o.jsx)("div",{style:{width:"180px",height:`${s}px`,overflow:"hidden",position:"relative"},children:(0,o.jsx)("div",{style:{transform:`scale(${a})`,transformOrigin:"0 0",pointerEvents:"none"},children:(0,o.jsx)(bC,{slide:t,width:e,height:n})})}),(0,o.jsx)("div",{style:{position:"absolute",bottom:"4px",right:"6px",fontSize:"11px",color:"#666",backgroundColor:"rgba(255,255,255,0.8)",padding:"1px 4px",borderRadius:"2px"},children:l+1})]},l))})}mz([function(t){t.registerPainter("svg",vr)},function(t){t.registerChartView(vX),t.registerSeriesModel(vF),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,eS(mh,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:pc(),reset:function(t){if(mc(t)){var e,n,r,i=t.getData(),o=t.coordinateSystem,a=o.getBaseAxis(),s=o.getOtherAxis(a),l=i.getDimensionIndex(i.mapDimension(s.dim)),u=i.getDimensionIndex(i.mapDimension(a.dim)),h=t.get("showBackground",!0),c=i.mapDimension(s.dim),d=i.getCalculationInfo("stackResultDimension"),p=gq(i,c)&&!!i.getCalculationInfo("stackedOnSeries"),f=s.isHorizontal(),g=(e=0,(r=(n=s).model.get("startValue"))||(r=0),n.toGlobalCoord(n.dataToCoord("log"===n.type?r>0?r:1:r))),m=md(t),y=t.get("barMinHeight")||0,v=d&&i.getDimensionIndex(d),_=i.getLayout("size"),x=i.getLayout("offset");return{progress:function(t,e){for(var n,r=t.count,i=m&&mo(3*r),a=m&&h&&mo(3*r),s=m&&mo(r),c=o.master.getRect(),d=f?c.width:c.height,b=e.getStore(),w=0;null!=(n=t.next());){var S=b.get(p?v:l,n),k=b.get(u,n),M=g,C=void 0;p&&(C=+S-b.get(l,n));var T=void 0,I=void 0,A=void 0,D=void 0;if(f){var L=o.dataToPoint([S,k]);if(p){var $=o.dataToPoint([C,k]);M=$[0]}T=M,I=L[1]+x,A=L[0]-M,D=_,Math.abs(A)<y&&(A=(A<0?-1:1)*y)}else{var L=o.dataToPoint([k,S]);if(p){var $=o.dataToPoint([k,C]);M=$[1]}T=L[0]+x,I=M,A=_,Math.abs(D=L[1]-M)<y&&(D=(D<=0?-1:1)*y)}m?(i[w]=T,i[w+1]=I,i[w+2]=f?A:D,a&&(a[w]=f?c.x:T,a[w+1]=f?I:c.y,a[w+2]=d),s[n]=n):e.setItemLayout(n,{x:T,y:I,width:A,height:D}),w+=3}m&&e.setLayout({largePoints:i,largeDataIndices:s,largeBackgroundPoints:a,valueAxisHorizontal:f})}}}}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vz("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})},function(t){t.registerChartView(vO),t.registerSeriesModel(vo),t.registerLayout(vE("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vz("line"))},function(t){var e;t.registerChartView(_d),t.registerSeriesModel(_g),e=t.registerAction,ey([["pieToggleSelect","toggleSelect"],["pieSelect","select"],["pieUnSelect","unselect"]],function(t){e(t[0],function(e,n,r){var i,o;e=ed({},e),r.dispatchAction(ed(e,{type:t[1],seriesIndex:(i=e,o=[],n.eachComponent({mainType:"series",subType:"pie",query:i},function(t){o.push(t.seriesIndex)}),o)}))})}),t.registerLayout(eS(_n,"pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var r=t.getData();r.filterSelf(function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0})}}}),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(eI(r)&&!isNaN(r)&&r<0)})}})},function(t){mz(xw),t.registerSeriesModel(_m),t.registerChartView(_x),t.registerLayout(vE("scatter"))},function(t){mz(xw),mz(xY)},function(t){mz(xY),t.registerComponentModel(xq),t.registerComponentView(bn),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},eU),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},eU)},function(t){mz(by),mz(bS)},function(t){t.registerComponentModel(ba),t.registerComponentView(bs)}]);let bA={Calibri:"Open Sans","Calibri Light":"Open Sans",Aptos:"Inter","Aptos Display":"Inter","Aptos Narrow":"Inter","Aptos Serif":"Merriweather",Cambria:"Merriweather","Cambria Math":"Merriweather",Arial:"Roboto","Arial Black":"Roboto","Times New Roman":"Lora","Segoe UI":"Open Sans","Segoe UI Light":"Open Sans","Segoe UI Semibold":"Open Sans",Tahoma:"PT Sans",Verdana:"PT Sans","Trebuchet MS":"Fira Sans",Georgia:"PT Serif","Century Gothic":"Questrial","Comic Sans MS":"Comic Neue",Consolas:"Inconsolata","Courier New":"Courier Prime"};function bD({slides:t,themeFonts:e}){return(0,a.useEffect)(()=>{if(!t||0===t.length)return;let n=function(t){let e=new Set,n=t=>{var r;("shape"===t.type||"table"===t.type)&&"textBody"in t&&null!=(r=t.textBody)&&r.paragraphs&&t.textBody.paragraphs.forEach(t=>{t.runs.forEach(t=>{var n;null!=(n=t.props)&&n.fontFamily&&e.add(t.props.fontFamily)})}),"table"===t.type&&t.rows.forEach(t=>t.cells.forEach(t=>{var n;null!=(n=t.textBody)&&n.paragraphs&&t.textBody.paragraphs.forEach(t=>{t.runs.forEach(t=>{var n;null!=(n=t.props)&&n.fontFamily&&e.add(t.props.fontFamily)})})})),"group"===t.type&&t.children.forEach(n)};return t.forEach(t=>t.nodes.forEach(n)),e}(t),r=new Set,i="";for(let t of Array.from(n)){let n=function(t,e){let n=t;return n.startsWith("+")&&e&&(n.includes("mj")&&(n=e.majorFont),n.includes("mn")&&(n=e.minorFont)),bA[n]?bA[n]:n}(t,e);n&&bA[t]===n&&(r.add(n),i+=`@font-face { font-family: "${t}"; src: local("${n}"); }
|
|
48
|
+
`)}if(r.size>0||i){let t="pptx-dynamic-font-loader";if(!document.getElementById(t)){let e=document.createElement("style");e.id=t;let n="";r.size>0&&(n=`@import url('https://fonts.googleapis.com/css2?family=${Array.from(r).map(t=>t.replace(/\s+/g,"+")).join("&family=")}&display=swap');
|
|
49
|
+
`),e.innerHTML=n+i,document.head.appendChild(e)}}},[t,e]),null}function bL({file:t}){var e;let{data:n,loading:r,error:i}=function(t){let[e,n]=(0,a.useState)(null),[r,i]=(0,a.useState)(!1),[o,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t)return void n(null);let e=!1;return i(!0),s(null),tz(t).then(t=>{e||n(t)}).catch(t=>{e||s(t instanceof Error?t:Error(String(t)))}).finally(()=>{e||i(!1)}),()=>{e=!0}},[t]),{data:e,loading:r,error:o}}(t),[s,l]=(0,a.useState)(0),[u,h]=(0,a.useState)(1),c=(0,a.useCallback)(t=>{n&&("ArrowRight"===t.key||"ArrowDown"===t.key?l(t=>Math.min(t+1,n.slides.length-1)):"ArrowLeft"===t.key||"ArrowUp"===t.key?l(t=>Math.max(t-1,0)):"Home"===t.key?l(0):"End"===t.key?l(n.slides.length-1):"+"===t.key||"="===t.key?h(t=>Math.min(t+.1,3)):"-"===t.key&&h(t=>Math.max(t-.1,.25)))},[n]);if(r)return(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,o.jsxs)("div",{style:{textAlign:"center"},children:[(0,o.jsx)("div",{style:{width:40,height:40,border:"3px solid #333",borderTopColor:"#7c6af7",borderRadius:"50%",animation:"spin 0.8s linear infinite",margin:"0 auto 12px"}}),(0,o.jsx)("p",{style:{color:"#888"},children:"Parsing presentation..."})]})});if(i)return(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,o.jsxs)("div",{style:{textAlign:"center",color:"#e53935",padding:24,background:"#fff",borderRadius:12,boxShadow:"0 2px 12px rgba(0,0,0,.1)"},children:[(0,o.jsx)("p",{style:{fontSize:18,fontWeight:"bold"},children:"Failed to parse PPTX"}),(0,o.jsx)("p",{style:{fontSize:13,marginTop:8,color:"#666"},children:i.message})]})});if(!n||0===n.slides.length)return(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,o.jsx)("p",{style:{color:"#999"},children:"No slides to display"})});let d=Math.min(s,n.slides.length-1);return(0,o.jsxs)("div",{tabIndex:0,onKeyDown:c,style:{display:"flex",flexDirection:"column",height:"100%",outline:"none"},children:[(0,o.jsx)(bD,{slides:n.slides,themeFonts:null==(e=n.theme)?void 0:e.fontScheme}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"6px 16px",background:"#fff",borderBottom:"1px solid #e5e5e5",flexShrink:0},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,o.jsx)("button",{onClick:()=>l(t=>Math.max(t-1,0)),disabled:0===d,style:b$,children:"‹"}),(0,o.jsxs)("span",{style:{fontSize:13,color:"#555",minWidth:70,textAlign:"center"},children:[d+1," / ",n.slides.length]}),(0,o.jsx)("button",{onClick:()=>l(t=>Math.min(t+1,n.slides.length-1)),disabled:d===n.slides.length-1,style:b$,children:"›"})]}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,o.jsx)("button",{onClick:()=>h(t=>Math.max(t-.1,.25)),style:b$,children:"−"}),(0,o.jsxs)("span",{style:{fontSize:13,color:"#555",minWidth:44,textAlign:"center"},children:[Math.round(100*u),"%"]}),(0,o.jsx)("button",{onClick:()=>h(t=>Math.min(t+.1,3)),style:b$,children:"+"}),(0,o.jsx)("button",{onClick:()=>h(1),style:{...b$,fontSize:11},children:"Fit"})]})]}),(0,o.jsxs)("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[(0,o.jsx)(bI,{slides:n.slides,slideWidth:n.width,slideHeight:n.height,currentIndex:d,onSelect:l}),(0,o.jsx)(bT,{slide:n.slides[d],slideWidth:n.width,slideHeight:n.height,userZoom:u,onZoomChange:h})]})]})}let b$={padding:"3px 10px",background:"#f5f5f5",border:"1px solid #ddd",borderRadius:6,cursor:"pointer",fontSize:14,color:"#333"}},581:function(t,e,n){n.r(e),n.d(e,{PptxPreview:function(){return r.P},parsePptx:function(){return r.p}});var r=n(55)}}]);
|